* lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
[gnulib.git] / ChangeLog
1 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2
3         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
4         when avoiding problems with integer overflow.  Use a portable test
5         instead.
6
7 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8
9         * modules/dummy (License): Change to LGPLv2+.
10         * modules/float (License): Likewise
11         * modules/realloc (License): Likewise
12         * modules/stdlib (License): Likewise
13
14 2007-10-07  Bruno Haible  <bruno@clisp.org>
15
16         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
17         * floor.c (TWO_MANT_DIG): Likewise.
18         * ceil.c (TWO_MANT_DIG): Likewise.
19         Reported by Ben Pfaff.
20
21 2007-10-07  Bruno Haible  <bruno@clisp.org>
22
23         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
24         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
25         * lib/frexp.c (FUNC): Likewise.
26         * lib/printf-frexp.h (printf_frexp): Likewise.
27         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28         * lib/printf-frexp.c (FUNC): Likewise.
29         Suggested by Jim Meyering.
30
31 2007-10-07  Jim Meyering  <meyering@redhat.com>
32
33         Make xnanosleep's integer overflow test more robust.
34         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36
37 2007-10-07  Bruno Haible  <bruno@clisp.org>
38
39         * NEWS: Mention the license change.
40
41         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42         abbreviations in the modules files.
43
44         Change copyright notice from GPLv2+ to GPLv3+.
45         * README: Change copyright notice.
46         * MODULES.html.sh: Likewise.
47         * build-aux/bootstrap.conf: Likewise.
48         * build-aux/config.libpath: Likewise.
49         * build-aux/csharpcomp.sh.in: Likewise.
50         * build-aux/csharpexec.sh.in: Likewise.
51         * build-aux/install-reloc: Likewise.
52         * build-aux/javacomp.sh.in: Likewise.
53         * build-aux/javaexec.sh.in: Likewise.
54         * build-aux/ldd.sh.in: Likewise.
55         * build-aux/reloc-ldflags: Likewise.
56         * build-aux/relocatable.sh.in: Likewise.
57         * build-aux/x-to-1.in: Likewise.
58         * check-module: Likewise.
59         * config/srclistvars.sh: Likewise.
60         * gnulib-tool: Likewise.
61         * lib/acl-internal.h: Likewise.
62         * lib/acl.c: Likewise.
63         * lib/acl.h: Likewise.
64         * lib/acl_entries.c: Likewise.
65         * lib/areadlink-with-size.c: Likewise.
66         * lib/areadlink.c: Likewise.
67         * lib/areadlink.h: Likewise.
68         * lib/argmatch.c: Likewise.
69         * lib/argmatch.h: Likewise.
70         * lib/argp-ba.c: Likewise.
71         * lib/argp-eexst.c: Likewise.
72         * lib/argp-fmtstream.c: Likewise.
73         * lib/argp-fmtstream.h: Likewise.
74         * lib/argp-fs-xinl.c: Likewise.
75         * lib/argp-help.c: Likewise.
76         * lib/argp-namefrob.h: Likewise.
77         * lib/argp-parse.c: Likewise.
78         * lib/argp-pin.c: Likewise.
79         * lib/argp-pv.c: Likewise.
80         * lib/argp-pvh.c: Likewise.
81         * lib/argp-xinl.c: Likewise.
82         * lib/argp.h: Likewise.
83         * lib/at-func.c: Likewise.
84         * lib/atanl.c: Likewise.
85         * lib/backupfile.c: Likewise.
86         * lib/backupfile.h: Likewise.
87         * lib/basename.c: Likewise.
88         * lib/binary-io.h: Likewise.
89         * lib/byteswap.in.h: Likewise.
90         * lib/c-stack.c: Likewise.
91         * lib/c-stack.h: Likewise.
92         * lib/c-strcasestr.c: Likewise.
93         * lib/c-strcasestr.h: Likewise.
94         * lib/c-strstr.c: Likewise.
95         * lib/c-strstr.h: Likewise.
96         * lib/c-strtod.c: Likewise.
97         * lib/calloc.c: Likewise.
98         * lib/canon-host.c: Likewise.
99         * lib/canon-host.h: Likewise.
100         * lib/canonicalize-lgpl.c: Likewise.
101         * lib/canonicalize.c: Likewise.
102         * lib/canonicalize.h: Likewise.
103         * lib/ceil.c: Likewise.
104         * lib/ceilf.c: Likewise.
105         * lib/ceill.c: Likewise.
106         * lib/chdir-long.c: Likewise.
107         * lib/chdir-long.h: Likewise.
108         * lib/chdir-safer.c: Likewise.
109         * lib/chdir-safer.h: Likewise.
110         * lib/chown.c: Likewise.
111         * lib/classpath.c: Likewise.
112         * lib/classpath.h: Likewise.
113         * lib/clean-temp.c: Likewise.
114         * lib/clean-temp.h: Likewise.
115         * lib/cloexec.c: Likewise.
116         * lib/close-stream.c: Likewise.
117         * lib/closein.c: Likewise.
118         * lib/closein.h: Likewise.
119         * lib/closeout.c: Likewise.
120         * lib/closeout.h: Likewise.
121         * lib/concat-filename.c: Likewise.
122         * lib/copy-file.c: Likewise.
123         * lib/copy-file.h: Likewise.
124         * lib/count-one-bits.h: Likewise.
125         * lib/crc.c: Likewise.
126         * lib/crc.h: Likewise.
127         * lib/creat-safer.c: Likewise.
128         * lib/csharpcomp.c: Likewise.
129         * lib/csharpcomp.h: Likewise.
130         * lib/csharpexec.c: Likewise.
131         * lib/csharpexec.h: Likewise.
132         * lib/cycle-check.c: Likewise.
133         * lib/cycle-check.h: Likewise.
134         * lib/diacrit.c: Likewise.
135         * lib/diacrit.h: Likewise.
136         * lib/diffseq.h: Likewise.
137         * lib/dirchownmod.c: Likewise.
138         * lib/dirent.in.h: Likewise.
139         * lib/dirfd.c: Likewise.
140         * lib/dirfd.h: Likewise.
141         * lib/dirname.c: Likewise.
142         * lib/dirname.h: Likewise.
143         * lib/dummy.c: Likewise.
144         * lib/dup-safer.c: Likewise.
145         * lib/dup2.c: Likewise.
146         * lib/eealloc.h: Likewise.
147         * lib/error.c: Likewise.
148         * lib/error.h: Likewise.
149         * lib/euidaccess.c: Likewise.
150         * lib/exclude.c: Likewise.
151         * lib/exclude.h: Likewise.
152         * lib/execute.c: Likewise.
153         * lib/execute.h: Likewise.
154         * lib/exitfail.c: Likewise.
155         * lib/exitfail.h: Likewise.
156         * lib/expl.c: Likewise.
157         * lib/fatal-signal.c: Likewise.
158         * lib/fatal-signal.h: Likewise.
159         * lib/fbufmode.c: Likewise.
160         * lib/fbufmode.h: Likewise.
161         * lib/fchdir.c: Likewise.
162         * lib/fchmodat.c: Likewise.
163         * lib/fchownat.c: Likewise.
164         * lib/fcntl--.h: Likewise.
165         * lib/fcntl-safer.h: Likewise.
166         * lib/fcntl.in.h: Likewise.
167         * lib/fd-safer.c: Likewise.
168         * lib/fflush.c: Likewise.
169         * lib/file-has-acl.c: Likewise.
170         * lib/file-set.c: Likewise.
171         * lib/file-type.c: Likewise.
172         * lib/file-type.h: Likewise.
173         * lib/fileblocks.c: Likewise.
174         * lib/filemode.c: Likewise.
175         * lib/filemode.h: Likewise.
176         * lib/filename.h: Likewise.
177         * lib/filenamecat.c: Likewise.
178         * lib/filenamecat.h: Likewise.
179         * lib/findprog.c: Likewise.
180         * lib/findprog.h: Likewise.
181         * lib/float.in.h: Likewise.
182         * lib/floor.c: Likewise.
183         * lib/floorf.c: Likewise.
184         * lib/floorl.c: Likewise.
185         * lib/fopen-safer.c: Likewise.
186         * lib/fopen.c: Likewise.
187         * lib/fpending.c: Likewise.
188         * lib/fpending.h: Likewise.
189         * lib/fprintf.c: Likewise.
190         * lib/fprintftime.h: Likewise.
191         * lib/fpucw.h: Likewise.
192         * lib/fpurge.c: Likewise.
193         * lib/fpurge.h: Likewise.
194         * lib/freadable.c: Likewise.
195         * lib/freadable.h: Likewise.
196         * lib/freadahead.c: Likewise.
197         * lib/freadahead.h: Likewise.
198         * lib/freading.c: Likewise.
199         * lib/freading.h: Likewise.
200         * lib/free.c: Likewise.
201         * lib/freopen.c: Likewise.
202         * lib/frexp.c: Likewise.
203         * lib/frexpl.c: Likewise.
204         * lib/fseek.c: Likewise.
205         * lib/fseterr.c: Likewise.
206         * lib/fseterr.h: Likewise.
207         * lib/fstatat.c: Likewise.
208         * lib/fstrcmp.c: Likewise.
209         * lib/fstrcmp.h: Likewise.
210         * lib/fsusage.c: Likewise.
211         * lib/fsusage.h: Likewise.
212         * lib/ftell.c: Likewise.
213         * lib/ftello.c: Likewise.
214         * lib/fts-cycle.c: Likewise.
215         * lib/fts.c: Likewise.
216         * lib/fts_.h: Likewise.
217         * lib/full-read.c: Likewise.
218         * lib/full-read.h: Likewise.
219         * lib/full-write.c: Likewise.
220         * lib/full-write.h: Likewise.
221         * lib/fwritable.c: Likewise.
222         * lib/fwritable.h: Likewise.
223         * lib/fwriteerror.c: Likewise.
224         * lib/fwriteerror.h: Likewise.
225         * lib/fwriting.c: Likewise.
226         * lib/fwriting.h: Likewise.
227         * lib/gcd.c: Likewise.
228         * lib/gcd.h: Likewise.
229         * lib/getcwd.c: Likewise.
230         * lib/getdate.h: Likewise.
231         * lib/getdate.y: Likewise.
232         * lib/getdomainname.c: Likewise.
233         * lib/getdomainname.h: Likewise.
234         * lib/getgroups.c: Likewise.
235         * lib/gethostname.c: Likewise.
236         * lib/gethrxtime.c: Likewise.
237         * lib/gethrxtime.h: Likewise.
238         * lib/getloadavg.c: Likewise.
239         * lib/getndelim2.c: Likewise.
240         * lib/getndelim2.h: Likewise.
241         * lib/getnline.c: Likewise.
242         * lib/getnline.h: Likewise.
243         * lib/getopt.c: Likewise.
244         * lib/getopt.in.h: Likewise.
245         * lib/getopt1.c: Likewise.
246         * lib/getopt_int.h: Likewise.
247         * lib/getpagesize.h: Likewise.
248         * lib/getsubopt.c: Likewise.
249         * lib/gettime.c: Likewise.
250         * lib/getugroups.c: Likewise.
251         * lib/getugroups.h: Likewise.
252         * lib/getusershell.c: Likewise.
253         * lib/gl_anyavltree_list1.h: Likewise.
254         * lib/gl_anyavltree_list2.h: Likewise.
255         * lib/gl_anyhash_list1.h: Likewise.
256         * lib/gl_anyhash_list2.h: Likewise.
257         * lib/gl_anylinked_list1.h: Likewise.
258         * lib/gl_anylinked_list2.h: Likewise.
259         * lib/gl_anyrbtree_list1.h: Likewise.
260         * lib/gl_anyrbtree_list2.h: Likewise.
261         * lib/gl_anytree_list1.h: Likewise.
262         * lib/gl_anytree_list2.h: Likewise.
263         * lib/gl_anytree_oset.h: Likewise.
264         * lib/gl_anytreehash_list1.h: Likewise.
265         * lib/gl_anytreehash_list2.h: Likewise.
266         * lib/gl_array_list.c: Likewise.
267         * lib/gl_array_list.h: Likewise.
268         * lib/gl_array_oset.c: Likewise.
269         * lib/gl_array_oset.h: Likewise.
270         * lib/gl_avltree_list.c: Likewise.
271         * lib/gl_avltree_list.h: Likewise.
272         * lib/gl_avltree_oset.c: Likewise.
273         * lib/gl_avltree_oset.h: Likewise.
274         * lib/gl_avltreehash_list.c: Likewise.
275         * lib/gl_avltreehash_list.h: Likewise.
276         * lib/gl_carray_list.c: Likewise.
277         * lib/gl_carray_list.h: Likewise.
278         * lib/gl_linked_list.c: Likewise.
279         * lib/gl_linked_list.h: Likewise.
280         * lib/gl_linkedhash_list.c: Likewise.
281         * lib/gl_linkedhash_list.h: Likewise.
282         * lib/gl_list.c: Likewise.
283         * lib/gl_list.h: Likewise.
284         * lib/gl_oset.c: Likewise.
285         * lib/gl_oset.h: Likewise.
286         * lib/gl_rbtree_list.c: Likewise.
287         * lib/gl_rbtree_list.h: Likewise.
288         * lib/gl_rbtree_oset.c: Likewise.
289         * lib/gl_rbtree_oset.h: Likewise.
290         * lib/gl_rbtreehash_list.c: Likewise.
291         * lib/gl_rbtreehash_list.h: Likewise.
292         * lib/gl_sublist.c: Likewise.
293         * lib/gl_sublist.h: Likewise.
294         * lib/group-member.c: Likewise.
295         * lib/group-member.h: Likewise.
296         * lib/hard-locale.c: Likewise.
297         * lib/hard-locale.h: Likewise.
298         * lib/hash-pjw.c: Likewise.
299         * lib/hash-pjw.h: Likewise.
300         * lib/hash-triple.c: Likewise.
301         * lib/hash.c: Likewise.
302         * lib/hash.h: Likewise.
303         * lib/human.c: Likewise.
304         * lib/human.h: Likewise.
305         * lib/i-ring.c: Likewise.
306         * lib/i-ring.h: Likewise.
307         * lib/idcache.c: Likewise.
308         * lib/imaxabs.c: Likewise.
309         * lib/imaxdiv.c: Likewise.
310         * lib/inet_pton.c: Likewise.
311         * lib/inet_pton.h: Likewise.
312         * lib/intprops.h: Likewise.
313         * lib/inttostr.c: Likewise.
314         * lib/inttostr.h: Likewise.
315         * lib/inttypes.in.h: Likewise.
316         * lib/isapipe.c: Likewise.
317         * lib/isdir.c: Likewise.
318         * lib/isnan.c: Likewise.
319         * lib/isnan.h: Likewise.
320         * lib/isnanf.c: Likewise.
321         * lib/isnanf.h: Likewise.
322         * lib/isnanl-nolibm.h: Likewise.
323         * lib/isnanl.c: Likewise.
324         * lib/isnanl.h: Likewise.
325         * lib/javacomp.c: Likewise.
326         * lib/javacomp.h: Likewise.
327         * lib/javaexec.c: Likewise.
328         * lib/javaexec.h: Likewise.
329         * lib/javaversion.c: Likewise.
330         * lib/javaversion.h: Likewise.
331         * lib/javaversion.java: Likewise.
332         * lib/lbrkprop.h: Likewise.
333         * lib/lchmod.h: Likewise.
334         * lib/lchown.c: Likewise.
335         * lib/ldexpl.c: Likewise.
336         * lib/linebreak.c: Likewise.
337         * lib/linebreak.h: Likewise.
338         * lib/linebuffer.c: Likewise.
339         * lib/linebuffer.h: Likewise.
340         * lib/locale.in.h: Likewise.
341         * lib/logl.c: Likewise.
342         * lib/long-options.c: Likewise.
343         * lib/long-options.h: Likewise.
344         * lib/lstat.c: Likewise.
345         * lib/lstat.h: Likewise.
346         * lib/math.in.h: Likewise.
347         * lib/mbchar.c: Likewise.
348         * lib/mbchar.h: Likewise.
349         * lib/mbfile.h: Likewise.
350         * lib/mbiter.h: Likewise.
351         * lib/mbscasecmp.c: Likewise.
352         * lib/mbscasestr.c: Likewise.
353         * lib/mbschr.c: Likewise.
354         * lib/mbscspn.c: Likewise.
355         * lib/mbslen.c: Likewise.
356         * lib/mbsncasecmp.c: Likewise.
357         * lib/mbsnlen.c: Likewise.
358         * lib/mbspbrk.c: Likewise.
359         * lib/mbspcasecmp.c: Likewise.
360         * lib/mbsrchr.c: Likewise.
361         * lib/mbssep.c: Likewise.
362         * lib/mbsspn.c: Likewise.
363         * lib/mbsstr.c: Likewise.
364         * lib/mbstok_r.c: Likewise.
365         * lib/mbswidth.c: Likewise.
366         * lib/mbswidth.h: Likewise.
367         * lib/mbuiter.h: Likewise.
368         * lib/memcasecmp.c: Likewise.
369         * lib/memcasecmp.h: Likewise.
370         * lib/memchr.c: Likewise.
371         * lib/memcmp.c: Likewise.
372         * lib/memcoll.c: Likewise.
373         * lib/memcoll.h: Likewise.
374         * lib/memcpy.c: Likewise.
375         * lib/memrchr.c: Likewise.
376         * lib/mkancesdirs.c: Likewise.
377         * lib/mkdir-p.c: Likewise.
378         * lib/mkdir-p.h: Likewise.
379         * lib/mkdir.c: Likewise.
380         * lib/mkdirat.c: Likewise.
381         * lib/mkdtemp.c: Likewise.
382         * lib/mkstemp-safer.c: Likewise.
383         * lib/mkstemp.c: Likewise.
384         * lib/modechange.c: Likewise.
385         * lib/modechange.h: Likewise.
386         * lib/mountlist.c: Likewise.
387         * lib/mountlist.h: Likewise.
388         * lib/mpsort.c: Likewise.
389         * lib/nanosleep.c: Likewise.
390         * lib/obstack.c: Likewise.
391         * lib/obstack.h: Likewise.
392         * lib/open-safer.c: Likewise.
393         * lib/open.c: Likewise.
394         * lib/openat-die.c: Likewise.
395         * lib/openat-priv.h: Likewise.
396         * lib/openat-proc.c: Likewise.
397         * lib/openat.c: Likewise.
398         * lib/openat.h: Likewise.
399         * lib/pagealign_alloc.c: Likewise.
400         * lib/pagealign_alloc.h: Likewise.
401         * lib/physmem.c: Likewise.
402         * lib/physmem.h: Likewise.
403         * lib/pipe-safer.c: Likewise.
404         * lib/pipe.c: Likewise.
405         * lib/pipe.h: Likewise.
406         * lib/posixtm.c: Likewise.
407         * lib/posixtm.h: Likewise.
408         * lib/posixver.c: Likewise.
409         * lib/printf-frexp.c: Likewise.
410         * lib/printf-frexp.h: Likewise.
411         * lib/printf-frexpl.c: Likewise.
412         * lib/printf-frexpl.h: Likewise.
413         * lib/printf.c: Likewise.
414         * lib/progname.c: Likewise.
415         * lib/progname.h: Likewise.
416         * lib/progreloc.c: Likewise.
417         * lib/putenv.c: Likewise.
418         * lib/quote.c: Likewise.
419         * lib/quote.h: Likewise.
420         * lib/quotearg.c: Likewise.
421         * lib/quotearg.h: Likewise.
422         * lib/raise.c: Likewise.
423         * lib/readline.c: Likewise.
424         * lib/readline.h: Likewise.
425         * lib/readlink.c: Likewise.
426         * lib/readtokens.c: Likewise.
427         * lib/readtokens.h: Likewise.
428         * lib/readtokens0.c: Likewise.
429         * lib/readtokens0.h: Likewise.
430         * lib/readutmp.c: Likewise.
431         * lib/readutmp.h: Likewise.
432         * lib/realloc.c: Likewise.
433         * lib/relocwrapper.c: Likewise.
434         * lib/rename-dest-slash.c: Likewise.
435         * lib/rename.c: Likewise.
436         * lib/rmdir.c: Likewise.
437         * lib/rpmatch.c: Likewise.
438         * lib/safe-read.c: Likewise.
439         * lib/safe-read.h: Likewise.
440         * lib/safe-write.c: Likewise.
441         * lib/safe-write.h: Likewise.
442         * lib/same-inode.h: Likewise.
443         * lib/same.c: Likewise.
444         * lib/same.h: Likewise.
445         * lib/save-cwd.c: Likewise.
446         * lib/save-cwd.h: Likewise.
447         * lib/savedir.c: Likewise.
448         * lib/savedir.h: Likewise.
449         * lib/savewd.c: Likewise.
450         * lib/savewd.h: Likewise.
451         * lib/search.in.h: Likewise.
452         * lib/setenv.c: Likewise.
453         * lib/setenv.h: Likewise.
454         * lib/settime.c: Likewise.
455         * lib/sh-quote.c: Likewise.
456         * lib/sh-quote.h: Likewise.
457         * lib/sig2str.c: Likewise.
458         * lib/sig2str.h: Likewise.
459         * lib/signal.in.h: Likewise.
460         * lib/signbitd.c: Likewise.
461         * lib/signbitf.c: Likewise.
462         * lib/signbitl.c: Likewise.
463         * lib/sigprocmask.c: Likewise.
464         * lib/sincosl.c: Likewise.
465         * lib/sleep.c: Likewise.
466         * lib/sprintf.c: Likewise.
467         * lib/sqrtl.c: Likewise.
468         * lib/stat-time.h: Likewise.
469         * lib/stdio--.h: Likewise.
470         * lib/stdio-safer.h: Likewise.
471         * lib/stdlib--.h: Likewise.
472         * lib/stdlib-safer.h: Likewise.
473         * lib/stdlib.in.h: Likewise.
474         * lib/stpcpy.c: Likewise.
475         * lib/stpncpy.c: Likewise.
476         * lib/strchrnul.c: Likewise.
477         * lib/strcspn.c: Likewise.
478         * lib/strerror.c: Likewise.
479         * lib/strftime.c: Likewise.
480         * lib/strftime.h: Likewise.
481         * lib/striconveh.c: Likewise.
482         * lib/striconveh.h: Likewise.
483         * lib/striconveha.c: Likewise.
484         * lib/striconveha.h: Likewise.
485         * lib/stripslash.c: Likewise.
486         * lib/strnlen1.c: Likewise.
487         * lib/strnlen1.h: Likewise.
488         * lib/strtod.c: Likewise.
489         * lib/strtoimax.c: Likewise.
490         * lib/strtok_r.c: Likewise.
491         * lib/strtol.c: Likewise.
492         * lib/strtoll.c: Likewise.
493         * lib/strtoul.c: Likewise.
494         * lib/strtoull.c: Likewise.
495         * lib/sysexits.in.h: Likewise.
496         * lib/tempname.c: Likewise.
497         * lib/tempname.h: Likewise.
498         * lib/timespec.h: Likewise.
499         * lib/tls.c: Likewise.
500         * lib/tls.h: Likewise.
501         * lib/tmpdir.c: Likewise.
502         * lib/tmpdir.h: Likewise.
503         * lib/tmpfile-safer.c: Likewise.
504         * lib/tmpfile.c: Likewise.
505         * lib/trigl.c: Likewise.
506         * lib/trigl.h: Likewise.
507         * lib/trim.c: Likewise.
508         * lib/trim.h: Likewise.
509         * lib/trunc.c: Likewise.
510         * lib/truncf.c: Likewise.
511         * lib/truncl.c: Likewise.
512         * lib/tsearch.c: Likewise.
513         * lib/unicodeio.c: Likewise.
514         * lib/unicodeio.h: Likewise.
515         * lib/unistd--.h: Likewise.
516         * lib/unistd-safer.h: Likewise.
517         * lib/unistdio/ulc-fprintf.c: Likewise.
518         * lib/unistdio/ulc-vfprintf.c: Likewise.
519         * lib/unlinkdir.c: Likewise.
520         * lib/unlinkdir.h: Likewise.
521         * lib/unlocked-io.h: Likewise.
522         * lib/unsetenv.c: Likewise.
523         * lib/userspec.c: Likewise.
524         * lib/utime.c: Likewise.
525         * lib/utimecmp.c: Likewise.
526         * lib/utimecmp.h: Likewise.
527         * lib/utimens.c: Likewise.
528         * lib/verify.h: Likewise.
529         * lib/verror.c: Likewise.
530         * lib/verror.h: Likewise.
531         * lib/version-etc-fsf.c: Likewise.
532         * lib/version-etc.c: Likewise.
533         * lib/version-etc.h: Likewise.
534         * lib/vfprintf.c: Likewise.
535         * lib/vprintf.c: Likewise.
536         * lib/vsprintf.c: Likewise.
537         * lib/w32spawn.h: Likewise.
538         * lib/wait-process.c: Likewise.
539         * lib/wait-process.h: Likewise.
540         * lib/wcwidth.c: Likewise.
541         * lib/write-any-file.c: Likewise.
542         * lib/xalloc-die.c: Likewise.
543         * lib/xalloc.h: Likewise.
544         * lib/xasprintf.c: Likewise.
545         * lib/xgetcwd.c: Likewise.
546         * lib/xgetcwd.h: Likewise.
547         * lib/xgetdomainname.c: Likewise.
548         * lib/xgetdomainname.h: Likewise.
549         * lib/xgethostname.c: Likewise.
550         * lib/xmalloc.c: Likewise.
551         * lib/xmalloca.c: Likewise.
552         * lib/xmalloca.h: Likewise.
553         * lib/xmemcoll.c: Likewise.
554         * lib/xnanosleep.c: Likewise.
555         * lib/xreadlink.c: Likewise.
556         * lib/xreadlink.h: Likewise.
557         * lib/xsetenv.c: Likewise.
558         * lib/xsetenv.h: Likewise.
559         * lib/xstriconv.c: Likewise.
560         * lib/xstriconv.h: Likewise.
561         * lib/xstrndup.c: Likewise.
562         * lib/xstrndup.h: Likewise.
563         * lib/xstrtod.c: Likewise.
564         * lib/xstrtod.h: Likewise.
565         * lib/xstrtol-error.c: Likewise.
566         * lib/xstrtol.c: Likewise.
567         * lib/xstrtol.h: Likewise.
568         * lib/xtime.h: Likewise.
569         * lib/xvasprintf.c: Likewise.
570         * lib/xvasprintf.h: Likewise.
571         * lib/yesno.c: Likewise.
572         * lib/yesno.h: Likewise.
573         * posix-modules: Likewise.
574         * tests/test-alloca-opt.c: Likewise.
575         * tests/test-arcfour.c: Likewise.
576         * tests/test-arctwo.c: Likewise.
577         * tests/test-argmatch.c: Likewise.
578         * tests/test-argp-2.sh: Likewise.
579         * tests/test-argp.c: Likewise.
580         * tests/test-arpa_inet.c: Likewise.
581         * tests/test-array_list.c: Likewise.
582         * tests/test-array_oset.c: Likewise.
583         * tests/test-atexit.c: Likewise.
584         * tests/test-avltree_list.c: Likewise.
585         * tests/test-avltree_oset.c: Likewise.
586         * tests/test-avltreehash_list.c: Likewise.
587         * tests/test-base64.c: Likewise.
588         * tests/test-binary-io.c: Likewise.
589         * tests/test-byteswap.c: Likewise.
590         * tests/test-c-ctype.c: Likewise.
591         * tests/test-c-strcasecmp.c: Likewise.
592         * tests/test-c-strcasestr.c: Likewise.
593         * tests/test-c-strncasecmp.c: Likewise.
594         * tests/test-c-strstr.c: Likewise.
595         * tests/test-canonicalize-lgpl.c: Likewise.
596         * tests/test-canonicalize.c: Likewise.
597         * tests/test-carray_list.c: Likewise.
598         * tests/test-ceilf.c: Likewise.
599         * tests/test-ceill.c: Likewise.
600         * tests/test-count-one-bits.c: Likewise.
601         * tests/test-crc.c: Likewise.
602         * tests/test-dirname.c: Likewise.
603         * tests/test-fbufmode.c: Likewise.
604         * tests/test-fcntl.c: Likewise.
605         * tests/test-fflush.c: Likewise.
606         * tests/test-floorf.c: Likewise.
607         * tests/test-floorl.c: Likewise.
608         * tests/test-fopen.c: Likewise.
609         * tests/test-fprintf-posix.c: Likewise.
610         * tests/test-fprintf-posix.h: Likewise.
611         * tests/test-fpurge.c: Likewise.
612         * tests/test-freadable.c: Likewise.
613         * tests/test-freadahead.c: Likewise.
614         * tests/test-freading.c: Likewise.
615         * tests/test-freopen.c: Likewise.
616         * tests/test-frexp.c: Likewise.
617         * tests/test-frexpl.c: Likewise.
618         * tests/test-fseek.c: Likewise.
619         * tests/test-fseeko.c: Likewise.
620         * tests/test-fseterr.c: Likewise.
621         * tests/test-fstrcmp.c: Likewise.
622         * tests/test-ftell.c: Likewise.
623         * tests/test-ftello.c: Likewise.
624         * tests/test-fwritable.c: Likewise.
625         * tests/test-fwriting.c: Likewise.
626         * tests/test-getaddrinfo.c: Likewise.
627         * tests/test-getpass.c: Likewise.
628         * tests/test-gettimeofday.c: Likewise.
629         * tests/test-hmac-md5.c: Likewise.
630         * tests/test-hmac-sha1.c: Likewise.
631         * tests/test-iconv.c: Likewise.
632         * tests/test-iconvme.c: Likewise.
633         * tests/test-inttypes.c: Likewise.
634         * tests/test-isnan.c: Likewise.
635         * tests/test-isnanf.c: Likewise.
636         * tests/test-isnanl-nolibm.c: Likewise.
637         * tests/test-isnanl.c: Likewise.
638         * tests/test-isnanl.h: Likewise.
639         * tests/test-ldexpl.c: Likewise.
640         * tests/test-linked_list.c: Likewise.
641         * tests/test-linkedhash_list.c: Likewise.
642         * tests/test-locale.c: Likewise.
643         * tests/test-localename.c: Likewise.
644         * tests/test-lock.c: Likewise.
645         * tests/test-lseek.c: Likewise.
646         * tests/test-malloca.c: Likewise.
647         * tests/test-math.c: Likewise.
648         * tests/test-mbscasecmp.c: Likewise.
649         * tests/test-mbscasestr1.c: Likewise.
650         * tests/test-mbscasestr2.c: Likewise.
651         * tests/test-mbscasestr3.c: Likewise.
652         * tests/test-mbscasestr4.c: Likewise.
653         * tests/test-mbschr.c: Likewise.
654         * tests/test-mbscspn.c: Likewise.
655         * tests/test-mbsncasecmp.c: Likewise.
656         * tests/test-mbspbrk.c: Likewise.
657         * tests/test-mbspcasecmp.c: Likewise.
658         * tests/test-mbsrchr.c: Likewise.
659         * tests/test-mbsspn.c: Likewise.
660         * tests/test-mbsstr1.c: Likewise.
661         * tests/test-mbsstr2.c: Likewise.
662         * tests/test-mbsstr3.c: Likewise.
663         * tests/test-md5.c: Likewise.
664         * tests/test-memmem.c: Likewise.
665         * tests/test-netinet_in.c: Likewise.
666         * tests/test-open.c: Likewise.
667         * tests/test-printf-frexp.c: Likewise.
668         * tests/test-printf-frexpl.c: Likewise.
669         * tests/test-printf-posix.c: Likewise.
670         * tests/test-printf-posix.h: Likewise.
671         * tests/test-rbtree_list.c: Likewise.
672         * tests/test-rbtree_oset.c: Likewise.
673         * tests/test-rbtreehash_list.c: Likewise.
674         * tests/test-read-file.c: Likewise.
675         * tests/test-rijndael.c: Likewise.
676         * tests/test-search.c: Likewise.
677         * tests/test-signbit.c: Likewise.
678         * tests/test-sleep.c: Likewise.
679         * tests/test-snprintf-posix.c: Likewise.
680         * tests/test-snprintf-posix.h: Likewise.
681         * tests/test-snprintf.c: Likewise.
682         * tests/test-sprintf-posix.c: Likewise.
683         * tests/test-sprintf-posix.h: Likewise.
684         * tests/test-stat-time.c: Likewise.
685         * tests/test-stdbool.c: Likewise.
686         * tests/test-stdint.c: Likewise.
687         * tests/test-stdio.c: Likewise.
688         * tests/test-stdlib.c: Likewise.
689         * tests/test-stpncpy.c: Likewise.
690         * tests/test-strcasestr.c: Likewise.
691         * tests/test-striconv.c: Likewise.
692         * tests/test-striconveh.c: Likewise.
693         * tests/test-striconveha.c: Likewise.
694         * tests/test-string.c: Likewise.
695         * tests/test-sys_select.c: Likewise.
696         * tests/test-sys_socket.c: Likewise.
697         * tests/test-sys_stat.c: Likewise.
698         * tests/test-sys_time.c: Likewise.
699         * tests/test-sysexits.c: Likewise.
700         * tests/test-time.c: Likewise.
701         * tests/test-tls.c: Likewise.
702         * tests/test-trunc.c: Likewise.
703         * tests/test-truncf.c: Likewise.
704         * tests/test-truncl.c: Likewise.
705         * tests/test-unistd.c: Likewise.
706         * tests/test-vasnprintf-posix.c: Likewise.
707         * tests/test-vasnprintf-posix2.c: Likewise.
708         * tests/test-vasnprintf.c: Likewise.
709         * tests/test-vasprintf-posix.c: Likewise.
710         * tests/test-vasprintf.c: Likewise.
711         * tests/test-verify.c: Likewise.
712         * tests/test-vfprintf-posix.c: Likewise.
713         * tests/test-vprintf-posix.c: Likewise.
714         * tests/test-vsnprintf-posix.c: Likewise.
715         * tests/test-vsnprintf.c: Likewise.
716         * tests/test-vsprintf-posix.c: Likewise.
717         * tests/test-wchar.c: Likewise.
718         * tests/test-wctype.c: Likewise.
719         * tests/test-wcwidth.c: Likewise.
720         * tests/test-xstrtol.c: Likewise.
721         * tests/test-xvasprintf.c: Likewise.
722         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
723         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
724         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
725         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
726         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
727         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
728         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
729         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
730         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
731         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
732         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
733         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
734         * tests/uniname/test-uninames.c: Likewise.
735         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
736         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
737         * tests/unistdio/test-u16-printf1.h: Likewise.
738         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
739         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
740         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
741         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
742         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
743         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
744         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
745         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
746         * tests/unistdio/test-u32-printf1.h: Likewise.
747         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
748         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
749         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
750         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
751         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
752         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
753         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
754         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
755         * tests/unistdio/test-u8-printf1.h: Likewise.
756         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
757         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
758         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
759         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
760         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
761         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
762         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
763         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
764         * tests/unistdio/test-ulc-printf1.h: Likewise.
765         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
766         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
767         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
768         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
769         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
770         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
771         * tests/uniwidth/test-u16-strwidth.c: Likewise.
772         * tests/uniwidth/test-u16-width.c: Likewise.
773         * tests/uniwidth/test-u32-strwidth.c: Likewise.
774         * tests/uniwidth/test-u32-width.c: Likewise.
775         * tests/uniwidth/test-u8-strwidth.c: Likewise.
776         * tests/uniwidth/test-u8-width.c: Likewise.
777         * tests/uniwidth/test-uc_width.c: Likewise.
778         * config/srclist-update: Likewise.
779         (fixlicense): Update to GPLv3+.
780
781         Change copyright notice from LGPLv2.1+ to LGPLv3+.
782         * tests/test-tsearch.c: Change copyright notice.
783
784         Change copyright notice from LGPLv2.0+ to LGPLv3+.
785         * lib/c-strcaseeq.h: Change copyright notice.
786         * lib/streq.h: Likewise.
787         * lib/uniconv.h: Likewise.
788         * lib/uniconv/u-conv-from-enc.h: Likewise.
789         * lib/uniconv/u-conv-to-enc.h: Likewise.
790         * lib/uniconv/u-strconv-from-enc.h: Likewise.
791         * lib/uniconv/u-strconv-to-enc.h: Likewise.
792         * lib/uniconv/u16-conv-from-enc.c: Likewise.
793         * lib/uniconv/u16-conv-to-enc.c: Likewise.
794         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
795         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
796         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
797         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
798         * lib/uniconv/u32-conv-from-enc.c: Likewise.
799         * lib/uniconv/u32-conv-to-enc.c: Likewise.
800         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
801         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
802         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
803         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
804         * lib/uniconv/u8-conv-from-enc.c: Likewise.
805         * lib/uniconv/u8-conv-to-enc.c: Likewise.
806         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
807         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
808         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
809         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
810         * lib/uniname.h: Likewise.
811         * lib/uniname/uniname.c: Likewise.
812         * lib/unistdio.h: Likewise.
813         * lib/unistdio/u-asnprintf.h: Likewise.
814         * lib/unistdio/u-asprintf.h: Likewise.
815         * lib/unistdio/u-printf-args.c: Likewise.
816         * lib/unistdio/u-printf-args.h: Likewise.
817         * lib/unistdio/u-printf-parse.h: Likewise.
818         * lib/unistdio/u-snprintf.h: Likewise.
819         * lib/unistdio/u-sprintf.h: Likewise.
820         * lib/unistdio/u-vasprintf.h: Likewise.
821         * lib/unistdio/u-vsnprintf.h: Likewise.
822         * lib/unistdio/u-vsprintf.h: Likewise.
823         * lib/unistdio/u16-asnprintf.c: Likewise.
824         * lib/unistdio/u16-asprintf.c: Likewise.
825         * lib/unistdio/u16-printf-parse.c: Likewise.
826         * lib/unistdio/u16-snprintf.c: Likewise.
827         * lib/unistdio/u16-sprintf.c: Likewise.
828         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
829         * lib/unistdio/u16-u16-asprintf.c: Likewise.
830         * lib/unistdio/u16-u16-snprintf.c: Likewise.
831         * lib/unistdio/u16-u16-sprintf.c: Likewise.
832         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
833         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
834         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
835         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
836         * lib/unistdio/u16-vasnprintf.c: Likewise.
837         * lib/unistdio/u16-vasprintf.c: Likewise.
838         * lib/unistdio/u16-vsnprintf.c: Likewise.
839         * lib/unistdio/u16-vsprintf.c: Likewise.
840         * lib/unistdio/u32-asnprintf.c: Likewise.
841         * lib/unistdio/u32-asprintf.c: Likewise.
842         * lib/unistdio/u32-printf-parse.c: Likewise.
843         * lib/unistdio/u32-snprintf.c: Likewise.
844         * lib/unistdio/u32-sprintf.c: Likewise.
845         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
846         * lib/unistdio/u32-u32-asprintf.c: Likewise.
847         * lib/unistdio/u32-u32-snprintf.c: Likewise.
848         * lib/unistdio/u32-u32-sprintf.c: Likewise.
849         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
850         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
851         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
852         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
853         * lib/unistdio/u32-vasnprintf.c: Likewise.
854         * lib/unistdio/u32-vasprintf.c: Likewise.
855         * lib/unistdio/u32-vsnprintf.c: Likewise.
856         * lib/unistdio/u32-vsprintf.c: Likewise.
857         * lib/unistdio/u8-asnprintf.c: Likewise.
858         * lib/unistdio/u8-asprintf.c: Likewise.
859         * lib/unistdio/u8-printf-parse.c: Likewise.
860         * lib/unistdio/u8-snprintf.c: Likewise.
861         * lib/unistdio/u8-sprintf.c: Likewise.
862         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
863         * lib/unistdio/u8-u8-asprintf.c: Likewise.
864         * lib/unistdio/u8-u8-snprintf.c: Likewise.
865         * lib/unistdio/u8-u8-sprintf.c: Likewise.
866         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
867         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
868         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
869         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
870         * lib/unistdio/u8-vasnprintf.c: Likewise.
871         * lib/unistdio/u8-vasprintf.c: Likewise.
872         * lib/unistdio/u8-vsnprintf.c: Likewise.
873         * lib/unistdio/u8-vsprintf.c: Likewise.
874         * lib/unistdio/ulc-asnprintf.c: Likewise.
875         * lib/unistdio/ulc-asprintf.c: Likewise.
876         * lib/unistdio/ulc-printf-parse.c: Likewise.
877         * lib/unistdio/ulc-snprintf.c: Likewise.
878         * lib/unistdio/ulc-sprintf.c: Likewise.
879         * lib/unistdio/ulc-vasnprintf.c: Likewise.
880         * lib/unistdio/ulc-vasprintf.c: Likewise.
881         * lib/unistdio/ulc-vsnprintf.c: Likewise.
882         * lib/unistdio/ulc-vsprintf.c: Likewise.
883         * lib/unistr.h: Likewise.
884         * lib/unistr/u-cpy-alloc.h: Likewise.
885         * lib/unistr/u-cpy.h: Likewise.
886         * lib/unistr/u-endswith.h: Likewise.
887         * lib/unistr/u-move.h: Likewise.
888         * lib/unistr/u-set.h: Likewise.
889         * lib/unistr/u-startswith.h: Likewise.
890         * lib/unistr/u-stpcpy.h: Likewise.
891         * lib/unistr/u-stpncpy.h: Likewise.
892         * lib/unistr/u-strcat.h: Likewise.
893         * lib/unistr/u-strcpy.h: Likewise.
894         * lib/unistr/u-strcspn.h: Likewise.
895         * lib/unistr/u-strdup.h: Likewise.
896         * lib/unistr/u-strlen.h: Likewise.
897         * lib/unistr/u-strncat.h: Likewise.
898         * lib/unistr/u-strncpy.h: Likewise.
899         * lib/unistr/u-strnlen.h: Likewise.
900         * lib/unistr/u-strpbrk.h: Likewise.
901         * lib/unistr/u-strspn.h: Likewise.
902         * lib/unistr/u-strstr.h: Likewise.
903         * lib/unistr/u-strtok.h: Likewise.
904         * lib/unistr/u16-check.c: Likewise.
905         * lib/unistr/u16-chr.c: Likewise.
906         * lib/unistr/u16-cmp.c: Likewise.
907         * lib/unistr/u16-cpy-alloc.c: Likewise.
908         * lib/unistr/u16-cpy.c: Likewise.
909         * lib/unistr/u16-endswith.c: Likewise.
910         * lib/unistr/u16-mblen.c: Likewise.
911         * lib/unistr/u16-mbsnlen.c: Likewise.
912         * lib/unistr/u16-mbtouc-aux.c: Likewise.
913         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
914         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
915         * lib/unistr/u16-mbtouc.c: Likewise.
916         * lib/unistr/u16-mbtoucr.c: Likewise.
917         * lib/unistr/u16-move.c: Likewise.
918         * lib/unistr/u16-next.c: Likewise.
919         * lib/unistr/u16-prev.c: Likewise.
920         * lib/unistr/u16-set.c: Likewise.
921         * lib/unistr/u16-startswith.c: Likewise.
922         * lib/unistr/u16-stpcpy.c: Likewise.
923         * lib/unistr/u16-stpncpy.c: Likewise.
924         * lib/unistr/u16-strcat.c: Likewise.
925         * lib/unistr/u16-strchr.c: Likewise.
926         * lib/unistr/u16-strcmp.c: Likewise.
927         * lib/unistr/u16-strcpy.c: Likewise.
928         * lib/unistr/u16-strcspn.c: Likewise.
929         * lib/unistr/u16-strdup.c: Likewise.
930         * lib/unistr/u16-strlen.c: Likewise.
931         * lib/unistr/u16-strmblen.c: Likewise.
932         * lib/unistr/u16-strmbtouc.c: Likewise.
933         * lib/unistr/u16-strncat.c: Likewise.
934         * lib/unistr/u16-strncmp.c: Likewise.
935         * lib/unistr/u16-strncpy.c: Likewise.
936         * lib/unistr/u16-strnlen.c: Likewise.
937         * lib/unistr/u16-strpbrk.c: Likewise.
938         * lib/unistr/u16-strrchr.c: Likewise.
939         * lib/unistr/u16-strspn.c: Likewise.
940         * lib/unistr/u16-strstr.c: Likewise.
941         * lib/unistr/u16-strtok.c: Likewise.
942         * lib/unistr/u16-to-u32.c: Likewise.
943         * lib/unistr/u16-to-u8.c: Likewise.
944         * lib/unistr/u16-uctomb-aux.c: Likewise.
945         * lib/unistr/u16-uctomb.c: Likewise.
946         * lib/unistr/u32-check.c: Likewise.
947         * lib/unistr/u32-chr.c: Likewise.
948         * lib/unistr/u32-cmp.c: Likewise.
949         * lib/unistr/u32-cpy-alloc.c: Likewise.
950         * lib/unistr/u32-cpy.c: Likewise.
951         * lib/unistr/u32-endswith.c: Likewise.
952         * lib/unistr/u32-mblen.c: Likewise.
953         * lib/unistr/u32-mbsnlen.c: Likewise.
954         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
955         * lib/unistr/u32-mbtouc.c: Likewise.
956         * lib/unistr/u32-mbtoucr.c: Likewise.
957         * lib/unistr/u32-move.c: Likewise.
958         * lib/unistr/u32-next.c: Likewise.
959         * lib/unistr/u32-prev.c: Likewise.
960         * lib/unistr/u32-set.c: Likewise.
961         * lib/unistr/u32-startswith.c: Likewise.
962         * lib/unistr/u32-stpcpy.c: Likewise.
963         * lib/unistr/u32-stpncpy.c: Likewise.
964         * lib/unistr/u32-strcat.c: Likewise.
965         * lib/unistr/u32-strchr.c: Likewise.
966         * lib/unistr/u32-strcmp.c: Likewise.
967         * lib/unistr/u32-strcpy.c: Likewise.
968         * lib/unistr/u32-strcspn.c: Likewise.
969         * lib/unistr/u32-strdup.c: Likewise.
970         * lib/unistr/u32-strlen.c: Likewise.
971         * lib/unistr/u32-strmblen.c: Likewise.
972         * lib/unistr/u32-strmbtouc.c: Likewise.
973         * lib/unistr/u32-strncat.c: Likewise.
974         * lib/unistr/u32-strncmp.c: Likewise.
975         * lib/unistr/u32-strncpy.c: Likewise.
976         * lib/unistr/u32-strnlen.c: Likewise.
977         * lib/unistr/u32-strpbrk.c: Likewise.
978         * lib/unistr/u32-strrchr.c: Likewise.
979         * lib/unistr/u32-strspn.c: Likewise.
980         * lib/unistr/u32-strstr.c: Likewise.
981         * lib/unistr/u32-strtok.c: Likewise.
982         * lib/unistr/u32-to-u16.c: Likewise.
983         * lib/unistr/u32-to-u8.c: Likewise.
984         * lib/unistr/u32-uctomb.c: Likewise.
985         * lib/unistr/u8-check.c: Likewise.
986         * lib/unistr/u8-chr.c: Likewise.
987         * lib/unistr/u8-cmp.c: Likewise.
988         * lib/unistr/u8-cpy-alloc.c: Likewise.
989         * lib/unistr/u8-cpy.c: Likewise.
990         * lib/unistr/u8-endswith.c: Likewise.
991         * lib/unistr/u8-mblen.c: Likewise.
992         * lib/unistr/u8-mbsnlen.c: Likewise.
993         * lib/unistr/u8-mbtouc-aux.c: Likewise.
994         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
995         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
996         * lib/unistr/u8-mbtouc.c: Likewise.
997         * lib/unistr/u8-mbtoucr.c: Likewise.
998         * lib/unistr/u8-move.c: Likewise.
999         * lib/unistr/u8-next.c: Likewise.
1000         * lib/unistr/u8-prev.c: Likewise.
1001         * lib/unistr/u8-set.c: Likewise.
1002         * lib/unistr/u8-startswith.c: Likewise.
1003         * lib/unistr/u8-stpcpy.c: Likewise.
1004         * lib/unistr/u8-stpncpy.c: Likewise.
1005         * lib/unistr/u8-strcat.c: Likewise.
1006         * lib/unistr/u8-strchr.c: Likewise.
1007         * lib/unistr/u8-strcmp.c: Likewise.
1008         * lib/unistr/u8-strcpy.c: Likewise.
1009         * lib/unistr/u8-strcspn.c: Likewise.
1010         * lib/unistr/u8-strdup.c: Likewise.
1011         * lib/unistr/u8-strlen.c: Likewise.
1012         * lib/unistr/u8-strmblen.c: Likewise.
1013         * lib/unistr/u8-strmbtouc.c: Likewise.
1014         * lib/unistr/u8-strncat.c: Likewise.
1015         * lib/unistr/u8-strncmp.c: Likewise.
1016         * lib/unistr/u8-strncpy.c: Likewise.
1017         * lib/unistr/u8-strnlen.c: Likewise.
1018         * lib/unistr/u8-strpbrk.c: Likewise.
1019         * lib/unistr/u8-strrchr.c: Likewise.
1020         * lib/unistr/u8-strspn.c: Likewise.
1021         * lib/unistr/u8-strstr.c: Likewise.
1022         * lib/unistr/u8-strtok.c: Likewise.
1023         * lib/unistr/u8-to-u16.c: Likewise.
1024         * lib/unistr/u8-to-u32.c: Likewise.
1025         * lib/unistr/u8-uctomb-aux.c: Likewise.
1026         * lib/unistr/u8-uctomb.c: Likewise.
1027         * lib/unitypes.h: Likewise.
1028         * lib/uniwidth.h: Likewise.
1029         * lib/uniwidth/cjk.h: Likewise.
1030         * lib/uniwidth/u16-strwidth.c: Likewise.
1031         * lib/uniwidth/u16-width.c: Likewise.
1032         * lib/uniwidth/u32-strwidth.c: Likewise.
1033         * lib/uniwidth/u32-width.c: Likewise.
1034         * lib/uniwidth/u8-strwidth.c: Likewise.
1035         * lib/uniwidth/u8-width.c: Likewise.
1036         * lib/uniwidth/width.c: Likewise.
1037
1038 2007-10-07  Bruno Haible  <bruno@clisp.org>
1039
1040         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
1041         The file is still under LGPL (see modules/inttypes).
1042
1043 2007-10-06  Bruno Haible  <bruno@clisp.org>
1044
1045         * modules/trunc (Dependencies): Add 'extensions'.
1046         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
1047         Reported by Ben Pfaff <blp@gnu.org>.
1048
1049 2007-10-06  Bruno Haible  <bruno@clisp.org>
1050
1051         * modules/freopen-tests: New file.
1052         * tests/test-freopen.c: New file.
1053
1054         * modules/fopen-tests: New file.
1055         * tests/test-fopen.c: New file.
1056
1057         * modules/fopen: New file.
1058         * lib/fopen.c: New file.
1059         * m4/fopen.m4: New file.
1060         * modules/freopen: New file.
1061         * lib/freopen.c: New file.
1062         * m4/freopen.m4: New file.
1063         * lib/stdio.in.h (fopen, freopen): New declarations.
1064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
1065         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
1066         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
1067         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
1068         * doc/functions/fopen.texi: Mention the 'fopen' module.
1069         * doc/functions/freopen.texi: Mention the 'freopen' module.
1070
1071 2007-10-06  Bruno Haible  <bruno@clisp.org>
1072
1073         * modules/open-tests: New file.
1074         * tests/test-open.c: New file.
1075
1076         * modules/open: New file.
1077         * lib/open.c: New file.
1078         * m4/open.m4: New file.
1079         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
1080         lib/open.c does.
1081         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
1082         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
1083         macros.
1084         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
1085         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
1086         REPLACE_OPEN.
1087         * doc/functions/open.texi: Mention the 'open' module.
1088
1089 2007-10-04  Bruno Haible  <bruno@clisp.org>
1090
1091         * modules/ceill-tests: New file.
1092         * tests/test-ceill.c: New file.
1093
1094         * modules/ceill: New file.
1095         * lib/ceill.c: Replace entire file.
1096         * m4/ceill.m4: New file.
1097         * lib/math.in.h (ceill): Replace declaration.
1098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
1099         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
1100         * doc/functions/ceill.texi: Mention the 'ceill' module.
1101         * modules/mathl (Files): Remove lib/ceill.c.
1102         (Depends-on): Add ceill.
1103
1104 2007-10-04  Bruno Haible  <bruno@clisp.org>
1105
1106         * modules/ceilf-tests: New file.
1107         * tests/test-ceilf.c: New file.
1108
1109         * modules/ceilf: New file.
1110         * lib/ceil.c: New file.
1111         * lib/ceilf.c: New file.
1112         * m4/ceilf.m4: New file.
1113         * lib/math.in.h (ceilf): New declaration.
1114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
1115         HAVE_DECL_CEILF.
1116         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
1117         HAVE_DECL_CEILF.
1118         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
1119
1120 2007-10-04  Bruno Haible  <bruno@clisp.org>
1121
1122         * modules/floorl-tests: New file.
1123         * tests/test-floorl.c: New file.
1124
1125         * modules/floorl: New file.
1126         * lib/floorl.c: Replace entire file.
1127         * m4/floorl.m4: New file.
1128         * lib/math.in.h (floorl): Replace declaration.
1129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
1130         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
1131         * doc/functions/floorl.texi: Mention the 'floorl' module.
1132         * modules/mathl (Files): Remove lib/floorl.c.
1133         (Depends-on): Add floorl.
1134
1135 2007-10-04  Bruno Haible  <bruno@clisp.org>
1136
1137         * modules/floorf-tests: New file.
1138         * tests/test-floorf.c: New file.
1139
1140         * modules/floorf: New file.
1141         * lib/floor.c: New file.
1142         * lib/floorf.c: New file.
1143         * m4/floorf.m4: New file.
1144         * lib/math.in.h (floorf): New declaration.
1145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
1146         HAVE_DECL_FLOORF.
1147         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
1148         HAVE_DECL_FLOORF.
1149         * doc/functions/floorf.texi: Mention the 'floorf' module.
1150
1151 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
1152             Bruno Haible  <bruno@clisp.org>
1153
1154         Advertise for the Git server instead of the CVS server.
1155         * doc/gnulib-intro.texi (Steady Development): Mention the Git
1156         repository instead of the CVS one.
1157         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
1158         about all VCS systems generically.
1159         * doc/gnulib.texi (Introduction): Capitalize `Git'.
1160
1161 2007-10-04  Bruno Haible  <bruno@clisp.org>
1162
1163         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
1164         means.
1165         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
1166
1167 2007-10-04  Bruno Haible  <bruno@clisp.org>
1168
1169         * modules/truncl-tests: New file.
1170         * tests/test-truncl.c: New file.
1171
1172         * modules/truncl: New file.
1173         * lib/truncl.c: New file.
1174         * m4/truncl.m4: New file.
1175         * lib/math.in.h (truncl): New declaration.
1176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
1177         HAVE_DECL_TRUNCL.
1178         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
1179         HAVE_DECL_TRUNCL.
1180         * doc/functions/truncl.texi: Mention the 'truncl' module.
1181
1182 2007-10-04  Bruno Haible  <bruno@clisp.org>
1183
1184         * modules/truncf-tests: New file.
1185         * tests/test-truncf.c: New file.
1186
1187         * modules/truncf: New file.
1188         * lib/trunc.c: Make paramerizable through USE_* macros.
1189         * lib/truncf.c: New file.
1190         * m4/truncf.m4: New file.
1191         * lib/math.in.h (truncf): New declaration.
1192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
1193         HAVE_DECL_TRUNCF.
1194         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
1195         HAVE_DECL_TRUNCF.
1196         * doc/functions/truncf.texi: Mention the 'truncf' module.
1197
1198 2007-10-03  Bruno Haible  <bruno@clisp.org>
1199
1200         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
1201         augmentation also for tests modules.
1202         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
1203         * modules/atexit-tests (Makefile.am): Likewise.
1204         * modules/binary-io-tests (Makefile.am): Likewise.
1205         * modules/c-strcase-tests (Makefile.am): Likewise.
1206         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
1207         * modules/canonicalize-tests (Makefile.am): Likewise.
1208         * modules/closein-tests (Makefile.am): Likewise.
1209         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1210         * modules/freadahead-tests (Makefile.am): Likewise.
1211         * modules/fseek-tests (Makefile.am): Likewise.
1212         * modules/fseeko-tests (Makefile.am): Likewise.
1213         * modules/ftell-tests (Makefile.am): Likewise.
1214         * modules/ftello-tests (Makefile.am): Likewise.
1215         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
1216         * modules/isnanl-tests (Makefile.am): Likewise.
1217         * modules/lseek-tests (Makefile.am): Likewise.
1218         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1219         * modules/mbscasestr-tests (Makefile.am): Likewise.
1220         * modules/mbschr-tests (Makefile.am): Likewise.
1221         * modules/mbscspn-tests (Makefile.am): Likewise.
1222         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1223         * modules/mbspbrk-tests (Makefile.am): Likewise.
1224         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1225         * modules/mbsrchr-tests (Makefile.am): Likewise.
1226         * modules/mbsspn-tests (Makefile.am): Likewise.
1227         * modules/mbsstr-tests (Makefile.am): Likewise.
1228         * modules/printf-posix-tests (Makefile.am): Likewise.
1229         * modules/snprintf-posix-tests (Makefile.am): Likewise.
1230         * modules/sprintf-posix-tests (Makefile.am): Likewise.
1231         * modules/tsearch-tests (Makefile.am): Likewise.
1232         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1233         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1234         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1235         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1236         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1237         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1238         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1239         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1240         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
1241         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
1242         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1243         * modules/xstrtol-tests (Makefile.am): Likewise.
1244         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1245         * modules/yesno-tests (Makefile.am): Likewise.
1246
1247 2007-10-03  Bruno Haible  <bruno@clisp.org>
1248
1249         * modules/trunc-tests: New file.
1250         * tests/test-trunc.c: New file.
1251
1252         * modules/trunc: New file.
1253         * lib/trunc.c: New file.
1254         * m4/trunc.m4: New file.
1255         * lib/math.in.h (trunc): New declaration.
1256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
1257         HAVE_DECL_TRUNC.
1258         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
1259         HAVE_DECL_TRUNC.
1260         * doc/functions/trunc.texi: Mention the 'trunc' module.
1261
1262 2007-10-03  Bruno Haible  <bruno@clisp.org>
1263
1264         * tests/test-fpending.c: New file, mostly copied
1265         from coreutils/lib/t-fpending.c.
1266         * modules/fpending-tests: New file.
1267
1268 2007-10-03  Bruno Haible  <bruno@clisp.org>
1269
1270         Port the stdio extensions to QNX (untested).
1271         * lib/fseterr.c (fseterr): Add support for QNX.
1272         * lib/fbufmode.c (fbufmode): Likewise.
1273         * lib/freadable.c (freadable): Likewise.
1274         * lib/fwritable.c (fwritable): Likewise.
1275         * lib/freading.c (freading): Likewise.
1276         * lib/fwriting.c (fwriting): Likewise.
1277         * lib/freadahead.c (freadahed): Likewise.
1278         * lib/fpurge.c (fpurge): Likewise.
1279         * lib/fseeko.c (rpl_fseeko): Likewise.
1280
1281 2007-10-03  Bruno Haible  <bruno@clisp.org>
1282             Jim Meyering  <jim@meyering.net>
1283             Eric Blake  <ebb9@byu.net>
1284
1285         * doc/relocatable.texi: Use @command instead of @program.
1286
1287 2007-10-02  Jim Meyering  <jim@meyering.net>
1288
1289         Perform one more "_.h" -> ".in.h" substitution.
1290         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
1291         instead of unistd_.h here, too.
1292
1293 2007-10-01  Bruno Haible  <bruno@clisp.org>
1294
1295         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
1296         Needed for the alloca-opt module.
1297
1298 2007-09-30  Bruno Haible  <bruno@clisp.org>
1299
1300         * lib/alloca.in.h: Renamed from lib/alloca_.h.
1301         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
1302         alloca_.h.
1303         * lib/argz.in.h: Renamed from lib/argz_.h.
1304         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
1305         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
1306         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
1307         byteswap_.h.
1308         * lib/dirent.in.h: Renamed from lib/dirent_.h.
1309         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
1310         dirent_.h.
1311         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
1312         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
1313         fcntl_.h.
1314         * lib/float.in.h: Renamed from lib/float_.h.
1315         * modules/float (Files, Makefile.am): Use float.in.h instead of
1316         float_.h.
1317         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
1318         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
1319         fnmatch_.h.
1320         * lib/getopt.in.h: Renamed from lib/getopt_.h.
1321         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
1322         getopt_.h.
1323         * lib/glob.in.h: Renamed from lib/glob_.h.
1324         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
1325         * lib/iconv.in.h: Renamed from lib/iconv_.h.
1326         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
1327         iconv_.h.
1328         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
1329         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
1330         inttypes_.h.
1331         * lib/locale.in.h: Renamed from lib/locale_.h.
1332         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
1333         locale_.h.
1334         * lib/math.in.h: Renamed from lib/math_.h.
1335         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
1336         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
1337         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
1338         of netinet_in_.h. Add dependency.
1339         * lib/poll.in.h: Renamed from lib/poll_.h.
1340         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
1341         * lib/search.in.h: Renamed from lib/search_.h.
1342         * modules/search (Files, Makefile.am): Use search.in.h instead of
1343         search_.h.
1344         * lib/signal.in.h: Renamed from lib/signal_.h.
1345         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
1346         _signal.h.
1347         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
1348         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
1349         stdbool_.h.
1350         * lib/stdint.in.h: Renamed from lib/stdint_.h.
1351         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
1352         stdint_.h.
1353         * lib/stdio.in.h: Renamed from lib/stdio_.h.
1354         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
1355         stdio_.h.
1356         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
1357         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
1358         stdlib_.h.
1359         * lib/string.in.h: Renamed from lib/string_.h.
1360         * modules/string (Files, Makefile.am): Use string.in.h instead of
1361         string_.h.
1362         * doc/gnulib-tool.texi (Initial import): Update.
1363         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
1364         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
1365         of sys_select_.h. Add dependency.
1366         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
1367         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
1368         of sys_socket_.h.
1369         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
1370         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
1371         sys_stat_.h.
1372         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
1373         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
1374         sys_time_.h.
1375         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
1376         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
1377         sysexits_.h.
1378         * lib/time.in.h: Renamed from lib/time_.h.
1379         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
1380         * lib/unistd.in.h: Renamed from lib/unistd_.h.
1381         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
1382         unistd_.h.
1383         * lib/wchar.in.h: Renamed from lib/wchar_.h.
1384         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
1385         wchar_.h.
1386         * lib/wctype.in.h: Renamed from lib/wctype_.h.
1387         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
1388         wctype_.h.
1389         * build-aux/bootstrap (slurp): Update.
1390         * lib/.cppi-disable: Update.
1391
1392 2007-09-30  Bruno Haible  <bruno@clisp.org>
1393
1394         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
1395         Needed on BeOS.
1396
1397 2007-09-30  Bruno Haible  <bruno@clisp.org>
1398
1399         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
1400
1401 2007-09-29  Bruno Haible  <bruno@clisp.org>
1402
1403         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
1404
1405 2007-09-29  Bruno Haible  <bruno@clisp.org>
1406
1407         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
1408         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
1409         * build-aux/install-reloc: Compile also areadlink.c.
1410         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
1411
1412 2007-09-29  Bruno Haible  <bruno@clisp.org>
1413
1414         * gnulib-tool (func_emit_initmacro_done): Indentation.
1415
1416 2007-09-29  Bruno Haible  <bruno@clisp.org>
1417
1418         * README: Add CVS checkout update instructions.
1419         Info from Bob Proulx <bob@proulx.com>.
1420
1421 2007-09-28  Eric Blake  <ebb9@byu.net>
1422
1423         Provide move-if-change.
1424         * build-aux/move-if-change: New file, based on best practice
1425         rather than any canonical upstream location.
1426
1427 2007-09-28  Jim Meyering  <jim@meyering.net>
1428
1429         Fix canonicalize loop-detection corner case.
1430         Do not attempt to stat the symlink values stored via seen_triple.
1431         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
1432         on linux-2.6.18, (but not 2.6.22).
1433         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
1434         triple_compare.  The former compares dev,ino,filename, while the latter
1435         would actually stat dirname(filename) when dev and ino were equal.
1436         * lib/hash-triple.c: Install <string.h>.
1437         (STREQ): Define.
1438         (triple_compare_ino_str): New function.
1439         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
1440
1441 2007-09-28  Eric Blake  <ebb9@byu.net>
1442
1443         Enforce that AC_REPLACE_FUNCS files exist.
1444         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
1445         override check for typos.
1446
1447         Fix test-closein on Solaris 10.
1448         * tests/test-closein.c (main): Don't assume stdin can be inherited
1449         closed on all systems.
1450         * tests/test-closein.sh: Likewise.
1451         Reported by Piotr Tarnowski.
1452
1453 2007-09-28  Jim Meyering  <jim@meyering.net>
1454
1455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
1456
1457 2007-09-27  Jim Meyering  <jim@meyering.net>
1458
1459         canonicalize: Avoid a false-positive cycle failure.
1460         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
1461         Sort.  Remove cycle-check.
1462         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
1463         not cycle-check.h.
1464         (seen_triple): New function.
1465         (canonicalize_filename_mode): Use it instead of cycle-check.
1466         * tests/test-canonicalize.c: Add a test for this bug.
1467         * tests/test-canonicalize.sh: Set up and run the test.
1468
1469         New module, file-set, from coreutils.
1470         * modules/file-set: Define it.
1471         * lib/file-set.c, lib/file-set.h: Implement.
1472
1473         New module, hash-triple, from coreutils.
1474         * modules/hash-triple: Define it.
1475         * lib/hash-triple.c, lib/hash-triple.h: Implement.
1476
1477 2007-09-25  Eric Blake  <ebb9@byu.net>
1478
1479         Fix strerror on Interix.
1480         * lib/string_.h (strerror): Declare replacement.
1481         * doc/functions/strerror.texi (strerror): Document the Interix
1482         shortcoming.
1483         * modules/string (Makefile.am): Support new hooks.
1484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
1485         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
1486         gl_FUNC_STRERROR_SEPARATE.
1487         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
1488         * lib/strerror.c (rpl_strerror): Provide replacement.
1489         * modules/strerror (Depends-on): Add string.
1490         (configure.ac): Detect use of module.
1491         * tests/test-strerror.c: New file.
1492         * modules/strerror-tests: New test module.
1493         * modules/argp (Depends-on): Add strerror.
1494         * modules/error (Depends-on): Likewise.
1495         Reported by Martin Koeppe.
1496
1497 2007-09-24  Bruno Haible  <bruno@clisp.org>
1498
1499         * README: Update git instructions.
1500
1501 2007-09-24  Eric Blake  <ebb9@byu.net>
1502
1503         Revert fpending breakage from 2007-09-08.
1504         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
1505         __fpending.c.
1506
1507 2007-09-24  Jim Meyering  <jim@meyering.net>
1508
1509         filenamecat.c: Add a test.
1510         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
1511         showing how the function works when DIR is the empty string.
1512
1513 2007-09-21  Simon Josefsson  <simon@josefsson.org>
1514
1515         * tests/test-canonicalize.sh: Turn on executable bit.
1516
1517 2007-09-19  Eric Blake  <ebb9@byu.net>
1518
1519         * README: Update CVS instructions.
1520
1521 2007-09-18  Bruno Haible  <bruno@clisp.org>
1522
1523         * modules/areadlink: New file.
1524         * lib/areadlink.h (areadlink): New declaration.
1525         * lib/areadlink.c: New file, based on lib/xreadlink.c.
1526
1527 2007-09-17  Jim Meyering  <jim@meyering.net>
1528
1529         * lib/savewd.c (ESTALE) [!defined]: Define.
1530         Reported to be required on Interix by Martin Koeppe.
1531
1532 2007-09-17  Bruno Haible  <bruno@clisp.org>
1533
1534         * gnulib-tool (func_version): Use $version.
1535
1536 2007-09-16  Bruno Haible  <bruno@clisp.org>
1537
1538         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
1539         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
1540         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
1541         Reported by Greg Schafer <gschafer@zip.com.au>.
1542
1543 2007-09-15  Bruno Haible  <bruno@clisp.org>
1544
1545         * gnulib-tool (sed): Try a little harder to make bash understand the
1546         alias.
1547         Reported by Bruce Korb <bruce.korb@gmail.com>.
1548
1549 2007-09-13  Eric Blake  <ebb9@byu.net>
1550
1551         * ChangeLog: Remove conflict markers.
1552
1553 2007-09-13  Simon Josefsson  <simon@josefsson.org>
1554
1555         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
1556         Reported by Bruno Haible <bruno@clisp.org>.
1557
1558 2007-09-12  Bruno Haible  <bruno@clisp.org>
1559
1560         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
1561         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
1562         is not defined.
1563
1564 2007-09-12  Eric Blake  <ebb9@byu.net>
1565
1566         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
1567         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
1568         Autoconf definition.
1569         * modules/euidaccess (Depends-on): Add extensions, for
1570         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
1571         * modules/fnmatch (Depends-on): Likewise.
1572         * modules/getaddrinfo (Depends-on): Likewise.
1573         * modules/getdelim (Depends-on): Likewise.
1574         * modules/getline (Depends-on): Likewise.
1575         * modules/getsubopt (Depends-on): Likewise.
1576         * modules/gettext (Depends-on): Likewise.
1577         * modules/group-member (Depends-on): Likewise.
1578         * modules/mbchar (Depends-on): Likewise.
1579         * modules/memmem (Depends-on): Likewise.
1580         * modules/mempcpy (Depends-on): Likewise.
1581         * modules/memrchr (Depends-on): Likewise.
1582         * modules/pagealign_alloc (Depends-on): Likewise.
1583         * modules/readutmp (Depends-on): Likewise.
1584         * modules/stpcpy (Depends-on): Likewise.
1585         * modules/stpncpy (Depends-on): Likewise.
1586         * modules/strchrnul (Depends-on): Likewise.
1587         * modules/strndup (Depends-on): Likewise.
1588         * modules/strsep (Depends-on): Likewise.
1589         * modules/strverscmp (Depends-on): Likewise.
1590         * modules/vasprintf (Depends-on): Likewise.
1591         * modules/wcwidth (Depends-on): Likewise.
1592         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
1593         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
1594         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
1595         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
1596         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1597         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1598         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
1599         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
1600         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
1601         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1603         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
1604         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
1605         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1606         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
1607         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1608         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1609         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
1610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1611         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
1612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
1614         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
1615         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
1616         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
1617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1618         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
1619         so that lock.m4 can be used in gettext without extensions module.
1620
1621 2007-09-11  Bruno Haible  <bruno@clisp.org>
1622
1623         * m4/isc-posix.m4: Remove file.
1624         Suggested by Eric Blake.
1625
1626 2007-09-11  Eric Blake  <ebb9@byu.net>
1627
1628         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
1629
1630 2007-09-10  Bruno Haible  <bruno@clisp.org>
1631
1632         * posix-modules: Fix typo in error message.
1633         Reported by Matt <mkraai@beckman.com>.
1634
1635 2007-09-09  Bruno Haible  <bruno@clisp.org>
1636
1637         * doc/functions/getdelim.texi: Update list of platforms lacking the
1638         function.
1639         * doc/functions/getline.texi: Likewise.
1640
1641 2007-09-09  Jim Meyering  <jim@meyering.net>
1642
1643         * lib/hash.c (hash_initialize): Detect calloc failure.
1644         Reported by Bruno Haible.
1645
1646 2007-09-09  Bruno Haible  <bruno@clisp.org>
1647
1648         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
1649         malloc or realloc fails.
1650
1651 2007-09-09  Bruno Haible  <bruno@clisp.org>
1652
1653         * modules/getcwd (Depends-on): Add malloc-posix.
1654         * modules/glob (Depends-on): Likewise.
1655         * modules/putenv (Depends-on): Likewise.
1656         * modules/strdup (Depends-on): Likewise.
1657         * modules/getdelim (Depends-on): Add realloc-posix.
1658         * modules/read-file (Depends-on): Likewise.
1659
1660 2007-09-09  Bruno Haible  <bruno@clisp.org>
1661
1662         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
1663         (gl_FUNC_MALLOC_POSIX): Require it.
1664         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
1665         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
1666         * modules/realloc (Files): Add m4/malloc.m4.
1667         * modules/calloc (Files): Likewise.
1668
1669 2007-09-09  Bruno Haible  <bruno@clisp.org>
1670
1671         * modules/malloc-posix: New file.
1672         * modules/malloc (Depends-on): Add malloc-posix.
1673         * lib/malloc.c: Include errno.h.
1674         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
1675         and a POSIX-compatible malloc into a single function. Set ENOMEM
1676         when returning NULL.
1677         * m4/malloc.m4: New file.
1678         * doc/functions/malloc.texi: Mention the malloc-posix module.
1679         * lib/stdlib_.h (malloc): New declaration.
1680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1681         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
1682         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
1683         and HAVE_MALLOC_POSIX.
1684
1685 2007-09-09  Bruno Haible  <bruno@clisp.org>
1686
1687         * modules/realloc-posix: New file.
1688         * modules/realloc (Depends-on): Add realloc-posix.
1689         * lib/realloc.c: Include errno.h.
1690         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
1691         and a POSIX-compatible realloc into a single function. Set ENOMEM
1692         when returning NULL.
1693         * m4/realloc.m4: New file.
1694         * doc/functions/realloc.texi: Mention the realloc-posix module.
1695         * lib/stdlib_.h (realloc): New declaration.
1696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1697         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
1698         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
1699         and HAVE_REALLOC_POSIX.
1700
1701 2007-09-09  Bruno Haible  <bruno@clisp.org>
1702
1703         * modules/calloc-posix: New file.
1704         * modules/calloc (Depends-on): Add calloc-posix.
1705         * lib/calloc.c: Include errno.h.
1706         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
1707         and a POSIX-compatible calloc into a single function. Set ENOMEM
1708         when returning NULL.
1709         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
1710         * doc/functions/calloc.texi: Mention the calloc-posix module.
1711         * lib/stdlib_.h (calloc): New declaration.
1712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1713         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
1714         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
1715         and HAVE_CALLOC_POSIX.
1716
1717 2007-09-09  Bruno Haible  <bruno@clisp.org>
1718
1719         Allow for modules to show an arbitrary notice.
1720         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
1721         * gnulib-tool: New option --extract-notice.
1722         (func_usage): Document it.
1723         (sed_extract_prog): Update.
1724         (func_get_notice): New function.
1725         (func_modules_notice): New function.
1726         (func_import, func_create_testdir): Invoke it.
1727         Suggested by Jim Meyering.
1728
1729 2007-09-09  Bruno Haible  <bruno@clisp.org>
1730
1731         * gnulib-tool: New options --verbose, --quiet.
1732         (func_usage): Document them.
1733         (verbose): New variable.
1734         (func_execute_command): New function.
1735         (func_import): Don't show the module list and the file list if
1736         $verbose < 0.
1737         (func_create_testdir): Likewise. Use func_execute_command.
1738         (func_create_megatestdir): Use func_execute_command.
1739
1740 2007-09-08  Bruno Haible  <bruno@clisp.org>
1741
1742         * gnulib-tool (func_import): Prefer rsync over wget when available,
1743         for fetching the PO files.
1744
1745 2007-09-08  Bruno Haible  <bruno@clisp.org>
1746
1747         * posix-modules: New file. Portions copied from gnulib-tool.
1748         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
1749
1750 2007-09-08  Jim Meyering  <jim@meyering.net>
1751
1752         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
1753         * lib/fpending.h: Rename from __fpending.h.
1754         * lib/fpending.c: Rename from __fpending.c.
1755         Include "fpending.h", not "__fpending.h".
1756         * lib/__fpending.h, lib/__fpending.c: Remove files.
1757         * modules/fpending (Files): Reflect new file names.
1758         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
1759
1760 2007-09-08  Bruno Haible  <bruno@clisp.org>
1761
1762         * m4/inttypes-h.m4: Remove stub file.
1763
1764 2007-09-07  Simon Josefsson  <simon@josefsson.org>
1765
1766         * doc/headers/stdint.texi: Discuss #include_next issue.
1767
1768 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1769
1770         * build-aux/bootstrap: Remove obsolete comment about wget --help.
1771
1772 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1773
1774         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
1775         in variable name.
1776
1777 2007-09-03  Jim Meyering  <jim@meyering.net>
1778
1779         New module: git-version-gen.
1780         * modules/git-version-gen: New file.
1781
1782         Import changes from coreutils for bootstrap script.
1783
1784         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
1785
1786         bootstrap: uses rsync to download the .po files
1787         * build-aux/bootstrap (po_download_command_format): New global.
1788         (download_po_files): Use rsync.
1789         (update_po_files): Don't remove .po files after download,
1790         so future rsync runs can take advantage of the copies.
1791
1792         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
1793
1794         Solve the unnecessary-.po-file-regeneration problem once and for all.
1795         * build-aux/bootstrap (download_po_files): New function, renamed from
1796         get_translations.  Now, downloads, but doesn't update LINGUAS.
1797         (update_po_files): New function.
1798
1799         bootstrap: Ignore more.
1800         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
1801         uniwidth to e.g., lib/.gitignore.
1802         (slurp): Handle the sys_stat_.h -> sys mapping, too.
1803
1804         * build-aux/bootstrap: New setting: vc_ignore.
1805         (insert_sorted_if_absent): Create $file if absent.
1806         Adapt to new, possibly empty, list: $vc_ignore.
1807
1808         bootstrap: generate more ignorable names
1809         * build-aux/bootstrap (slurp): When generating ignorable names,
1810         also map .sin to .sed, .gperf to .c, and .y to .c.
1811
1812 2007-09-03  Jim Meyering  <jim@meyering.net>
1813
1814         * build-aux/git-version-gen: New file, from coreutils.  For details, see
1815         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
1816
1817 2007-09-02  Bruno Haible  <bruno@clisp.org>
1818
1819         Fix mis-recognition of 'mcs' on QNX 6.
1820         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
1821         output contains the string "Mono".
1822         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
1823         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
1824
1825 2007-09-01  Bruno Haible  <bruno@clisp.org>
1826
1827         Fix collision between uniwidth/* and linebreak modules.
1828         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
1829         u32_width): Remove declarations.
1830         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
1831         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
1832         streq3, streq2, streq1, streq0): Remove functions.
1833         (STREQ): Remove macro.
1834         (is_cjk_encoding): Remove function.
1835         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
1836         (uc_width, u8_width, u16_width, u32_width): Remove functions.
1837         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
1838         * NEWS: Document the change.
1839
1840 2007-09-01  Bruno Haible  <bruno@clisp.org>
1841
1842         * lib/streq.h: Add double-inclusion guard.
1843
1844 2007-09-01  Karl Berry  <karl@gnu.org>
1845
1846         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
1847
1848 2007-08-28  Jim Meyering  <jim@meyering.net>
1849
1850         Rename mreadlink_with_size to areadlink_with_size.
1851         * NEWS: Document the change.
1852         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
1853         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
1854         * lib/mreadlink.h: Rename this to...
1855         * lib/areadlink.h: ...this.
1856         * modules/mreadlink-with-size: Rename this to...
1857         * modules/areadlink-with-size: ...this.
1858         * lib/canonicalize.c: Reflect the renaming.
1859         * modules/canonicalize: Likewise.
1860
1861 2007-08-26  Bruno Haible  <bruno@clisp.org>
1862
1863         * gnulib-tool (func_import): When deciding which files to remove,
1864         consider also dangling symbolic links.
1865         Reported by Eric Blake.
1866
1867 2007-08-26  Bruno Haible  <bruno@clisp.org>
1868
1869         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
1870
1871 2007-08-23  Simon Josefsson  <simon@josefsson.org>
1872
1873         * lib/readline.c: Don't include getline.h, the prototype is now
1874         found in stdio.h.
1875
1876 2007-08-23  Jim Meyering  <jim@meyering.net>
1877
1878         Getdelim touchup.
1879         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
1880         around the funlockfile call, since funlockfile never sets errno.
1881         Don't set errno upon failed realloc.
1882
1883 2007-08-22  Eric Blake  <ebb9@byu.net>
1884
1885         Getline touchups.
1886         * lib/getdelim.c (getdelim): Revert regression that required *n to
1887         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
1888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
1889         getdelim, rather than whether implementation is missing.
1890         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
1891         * lib/stdio_.h (getline): Also declare if replacement is
1892         required.
1893         * doc/functions/getdelim.texi: New file.
1894         * doc/functions/getline.texi: Likewise.
1895         * doc/gnulib.texi (Function Substitutes): Add new files.
1896         Reported by Bruno Haible.
1897
1898 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
1899
1900         * users.txt: Add Guile.
1901
1902 2007-08-22  Eric Blake  <ebb9@byu.net>
1903
1904         * tests/test-getdelim.c (main): Use remove, not unlink.
1905         * tests/test-getline.c (main): Likewise.
1906
1907         Move getline and getdelim into stdio.h, per POSIX 200x.
1908         * modules/getline (Files): Remove getline.h.
1909         (Depends-on): Add stdio.
1910         (configure.ac): Add module indicator.
1911         * modules/getdelim (Files): Remove getdelim.h.
1912         (Depends-on): Add stdio.
1913         (configure.ac): Add module indicator.
1914         * modules/stdio (Makefile.am): Work with new indicators.
1915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
1916         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
1917         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1918         * lib/getdelim.h: Delete.
1919         * lib/getline.h: Delete.
1920         * lib/stdio_.h (getdelim, getline): Declare.
1921         * modules/getdelim-tests: New module.
1922         * modules/getline-tests: Likewise.
1923         * tests/test-getdelim.c: New file.
1924         * tests/test-getline.c: Likewise.
1925         * NEWS: Document the change.
1926         * lib/getline.c: Update choice of header.
1927         * lib/csharpcomp.c: Likewise.
1928         * lib/getpass.c: Likewise.
1929         * lib/javacomp.c: Likewise.
1930         * lib/javaversion.c: Likewise.
1931         * lib/yesno.c: Likewise.
1932         * lib/getdelim.c: Likewise.
1933         (getdelim): Set errno on failure, and avoid memory leak.
1934
1935 2007-08-19  Bruno Haible  <bruno@clisp.org>
1936
1937         * modules/closein (Depends-on): Add freadahead.
1938         * lib/closein.c: Include freadahead.h.
1939         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
1940         is zero.
1941
1942 2007-08-19  Bruno Haible  <bruno@clisp.org>
1943
1944         * modules/freadahead-tests: New file.
1945         * tests/test-freadahead.sh: New file.
1946         * tests/test-freadahead.c: New file.
1947
1948         * modules/freadahead: New file.
1949         * lib/freadahead.h: New file.
1950         * lib/freadahead.c: New file.
1951         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
1952         fbufmode, fpurge, freadable, fwritable.
1953
1954 2007-08-19  Eric Blake  <ebb9@byu.net>
1955
1956         Test yesno in combination with closein.
1957         * lib/yesno.c (yesno): Document use of stdin.
1958         * modules/yesno-tests (Files): New module.
1959         * tests/test-yesno.c (main): New file.
1960         * tests/test-yesno.sh: Likewise.
1961
1962 2007-08-19  Bruno Haible  <bruno@clisp.org>
1963
1964         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
1965         * lib/fseeko.c (rpl_fseeko): Likewise.
1966         * lib/fseterr.c (fseterr): Likewise.
1967
1968 2007-08-19  Bruno Haible  <bruno@clisp.org>
1969
1970         * tests/test-lseek.c (main): Disable a test for BeOS.
1971         * doc/functions/lseek.texi: Document the BeOS bug.
1972
1973 2007-08-19  Bruno Haible  <bruno@clisp.org>
1974             Eric Blake  <ebb9@byu.net>
1975
1976         * lib/lseek.c: Include <sys/stat.h>.
1977         (rpl_lseek): Add workaround code also for Unix platforms.
1978         Needed for BeOS.
1979         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
1980         * doc/functions/lseek.texi: Document BeOS definiency.
1981
1982 2007-08-18  Bruno Haible  <bruno@clisp.org>
1983
1984         * modules/fstrcmp-tests: New file.
1985         * tests/test-fstrcmp.c: New file.
1986
1987 2007-08-18  Bruno Haible  <bruno@clisp.org>
1988
1989         * modules/fstrcmp: New file, from GNU gettext with modifications.
1990         * lib/fstrcmp.h: New file, from GNU gettext.
1991         * lib/fstrcmp.c: New file, from GNU gettext.
1992         * MODULES.html.sh (String handling): Add fstrcmp.
1993
1994 2007-08-18  Bruno Haible  <bruno@clisp.org>
1995
1996         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
1997         'bool'.
1998         (diag, compareseq): Remove const from the ctxt argument.
1999         (USE_HEURISTIC): Undefine at the end.
2000
2001 2007-08-18  Jim Meyering  <jim@meyering.net>
2002
2003         New file: lib/idcache.h
2004         * NEWS: Mention the addition.
2005         * modules/idcache (Files): Add lib/idcache.h
2006         * lib/idcache.c: Include "idcache.h".
2007         Don't include <sys/types.h>.
2008         Add a FIXME comment.
2009         Move file-scoped "static" declarations to the top.
2010         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
2011
2012 2007-08-17  Bruno Haible  <bruno@clisp.org>
2013         and Paul Eggert  <eggert@cs.ucla.edu>
2014
2015         * MODULES.html.sh: Add diffseq.
2016         * modules/diffseq: New file.
2017         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
2018         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
2019
2020 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2021
2022         Import changes from coreutils for bootstrap script.
2023
2024         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
2025
2026         * build-aux/bootstrap (slurp): Work even in environments where
2027         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
2028         current code does not slurp files whose names start with ".", and
2029         this looks like it might be a troublesome area.
2030
2031         2007-07-11  Jim Meyering  <jim@meyering.net>
2032
2033         If there's a GPL vN copyright comment, require that N == 3.
2034
2035         2007-07-08  Jim Meyering  <jim@meyering.net>
2036
2037         Run the coreutils-specific code only if tests/Makefile.am.in exists.
2038         * build-aux/bootstrap (mam_template): Move definition out of loop.
2039
2040         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
2041
2042         * build-aux/bootstrap (symlink_to_dir): Rename function from
2043         symlink_to_gnulib.  Add a directory parameter.  Update all
2044         callers.
2045         (cp_mark_as_generated): Also check for -- and link to -- files in
2046         gl/.
2047
2048         2007-07-08  Jim Meyering  <jim@meyering.net>
2049
2050         Adapt to deeper hierarchy in gnulib.
2051         * build-aux/bootstrap (symlink_to_dir): If the destination
2052         directory doesn't exist, create it. This is required at least for
2053         "lib/uniwidth/cjk.h".
2054
2055         2007-05-15  Jim Meyering  <jim@meyering.net>
2056
2057         * build-aux/bootstrap: Now that generated Makefile.am files
2058         are no longer under version control, they must be created at
2059         bootstrap time.
2060
2061 2007-08-14  Ben Pfaff  <blp@gnu.org>
2062
2063         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
2064
2065 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
2068         given the changes below.
2069         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
2070         even on hosts that have padding bits beyond the supported 64.
2071
2072 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2073
2074         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
2075         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
2076         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
2077         depends on it.
2078         (xstrtol_error): Remove.
2079         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
2080         but with a different signature.
2081         (ATTRIBUTE_NORETURN, __attribute__): New macros.
2082         * lib/xstrtol-error.c: Include exitfail.h.
2083         (xstrtol_fatal): New function, with a different signature from the
2084         old xstrtol_error, so that the caller need not worry about passing
2085         in an exit status, or about storage management of the option argument.
2086         (xstrtol_error): Now a static function.  Redo signature to
2087         implement xstrtol_fatal.  Output the correct number of hyphens in
2088         front of the option so that the caller need not worry about
2089         storage management.
2090         (N_): New macro.
2091         (_): Remove; not used now.
2092         * modules/xstrtol: Depend on getopt.
2093         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
2094         of old STRTOL_FATAL_ERROR macro.
2095         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
2096         of test program.
2097         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
2098         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
2099
2100 2007-08-08  Eric Blake  <ebb9@byu.net>
2101
2102         * lib/xstrtol-error.c: Add missing include.
2103
2104         Move xstrtol messages into gnulib domain, when --pobase is used.
2105         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
2106         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
2107         * modules/xstrtol (Files): Distribute new file.
2108         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
2109         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
2110         * tests/test-xstrtol.c: ...into new file.
2111         * tests/test-xstrtoul.c: Also test xstrtoul.
2112         * tests/test-xstrtoimax.c: Also test xstrtoimax.
2113         * tests/test-xstrtoumax.c: Also test xstrtoumax.
2114         * tests/test-xstrtol.sh: Drive the tests.
2115         * tests/test-xstrtoimax.sh: Likewise.
2116         * tests/test-xstrtoumax.sh: Likewise.
2117         * modules/xstrtol-tests: New module.
2118         * modules/xstrtoimax-tests: Likewise.
2119         * modules/xstrtoumax-tests: Likewise.
2120
2121 2007-08-08  Jim Meyering  <jim@meyering.net>
2122
2123         New function: mfile_name_concat.
2124         * lib/filenamecat.c (mfile_name_concat): New function, just like
2125         file_name_concat, but return NULL upon failure rather than exiting
2126         with a diagnostic.
2127         * lib/filenamecat.h: Declare it.
2128
2129 2007-08-07  Bruno Haible  <bruno@clisp.org>
2130
2131         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
2132         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
2133         warning from gcc.
2134         Reported by Eric Blake.
2135
2136 2007-08-07  Simon Josefsson  <simon@josefsson.org>
2137
2138         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
2139         * modules/crypto/arcfour (License): Likewise.
2140         * modules/crypto/des-tests (License): Likewise.
2141         * modules/crypto/gc-arctwo-tests (License): Likewise.
2142         * modules/crypto/gc-des-tests (License): Likewise.
2143         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
2144         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
2145         * modules/crypto/gc-md2-tests (License): Likewise.
2146         * modules/crypto/gc-md4-tests (License): Likewise.
2147         * modules/crypto/gc-md5-tests (License): Likewise.
2148         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
2149         * modules/crypto/gc-rijndael-tests (License): Likewise.
2150         * modules/crypto/gc-sha1-tests (License): Likewise.
2151         * modules/crypto/gc-tests (License): Likewise.
2152         * modules/crypto/hmac-md5 (License): Likewise.
2153         * modules/crypto/hmac-sha1 (License): Likewise.
2154         * modules/crypto/md2-tests (License): Likewise.
2155         * modules/crypto/md4-tests (License): Likewise.
2156         * modules/crypto/md5 (License): Likewise.
2157         * modules/crypto/rijndael (License): Likewise.
2158         * modules/crypto/sha1 (License): Likewise.
2159         * modules/memxor (License): Likewise.
2160
2161 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2162         and Bruno Haible  <bruno@clisp.org>
2163
2164         * NEWS: Describe interface changes to human, xstrtol.
2165         * lib/human.h: Include <xstrtol.h>.
2166         (human_options): Return enum strtol_error, not int.  Remove
2167         bool arg; take int * instead.
2168         * lib/human.c: Don't include "gettext.h".
2169         (_): Remove; no longer used.
2170         Don't include <xstrtol.h>, since human.h does it.
2171         (human_options): Adjust to abovementioned interface changes.
2172         Do not report error to stderr; that's now the caller's
2173         responsibility.
2174         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
2175         interface change.
2176         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
2177         Str, Argument_type_string.  All uses changed.  Put " argument"
2178         in diagnostics to make them clearer.  Change wording of suffix
2179         message for clarity.
2180         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
2181         Argument_type_string.
2182         (STRTOL_FATAL_WARN): Remove; no longer used.
2183         * modules/human (Depends-on): Remove gettext-h.
2184
2185 2007-08-06  Simon Josefsson  <simon@josefsson.org>
2186
2187         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
2188
2189 2007-07-31  Bruno Haible  <bruno@clisp.org>
2190
2191         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
2192         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
2193         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
2194
2195 2007-07-31  Bruno Haible  <bruno@clisp.org>
2196
2197         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
2198         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
2199
2200 2007-07-30  Bruno Haible  <bruno@clisp.org>
2201
2202         * modules/base64 (License): Use the synonymous term "LGPLv2+".
2203         * modules/c-ctype (License): Likewise.
2204         * modules/c-strcase (License): Likewise.
2205         * modules/check-version (License): Likewise.
2206         * modules/iconv (License): Likewise.
2207         * modules/iconv_open (License): Likewise.
2208         * modules/read-file (License): Likewise.
2209         * modules/striconv (License): Likewise.
2210         * modules/strverscmp (License): Likewise.
2211         * modules/vasprintf (License): Likewise.
2212         * modules/crypto/des (License): Likewise.
2213         * modules/crypto/gc (License): Likewise.
2214         * modules/crypto/gc-arcfour (License): Likewise.
2215         * modules/crypto/gc-arctwo (License): Likewise.
2216         * modules/crypto/gc-des (License): Likewise.
2217         * modules/crypto/gc-hmac-md5 (License): Likewise.
2218         * modules/crypto/gc-hmac-sha1 (License): Likewise.
2219         * modules/crypto/gc-md2 (License): Likewise.
2220         * modules/crypto/gc-md4 (License): Likewise.
2221         * modules/crypto/gc-md5 (License): Likewise.
2222         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
2223         * modules/crypto/gc-random (License): Likewise.
2224         * modules/crypto/gc-rijndael (License): Likewise.
2225         * modules/crypto/gc-sha1 (License): Likewise.
2226         * modules/crypto/md2 (License): Likewise.
2227         * modules/crypto/md4 (License): Likewise.
2228
2229 2007-07-30  Jim Meyering  <jim@meyering.net>
2230
2231         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
2232         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
2233         it has valid stat data.  This bug would cause du not to count the
2234         sizes of inaccessible directories.
2235         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
2236         in <http://bugzilla.redhat.com/250077>.
2237
2238 2007-07-25  Peter O'Gorman  <peter@pogma.com>
2239             Bruno Haible  <bruno@clisp.org>
2240
2241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
2242         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
2243         #include_next, gives a diagnostic about it, but reports no error in
2244         the exit code.
2245         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
2246
2247 2007-07-24  Ben Pfaff  <blp@gnu.org>
2248
2249         Improve name: "count-one-bits" is better than "popcount".
2250         * MODULES.html.sh: Update name.
2251         * lib/popcount.h: Renamed lib/count-one-bits.h.
2252         (popcount): Renamed count_one_bits.
2253         (popcountl): Renamed count_one_bits_l.
2254         (popcountll): Renamed count_one_bits_ll.
2255         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
2256         * modules/popcount: Renamed module/count-one-bits.
2257         * modules/popcount-tests: Renamed module/count-one-bits-tests.
2258         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
2259
2260 2007-07-23  Ben Pfaff  <blp@gnu.org>
2261
2262         * lib/popcount.h (popcount32): Reduce size of constants, to allow
2263         better code generation, and add U to large constants to avoid
2264         warnings, in non-GCC case.
2265         Suggested by Bruno Haible.
2266
2267 2007-07-23  Ben Pfaff  <blp@gnu.org>
2268
2269         * lib/popcount.h: Use verify_true instead of if...abort.
2270         * modules/popcount: Depend on verify module.
2271         Suggested by Jim Meyering.
2272
2273 2007-07-23  Bruno Haible  <bruno@clisp.org>
2274
2275         * gnulib-tool (func_import): Create a .cvsignore file also when the
2276         directory is not yet in CVS but the toplevel directory is. When
2277         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
2278         Reported by Karl Berry.
2279
2280 2007-07-22  Ben Pfaff  <blp@gnu.org>
2281
2282         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
2283         case.
2284         Suggested by Eric Blake.
2285
2286 2007-07-22  Ben Pfaff  <blp@gnu.org>
2287
2288         New module: popcount.
2289         * MODULES.html.sh: Add popcount.
2290         * modules/popcount: New file.
2291         * modules/popcount-tests: New file.
2292         * tests/test-popcount.c: New file.
2293         * lib/popcount.h: New file.
2294         * m4/popcount.m4: New file.
2295
2296 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2297
2298         * build-aux/announce-gen: Update to GPLv3.
2299
2300         * build-aux/config.guess: Update from config.
2301
2302 2007-07-21  Bruno Haible  <bruno@clisp.org>
2303
2304         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
2305         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
2306
2307 2007-07-20  Jim Meyering  <jim@meyering.net>
2308
2309         * check-module: Diagnose a self-dependency.
2310
2311 2007-07-19  Bruno Haible  <bruno@clisp.org>
2312
2313         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
2314         empty.
2315         Reported by Eric Blake.
2316
2317 2007-07-18  Bruno Haible  <bruno@clisp.org>
2318
2319         * gnulib-tool: New options --po-base, --po-domain.
2320         (func_usage): Document them.
2321         (pobase, po_domain): New variables.
2322         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
2323         DEFAULT_TEXT_DOMAIN.
2324         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
2325         (func_import): Consider pobase and po_domain. Create a po/ directory.
2326         (func_create_testdir): Set pobase and po_domain to empty.
2327         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
2328         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
2329
2330 2007-07-18  Bruno Haible  <bruno@clisp.org>
2331
2332         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2333         EXTRA_DIST augmentation for files in build-aux/.
2334
2335 2007-07-16  Bruno Haible  <bruno@clisp.org>
2336
2337         * modules/lseek (License): Use the synonymous term "LGPLv2+".
2338         * modules/getdelim (License): Likewise.
2339
2340 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2341
2342         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
2343         * modules/d-type (License): Likewise.
2344         * modules/extensions (License): Likewise.
2345         * modules/fnmatch (License): Likewise.
2346         * modules/fseeko (License): Likewise.
2347         * modules/getaddrinfo (License): Likewise.
2348         * modules/getline (License): Likewise.
2349         * modules/getlogin_r (License): Likewise.
2350         * modules/getpass (License): Likewise.
2351         * modules/gettimeofday (License): Likewise.
2352         * modules/glob (License): Likewise.
2353         * modules/inet_ntop (License): Likewise.
2354         * modules/malloc (License): Likewise.
2355         * modules/malloca (License): Likewise.
2356         * modules/memmem (License): Likewise.
2357         * modules/mempcpy (License): Likewise.
2358         * modules/memset (License): Likewise.
2359         * modules/minmax (License): Likewise.
2360         * modules/mktime (License): Likewise.
2361         * modules/netinet_in (License): Likewise.
2362         * modules/pathmax (License): Likewise.
2363         * modules/poll (License): Likewise.
2364         * modules/regex (License): Likewise.
2365         * modules/snprintf (License): Likewise.
2366         * modules/stdbool (License): Likewise.
2367         * modules/stdint (License): Likewise.
2368         * modules/stdio (License): Likewise.
2369         * modules/strcase (License): Likewise.
2370         * modules/strcasestr (License): Likewise.
2371         * modules/strdup (License): Likewise.
2372         * modules/string (License): Likewise.
2373         * modules/strndup (License): Likewise.
2374         * modules/strnlen (License): Likewise.
2375         * modules/strpbrk (License): Likewise.
2376         * modules/strptime (License): Likewise.
2377         * modules/strsep (License): Likewise.
2378         * modules/sys_select (License): Likewise.
2379         * modules/sys_socket (License): Likewise.
2380         * modules/sys_stat (License): Likewise.
2381         * modules/sys_time (License): Likewise.
2382         * modules/time (License): Likewise.
2383         * modules/time_r (License): Likewise.
2384         * modules/timegm (License): Likewise.
2385         * modules/unistd (License): Likewise.
2386         * modules/vsnprintf (License): Likewise.
2387         * modules/wctype (License): Likewise.
2388
2389 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2390
2391         * modules/argz (License): LGPLv2+.
2392
2393 2007-07-15  Karl Berry  <karl@gnu.org>
2394
2395         * doc/gnulib.texi: revise node structure per new fdl.texi.
2396
2397 2007-07-14  Bruno Haible  <bruno@clisp.org>
2398
2399         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
2400         the output file.
2401         * lib/uniname/uninames.h: Regenerated.
2402
2403 2007-07-14  Karl Berry  <karl@gnu.org>
2404
2405         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
2406         omitting sectioning and index commands.
2407
2408 2007-07-13  Bruno Haible  <bruno@clisp.org>
2409
2410         New gnulib-tool option --more-symlinks.
2411         * gnulib-tool (func_usage): Document --more-symlinks.
2412         (do_copyrights): New variable.
2413         Recognize option --more-symlinks.
2414         (func_import): Don't add a copyright notice transform to
2415         sed_transform_lib_file if do_copyrights is empty.
2416
2417 2007-07-13  Bruno Haible  <bruno@clisp.org>
2418
2419         * lib/vasnprintf.c (decimal_point_char): Define also if
2420         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
2421         && !NEED_PRINTF_DIRECTIVE_A.
2422         Reported by Clemens Koller <clemens.koller@anagramm.de> via
2423         Gary V. Vaughan <gary@gnu.org>.
2424
2425 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2426
2427         * lib/inttypes_.h: Undo previous change, since it was fixed
2428         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
2429
2430 2007-07-13  Bruno Haible  <bruno@clisp.org>
2431
2432         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
2433         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
2434
2435 2007-07-13  Jim Meyering  <jim@meyering.net>
2436
2437         df: Don't fail for Tru64's "file-on-file mount".
2438         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
2439         so we fall through and use statfs instead.  Details here:
2440         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
2441         Reported by Albert Chin.
2442
2443 2007-07-13  Bruno Haible  <bruno@clisp.org>
2444
2445         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
2446         * modules/configmake (License): Likewise.
2447         * modules/gettext (License): Likewise.
2448         * modules/gettext-h (License): Likewise.
2449         * modules/include_next (License): Likewise.
2450         * modules/link-warning (License): Likewise.
2451         * modules/localcharset (License): Likewise.
2452         * modules/localename (License): Likewise.
2453         * modules/lock (License): Likewise.
2454         * modules/relocatable-lib-lgpl (License): Likewise.
2455         * modules/size_max (License): Likewise.
2456         * modules/vasnprintf (License): Likewise.
2457         * modules/wchar (License): Likewise.
2458         * modules/xsize (License): Likewise.
2459
2460 2007-07-13  Bruno Haible  <bruno@clisp.org>
2461
2462         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
2463         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
2464
2465 2007-07-12  Bruno Haible  <bruno@clisp.org>
2466
2467         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
2468         in the modules files.
2469
2470 2007-07-11  Karl Berry  <karl@gnu.org>
2471
2472         * MODULES.html.sh (func_module): use
2473          sed -e '\|^'"${includefile}"'$|d'
2474          instead of /.../d, to avoid errors on $includefile's containing /.
2475
2476 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
2477
2478         * gnulib-tool (func_import): Avoid duplication of --avoid
2479         statements
2480         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
2481         names to `_' in variable names.
2482
2483 2007-07-10  Eric Blake  <ebb9@byu.net>
2484
2485         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
2486         * NEWS: Document this change.
2487
2488 2007-07-08  Bruno Haible  <bruno@clisp.org>
2489
2490         Update to Unicode 5.0.
2491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
2492         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
2493         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
2494         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
2495         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
2496         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
2497         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
2498         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
2499         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
2500         U+10A3F, U+1D242..U+1D244.
2501         (nonspacing_table_ind): Update.
2502         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
2503         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
2504
2505 2007-07-08  Bruno Haible  <bruno@clisp.org>
2506
2507         Update to Unicode 5.0.
2508         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
2509         code transform. Extend the name index field of unicode_name_to_code and
2510         unicode_code_to_name from 16 to 24 bits.
2511         * lib/uniname/uniname.c (unicode_character_name,
2512         unicode_name_character): Add the range 0x12xxx to the code transform.
2513         * lib/uniname/uninames.h: Regenerated.
2514         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
2515
2516 2007-07-07  Bruno Haible  <bruno@clisp.org>
2517
2518         * modules/wcwidth-tests: New file.
2519         * tests/test-wcwidth.c: New file.
2520
2521         Work around MacOS X wcwidth() bug.
2522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
2523         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
2524         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
2525         original wcwidth in non-UTF-8 locales.
2526         * modules/wcwidth (Depends-on): Add localcharset, streq,
2527         uniwidth/width.
2528         * doc/functions/wcwidth.texi: Update.
2529
2530 2007-07-07  Bruno Haible  <bruno@clisp.org>
2531
2532         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
2533         (wcwidth): New declaration.
2534         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
2535         macros.
2536         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
2537         here. Prepare for creating <wchar.h> unconditionally.
2538         * modules/wchar (Depends-on): Add link-warning.
2539         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
2540         REPLACE_WCWIDTH, and GL_LINK_WARNING.
2541         * lib/wcwidth.h: Remove file.
2542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
2543         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
2544         * modules/wcwidth (Files): Remove lib/wcwidth.h.
2545         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
2546         (Include): Replace wcwidth.h with <wchar.h>.
2547         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
2548         * lib/mbchar.h: Don't include wcwidth.h.
2549         * lib/mbswidth.c: Likewise.
2550         * NEWS: Mention the change.
2551
2552 2007-07-07  Bruno Haible  <bruno@clisp.org>
2553
2554         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
2555         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
2556         definition with an external declaration.
2557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
2558         defined as a function. Remove AC_C_INLINE requirement.
2559         * modules/wcwidth (Files): Add lib/wcwidth.c.
2560         (Makefile.am): Remove redundant statement.
2561
2562 2007-07-07  Bruno Haible  <bruno@clisp.org>
2563
2564         * MODULES.html.sh (Unicode string functions): Add the new modules.
2565
2566         * tests/uniwidth/test-u32-strwidth.c: New file.
2567         * modules/uniwidth/u32-strwidth-tests: New file.
2568
2569         * lib/uniwidth/u32-strwidth.c: New file.
2570         * modules/uniwidth/u32-strwidth: New file.
2571
2572         * tests/uniwidth/test-u16-strwidth.c: New file.
2573         * modules/uniwidth/u16-strwidth-tests: New file.
2574
2575         * lib/uniwidth/u16-strwidth.c: New file.
2576         * modules/uniwidth/u16-strwidth: New file.
2577
2578         * tests/uniwidth/test-u8-strwidth.c: New file.
2579         * modules/uniwidth/u8-strwidth-tests: New file.
2580
2581         * lib/uniwidth/u8-strwidth.c: New file.
2582         * modules/uniwidth/u8-strwidth: New file.
2583
2584         * tests/uniwidth/test-u32-width.c: New file.
2585         * modules/uniwidth/u32-width-tests: New file.
2586
2587         * lib/uniwidth/u32-width.c: New file.
2588         * modules/uniwidth/u32-width: New file.
2589
2590         * tests/uniwidth/test-u16-width.c: New file.
2591         * modules/uniwidth/u16-width-tests: New file.
2592
2593         * lib/uniwidth/u16-width.c: New file.
2594         * modules/uniwidth/u16-width: New file.
2595
2596         * tests/uniwidth/test-u8-width.c: New file.
2597         * modules/uniwidth/u8-width-tests: New file.
2598
2599         * lib/uniwidth/u8-width.c: New file.
2600         * modules/uniwidth/u8-width: New file.
2601
2602         * tests/uniwidth/test-uc_width.c: New file.
2603         * modules/uniwidth/width-tests: New file.
2604
2605         * lib/uniwidth/width.c: New file, from GNU libiconv.
2606         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
2607         * modules/uniwidth/width: New file.
2608
2609         * lib/uniwidth.h: New file, from GNU libiconv.
2610         * modules/uniwidth/base: New file.
2611
2612 2007-07-07  Bruno Haible  <bruno@clisp.org>
2613
2614         * lib/uniname.h: New file, from GNU gettext.
2615         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
2616         * lib/uniname/uninames.h: New file, from GNU gettext.
2617         * lib/uniname/uniname.c: New file, from GNU gettext.
2618         * tests/uniname/test-uninames.sh: New file.
2619         * tests/uniname/test-uninames.c: New file, from GNU gettext.
2620         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
2621         * modules/uniname/base: New file.
2622         * modules/uniname/uniname: New file.
2623         * modules/uniname/uniname-tests: New file.
2624         * MODULES.html.sh (Unicode string functions): Add the new modules.
2625
2626 2007-07-06  Bruno Haible  <bruno@clisp.org>
2627
2628         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
2629
2630 2007-07-06  Bruno Haible  <bruno@clisp.org>
2631
2632         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
2633         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
2634         includes <cygwin/sys_time.h> which includes <sys/select.h> which
2635         include <sys/time.h>.
2636         Reported by Eric Blake.
2637
2638 2007-07-06  Eric Blake  <ebb9@byu.net>
2639
2640         Fix testing canonicalize on cygwin.
2641         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
2642         Revert patch from 2007-06-19.
2643         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
2644         canonicalize module is also in use.
2645         * tests/test-canonicalize.c: New file.
2646         * tests/test-canonicalize.sh: Likewise.
2647         * modules/canonicalize-tests: Likewise.
2648
2649 2007-07-06  Jim Meyering  <jim@meyering.net>
2650
2651         * lib/getugroups.c (getugroups): Detect getgrent failure.
2652         Adjust comment to reflect reality: this function may return -1.
2653
2654 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2655
2656         * build-aux/bootstrap (TP_URL,get_translations): Update to use
2657         the new TP address.
2658         (usage): Fix typo
2659         (gnulib_mk): New variable.
2660
2661 2007-07-05  Jim Meyering  <jim@meyering.net>
2662
2663         Don't let endgrent clobber errno, no matter how improbable.
2664         * lib/getugroups.c (getugroups): Save and restore errno around
2665         endgrent call.
2666
2667         Close the group DB even when failing with 2^31 or more members.
2668         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
2669
2670 2007-07-04  Jim Meyering  <jim@meyering.net>
2671
2672         * lib/getugroups.h: New file.
2673         * lib/getugroups.c: Include "getugroups.h".
2674         Remove uses of "register" keyword.
2675         Move local variable, "cp", down into scope where used.
2676         Give "username" parameter the "const" attribute.
2677         * modules/getugroups (Files): Add lib/getugroups.h
2678
2679 2007-07-04  Karl Berry  <karl@gnu.org>
2680
2681         * MODULES.html.sh (func_all_modules): Complete rename of
2682         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
2683
2684 2007-07-02  Bruno Haible  <bruno@clisp.org>
2685
2686         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
2687         mode, when inttypes.h comes from gnulib.
2688         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2689
2690 2007-07-02  Simon Josefsson  <simon@josefsson.org>
2691
2692         * NEWS: Mention lgpl module name change.
2693
2694         * modules/lgpl-2.1: Renamed from lgpl.
2695
2696         * NEWS: Mention gpl module name change.
2697
2698         * modules/gpl-3.0: New file, based on gpl-2.0.
2699
2700         * modules/gpl-2.0: Renamed from gpl.
2701
2702         * modules/gpl: Fix filename, doc/gpl.texi is now found at
2703         doc/gpl-2.0.texi.
2704
2705 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2706
2707         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
2708         #define __STDC_LIMIT_MACROS temporarily while including
2709         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
2710         Problem reported by Joel E. Denny in
2711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
2712
2713 2007-07-01  Bruno Haible  <bruno@clisp.org>
2714
2715         * lib/unistdio.h: New file.
2716         * lib/unistdio/u-asnprintf.h: New file.
2717         * lib/unistdio/u-asprintf.h: New file.
2718         * lib/unistdio/u-printf-args.c: New file.
2719         * lib/unistdio/u-printf-args.h: New file.
2720         * lib/unistdio/u-printf-parse.h: New file.
2721         * lib/unistdio/u-snprintf.h: New file.
2722         * lib/unistdio/u-sprintf.h: New file.
2723         * lib/unistdio/u-vasprintf.h: New file.
2724         * lib/unistdio/u-vsnprintf.h: New file.
2725         * lib/unistdio/u-vsprintf.h: New file.
2726         * lib/unistdio/ulc-asnprintf.c: New file.
2727         * lib/unistdio/ulc-asprintf.c: New file.
2728         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
2729         * lib/unistdio/ulc-printf-parse.c: New file.
2730         * lib/unistdio/ulc-snprintf.c: New file.
2731         * lib/unistdio/ulc-sprintf.c: New file.
2732         * lib/unistdio/ulc-vasnprintf.c: New file.
2733         * lib/unistdio/ulc-vasprintf.c: New file.
2734         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
2735         * lib/unistdio/ulc-vsnprintf.c: New file.
2736         * lib/unistdio/ulc-vsprintf.c: New file.
2737         * lib/unistdio/u8-asnprintf.c: New file.
2738         * lib/unistdio/u8-asprintf.c: New file.
2739         * lib/unistdio/u8-printf-parse.c: New file.
2740         * lib/unistdio/u8-snprintf.c: New file.
2741         * lib/unistdio/u8-sprintf.c: New file.
2742         * lib/unistdio/u8-vasnprintf.c: New file.
2743         * lib/unistdio/u8-vasprintf.c: New file.
2744         * lib/unistdio/u8-vsnprintf.c: New file.
2745         * lib/unistdio/u8-vsprintf.c: New file.
2746         * lib/unistdio/u8-u8-asnprintf.c: New file.
2747         * lib/unistdio/u8-u8-asprintf.c: New file.
2748         * lib/unistdio/u8-u8-snprintf.c: New file.
2749         * lib/unistdio/u8-u8-sprintf.c: New file.
2750         * lib/unistdio/u8-u8-vasnprintf.c: New file.
2751         * lib/unistdio/u8-u8-vasprintf.c: New file.
2752         * lib/unistdio/u8-u8-vsnprintf.c: New file.
2753         * lib/unistdio/u8-u8-vsprintf.c: New file.
2754         * lib/unistdio/u16-asnprintf.c: New file.
2755         * lib/unistdio/u16-asprintf.c: New file.
2756         * lib/unistdio/u16-printf-parse.c: New file.
2757         * lib/unistdio/u16-snprintf.c: New file.
2758         * lib/unistdio/u16-sprintf.c: New file.
2759         * lib/unistdio/u16-vasnprintf.c: New file.
2760         * lib/unistdio/u16-vasprintf.c: New file.
2761         * lib/unistdio/u16-vsnprintf.c: New file.
2762         * lib/unistdio/u16-vsprintf.c: New file.
2763         * lib/unistdio/u16-u16-asnprintf.c: New file.
2764         * lib/unistdio/u16-u16-asprintf.c: New file.
2765         * lib/unistdio/u16-u16-snprintf.c: New file.
2766         * lib/unistdio/u16-u16-sprintf.c: New file.
2767         * lib/unistdio/u16-u16-vasnprintf.c: New file.
2768         * lib/unistdio/u16-u16-vasprintf.c: New file.
2769         * lib/unistdio/u16-u16-vsnprintf.c: New file.
2770         * lib/unistdio/u16-u16-vsprintf.c: New file.
2771         * lib/unistdio/u32-asnprintf.c: New file.
2772         * lib/unistdio/u32-asprintf.c: New file.
2773         * lib/unistdio/u32-printf-parse.c: New file.
2774         * lib/unistdio/u32-snprintf.c: New file.
2775         * lib/unistdio/u32-sprintf.c: New file.
2776         * lib/unistdio/u32-vasnprintf.c: New file.
2777         * lib/unistdio/u32-vasprintf.c: New file.
2778         * lib/unistdio/u32-vsnprintf.c: New file.
2779         * lib/unistdio/u32-vsprintf.c: New file.
2780         * lib/unistdio/u32-u32-asnprintf.c: New file.
2781         * lib/unistdio/u32-u32-asprintf.c: New file.
2782         * lib/unistdio/u32-u32-snprintf.c: New file.
2783         * lib/unistdio/u32-u32-sprintf.c: New file.
2784         * lib/unistdio/u32-u32-vasnprintf.c: New file.
2785         * lib/unistdio/u32-u32-vasprintf.c: New file.
2786         * lib/unistdio/u32-u32-vsnprintf.c: New file.
2787         * lib/unistdio/u32-u32-vsprintf.c: New file.
2788         * tests/unistdio/test-ulc-asnprintf1.c: New file.
2789         * tests/unistdio/test-ulc-asnprintf1.h: New file.
2790         * tests/unistdio/test-ulc-printf1.h: New file.
2791         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
2792         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
2793         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
2794         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
2795         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
2796         * tests/unistdio/test-ulc-vasprintf1.c: New file.
2797         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
2798         * tests/unistdio/test-ulc-vsprintf1.c: New file.
2799         * tests/unistdio/test-u8-asnprintf1.c: New file.
2800         * tests/unistdio/test-u8-asnprintf1.h: New file.
2801         * tests/unistdio/test-u8-printf1.h: New file.
2802         * tests/unistdio/test-u8-vasnprintf1.c: New file.
2803         * tests/unistdio/test-u8-vasnprintf2.c: New file.
2804         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
2805         * tests/unistdio/test-u8-vasnprintf3.c: New file.
2806         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
2807         * tests/unistdio/test-u8-vasprintf1.c: New file.
2808         * tests/unistdio/test-u8-vsnprintf1.c: New file.
2809         * tests/unistdio/test-u8-vsprintf1.c: New file.
2810         * tests/unistdio/test-u16-asnprintf1.c: New file.
2811         * tests/unistdio/test-u16-asnprintf1.h: New file.
2812         * tests/unistdio/test-u16-printf1.h: New file.
2813         * tests/unistdio/test-u16-vasnprintf1.c: New file.
2814         * tests/unistdio/test-u16-vasnprintf2.c: New file.
2815         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
2816         * tests/unistdio/test-u16-vasnprintf3.c: New file.
2817         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
2818         * tests/unistdio/test-u16-vasprintf1.c: New file.
2819         * tests/unistdio/test-u16-vsnprintf1.c: New file.
2820         * tests/unistdio/test-u16-vsprintf1.c: New file.
2821         * tests/unistdio/test-u32-asnprintf1.c: New file.
2822         * tests/unistdio/test-u32-asnprintf1.h: New file.
2823         * tests/unistdio/test-u32-printf1.h: New file.
2824         * tests/unistdio/test-u32-vasnprintf1.c: New file.
2825         * tests/unistdio/test-u32-vasnprintf2.c: New file.
2826         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
2827         * tests/unistdio/test-u32-vasnprintf3.c: New file.
2828         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
2829         * tests/unistdio/test-u32-vasprintf1.c: New file.
2830         * tests/unistdio/test-u32-vsnprintf1.c: New file.
2831         * tests/unistdio/test-u32-vsprintf1.c: New file.
2832         * modules/unistdio/base: New file.
2833         * modules/unistdio/u-printf-args: New file.
2834         * modules/unistdio/ulc-asnprintf: New file.
2835         * modules/unistdio/ulc-asprintf: New file.
2836         * modules/unistdio/ulc-fprintf: New file.
2837         * modules/unistdio/ulc-printf-parse: New file.
2838         * modules/unistdio/ulc-snprintf: New file.
2839         * modules/unistdio/ulc-sprintf: New file.
2840         * modules/unistdio/ulc-vasnprintf: New file.
2841         * modules/unistdio/ulc-vasprintf: New file.
2842         * modules/unistdio/ulc-vfprintf: New file.
2843         * modules/unistdio/ulc-vsnprintf: New file.
2844         * modules/unistdio/ulc-vsprintf: New file.
2845         * modules/unistdio/u8-asnprintf: New file.
2846         * modules/unistdio/u8-asprintf: New file.
2847         * modules/unistdio/u8-printf-parse: New file.
2848         * modules/unistdio/u8-snprintf: New file.
2849         * modules/unistdio/u8-sprintf: New file.
2850         * modules/unistdio/u8-vasnprintf: New file.
2851         * modules/unistdio/u8-vasprintf: New file.
2852         * modules/unistdio/u8-vsnprintf: New file.
2853         * modules/unistdio/u8-vsprintf: New file.
2854         * modules/unistdio/u8-u8-asnprintf: New file.
2855         * modules/unistdio/u8-u8-asprintf: New file.
2856         * modules/unistdio/u8-u8-snprintf: New file.
2857         * modules/unistdio/u8-u8-sprintf: New file.
2858         * modules/unistdio/u8-u8-vasnprintf: New file.
2859         * modules/unistdio/u8-u8-vasprintf: New file.
2860         * modules/unistdio/u8-u8-vsnprintf: New file.
2861         * modules/unistdio/u8-u8-vsprintf: New file.
2862         * modules/unistdio/u16-asnprintf: New file.
2863         * modules/unistdio/u16-asprintf: New file.
2864         * modules/unistdio/u16-printf-parse: New file.
2865         * modules/unistdio/u16-snprintf: New file.
2866         * modules/unistdio/u16-sprintf: New file.
2867         * modules/unistdio/u16-vasnprintf: New file.
2868         * modules/unistdio/u16-vasprintf: New file.
2869         * modules/unistdio/u16-vsnprintf: New file.
2870         * modules/unistdio/u16-vsprintf: New file.
2871         * modules/unistdio/u16-u16-asnprintf: New file.
2872         * modules/unistdio/u16-u16-asprintf: New file.
2873         * modules/unistdio/u16-u16-snprintf: New file.
2874         * modules/unistdio/u16-u16-sprintf: New file.
2875         * modules/unistdio/u16-u16-vasnprintf: New file.
2876         * modules/unistdio/u16-u16-vasprintf: New file.
2877         * modules/unistdio/u16-u16-vsnprintf: New file.
2878         * modules/unistdio/u16-u16-vsprintf: New file.
2879         * modules/unistdio/u32-asnprintf: New file.
2880         * modules/unistdio/u32-asprintf: New file.
2881         * modules/unistdio/u32-printf-parse: New file.
2882         * modules/unistdio/u32-snprintf: New file.
2883         * modules/unistdio/u32-sprintf: New file.
2884         * modules/unistdio/u32-vasnprintf: New file.
2885         * modules/unistdio/u32-vasprintf: New file.
2886         * modules/unistdio/u32-vsnprintf: New file.
2887         * modules/unistdio/u32-vsprintf: New file.
2888         * modules/unistdio/u32-u32-asnprintf: New file.
2889         * modules/unistdio/u32-u32-asprintf: New file.
2890         * modules/unistdio/u32-u32-snprintf: New file.
2891         * modules/unistdio/u32-u32-sprintf: New file.
2892         * modules/unistdio/u32-u32-vasnprintf: New file.
2893         * modules/unistdio/u32-u32-vasprintf: New file.
2894         * modules/unistdio/u32-u32-vsnprintf: New file.
2895         * modules/unistdio/u32-u32-vsprintf: New file.
2896         * modules/unistdio/ulc-asnprintf-tests: New file.
2897         * modules/unistdio/ulc-vasnprintf-tests: New file.
2898         * modules/unistdio/ulc-vasprintf-tests: New file.
2899         * modules/unistdio/ulc-vsnprintf-tests: New file.
2900         * modules/unistdio/ulc-vsprintf-tests: New file.
2901         * modules/unistdio/u8-asnprintf-tests: New file.
2902         * modules/unistdio/u8-vasnprintf-tests: New file.
2903         * modules/unistdio/u8-vasprintf-tests: New file.
2904         * modules/unistdio/u8-vsnprintf-tests: New file.
2905         * modules/unistdio/u8-vsprintf-tests: New file.
2906         * modules/unistdio/u16-asnprintf-tests: New file.
2907         * modules/unistdio/u16-vasnprintf-tests: New file.
2908         * modules/unistdio/u16-vasprintf-tests: New file.
2909         * modules/unistdio/u16-vsnprintf-tests: New file.
2910         * modules/unistdio/u16-vsprintf-tests: New file.
2911         * modules/unistdio/u32-asnprintf-tests: New file.
2912         * modules/unistdio/u32-vasnprintf-tests: New file.
2913         * modules/unistdio/u32-vasprintf-tests: New file.
2914         * modules/unistdio/u32-vsnprintf-tests: New file.
2915         * modules/unistdio/u32-vsprintf-tests: New file.
2916         * MODULES.html.sh (Unicode string functions): Add the new modules.
2917
2918 2007-07-01  Bruno Haible  <bruno@clisp.org>
2919
2920         * lib/sprintf.c (sprintf): Limit the available length estimation,
2921         to avoid address wraparound.
2922         * lib/vsprintf.c (vsprintf): Likewise.
2923         * modules/sprintf-posix (Dependencies): Add stdint.
2924         * modules/vsprintf-posix (Dependencies): Likewise.
2925
2926 2007-07-01  Bruno Haible  <bruno@clisp.org>
2927
2928         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
2929         Windows PATH as well. Conservative double-quoting. Comments.
2930
2931 2007-07-01  Bruno Haible  <bruno@clisp.org>
2932             Eric Blake  <ebb9@byu.net>
2933             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2934
2935         * gnulib-tool (self_abspathname): Fix algorithm to cope with
2936         empty components in $PATH, denoting '.'.
2937
2938 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2939
2940         * gnulib-tool: Fix indentation.
2941         (func_create_megatestdir): Likewise.
2942         Report by Bruno Haible.
2943
2944 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2945
2946         Sync from Automake.
2947         * build-aux/gnupload: Fix shell portability issues with for loops.
2948         Report by Karl Berry.
2949
2950 2007-06-29  Simon Josefsson  <simon@josefsson.org>
2951
2952         * build-aux/maint.mk (POURL): Use translationproject.org.
2953
2954 2007-06-27  Simon Josefsson  <simon@josefsson.org>
2955             Bruno Haible  <bruno@clisp.org>
2956
2957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
2958         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
2959         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
2960         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
2961         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
2962
2963 2007-06-27  Bruno Haible  <bruno@clisp.org>
2964
2965         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
2966         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
2967
2968 2007-06-26  Karl Berry  <karl@gnu.org>
2969
2970         * MODULES.html.sh: remove xreadlink-with-size.
2971
2972 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
2975         method that I hope also handles the double-include problem noted
2976         by Bruno Haible in
2977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
2978
2979 2007-06-23  Bruno Haible  <bruno@clisp.org>
2980
2981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2982         Don't let the 'mostlyclean' target fail if the last subdirectory could
2983         not be removed.
2984         Reported by Karl Berry.
2985
2986 2007-06-23  Bruno Haible  <bruno@clisp.org>
2987
2988         * gnulib-tool (echo): Add a speedier workaround for ksh.
2989         * tests/test-echo.sh: Likewise.
2990
2991 2007-06-23  Bruno Haible  <bruno@clisp.org>
2992
2993         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
2994         * tests/test-echo.sh: Likewise.
2995
2996 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2997
2998         * gnulib-tool (IFS): Initialize early, so we don't set it to
2999         empty later.
3000         (self_abspathname): Rewrite algorithm to set it, reindent.
3001         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
3002         (func_create_megatestdir): Merge some sed scripts.
3003
3004 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3005
3006         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
3007         exposed by Sun Studio 11 cc on Solaris 8.
3008
3009 2007-06-22  Bruno Haible  <bruno@clisp.org>
3010
3011         * gnulib-tool (echo): Ensure the echo primitive does not interpret
3012         backslashes.
3013         * tests/test-echo.sh: New file.
3014
3015 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3016
3017         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
3018         simplify `sed_replace_build_aux' scripts, they are portable but
3019         echoing them with `echo' is not.
3020         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
3021
3022 2007-06-21  Karl Berry  <karl@gnu.org>
3023
3024         * config/srclist.txt: guess we can't handle the licenses via
3025         srclist at the moment.
3026
3027 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3028
3029         * MODULES.html.sh: Add include_next.
3030         * modules/include_next: New file.
3031
3032 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
3035         INCLUDE_NEXT.
3036         (gl_CHECK_NEXT_HEADERS): New macro.
3037         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
3038         the obsolescent gl_ABSOLUTE_HEADER.
3039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3040         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3041         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
3042         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3043         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3044         * m4/math_h.m4 (gl_MATH_H): Likewise.
3045         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3046         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3047         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3048         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3049         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3050         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3051         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3052         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3054         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3056         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
3057         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3058         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3059         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3060         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3061         * m4/inttypes.m4 (gl_INTTYPES_H): Define
3062         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
3063         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
3064         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
3065         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
3066         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
3067         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
3068         * lib/float_.h: Likewise.
3069         * lib/inttypes_.h: Likewise.
3070         * lib/math_.h: Likewise.
3071         * lib/search_.h: Likewise.
3072         * lib/signal_.h: Likewise.
3073         * lib/stdint_.h: Likewise.
3074         * lib/stdio_.h: Likewise.
3075         * lib/stdlib_.h: Likewise.
3076         * lib/string_.h: Likewise.
3077         * lib/sys_stat_.h: Likewise.
3078         * lib/sys_time_.h: Likewise.
3079         * lib/time_.h: Likewise.
3080         * lib/unistd_.h: Likewise.
3081         * lib/wchar_.h: Likewise.
3082         * lib/wctype_.h: Likewise.
3083         * lib/dirent_.h: Likewise.
3084         * lib/iconv_.h: Likewise.
3085         * lib/locale_.h: Likewise.
3086         * lib/netinet_in_.h: Likewise.
3087         * lib/sys_select_.h: Likewise.
3088         * lib/sys_socket_.h: Likewise.
3089         * lib/sysexits_.h: Likewise.
3090         * modules/fcntl (Depends-on): Depend on include_next, not
3091         absolute_header.
3092         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
3093         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
3094         * modules/fchdir: Likewise.
3095         * modules/float: Likewise.
3096         * modules/iconv_open: Likewise.
3097         * modules/inttypes: Likewise.
3098         * modules/locale: Likewise.
3099         * modules/math: Likewise.
3100         * modules/netinet_in: Likewise.
3101         * modules/search: Likewise.
3102         * modules/signal: Likewise.
3103         * modules/stdint: Likewise.
3104         * modules/stdio: Likewise.
3105         * modules/stdlib: Likewise.
3106         * modules/string: Likewise.
3107         * modules/sys_select: Likewise.
3108         * modules/sys_socket: Likewise.
3109         * modules/sys_stat: Likewise.
3110         * modules/sys_time: Likewise.
3111         * modules/sysexits: Likewise.
3112         * modules/time: Likewise.
3113         * modules/unistd: Likewise.
3114         * modules/wchar: Likewise.
3115         * modules/wctype: Likewise.
3116         * modules/sys_stat: Change maintainer to "all".
3117         * modules/unistd: Likewise.
3118
3119 2007-06-20  Karl Berry  <karl@gnu.org>
3120
3121         * config/srclist.txt: track www changes in license files.
3122
3123 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
3124
3125         * build-aux/bootstrap: Remove stray dot.
3126         Make sure build_aux settings are honored when linking
3127         gnulib_extra_files.
3128
3129 2007-06-19  Eric Blake  <ebb9@byu.net>
3130
3131         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
3132         Allow compilation on cygwin.
3133
3134 2007-06-19  Jim Meyering  <jim@meyering.net>
3135
3136         xreadlink-with-size: Remove module.  No longer used.
3137         Ex-callers now use xreadlink or mreadlink-with-size.
3138         * modules/xreadlink-with-size: Remove module.
3139         * lib/xreadlink-with-size.c: Remove file.
3140         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
3141         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
3142         just before the function definition *is* accurate.
3143
3144         Eliminate one way canonicalize_filename_mode could exit.
3145         * lib/canonicalize.c (canonicalize_filename_mode):
3146         Use mreadlink_with_size, not xreadlink_with_size.
3147
3148 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
3149
3150         Detect porting problems to FreeBSD/arm, which has time_t wider than
3151         long int.  Original problem reported for GNU diff by Xin Li in
3152         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
3153         * modules/getdate (Depends-on): Add intprops, verify.
3154         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
3155         is an integer type no wider than long int.
3156
3157 2007-06-18  Jim Meyering  <jim@meyering.net>
3158
3159         New module: mreadlink-with-size.
3160         * MODULES.html.sh: Add mreadlink-with-size.
3161         * modules/mreadlink-with-size: New module
3162         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
3163         not xreadlink-with-size.
3164         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
3165
3166 2007-06-16  Bruno Haible  <bruno@clisp.org>
3167
3168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
3169         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
3170         Reported by Gary V. Vaughan <gary@gnu.org>.
3171
3172 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3173
3174         Revamp lchown so that it lives in unistd.h where it belongs.
3175         * lib/lchown.h: Remove.
3176         * lib/dirchownmod.c: Don't include lib/lchown.h.
3177         * lib/fchownat.c: Likewise.
3178         * lib/openat.c: Likewise.
3179         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
3180         does not follow symlinks.
3181         (EOPNOTSUPP): Define if not defined.
3182         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
3183         is defined to 0.
3184         (lchown): New decl.
3185         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
3186         Do not check for lchown decl.
3187         Set REPLACE_LCHOWN.
3188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
3189         REPLACE_LCHOWN.
3190         * modules/chown: Make it clear it follows symlinks.
3191         * modules/lchown: Make it clear it doesn't follow symlinks.
3192         (Files): Remove lib/lchown.h
3193         (Depends-on): Add unistd.
3194         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
3195         (Include): Include <unistd.h>, not "lchown.h".
3196         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
3197         REPLACE_LCHOWN.
3198
3199 2007-06-15  Jim Meyering  <jim@meyering.net>
3200
3201         Change license (GPL to LGPL) of fsusage and dependents.
3202         * modules/fsusage (License): Change to LGPL.
3203         * modules/full-read (License): Likewise.
3204         * modules/full-write (License): Likewise.
3205         * modules/safe-read (License): Likewise.
3206         * modules/safe-write (License): Likewise.
3207
3208 2007-06-14  Ben Pfaff  <blp@gnu.org>
3209
3210         Missing part of allocsa -> malloca transition.
3211         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
3212         gl_MALLOCA.
3213
3214 2007-06-12  Bruno Haible  <bruno@clisp.org>
3215
3216         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
3217         to ia64, x86_64, i386.
3218         Reported by Eric Blake.
3219
3220 2007-06-12  Bruno Haible  <bruno@clisp.org>
3221
3222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
3223         cross-compiling to x86_64.
3224
3225 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
3226
3227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
3228         glitch reported by Ralf Wildenhues in
3229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
3230
3231         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
3232         Vin Shelton.
3233
3234 2007-06-11  Bruno Haible  <bruno@clisp.org>
3235
3236         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
3237         replacement string.
3238         Reported by Eric Blake.
3239
3240 2007-06-10  Bruno Haible  <bruno@clisp.org>
3241
3242         Prepare vasnprintf code for use with Unicode strings.
3243         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
3244         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
3245         TYPE_U32_STRING.
3246         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
3247         a_u32_string variants.
3248         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
3249         * lib/printf-args.c: Don't include config.h and the specification
3250         header if PRINTF_FETCHARGS is already defined.
3251         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
3252         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
3253         TYPE_U16_STRING, TYPE_U32_STRING.
3254         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
3255         u16_directive, u16_directives, u32_directive, u32_directives): New
3256         types.
3257         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
3258         New declarations.
3259         * lib/printf-parse.c: Don't include config.h and the specification
3260         header if PRINTF_PARSE is already defined. Eliminate the set of
3261         parameters for WIDE_CHAR_VERSION; the user of this file must provide
3262         them now. Include c-ctype.h.
3263         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
3264         directive and CHAR_T_ONLY_ASCII.
3265         * lib/vasnprintf.c: Don't include config.h and the specification header
3266         if VASNPRINTF is already defined.
3267         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
3268         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
3269         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
3270         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
3271         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
3272         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
3273         code accordingly.
3274         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
3275         pad_ourselves also in this case, with the 'c' and 's' directives, and
3276         with a different notion of "width".
3277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
3278
3279 2007-06-10  Bruno Haible  <bruno@clisp.org>
3280
3281         * modules/unistr/u32-mbsnlen: New file.
3282         * lib/unistr/u32-mbsnlen.c: New file.
3283
3284         * modules/unistr/u16-mbsnlen: New file.
3285         * lib/unistr/u16-mbsnlen.c: New file.
3286
3287         * modules/unistr/u8-mbsnlen: New file.
3288         * lib/unistr/u8-mbsnlen.c: New file.
3289
3290         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
3291         declarations.
3292
3293 2007-06-10  Bruno Haible  <bruno@clisp.org>
3294
3295         * lib/string_.h (mbsnlen): New declaration.
3296         * lib/mbsnlen.c: New file.
3297         * m4/mbsnlen.m4: New file.
3298         * modules/mbsnlen: New file.
3299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
3300         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
3301         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
3302
3303 2007-06-10  Bruno Haible  <bruno@clisp.org>
3304
3305         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
3306
3307 2007-06-10  Bruno Haible  <bruno@clisp.org>
3308
3309         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
3310         * lib/mbuiter.h: Likewise.
3311
3312 2007-06-10  Bruno Haible  <bruno@clisp.org>
3313
3314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
3315         declaration.
3316
3317 2007-06-10  Karl Berry  <karl@gnu.org>
3318
3319         * config/srclist.txt: remove gettext entries, Bruno prefers
3320         to update individually.
3321
3322 2007-06-10  Bruno Haible  <bruno@clisp.org>
3323
3324         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
3325         'maxlen'. Ensure only length + width bytes are allocated, not
3326         length + 1 + width.
3327
3328 2007-06-09  Bruno Haible  <bruno@clisp.org>
3329
3330         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
3331         (CHAR_T): Remove macro.
3332         (VASNPRINTF): Update.
3333
3334 2007-06-09  Bruno Haible  <bruno@clisp.org>
3335
3336         * MODULES.html.sh (Unicode string functions): Add the new modules.
3337
3338         * modules/uniconv/u32-conv-to-enc: New file.
3339         * lib/uniconv/u32-conv-to-enc.c: New file.
3340         * modules/uniconv/u32-conv-to-enc-tests: New file.
3341         * tests/uniconv/test-u32-conv-to-enc.c: New file.
3342
3343         * modules/uniconv/u16-conv-to-enc: New file.
3344         * lib/uniconv/u16-conv-to-enc.c: New file.
3345         * lib/uniconv/u-conv-to-enc.h: New file.
3346         * modules/uniconv/u16-conv-to-enc-tests: New file.
3347         * tests/uniconv/test-u16-conv-to-enc.c: New file.
3348
3349         * modules/uniconv/u8-conv-to-enc: New file.
3350         * lib/uniconv/u8-conv-to-enc.c: New file.
3351         * modules/uniconv/u8-conv-to-enc-tests: New file.
3352         * tests/uniconv/test-u8-conv-to-enc.c: New file.
3353
3354         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
3355         u32_conv_to_encoding): New declarations.
3356
3357 2007-06-09  Bruno Haible  <bruno@clisp.org>
3358
3359         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
3360
3361 2007-06-09  Bruno Haible  <bruno@clisp.org>
3362
3363         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
3364         * modules/malloca: Renamed from modules/allocsa, updated.
3365         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
3366         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
3367         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
3368         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
3369         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
3370         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
3371         * modules/xmalloca: Renamed from modules/xallocsa, updated.
3372         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
3373         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
3374         * modules/c-strcasestr (Depends-on): Update.
3375         * lib/c-strcasestr.c: Update.
3376         * modules/c-strstr (Depends-on): Update.
3377         * lib/c-strstr.c: Update.
3378         * modules/canonicalize-lgpl (Depends-on): Update.
3379         * lib/canonicalize-lgpl.c: Update.
3380         * modules/clean-temp (Depends-on): Update.
3381         * lib/clean-temp.c: Update.
3382         * modules/csharpcomp (Depends-on): Update.
3383         * lib/csharpcomp.c: Update.
3384         * modules/csharpexec (Depends-on): Update.
3385         * lib/csharpexec.c: Update.
3386         * modules/javacomp (Depends-on): Update.
3387         * lib/javacomp.c: Update.
3388         * modules/javaexec (Depends-on): Update.
3389         * lib/javaexec.c: Update.
3390         * modules/mbscasestr (Depends-on): Update.
3391         * lib/mbscasestr.c: Update.
3392         * modules/mbsstr (Depends-on): Update.
3393         * lib/mbsstr.c: Update.
3394         * modules/setenv (Depends-on): Update.
3395         * lib/setenv.c: Update.
3396         * modules/strcasestr (Depends-on): Update.
3397         * lib/strcasestr.c: Update.
3398         * modules/striconveha (Depends-on): Update.
3399         * lib/striconveha.c: Update.
3400         * modules/relocatable-prog-wrapper (Files): Update.
3401         * lib/relocwrapper.c: Update.
3402         * build-aux/install-reloc: Update.
3403         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
3404
3405 2007-06-08  Bruno Haible  <bruno@clisp.org>
3406
3407         Port to uClibc.
3408         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
3409         * lib/fpurge.c (fpurge): Likewise.
3410         * lib/freading.c (freading): Likewise.
3411         * lib/fseeko.c (rpl_fseeko): Likewise.
3412         * lib/fseterr.c (fseterr): Likewise.
3413         * lib/fwriting.c (fwriting): Likewise.
3414         * tests/test-fflush.c (main): Avoid a failure on uClibc.
3415
3416 2007-06-08  Bruno Haible  <bruno@clisp.org>
3417
3418         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
3419         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
3420         * modules/gettext (Files): Add m4/intlmacosx.m4.
3421
3422 2007-06-07  Bruno Haible  <bruno@clisp.org>
3423
3424         * modules/localename-tests: New file.
3425         * tests/test-localename.c: New file.
3426
3427         New module 'localename'.
3428         * lib/localename.h: New file.
3429         * lib/localename.c: New file, from GNU gettext.
3430         * m4/localename.m4: New file.
3431         * modules/localename: New file.
3432
3433 2007-06-07  Bruno Haible  <bruno@clisp.org>
3434
3435         Work around the lack of <wchar.h> on some builds of uClibc.
3436         * doc/headers/wchar.texi: Update.
3437         * lib/wchar_.h: Include <wchar.h> only if it exists.
3438         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
3439         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
3440         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
3441         doesn't exist.
3442         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
3443         * modules/mbfile (Depends-on): Add wchar.
3444         * modules/mbiter (Depends-on): Likewise.
3445         * modules/mbuiter (Depends-on): Likewise.
3446         Reported by Simon Josefsson.
3447
3448 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         Work around problem reported by Steven M. Schweda in
3451         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
3452         Tru64 5.1B with the Compaq compiler environment installed declares
3453         an 'isblank' function but does not define it in the C library.
3454         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
3455         * lib/regex_internal.h (isblank): Likewise.
3456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
3457         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3458
3459 2007-06-05  Bruno Haible  <bruno@clisp.org>
3460
3461         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
3462         ia64.
3463         * modules/printf-safe: New file.
3464         * modules/fprintf-posix (Depends-on): Add printf-safe.
3465         * modules/printf-posix (Depends-on): Likewise.
3466         * modules/snprintf-posix (Depends-on): Likewise.
3467         * modules/sprintf-posix (Depends-on): Likewise.
3468         * modules/vasnprintf-posix (Depends-on): Likewise.
3469         * modules/vasprintf-posix (Depends-on): Likewise.
3470         * modules/vfprintf-posix (Depends-on): Likewise.
3471         * modules/vprintf-posix (Depends-on): Likewise.
3472         * modules/vsnprintf-posix (Depends-on): Likewise.
3473         * modules/vsprintf-posix (Depends-on): Likewise.
3474         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3475         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
3476         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
3477         "no" on i386, x86_64, ia64.
3478         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
3479         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3480         on i386, x86_64, ia64.
3481         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
3482         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3483         on i386, x86_64, ia64.
3484         * tests/test-vasnprintf-posix.c: Include float.h.
3485         (LDBL80_WORDS): New macro.
3486         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3487         on i386, x86_64, ia64.
3488         * tests/test-vasprintf-posix.c: Include float.h.
3489         (LDBL80_WORDS): New macro.
3490         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3491         on i386, x86_64, ia64.
3492         * tests/test-snprintf-posix.c: Include float.h.
3493         * tests/test-sprintf-posix.c: Likewise.
3494         * tests/test-vsnprintf-posix.c: Likewise.
3495         * tests/test-vsprintf-posix.c: Likewise.
3496
3497 2007-06-05  Bruno Haible  <bruno@clisp.org>
3498
3499         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
3500         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
3501         non-IEEE numbers on i386, x86_64, ia64.
3502         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
3503         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
3504         * tests/test-isnanl.h: Include float.h.
3505         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
3506
3507 2007-06-05  Bruno Haible  <bruno@clisp.org>
3508
3509         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
3510         also the %a / %A. Handle the %a / %A code before this extra handling.
3511
3512 2007-06-05  Bruno Haible  <bruno@clisp.org>
3513
3514         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
3515         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
3516
3517 2007-06-05  Bruno Haible  <bruno@clisp.org>
3518
3519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
3520         typo in variable name.
3521
3522 2007-06-05  Eric Blake  <ebb9@byu.net>
3523
3524         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
3525         Reported by Simon Josefsson.
3526
3527 2007-06-04  Bruno Haible  <bruno@clisp.org>
3528
3529         Avoid test failures on some PowerPC platforms.
3530         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
3531         Define differently for PowerPC.
3532         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
3533         Reported by Gary V. Vaughan <gary@gnu.org>.
3534
3535 2007-06-02  Bruno Haible  <bruno@clisp.org>
3536
3537         Fix test-stdint failure on FreeBSD/ia64.
3538         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
3539         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
3540         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
3541         * doc/headers/stdint.texi: Update.
3542
3543 2007-06-01  Bruno Haible  <bruno@clisp.org>
3544
3545         * tests/test-binary-io.c (main): Pass a third argument to open().
3546         Reported by Gary V. Vaughan <gary@gnu.org>.
3547
3548 2007-06-01  Bruno Haible  <bruno@clisp.org>
3549
3550         * doc/functions/frexpl.texi: Update for mingw.
3551
3552 2007-06-01  Bruno Haible  <bruno@clisp.org>
3553
3554         * tests/test-lseek.c (main): Disable test of errno for invalid third
3555         argument.
3556         * doc/functions/lseek.texi: Update.
3557         Reported by Gary V. Vaughan <gary@gnu.org>.
3558
3559 2007-05-28  Bruno Haible  <bruno@clisp.org>
3560
3561         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
3562
3563 2007-05-31  Eric Blake  <ebb9@byu.net>
3564
3565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
3566         cross compiling.
3567
3568 2007-05-30  Eric Blake  <ebb9@byu.net>
3569         and Bruno Haible  <bruno@clisp.org>
3570
3571         Work around mingw test failures exposed by m4-1.4.9b.
3572         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
3573         * tests/test-unistd.c: Disable uid_t and git_t tests for the
3574         moment.
3575
3576 2007-05-30  Bruno Haible  <bruno@clisp.org>
3577
3578         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
3579         assuming that they are closed. Needed on HP-UX 11.
3580
3581 2007-05-29  Bruno Haible  <bruno@clisp.org>
3582
3583         Fix a problem with #include_next.
3584         * lib/dirent_.h: Split the double-inclusion guard.
3585         * lib/fcntl_.h: Likewise.
3586         * lib/float_.h: Likewise.
3587         * lib/iconv_.h: Likewise.
3588         * lib/inttypes_.h: Likewise.
3589         * lib/locale_.h: Likewise.
3590         * lib/math_.h: Likewise.
3591         * lib/netinet_in_.h: Likewise.
3592         * lib/search_.h: Likewise.
3593         * lib/signal_.h: Likewise.
3594         * lib/stdint_.h: Likewise.
3595         * lib/stdio_.h: Likewise.
3596         * lib/stdlib_.h: Likewise.
3597         * lib/string_.h: Likewise.
3598         * lib/sys_select_.h: Likewise.
3599         * lib/sys_socket_.h: Likewise.
3600         * lib/sys_stat_.h: Likewise.
3601         * lib/sys_time_.h: Likewise.
3602         * lib/sysexits_.h: Likewise.
3603         * lib/time_.h: Likewise.
3604         * lib/unistd_.h: Likewise.
3605         * lib/wchar_.h: Likewise.
3606         * lib/wctype_.h: Likewise.
3607
3608 2007-05-29  Bruno Haible  <bruno@clisp.org>
3609
3610         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
3611         for the moment.
3612
3613 2007-05-29  Bruno Haible  <bruno@clisp.org>
3614
3615         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
3616         invocation.
3617         Reported by Eric Blake.
3618
3619 2007-05-29  Bruno Haible  <bruno@clisp.org>
3620
3621         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
3622         compiling case.
3623
3624 2007-05-29  Eric Blake  <ebb9@byu.net>
3625             Bruno Haible  <bruno@clisp.org>
3626
3627         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
3628         cross compiles.
3629
3630 2007-05-28  Eric Blake  <ebb9@byu.net>
3631
3632         * modules/closein-tests (test_closein_LDADD): Support test on
3633         cygwin with libtool.
3634
3635 2007-05-28  Bruno Haible  <bruno@clisp.org>
3636
3637         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
3638         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3639         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3640         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3641         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3642         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3643         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3644         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3645         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3646
3647 2007-05-28  Eric Blake  <ebb9@byu.net>
3648
3649         Unconditionally include <config.h> in unit tests.
3650         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
3651         * tests/test-allocsa.c, tests/test-arcfour.c,
3652         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
3653         tests/test-array_list.c, tests/test-array_oset.c,
3654         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
3655         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
3656         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
3657         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
3658         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
3659         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
3660         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
3661         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
3662         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
3663         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
3664         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
3665         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
3666         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
3667         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
3668         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
3669         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
3670         test-md5.c, test-memmem.c, test-printf-posix.c,
3671         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
3672         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
3673         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
3674         test-strcasestr.c, test-striconv.c, test-striconveh.c,
3675         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
3676         test-vasnprintf-posix2.c, test-vasnprintf.c,
3677         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
3678         test-vfprintf-posix.c, test-vprintf-posix.c,
3679         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
3680         test-xvasprintf.c: Likewise.
3681
3682 2007-05-28  Bruno Haible  <bruno@clisp.org>
3683
3684         * gnulib-tool (func_import): Remember the --with-tests command-line
3685         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
3686         Reported by Eric Blake.
3687
3688 2007-05-28  Bruno Haible  <bruno@clisp.org>
3689
3690         * modules/ftell-tests: New file.
3691         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
3692         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
3693
3694         * lib/ftell.c: New file.
3695         * modules/ftell: New file.
3696         * m4/ftell.m4: New file.
3697         * doc/functions/ftell.texi: Update.
3698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
3699         REPLACE_FTELL.
3700         * lib/stdio_.h (rpl_ftell): New declaration.
3701         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
3702         REPLACE_FTELL.
3703
3704 2007-05-28  Eric Blake  <ebb9@byu.net>
3705
3706         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
3707
3708 2007-05-28  Bruno Haible  <bruno@clisp.org>
3709
3710         * modules/fseek-tests: New file.
3711         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
3712         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
3713
3714         * lib/fseek.c: New file.
3715         * modules/fseek: New file.
3716         * m4/fseek.m4: New file.
3717         * doc/functions/fseek.texi: Update.
3718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
3719         REPLACE_FSEEK.
3720         * lib/stdio_.h (rpl_fseek): New declaration.
3721         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
3722         REPLACE_FSEEK.
3723
3724 2007-05-28  Bruno Haible  <bruno@clisp.org>
3725
3726         * lib/stdio_.h (fflush): More comments.
3727
3728 2007-05-28  Bruno Haible  <bruno@clisp.org>
3729
3730         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
3731         runtime test.
3732
3733 2007-05-28  Eric Blake  <ebb9@byu.net>
3734
3735         Improve lseek module.
3736         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
3737         * lib/unistd_.h (lseek): Scale back link warning message.
3738         * tests/test-lseek.c: Beef up test.
3739         * tests/test-lseek.sh: Exercise more facets of lseek.
3740         Reported by Bruno Haible.
3741
3742 2007-05-28  Bruno Haible  <bruno@clisp.org>
3743
3744         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
3745         to define.
3746
3747 2007-05-27  Bruno Haible  <bruno@clisp.org>
3748
3749         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
3750
3751 2007-05-27  Bruno Haible  <bruno@clisp.org>
3752
3753         * modules/openmp: New file.
3754         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
3755         Noah Misch.
3756
3757 2007-05-26  Bruno Haible  <bruno@clisp.org>
3758
3759         * modules/chdir-long (Depends-on): Add fchdir.
3760         * modules/chdir-safer (Depends-on): Likewise.
3761         * modules/fts (Depends-on): Likewise.
3762         * modules/fts-lgpl (Depends-on): Likewise.
3763         * modules/openat (Depends-on): Likewise.
3764         * modules/savewd (Depends-on): Likewise.
3765
3766 2007-05-24  Eric Blake  <ebb9@byu.net>
3767
3768         Fix lseek on mingw.
3769         * modules/lseek: New module.
3770         * m4/lseek.m4: New file.
3771         * lib/lseek.c: New file.
3772         * modules/lseek-tests: New file.
3773         * tests/test-lseek.c: New file.
3774         * tests/test-lseek.sh: New file.
3775         * MODULES.html.sh: Document lseek module.
3776         * modules/fflush (Depends-on): Add lseek, fseeko.
3777         * modules/fseeko (Depends-on): Likewise.
3778         * modules/ftello (Depends-on): Likewise.
3779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
3780         broken.
3781         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
3782         broken.
3783         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
3784         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
3785         * lib/ftello.c (rpl_ftello): Likewise.
3786         * tests/test-fseeko.c (main): Test this.
3787         * tests/test-fseeko.sh: Likewise.
3788         * tests/test-ftello.c (main): Likewise.
3789         * tests/test-ftello.sh: Likewise.
3790         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
3791         implies replacing fseek.
3792         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
3793         HAVE_FTELLO.
3794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
3795         * modules/unistd (Makefile.am): Likewise.
3796         * lib/unistd_.h (lseek): Declare a replacement.
3797         * doc/functions/lseek.texi (lseek): Document this fix.
3798         * doc/functions/fseek.texi (fseek): Likewise.
3799         * doc/functions/ftell.texi (ftell): Likewise.
3800
3801 2007-05-24  Bruno Haible  <bruno@clisp.org>
3802
3803         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
3804         in the printed representation of a NaN.
3805         * tests/test-vasprintf-posix.c (test_function): Likewise.
3806         * tests/test-snprintf-posix.h (test_function): Likewise.
3807         * tests/test-sprintf-posix.h (test_function): Likewise.
3808         Reported by Eric Blake.
3809
3810 2007-05-23  Eric Blake  <ebb9@byu.net>
3811
3812         Fix fseeko/ftello on cygwin 1.5.24.
3813         * doc/functions/fseeko.texi (fseeko): Document the fix.
3814         * doc/functions/ftello.texi (ftello): Document the fix.
3815         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
3816         * doc/functions/stdout.text (stdout): New file.
3817         * doc/functions/stderr.text (stderr): New file.
3818         * doc/gnulib.texi (Function Substitutes): Use new files.
3819         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
3820         prior to 1.7.0.
3821         * tests/test-ftello.c (main): Likewise for ftello.
3822         * tests/test-fseeko.sh: New file.
3823         * tests/test-ftello.sh: New file.
3824         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
3825         with seekable stdin.
3826         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
3827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
3828         (gl_REPLACE_FSEEKO): New macro.
3829         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
3830         * modules/fseeko (Files): Distribute fseeko.c.
3831         * modules/ftello (Files): Distribute ftello.c.
3832         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
3833         mode.
3834         * lib/ftello.c (rpl_ftello): New file.
3835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
3836         fseeko, ftello.
3837         (gl_STDIN_LARGE_OFFSET): New macro.
3838         * modules/stdio (Makefile.am): Perform the replacement.
3839         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
3840
3841 2007-05-23  Bruno Haible  <bruno@clisp.org>
3842
3843         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
3844         GNULIB_POSIXCHECK is defined.
3845
3846 2007-05-21  Bruno Haible  <bruno@clisp.org>
3847
3848         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
3849         Check also the output for NaN arguments. When cross-compiling, guess
3850         no on IRIX.
3851         * lib/vasnprintf.c: Update comments.
3852         * tests/test-vasnprintf-posix.c (strisnan): New function.
3853         (test_function): Use it.
3854         * tests/test-vasprintf-posix.c (strisnan): New function.
3855         (test_function): Use it.
3856         * tests/test-snprintf-posix.h (strisnan): New function.
3857         (test_function): Use it.
3858         * tests/test-sprintf-posix.h (strisnan): New function.
3859         (test_function): Use it.
3860         Reported by Eric Blake.
3861
3862 2007-05-20  Bruno Haible  <bruno@clisp.org>
3863
3864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
3865         numbers that fails on BeOS.
3866         * doc/functions/frexpl.texi: Update.
3867
3868 2007-05-20  Jim Meyering  <jim@meyering.net>
3869
3870         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
3871         forced upon us by glibc-2.6.
3872
3873 2007-05-20  Bruno Haible  <bruno@clisp.org>
3874
3875         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
3876         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
3877         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
3878         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
3879         NEED_PRINTF_INFINITE.
3880         (is_infinitel): New function.
3881         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
3882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
3883         gl_PREREQ_VASNPRINTF_INFINITE.
3884         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
3885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3886         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
3887         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
3888         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
3889         gl_PREREQ_VASNPRINTF_INFINITE.
3890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3897         * doc/functions/fprintf.texi: Update.
3898         * doc/functions/printf.texi: Update.
3899         * doc/functions/snprintf.texi: Update.
3900         * doc/functions/sprintf.texi: Update.
3901         * doc/functions/vfprintf.texi: Update.
3902         * doc/functions/vprintf.texi: Update.
3903         * doc/functions/vsnprintf.texi: Update.
3904         * doc/functions/vsprintf.texi: Update.
3905
3906 2007-05-20  Bruno Haible  <bruno@clisp.org>
3907
3908         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
3909         was not found in libc.
3910         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3911
3912 2007-05-20  Bruno Haible  <bruno@clisp.org>
3913
3914         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
3915         printed as "-nan" instead of "nan".
3916         * tests/test-vasprintf-posix.c (test_function): Likewise.
3917         * tests/test-snprintf-posix.h (test_function): Likewise.
3918         * tests/test-sprintf-posix.h (test_function): Likewise.
3919         Needed for HP-UX 11.
3920
3921 2007-05-20  Jim Meyering  <jim@meyering.net>
3922
3923         Fix buggy test for the fchownat-deref bug.
3924         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
3925         symlink required for the run-test.  Without it, this test would
3926         always declare that fchownat doesn't work, and client code would
3927         unnecessarily use the replacement function with fixed libc.
3928         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
3929         Reported by Greg Schafer.
3930
3931 2007-05-19  Bruno Haible  <bruno@clisp.org>
3932
3933         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
3934         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
3935         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
3936         Needed for IRIX 6.5 and Solaris 2.5.1.
3937
3938 2007-05-19  Bruno Haible  <bruno@clisp.org>
3939
3940         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
3941         (test_function): Skip tests involving -0.0 on platforms where
3942         -0.0 = 0.0.
3943         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
3944         (test_function): Skip tests involving -0.0 on platforms where
3945         -0.0 = 0.0.
3946         * tests/test-snprintf-posix.h (have_minus_zero): New function.
3947         (test_function): Skip tests involving -0.0 on platforms where
3948         -0.0 = 0.0.
3949         * tests/test-sprintf-posix.h (have_minus_zero): New function.
3950         (test_function): Skip tests involving -0.0 on platforms where
3951         -0.0 = 0.0.
3952         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
3953         tests.
3954         * tests/test-printf-posix.h (test_function): Likewise.
3955         * tests/test-printf-posix.output: Remove all -0.0 related results.
3956         Needed for IRIX 6.5.
3957
3958 2007-05-19  Bruno Haible  <bruno@clisp.org>
3959
3960         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
3961         printed as "nan0x7fffffff" instead of "nan".
3962         * tests/test-vasprintf-posix.c (test_function): Likewise.
3963         * tests/test-snprintf-posix.h (test_function): Likewise.
3964         * tests/test-sprintf-posix.h (test_function): Likewise.
3965         * tests/test-fprintf-posix.h (NaN): Remove macro.
3966         (test_function): Remove all NaN related tests.
3967         * tests/test-printf-posix.h (NaN): Remove macro.
3968         (test_function): Remove all NaN related tests.
3969         * tests/test-printf-posix.output: Remove all NaN related results.
3970         Needed for IRIX 6.5.
3971
3972 2007-05-19  Bruno Haible  <bruno@clisp.org>
3973
3974         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
3975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3976
3977 2007-05-19  Bruno Haible  <bruno@clisp.org>
3978
3979         * lib/float_.h: New file.
3980         * m4/float_h.m4: New file.
3981         * modules/float: New file.
3982         * modules/isnanl (Dependencies): Add float.
3983         * modules/isnanl-nolibm (Dependencies): Likewise.
3984         * modules/mathl (Dependencies): Likewise.
3985         * modules/printf-frexpl (Dependencies): Likewise.
3986         * modules/signbit (Dependencies): Likewise.
3987         * modules/vasnprintf (Dependencies): Likewise.
3988         * doc/headers/float.texi: Update.
3989
3990 2007-05-19  Jim Meyering  <jim@meyering.net>
3991
3992         * lib/utimens.c (gl_futimens): Rename from futimens,
3993         now that glibc-2.6 declares futimens.
3994         * lib/utimens.h: Likewise.
3995
3996 2007-05-19  Bruno Haible  <bruno@clisp.org>
3997
3998         Avoid test failures on mingw.
3999         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
4000         * tests/test-printf-posix.sh: Likewise.
4001         * tests/test-vfprintf-posix.sh: Likewise.
4002         * tests/test-vprintf-posix.sh: Likewise.
4003
4004 2007-05-19  Bruno Haible  <bruno@clisp.org>
4005
4006         Fix *printf result for NaN, Inf, -0.0 on mingw.
4007         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
4008         * lib/vasnprintf.c: Include math.h and isnan.h.
4009         (is_infinite_or_zero): New function.
4010         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
4011         values in the %f, %F, %e, %E, %g, %G directives.
4012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
4013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4014         gl_PRINTF_INFINITE and test its result. Invoke
4015         gl_PREREQ_VASNPRINTF_INFINITE.
4016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4023         * doc/functions/fprintf.texi: Update.
4024         * doc/functions/printf.texi: Update.
4025         * doc/functions/snprintf.texi: Update.
4026         * doc/functions/sprintf.texi: Update.
4027         * doc/functions/vfprintf.texi: Update.
4028         * doc/functions/vprintf.texi: Update.
4029         * doc/functions/vsnprintf.texi: Update.
4030         * doc/functions/vsprintf.texi: Update.
4031
4032 2007-05-19  Bruno Haible  <bruno@clisp.org>
4033
4034         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
4035         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
4036         Instead of multiplying with 10^k, set extra_zeroes to k.
4037         (scale10_round_long_double): Remove function.
4038
4039 2007-05-18  Bruno Haible  <bruno@clisp.org>
4040
4041         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
4042         introduced on 2007-05-06.
4043
4044 2007-05-18  Bruno Haible  <bruno@clisp.org>
4045
4046         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
4047         %g directives.
4048         * tests/test-vasprintf-posix.c (test_function): Likewise.
4049         * tests/test-snprintf-posix.h (test_function): Likewise.
4050         * tests/test-sprintf-posix.h (test_function): Likewise.
4051
4052 2007-05-18  Bruno Haible  <bruno@clisp.org>
4053
4054         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
4055         (strmatch): New function.
4056         (test_function): Test the %f directive on numbers of various exponents.
4057         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
4058         (strmatch): New function.
4059         (test_function): Test the %f directive on numbers of various exponents.
4060         * tests/test-snprintf-posix.h (strmatch): New function.
4061         (test_function): Test the %f directive on numbers of various exponents.
4062         * tests/test-sprintf-posix.h (strmatch): New function.
4063         (test_function): Test the %f directive on numbers of various exponents.
4064         * tests/test-snprintf-posix.c (SIZEOF): New macro.
4065         * tests/test-sprintf-posix.c (SIZEOF): New macro.
4066         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
4067         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
4068
4069 2007-05-18  Bruno Haible  <bruno@clisp.org>
4070
4071         Add support for 'long double' number output.
4072         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
4073         * lib/vasnprintf.c: Include math.h and float+.h.
4074         (mp_limb_t): New type.
4075         (GMP_LIMB_BITS): New macro.
4076         (mp_twolimb_t): New type.
4077         (GMP_TWOLIMB_BITS): New macro.
4078         (mpn_t): New type.
4079         (multiply, divide, convert_to_decimal, decode_long_double,
4080         scale10_round_long_double, scale10_round_decimal_long_double,
4081         floorlog10l): New functions.
4082         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
4083         for the %f, %F, %e, %E, %g, %G directives.
4084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
4085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4086         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
4087         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
4088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4089         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4095         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
4096         * modules/snprintf-posix (Depends-on): Likewise.
4097         * modules/sprintf-posix (Depends-on): Likewise.
4098         * modules/vasnprintf-posix (Depends-on): Likewise.
4099         * modules/vasprintf-posix (Depends-on): Likewise.
4100         * modules/vfprintf-posix (Depends-on): Likewise.
4101         * modules/vsnprintf-posix (Depends-on): Likewise.
4102         * modules/vsprintf-posix (Depends-on): Likewise.
4103         * modules/vasnprintf (Files): Add lib/float+.h.
4104         * doc/functions/fprintf.texi: Update.
4105         * doc/functions/printf.texi: Update.
4106         * doc/functions/snprintf.texi: Update.
4107         * doc/functions/sprintf.texi: Update.
4108         * doc/functions/vfprintf.texi: Update.
4109         * doc/functions/vprintf.texi: Update.
4110         * doc/functions/vsnprintf.texi: Update.
4111         * doc/functions/vsprintf.texi: Update.
4112
4113 2007-05-18  Bruno Haible  <bruno@clisp.org>
4114
4115         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
4116
4117 2007-05-18  Bruno Haible  <bruno@clisp.org>
4118
4119         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
4120         for printing 64-bit integers. Needed for mingw.
4121
4122 2007-05-18  Bruno Haible  <bruno@clisp.org>
4123
4124         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4125         gl_FUNC_FREXPL_WORKS.
4126         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
4127
4128 2007-05-18  Bruno Haible  <bruno@clisp.org>
4129
4130         * modules/frexpl-nolibm-tests: New file.
4131
4132         * modules/frexpl-nolibm: New file.
4133         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
4134
4135 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4136
4137         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
4138         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
4139         GCC 4.2, which otherwise issues a lot of warnings.
4140         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
4141         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
4142         Likewise.
4143         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
4144         * modules/iconv_open (iconv.h): Likewise.
4145         * modules/locale (locale.h): Likewise.
4146         * modules/netinet_in (netinet/in.h): Likewise.
4147         * modules/sys_select (sys_select.h): Likewise.
4148         * modules/sys_socket (sys/socket.h): Likewise.
4149         * modules/sys_stat (sys/stat.h): Likewise.
4150         * modules/sysexits (sysexits.h): Likewise.
4151         * modules/unistd (unistd.h): Likewise.
4152
4153 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4154
4155         * modules/closein-tests (Makefile.am): Distribute
4156         `test-closein.sh'.
4157
4158 2007-05-17  Bruno Haible  <bruno@clisp.org>
4159
4160         * tests/test-printf-posix.output: Renamed from
4161         tests/test-fprintf-posix.out.
4162         * modules/fprintf-posix-tests: Update.
4163         * modules/printf-posix-tests: Update.
4164         * modules/vfprintf-posix-tests: Update.
4165         * modules/vprintf-posix-tests: Update.
4166         * tests/test-fprintf-posix.sh: Update.
4167         * tests/test-printf-posix.sh: Update.
4168         * tests/test-vfprintf-posix.sh: Update.
4169         * tests/test-vprintf-posix.sh: Update.
4170         Reported by Ralf Wildenhues.
4171
4172 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
4175         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
4176         GCC 4.2, which otherwise issues a lot of warnings.
4177         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
4178         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
4179         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
4180         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
4181         it should no longer be needed.
4182         * lib/string_.h: Likewise.
4183         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
4184         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
4185         * modules/inttypes (inttypes.h): Likewise.
4186         * modules/math (math.h): Likewise.
4187         * modules/search (search.h): Likewise.
4188         * modules/signal (signal.h): Likewise.
4189         * modules/stdint (stdint.h): Likewise.
4190         * modules/stdio (stdio.h): Likewise.
4191         * modules/stdlib (stdlib.h): Likewise.
4192         * modules/string (string.h): Likewise.
4193         * modules/sys_time (sys/time.h): Likewise.
4194         * modules/time (time.h): Likewise.
4195         * modules/wchar (wchar.h): Likewise.
4196         * modules/wctype (wtype.h): Likewise.
4197
4198 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4199
4200         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
4201
4202 2007-05-13  Bruno Haible  <bruno@clisp.org>
4203
4204         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
4205         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4206         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
4207         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4208         (gl_PREREQ_STRTOK_R): Don't require it here.
4209
4210 2007-05-13  Bruno Haible  <bruno@clisp.org>
4211
4212         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
4213         when used in C++ mode.
4214
4215 2007-05-12  Bruno Haible  <bruno@clisp.org>
4216
4217         * lib/linebuffer.h: Tweak doc.
4218         * lib/linebuffer.c: Likewise.
4219
4220 2007-05-12  James Youngman  <jay@gnu.org>
4221
4222         * lib/linebuffer.c (readlinebuffer_delim): New function,
4223         like readlinebuffer, but use a caller-specified delimiter.
4224         (readlinebuffer): Just call readlinebuffer_delim with '\n'
4225         as the delimiter.
4226         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
4227
4228 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4229
4230         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
4231         * modules/openat (Files): Remove openat-die.c.
4232         (Depends-on): Add openat-die.
4233         * modules/openat-die: New module.
4234
4235 2007-05-06  Bruno Haible  <bruno@clisp.org>
4236
4237         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
4238         Update with info about Cygwin.
4239         * doc/functions/fprintf.texi: Update.
4240         * doc/functions/printf.texi: Update.
4241         * doc/functions/snprintf.texi: Update.
4242         * doc/functions/sprintf.texi: Update.
4243         * doc/functions/vfprintf.texi: Update.
4244         * doc/functions/vprintf.texi: Update.
4245         * doc/functions/vsnprintf.texi: Update.
4246         * doc/functions/vsprintf.texi: Update.
4247         Reported by Eric Blake.
4248
4249 2007-05-06  Bruno Haible  <bruno@clisp.org>
4250
4251         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
4252         padding ourselves for the floating-point directives.
4253         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
4254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
4255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4256         gl_PRINTF_FLAG_ZERO and test its result. Invoke
4257         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
4258         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
4260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4265         * tests/test-snprintf-posix.h (test_function): Also check the width
4266         and some flags in the %f directive.
4267         * tests/test-sprintf-posix.h (test_function): Likewise.
4268         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4269         * tests/test-vasprintf-posix.c (test_function): Likewise.
4270         * doc/functions/fprintf.texi: Update.
4271         * doc/functions/printf.texi: Update.
4272         * doc/functions/snprintf.texi: Update.
4273         * doc/functions/sprintf.texi: Update.
4274         * doc/functions/vfprintf.texi: Update.
4275         * doc/functions/vprintf.texi: Update.
4276         * doc/functions/vsnprintf.texi: Update.
4277         * doc/functions/vsprintf.texi: Update.
4278
4279 2007-05-06  Bruno Haible  <bruno@clisp.org>
4280
4281         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
4282         pass the ' flag character to sprintf or snprintf.
4283         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
4284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
4285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4286         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
4287         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
4288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
4290         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4295         * tests/test-snprintf-posix.h (test_function): Also check the grouping
4296         flag.
4297         * tests/test-sprintf-posix.h (test_function): Likewise.
4298         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4299         * tests/test-vasprintf-posix.c (test_function): Likewise.
4300         * doc/functions/fprintf.texi: Update.
4301         * doc/functions/printf.texi: Update.
4302         * doc/functions/snprintf.texi: Update.
4303         * doc/functions/sprintf.texi: Update.
4304         * doc/functions/vfprintf.texi: Update.
4305         * doc/functions/vprintf.texi: Update.
4306         * doc/functions/vsnprintf.texi: Update.
4307         * doc/functions/vsprintf.texi: Update.
4308
4309 2007-05-01  Bruno Haible  <bruno@clisp.org>
4310
4311         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
4312
4313 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4314
4315         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
4316         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
4317
4318 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4319
4320         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
4321         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
4322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
4323
4324 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
4325
4326         * lib/argp-help.c (struct hol_entry): New member `ord'.
4327         (HOL_ENTRY_PTRCMP): Use ord for comparison
4328         (hol_sort): Initialize ord.
4329
4330 2007-05-01  Bruno Haible  <bruno@clisp.org>
4331
4332         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
4333         Reported by Eric Blake.
4334         * doc/gnulib.texi (Function Substitutes): Update.
4335
4336 2007-05-01  Bruno Haible  <bruno@clisp.org>
4337
4338         * doc/functions.texi: Remove file, now redundant through
4339         doc/functions/*.texi.
4340
4341 2007-05-01  Bruno Haible  <bruno@clisp.org>
4342
4343         * modules/argp (Depends-on): Add sleep.
4344
4345 2007-05-01  Bruno Haible  <bruno@clisp.org>
4346
4347         * modules/sleep-tests: New file.
4348         * tests/test-sleep.c: New file.
4349
4350         * modules/sleep: New file.
4351         * lib/sleep.c: New file.
4352         * m4/sleep.m4: New file.
4353         * lib/unistd_.h (sleep): New declaration.
4354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
4355         HAVE_SLEEP.
4356         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
4357         * doc/functions/sleep.texi: Document the sleep module.
4358
4359 2007-05-01  Bruno Haible  <bruno@clisp.org>
4360
4361         * lib/sigprocmask.h: Remove file.
4362         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
4363         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
4364         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
4365         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
4366         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4367         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
4368         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
4369         HAVE_SIGSET_T as a shell variable.
4370         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
4371         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
4372         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
4373         (Depends-on): Add signal. Remove verify.
4374         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
4375         (Include): Mention <signal.h> instead of sigprocmask.h.
4376         * NEWS: Mention the change.
4377         * lib/fatal-signal.c: Don't include sigprocmask.h.
4378
4379 2007-05-01  Bruno Haible  <bruno@clisp.org>
4380
4381         * modules/signal: New file.
4382         * lib/signal_.h: New file.
4383         * m4/signal_h.m4: New file.
4384
4385 2007-05-01  Bruno Haible  <bruno@clisp.org>
4386
4387         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
4388         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
4389         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
4390         HAVE_WCTYPE_CTMP_BUG into wctype.h.
4391
4392 2007-05-01  Bruno Haible  <bruno@clisp.org>
4393
4394         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
4395         configure time.
4396         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
4397         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
4398         * modules/sys_stat (Makefile.am): Substitute their values into
4399         sys/stat.h.
4400
4401 2007-05-01  Bruno Haible  <bruno@clisp.org>
4402
4403         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
4404         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
4405         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
4406
4407 2007-05-01  Bruno Haible  <bruno@clisp.org>
4408
4409         * doc/header/assert.texi: Undo last change: don't mention the gnulib
4410         'assert' module here.
4411
4412 2007-05-01  Bruno Haible  <bruno@clisp.org>
4413
4414         * doc/functions/*.texi: New files.
4415         * doc/functions/google-ranking.txt: New file.
4416         * doc/gnulib.texi (Function Substitutes): New chapter.
4417         (ctime, inet_ntoa): Remove sections.
4418         * doc/ctime.texi: Remove file.
4419         * doc/inet_ntoa.texi: Remove file.
4420         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
4421         dependencies.
4422         (%.info): New rule, specifying a --reference-limit.
4423
4424 2007-05-01  Bruno Haible  <bruno@clisp.org>
4425
4426         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
4427
4428 2007-05-01  Bruno Haible  <bruno@clisp.org>
4429
4430         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
4431         the portability of 'mkdir' to mingw systems.
4432
4433 2007-05-01  Bruno Haible  <bruno@clisp.org>
4434
4435         * doc/headers/google-ranking.txt: New file.
4436
4437 2007-04-30  Eric Blake  <ebb9@byu.net>
4438
4439         Prefer fseeko to fseek.
4440         * modules/getpass (Depends-on): Add fseeko.
4441         * lib/getpass.c (getpass): Use fseeko, not fseek.
4442
4443 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
4444
4445         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
4446         assumes the sorting is stable, while most qsort implementations
4447         are not.  Use argument addresses to ensure they never compare as
4448         equal.
4449
4450         * tests/test-argp-2.sh (usage-indent test): Fix output
4451         (func_compare): Restore diff options
4452         * tests/test-argp.c: Restore #include "progname.h"
4453
4454 2007-04-29  Bruno Haible  <bruno@clisp.org>
4455
4456         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
4457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4458         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
4459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4460         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
4461         (configure.ac): Define CHECK_SNPRINTF_POSIX.
4462         (TESTS, check_PROGRAMS): Add test-snprintf.
4463         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
4464         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
4465         (TESTS, check_PROGRAMS): Add test-vsnprintf.
4466         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
4467         assertions that fail on HP-UX, OSF/1, or IRIX.
4468         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
4469
4470 2007-04-29  Bruno Haible  <bruno@clisp.org>
4471
4472         * MODULES.html.sh (posix_functions): Remove 'contents'.
4473
4474 2007-04-29  Karl Berry  <karl@gnu.org>
4475
4476         * config/srclist.txt (gendocs_template_min): new entry.
4477
4478 2007-04-29  Bruno Haible  <bruno@clisp.org>
4479
4480         Work around fpurge bug on BSD systems.
4481         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
4482         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
4483         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
4484         fpurge to rpl_fpurge if the system already has this function.
4485         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
4486         the case where the system already has this function. Correct invariants
4487         on BSD systems.
4488         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
4489         BSD systems.
4490
4491 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4492
4493         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
4494         proposed by Sven Verdoolaege.
4495
4496         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
4497         options.
4498         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
4499         (usage and help tests): Update
4500
4501 2007-04-29  Bruno Haible  <bruno@clisp.org>
4502
4503         * tests/test-fflush.c (main): Use a file of size 17, not 10.
4504         Print more information in case of failure. Disable a test on BeOS.
4505
4506 2007-04-29  Bruno Haible  <bruno@clisp.org>
4507
4508         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
4509         This helps debugging on systems on which no gdb is available.
4510
4511 2007-04-29  Bruno Haible  <bruno@clisp.org>
4512
4513         * lib/freading.h: Improve comments.
4514         * lib/fwriting.h: Likewise.
4515         * tests/test-freading.c (main): Don't check freading immediately after
4516         repositioning. Needed for glibc.
4517
4518 2007-04-29  Bruno Haible  <bruno@clisp.org>
4519
4520         * lib/freading.c (freading): Trivial simplification.
4521
4522 2007-04-28  Bruno Haible  <bruno@clisp.org>
4523
4524         * tests/test-fwriting.c (main): Also test the interaction between
4525         fflush and fwriting.
4526         * modules/fwriting-tests (Depends-on): Add fflush.
4527
4528         * tests/test-freading.c (main): Also test the interaction between
4529         fflush and freading.
4530         * modules/freading-tests (Depends-on): Add fflush.
4531
4532 2007-04-28  Bruno Haible  <bruno@clisp.org>
4533
4534         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
4535         fseeko and ftello.
4536         Suggested by Eric Blake.
4537
4538 2007-04-28  Jim Meyering  <jim@meyering.net>
4539
4540         Avoid false-negative in gl_STDINT_H's C99 conformance test.
4541         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
4542         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
4543
4544 2007-04-27  Eric Blake  <ebb9@byu.net>
4545
4546         * doc/headers/assert.texi (assert.h): Document assert module use.
4547
4548 2007-04-27  Bruno Haible  <bruno@clisp.org>
4549
4550         * doc/headers/*.texi: New files.
4551         * doc/gnulib.texi (Header File Substitutes): New chapter.
4552         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
4553         dependencies.
4554         (standards.info ,standards.html, standards.dvi): Update dependencies.
4555         (mostlyclean, clean): New targets.
4556
4557 2007-04-27  Bruno Haible  <bruno@clisp.org>
4558
4559         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
4560         * modules/sysexits (Files, Makefile.am): Update.
4561
4562         * lib/sys_socket_.h: Renamed from lib/socket_.h.
4563         * modules/sys_socket (Files, Makefile.am): Update.
4564
4565         * lib/sys_stat_.h: Renamed from lib/stat_.h.
4566         * modules/sys_stat (Files, Makefile.am): Update.
4567
4568 2007-04-27  Eric Blake  <ebb9@byu.net>
4569
4570         * lib/freading.h: Improve comments.
4571         * lib/fwriting.h: Likewise.
4572         * lib/fflush.c: Likewise.
4573
4574         Fix closein for mingw.
4575         * modules/closein-tests: Add tests for closein.
4576         * tests/test-closein.c: New file.
4577         * tests/test-closein.sh: Likewise.
4578         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
4579         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
4580
4581 2007-04-27  Bruno Haible  <bruno@clisp.org>
4582
4583         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
4584         version is < 6.
4585         * lib/math_.h [__DECC]: Likewise.
4586         * lib/stdio_.h [__DECC]: Likewise.
4587         * lib/stdlib_.h [__DECC]: Likewise.
4588         * lib/string_.h [__DECC]: Likewise.
4589         * lib/time_.h [__DECC]: Likewise.
4590         * lib/wchar_.h [__DECC]: Likewise.
4591         * lib/wctype_.h [__DECC]: Likewise.
4592
4593 2007-04-27  Bruno Haible  <bruno@clisp.org>
4594
4595         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
4596
4597 2007-04-27  Bruno Haible  <bruno@clisp.org>
4598
4599         * lib/fflush.c: Add comments.
4600         * modules/fpurge-tests (Depends-on): Add fflush.
4601         * modules/freadable-tests (Depends-on): Likewise.
4602         * modules/fwritable-tests (Depends-on): Likewise.
4603
4604 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
4605
4606         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
4607         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
4608         Report by Bruno Haible <bruno@clisp.org>.
4609
4610 2007-04-26  Eric Blake  <ebb9@byu.net>
4611
4612         Fix fflush on mingw.
4613         * modules/fflush (Depends-on): Add freading.
4614         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
4615         but unread data.
4616
4617 2007-04-26  Eric Blake  <ebb9@byu.net>
4618         and Bruno Haible  <bruno@clisp.org>
4619
4620         Implement freading and fwriting.
4621         * lib/freading.c: New file.
4622         * lib/freading.h: Likewise.
4623         * m4/freading.m4: Likewise.
4624         * modules/freading: Likewise.
4625         * modules/freading-tests: Likewise.
4626         * tests/test-freading.c: Likewise.
4627         * lib/fwriting.c: New file.
4628         * lib/fwriting.h: Likewise.
4629         * m4/fwriting.m4: Likewise.
4630         * modules/fwriting: Likewise.
4631         * modules/fwriting-tests: Likewise.
4632         * tests/test-fwriting.c: Likewise.
4633         * MODULES.html.sh (File stream based Input/Output): Mention them.
4634
4635 2007-04-26  Bruno Haible  <bruno@clisp.org>
4636
4637         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
4638         'long' when we assume it.
4639         Suggested by Eric Blake.
4640
4641 2007-04-26  Bruno Haible  <bruno@clisp.org>
4642
4643         Ensure fseeko, ftello are declared on glibc systems.
4644         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
4645         * modules/fseeko (configure.ac-early): Likewise.
4646         * modules/ftello (configure.ac-early): Likewise.
4647         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
4648         AC_FUNC_FSEEKO for this.
4649         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
4650         (gl_CHECK_FSEEKO): Remove macro.
4651
4652 2007-04-26  Bruno Haible  <bruno@clisp.org>
4653
4654         * tests/test-fflush.c (main): Also check the ftell result after
4655         fflush and fseek/fseeko.
4656         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
4657         file descriptor position cache in the stream.
4658         * lib/fseeko.c (rpl_fseeko): Likewise.
4659
4660 2007-04-26  Bruno Haible  <bruno@clisp.org>
4661
4662         * modules/fflush-tests (Depends-on): Add fseeko.
4663
4664 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
4665             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4666
4667         * lib/argz_.h: ensure error_t definition is obtained in same
4668         mechanism system argz.h would have.
4669         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
4670         argz facilities are known bad.  Err on the side of caution if
4671         cross-compiling.
4672
4673 2007-04-25  Eric Blake  <ebb9@byu.net>
4674
4675         * lib/fpurge.c (includes): Use stdlib.h for free.
4676         * tests/test-fflush.c (main): Also test fflush-fseeko.
4677
4678 2007-04-25  Bruno Haible  <bruno@clisp.org>
4679
4680         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
4681         * lib/fseeko.c: New file.
4682         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
4683         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
4684         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
4685         gl_FUNC_FSEEKO.
4686         (gl_FUNC_FSEEKO): Invoke it.
4687         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
4688         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
4689         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
4690
4691 2007-04-25  Bruno Haible  <bruno@clisp.org>
4692
4693         * modules/fflush (Depends-on): Add ftello.
4694
4695 2007-04-25  Bruno Haible  <bruno@clisp.org>
4696
4697         * modules/ftello-tests: New file.
4698         * tests/test-ftello.c: New file.
4699
4700         * modules/ftello: New file.
4701         * m4/ftello.m4: New file.
4702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
4703         HAVE_FTELLO.
4704         * lib/stdio_.h (ftello): New declaration.
4705         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
4706         HAVE_FTELLO.
4707
4708 2007-04-25  Bruno Haible  <bruno@clisp.org>
4709
4710         * modules/fseeko-tests: New file.
4711         * tests/test-fseeko.c: New file.
4712
4713         * modules/fseeko: New file.
4714         * m4/fseeko.m4: New file.
4715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
4716         HAVE_FSEEKO.
4717         * lib/stdio_.h (fseeko): New declaration.
4718         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
4719         HAVE_FSEEKO.
4720
4721 2007-04-25  Bruno Haible  <bruno@clisp.org>
4722
4723         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
4724
4725 2007-04-25  Bruno Haible  <bruno@clisp.org>
4726
4727         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
4728         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
4729         * tests/test-unistd.c: Likewise.
4730         * tests/test-fcntl.c: Likewise.
4731
4732 2007-04-23  Eric Blake  <ebb9@byu.net>
4733
4734         * lib/fflush.c: Fix missing include.
4735         Reported by Bruno Haible.
4736
4737 2007-04-23  Bruno Haible  <bruno@clisp.org>
4738
4739         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
4740         Reported by Eric Blake.
4741
4742 2007-04-23  Bruno Haible  <bruno@clisp.org>
4743
4744         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
4745
4746 2007-04-23  Bruno Haible  <bruno@clisp.org>
4747
4748         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
4749
4750 2007-04-23  Bruno Haible  <bruno@clisp.org>
4751
4752         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
4753         Needed on HP-UX 11.
4754
4755 2007-04-16  Eric Blake  <ebb9@byu.net>
4756
4757         Make fflush rely on fpurge.
4758         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
4759         open coding all variants.
4760         * modules/fflush (Depends-on): Add fpurge and unistd.
4761         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
4762         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
4763
4764         Fix --with-tests compilation on cygwin.
4765         * modules/argmatch-tests (Makefile.am): List gnulib library first
4766         in LDADD.
4767         * modules/argp-tests (Makefile.am): Likewise.
4768         * modules/array-list-tests (Makefile.am): Likewise.
4769         * modules/array-oset-tests (Makefile.am): Likewise.
4770         * modules/avltree-list-tests (Makefile.am): Likewise.
4771         * modules/avltree-oset-tests (Makefile.am): Likewise.
4772         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4773         * modules/carray-list-tests (Makefile.am): Likewise.
4774         * modules/dirname-tests (Makefile.am): Likewise.
4775         * modules/frexp-tests (Makefile.am): Likewise.
4776         * modules/isnanl-tests (Makefile.am): Likewise.
4777         * modules/linked-list-tests (Makefile.am): Likewise.
4778         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4779         * modules/lock-tests (Makefile.am): Likewise.
4780         * modules/rbtree-list-tests (Makefile.am): Likewise.
4781         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4782         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4783         * modules/tls-tests (Makefile.am): Likewise.
4784         * modules/tsearch-tests (Makefile.am): Likewise.
4785         * modules/xvasprintf-tests (Makefile.am): Likewise.
4786
4787         Fix fpurge for cygwin.
4788         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
4789         value.
4790         * modules/fpurge-tests (Depends-on): Clean up trash.
4791
4792 2007-04-16  Simon Josefsson  <simon@josefsson.org>
4793
4794         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
4795
4796         * m4/autobuild.m4: Re-indent.
4797
4798 2007-04-13  Bruno Haible  <bruno@clisp.org>
4799
4800         * modules/fpurge-tests: New file.
4801         * tests/test-fpurge.c: New file.
4802
4803         * modules/fpurge: New file.
4804         * lib/fpurge.h: New file.
4805         * lib/fpurge.c: New file.
4806         * m4/fpurge.m4: New file.
4807
4808 2007-04-13  Bruno Haible  <bruno@clisp.org>
4809
4810         * modules/fbufmode-tests: New file.
4811         * tests/test-fbufmode.c: New file.
4812
4813         * modules/fbufmode: New file.
4814         * lib/fbufmode.h: New file.
4815         * lib/fbufmode.c: New file.
4816         * m4/fbufmode.m4: New file.
4817
4818 2007-04-13  Bruno Haible  <bruno@clisp.org>
4819
4820         * modules/fwritable-tests: New file.
4821         * tests/test-fwritable.c: New file.
4822
4823         * modules/fwritable: New file.
4824         * lib/fwritable.h: New file.
4825         * lib/fwritable.c: New file.
4826         * m4/fwritable.m4: New file.
4827
4828 2007-04-13  Bruno Haible  <bruno@clisp.org>
4829
4830         * modules/freadable-tests: New file.
4831         * tests/test-freadable.c: New file.
4832
4833         * modules/freadable: New file.
4834         * lib/freadable.h: New file.
4835         * lib/freadable.c: New file.
4836         * m4/freadable.m4: New file.
4837
4838 2007-04-13  Bruno Haible  <bruno@clisp.org>
4839
4840         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
4841         MOSTLYCLEANFILES.
4842
4843 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
4844
4845         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
4846         gzip bootstrap.conf to avoid dragging in i18n machinery.
4847         (gnulib_tool_option): Use it.
4848
4849 2007-04-13  Bruno Haible  <bruno@clisp.org>
4850
4851         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
4852         %F directives.
4853         * tests/test-vasprintf-posix.c (test_function): Likewise.
4854         * tests/test-snprintf-posix.h (test_function): Likewise.
4855         * tests/test-sprintf-posix.h (test_function): Likewise.
4856         * tests/test-fprintf-posix.h (test_function): Likewise.
4857         * tests/test-printf-posix.h (test_function): Likewise.
4858         * tests/test-fprintf-posix.out: Likewise.
4859
4860 2007-04-13  Bruno Haible  <bruno@clisp.org>
4861
4862         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
4863         * modules/tls-tests (configure.ac): Likewise.
4864         Reported by Arto C. Nirkko <anirkko@insel.ch>.
4865
4866 2007-04-13  Bruno Haible  <bruno@clisp.org>
4867
4868         * lib/tls.c (glthread_tls_get): Fix return type.
4869         Patch by Arto C. Nirkko <anirkko@insel.ch>.
4870
4871 2007-04-12  Eric Blake  <ebb9@byu.net>
4872
4873         * modules/gettime (Depends-on): Remove gettime.
4874         Reported by Dmitry V. Levin.
4875
4876 2007-04-12  Bruno Haible  <bruno@clisp.org>
4877
4878         * modules/fflush (Include): Mention <stdio.h>.
4879         * modules/strtoimax (Include): Mention <inttypes.h>.
4880         * modules/strtoumax (Include): Likewise.
4881
4882 2007-04-12  Eric Blake  <ebb9@byu.net>
4883
4884         * .cvsignore: New file.
4885         * .gitignore: Likewise.
4886
4887 2007-04-12  Bruno Haible  <bruno@clisp.org>
4888
4889         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
4890         not before, since $(LDADD) often contains libgnu.a.
4891         * modules/striconv-tests (test_striconv_LDADD): Likewise.
4892         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
4893         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
4894         Needed on Cygwin.
4895
4896 2007-04-12  Eric Blake  <ebb9@byu.net>
4897
4898         Work around glibc's failure to flush stdin on fclose.
4899         * lib/closein.c (close_stdin): Flush stdin before closing.
4900
4901         Work around glibc's failure to reset seekable stdin on exit.
4902         * modules/closein: New module.
4903         * lib/closein.c: New file.
4904         * lib/closein.h: Likewise.
4905         * m4/closein.m4: Likewise.
4906         * MODULES.html.sh (File stream based Input/Output): Document it.
4907
4908 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4909
4910         * gnulib-tool: Rename generated 'autobuild' script to
4911         'do-autobuild' in --create-megatestdir output.
4912
4913         * doc/gnulib.texi (Build robot for gnulib): Fix.
4914
4915 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4916
4917         * modules/sysexits (Depends-on): Add absolute-header.
4918
4919 2007-04-12  Eric Blake  <ebb9@byu.net>
4920
4921         No need to preserve errno on success.
4922         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
4923         Reported by Bruno Haible.
4924
4925 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4926
4927         * MODULES.html.sh (Support for maintaining and releasing
4928         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
4929
4930 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4931
4932         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
4933
4934 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4935
4936         * modules/autobuild: New module.
4937
4938         * m4/autobuild.m4: New file.
4939
4940 2007-04-11  Bruno Haible  <bruno@clisp.org>
4941
4942         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
4943         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
4944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
4945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
4946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4947         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4948         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4950         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4951         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
4953         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4954         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
4956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
4959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
4962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4964         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
4965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
4968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4970         Reported by Eric Blake.
4971
4972 2007-04-11  Bruno Haible  <bruno@clisp.org>
4973
4974         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
4975
4976 2007-04-10  Bruno Haible  <bruno@clisp.org>
4977
4978         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
4979         for NaN and Infinity. Needed on FreeBSD 6.1.
4980         * tests/test-vasnprintf-posix.c (test_function): Undo last change
4981         regarding results for "%010a" of Infinity and NaN.
4982         * tests/test-vasprintf-posix.c (test_function): Likewise.
4983         * tests/test-snprintf-posix.h (test_function): Likewise.
4984         * tests/test-sprintf-posix.h (test_function): Likewise.
4985         * tests/test-fprintf-posix.h (test_function): Likewise.
4986         * tests/test-printf-posix.h (test_function): Likewise.
4987         * tests/test-fprintf-posix.out: Likewise.
4988
4989 2007-04-10  Bruno Haible  <bruno@clisp.org>
4990
4991         * modules/locale-tests: New file.
4992         * tests/test-locale.c: New file.
4993
4994         * modules/locale: New file.
4995         * lib/locale_.h: New file.
4996         * m4/locale_h.m4: New file.
4997
4998 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
4999             Bruno Haible  <bruno@clisp.org>
5000
5001         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
5002         be determined, test for availability of the copysignf, copysign,
5003         copysignl functions.
5004         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
5005         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
5006         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
5007
5008 2007-04-09  Eric Blake  <ebb9@byu.net>
5009
5010         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
5011         * modules/stdio (Makefile.am): Support fflush.
5012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
5013         * modules/fflush: New file.
5014         * lib/fflush.c: Likewise.
5015         * m4/fflush.m4: Likewise.
5016         * modules/fflush-tests: New test.
5017         * tests/test-fflush.c: Likewise.
5018         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
5019
5020 2007-04-06  Bruno Haible  <bruno@clisp.org>
5021
5022         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
5023         (VASNPRINTF): Use signbit for faster determination whether to print a
5024         minus sign.
5025         * modules/vasnprintf (Files): Remove lib/float+.h.
5026         * modules/fprintf-posix (Depends-on): Add signbit.
5027         * modules/snprintf-posix (Depends-on): Likewise.
5028         * modules/sprintf-posix (Depends-on): Likewise.
5029         * modules/vasnprintf-posix (Depends-on): Likewise.
5030         * modules/vasprintf-posix (Depends-on): Likewise.
5031         * modules/vfprintf-posix (Depends-on): Likewise.
5032         * modules/vsnprintf-posix (Depends-on): Likewise.
5033         * modules/vsprintf-posix (Depends-on): Likewise.
5034
5035 2007-04-06  Bruno Haible  <bruno@clisp.org>
5036
5037         * tests/test-frexp.c (main): Test also the sign bit of zero results.
5038         * tests/test-frexpl.c (main): Likewise.
5039         * tests/test-ldexpl.c (main): Likewise.
5040         * modules/frexp-tests (Depends-on): Add signbit.
5041         * modules/frexpl-tests (Depdends-on): Likewise.
5042         * modules/ldexpl-tests (Depdends-on): Likewise.
5043
5044 2007-04-06  Bruno Haible  <bruno@clisp.org>
5045
5046         * modules/signbit-tests: New file.
5047         * tests/test-signbit.c: New file.
5048
5049         * modules/signbit: New file.
5050         * lib/signbitf.c: New file.
5051         * lib/signbitd.c: New file.
5052         * lib/signbitl.c: New file.
5053         * m4/signbit.m4: New file.
5054         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
5055         (signbit): New macro.
5056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
5057         REPLACE_SIGNBIT.
5058         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
5059         REPLACE_FREXPL into math.h.
5060
5061 2007-04-06  Bruno Haible  <bruno@clisp.org>
5062
5063         * modules/isnanf-nolibm-tests: New file.
5064         * tests/test-isnanf.c: New file.
5065
5066         * modules/isnanf-nolibm: New file.
5067         * lib/isnanf.h: New file.
5068         * lib/isnanf.c: New file.
5069         * lib/isnan.c: Consider the USE_FLOAT macro.
5070         * m4/isnanf.m4: New file.
5071
5072 2007-04-06  Bruno Haible  <bruno@clisp.org>
5073
5074         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
5075         (Link): New section.
5076
5077         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
5078
5079 2007-04-06  Bruno Haible  <bruno@clisp.org>
5080
5081         Assume the 'long double' type.
5082         * m4/longdouble.m4: Remove file.
5083         * config/srclist.txt: Don't mention longdouble.m4.
5084         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
5085         * lib/float+.h: Likewise.
5086         * lib/frexp.c: Likewise.
5087         * lib/printf-args.h: Likewise.
5088         * lib/printf-args.c: Likewise.
5089         * lib/printf-frexp.c: Likewise.
5090         * lib/printf-parse.c: Likewise.
5091         * lib/vasnprintf.c: Likewise.
5092         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
5093         * m4/intl.m4: Likewise.
5094         * m4/isnanl.m4: Likewise.
5095         * m4/printf.m4: Likewise.
5096         * m4/printf-frexpl.m4: Likewise.
5097         * m4/vasnprintf.m4: Likewise.
5098         * modules/allocsa (Files): Remove m4/longdouble.m4.
5099         * modules/gettext (Files): Likewise.
5100         * modules/relocatable-prog-wrapper (Files): Likewise.
5101         * modules/vasnprintf (Files): Likewise.
5102         * modules/isnanl (Files): Likewise.
5103         (Include): Simplify.
5104         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
5105         (Include): Simplify.
5106         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
5107         (Include): Simplify.
5108         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
5109         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5110         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
5111         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5112         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
5113         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5114         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
5115         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5116         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
5117         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5118         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
5119         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5120         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
5121         * tests/test-isnanl.c: Likewise.
5122         * tests/test-snprintf-posix.h: Likewise.
5123         * tests/test-sprintf-posix.h: Likewise.
5124         * tests/test-vasnprintf-posix.c: Likewise.
5125         * tests/test-vasnprintf-posix2.c: Likewise.
5126         * tests/test-vasprintf-posix.c: Likewise.
5127
5128 2007-04-06  Bruno Haible  <bruno@clisp.org>
5129
5130         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
5131         * lib/math_.h [__DECC]: Include the overridden include file through
5132         #include_next, outside the double-inclusion guard.
5133         * lib/stdio_.h [__DECC]: Likewise.
5134         * lib/stdlib_.h [__DECC]: Likewise.
5135         * lib/string_.h [__DECC]: Likewise.
5136         * lib/time_.h [__DECC]: Likewise.
5137         * lib/wchar_.h [__DECC]: Likewise.
5138         * lib/wctype_.h [__DECC]: Likewise.
5139         * lib/inttypes_.h [__DECC]: Likewise.
5140         Reported by Albert Chin <china@thewrittenword.com> in
5141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
5142
5143 2007-04-04  Eric Blake  <ebb9@byu.net>
5144
5145         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
5146         1.5.x.
5147
5148 2007-04-04  Bruno Haible  <bruno@clisp.org>
5149
5150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
5151         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
5152
5153 2007-04-04  Bruno Haible  <bruno@clisp.org>
5154
5155         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
5156         results for "%010a" of Infinity and NaN.
5157         * tests/test-vasprintf-posix.c (test_function): Likewise.
5158         * tests/test-snprintf-posix.h (test_function): Likewise.
5159         * tests/test-sprintf-posix.h (test_function): Likewise.
5160         * tests/test-fprintf-posix.h (test_function): Remove these tests.
5161         * tests/test-printf-posix.h (test_function): Likewise.
5162         * tests/test-fprintf-posix.out: Update.
5163         Needed for FreeBSD 6.1.
5164
5165 2007-04-04  Bruno Haible  <bruno@clisp.org>
5166
5167         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
5168         directly used by the gnulib modules nor by gnulib-tool.
5169
5170 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5171
5172         * DEPENDENCIES: Give overall description of version dependency
5173         desirability.  Use more-typical names for apps.
5174         Add shell, coreutils, diffutils, grep, tar, gzip.
5175
5176 2007-04-04  Simon Josefsson  <simon@josefsson.org>
5177
5178         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
5179
5180 2007-04-04  Karl Berry  <karl@gnu.org>
5181
5182         * MODULES.html.sh (func_module): missing '.
5183
5184 2007-04-03  Bruno Haible  <bruno@clisp.org>
5185
5186         * modules/argmatch-tests (Makefile.am): New variable
5187         test_argmatch_LDADD.
5188         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
5189         * modules/array-list-tests (Makefile.am): New variable
5190         test_array_list_LDADD.
5191         * modules/array-oset-tests (Makefile.am): New variable
5192         test_array_oset_LDADD.
5193         * modules/avltree-list-tests (Makefile.am): New variable
5194         test_avltree_list_LDADD.
5195         * modules/avltree-oset-tests (Makefile.am): New variable
5196         test_avltree_oset_LDADD.
5197         * modules/avltreehash-list-tests (Makefile.am): New variable
5198         test_avltreehash_list_LDADD.
5199         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
5200         test_canonicalize_lgpl_LDADD.
5201         * modules/carray-list-tests (Makefile.am): New variable
5202         test_carray_list_LDADD.
5203         * modules/dirname-tests (Makefile.am): New variable
5204         test_dirname_LDADD.
5205         * modules/linked-list-tests (Makefile.am): New variable
5206         test_linked_list_LDADD.
5207         * modules/linkedhash-list-tests (Makefile.am): New variable
5208         test_linkedhash_list_LDADD.
5209         * modules/rbtree-list-tests (Makefile.am): New variable
5210         test_rbtree_list_LDADD.
5211         * modules/rbtree-oset-tests (Makefile.am): New variable
5212         test_rbtree_oset_LDADD.
5213         * modules/rbtreehash-list-tests (Makefile.am): New variable
5214         test_rbtreehash_list_LDADD.
5215         * modules/xvasprintf-tests (Makefile.am): New variable
5216         test_xvasprintf_LDADD.
5217         Reported by Eric Blake.
5218
5219 2007-04-03  Eric Blake  <ebb9@byu.net>
5220
5221         * DEPENDENCIES: Weaken m4 requirements.
5222
5223 2007-04-03  Bruno Haible  <bruno@clisp.org>
5224
5225         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
5226         * modules/isnanl-tests (configure.ac): Likewise.
5227
5228 2007-04-03  Ben Pfaff  <blp@gnu.org>
5229
5230         * modules/iconv_open: Add $(srcdir)/ to source directory
5231         references in Makefile fragments that call gperf, to fix VPATH
5232         builds.
5233
5234 2007-04-03  Bruno Haible  <bruno@clisp.org>
5235
5236         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
5237         * lib/ldexpl.c: Undo last change.
5238
5239 2007-04-03  Bruno Haible  <bruno@clisp.org>
5240
5241         * modules/printf-frexpl (Depends-on): Undo last change.
5242         (Files): Add m4/ldexpl.m4.
5243
5244 2007-04-03  Bruno Haible  <bruno@clisp.org>
5245
5246         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
5247         * modules/isnanl (Link): New section.
5248
5249         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
5250         * modules/frexp (Link): New section.
5251
5252         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
5253         * modules/frexpl (Link): New section.
5254
5255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
5256         * modules/ldexpl (Link): New section.
5257
5258 2007-04-03  Bruno Haible  <bruno@clisp.org>
5259
5260         * modules/TEMPLATE-EXTENDED: New file.
5261         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
5262
5263 2007-04-03  Bruno Haible  <bruno@clisp.org>
5264
5265         * DEPENDENCIES: New file.
5266         Suggested by Simon Josefsson.
5267
5268 2007-04-03  Bruno Haible  <bruno@clisp.org>
5269
5270         * doc/gnulib.texi: Escape @.
5271
5272 2007-04-03  James Youngman  <jay@gnu.org>
5273         and Paul Eggert  <eggert@cs.ucla.edu>
5274
5275         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
5276         birthtime on all systems that have birthtime, not just those which
5277         use st_birthtimensec rather than st_birthtim.  Putting zero in
5278         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
5279         that the birth time is not available for files on an NFS mount.
5280
5281 2007-04-03  Simon Josefsson  <simon@josefsson.org>
5282
5283         * modules/memxor: Move back from crypto/, suggested by Bruno.
5284         * modules/crypto/hmac-sha1: Fix memxor dependency.
5285
5286         * modules/crypto/gc: Moved from ../.
5287
5288 2007-04-02  Eric Blake  <ebb9@byu.net>
5289
5290         * lib/ldexpl.c (includes): Avoid libm.
5291
5292         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
5293
5294 2007-04-02  Bruno Haible  <bruno@clisp.org>
5295
5296         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
5297         on IRIX.
5298
5299 2007-04-02  Bruno Haible  <bruno@clisp.org>
5300
5301         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
5302         x86 or x86_64 platforms running MacOS X.
5303         Reported by Ryan Schmidt <@ryandesign.com>.
5304
5305 2007-04-02  Bruno Haible  <bruno@clisp.org>
5306
5307         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
5308         i386.
5309
5310 2007-04-01  Simon Josefsson  <simon@josefsson.org>
5311
5312         * modules/crypto/arcfour: Moved from ../.
5313         * modules/crypto/arcfour-tests: Moved from ../.
5314         * modules/crypto/arctwo: Moved from ../.
5315         * modules/crypto/arctwo-tests: Moved from ../.
5316         * modules/crypto/des: Moved from ../.
5317         * modules/crypto/des-tests: Moved from ../.
5318         * modules/crypto/gc-arcfour: Moved from ../.
5319         * modules/crypto/gc-arcfour-tests: Moved from ../.
5320         * modules/crypto/gc-arctwo: Moved from ../.
5321         * modules/crypto/gc-arctwo-tests: Moved from ../.
5322         * modules/crypto/gc-des: Moved from ../.
5323         * modules/crypto/gc-des-tests: Moved from ../.
5324         * modules/crypto/gc-hmac-md5: Moved from ../.
5325         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
5326         * modules/crypto/gc-hmac-sha1: Moved from ../.
5327         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
5328         * modules/crypto/gc-md2: Moved from ../.
5329         * modules/crypto/gc-md2-tests: Moved from ../.
5330         * modules/crypto/gc-md4: Moved from ../.
5331         * modules/crypto/gc-md4-tests: Moved from ../.
5332         * modules/crypto/gc-md5: Moved from ../.
5333         * modules/crypto/gc-md5-tests: Moved from ../.
5334         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
5335         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
5336         * modules/crypto/gc-random: Moved from ../.
5337         * modules/crypto/gc-rijndael: Moved from ../.
5338         * modules/crypto/gc-rijndael-tests: Moved from ../.
5339         * modules/crypto/gc-sha1: Moved from ../.
5340         * modules/crypto/gc-sha1-tests: Moved from ../.
5341         * modules/crypto/gc-tests: Moved from ../.
5342         * modules/crypto/hmac-md5: Moved from ../.
5343         * modules/crypto/hmac-md5-tests: Moved from ../.
5344         * modules/crypto/hmac-sha1: Moved from ../.
5345         * modules/crypto/hmac-sha1-tests: Moved from ../.
5346         * modules/crypto/md2: Moved from ../.
5347         * modules/crypto/md2-tests: Moved from ../.
5348         * modules/crypto/md4: Moved from ../.
5349         * modules/crypto/md4-tests: Moved from ../.
5350         * modules/crypto/md5: Moved from ../.
5351         * modules/crypto/md5-tests: Moved from ../.
5352         * modules/crypto/memxor: Moved from ../.
5353         * modules/crypto/rijndael: Moved from ../.
5354         * modules/crypto/rijndael-tests: Moved from ../.
5355         * modules/crypto/sha1: Moved from ../.
5356
5357 2007-03-30  James Youngman  <jay@gnu.org>
5358
5359         * tests/test-stat-time.c (prepare_test): use chmod() rather than
5360         rename() to change the ctime of a file (because ctime is unaffected
5361         by rename on jfs2 on AIX 5.1).
5362         (main): Start by doing cleanup, in case a previous run failed leaving
5363         test files behind.
5364
5365 2007-03-31  Bruno Haible  <bruno@clisp.org>
5366
5367         Support old proprietary implementations of iconv.
5368         * modules/iconv_open: New file.
5369         * lib/iconv_.h: New file.
5370         * m4/iconv_h.m4: New file.
5371         * lib/iconv_open.c: New file.
5372         * lib/iconv_open-aix.gperf: New file.
5373         * lib/iconv_open-hpux.gperf: New file.
5374         * lib/iconv_open-irix.gperf: New file.
5375         * lib/iconv_open-osf.gperf: New file.
5376         * m4/iconv_open.m4: New file.
5377         * modules/linebreak (Depends-on): Add iconv_open.
5378         * modules/striconv (Depends-on): Likewise.
5379         * modules/striconveh (Depends-on): Likewise.
5380         * modules/unicodeio (Depends-on): Likewise.
5381         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
5382         (iconv_t)(-1).
5383         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
5384         conversion if cd is (iconv_t)(-1).
5385         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
5386         is not possible.
5387
5388 2007-03-31  Bruno Haible  <bruno@clisp.org>
5389
5390         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
5391         work on Solaris either. Protect also second use of "autodetect_jp".
5392
5393 2007-03-31  Bruno Haible  <bruno@clisp.org>
5394
5395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
5396         the function is not present.
5397
5398 2007-03-31  Bruno Haible  <bruno@clisp.org>
5399
5400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
5401         the function is not present.
5402
5403 2007-03-31  Bruno Haible  <bruno@clisp.org>
5404
5405         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
5406         a bug in HP-UX iconv_open().
5407
5408 2007-03-31  Bruno Haible  <bruno@clisp.org>
5409
5410         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
5411         (Mathematics <math.h>): New section, add fpieee.
5412         (Input/output <stdio.h>): Add fseterr.
5413         (Mathematics <math.h>): New section, add printf-frexp.
5414         (Container data structures): Add sublist.
5415         (Core language properties): Add fpucw, inline.
5416         (Functions for greatest-width integer types <inttypes.h>): Add
5417         imaxabs, imaxdiv, inttypes.
5418         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
5419         isnanl-nolibm, ldexp.
5420         (Mathematics <math.h>): New section, add printf-frexpl.
5421         (Support for systems lacking POSIX:2001): Add fprintf-posix,
5422         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
5423         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
5424         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
5425         (Unicode string functions): Add unistr/u*-mbtoucr.
5426         (Java): Add javacomp-script, javaexec-script.
5427         (C#): Add csharpcomp-script, csharpexec-script.
5428         (Support for building libraries and executables): Add havelib,
5429         relocatable-*.
5430         (Support for maintaining and releasing projects): Renamed from
5431         'Support for maintaining and release projects'. Add announce-gen.
5432
5433 2007-03-31  Bruno Haible  <bruno@clisp.org>
5434
5435         * README: Talk primarily about git.
5436         (git and CVS): Renamed from CVS.
5437         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
5438         gnulib is available through git.
5439         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
5440
5441 2007-03-30  Bruno Haible  <bruno@clisp.org>
5442
5443         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
5444         * lib/poll_.h: Likewise.
5445         * lib/stat_.h: Likewise.
5446         * lib/sys_time_.h: Likewise.
5447         * lib/sysexit_.h: Likewise.
5448         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
5449         * lib/stdbool_.h: Likewise.
5450         * lib/byteswap_.h: Add double-inclusion guard.
5451
5452 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
5453
5454         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
5455
5456 2007-03-30  Karl Berry  <karl@gnu.org>
5457
5458         * config/srclist-update: double space after USA in the license
5459         substitution, since that's how it's usually (?) written.
5460
5461 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5462
5463         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
5464         reported by Bruno Haible.
5465
5466 2007-03-29  Bruno Haible  <bruno@clisp.org>
5467
5468         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
5469         a bug in AIX iconv().
5470
5471 2007-03-29  Bruno Haible  <bruno@clisp.org>
5472
5473         * modules/ldexpl-tests: New file.
5474         * tests/test-ldexpl.c: New file.
5475
5476 2007-03-29  Bruno Haible  <bruno@clisp.org>
5477
5478         * lib/ldexpl.c: Include fpucw.h.
5479         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
5480         multiplication.
5481         * modules/ldexpl (Depends-on): Add fpucw.
5482
5483 2007-03-29  Bruno Haible  <bruno@clisp.org>
5484
5485         * modules/ldexpl: New file.
5486         * m4/ldexpl.m4: New file.
5487         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
5488         set.
5489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
5490         REPLACE_LDEXPL.
5491         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
5492         REPLACE_LDEXPL.
5493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
5494         gl_FUNC_LDEXPL_WORKS.
5495         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
5496         * modules/mathl (Files): Remove lib/ldexpl.c.
5497         (Depends-on): Add ldexpl.
5498
5499 2007-03-29  Bruno Haible  <bruno@clisp.org>
5500
5501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
5502
5503 2007-03-29  Bruno Haible  <bruno@clisp.org>
5504
5505         * tests/test-striconveh.c (main): Don't assume that a direct conversion
5506         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
5507         and possibly also HP-UX.
5508         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
5509         work on AIX, IRIX, HP-UX, OSF/1.
5510         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5511         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5512         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5513         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5514         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
5515         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5516
5517 2007-03-29  Bruno Haible  <bruno@clisp.org>
5518
5519         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
5520
5521 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5522
5523         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
5524         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
5525
5526 2007-03-29  Eric Blake  <ebb9@byu.net>
5527
5528         * lib/acl-internal.h: Remove redundant include.
5529         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
5530         Cygwin when a file is locked.
5531
5532 2007-03-29  Bruno Haible  <bruno@clisp.org>
5533
5534         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
5535         file.
5536         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
5537
5538 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5539
5540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
5541         try to remove a parent directory if the child couldn't be removed
5542         (except for the first rmdir, which could fail because the child
5543         doesn't exist).  Problem reported by Jeff Blaine in
5544         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
5545
5546 2007-03-28  Bruno Haible  <bruno@clisp.org>
5547
5548         * lib/striconveh.c (utf8conv_carefully): New function.
5549         (mem_cd_iconveh_internal): Invoke it.
5550
5551 2007-03-28  Bruno Haible  <bruno@clisp.org>
5552
5553         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
5554         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
5555         input.
5556         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
5557         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
5558         unistr/u8-uctomb.
5559
5560 2007-03-28  Bruno Haible  <bruno@clisp.org>
5561
5562         * modules/unistr/u8-mbtoucr: New file.
5563         * lib/unistr/u8-mbtoucr.c: New file.
5564         * modules/unistr/u16-mbtoucr: New file.
5565         * lib/unistr/u16-mbtoucr.c: New file.
5566         * modules/unistr/u16-mbtoucr: New file.
5567         * lib/unistr/u16-mbtoucr.c: New file.
5568         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
5569
5570 2007-03-27  Simon Josefsson  <simon@josefsson.org>
5571             Bruno Haible  <bruno@clisp.org>
5572
5573         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
5574         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
5575         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
5576
5577         * m4/stdio_h.m4: Add stubs for vasprintf too.
5578
5579         * modules/stdio: Support vasprintf in sed command.
5580
5581         * modules/vasprintf: Depend on stdio for prototypes.  Remove
5582         vasprintf.h.  Add stdio module indicator.
5583
5584         * lib/stdio_.h: Declare asprintf and vasprintf, based on
5585         vasprintf.h.
5586
5587         * lib/vasprintf.h: File removed.
5588
5589         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
5590         * lib/vasprintf.c: Ditto.
5591         * lib/xvasprintf.c: Ditto.
5592         * tests/test-vasprintf-posix.c: Ditto.
5593         * tests/test-vasprintf.c: Ditto.
5594
5595 2007-03-27  Bruno Haible  <bruno@clisp.org>
5596
5597         Make vasnprintf multithread-safe.
5598         * lib/vasnprintf.c (decimal_point_char): New function.
5599         (VASNPRINTF): Use it.
5600         Suggested by Simon Josefsson.
5601
5602 2007-03-27  Eric Blake  <ebb9@byu.net>
5603
5604         Support sub-second birthtime on cygwin.
5605         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
5606         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
5607         (get_stat_birthtime): Also work with st_birthtim.
5608
5609 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
5610
5611         * lib/stat-time.h (USE_BIRTHTIME): Remove.
5612         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
5613         (get_stat_birthtime_ns): Do not try to use "spare" fields.
5614         (get_stat_birthtime_ns): Simplify compile-time tests.
5615         (get_stat_birthtime): Change the API to look like
5616         get_stat_mtime etc., except return a negative tv_nsec on error.
5617         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
5618         Don't check for "spare" fields.
5619         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
5620         or for struct stat.st_birthtime, as these tests aren't used.
5621         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
5622
5623 2007-03-27  Bruno Haible  <bruno@clisp.org>
5624
5625         * lib/stat-time.h: Include <sys/stat.h>.
5626
5627 2007-03-27  James Youngman  <jay@gnu.org>
5628
5629         * lib/stat-time.h (get_stat_birthtime): New function for
5630           retrieving st_birthtime as provided by UFS2 (hence *BSD).
5631         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
5632           and its variants.
5633         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
5634         * modules/stat-time-test: New file.
5635         * tests/test-stat-time.c: New test, devised by Bruno Haible.
5636
5637 2007-03-26  Bruno Haible  <bruno@clisp.org>
5638
5639         Better support of signalling NaNs.
5640         * lib/atanl.c: Include isnanl.h.
5641         (atanl): Perform test for NaN at the beginning of the function and
5642         through a call to isnanl.
5643         * lib/cosl.c: Include isnanl.h.
5644         (cosl): Perform test for NaN at the beginning of the function and
5645         through a call to isnanl.
5646         * lib/ldexpl.c: Include isnanl.h.
5647         (ldexpl): Perform test for NaN through a call to isnanl.
5648         * lib/logl.c: Include isnanl.h.
5649         (logl): Perform test for NaN at the beginning of the function and
5650         through a call to isnanl.
5651         * lib/sinl.c: Include isnanl.h.
5652         (sinl): Perform test for NaN at the beginning of the function and
5653         through a call to isnanl.
5654         * lib/sqrtl.c: Include isnanl.h.
5655         (sqrtl): Perform test for NaN at the beginning of the function and
5656         through a call to isnanl.
5657         * lib/tanl.c: Include isnanl.h.
5658         (tanl): Perform test for NaN at the beginning of the function and
5659         through a call to isnanl.
5660         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
5661         * modules/mathl (Depends-on): Add isnanl.
5662
5663 2007-03-26  Eric Blake  <ebb9@byu.net>
5664
5665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
5666         regression in logic sense of previous patch.
5667
5668 2007-03-26  Bruno Haible  <bruno@clisp.org>
5669
5670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
5671         unportable shell command "if ! ...".
5672         Reported by Ralf Wildenhues.
5673
5674 2007-03-25  Bruno Haible  <bruno@clisp.org>
5675
5676         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
5677         <sysexits.h> file, and only add EX_CONFIG.
5678         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
5679         absolute file name and whether it is sufficient. Substitute also
5680         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
5681         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
5682         ABSOLUTE_SYSEXITS_H into sysexits.h.
5683
5684 2007-03-25  Bruno Haible  <bruno@clisp.org>
5685
5686         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
5687         hints is NULL.
5688
5689 2007-03-25  Bruno Haible  <bruno@clisp.org>
5690
5691         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
5692         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
5693
5694 2007-03-25  Bruno Haible  <bruno@clisp.org>
5695
5696         * lib/vasnprintf.c: Include langinfo.h.
5697         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
5698         multithread-safe.
5699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
5700         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
5701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5703         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5705         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5706         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
5707         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5708         Reported by Simon Josefsson.
5709
5710 2007-03-25  Bruno Haible  <bruno@clisp.org>
5711
5712         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
5713         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
5714         * modules/vasnprintf (Depends-on): Add stdint.
5715
5716 2007-03-25  Bruno Haible  <bruno@clisp.org>
5717
5718         * modules/fpieee: New file.
5719         * m4/fpieee.m4: New file.
5720         * modules/isnan-nolibm (Depends-on): Add fpieee.
5721         * modules/isnanl-nolibm (Depends-on): Add fpieee.
5722         * modules/isnanl (Depends-on): Add fpieee.
5723
5724 2007-03-25  Bruno Haible  <bruno@clisp.org>
5725
5726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
5727
5728 2007-03-25  Bruno Haible  <bruno@clisp.org>
5729
5730         Avoid test failures on IRIX 6.5.
5731         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
5732         (main): Use it.
5733         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
5734         macros.
5735         (main): Use them.
5736
5737 2007-03-25  Bruno Haible  <bruno@clisp.org>
5738
5739         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
5740         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
5741         exists but doesn't work.
5742         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
5743         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
5744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
5745         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
5746
5747 2007-03-25  Bruno Haible  <bruno@clisp.org>
5748
5749         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
5750         returns inf. Needed on IRIX 6.5.
5751
5752 2007-03-25  Bruno Haible  <bruno@clisp.org>
5753
5754         * tests/test-frexpl.c: Include isnanl-nolibm.h.
5755         (main): Use isnanl instead of x != x idiom.
5756         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
5757
5758         * tests/test-frexp.c: Include isnan.h.
5759         (main): Use isnan instead of x != x idiom.
5760         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
5761
5762 2007-03-25  Bruno Haible  <bruno@clisp.org>
5763
5764         * tests/test-frexp.c (NaN): New function/macro.
5765         (main): Use it instead of 0.0 / 0.0.
5766         * tests/test-isnan.c (NaN): New function/macro.
5767         (main): Use it instead of 0.0 / 0.0.
5768         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
5769         (test_function): Use it instead of 0.0 / 0.0.
5770         * tests/test-vasprintf-posix.c (NaN): New function/macro.
5771         (test_function): Use it instead of 0.0 / 0.0.
5772         * tests/test-snprintf-posix.h (NaN): New function/macro.
5773         (test_function): Use it instead of 0.0 / 0.0.
5774         * tests/test-sprintf-posix.h (NaN): New function/macro.
5775         (test_function): Use it instead of 0.0 / 0.0.
5776         * tests/test-fprintf-posix.h (NaN): New function/macro.
5777         (test_function): Use it instead of 0.0 / 0.0.
5778         * tests/test-printf-posix.h (NaN): New function/macro.
5779         (test_function): Use it instead of 0.0 / 0.0.
5780
5781         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
5782
5783 2007-03-25  Bruno Haible  <bruno@clisp.org>
5784
5785         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
5786
5787 2007-03-25  Bruno Haible  <bruno@clisp.org>
5788
5789         * lib/regexec.c (merge_state_with_log): Make static.
5790
5791 2007-03-25  Bruno Haible  <bruno@clisp.org>
5792
5793         * lib/trigl.c (kernel_rem_pio2): Make static.
5794
5795 2007-03-25  Bruno Haible  <bruno@clisp.org>
5796
5797         * lib/sincosl.c (sincosl_table): Make static.
5798
5799 2007-03-25  Bruno Haible  <bruno@clisp.org>
5800
5801         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
5802         if the compiler does not support C99.
5803
5804 2007-03-25  Bruno Haible  <bruno@clisp.org>
5805
5806         * modules/time (Makefile.am): Ensure all rule action lines start with a
5807         tab.
5808
5809 2007-03-24  Bruno Haible  <bruno@clisp.org>
5810
5811         * modules/tsearch-tests: New file.
5812         * tests/test-tsearch.sh: New file.
5813         * tests/test-tsearch.c: New file, mostly copied from glibc.
5814
5815         * modules/search-tests: New file.
5816         * tests/test-search.c: New file.
5817
5818         * modules/search: New file.
5819         * lib/search_.h: New file, incorporating lib/tsearch.h.
5820         * m4/search_h.m4: New file.
5821         * lib/tsearch.h: Remove file.
5822         * lib/tsearch.c: Include search.h instead of tsearch.h.
5823         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
5824         HAVE_TSEARCH.
5825         * modules/tsearch (Files): Remove lib/tsearch.h.
5826         (Depends-on): Add search.
5827         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
5828         (Include): Change tsearch.h into search.h.
5829
5830 2007-03-24  Bruno Haible  <bruno@clisp.org>
5831
5832         * modules/fpucw: New file.
5833         * lib/fpucw.h: New file.
5834         * lib/frexp.c: Include fpucw.h.
5835         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
5836         (FUNC): Use them.
5837         * lib/printf-frexp.c: Include fpucw.h.
5838         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
5839         (FUNC): Use them.
5840         * lib/vasnprintf.c: Include fpucw.h.
5841         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
5842         'long double' calculations.
5843         * tests/test-frexpl.c: Include fpucw.h.
5844         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
5845         * tests/test-printf-frexpl.c: Include fpucw.h.
5846         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
5847         * modules/frexpl (Depends-on): Add fpucw.
5848         * modules/printf-frexpl (Depends-on): Likewise.
5849         * modules/fprintf-posix (Depends-on): Likewise.
5850         * modules/snprintf-posix (Depends-on): Likewise.
5851         * modules/sprintf-posix (Depends-on): Likewise.
5852         * modules/vasnprintf-posix (Depends-on): Likewise.
5853         * modules/vasprintf-posix (Depends-on): Likewise.
5854         * modules/vfprintf-posix (Depends-on): Likewise.
5855         * modules/vsnprintf-posix (Depends-on): Likewise.
5856         * modules/vsprintf-posix (Depends-on): Likewise.
5857         * modules/frexpl-tests (Depends-on): Likewise.
5858         * modules/printf-frexpl-tests (Depends-on): Likewise.
5859
5860 2007-03-24  Bruno Haible  <bruno@clisp.org>
5861
5862         * lib/float+.h: New file.
5863         * lib/isnan.c: Include float+.h.
5864         (SIZE): New macro.
5865         (FUNC): Compare only SIZE bytes of the value.
5866         * lib/vasnprintf.c: Include float+.h.
5867         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
5868         SIZEOF_LDBL or SIZEOF_DBL bytes.
5869         * modules/isnan-nolibm (Files): Add lib/float+.h.
5870         * modules/isnanl-nolibm (Files): Add lib/float+.h.
5871         * modules/isnanl (Files): Add lib/float+.h.
5872         * modules/vasnprintf (Files): Add lib/float+.h.
5873
5874 2007-03-24  Bruno Haible  <bruno@clisp.org>
5875
5876         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
5877         include isnanl-nolibm.h.
5878
5879 2007-03-24  Bruno Haible  <bruno@clisp.org>
5880
5881         * tests/test-read-file.c (main): Don't produce spurious output for
5882         expected situations. Make the test fail if it encountered unexpected
5883         results.
5884
5885 2007-03-24  Bruno Haible  <bruno@clisp.org>
5886
5887         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
5888         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
5889
5890 2007-03-24  Bruno Haible  <bruno@clisp.org>
5891
5892         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
5893
5894 2007-03-24  Bruno Haible  <bruno@clisp.org>
5895
5896         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
5897         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
5898
5899         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
5900         * modules/utf8-ucs4: Turn into a symbolic link to module
5901         unistr/u8-mbtouc.
5902
5903         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
5904         utf8-ucs4-unsafe.
5905         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
5906         unistr/u8-mbtouc-unsafe.
5907
5908         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
5909         * modules/utf16-ucs4: Turn into a symbolic link to module
5910         unistr/u16-mbtouc.
5911
5912         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
5913         utf16-ucs4-unsafe.
5914         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
5915         unistr/u16-mbtouc-unsafe.
5916
5917         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
5918         * modules/ucs4-utf8: Turn into a symbolic link to module
5919         unistr/u8-ubtomb.
5920
5921         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
5922         * modules/ucs4-utf16: Turn into a symbolic link to module
5923         unistr/u16-ubtomb.
5924
5925 2007-03-24  Bruno Haible  <bruno@clisp.org>
5926
5927         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
5928         Enable the function only if HAVE_INLINE.
5929         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
5930         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
5931         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
5932         Enable the function only if HAVE_INLINE.
5933         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
5934         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
5935         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
5936         Enable the function only if HAVE_INLINE.
5937         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
5938         Enable the function only if HAVE_INLINE.
5939         * modules/utf8-ucs4: Update.
5940         * modules/utf8-ucs4-unsafe: Update.
5941         * modules/utf16-ucs4: Update.
5942         * modules/utf16-ucs4-unsafe: Update.
5943         * modules/ucs4-utf8: Update.
5944         * modules/ucs4-utf16: Update.
5945
5946 2007-03-24  Bruno Haible  <bruno@clisp.org>
5947
5948         * lib/utf8-ucs4.h: Remove file.
5949         * lib/utf8-ucs4-unsafe.h: Remove file.
5950         * lib/utf16-ucs4.h: Remove file.
5951         * lib/utf16-ucs4-unsafe.h: Remove file.
5952         * lib/ucs4-utf8.h: Remove file.
5953         * lib/ucs4-utf16.h: Remove file.
5954         * lib/unistr.h: Include their previous contents.
5955         * m4/utf-ucs4.m4: Remove file.
5956         * m4/ucs4-utf.m4: Remove file.
5957         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
5958         (Depends-on): Add unistr/base.
5959         (configure.ac): Remove gl_UTF_UCS4.
5960         (Makefile.am): Update.
5961         (Include): Change to unistr.h.
5962         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
5963         (Depends-on): Add unistr/base.
5964         (configure.ac): Remove gl_UTF_UCS4.
5965         (Makefile.am): Update.
5966         (Include): Change to unistr.h.
5967         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
5968         (Depends-on): Add unistr/base.
5969         (configure.ac): Remove gl_UTF_UCS4.
5970         (Makefile.am): Update.
5971         (Include): Change to unistr.h.
5972         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
5973         (Depends-on): Add unistr/base.
5974         (configure.ac): Remove gl_UTF_UCS4.
5975         (Makefile.am): Update.
5976         (Include): Change to unistr.h.
5977         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
5978         (Depends-on): Add unistr/base.
5979         (configure.ac): Remove gl_UCS4_UTF.
5980         (Makefile.am): Update.
5981         (Include): Change to unistr.h.
5982         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
5983         (Depends-on): Add unistr/base.
5984         (configure.ac): Remove gl_UCS4_UTF.
5985         (Makefile.am): Update.
5986         (Include): Change to unistr.h.
5987         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
5988         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
5989         utf8-ucs4-unsafe.h.
5990         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
5991         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
5992         utf16-ucs4-unsafe.h.
5993         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
5994         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
5995         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
5996         * lib/unistr/u8-strchr.c: Likewise.
5997         * lib/unistr/u8-strrchr.c: Likewise.
5998         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
5999         * lib/unistr/u16-strchr.c: Likewise.
6000         * lib/unistr/u16-strrchr.c: Likewise.
6001         * lib/striconveh.c: Update.
6002         * lib/linebreak.c: Update.
6003
6004 2007-03-24  Bruno Haible  <bruno@clisp.org>
6005
6006         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
6007         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
6008
6009 2007-03-22  Bruno Haible  <bruno@clisp.org>
6010
6011         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
6012
6013 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
6014
6015         * MODULES.html.sh (File system functions): New module write-any-file.
6016         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
6017         * m4/write-any-file.m4: New files.
6018
6019 2007-03-23  Eric Blake  <ebb9@byu.net>
6020
6021         * gnulib-tool: Rearrange space-tab sequences, since some editors
6022         like to eat them.
6023
6024 2007-03-23  Eric Blake  <ebb9@byu.net>
6025
6026         * lib/version-etc.c (version_etc_va): Update license wording to
6027         be more concise.  Recommended by Richard Stallman.
6028
6029 2007-03-22  Bruno Haible  <bruno@clisp.org>
6030
6031         * lib/poll.c (MSG_PEEK): New fallback definition.
6032
6033 2007-03-22  Bruno Haible  <bruno@clisp.org>
6034
6035         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
6036         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
6037         (main): Update.
6038         Fixes a compilation error on BeOS.
6039
6040 2007-03-22  Bruno Haible  <bruno@clisp.org>
6041
6042         * modules/frexpl-tests: New file.
6043         * tests/test-frexpl.c: New file.
6044
6045         * modules/frexpl: New file.
6046         * m4/frexpl.m4: New file.
6047         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
6048         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
6049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
6050         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
6051         (Depends-on): Add frexpl. Remove isnanl-nolibm.
6052         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
6053
6054 2007-03-22  Bruno Haible  <bruno@clisp.org>
6055
6056         * lib/frexpl.c: Share code with lib/frexp.c.
6057         * modules/mathl (Files): Add lib/frexp.c.
6058         (Depends-on): Add isnanl-nolibm.
6059
6060 2007-03-22  Bruno Haible  <bruno@clisp.org>
6061
6062         * modules/printf-frexp (Files): Add m4/frexp.m4.
6063         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
6064         only if the found frexp function actually works.
6065
6066 2007-03-22  Bruno Haible  <bruno@clisp.org>
6067
6068         * lib/frexp.c: Remove older implementation that uses divisions.
6069
6070 2007-03-21  Bruno Haible  <bruno@clisp.org>
6071
6072         * modules/frexp-tests: New file.
6073         * tests/test-frexp.c: New file.
6074
6075         * modules/frexp: New file.
6076         * lib/frexp.c: New file.
6077         * m4/frexp.m4: New file.
6078         * lib/math_.h (frexp): New declaration.
6079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
6080         REPLACE_FREXP.
6081         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
6082
6083 2007-03-21  Bruno Haible  <bruno@clisp.org>
6084
6085         * modules/isnanl-tests: New file.
6086         * tests/test-isnanl.c: New file.
6087
6088         * modules/isnanl: New file.
6089         * lib/isnanl.h: New file.
6090         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
6091         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
6092         gl_FUNC_ISNANL_WORKS.
6093         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
6094         New macros.
6095
6096 2007-03-21  Bruno Haible  <bruno@clisp.org>
6097
6098         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
6099         lib/isnanl.h.
6100         (Include): Update.
6101         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
6102         * lib/vasnprintf.c: Update.
6103         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
6104         tests/test-isnanl.h, remove tests/test-isnanl.c.
6105         (Makefile.am): Update.
6106         * tests/test-isnanl-nolibm.c: New file.
6107         * tests/test-isnanl.h: New file.
6108         * tests/test-isnanl.c: Remove file.
6109
6110 2007-03-21  Jim Meyering  <jim@meyering.net>
6111
6112         When trying to open ".", treat ESTALE like EACCES.
6113         * lib/savewd.c (savewd_save): Resort to forking not just upon
6114         failure with EACCES, but also when errno is ESTALE.
6115
6116 2007-03-20  Bruno Haible  <bruno@clisp.org>
6117
6118         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
6119         Needed on AIX 5.1. Reported by Matthew Woehlke.
6120
6121 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6122
6123         Suggestions by Bruno Haible:
6124         * lib/acl-internal.h: Include "gettext.h" rather than rolling
6125         our own.
6126         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
6127         * modules/acl (Depends-on): Add gettext.
6128
6129 2007-03-19  Bruno Haible  <bruno@clisp.org>
6130
6131         * modules/iconvme: Remove file.
6132         * lib/iconvme.h: Remove file.
6133         * lib/iconvme.c: Remove file.
6134         * m4/iconvme.m4: Remove file.
6135
6136 2007-03-19  Bruno Haible  <bruno@clisp.org>
6137
6138         * doc/relocatable-maint.texi: Break long shell script line.
6139         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
6140
6141 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6142
6143         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
6144         handle file_has_acl.
6145         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
6146         * lib/acl.c: Move header inclusions and related macro defns into
6147         lib/acl-internal.h.
6148         (S_ISLNK): Remove defn, since that's now done for us.
6149         (file_has_acl): Move to lib/file-has-acl.c.
6150         Call acl_trivial if available.  This is the crucial part of the fix.
6151         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
6152         shared within the library.  Rewrite a bit, partly to make it compatible
6153         with the GNU coding style.
6154         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
6155         Remove unnecessary double-quotes.
6156         Don't test for acl_to_text; the build will catch that.
6157         Replace acl_entries if it doesn't exist and it is needed.
6158         Check for -lsec and acl_trivial (as used on Solaris 10).
6159         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
6160         lib/file-has-acl.c.
6161         (Depends-on): Add sys_stat, for S_ISLNK.
6162
6163 2007-03-19  Ben Pfaff  <blp@gnu.org>
6164
6165         * doc/gnulib.texi: Fix typos.
6166         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
6167
6168 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6169
6170         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
6171         If size is zero here, buf must be zero.
6172
6173 2007-03-19  Simon Josefsson  <simon@josefsson.org>
6174
6175         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
6176         <bruno@clisp.org>.
6177
6178 2007-03-18  Bruno Haible  <bruno@clisp.org>
6179
6180         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
6181         Suggested by Eric Blake.
6182
6183 2007-03-18  Ben Pfaff  <blp@gnu.org>
6184
6185         * doc/relocatable.texi: Recommend using as prefix a directory
6186         that does not exist and will never be created.  Based on
6187         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
6188         and others.
6189
6190 2007-03-17  Bruno Haible  <bruno@clisp.org>
6191
6192         * lib/fchownat.c: Include lchown.h.
6193
6194 2007-03-17  Bruno Haible  <bruno@clisp.org>
6195
6196         Fix endless loop when the given allocated size was > INT_MAX.
6197         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
6198         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
6199         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
6200         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
6201         * lib/sprintf.c (sprintf): Likewise.
6202
6203 2007-03-17  Bruno Haible  <bruno@clisp.org>
6204
6205         * tests/test-argp-2.sh (func_compare): Output a context diff.
6206
6207 2007-03-17  Bruno Haible  <bruno@clisp.org>
6208
6209         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
6210         locale's decimal-point character.
6211
6212 2007-03-17  Bruno Haible  <bruno@clisp.org>
6213
6214         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
6215         before comparing it. Needed because on some platforms (e.g. x86) a
6216         'long double' occupies less bytes than sizeof (long double).
6217
6218 2007-03-17  Bruno Haible  <bruno@clisp.org>
6219
6220         * tests/test-crc.c (main): Make printf statements 64-bit clean.
6221         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
6222         * tests/test-getaddrinfo.c (simple): Likewise.
6223         * tests/test-read-file.c (main): Likewise.
6224
6225 2007-03-17  Bruno Haible  <bruno@clisp.org>
6226
6227         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
6228
6229 2007-03-17  Bruno Haible  <bruno@clisp.org>
6230
6231         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
6232         unused variable.
6233
6234 2007-03-17  Bruno Haible  <bruno@clisp.org>
6235
6236         * tests/test-c-strcasecmp.c: Include c-strcase.h.
6237         * tests/test-c-strncasecmp.c: Likewise.
6238
6239 2007-03-17  Bruno Haible  <bruno@clisp.org>
6240
6241         * modules/stdlib (Depends-on): Add unistd.
6242         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
6243         Needed for MacOS X 10.3.
6244
6245 2007-03-17  Bruno Haible  <bruno@clisp.org>
6246
6247         * lib/unistr/u-strdup.h: Include <stdlib.h>.
6248
6249 2007-03-17  Bruno Haible  <bruno@clisp.org>
6250
6251         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
6252
6253 2007-03-17  Bruno Haible  <bruno@clisp.org>
6254
6255         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
6256         to reflect files copied from gnulib (with or without modifications).
6257         Suggested by Jim Meyering.
6258
6259 2007-03-17  Eric Blake  <ebb9@byu.net>
6260
6261         * NEWS: Document stdlib change from 2007-02-18.
6262
6263 2007-03-17  Jim Meyering  <jim@meyering.net>
6264
6265         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
6266         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
6267         someone uses a name containing shell meta-characters.
6268         Reported by Alfred M. Szmidt.
6269
6270         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
6271
6272 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
6273
6274         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
6275         and copy gettext configuration files only if configure.ac contains
6276         a use of AM_GNU_GETTEXT_VERSION.
6277
6278 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
6279
6280         * build-aux/bootstrap (gnulib_name): New variable.
6281         (gnulib_tool_options): Use it.
6282
6283 2007-03-13  Simon Josefsson  <simon@josefsson.org>
6284
6285         * tests/test-des.c: Use new namespace.
6286
6287 2007-03-15  Bruno Haible  <bruno@clisp.org>
6288
6289         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
6290         Reported by James Youngman <jay@gnu.org>.
6291
6292 2007-03-15  Bruno Haible  <bruno@clisp.org>
6293
6294         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
6295         declared prototype. Needed with cc on OSF/1 5.1.
6296
6297 2007-03-15  Bruno Haible  <bruno@clisp.org>
6298
6299         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
6300         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
6301         (struct gl_list_implementation): Add dispose_fn argument to the
6302         'create_empty', 'create' methods.
6303         (struct gl_list_impl_base): Add field 'dispose_fn'.
6304         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
6305         argument.
6306         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
6307         dispose_fn argument.
6308         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
6309         dispose_fn on the dropped values.
6310         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
6311         dispose_fn argument.
6312         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
6313         dropped values.
6314         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
6315         (gl_tree_remove_node): Call dispose_fn on the dropped value.
6316         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
6317         (gl_tree_remove_node): Call dispose_fn on the dropped value.
6318         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
6319         argument.
6320         (gl_tree_list_free): Call dispose_fn on the dropped values.
6321         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
6322         the dropped values.
6323         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
6324         Add dispose_fn argument.
6325         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
6326         Call dispose_fn on the dropped values.
6327         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
6328         Add dispose_fn argument.
6329         (gl_sublist_create): Initialize the 'dispose_fn' field.
6330         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
6331         * tests/test-array_list.c (main): Update.
6332         * tests/test-carray_list.c (main): Update.
6333         * tests/test-avltree_list.c (main): Update.
6334         * tests/test-rbtree_list.c (main): Update.
6335         * tests/test-avltreehash_list.c (main): Update.
6336         * tests/test-rbtreehash_list.c (main): Update.
6337         * tests/test-linked_list.c (main): Update.
6338         * tests/test-linkedhash_list.c (main): Update.
6339         * tests/test-array_oset.c (main): Update.
6340
6341 2007-03-15  Bruno Haible  <bruno@clisp.org>
6342
6343         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
6344         (gl_oset_create_empty): Add dispose_fn argument.
6345         (struct gl_oset_implementation): Add dispose_fn argument to
6346         'create_empty' method.
6347         (struct gl_oset_impl_base): Add dispose_fn field.
6348         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
6349         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
6350         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
6351         values.
6352         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
6353         (gl_tree_oset_free): Call dispose_fn on the dropped values.
6354         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
6355         dropped value.
6356         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
6357         dropped value.
6358         * tests/test-array_oset.c (main): Update.
6359         * tests/test-avltree_oset.c (main): Update.
6360         * tests/test-rbtree_oset.c (main): Update.
6361         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
6362
6363 2007-03-13  Bruno Haible  <bruno@clisp.org>
6364
6365         * tests/test-stdbool.c (i): Update after last patch.
6366
6367 2007-03-12  Bruno Haible  <bruno@clisp.org>
6368
6369         * lib/quotearg.c: Include <wctype.h> early, before the definition of
6370         the iswprint macro. Needed on Solaris 2.5.1.
6371
6372 2007-03-12  Bruno Haible  <bruno@clisp.org>
6373
6374         * tests/test-printf-frexp.c (main): Declare x as volatile.
6375
6376 2007-03-12  Simon Josefsson  <simon@josefsson.org>
6377
6378         * doc/gnulib.texi (Build robot for gnulib): New section.
6379
6380 2007-03-12  Jim Meyering  <jim@meyering.net>
6381
6382         * build-aux/bootstrap: New file.
6383         * build-aux/bootstrap.conf: New file, from coreutils.
6384
6385 2007-03-11  Bruno Haible  <bruno@clisp.org>
6386
6387         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
6388
6389 2007-03-12  Simon Josefsson  <simon@josefsson.org>
6390
6391         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
6392         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
6393         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
6394
6395 2007-03-11  Bruno Haible  <bruno@clisp.org>
6396
6397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
6398         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
6399
6400 2007-03-11  Bruno Haible  <bruno@clisp.org>
6401
6402         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
6403         formula. Needed for SunPRO C 5.0.
6404
6405 2007-03-11  Bruno Haible  <bruno@clisp.org>
6406
6407         * modules/long-options (Depends-on): Add getopt.
6408
6409 2007-03-11  Bruno Haible  <bruno@clisp.org>
6410
6411         * modules/modechange (Depends-on): Add stdbool.
6412
6413 2007-03-11  Bruno Haible  <bruno@clisp.org>
6414
6415         * modules/i-ring (Depends-on): Add stdbool.
6416
6417 2007-03-11  Bruno Haible  <bruno@clisp.org>
6418
6419         * modules/gc-des (Depends-on): Add stdbool.
6420
6421 2007-03-11  Bruno Haible  <bruno@clisp.org>
6422
6423         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
6424
6425 2007-03-11  Bruno Haible  <bruno@clisp.org>
6426
6427         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
6428
6429 2007-03-11  Bruno Haible  <bruno@clisp.org>
6430
6431         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
6432
6433 2007-03-11  Bruno Haible  <bruno@clisp.org>
6434
6435         * lib/vasnprintf.c (sprintf): Undefine.
6436
6437 2007-03-11  Bruno Haible  <bruno@clisp.org>
6438
6439         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
6440         initializers in SunPRO C and Compaq C compilers.
6441
6442 2007-03-11  Bruno Haible  <bruno@clisp.org>
6443
6444         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
6445         decrementing code ANSI C compliant.
6446
6447 2007-03-11  Bruno Haible  <bruno@clisp.org>
6448
6449         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
6450         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
6451
6452 2007-03-11  Bruno Haible  <bruno@clisp.org>
6453
6454         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
6455         <stdbool.h> substitute doesn't pass.
6456
6457 2007-03-11  Bruno Haible  <bruno@clisp.org>
6458
6459         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
6460
6461 2007-03-11  Bruno Haible  <bruno@clisp.org>
6462
6463         * gnulib-tool (func_create_megatestdir): Create also an autobuild
6464         script, for submission to autobuild.josefsson.org.
6465
6466 2007-03-10  Bruno Haible  <bruno@clisp.org>
6467
6468         * modules/canonicalize-lgpl-tests: New file.
6469         * tests/test-canonicalize-lgpl.sh: New file.
6470         * tests/test-canonicalize-lgpl.c: New file.
6471
6472         * modules/c-strcase-tests: New file.
6473         * tests/test-c-strcase.sh: New file.
6474         * tests/test-c-strcasecmp.c: New file.
6475         * tests/test-c-strncasecmp.c: New file.
6476
6477         * modules/atexit-tests: New file.
6478         * tests/test-atexit.sh: New file.
6479         * tests/test-atexit.c: New file.
6480
6481 2007-03-10  Bruno Haible  <bruno@clisp.org>
6482
6483         * tests/test-binary-io.sh: Use temporary filenames that are not so
6484         likely to clash with those of other tests (in a parallel make).
6485         * tests/test-binary-io.c: Likewise.
6486
6487 2007-03-10  Bruno Haible  <bruno@clisp.org>
6488
6489         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
6490         fallback; use #error instead.
6491         Suggested by Simon Josefsson.
6492
6493 2007-03-10  Bruno Haible  <bruno@clisp.org>
6494
6495         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
6496         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
6497         first and the last.
6498
6499 2007-03-10  Bruno Haible  <bruno@clisp.org>
6500
6501         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
6502
6503 2007-03-10  Bruno Haible  <bruno@clisp.org>
6504
6505         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
6506         "make distcheck".
6507         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
6508         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
6509         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
6510
6511 2007-03-10  Bruno Haible  <bruno@clisp.org>
6512
6513         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
6514         variable.
6515         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
6516         variable.
6517
6518 2007-03-09  Eric Blake  <ebb9@byu.net>
6519         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
6520
6521         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
6522         types are not being provided by gnulib.
6523         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
6524         types are supported.
6525
6526 2007-03-10  Bruno Haible  <bruno@clisp.org>
6527
6528         * lib/stdio_.h (__attribute__): New macro.
6529         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
6530         vsprintf): Specify __attribute__ __format__ for GCC.
6531         Suggested by Eric Blake.
6532
6533 2007-03-09  Bruno Haible  <bruno@clisp.org>
6534
6535         * modules/printf-posix-tests: New file.
6536         * tests/test-printf-posix.sh: New file.
6537         * tests/test-printf-posix.c: New file.
6538
6539         * modules/printf-posix: New file.
6540         * lib/printf.c: New file.
6541         * m4/printf-posix-rpl.m4: New file.
6542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
6543         REPLACE_PRINTF.
6544         * lib/stdio_.h (printf): New declaration.
6545         (format, __format__, ____printf____, ____scanf____, ____strftime____,
6546         ____strfmon____): New macros.
6547         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
6548         REPLACE_PRINTF.
6549
6550 2007-03-09  Bruno Haible  <bruno@clisp.org>
6551
6552         * tests/test-vasnprintf-posix2.sh: New file.
6553         * tests/test-vasnprintf-posix2.c: New file.
6554         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
6555         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
6556         (Makefile.am): Activate test-vasnprintf-posix2.sh.
6557
6558         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
6559         a locale dependent decimal point, rather than always '.'.
6560
6561 2007-03-09  Eric Blake  <ebb9@byu.net>
6562
6563         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
6564         spite of platforms like Tandem/NSK that define it to -1.
6565
6566 2007-03-08  Bruno Haible  <bruno@clisp.org>
6567
6568         * modules/vprintf-posix-tests: New file.
6569         * tests/test-vprintf-posix.sh: New file.
6570         * tests/test-vprintf-posix.c: New file.
6571         * tests/test-printf-posix.h: New file.
6572
6573         * modules/vprintf-posix: New file.
6574         * lib/vprintf.c: New file.
6575         * m4/vprintf-posix.m4: New file.
6576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
6577         REPLACE_VPRINTF.
6578         * lib/stdio_.h (vprintf): New declaration.
6579         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
6580         REPLACE_VPRINTF.
6581
6582 2007-03-08  Bruno Haible  <bruno@clisp.org>
6583
6584         * modules/fprintf-posix-tests: New file.
6585         * tests/test-fprintf-posix.sh: New file.
6586         * tests/test-fprintf-posix.c: New file.
6587
6588         * modules/fprintf-posix: New file.
6589         * lib/fprintf.c: New file.
6590         * m4/fprintf-posix.m4: New file.
6591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
6592         REPLACE_FPRINTF.
6593         * lib/stdio_.h (fprintf): New declaration.
6594         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
6595         REPLACE_FPRINTF.
6596
6597 2007-03-08  Bruno Haible  <bruno@clisp.org>
6598
6599         * modules/vfprintf-posix-tests: New file.
6600         * tests/test-vfprintf-posix.sh: New file.
6601         * tests/test-vfprintf-posix.c: New file.
6602         * tests/test-fprintf-posix.h: New file.
6603         * tests/test-fprintf-posix.out: New file.
6604
6605         * modules/vfprintf-posix: New file.
6606         * lib/vfprintf.c: New file.
6607         * m4/vfprintf-posix.m4: New file.
6608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
6609         REPLACE_VFPRINTF.
6610         * lib/stdio_.h (vfprintf): New declaration.
6611         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
6612         REPLACE_VFPRINTF.
6613
6614 2007-03-08  Bruno Haible  <bruno@clisp.org>
6615
6616         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
6617
6618 2007-03-08  Bruno Haible  <bruno@clisp.org>
6619
6620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
6621         instead of 'expr' invocations.
6622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6627         Suggested by Paul Eggert.
6628
6629 2007-03-08  Bruno Haible  <bruno@clisp.org>
6630
6631         * modules/fseterr-tests: New file.
6632         * tests/test-fseterr.c: New file.
6633
6634         * modules/fseterr: New file.
6635         * lib/fseterr.h: New file.
6636         * lib/fseterr.c: New file.
6637
6638 2007-03-08  Bruno Haible  <bruno@clisp.org>
6639
6640         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
6641         * lib/getopt_.h: Likewise.
6642         * lib/mbswidth.h: Likewise.
6643         * lib/setenv.h: Likewise.
6644         * lib/vasnprintf.h: Likewise.
6645         * lib/vasprintf.h: Likewise.
6646         * lib/verror.h: Likewise.
6647         * lib/xsetenv.h: Likewise.
6648         * lib/xvasprintf.h: Likewise.
6649
6650 2007-03-08  Jim Meyering  <jim@meyering.net>
6651
6652         * users.txt: Add parted.
6653
6654         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
6655
6656 2007-03-07  Bruno Haible  <bruno@clisp.org>
6657
6658         * m4/printf.m4: Make the shell script snippets copy&pastable.
6659
6660 2007-03-02  Bruno Haible  <bruno@clisp.org>
6661
6662         * lib/netinet_in_.h: New file.
6663         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
6664         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
6665         * modules/netinet_in (Files): Add lib/netinet_in_.h.
6666         (Depends-on): Add absolute-header.
6667         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
6668         into netinet/in.h.
6669
6670 2007-03-03  Bruno Haible  <bruno@clisp.org>
6671
6672         * lib/sys_select_.h: New file.
6673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
6674         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
6675         * modules/sys_select (Files): Add lib/sys_select_.h.
6676         (Depends-on): Add absolute-header.
6677         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
6678         into sys/select.h.
6679
6680 2007-03-02  Bruno Haible  <bruno@clisp.org>
6681
6682         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
6683         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
6684         values.
6685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
6686         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
6687         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
6688         * modules/sys_socket (Depends-on): Add absolute-header.
6689         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
6690         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
6691         (Include): Remove requirement of inclusion of <sys/types.h>.
6692
6693 2007-03-02  Bruno Haible  <bruno@clisp.org>
6694
6695         * lib/byteswap_.h (bswap_32): Fix formula.
6696
6697 2007-03-06  Bruno Haible  <bruno@clisp.org>
6698
6699         * modules/sprintf-posix-tests: New file.
6700         * tests/test-sprintf-posix.c: New file.
6701
6702         * modules/sprintf-posix: New file.
6703         * lib/sprintf.c: New file.
6704         * m4/sprintf-posix.m4: New file.
6705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
6706         REPLACE_SPRINTF.
6707         * lib/stdio_.h (sprintf): New declaration.
6708         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
6709         REPLACE_SPRINTF.
6710
6711 2007-03-06  Bruno Haible  <bruno@clisp.org>
6712
6713         * modules/vsprintf-posix-tests: New file.
6714         * tests/test-vsprintf-posix.c: New file.
6715         * tests/test-sprintf-posix.h: New file.
6716
6717         * modules/vsprintf-posix: New file.
6718         * lib/vsprintf.c: New file.
6719         * m4/vsprintf-posix.m4: New file.
6720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
6721         REPLACE_VSPRINTF.
6722         * lib/stdio_.h (vsprintf): New declaration.
6723         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
6724         REPLACE_VSPRINTF.
6725
6726 2007-03-06  Bruno Haible  <bruno@clisp.org>
6727
6728         * modules/vsnprintf (Depend-on): Remove minmax.
6729
6730 2007-03-06  Bruno Haible  <bruno@clisp.org>
6731
6732         * modules/snprintf-posix-tests: New file.
6733         * tests/test-snprintf-posix.c: New file.
6734
6735         * modules/snprintf-posix: New file.
6736         * m4/snprintf-posix.m4: New file.
6737         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
6738         gl_FUNC_SNPRINTF.
6739         (gl_FUNC_SNPRINTF): Invoke it.
6740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
6741         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
6742         is set.
6743         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
6744
6745 2007-03-06  Bruno Haible  <bruno@clisp.org>
6746
6747         * modules/vsnprintf-posix-tests: New file.
6748         * tests/test-vsnprintf-posix.c: New file.
6749         * tests/test-snprintf-posix.h: New file.
6750
6751         * modules/vsnprintf-posix: New file.
6752         * m4/vsnprintf-posix.m4: New file.
6753         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
6754         gl_FUNC_VSNPRINTF.
6755         (gl_FUNC_VSNPRINTF): Invoke it.
6756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
6757         * lib/stdio_.h (vsnprintf): Define as a replacement if
6758         REPLACE_VSNPRINTF is set.
6759         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
6760
6761 2007-03-06  Bruno Haible  <bruno@clisp.org>
6762
6763         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
6764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
6765
6766 2007-03-06  Bruno Haible  <bruno@clisp.org>
6767
6768         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
6769         (asinl): Declare also if HAVE_DECL_ASINL is set.
6770         (atanl): Declare also if HAVE_DECL_ATANL is set.
6771         (ceill): Declare also if HAVE_DECL_CEILL is set.
6772         (cosl): Declare also if HAVE_DECL_COSL is set.
6773         (expl): Declare also if HAVE_DECL_EXPL is set.
6774         (floorl): Declare also if HAVE_DECL_FLOORL is set.
6775         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
6776         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
6777         (logl): Declare also if HAVE_DECL_LOGL is set.
6778         (sinl): Declare also if HAVE_DECL_SINL is set.
6779         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
6780         (tanl): Declare also if HAVE_DECL_TANL is set.
6781         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
6782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
6783         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
6784         declaration of frexpl, ldexpl.
6785         * modules/printf-frexpl (Depends-on): Add math.
6786         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
6787
6788 2007-03-05  Bruno Haible  <bruno@clisp.org>
6789
6790         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
6791         frexpl and ldexpl are declared.
6792         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
6793
6794 2007-03-05  Bruno Haible  <bruno@clisp.org>
6795
6796         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
6797         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
6798
6799 2007-03-05  Bruno Haible  <bruno@clisp.org>
6800
6801         * lib/stdio_.h: Include <stddef.h>.
6802
6803 2007-03-05  Bruno Haible  <bruno@clisp.org>
6804
6805         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
6806
6807 2007-03-05  Bruno Haible  <bruno@clisp.org>
6808
6809         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
6810         NetBSD 4, from Ralf Wildenhues.
6811
6812 2007-03-04  Bruno Haible  <bruno@clisp.org>
6813
6814         * lib/vasprintf.h: Update #if logic for the case when the functions
6815         exist but are overridden.
6816
6817 2007-03-04  Bruno Haible  <bruno@clisp.org>
6818
6819         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
6820         implementations: glibc-2.4 and MacOS X 10.3.
6821         * tests/test-vasnprintf-posix.c (test_function): Test also the case
6822         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
6823         * tests/test-vasprintf-posix.c (test_function): Likewise.
6824
6825 2007-03-04  Bruno Haible  <bruno@clisp.org>
6826
6827         * modules/vasprintf-posix-tests: New file.
6828         * tests/test-vasprintf-posix.c: New file.
6829
6830         * modules/vasprintf-posix: New file.
6831         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
6832         defined.
6833         * m4/vasprintf-posix.m4: New file.
6834         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
6835         gl_FUNC_VASPRINTF.
6836         (gl_FUNC_VASPRINTF): Invoke it.
6837         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
6838         here.
6839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
6840
6841 2007-03-04  Bruno Haible  <bruno@clisp.org>
6842
6843         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
6844         REPLACE_GETTIMEOFDAY.
6845         * modules/sys_time (Makefile.am): Likewise.
6846         * m4/sys_time_h.m4: Likewise.
6847         * m4/gettimeofday.m4: Likewise.
6848
6849 2007-03-04  Bruno Haible  <bruno@clisp.org>
6850
6851         * modules/vasnprintf-posix-tests: New file.
6852         * tests/test-vasnprintf-posix.c: New file.
6853
6854         * modules/vasnprintf-posix: New file.
6855         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
6856         printf-frexpl.h.
6857         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
6858         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
6859         REPLACE_VASNPRINTF is defined.
6860         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
6861         gl_FUNC_VASNPRINTF.
6862         (gl_FUNC_VASNPRINTF): Invoke it.
6863         * m4/vasnprintf-posix.m4: New file.
6864         * m4/printf.m4: New file.
6865
6866 2007-03-04  Bruno Haible  <bruno@clisp.org>
6867
6868         Compile progreloc.c only if --enable-relocatable is specified.
6869         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
6870         if --enable-relocatable was specified.
6871         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
6872         lib_SOURCES.
6873
6874 2007-03-04  Jim Meyering  <jim@meyering.net>
6875
6876         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
6877         Use it consistently, rather than enumerating errno constants.
6878
6879 2007-03-04  Bruno Haible  <bruno@clisp.org>
6880
6881         * modules/xvasprintf-tests: New file.
6882         * tests/test-xvasprintf.c: New file.
6883
6884         * modules/vasprintf-tests: New file.
6885         * tests/test-vasprintf.c: New file.
6886
6887         * modules/vasnprintf-tests: New file.
6888         * tests/test-vasnprintf.c: New file.
6889
6890         * modules/vsnprintf-tests: New file.
6891         * tests/test-vsnprintf.c: New file.
6892
6893         * modules/snprintf-tests: New file.
6894         * tests/test-snprintf.c: New file.
6895
6896 2007-03-04  Bruno Haible  <bruno@clisp.org>
6897
6898         Compile relocatable.c only if --enable-relocatable is specified.
6899         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
6900         gl_RELOCATABLE_LIBRARY.
6901         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
6902         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
6903         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
6904         gl_RELOCATABLE_LIBRARY.
6905         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
6906         (Makefile.am): Remove lib_SOURCES.
6907         * modules/relocatable-lib-lgpl (configure.ac): Invoke
6908         gl_RELOCATABLE_LIBRARY.
6909         (Makefile.am): Remove lib_SOURCES.
6910         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
6911         always.
6912         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6913         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
6914
6915 2007-03-04  Bruno Haible  <bruno@clisp.org>
6916
6917         * modules/argmatch-tests: New file.
6918         * tests/test-argmatch.c: New file.
6919
6920         * tests/test-allocsa.c (main): Halve the number of loop runs.
6921
6922         * modules/alloca-opt-tests: New file.
6923         * tests/test-alloca-opt.c: New file.
6924
6925 2007-03-04  Jim Meyering  <jim@meyering.net>
6926
6927         Work around difference between Linux ACLs and Solaris 10 ZFS.
6928         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
6929         for EINVAL.
6930
6931 2007-03-03  Bruno Haible  <bruno@clisp.org>
6932
6933         * modules/relocatable-prog (Depends-on): Add back progreloc's
6934         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
6935
6936 2007-03-03  Bruno Haible  <bruno@clisp.org>
6937
6938         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
6939         * modules/relocatable-lib: New file.
6940
6941 2007-03-03  Bruno Haible  <bruno@clisp.org>
6942
6943         * modules/relocatable-prog: Renamed from modules/relocatable.
6944         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
6945
6946 2007-03-03  Bruno Haible  <bruno@clisp.org>
6947
6948         * modules/relocatable-script (Files): Add doc/relocatable.texi,
6949         m4/relocatable-lib.m4.
6950         (Depends-on): Remove 'relocatable'.
6951         (configure.ac): Add gl_RELOCATABLE_NOP.
6952
6953 2007-03-03  Bruno Haible  <bruno@clisp.org>
6954
6955         * modules/relocatable-prog-wrapper: New file.
6956         * modules/relocatable (Depends-on): Add it. Remove all other
6957         dependencies except progname.
6958         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
6959
6960         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
6961         (gl_FUNC_STRERROR): Nop.
6962         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
6963
6964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
6965         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
6966
6967         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
6968         (gl_FUNC_READLINK): Update.
6969
6970         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
6971
6972 2007-03-03  Bruno Haible  <bruno@clisp.org>
6973
6974         * lib/xreadlink.c: Include <unistd.h> unconditionally.
6975         * modules/xreadlink (Depends-on): Add unistd.
6976         * modules/xreadlink-with-size (Depends-on): Likewise.
6977
6978 2007-03-03  Bruno Haible  <bruno@clisp.org>
6979
6980         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
6981         extracted from gt_FUNC_SETENV.
6982         (gt_FUNC_SETENV): Remove macro.
6983         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
6984         remove gt_FUNC_SETENV.
6985
6986 2007-03-03  Bruno Haible  <bruno@clisp.org>
6987
6988         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
6989         ENABLE_RELOCATABLE here.
6990         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
6991
6992 2007-03-03  Bruno Haible  <bruno@clisp.org>
6993
6994         * modules/rbtreehash-list-tests (Depends-on): Add progname.
6995         * tests/test-rbtreehash_list.c: Include progname.h.
6996         (main): Call set_program_name.
6997
6998         * modules/rbtree-oset-tests (Depends-on): Add progname.
6999         * tests/test-rbtree_oset.c: Include progname.h.
7000         (main): Call set_program_name.
7001
7002         * modules/rbtree-list-tests (Depends-on): Add progname.
7003         * tests/test-rbtree_list.c: Include progname.h.
7004         (main): Call set_program_name.
7005
7006         * modules/linked-list-tests (Depends-on): Add progname.
7007         * tests/test-linked_list.c: Include progname.h.
7008         (main): Call set_program_name.
7009
7010 2007-03-03  Bruno Haible  <bruno@clisp.org>
7011
7012         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
7013         All uses of __restrict changed to _Restrict_.
7014         * lib/glob_.h (__restrict): Remove macro.
7015
7016 2007-03-02  Bruno Haible  <bruno@clisp.org>
7017
7018         * modules/gettext (configure.ac): Require gettext infrastructure
7019         from version 0.16.1.
7020
7021 2007-03-02  Bruno Haible  <bruno@clisp.org>
7022
7023         * modules/linkedhash-list-tests (Depends-on): Add progname.
7024         * tests/test-linkedhash_list.c: Include progname.h.
7025         (main): Call set_program_name.
7026
7027         * modules/carray-list-tests (Depends-on): Add progname.
7028         * tests/test-carray_list.c: Include progname.h.
7029         (main): Call set_program_name.
7030
7031         * modules/avltreehash-list-tests (Depends-on): Add progname.
7032         * tests/test-avltreehash_list.c: Include progname.h.
7033         (main): Call set_program_name.
7034
7035         * modules/avltree-oset-tests (Depends-on): Add progname.
7036         * tests/test-avltree_oset.c: Include progname.h.
7037         (main): Call set_program_name.
7038
7039         * modules/avltree-list-tests (Depends-on): Add progname.
7040         * tests/test-avltree_list.c: Include progname.h.
7041         (main): Call set_program_name.
7042
7043         * modules/array-oset-tests (Depends-on): Add progname.
7044         * tests/test-array_oset.c: Include progname.h.
7045         (main): Call set_program_name.
7046
7047         * modules/array-list-tests (Depends-on): Add progname.
7048         * tests/test-array_list.c: Include progname.h.
7049         (main): Call set_program_name.
7050
7051         * modules/argp-tests (Depends-on): Add progname.
7052         * tests/test-argp.c: Include argp.h first. Include progname.h.
7053         (main): Call set_program_name.
7054
7055 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
7056
7057         * doc/gnulib-tool.texi (Initial import): Reword description of
7058         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
7059         limited effect even if defined after the first system include.
7060
7061 2007-03-01  Bruno Haible  <bruno@clisp.org>
7062
7063         * build-aux/config.libpath: Update to libtool-1.5.22.
7064         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7065
7066 2007-03-01  Bruno Haible  <bruno@clisp.org>
7067
7068         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
7069         foo_CFLAGS.
7070         Reported by Ralf Wildenhues.
7071
7072 2007-03-01  Bruno Haible  <bruno@clisp.org>
7073
7074         * build-aux/install-reloc: Remove object files left over by some
7075         compilers.
7076         Reported by Ralf Wildenhues.
7077
7078 2007-03-01  Bruno Haible  <bruno@clisp.org>
7079
7080         * build-aux/install-reloc: Break long lines.
7081
7082 2007-03-01  Bruno Haible  <bruno@clisp.org>
7083
7084         * doc/relocatable.texi: Document that it may not work on OpenBSD.
7085         Reported by Ralf Wildenhues.
7086
7087 2007-03-01  Bruno Haible  <bruno@clisp.org>
7088
7089         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
7090         include ordering constraints.
7091
7092 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7093
7094         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
7095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
7096         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
7097         as another example.
7098         * lib/time_.h: Fix misspelling.
7099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7100         Require gl_HEADER_TIME_H_DEFAULTS.
7101         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
7102         * m4/time_r.m4 (gl_TIME_R): Likewise.
7103         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
7104
7105 2007-03-01  Bruno Haible  <bruno@clisp.org>
7106
7107         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
7108         * m4/utimens.m4 (gl_UTIMENS): Likewise.
7109
7110 2007-03-01  Jim Meyering  <jim@meyering.net>
7111
7112         * modules/xreadlink (Maintainer): Add my name.
7113         * modules/xreadlink-with-size (Depends-on): Alphabetize.
7114
7115 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
7116             Bruno Haible  <bruno@clisp.org>
7117
7118         * build-aux/install-reloc: Compile also c-ctype.c.
7119         * build-aux/relocatable.sh.in: New file.
7120         * doc/relocatable.texi: New file.
7121         * doc/relocatable-maint.texi: New file.
7122         * doc/gnulib.texi: Include relocatable-maint.texi.
7123         * lib/progreloc.c: Include unistd.h unconditionally.
7124         * lib/relocwrapper.c: Include unistd.h unconditionally.
7125         Include c-ctype.h.
7126         (add_dotbin): Use c_tolower.
7127         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
7128         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
7129         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
7130         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
7131         to m4/relocatable-lib.m4.
7132         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
7133         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
7134         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
7135         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
7136         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
7137         * modules/relocatable: New file.
7138         * modules/relocatable-lib: New file.
7139         * modules/relocatable-script: New file.
7140
7141 2007-02-28  Bruno Haible  <bruno@clisp.org>
7142
7143         Import --enable-relocatable infrastructure.
7144         * build-aux/config.libpath: New file, from GNU gettext.
7145         * build-aux/install-reloc: New file, from GNU gettext.
7146         * build-aux/reloc-ldflags: New file, from GNU gettext.
7147         * lib/relocatable.h: New file, from GNU gettext.
7148         * lib/relocatable.c: New file, from GNU gettext.
7149         * lib/relocwrapper.c: New file, from GNU gettext.
7150         * m4/relocatable.m4: New file, from GNU gettext.
7151
7152 2007-02-28  Bruno Haible  <bruno@clisp.org>
7153
7154         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
7155
7156         * modules/xreadlink: New file, from GNU gettext with modifications.
7157         * lib/xreadlink.c: New file, from GNU gettext.
7158         * lib/xreadlink.h: Add comments.
7159         (xreadlink): New declaration.
7160
7161         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
7162         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
7163         lib/xreadlink-with-size.c.
7164         (configure.ac): Remove gl_XREADLINK invocation.
7165         (Makefile.am): Augment lib_SOURCES.
7166         * m4/xreadlink.m4: Remove file.
7167         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
7168         (xreadlink_with_size): Renamed from xreadink.
7169         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
7170         * modules/canonicalize (Depends-on): Replace xreadlink with
7171         xreadlink-with-size.
7172         * lib/canonicalize.c (canonicalize_filename_mode): Update.
7173
7174 2007-02-25  Jim Meyering  <jim@meyering.net>
7175
7176         * build-aux/announce-gen: When complaining about excess arguments,
7177         list them.
7178
7179 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7180
7181         * README: Document signed integer overflow situation more
7182         accurately.
7183
7184 2007-02-25  Bruno Haible  <bruno@clisp.org>
7185
7186         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
7187         'a' or 'A' conversion.
7188
7189 2007-02-25  Bruno Haible  <bruno@clisp.org>
7190
7191         * modules/filename: Renamed from modules/pathname.
7192         (Files): Replace lib/pathname.h with lib/filename.h. Replace
7193         lib/concatpath.c with lib/concat-filename.c.
7194         (Makefile.am): Update.
7195         (Include): Replace pathname.h with filename.h.
7196         * lib/filename.h: Renamed from lib/pathname.h.
7197         (concatenated_filename): Renamed from concatenated_pathname.
7198         * lib/concat-filename.c: Renamed from lib/concatpath.c.
7199         (concatenated_filename): Renamed from concatenated_pathname.
7200         * lib/findprog.c: Include filename.h instead of pathname.h.
7201         (find_in_path): Update.
7202         * lib/javacomp.c: Include filename.h instead of pathname.h.
7203         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7204         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7205         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7206         is_oldgcj_14_13_usable, is_javac_usable): Update.
7207         * lib/javaexec.c: Include filename.h instead of pathname.h.
7208         (execute_java_class): Update.
7209         * modules/findprog: Update.
7210         * modules/javacomp: Update.
7211         * modules/javaexec: Update.
7212         * MODULES.html.sh (File system functions): Add 'filename', remove
7213         'pathname'.
7214
7215 2007-02-25  Bruno Haible  <bruno@clisp.org>
7216
7217         * modules/printf-frexpl-tests: New file.
7218         * tests/test-printf-frexpl.c: New file.
7219
7220         * modules/printf-frexpl: New file.
7221         * lib/printf-frexpl.h: New file.
7222         * lib/printf-frexpl.c: New file.
7223         * m4/printf-frexpl.m4: New file.
7224
7225 2007-02-25  Bruno Haible  <bruno@clisp.org>
7226
7227         * modules/printf-frexp-tests: New file.
7228         * tests/test-printf-frexp.c: New file.
7229
7230         * modules/printf-frexp: New file.
7231         * lib/printf-frexp.h: New file.
7232         * lib/printf-frexp.c: New file.
7233         * m4/printf-frexp.m4: New file.
7234
7235 2007-02-25  Bruno Haible  <bruno@clisp.org>
7236
7237         Assume automake >= 1.10 for the tests.
7238         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
7239         * modules/arctwo-tests: Likewise.
7240         * modules/argp-tests: Likewise.
7241         * modules/avltree-list-tests: Likewise.
7242         * modules/avltree-oset-tests: Likewise.
7243         * modules/avltreehash-list-tests: Likewise.
7244         * modules/carray-list-tests: Likewise.
7245         * modules/crc-tests: Likewise.
7246         * modules/des-tests: Likewise.
7247         * modules/gc-arcfour-tests: Likewise.
7248         * modules/gc-arctwo-tests: Likewise.
7249         * modules/gc-des-tests: Likewise.
7250         * modules/gc-hmac-md5-tests: Likewise.
7251         * modules/gc-hmac-sha1-tests: Likewise.
7252         * modules/gc-md2-tests: Likewise.
7253         * modules/gc-md4-tests: Likewise.
7254         * modules/gc-md5-tests: Likewise.
7255         * modules/gc-pbkdf2-sha1-tests: Likewise.
7256         * modules/gc-rijndael-tests: Likewise.
7257         * modules/gc-sha1-tests: Likewise.
7258         * modules/gc-tests: Likewise.
7259         * modules/getaddrinfo-tests: Likewise.
7260         * modules/hmac-md5-tests: Likewise.
7261         * modules/hmac-sha1-tests: Likewise.
7262         * modules/linked-list-tests: Likewise.
7263         * modules/linkedhash-list-tests: Likewise.
7264         * modules/lock-tests: Likewise.
7265         * modules/md2-tests: Likewise.
7266         * modules/md4-tests: Likewise.
7267         * modules/md5-tests: Likewise.
7268         * modules/rbtree-list-tests: Likewise.
7269         * modules/rbtree-oset-tests: Likewise.
7270         * modules/rbtreehash-list-tests: Likewise.
7271         * modules/read-file-tests: Likewise.
7272         * modules/rijndael-tests: Likewise.
7273         * modules/stdint-tests: Likewise.
7274         * modules/tls-tests: Likewise.
7275
7276 2007-02-24  Bruno Haible  <bruno@clisp.org>
7277
7278         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
7279         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
7280         function; instead check whether isnan with a double argument links.
7281         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
7282         function; instead check whether isnan with a 'long double' argument
7283         links.
7284         Reported by Eric Blake <ebb9@byu.net>.
7285
7286 2007-02-24  Bruno Haible  <bruno@clisp.org>
7287
7288         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
7289         defined.
7290         * lib/isnanl.c: Remove all code. Just include isnan.c.
7291         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
7292
7293 2007-02-25  Jim Meyering  <jim@meyering.net>
7294
7295         Avoid conflicting types for 'unsetenv' on FreeBSD.
7296         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
7297         conflicting with FreeBSD's (5.0 and 6.1) function declaration
7298         in stdlib.h.
7299
7300 2007-02-24  Bruno Haible  <bruno@clisp.org>
7301
7302         * modules/isnanl-nolibm-tests: New file.
7303         * tests/test-isnanl.c: New file.
7304
7305         * modules/isnanl-nolibm: New file.
7306         * lib/isnanl.h: New file.
7307         * lib/isnanl.c: New file.
7308         * m4/isnanl.m4: New file.
7309
7310 2007-02-24  Bruno Haible  <bruno@clisp.org>
7311
7312         * modules/isnan-nolibm-tests: New file.
7313         * tests/test-isnan.c: New file.
7314
7315         * modules/isnan-nolibm: New file.
7316         * lib/isnan.h: New file.
7317         * lib/isnan.c: New file.
7318         * m4/isnan.m4: New file.
7319
7320 2007-02-24  Bruno Haible  <bruno@clisp.org>
7321
7322         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
7323         assume that an exponent fits in 20 bits.
7324
7325 2007-02-24  Jim Meyering  <jim@meyering.net>
7326
7327         * m4/regex.m4: Update the description of the configure-time option,
7328         --without-included-regex, to state accurately what the defaults are,
7329         and perhaps to give people an idea why using this option is risky.
7330
7331 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7332
7333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
7334         loops on small arguments.  This attempts to avoid the problem
7335         Bruno Haible reported for AIX 4.3.2 in
7336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
7337
7338 2007-02-23  Bruno Haible  <bruno@clisp.org>
7339
7340         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
7341         Needed for help2man.
7342
7343 2007-02-23  Karl Berry  <karl@gnu.org>
7344
7345         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
7346         exists, foo.h should be cvs-ignored, not committed.
7347
7348 2007-02-23  Eric Blake  <ebb9@byu.net>
7349
7350         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
7351         * lib/stat-time.h (includes): Likewise.
7352         * lib/utimecmp.c (includes): Likewise.
7353         * lib/utimens.h (includes): Likewise.
7354         * lib/getdate.y (includes): Also include "timespec.h" for use
7355         internal to the module.
7356         * modules/utimens (Depends-on): Revert yesterday's patch.
7357         * modules/nanosleep (Depends-on): Add missing dependency.
7358
7359 2007-02-22  Bruno Haible  <bruno@clisp.org>
7360
7361         * lib/glob.c: Don't include getlogin_r.h.
7362
7363 2007-02-22  Jim Meyering  <jim@meyering.net>
7364
7365         * modules/utimens (Depends-on): Add timespec, required for
7366         utimens.h's inclusion of timespec.h.
7367
7368 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
7371         long unreadable paths in GNU/Linux.  Problem reported by Andreas
7372         Schwab in
7373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
7374         I'll try to think of a better way to fix the Solaris problem.
7375
7376         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
7377         like glibc; on Solaris 10, it fails with errno == EINVAL.
7378         POSIX says the behavior is unspecified if the first argument is NULL,
7379         so play it safe and never pass NULL to the system getcwd.
7380
7381 2007-02-21  Jim Meyering  <jim@meyering.net>
7382
7383         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
7384         of gettimeofday.  It would conflict with the one now always
7385         provided via sys_time_.h.  Reported by Matthew Woehlke, as
7386         an IRIX 6.5 build failure.
7387
7388 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7389
7390         Minor fixups to port to Solaris 10 with Sun C 5.8.
7391         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
7392         * modules/getcwd (Depends-on): Add dirfd.
7393         * lib/putenv.c (putenv): #undef it.
7394         (rpl_putenv): New decl.
7395         (malloc, free): Include <stdlib.h> rather than prototyping separately.
7396
7397 2007-02-20  Bruno Haible  <bruno@clisp.org>
7398
7399         * modules/stdio-tests: New file.
7400         * tests/test-stdio.c: New file.
7401
7402         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
7403         (Depends-on): Add stdio.
7404         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7405         (Include): Use <stdio.h> instead of vsnprintf.h.
7406         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
7407         HAVE_DECL_VSNPRINTF.
7408         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
7409
7410         * modules/snprintf (Files): Remove lib/snprintf.h.
7411         (Depends-on): Add stdio.
7412         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7413         (Include): Use <stdio.h> instead of snprintf.h.
7414         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
7415         HAVE_DECL_SNPRINTF.
7416         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
7417         * lib/getaddrinfo.c: Likewise.
7418
7419         * modules/stdio: New file.
7420         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
7421         * lib/snprintf.h: Remove file.
7422         * lib/vsnprintf.h: Remove file.
7423         * lib/.cppi-disable: Remove snprintf.h.
7424         * m4/stdio_h.m4: New file.
7425         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
7426
7427 2007-02-20  Jim Meyering  <jim@meyering.net>
7428
7429         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
7430         used by e.g., mingw.  From Bruno Haible.
7431
7432 2007-02-19  Bruno Haible  <bruno@clisp.org>
7433
7434         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
7435         warnings.
7436         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7437
7438 2007-02-19  Bruno Haible  <bruno@clisp.org>
7439
7440         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
7441         from mingw users.
7442
7443 2007-02-19  Bruno Haible  <bruno@clisp.org>
7444
7445         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
7446         warnings.
7447         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
7448
7449 2007-02-19  Jim Meyering  <jim@meyering.net>
7450
7451         Don't use FD after a successful "fdopendir (fd)".
7452         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
7453         Reset it by calling dirfd on the just-obtained DIR*.
7454
7455         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
7456         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
7457
7458 2007-02-18  Bruno Haible  <bruno@clisp.org>
7459
7460         * lib/readlink.c: Include <unistd.h>.
7461         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
7462         HAVE_READLINK.
7463         * modules/readlink (Depends-on): Add unistd.
7464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7465         (Include): Add <unistd.h>.
7466
7467         * lib/getlogin_r.h: Remove file.
7468         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
7469         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
7470         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
7471         HAVE_DECL_GETLOGIN_R.
7472         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
7473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7474         (Include): Use <unistd.h> instead of getlogin_r.h.
7475
7476         * lib/getcwd.h: Remove file.
7477         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
7478         * lib/xgetcwd.c: Likewise.
7479         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
7480         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
7481         * modules/getcwd (Files): Remove lib/getcwd.h.
7482         (Depends-on): Add unistd.
7483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7484         (Include): Use <unistd.h> instad of getcwd.h.
7485
7486         * lib/ftruncate.c: Include <unistd.h> first.
7487         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
7488         Set HAVE_FTRUNCATE.
7489         * modules/ftruncate (Depends-on): Add unistd.
7490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7491
7492         * lib/fchdir.c: Include <unistd.h> first.
7493         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
7494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
7495         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
7496         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7497         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
7498
7499         * lib/dup2.c: Include <unistd.h> first.
7500         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
7501         HAVE_DUP2.
7502         * modules/dup2 (Depends-on): Add unistd.
7503         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7504
7505         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
7506         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
7507         REPLACE_CHOWN. Don't define chown as a macro here.
7508         * modules/chown (Depends-on): Add unistd.
7509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7510
7511         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
7512         Add definition for GL_LINK_WARNING.
7513         (chown, dup2): New declarations.
7514         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
7515         link warning.
7516         (ftruncate): New declaration.
7517         (getcwd): New declaration, taken from old getcwd.h.
7518         (getlogin_r): New declaration, taken from old getlogin_r.h.
7519         (readlink): New declaration.
7520         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
7521         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
7522         (gl_PREREQ_UNISTD): Remove macro.
7523         (gl_UNISTD_MODULE_INDICATOR): New macro.
7524         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
7525         many new variables. Don't set UNISTD_H.
7526         * modules/unistd (Description): Change.
7527         (Depends-on): Add link-warning.
7528         (configure.ac): Update.
7529         (Makefile.am): Create unistd.h always. Substitute many new variables
7530         into it.
7531
7532 2007-02-18  Bruno Haible  <bruno@clisp.org>
7533
7534         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
7535         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
7536         HAVE_GETSUBOPT.
7537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
7538         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
7539         * lib/getsubopt.h: Remove file.
7540         * modules/getsubopt (Files): Remove lib/getsubopt.h.
7541         (Depends-on): Add stdlib.
7542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7543         (Includes): Use <stdlib.h> instead of getsubopt.h.
7544         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
7545         Set HAVE_GETSUBOPT.
7546         * lib/getsubopt.c: Don't include getsubopt.h.
7547
7548 2007-02-18  Bruno Haible  <bruno@clisp.org>
7549
7550         * modules/fchdir (Depends-on): Add dup2.
7551
7552 2007-02-18  Bruno Haible  <bruno@clisp.org>
7553
7554         * lib/stdlib_.h: Handle glibc's special invocation convention
7555         specially.
7556
7557 2007-02-18  Bruno Haible  <bruno@clisp.org>
7558
7559         * modules/stdlib-tests: New file.
7560         * tests/test-stdlib.c: New file.
7561
7562         * modules/mkstemp (Files): Remove lib/mkstemp.h.
7563         (Depends-on): Add stdlib.
7564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7565         (Includes): Use <stdlib.h> instead of mkstemp.h.
7566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
7567         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
7568         * lib/mkstemp.c: Don't include mkstemp.h.
7569         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
7570         * lib/stdlib--.h: Don't include mkstemp.h.
7571
7572         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
7573         (Depends-on): Add stdlib.
7574         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7575         (Includes): Use <stdlib.h> instead of mkdtemp.h.
7576         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
7577         HAVE_MKDTEMP.
7578         * lib/mkdtemp.c: Don't include mkdtemp.h.
7579         * lib/clean-temp.c: Don't include mkdtemp.h.
7580
7581         * modules/exit (Files): Remove lib/exit.h.
7582         (Depends-on): Add stdlib.
7583         (Makefile.am): Remove lib_SOURCES.
7584         (Include): Use <stdlib.h> instead of exit.h.
7585         * lib/argmatch.c: Don't include exit.h.
7586         * lib/execute.c: Likewise.
7587         * lib/pagealign_alloc.c: Likewise.
7588         * lib/pipe.c: Likewise.
7589         * lib/wait-process.c: Likewise.
7590         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
7591         * lib/exitfail.c: Likewise.
7592         * lib/savewd.c: Likewise.
7593         * lib/xsetenv.c: Likewise.
7594
7595         * modules/stdlib: New file.
7596         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
7597         and extra comments about mkstemp().
7598         * lib/exit.h: Remove file.
7599         * lib/mkdtemp.h: Remove file.
7600         * lib/mkstemp.h: Remove file.
7601         * m4/stdlib_h.m4: New file.
7602         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
7603
7604 2007-02-18  Bruno Haible  <bruno@clisp.org>
7605
7606         * modules/math-tests: New file.
7607         * tests/test-math.c: New file.
7608
7609         * modules/math: New file.
7610         * modules/mathl (Files): Remove lib/mathl.h.
7611         (Depends-on): Add math.
7612         (Makefile.am): Don't mention mathl.h.
7613         (Include): Use <math.h> instead of mathl.h.
7614         * lib/math_.h: New file.
7615         * lib/mathl.h: Remove file.
7616         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
7617         mathl.h.
7618         * lib/asinl.c: Likewise.
7619         * lib/atanl.c: Likewise.
7620         * lib/ceill.c: Likewise.
7621         * lib/cosl.c: Likewise.
7622         * lib/expl.c: Likewise.
7623         * lib/floorl.c: Likewise.
7624         * lib/frexpl.c: Likewise.
7625         * lib/ldexpl.c: Likewise.
7626         * lib/logl.c: Likewise.
7627         * lib/sincosl.c: Likewise.
7628         * lib/sinl.c: Likewise.
7629         * lib/sqrtl.c: Likewise.
7630         * lib/tanl.c: Likewise.
7631         * lib/trigl.c: Likewise.
7632         * m4/math_h.m4: New file.
7633         * MODULES.html.sh (Mathematics): Add math.
7634
7635 2007-02-17  Bruno Haible  <bruno@clisp.org>
7636
7637         * modules/wctype-tests: New file.
7638         * tests/test-wctype.c: New file.
7639
7640         * modules/wchar-tests: New file.
7641         * tests/test-wchar.c: New file.
7642
7643         * modules/unistd-tests: New file.
7644         * tests/test-unistd.c: New file.
7645
7646         * modules/time-tests: New file.
7647         * tests/test-time.c: New file.
7648
7649         * modules/sysexits-tests: New file.
7650         * tests/test-sysexits.c: New file.
7651
7652         * modules/sys_time-tests: New file.
7653         * tests/test-sys_time.c: New file.
7654
7655         * modules/sys_stat-tests: New file.
7656         * tests/test-sys_stat.c: New file.
7657
7658         * modules/sys_socket-tests: New file.
7659         * tests/test-sys_socket.c: New file.
7660
7661         * modules/sys_select-tests: New file.
7662         * tests/test-sys_select.c: New file.
7663
7664         * modules/string-tests: New file.
7665         * tests/test-string.c: New file.
7666
7667         * modules/stdbool-tests: New file.
7668         * tests/test-stdbool.c: New file.
7669
7670         * modules/netinet_in-tests: New file.
7671         * tests/test-netinet_in.c: New file.
7672
7673         * modules/inttypes-tests: New file.
7674         * tests/test-inttypes.c: New file.
7675
7676         * modules/fcntl-tests: New file.
7677         * tests/test-fcntl.c: New file.
7678
7679         * modules/byteswap-tests: New file.
7680         * tests/test-byteswap.c: New file.
7681
7682         * modules/arpa_inet-tests: New file.
7683         * tests/test-arpa_inet.c: New file.
7684
7685 2007-02-17  Bruno Haible  <bruno@clisp.org>
7686
7687         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
7688         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
7689         if the corresponding module is not enabled. Emit link warnings if
7690         the function is used nevertheless.
7691         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
7692         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
7693         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
7694         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
7695         * modules/inttypes (Depends-on): Add link-warning.
7696         (Makefile.am): Copy the contents of build-aux/link-warning.h into
7697         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
7698         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
7699         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
7700         * modules/imaxdiv (configure.ac): Likewise.
7701         * modules/strtoimax (configure.ac): Likewise.
7702         * modules/strtoumax (configure.ac): Likewise.
7703
7704 2007-02-17  Bruno Haible  <bruno@clisp.org>
7705
7706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
7707         gl_STRING_MODULE_INDICATOR_DEFAULTS.
7708         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
7709         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
7710
7711 2007-02-17  Bruno Haible  <bruno@clisp.org>
7712
7713         * modules/link-warning: New file.
7714         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
7715         * lib/string_.h (GL_LINK_WARNING): Remove definition.
7716         * modules/string (Depends-on): Add link-warning.
7717         (Makefile.am): Copy the contents of build-aux/link-warning.h into
7718         string.h.
7719         * MODULES.html.sh (Support for building libraries and executables): Add
7720         link-warning.
7721
7722 2007-02-17  Bruno Haible  <bruno@clisp.org>
7723
7724         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
7725         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
7726         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
7727         long lines.
7728
7729 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
7730             Bruno Haible  <bruno@clisp.org>
7731
7732         * modules/tmpfile: New file.
7733         * lib/tmpfile.c: New file.
7734         * m4/tmpfile.m4: New file.
7735         * MODULES.html.sh (func_all_modules): New section "Input/output".
7736
7737 2007-02-15  Bruno Haible  <bruno@clisp.org>
7738
7739         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
7740         (supports_delete_on_close): New function.
7741         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
7742
7743 2007-02-14  Bruno Haible  <bruno@clisp.org>
7744
7745         * modules/mbspcasecmp-tests: New file.
7746         * tests/test-mbspcasecmp.sh: New file.
7747         * tests/test-mbspcasecmp.c: New file.
7748
7749         New module mbspcasecmp.
7750         * modules/mbspcasecmp: New file.
7751         * lib/mbspcasecmp.c: New file.
7752         * lib/string_.h (strncasecmp): Change warning message.
7753         (mbspcasecmp): New declaration.
7754         * m4/mbspcasecmp.m4: New file.
7755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7756         GNULIB_MBSPCASECMP.
7757         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
7758         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
7759
7760 2007-02-14  Bruno Haible  <bruno@clisp.org>
7761
7762         * modules/mbsncasecmp-tests: New file.
7763         * tests/test-mbsncasecmp.sh: New file.
7764         * tests/test-mbsncasecmp.c: New file.
7765
7766         New module mbsncasecmp.
7767         * modules/mbsncasecmp: New file.
7768         * lib/mbsncasecmp.c: New file.
7769         * lib/string_.h (mbsncasecmp): New declaration.
7770         * m4/mbsncasecmp.m4: New file.
7771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7772         GNULIB_MBSNCASECMP.
7773         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
7774         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
7775
7776 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7777
7778         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
7779         Verify that it doesn't overlap with our flags.
7780         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
7781         do not have the desired effect in multibyte locales; instead, use
7782         mbscasecmp.
7783         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
7784         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
7785         we don't require GNU fnmatch ourselves (if our users require it, they
7786         should do so explicitly).
7787
7788         Fix regex code so it doesn't rely on strcasecmp.
7789         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
7790         Otherwise, include gnulib's langinfo.h.
7791         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
7792         undesirable behavior in non-C locales.  Instead, rely on localecharset.
7793         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
7794         * modules/regex (FILES): Remove m4/codeset.m4.
7795         (Depends-on): Add localcharset.  Remove strcase.
7796
7797 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7798
7799         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
7800         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7801
7802 2007-02-13  Bruno Haible  <bruno@clisp.org>
7803
7804         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
7805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7806
7807 2007-02-12  Bruno Haible  <bruno@clisp.org>
7808
7809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
7810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
7811         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
7812         time warning rather than a link error.
7813
7814 2007-02-12  Bruno Haible  <bruno@clisp.org>
7815
7816         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
7817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7819
7820 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7821
7822         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
7823         args, not 2.
7824
7825 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7826
7827         New module 'time', so that apps can include <time.h> as per
7828         POSIX and GNU instead of separate include files like time_r.h
7829         and timegm.h.  This implementation tries out a simpler approach
7830         for replacing decls in standard include files (as compared to
7831         the string module), somewhat as an experiment.
7832
7833         * config/srclist.txt: Comment out mktime.c for now.
7834         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
7835         since it doesn't apply any more.  Use generic wording instead.
7836         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
7837         'time'.
7838         * lib/time_.h, m4/time_h.m4, modules/time: New files.
7839         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
7840         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
7841         Don't include <sys/types.h>; no longer needed since we assume C89.
7842         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
7843         * lib/strftime.c: Likewise.
7844         * lib/time_r.c: Likewise.
7845         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
7846         * lib/nanosleep.c: Include <time.h> first, to check interface.
7847         * lib/strptime.c: Likewise.
7848         * lib/time_r.c: Likewise.
7849         * lib/timegm.c: Likewise.
7850         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
7851         needed.
7852         * lib/timegm.c: Don't include timegm.h; no longer needed.
7853         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
7854         time.h now handles any problems in that area.
7855         (struct timespec, nanosleep): Remove; time.h now arranges for these.
7856         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
7857         that time.h defines struct timespec.
7858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
7859         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
7860         handles that.
7861         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
7862         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
7863         needed.  Set REPLACE_LOCALTIME.
7864         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
7865         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
7866         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
7867         nanosleep; time_h.m4 now does that.  Don't require
7868         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
7869         module handles this now.
7870         * modules/getdate (Depends-on): Remove timespec.  Add time.
7871         * modules/nanosleep (Depends-on): Likewise.
7872         * modules/stat-time (Depends-on): Likewise.
7873         * modules/nanosleep (Include): Include time.h, not timespec.h.
7874         * modules/strptime (Files): Remove lib/strptime.h.
7875         (Depends-on): Add extensions, time.
7876         (Include): Include time.h, not strptime.h.
7877         * modules/time_r (Files): Remove lib/time_r.h.
7878         (Depends-on): Add time.
7879         (Include): Include time.h, not time_r.h.
7880         * modules/timegm: Likewise.
7881         * modules/timespec (Description): Now does timespec-related decls
7882         of our own, instead of struct timespec itself.
7883         (Depends-on): Add time; remove extensions.
7884         (Maintainer): Add self.
7885         * modules/utimecmp (Depends-on): Add time; remove timespec.
7886         * modules/utimens (Depends-on): Likewise.
7887         * modules/xnanosleep (Depends-on): Likewise.
7888
7889 2007-02-11  Bruno Haible  <bruno@clisp.org>
7890
7891         * lib/c-strstr.c: Include allocsa.h.
7892         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7893         * lib/c-strcasestr.c: Include allocsa.h.
7894         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7895         * lib/strcasestr.c: Include allocsa.h.
7896         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7897         * lib/mbsstr.c: Include allocsa.h.
7898         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
7899         allocsa/freesa instead of malloc/free.
7900         * lib/mbscasestr.c: Include allocsa.h.
7901         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
7902         allocsa/freesa instead of malloc/free.
7903         * modules/c-strstr (Depends-on): Add allocsa.
7904         * modules/c-strcasestr (Depends-on): Likewise.
7905         * modules/strcasestr (Depends-on): Likewise.
7906         * modules/mbsstr (Depends-on): Likewise.
7907         * modules/mbscasestr (Depends-on): Likewise.
7908
7909 2007-02-11  Bruno Haible  <bruno@clisp.org>
7910
7911         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
7912
7913         * modules/mbsspn-tests: New file.
7914         * tests/test-mbsspn.sh: New file.
7915         * tests/test-mbsspn.c: New file.
7916
7917 2007-02-11  Bruno Haible  <bruno@clisp.org>
7918
7919         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
7920
7921         * modules/mbspbrk-tests: New file.
7922         * tests/test-mbspbrk.sh: New file.
7923         * tests/test-mbspbrk.c: New file.
7924
7925 2007-02-11  Bruno Haible  <bruno@clisp.org>
7926
7927         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
7928         unneeded cast.
7929
7930         * modules/mbscspn-tests: New file.
7931         * tests/test-mbscspn.sh: New file.
7932         * tests/test-mbscspn.c: New file.
7933
7934 2007-02-11  Bruno Haible  <bruno@clisp.org>
7935
7936         * modules/mbscasecmp-tests: New file.
7937         * tests/test-mbscasecmp.sh: New file.
7938         * tests/test-mbscasecmp.c: New file.
7939
7940 2007-02-11  Bruno Haible  <bruno@clisp.org>
7941
7942         Ensure O(n) worst-case complexity of mbscasestr.
7943         * lib/mbscasestr.c: Include stdbool.h.
7944         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
7945         functions.
7946         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
7947         the bookkeeping indicates that it's worth it.
7948         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
7949
7950         * modules/mbscasestr-tests: New file.
7951         * tests/test-mbscasestr1.c: New file.
7952         * tests/test-mbscasestr2.sh: New file.
7953         * tests/test-mbscasestr2.c: New file.
7954         * tests/test-mbscasestr3.sh: New file.
7955         * tests/test-mbscasestr3.c: New file.
7956         * tests/test-mbscasestr4.sh: New file.
7957         * tests/test-mbscasestr4.c: New file.
7958         * m4/locale-tr.m4: New file.
7959
7960 2007-02-11  Bruno Haible  <bruno@clisp.org>
7961
7962         Ensure O(n) worst-case complexity of mbsstr.
7963         * lib/mbsstr.c: Include stdbool.h.
7964         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
7965         functions.
7966         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
7967         bookkeeping indicates that it's worth it.
7968         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
7969
7970         * modules/mbsstr-tests: New file.
7971         * tests/test-mbsstr1.c: New file.
7972         * tests/test-mbsstr2.sh: New file.
7973         * tests/test-mbsstr2.c: New file.
7974         * tests/test-mbsstr3.sh: New file.
7975         * tests/test-mbsstr3.c: New file.
7976         * m4/locale-fr.m4: New file.
7977
7978 2007-02-11  Bruno Haible  <bruno@clisp.org>
7979
7980         * lib/mbsrchr.c (mbsrchr): Fix bug.
7981
7982         * modules/mbsrchr-tests: New file.
7983         * tests/test-mbsrchr.sh: New file.
7984         * tests/test-mbsrchr.c: New file.
7985
7986 2007-02-11  Bruno Haible  <bruno@clisp.org>
7987
7988         * lib/mbschr.c (mbschr): Fix bug.
7989
7990         * modules/mbschr-tests: New file.
7991         * tests/test-mbschr.sh: New file.
7992         * tests/test-mbschr.c: New file.
7993         * m4/locale-zh.m4: New file.
7994
7995 2007-02-11  Bruno Haible  <bruno@clisp.org>
7996
7997         Support for copying multibyte string iterators.
7998         * lib/mbiter.h: Include <string.h>.
7999         (mbiter_multi_copy): New function.
8000         (mbi_copy): New macro.
8001         * lib/mbuiter.h: Include <string.h>.
8002         (mbuiter_multi_copy): New function.
8003         (mbui_copy): New macro.
8004
8005 2007-02-11  Bruno Haible  <bruno@clisp.org>
8006
8007         New module mbslen.
8008         * modules/mbslen: New file.
8009         * lib/mbslen.c: New file.
8010         * lib/string_.h (mbslen): New declaration.
8011         * m4/mbslen.m4: New file.
8012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8013         GNULIB_MBSLEN.
8014         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
8015         * MODULES.html.sh (Internationalization functions): Add mbslen.
8016
8017 2007-02-11  Bruno Haible  <bruno@clisp.org>
8018
8019         Ensure O(n) worst-case complexity of strcasestr substitute.
8020         * lib/strcasestr.c: Include stdbool.h.
8021         (knuth_morris_pratt): New function.
8022         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
8023         bookkeeping indicates that it's worth it.
8024         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
8025
8026         * modules/strcasestr-tests: New file.
8027         * tests/test-strcasestr.c: New file.
8028
8029 2007-02-11  Bruno Haible  <bruno@clisp.org>
8030
8031         Ensure O(n) worst-case complexity of c_strcasestr.
8032         * lib/c-strcasestr.c: Include stdbool.h, string.h.
8033         (knuth_morris_pratt): New function.
8034         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
8035         the bookkeeping indicates that it's worth it.
8036         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
8037
8038         * modules/c-strcasestr-tests: New file.
8039         * tests/test-c-strcasestr.c: New file.
8040
8041 2007-02-11  Bruno Haible  <bruno@clisp.org>
8042
8043         Ensure O(n) worst-case complexity of c_strstr.
8044         * lib/c-strstr.c: Include stdbool.h, string.h.
8045         (knuth_morris_pratt): New function.
8046         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
8047         bookkeeping indicates that it's worth it.
8048         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
8049
8050         * lib/c-strstr.c: Complete rewrite for maintainability.
8051
8052         * modules/c-strstr-tests: New file.
8053         * tests/test-c-strstr.c: New file.
8054
8055 2007-02-11  Bruno Haible  <bruno@clisp.org>
8056
8057         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
8058         5.2.1 and earlier, whereby \055 was treated just like the range
8059         delimiter '-'.
8060         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8061
8062 2007-02-08  Bruno Haible  <bruno@clisp.org>
8063
8064         * modules/regex (Depends-on): Add stdbool.
8065         Reported by Dalibor Topic <robilad@kaffe.org>.
8066
8067 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8068
8069         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
8070         Prefer returning from main to exiting from it.
8071         Remove unnecessary parens after sizeof.
8072
8073 2007-02-05  Bruno Haible  <bruno@clisp.org>
8074
8075         New module mbssep.
8076         * modules/mbssep: New file.
8077         * lib/mbssep.c: New file.
8078         * lib/string_.h (strsep): Add a conditional link warning.
8079         (mbssep): New declaration.
8080         * m4/mbssep.m4: New file.
8081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8082         GNULIB_MBSSEP.
8083         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
8084         * MODULES.html.sh (Internationalization functions): Add mbssep.
8085
8086 2007-02-05  Bruno Haible  <bruno@clisp.org>
8087
8088         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
8089         Optimize search in case of 1 delimiter.
8090
8091 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
8092
8093         * lib/acl.h: Include sys/types.h before sys/acl.h.
8094
8095 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
8096
8097         Merge upstream fix for glibc bugzilla #3957:
8098
8099         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8100
8101         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8102         bit for RE_HAT_LISTS_NOT_NEWLINE.
8103         (build_charclass_op): Remove bogus comment.
8104
8105 2007-02-05  Simon Josefsson  <simon@josefsson.org>
8106
8107         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
8108
8109 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
8112         * lib/memmem.c [!defined _LIBC]: Include config.h.
8113
8114 2007-02-04  Bruno Haible  <bruno@clisp.org>
8115
8116         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
8117         warning message.
8118
8119 2007-02-04  Bruno Haible  <bruno@clisp.org>
8120
8121         New module mbstok_r.
8122         * modules/mbstok_r: New file.
8123         * lib/mbstok_r.c: New file.
8124         * lib/string_.h (strtok_r): Change argument names to match the
8125         comments. Add a conditional link warning.
8126         (mbstok_r): New declaration.
8127         * m4/mbstok_r.m4: New file.
8128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8129         GNULIB_MBSTOK_R.
8130         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
8131         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
8132
8133 2007-02-04  Bruno Haible  <bruno@clisp.org>
8134
8135         New module mbsspn.
8136         * modules/mbsspn: New file.
8137         * lib/mbsspn.c: New file.
8138         * lib/string_.h (strspn): Add a conditional link warning.
8139         (mbsspn): New declaration.
8140         * m4/mbsspn.m4: New file.
8141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8142         GNULIB_MBSSPN.
8143         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
8144         * MODULES.html.sh (Internationalization functions): Add mbsspn.
8145
8146 2007-02-04  Bruno Haible  <bruno@clisp.org>
8147
8148         New module mbspbrk.
8149         * modules/mbspbrk: New file.
8150         * lib/mbspbrk.c: New file.
8151         * lib/string_.h (strpbrk): Add a conditional link warning.
8152         (mbspbrk): New declaration.
8153         * m4/mbspbrk.m4: New file.
8154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8155         GNULIB_MBSPBRK.
8156         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
8157         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
8158
8159 2007-02-04  Bruno Haible  <bruno@clisp.org>
8160
8161         New module mbscspn.
8162         * modules/mbscspn: New file.
8163         * lib/mbscspn.c: New file.
8164         * lib/string_.h (strcspn): Add a conditional link warning.
8165         (mbscspn): New declaration.
8166         * m4/mbscspn.m4: New file.
8167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8168         GNULIB_MBSCSPN.
8169         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
8170         * MODULES.html.sh (Internationalization functions): Add mbscspn.
8171
8172 2007-02-04  Bruno Haible  <bruno@clisp.org>
8173
8174         New module mbscasestr, reduced goal of strcasestr.
8175         * modules/mbscasestr: New file.
8176         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
8177         (mbscasestr): Renamed from strcasestr.
8178         * lib/strcasestr.c: Don't include mbuiter.h.
8179         (strcasestr): Remove support for multibyte locales.
8180         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
8181         Change the conditional link warning.
8182         (mbscasestr): New declaration.
8183         * m4/mbscasestr.m4: New file.
8184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
8185         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
8186         REPLACE_STRCASESTR.
8187         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
8188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8189         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
8190         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
8191         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
8192         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
8193         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
8194         (Depends-on): Remove mbuiter.
8195         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
8196
8197 2007-02-04  Bruno Haible  <bruno@clisp.org>
8198
8199         Simplify handling of strncasecmp.
8200         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
8201         the conditional link warning.
8202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8203         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
8204         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
8205         * modules/strcase (configure.ac): Don't invoke
8206         gl_STRING_MODULE_INDICATOR.
8207         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
8208
8209 2007-02-04  Bruno Haible  <bruno@clisp.org>
8210
8211         New module mbscasecmp, reduced goal of strcasecmp.
8212         * modules/mbscasecmp: New file.
8213         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
8214         (mbscasecmp): Renamed from strcasecmp.
8215         * lib/strcasecmp.c: Don't include mbuiter.h.
8216         (strcasecmp): Remove support for multibyte locales.
8217         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
8218         Change the conditional link warning.
8219         (mbscasecmp): New declaration.
8220         * m4/mbscasecmp.m4: New file.
8221         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
8222         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
8223         REPLACE_STRCASECMP.
8224         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
8225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8226         GNULIB_MBSCASECMP.
8227         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
8228         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
8229         * modules/strcase (Files): Remove m4/mbrtowc.m4.
8230         (Depends-on): Remove mbuiter.
8231         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
8232
8233 2007-02-04  Bruno Haible  <bruno@clisp.org>
8234
8235         New module mbsstr. Remove module strstr.
8236         * modules/mbsstr: New file.
8237         * modules/strstr: Remove file.
8238         * lib/mbsstr.c: Renamed from lib/strstr.c.
8239         (mbsstr): Renamed from strstr.
8240         * lib/string_.h (strstr): Remove declaration. Change the conditional
8241         link warning.
8242         (mbsstr): New declaration.
8243         * m4/mbsstr.m4: New file.
8244         * m4/strstr.m4: Remove file.
8245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
8246         REPLACE_STRSTR.
8247         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
8248         Don't initialize GNULIB_STRSTR.
8249         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
8250         substitute GNULIB_STRSTR and REPLACE_STRSTR.
8251         * MODULES.html.sh (Internationalization functions): Add mbsstr.
8252         (Support for systems lacking ANSI C 89): Remove strstr.
8253
8254 2007-02-04  Bruno Haible  <bruno@clisp.org>
8255
8256         New module mbsrchr.
8257         * modules/mbsrchr: New file.
8258         * lib/mbsrchr.c: New file.
8259         * lib/string_.h (strrchr): Add a conditional link warning.
8260         (mbsrchr): New declaration.
8261         * m4/mbsrchr.m4: New file.
8262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8263         GNULIB_MBSRCHR.
8264         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
8265         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
8266
8267 2007-02-04  Bruno Haible  <bruno@clisp.org>
8268
8269         New module mbschr.
8270         * modules/mbschr: New file.
8271         * lib/mbschr.c: New file.
8272         * lib/string_.h (strchr): Add a conditional link warning.
8273         (mbschr): New declaration.
8274         * m4/mbschr.m4: New file.
8275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8276         GNULIB_MBSCHR.
8277         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
8278         * MODULES.html.sh (Internationalization functions): Add mbschr.
8279
8280 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8281
8282         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
8283
8284         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
8285
8286 2007-02-04  Bruno Haible  <bruno@clisp.org>
8287
8288         New module description section 'configure.ac-early'.
8289         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
8290         (func_get_autoconf_early_snippet): New function.
8291         (func_import, func_create_testdir): Use it. Remove special cases for
8292         modules 'extensions' and 'lock'.
8293         * modules/extensions (configure.ac-early): Require
8294         gl_USE_SYSTEM_EXTENSIONS.
8295         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
8296
8297 2007-02-04  Bruno Haible  <bruno@clisp.org>
8298
8299         Make use of gcj-4.3's -fsource and -ftarget option.
8300         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
8301         and if so try the options -fsource and -ftarget.
8302         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
8303         source_version, ftarget_option, target_version arguments.
8304         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
8305         (is_envjavac_oldgcj_14_14_usable): Renamed from
8306         is_envjavac_gcj_14_14_usable.
8307         (is_envjavac_oldgcj_14_13_usable): Renamed from
8308         is_envjavac_gcj_14_13_usable.
8309         (is_gcj_present): Update.
8310         (is_gcj_43, is_gcj43_usable): New functions.
8311         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
8312         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
8313         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
8314         try the options -fsource and -ftarget.
8315
8316 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8317
8318         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
8319         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
8320         larger value.
8321
8322 2007-02-03  Jim Meyering  <jim@meyering.net>
8323
8324         Give tools a better chance to allocate space for very large buffers.
8325         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
8326
8327         Make pwd and readlink work also when run with an unreadable parent dir
8328         on systems with openat support.
8329         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
8330         provided getcwd function, even when we have openat support.
8331         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
8332
8333 2007-02-02  Bruno Haible  <bruno@clisp.org>
8334
8335         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
8336         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
8337         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
8338         portability problems if one of these functions is only used on specific
8339         platforms.
8340         Reported by Paul Eggert.
8341
8342 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8343
8344         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
8345         is causing more trouble than it's curing.
8346         * lib/regex_internal.h (__mempcpy): Remove.
8347         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
8348         (and make the code a tad smaller to boot).
8349         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
8350
8351 2007-02-02  Jim Meyering  <jim@meyering.net>
8352
8353         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
8354         section, not in the Makefile.am: one.
8355
8356 2007-02-02  Eric Blake  <ebb9@byu.net>
8357
8358         * lib/strchrnul.c: Always include config.h first.
8359
8360         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
8361         gnulib strstr is not necessary here.
8362
8363 2007-02-02  Simon Josefsson  <simon@josefsson.org>
8364
8365         * m4/socklen.m4: Fix typo.
8366
8367 2007-02-02  Eric Blake  <ebb9@byu.net>
8368
8369         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
8370         * modules/netinet_in (Makefile.am): Likewise.
8371
8372 2007-02-01  Bruno Haible  <bruno@clisp.org>
8373
8374         * lib/string_.h (GL_LINK_WARNING): New macro.
8375         (strcasecmp, strstr, strcasestr): If provided by the system,
8376         conditionally define as a macro that leads to a warning instead of to
8377         an error.
8378         (strncasecmp): Conditionally define as a macro that leads to a warning.
8379
8380 2007-02-01  Karl Berry  <karl@gnu.org>
8381
8382         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
8383
8384 2007-02-01  Bruno Haible  <bruno@clisp.org>
8385
8386         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
8387         renamings.
8388
8389 2007-02-01  Eric Blake  <ebb9@byu.net>
8390
8391         * modules/regex (Depends-on): Revert dependence on mempcpy.
8392         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
8393         module's definition of mempcpy.
8394         Reported by Paul Eggert.
8395
8396 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
8397
8398         * lib/string_.h: If the gnulib module XYZ is not present, undefine
8399         the symbol XYZ before redefining it.  This fixes a problem with
8400         programs that don't use XYZ, when compiled on systems that define
8401         XYZ to something else.
8402
8403 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
8404
8405         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
8406         occurs when "mkdir -m foo" creates a setgid directory that is (1)
8407         writeable to group or other and (2) is intended to have a special
8408         mode bit that is set or cleared.  In such a case, the directory
8409         should be neither group- nor other-writeable until the special
8410         mode bits are right.
8411
8412 2007-01-31  Eric Blake  <ebb9@byu.net>
8413
8414         * modules/mountlist (Depends-on): Add strstr.
8415
8416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
8417         bug.
8418         * modules/string (Makefile.am): Remove redundant replacement.
8419         * modules/regex (Depends-on): Add mempcpy.
8420
8421 2007-01-31  Bruno Haible  <bruno@clisp.org>
8422
8423         New module description field 'Link'.
8424         * gnulib-tool (func_usage): Document --extract-link-directive.
8425         (sed_extract_prog): Recognize 'Link' directive.
8426         (func_get_link_directive): New function.
8427         (func_import): Show summary of link directives.
8428         Handle --extract-link-directive option.
8429         * modules/acl (Link): New section.
8430         * modules/clock-time (Link): New section.
8431         * modules/euidaccess (Link): New section.
8432         * modules/gettext (Link): New section.
8433         * modules/iconv (Link): New section.
8434         * modules/lock (Link): New section.
8435         * modules/nanosleep (Link): New section.
8436         * modules/readline (Link): New section.
8437
8438 2007-01-27  Bruno Haible  <bruno@clisp.org>
8439
8440         Enforce the use of gnulib modules for unportable <string.h> functions.
8441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
8442         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
8443         (gl_HEADER_STRING_H_BODY): Require it.
8444         * lib/string_.h: If the gnulib module XYZ is not present, redefine
8445         the symbol XYZ to one that gives a link error.
8446         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
8447         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
8448         * modules/mempcpy (configure.ac): Likewise.
8449         * modules/memrchr (configure.ac): Likewise.
8450         * modules/stpcpy (configure.ac): Likewise.
8451         * modules/stpncpy (configure.ac): Likewise.
8452         * modules/strcase (configure.ac): Likewise.
8453         * modules/strcasestr (configure.ac): Likewise.
8454         * modules/strchrnul (configure.ac): Likewise.
8455         * modules/strdup (configure.ac): Likewise.
8456         * modules/strndup (configure.ac): Likewise.
8457         * modules/strnlen (configure.ac): Likewise.
8458         * modules/strpbrk (configure.ac): Likewise.
8459         * modules/strsep (configure.ac): Likewise.
8460         * modules/strstr (configure.ac): Likewise.
8461         * modules/strtok_r (configure.ac): Likewise.
8462
8463 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
8464
8465         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
8466
8467 2007-01-30  Jim Meyering  <jim@meyering.net>
8468
8469         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
8470
8471 2007-01-29  Bruno Haible  <bruno@clisp.org>
8472
8473         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
8474         * lib/execute.c: Likewise.
8475         * lib/pipe.c: Likewise.
8476         * lib/printf-args.h: Likewise.
8477         * lib/printf-args.c: Likewise.
8478         * lib/printf-parse.c: Likewise.
8479         * lib/vasnprintf.c: Likewise.
8480
8481 2007-01-29  Eric Blake  <ebb9@byu.net>
8482
8483         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
8484         declaration.
8485
8486 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8487
8488         * lib/strptime.h (strptime): Use 'restrict' for args where
8489         POSIX requires this.
8490         * lib/strptime.c (strptime): Likewise.
8491         Change license notice from LGPL to GPL, since gnulib-tool will
8492         change this as needed.
8493         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
8494         defined.
8495         Include "strptime.h" first, to check interface.
8496         Do not #undef _LIBC and _NL_CURRENT.
8497         Do not include <stdlib.h>; no longer needed.
8498         Include "time_r.h" and declare ptime_locale_status
8499         only if _LIBC is not defined.
8500         (__P): Remove unused macro.
8501         (match_string): Bring back glibc version, but use it only if _LIBC
8502         is defined.
8503         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
8504         Remove unnecessary assertion and abort() call.
8505         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
8506         * m4/strptime.m4: Fix serial number comment.
8507         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
8508         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
8509         (Depends-on): Add time_r.
8510
8511 2007-01-29  Bruno Haible  <bruno@clisp.org>
8512
8513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8514         strptime.
8515         * modules/strptime (Depends-on): Add stdbool.
8516         * lib/strptime.h: Include <time.h> always. Add comments.
8517
8518 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8519
8520         * modules/strptime: New file.
8521         * lib/strptime.h: New file.
8522         * lib/strptime.c: New file.
8523         * m4/strptime.m4: New file.
8524
8525 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8526
8527         * MODULES.html.sh: New module mpsort.
8528         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
8529
8530         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
8531         a circularity problem with HP-UX ia64 reported by Bob Proulx in
8532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
8533         All uses changed.
8534         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
8535         All uses changed.
8536         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
8537         to _Restrict_.
8538         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
8539         the parameter matches the prototype.
8540
8541 2007-01-28  Jim Meyering  <jim@meyering.net>
8542
8543         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
8544         sys/time.h here, reverting that part of the previous patch:
8545         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
8546
8547 2007-01-28  Bruno Haible  <bruno@clisp.org>
8548
8549         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
8550         value of $(SYS_TIME_H).
8551         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
8552         remove it conditionally, too. [added by Jim Meyering]
8553         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
8554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
8555         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
8556         GETTIMEOFDAY_REPLACEMENT to 1.
8557
8558 2007-01-28  Bruno Haible  <bruno@clisp.org>
8559
8560         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
8561         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
8562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
8563         Set UNISTD_H instead of UNISTD_H2.
8564         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
8565
8566 2007-01-28  Bruno Haible  <bruno@clisp.org>
8567
8568         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
8569         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
8570
8571 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8572
8573         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
8574         (func_create_testdir): Ensure C locale for `grep' and `tr'
8575         character ranges.
8576         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
8577         ACLOCAL_AMFLAGS parsing state machine.
8578
8579 2007-01-27  Bruno Haible  <bruno@clisp.org>
8580
8581         * modules/unistr/base: Update.
8582
8583 2007-01-27  Bruno Haible  <bruno@clisp.org>
8584
8585         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
8586         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
8587         * modules/unistr/u32-mbtouc-unsafe: Renamed from
8588         modules/unistr/u32-mbtouc.
8589         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
8590         * lib/unistr.h: Update.
8591         * lib/linebreak.c: Update.
8592         * modules/unistr/u32-mbtouc: Renamed from
8593         modules/unistr/u32-mbtouc-safe.
8594         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
8595         * lib/unistr.h: Update.
8596         * lib/unistr/u32-to-u8.c: Update.
8597         * lib/unistr/u32-to-u16.c: Update.
8598
8599 2007-01-27  Bruno Haible  <bruno@clisp.org>
8600
8601         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
8602         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
8603         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
8604         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
8605         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
8606         * modules/unistr/u16-mbtouc-unsafe: Renamed from
8607         modules/unistr/u16-mbtouc.
8608         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
8609         * lib/unistr.h: Update.
8610         * lib/linebreak.c: Update.
8611         * modules/linebreak: Update.
8612         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
8613         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
8614         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
8615         * modules/unistr/u16-mbtouc: Renamed from
8616         modules/unistr/u16-mbtouc-safe.
8617         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
8618         * lib/unistr.h: Update.
8619         * lib/unistr/u16-to-u8.c: Update.
8620         * modules/unistr/u16-to-u8: Update.
8621         * lib/unistr/u16-to-u32.c: Update.
8622         * modules/unistr/u16-to-u32: Update.
8623
8624 2007-01-27  Bruno Haible  <bruno@clisp.org>
8625
8626         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
8627         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
8628         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
8629         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
8630         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
8631         * modules/unistr/u8-mbtouc-unsafe: Renamed from
8632         modules/unistr/u8-mbtouc.
8633         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
8634         * lib/unistr.h: Update.
8635         * lib/striconveh.c: Update.
8636         * modules/striconveh: Update.
8637         * lib/linebreak.c: Update.
8638         * modules/linebreak: Update.
8639         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
8640         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
8641         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
8642         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
8643         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
8644         * lib/unistr.h: Update.
8645         * lib/striconveh.c: Update.
8646         * modules/striconveh: Update.
8647         * lib/unistr/u8-to-u16.c: Update.
8648         * modules/unistr/u8-to-u16: Update.
8649         * lib/unistr/u8-to-u32.c: Update.
8650         * modules/unistr/u8-to-u32: Update.
8651
8652 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8653
8654         Sync from Libtool.
8655         * lib/argz.c: Do not include strings.h nor memory.h, include
8656         string.h unconditionally.  Patch by Simon Josefsson.
8657
8658 2007-01-27  Bruno Haible  <bruno@clisp.org>
8659
8660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
8661         from gl_HEADER_STRING_H_BODY.
8662         (gl_HEADER_STRING_H_BODY): Require it.
8663         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
8664         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8665         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8666         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8667         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8668         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
8669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8670         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8671         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
8672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8673         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8674         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
8675         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8676         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8678
8679 2007-01-27  Bruno Haible  <bruno@clisp.org>
8680
8681         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
8682         check_PROGRAMS into noinst_PROGRAMS.
8683         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
8684         check_PROGRAMS in this case.
8685         (func_import): Set for_test to false.
8686         (func_create_testdir): Set for_test to true.
8687
8688 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8689             Bruno Haible  <bruno@clisp.org>
8690
8691         * modules/strcasestr (Files): Remove lib/strcasestr.h.
8692         (Depends-on): Add string.
8693         (Includes): Use <string.h> instead of strcasestr.h.
8694         * modules/string (Makefile.am): Also substitute the value of
8695         REPLACE_STRCASESTR.
8696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
8697         assume strcasestr is declared in <string.h> not <strings.h>. Also
8698         set REPLACE_STRCASESTR.
8699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
8700         REPLACE_STRCASESTR.
8701         * lib/strcasestr.h: Remove file.
8702         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
8703         * lib/string_.h (strcasestr): New declaration.
8704
8705 2007-01-27  Bruno Haible  <bruno@clisp.org>
8706
8707         * lib/string_.h: Use 'extern'.
8708
8709 2007-01-27  Jim Meyering  <jim@meyering.net>
8710
8711         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
8712         of set-but-not-used local, "q".
8713
8714         * lib/mempcpy.c: Include <config.h> before <string.h>.
8715         This fixes a compilation error on HP-UX, due to the system's
8716         "restrict"-using mempcpy prototype.
8717
8718 2007-01-26  Bruno Haible  <bruno@clisp.org>
8719
8720         Small optimization.
8721         * lib/javacomp.c: Include c-strstr.h.
8722          (is_envjavac_gcj): Use c_strstr instead of strstr.
8723         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
8724
8725 2007-01-26  Bruno Haible  <bruno@clisp.org>
8726
8727         * MODULES.html.sh (Unicode string functions): Add the new modules.
8728
8729         * modules/uniconv/u32-strconv-to-locale: New file.
8730         * lib/uniconv/u32-strconv-to-locale.c: New file.
8731
8732         * modules/uniconv/u16-strconv-to-locale: New file.
8733         * lib/uniconv/u16-strconv-to-locale.c: New file.
8734
8735         * modules/uniconv/u8-strconv-to-locale: New file.
8736         * lib/uniconv/u8-strconv-to-locale.c: New file.
8737
8738         * modules/uniconv/u32-strconv-from-locale: New file.
8739         * lib/uniconv/u32-strconv-from-locale.c: New file.
8740
8741         * modules/uniconv/u16-strconv-from-locale: New file.
8742         * lib/uniconv/u16-strconv-from-locale.c: New file.
8743
8744         * modules/uniconv/u8-strconv-from-locale: New file.
8745         * lib/uniconv/u8-strconv-from-locale.c: New file.
8746
8747         * modules/uniconv/u32-strconv-to-enc: New file.
8748         * lib/uniconv/u32-strconv-to-enc.c: New file.
8749         * modules/uniconv/u32-strconv-to-enc-tests: New file.
8750         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
8751
8752         * modules/uniconv/u16-strconv-to-enc: New file.
8753         * lib/uniconv/u16-strconv-to-enc.c: New file.
8754         * lib/uniconv/u-strconv-to-enc.h: New file.
8755         * modules/uniconv/u16-strconv-to-enc-tests: New file.
8756         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
8757
8758         * modules/uniconv/u8-strconv-to-enc: New file.
8759         * lib/uniconv/u8-strconv-to-enc.c: New file.
8760         * modules/uniconv/u8-strconv-to-enc-tests: New file.
8761         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
8762
8763         * modules/uniconv/u32-strconv-from-enc: New file.
8764         * lib/uniconv/u32-strconv-from-enc.c: New file.
8765         * modules/uniconv/u32-strconv-from-enc-tests: New file.
8766         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
8767
8768         * modules/uniconv/u16-strconv-from-enc: New file.
8769         * lib/uniconv/u16-strconv-from-enc.c: New file.
8770         * modules/uniconv/u16-strconv-from-enc-tests: New file.
8771         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
8772
8773         * modules/uniconv/u8-strconv-from-enc: New file.
8774         * lib/uniconv/u8-strconv-from-enc.c: New file.
8775         * lib/uniconv/u-strconv-from-enc.h: New file.
8776         * modules/uniconv/u8-strconv-from-enc-tests: New file.
8777         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
8778
8779         * modules/uniconv/u32-conv-from-enc: New file.
8780         * lib/uniconv/u32-conv-from-enc.c: New file.
8781         * modules/uniconv/u32-conv-from-enc-tests: New file.
8782         * tests/uniconv/test-u32-conv-from-enc.c: New file.
8783
8784         * modules/uniconv/u16-conv-from-enc: New file.
8785         * lib/uniconv/u16-conv-from-enc.c: New file.
8786         * lib/uniconv/u-conv-from-enc.h: New file.
8787         * modules/uniconv/u16-conv-from-enc-tests: New file.
8788         * tests/uniconv/test-u16-conv-from-enc.c: New file.
8789
8790         * modules/uniconv/u8-conv-from-enc: New file.
8791         * lib/uniconv/u8-conv-from-enc.c: New file.
8792         * modules/uniconv/u8-conv-from-enc-tests: New file.
8793         * tests/uniconv/test-u8-conv-from-enc.c: New file.
8794
8795         * modules/uniconv/base: New file.
8796         * lib/uniconv.h: New file.
8797
8798 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8799
8800         * doc/gnulib-tool.texi (Initial import): Update to match current
8801         behavior with strdup module.
8802         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
8803         * lib/memmem.h: Remove; all uses removed.  This is now done
8804         by <string.h>.
8805         * lib/mempcpy.h: Likewise.
8806         * lib/memrchr.h: Likewise.
8807         * lib/stpcpy.h: Likewise.
8808         * lib/stpncpy.h: Likewise.
8809         * lib/strcase.h: Likewise.
8810         * lib/strchrnul.h: Likewise.
8811         * lib/strdup.h: Likewise.
8812         * lib/strndup.h: Likewise.
8813         * lib/strnlen.h: Likewise.
8814         * lib/strpbrk.h: Likewise.
8815         * lib/strsep.h: Likewise.
8816         * lib/strstr.h: Likewise.
8817         * lib/strtok_r.h: Likewise.
8818         * lib/string_.h: New file.
8819         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
8820         Rely on <string.h> instead.
8821         * lib/canon-host.c: Likewise.
8822         * lib/chdir-long.c: Likewise.
8823         * lib/concatpath.c: Likewise.
8824         * lib/exclude.c: Likewise.
8825         * lib/fchdir.c: Likewise.
8826         * lib/getaddrinfo.c: Likewise.
8827         * lib/getcwd.c: Likewise.
8828         * lib/getsubopt.c: Likewise.
8829         * lib/glob.c: Likewise.
8830         * lib/hard-locale.c: Likewise.
8831         * lib/iconvme.c: Likewise.
8832         * lib/javacomp.c: Likewise.
8833         * lib/mempcpy.c: Likewise.
8834         * lib/memrchr.c: Likewise.
8835         * lib/regex_internal.h: Likewise.
8836         * lib/stpncpy.c: Likewise.
8837         * lib/strcasecmp.c: Likewise.
8838         * lib/strchrnul.c: Likewise.
8839         * lib/strdup.c: Likewise.
8840         * lib/striconv.c: Likewise.
8841         * lib/striconveh.c: Likewise.
8842         * lib/striconveha.c: Likewise.
8843         * lib/strncasecmp.c: Likewise.
8844         * lib/strndup.c: Likewise.
8845         * lib/strnlen.c: Likewise.
8846         * lib/strsep.c: Likewise.
8847         * lib/strstr.c: Likewise.
8848         * lib/strtok_r.c: Likewise.
8849         * lib/userspec.c: Likewise.
8850         * lib/w32spawn.h: Likewise.
8851         * lib/xstrndup.c: Likewise.
8852         * lib/mountlist.c (strstr): Remove decl.
8853         * m4/string_h.m4: New file.
8854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
8855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
8856         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
8857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
8858         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
8859         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
8860         Set REPLACE_STRCASECMP if necessary.
8861         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
8862         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
8863         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
8864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
8865         HAVE_DECL_STRDUP if necessary.
8866         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
8867         since gl_FUNC_STRNDUP does that now.
8868         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
8869         Check for decl here...
8870         (gl_PREREQ_STRNLEN): ... not here.
8871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
8872         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
8873         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
8874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
8875         necessary.
8876         * modules/string: New file.
8877         * modules/memmem (Files): Remove special-purpose include file.
8878         (Depends-on): Add string.
8879         (Include): Include <string.h>, not the removed file.
8880         * modules/mempcpy: Likewise.
8881         * modules/memrchr: Likewise.
8882         * modules/stpcpy: Likewise.
8883         * modules/stpncpy: Likewise.
8884         * modules/strcase: Likewise.
8885         * modules/strchrnul: Likewise.
8886         * modules/strdup: Likewise.
8887         * modules/strndup: Likewise.
8888         * modules/strnlen: Likewise.
8889         * modules/strpbrk: Likewise.
8890         * modules/strsep: Likewise.
8891         * modules/strstr: Likewise.
8892         * modules/strtok_r: Likewise.
8893         * tests/test-dirname.c: Don't include "strdup.h", since
8894         <string.h> now suffices.
8895         * tests/test-memmem.c: Don't include "memmem.h", since
8896         <string.h> now suffices.
8897
8898 2007-01-25  Bruno Haible  <bruno@clisp.org>
8899
8900         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
8901         *resultp is 0.
8902
8903         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
8904         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
8905         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
8906         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
8907
8908         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
8909         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
8910         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
8911         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
8912         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
8913         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
8914
8915 2007-01-24  Bruno Haible  <bruno@clisp.org>
8916
8917         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
8918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
8919         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
8920         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
8921         gl_FUNC_FTS_CORE.
8922         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
8923         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
8924         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8925         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
8926         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
8927         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
8928         gl_FUNC_FCHOWNAT.
8929         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
8930         gl_FUNC_STRFTIME.
8931         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
8932         Reported by Ralf Wildenhues.
8933
8934 2007-01-24  Bruno Haible  <bruno@clisp.org>
8935
8936         Drop AC_REQUIRE calls that are redundant with the module dependencies.
8937         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
8938         gl_GETADDRINFO.
8939         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
8940         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
8941         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
8942
8943 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8944
8945         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
8946         Don't use 'exit'; just return from 'main'.
8947         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
8948
8949         * lib/fnmatch_.h: Readjust white space and comments to match
8950         glibc, to avoid spurious diffs.
8951
8952 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8953
8954         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
8955         2004-12-01 change by Jakub Jelinek, since this code won't compile
8956         if !LIBC.  Problem reported by Bob Proulx.
8957
8958 2007-01-23  Bruno Haible  <bruno@clisp.org>
8959
8960         * lib/striconveh.c: Include c-strcaseeq.h.
8961         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
8962         * modules/striconveh (Depends-on): Add c-strcaseeq.
8963
8964 2007-01-23  Bruno Haible  <bruno@clisp.org>
8965
8966         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
8967
8968         * modules/c-strcaseeq: New file.
8969         * lib/c-strcaseeq.h: New file.
8970
8971         * modules/streq: New file.
8972         * lib/streq.h: New file.
8973
8974 2007-01-23  Bruno Haible  <bruno@clisp.org>
8975
8976         * modules/striconveha-tests: New file.
8977         * tests/test-striconveha.c: New file.
8978
8979         * lib/striconveha.h: Include <stdbool.h>.
8980         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
8981         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
8982         (mem_iconveha_notranslit): Renamed from mem_iconveha.
8983         (mem_iconveha): New function.
8984         (str_iconveha_notranslit): Renamed from str_iconveha.
8985         (str_iconveha): New function.
8986         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
8987         c-strcase.
8988
8989 2007-01-23  Bruno Haible  <bruno@clisp.org>
8990
8991         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
8992         encodings without forgiving before trying any encoding with handler.
8993         (str_iconveha): Try all encodings without forgiving before trying any
8994         encoding with handler.
8995
8996 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8997
8998         Import the following changes from libc.
8999
9000         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
9001
9002         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
9003
9004         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
9005
9006         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
9007         normal_bracket label.
9008
9009         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
9010
9011         [BZ #361]
9012         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
9013         to normal_bracket after fetching the next character.
9014
9015 2007-01-22  Bruno Haible  <bruno@clisp.org>
9016
9017         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
9018         argument.
9019         * lib/striconveh.c (iconv_carefully_1): New function.
9020         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
9021         argument.
9022         (str_cd_iconveh): Update.
9023         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
9024         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
9025         * tests/test-striconveh.c (MAGIC): New macro.
9026         (new_offsets): New function.
9027         (main): Test call with and without offsets.
9028
9029 2007-01-22  Bruno Haible  <bruno@clisp.org>
9030
9031         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
9032         * modules/sys_select (Makefile.am): Likewise.
9033         * modules/sys_socket (Makefile.am): Likewise.
9034         * modules/sys_time (Makefile.am): Likewise.
9035
9036 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9037
9038         * modules/gettimeofday (License): Change from GPL to LGPL, since
9039         gettimeofday is a library function.
9040
9041 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9042
9043         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
9044
9045 2007-01-21  Bruno Haible  <bruno@clisp.org>
9046
9047         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
9048
9049 2007-01-21  Bruno Haible  <bruno@clisp.org>
9050
9051         * modules/striconveha: New file.
9052         * lib/striconveha.h: New file.
9053         * lib/striconveha.c: New file.
9054         * MODULES.html.sh (Internationalization functions): Add striconveha.
9055         * lib/striconv.c (str_iconv): Optimize the case of an empty input
9056         string.
9057         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
9058
9059 2007-01-21  Bruno Haible  <bruno@clisp.org>
9060
9061         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
9062         * lib/striconveh.c (str_iconveh): Likewise.
9063
9064 2007-01-21  Bruno Haible  <bruno@clisp.org>
9065
9066         * lib/striconveh.h (mem_iconveh): New declaration.
9067         * lib/striconveh.c (mem_iconveh): New function.
9068         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
9069
9070 2007-01-21  Bruno Haible  <bruno@clisp.org>
9071
9072         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
9073
9074         * lib/striconveh.h (mem_cd_iconveh): Change specification.
9075         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
9076         original result buffer.
9077         (str_cd_iconveh): Update.
9078         * tests/test-striconveh.c (main): Update.
9079
9080         * lib/striconv.h (mem_cd_iconv): Change specification.
9081         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
9082         result buffer.
9083         (str_cd_iconv): Update.
9084         * tests/test-striconv.c (main): Update.
9085
9086 2007-01-21  Bruno Haible  <bruno@clisp.org>
9087
9088         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
9089
9090 2007-01-20  Jim Meyering  <jim@meyering.net>
9091
9092         * lib/userspec.c (parse_with_separator): If a user or group string
9093         starts with "+", skip the corresponding name-to-ID look-up, since
9094         such a look-up must fail: user and group names may not include "+".
9095
9096 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9097
9098         * lib/poll.c: Include sys/time.h and time.h unconditionally,
9099         since we now assume the sys_time module.
9100         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
9101         check for sys/time.h; no longer needed.
9102         * modules/poll (Depends-on): Depend on sys_time.
9103
9104 2007-01-18  Bruno Haible  <bruno@clisp.org>
9105
9106         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
9107         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
9108
9109         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
9110         gettimeofday.
9111
9112         * tests/test-gettimeofday.c: Include <time.h>.
9113         (dummy): Remove variable.
9114
9115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
9116         gl_HEADER_SYS_TIME_H.
9117         (gl_HEADER_SYS_TIME_H): New macro.
9118
9119         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
9120         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9121         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9122         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
9123         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9124         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
9125         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
9126         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9127         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
9128         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
9129         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9130
9131         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
9132         last change; it caused a compilation error when cross-compiling to
9133         Cygwin.
9134
9135 2007-01-18  Jim Meyering  <jim@meyering.net>
9136
9137         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
9138         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
9139         than the race-prone "test -d sys || mkdir sys".
9140         (configure.ac): Use AC_PROG_MKDIR_P.
9141         * modules/sys_select: Likewise.
9142         * modules/sys_socket: Likewise.
9143         * modules/sys_time: Likewise.
9144
9145 2007-01-18  Eric Blake  <ebb9@byu.net>
9146
9147         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
9148         replace gettimeofday.
9149         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
9150         name, to avoid infinite recursion.
9151
9152 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
9153
9154         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
9155         module sys_time.
9156         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
9157         assume timespec.h defines struct timeval.
9158         * lib/settime.c: Likewise.
9159         * lib/utimens.c: Likewise.
9160         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
9161         since we now assume the gettimeofday module.
9162         * lib/tempname.c (__gen_tempname): Likewise.
9163         * lib/gettimeofday.h: Remove.
9164         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
9165         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
9166         Include <time.h>, for 'time()'.
9167         (localtime_buffer_addr): Also use this workaround if
9168         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
9169         to simplify the uses.  All uses changed.
9170         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
9171         that #undef is inside {}, and 'const' follows type name consistently.
9172         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
9173         (gettimeofday): Do not use the maximum possible value for
9174         tv->tv_usec, since that might break usages other than ls.c.
9175         Instead, we'll leave ls.c alone.  This undoes today's patch
9176         by Bruno.  Add a compile-time warning for 1s-clock resolution;
9177         we've never observed the problem but might as well keep the
9178         canary.
9179         * lib/nanosleep.c: Include timespec.h first, for interface check.
9180         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
9181         now assume the sys_time module.
9182         * lib/tempname.c: Likewise.
9183         * lib/timespec.h: Likewise.
9184         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
9185         needed.
9186         * lib/strftime.c: Likewise.
9187         * lib/timespec.h: Likewise.
9188         * lib/posixtm.c: Include posixtm.h first, for interface check.
9189         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
9190         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
9191         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
9192         * lib/sys_time_.h: New file.
9193         * lib/timespec.h (struct timespec): Use long int, not long.
9194         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
9195         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
9196         Remove obsolescent call to AC_HEADER_TIME.
9197         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9199         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
9200         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
9201         Likewise.
9202         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
9203         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
9204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
9205         into the sys_time module.  Check for gettimeofday just once.
9206         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
9207         for gettimeofday signature to just check the signature.  Merely
9208         compile it, since linking doesn't test signature.  Improve test for
9209         whether gettimeofday.o is actually needed.
9210         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
9211         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
9212         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
9213         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9214         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
9215         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
9216         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
9217         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
9218         than worrying about sys/time.h.
9219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9220         Don't bother worrying about TIME_WITH_SYS_TIME.
9221         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9222         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
9223         * m4/sys_time_h.m4: New file.
9224         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
9225         Don't include sys/time.h.  Return from main rather than exiting.
9226         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
9227         all uses changed.
9228         * modules/gethrxtime (Depends-on): Add sys_time.
9229         * modules/gettime (Depends-on): Likewise.
9230         * modules/gettimeofday (Depends-on): Likewise.
9231         * modules/nanosleep (Depends-on): Likewise.
9232         * modules/settime (Depends-on): Likewise.
9233         * modules/tempname (Depends-on): Likewise.
9234         * modules/utimens (Depends-on): Likewise.
9235         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
9236         (Include:) Change back to <sys/time.h>.
9237         (Maintainer:) Add self.
9238         * modules/sys_time: New file.
9239         * modules/tempname (Depends-on): Add gettimeofday.
9240         * tests/test-gettimeofday.c: Include <sys/time.h>
9241         rather than gettimeofday.h.
9242
9243 2007-01-17  Bruno Haible  <bruno@clisp.org>
9244
9245         * gnulib-tool (func_get_license): Revert last patch. Instead, let
9246         the license default to GPL.
9247         (func_create_testdir): Don't complain if a module is LGPL and its
9248         tests module depends on GPLed modules.
9249
9250 2007-01-17  Bruno Haible  <bruno@clisp.org>
9251
9252         * lib/gettimeofday.c (gettimeofday): Add code for the case
9253         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
9254         maximum possible value for tv->tv_usec, rather than the minimum one.
9255
9256 2005-10-08  Martin Lambers  <marlam@marlam.de>
9257 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9258 2007-01-16  Bruno Haible  <bruno@clisp.org>
9259
9260         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
9261         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
9262         gl_FUNC_GETTIMEOFDAY.
9263         (Include): Add gettimeofday.h.
9264         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
9265         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
9266         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
9267         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
9268         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
9269         * lib/gettimeofday.h: New file.
9270         * lib/gettimeofday.c: Include <sys/timeb.h>.
9271         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
9272         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9273         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
9274         fall back on time().
9275
9276         * tests/test-gettimeofday.c: New file.
9277         * modules/gettimeofday-tests: New file.
9278
9279 2007-01-16  Eric Blake  <ebb9@byu.net>
9280
9281         * modules/fnmatch (Depends-on): Depend on wchar.
9282         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
9283         * m4/fnmatch.m4: Likewise.
9284         * modules/mbchar (Makefile.am): Assume <wchar.h>.
9285         * m4/mbchar.m4: Likewise.
9286         * modules/mbswidth (Depends-on): Depend on wchar.
9287         * lib/mbswidth.c: Assume <wchar.h>.
9288         * m4/mbswidth.m4: Likewise.
9289         * modules/quotearg (Depends-on): Depend on wchar.
9290         * lib/quotearg.c: Assume <wchar.h>.
9291         * m4/quotearg.m4: Likewise.
9292         * modules/regex (Depends-on): Depend on wchar.
9293         * lib/regex_internal.h: Assume <wchar.h>.
9294         * m4/regex.m4: Likewise.
9295         * modules/stdint (Depends-on): Depend on wchar.
9296         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
9297         * m4/stdint.m4: Likewise.
9298         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
9299         * modules/strftime (Depends-on): Depend on wchar.
9300         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
9301         * modules/strtol (Depends-on): Depend on wchar.
9302         * lib/strtol.c: Assume <wchar.h>.
9303         * modules/wcwidth (Depends-on): Depend on wchar.
9304         * lib/wcwidth.h: Assume <wchar.h>.
9305         * m4/wcwidth.m4: Likewise.
9306
9307 2007-01-16  Bruno Haible  <bruno@clisp.org>
9308
9309         * modules/csharpexec-script: New, created from...
9310         * modules/csharpexec: ... this.
9311
9312 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
9313
9314         * modules/javaexec-script: New, created from...
9315         * modules/javaexec: ... this.
9316
9317 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9318
9319         * modules/poll (Dependencies): Add sys_select.
9320
9321 2007-01-15  Jim Meyering  <jim@meyering.net>
9322
9323         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
9324         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
9325         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
9326         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
9327
9328 2007-01-15  Bruno Haible  <bruno@clisp.org>
9329
9330         * modules/striconveh: New file.
9331         * lib/striconveh.h: New file.
9332         * lib/striconveh.c: New file.
9333         * MODULES.html.sh (Internationalization functions): Add striconveh.
9334
9335         * modules/striconveh-tests: New file.
9336         * tests/test-striconveh.c: New file.
9337
9338 2007-01-15  Bruno Haible  <bruno@clisp.org>
9339
9340         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
9341         not from GNU libiconv or GNU libc.
9342
9343 2007-01-15  Bruno Haible  <bruno@clisp.org>
9344
9345         * doc/gnulib-intro.texi (Copyright): Explain the different license
9346         terms for module descriptions, autoconf macros, tests, documentation.
9347
9348 2007-01-14  Bruno Haible  <bruno@clisp.org>
9349
9350         * modules/striconv-tests: New file.
9351         * tests/test-striconv.c: New file.
9352
9353 2007-01-14  Bruno Haible  <bruno@clisp.org>
9354
9355         * modules/iconv-tests: New file.
9356         * tests/test-iconv.c: New file.
9357
9358 2007-01-14  Bruno Haible  <bruno@clisp.org>
9359
9360         * gnulib-tool (func_get_license): For test modules, use the license of
9361         the main module.
9362
9363 2007-01-14  Bruno Haible  <bruno@clisp.org>
9364
9365         * modules/iconv (Include): Clarify that <iconv.h> can only be included
9366         if iconv is found to exist.
9367
9368 2007-01-14  Bruno Haible  <bruno@clisp.org>
9369
9370         * modules/c-ctype-tests: New file.
9371         * tests/test-c-ctype.c: New file.
9372
9373 2007-01-14  Bruno Haible  <bruno@clisp.org>
9374
9375         * modules/binary-io-tests: New file.
9376         * tests/test-binary-io.sh: New file.
9377         * tests/test-binary-io.c: New file.
9378
9379 2007-01-14  Bruno Haible  <bruno@clisp.org>
9380
9381         * modules/array-oset-tests: New file.
9382         * tests/test-array_oset.c: New file.
9383
9384 2007-01-14  Bruno Haible  <bruno@clisp.org>
9385
9386         * modules/array-list-tests: New file.
9387         * tests/test-array_list.c: New file.
9388
9389 2007-01-14  Bruno Haible  <bruno@clisp.org>
9390
9391         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
9392         and make.
9393         Reported by Simon Josefsson in
9394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
9395
9396 2007-01-14  Bruno Haible  <bruno@clisp.org>
9397
9398         * modules/allocsa-tests: New file.
9399         * tests/test-allocsa.c: New file.
9400
9401 2007-01-14  Bruno Haible  <bruno@clisp.org>
9402
9403         * modules/fchdir (Depends-on): Add absolute-header.
9404         * modules/unistd (Depends-on): Likewise.
9405
9406 2006-12-30  Bruno Haible  <bruno@clisp.org>
9407
9408         * modules/fchdir: New file.
9409         * modules/unistd (Files): Add lib/unistd_.h.
9410         (Makefile.am): Generate unistd.h from unistd_.h.
9411         * lib/fchdir.c: New file.
9412         * lib/dirent_.h: New file.
9413         * lib/unistd_.h: New file.
9414         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
9415         * m4/fchdir.m4: New file.
9416         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
9417         (gl_HEADER_UNISTD): Invoke it.
9418         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
9419         function.
9420         * lib/backupfile.c (opendir, closedir): Undefine.
9421         * lib/chown.c (open, close): Undefine.
9422         * lib/clean-temp.c (open, close): Undefine.
9423         * lib/copy-file.c (open, close): Undefine.
9424         * lib/execute.c (open, close): Undefine.
9425         * lib/fsusage.c (open, close): Undefine.
9426         * lib/gc-gnulib.c (open, close): Undefine.
9427         * lib/getcwd.c (opendir, closedir): Undefine.
9428         * lib/glob.c (opendir, closedir): Undefine.
9429         * lib/javacomp.c (open, close): Undefine.
9430         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
9431         * lib/openat-proc.c (open, close): Undefine.
9432         * lib/pagealign_alloc.c (open, close): Undefine.
9433         * lib/pipe.c (open, close): Undefine.
9434         * lib/progreloc.c (open, close): Undefine.
9435         * lib/savedir.c (opendir, closedir): Undefine.
9436         * lib/utime.c (open, close): Undefine.
9437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
9438
9439 2007-01-10  Bruno Haible  <bruno@clisp.org>
9440
9441         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
9442
9443 2007-01-12  Eric Blake  <ebb9@byu.net>
9444
9445         Provide a robust <wchar.h>.  Further simplifications are now
9446         possible in other modules, but not included here.
9447         * modules/wchar: New module.
9448         * m4/wchar.m4: New file.
9449         * lib/wchar_.h: Likewise.
9450         * modules/mbchar (Depends-on): Depend on wchar, as the first use
9451         of the new module.
9452         * MODULES.html.sh (Extended multibyte and wide character utilities):
9453         New section.
9454
9455 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
9458         to a reasonable default for memory allocation.
9459         (xreadlink): Don't allocate a huge buffer, to work around a buggy
9460         file system that reports garbage st_size values for symlinks.
9461         Problem reported by Liyang Hu.
9462
9463 2007-01-11  Simon Josefsson  <simon@josefsson.org>
9464
9465         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
9466         Emacs .#* auto-save files).
9467
9468 2007-01-11  Bruno Haible  <bruno@clisp.org>
9469
9470         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
9471         directory.
9472
9473 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9474
9475         Use @...@ consistently in lib/wctype_.h.
9476         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
9477         on it being set to 1 or 0.
9478         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
9479         go back to AC_SUBSTing it.
9480         * modules/wctype (Makefile.am): Undo previous change.
9481
9482 2007-01-10  Eric Blake  <ebb9@byu.net>
9483
9484         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
9485         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
9486         * modules/wctype (Makefile.am): Likewise.
9487         Reported by Chris McGuire.
9488
9489 2007-01-10  Jim Meyering  <jim@meyering.net>
9490
9491         fts.c: a small readability/maintainability improvement
9492         * lib/fts.c (fts_read): Make this code slightly more readable and
9493         maintainable by hoisting the "sp->fts_cur = p" assignments to
9494         immediately follow the statements that set P.  Derived from
9495         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
9496
9497 2007-01-10  Eric Blake  <ebb9@byu.net>
9498
9499         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
9500         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
9501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9502         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9503         Reported by Chris McGuire.
9504
9505 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9506
9507         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
9508         in sed script.
9509
9510 2007-01-09  Bruno Haible  <bruno@clisp.org>
9511
9512         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
9513         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
9514         variables.
9515         (func_module): Use them.
9516
9517 2007-01-09  Bruno Haible  <bruno@clisp.org>
9518
9519         * modules/unistr/base: New file.
9520         * lib/unistr.h: New file.
9521
9522         * modules/unistr/u8-to-u16: New file.
9523         * lib/unistr/u8-to-u16.c: New file.
9524
9525         * modules/unistr/u8-to-u32: New file.
9526         * lib/unistr/u8-to-u32.c: New file.
9527
9528         * modules/unistr/u16-to-u8: New file.
9529         * lib/unistr/u16-to-u8.c: New file.
9530
9531         * modules/unistr/u16-to-u32: New file.
9532         * lib/unistr/u16-to-u32.c: New file.
9533
9534         * modules/unistr/u32-to-u8: New file.
9535         * lib/unistr/u32-to-u8.c: New file.
9536
9537         * modules/unistr/u32-to-u16: New file.
9538         * lib/unistr/u32-to-u16.c: New file.
9539
9540         * modules/unistr/u8-check: New file.
9541         * modules/unistr/u16-check: New file.
9542         * modules/unistr/u32-check: New file.
9543         * lib/unistr/u8-check.c: New file.
9544         * lib/unistr/u16-check.c: New file.
9545         * lib/unistr/u32-check.c: New file.
9546
9547         * modules/unistr/u8-chr: New file.
9548         * modules/unistr/u16-chr: New file.
9549         * modules/unistr/u32-chr: New file.
9550         * lib/unistr/u8-chr.c: New file.
9551         * lib/unistr/u16-chr.c: New file.
9552         * lib/unistr/u32-chr.c: New file.
9553
9554         * modules/unistr/u8-cmp: New file.
9555         * modules/unistr/u16-cmp: New file.
9556         * modules/unistr/u32-cmp: New file.
9557         * lib/unistr/u8-cmp.c: New file.
9558         * lib/unistr/u16-cmp.c: New file.
9559         * lib/unistr/u32-cmp.c: New file.
9560
9561         * modules/unistr/u8-cpy: New file.
9562         * modules/unistr/u16-cpy: New file.
9563         * modules/unistr/u32-cpy: New file.
9564         * lib/unistr/u8-cpy.c: New file.
9565         * lib/unistr/u16-cpy.c: New file.
9566         * lib/unistr/u32-cpy.c: New file.
9567         * lib/unistr/u-cpy.h: New file.
9568
9569         * modules/unistr/u8-cpy-alloc: New file.
9570         * modules/unistr/u16-cpy-alloc: New file.
9571         * modules/unistr/u32-cpy-alloc: New file.
9572         * lib/unistr/u8-cpy-alloc.c: New file.
9573         * lib/unistr/u16-cpy-alloc.c: New file.
9574         * lib/unistr/u32-cpy-alloc.c: New file.
9575         * lib/unistr/u-cpy-alloc.h: New file.
9576
9577         * modules/unistr/u8-endswith: New file.
9578         * modules/unistr/u16-endswith: New file.
9579         * modules/unistr/u32-endswith: New file.
9580         * lib/unistr/u8-endswith.c: New file.
9581         * lib/unistr/u16-endswith.c: New file.
9582         * lib/unistr/u32-endswith.c: New file.
9583         * lib/unistr/u-endswith.h: New file.
9584
9585         * modules/unistr/u8-mblen: New file.
9586         * modules/unistr/u16-mblen: New file.
9587         * modules/unistr/u32-mblen: New file.
9588         * lib/unistr/u8-mblen.c: New file.
9589         * lib/unistr/u16-mblen.c: New file.
9590         * lib/unistr/u32-mblen.c: New file.
9591
9592         * modules/unistr/u8-mbtouc: New file.
9593         * modules/unistr/u16-mbtouc: New file.
9594         * modules/unistr/u32-mbtouc: New file.
9595         * lib/unistr/u8-mbtouc.c: New file.
9596         * lib/unistr/u16-mbtouc.c: New file.
9597         * lib/unistr/u32-mbtouc.c: New file.
9598
9599         * modules/unistr/u8-mbtouc-safe: New file.
9600         * modules/unistr/u16-mbtouc-safe: New file.
9601         * modules/unistr/u32-mbtouc-safe: New file.
9602         * lib/unistr/u8-mbtouc-safe.c: New file.
9603         * lib/unistr/u16-mbtouc-safe.c: New file.
9604         * lib/unistr/u32-mbtouc-safe.c: New file.
9605
9606         * modules/unistr/u8-move: New file.
9607         * modules/unistr/u16-move: New file.
9608         * modules/unistr/u32-move: New file.
9609         * lib/unistr/u8-move.c: New file.
9610         * lib/unistr/u16-move.c: New file.
9611         * lib/unistr/u32-move.c: New file.
9612         * lib/unistr/u-move.h: New file.
9613
9614         * modules/unistr/u8-next: New file.
9615         * modules/unistr/u16-next: New file.
9616         * modules/unistr/u32-next: New file.
9617         * lib/unistr/u8-next.c: New file.
9618         * lib/unistr/u16-next.c: New file.
9619         * lib/unistr/u32-next.c: New file.
9620
9621         * modules/unistr/u8-prev: New file.
9622         * modules/unistr/u16-prev: New file.
9623         * modules/unistr/u32-prev: New file.
9624         * lib/unistr/u8-prev.c: New file.
9625         * lib/unistr/u16-prev.c: New file.
9626         * lib/unistr/u32-prev.c: New file.
9627
9628         * modules/unistr/u8-set: New file.
9629         * modules/unistr/u16-set: New file.
9630         * modules/unistr/u32-set: New file.
9631         * lib/unistr/u8-set.c: New file.
9632         * lib/unistr/u16-set.c: New file.
9633         * lib/unistr/u32-set.c: New file.
9634         * lib/unistr/u-set.h: New file.
9635
9636         * modules/unistr/u8-startswith: New file.
9637         * modules/unistr/u16-startswith: New file.
9638         * modules/unistr/u32-startswith: New file.
9639         * lib/unistr/u8-startswith.c: New file.
9640         * lib/unistr/u16-startswith.c: New file.
9641         * lib/unistr/u32-startswith.c: New file.
9642         * lib/unistr/u-startswith.h: New file.
9643
9644         * modules/unistr/u8-stpcpy: New file.
9645         * modules/unistr/u16-stpcpy: New file.
9646         * modules/unistr/u32-stpcpy: New file.
9647         * lib/unistr/u8-stpcpy.c: New file.
9648         * lib/unistr/u16-stpcpy.c: New file.
9649         * lib/unistr/u32-stpcpy.c: New file.
9650         * lib/unistr/u-stpcpy.h: New file.
9651
9652         * modules/unistr/u8-stpncpy: New file.
9653         * modules/unistr/u16-stpncpy: New file.
9654         * modules/unistr/u32-stpncpy: New file.
9655         * lib/unistr/u8-stpncpy.c: New file.
9656         * lib/unistr/u16-stpncpy.c: New file.
9657         * lib/unistr/u32-stpncpy.c: New file.
9658         * lib/unistr/u-stpncpy.h: New file.
9659
9660         * modules/unistr/u8-strcat: New file.
9661         * modules/unistr/u16-strcat: New file.
9662         * modules/unistr/u32-strcat: New file.
9663         * lib/unistr/u8-strcat.c: New file.
9664         * lib/unistr/u16-strcat.c: New file.
9665         * lib/unistr/u32-strcat.c: New file.
9666         * lib/unistr/u-strcat.h: New file.
9667
9668         * modules/unistr/u8-strchr: New file.
9669         * modules/unistr/u16-strchr: New file.
9670         * modules/unistr/u32-strchr: New file.
9671         * lib/unistr/u8-strchr.c: New file.
9672         * lib/unistr/u16-strchr.c: New file.
9673         * lib/unistr/u32-strchr.c: New file.
9674
9675         * modules/unistr/u8-strcmp: New file.
9676         * modules/unistr/u16-strcmp: New file.
9677         * modules/unistr/u32-strcmp: New file.
9678         * lib/unistr/u8-strcmp.c: New file.
9679         * lib/unistr/u16-strcmp.c: New file.
9680         * lib/unistr/u32-strcmp.c: New file.
9681
9682         * modules/unistr/u8-strcpy: New file.
9683         * modules/unistr/u16-strcpy: New file.
9684         * modules/unistr/u32-strcpy: New file.
9685         * lib/unistr/u8-strcpy.c: New file.
9686         * lib/unistr/u16-strcpy.c: New file.
9687         * lib/unistr/u32-strcpy.c: New file.
9688         * lib/unistr/u-strcpy.h: New file.
9689
9690         * modules/unistr/u8-strcspn: New file.
9691         * modules/unistr/u16-strcspn: New file.
9692         * modules/unistr/u32-strcspn: New file.
9693         * lib/unistr/u8-strcspn.c: New file.
9694         * lib/unistr/u16-strcspn.c: New file.
9695         * lib/unistr/u32-strcspn.c: New file.
9696         * lib/unistr/u-strcspn.h: New file.
9697
9698         * modules/unistr/u8-strdup: New file.
9699         * modules/unistr/u16-strdup: New file.
9700         * modules/unistr/u32-strdup: New file.
9701         * lib/unistr/u8-strdup.c: New file.
9702         * lib/unistr/u16-strdup.c: New file.
9703         * lib/unistr/u32-strdup.c: New file.
9704         * lib/unistr/u-strdup.h: New file.
9705
9706         * modules/unistr/u8-strlen: New file.
9707         * modules/unistr/u16-strlen: New file.
9708         * modules/unistr/u32-strlen: New file.
9709         * lib/unistr/u8-strlen.c: New file.
9710         * lib/unistr/u16-strlen.c: New file.
9711         * lib/unistr/u32-strlen.c: New file.
9712         * lib/unistr/u-strlen.h: New file.
9713
9714         * modules/unistr/u8-strmblen: New file.
9715         * modules/unistr/u16-strmblen: New file.
9716         * modules/unistr/u32-strmblen: New file.
9717         * lib/unistr/u8-strmblen.c: New file.
9718         * lib/unistr/u16-strmblen.c: New file.
9719         * lib/unistr/u32-strmblen.c: New file.
9720
9721         * modules/unistr/u8-strmbtouc: New file.
9722         * modules/unistr/u16-strmbtouc: New file.
9723         * modules/unistr/u32-strmbtouc: New file.
9724         * lib/unistr/u8-strmbtouc.c: New file.
9725         * lib/unistr/u16-strmbtouc.c: New file.
9726         * lib/unistr/u32-strmbtouc.c: New file.
9727
9728         * modules/unistr/u8-strncat: New file.
9729         * modules/unistr/u16-strncat: New file.
9730         * modules/unistr/u32-strncat: New file.
9731         * lib/unistr/u8-strncat.c: New file.
9732         * lib/unistr/u16-strncat.c: New file.
9733         * lib/unistr/u32-strncat.c: New file.
9734         * lib/unistr/u-strncat.h: New file.
9735
9736         * modules/unistr/u8-strncmp: New file.
9737         * modules/unistr/u16-strncmp: New file.
9738         * modules/unistr/u32-strncmp: New file.
9739         * lib/unistr/u8-strncmp.c: New file.
9740         * lib/unistr/u16-strncmp.c: New file.
9741         * lib/unistr/u32-strncmp.c: New file.
9742
9743         * modules/unistr/u8-strncpy: New file.
9744         * modules/unistr/u16-strncpy: New file.
9745         * modules/unistr/u32-strncpy: New file.
9746         * lib/unistr/u8-strncpy.c: New file.
9747         * lib/unistr/u16-strncpy.c: New file.
9748         * lib/unistr/u32-strncpy.c: New file.
9749         * lib/unistr/u-strncpy.h: New file.
9750
9751         * modules/unistr/u8-strnlen: New file.
9752         * modules/unistr/u16-strnlen: New file.
9753         * modules/unistr/u32-strnlen: New file.
9754         * lib/unistr/u8-strnlen.c: New file.
9755         * lib/unistr/u16-strnlen.c: New file.
9756         * lib/unistr/u32-strnlen.c: New file.
9757         * lib/unistr/u-strnlen.h: New file.
9758
9759         * modules/unistr/u8-strpbrk: New file.
9760         * modules/unistr/u16-strpbrk: New file.
9761         * modules/unistr/u32-strpbrk: New file.
9762         * lib/unistr/u8-strpbrk.c: New file.
9763         * lib/unistr/u16-strpbrk.c: New file.
9764         * lib/unistr/u32-strpbrk.c: New file.
9765         * lib/unistr/u-strpbrk.h: New file.
9766
9767         * modules/unistr/u8-strrchr: New file.
9768         * modules/unistr/u16-strrchr: New file.
9769         * modules/unistr/u32-strrchr: New file.
9770         * lib/unistr/u8-strrchr.c: New file.
9771         * lib/unistr/u16-strrchr.c: New file.
9772         * lib/unistr/u32-strrchr.c: New file.
9773
9774         * modules/unistr/u8-strspn: New file.
9775         * modules/unistr/u16-strspn: New file.
9776         * modules/unistr/u32-strspn: New file.
9777         * lib/unistr/u8-strspn.c: New file.
9778         * lib/unistr/u16-strspn.c: New file.
9779         * lib/unistr/u32-strspn.c: New file.
9780         * lib/unistr/u-strspn.h: New file.
9781
9782         * modules/unistr/u8-strstr: New file.
9783         * modules/unistr/u16-strstr: New file.
9784         * modules/unistr/u32-strstr: New file.
9785         * lib/unistr/u8-strstr.c: New file.
9786         * lib/unistr/u16-strstr.c: New file.
9787         * lib/unistr/u32-strstr.c: New file.
9788         * lib/unistr/u-strstr.h: New file.
9789
9790         * modules/unistr/u8-strtok: New file.
9791         * modules/unistr/u16-strtok: New file.
9792         * modules/unistr/u32-strtok: New file.
9793         * lib/unistr/u8-strtok.c: New file.
9794         * lib/unistr/u16-strtok.c: New file.
9795         * lib/unistr/u32-strtok.c: New file.
9796         * lib/unistr/u-strtok.h: New file.
9797
9798         * modules/unistr/u8-uctomb: New file.
9799         * modules/unistr/u16-uctomb: New file.
9800         * modules/unistr/u32-uctomb: New file.
9801         * lib/unistr/u8-uctomb.c: New file.
9802         * lib/unistr/u16-uctomb.c: New file.
9803         * lib/unistr/u32-uctomb.c: New file.
9804
9805         * MODULES.html.sh (Unicode string functions): Add the new modules.
9806
9807 2007-01-08  Bruno Haible  <bruno@clisp.org>
9808
9809         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
9810         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
9811         subdirectories.
9812
9813 2007-01-08  Karl Berry  <karl@gnu.org>
9814
9815         * doc/error.texi: mention that main() fns must set program_name
9816         when progname is used.
9817
9818 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9819
9820         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
9821         WCTYPE_H is empty, for the benefit of builds from non-distclean
9822         directories.  Problem reported by Eric Blake in
9823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
9824
9825 2007-01-08  Bruno Haible  <bruno@clisp.org>
9826
9827         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
9828         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
9829         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
9830         PROVIDE_CANONICALIZE_FILENAME_MODE.
9831         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
9832
9833 2007-01-08  Bruno Haible  <bruno@clisp.org>
9834
9835         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
9836         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
9837         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
9838         * lib/fts.c: Likewise.
9839         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
9840
9841 2006-12-25  Bruno Haible  <bruno@clisp.org>
9842
9843         * modules/utf8-ucs4-safe: New file.
9844         * lib/utf8-ucs4-safe.h: New file.
9845         * lib/unistr/utf8-ucs4-safe.c: New file.
9846
9847         * modules/utf16-ucs4-safe: New file.
9848         * lib/utf16-ucs4-safe.h: New file.
9849         * lib/unistr/utf16-ucs4-safe.c: New file.
9850
9851         * MODULES.html.sh (Unicode string functions): Add the new modules.
9852
9853 2007-01-08  Bruno Haible  <bruno@clisp.org>
9854
9855         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
9856         (Depends-on): Add unitypes.
9857         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
9858         (u8_mbtouc_aux): Move out to separate file.
9859         (u8_mbtouc): Use ucs4_t, uint8_t types.
9860         * lib/unistr/utf8-ucs4.c: New file.
9861
9862         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
9863         (Depends-on): Add unitypes.
9864         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
9865         (u16_mbtouc_aux): Move out to separate file.
9866         (u16_mbtouc): Use ucs4_t, uint16_t types.
9867         * lib/unistr/utf16-ucs4.c: New file.
9868
9869         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
9870         (Depends-on): Add unitypes.
9871         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
9872         (u8_uctomb_aux): Move out to separate file.
9873         (u8_uctomb): Use ucs4_t, uint8_t types.
9874         * lib/unistr/ucs4-utf8.c: New file.
9875
9876         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
9877         (Depends-on): Add unitypes.
9878         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
9879         (u16_uctomb_aux): Move out to separate file.
9880         (u16_uctomb): Use ucs4_t, uint16_t types.
9881         * lib/unistr/ucs4-utf16.c: New file.
9882
9883 2006-12-25  Bruno Haible  <bruno@clisp.org>
9884
9885         * modules/unitypes: New file.
9886         * lib/unitypes.h: New file.
9887         * MODULES.html.sh (func_all_modules): New section "Unicode string
9888         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
9889         this section. Add unitypes.
9890
9891 2007-01-08  Bruno Haible  <bruno@clisp.org>
9892
9893         Avoid variable names that conflict with those from libtool.
9894         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
9895         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
9896         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
9897         library_names_spec to acl_library_names_spec, hardcode_* to
9898         acl_hardcode_*.
9899         Reported by Ralf Wildenhues.
9900
9901 2007-01-08  Bruno Haible  <bruno@clisp.org>
9902
9903         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
9904         definition.
9905         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
9906         definition.
9907         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
9908         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
9909         definition.
9910         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
9911         definition.
9912         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
9913         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
9914         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
9915         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
9916         definition.
9917         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
9918         definition.
9919         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
9920         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
9921         GC_USE_<algorithm>.
9922         * lib/gc-libgcrypt.c: Likewise.
9923         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
9924         * modules/gc-arctwo (configure.ac): Likewise.
9925         * modules/gc-des (configure.ac): Likewise.
9926         * modules/gc-hmac-md5 (configure.ac): Likewise.
9927         * modules/gc-hmac-sha1 (configure.ac): Likewise.
9928         * modules/gc-md2 (configure.ac): Likewise.
9929         * modules/gc-md4 (configure.ac): Likewise.
9930         * modules/gc-md5 (configure.ac): Likewise.
9931         * modules/gc-random (configure.ac): Likewise.
9932         * modules/gc-rijndael (configure.ac): Likewise.
9933         * modules/gc-sha1 (configure.ac): Likewise.
9934
9935 2007-01-08  Bruno Haible  <bruno@clisp.org>
9936
9937         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
9938         macro definition.
9939         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
9940         definition.
9941         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
9942         definition.
9943         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
9944         * modules/fcntl-safer (configure.ac): Likewise.
9945         * modules/fopen-safer (configure.ac): Likewise.
9946         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
9947         GNULIB_FWRITEERROR macro definition.
9948
9949 2007-01-08  Bruno Haible  <bruno@clisp.org>
9950
9951         * m4/gnulib-common.m4: New file.
9952         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
9953         (func_get_filelist): Add m4/gnulib-common.m4.
9954
9955 2007-01-08  Bruno Haible  <bruno@clisp.org>
9956
9957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
9958         command.
9959
9960 2007-01-08  Jim Meyering  <jim@meyering.net>
9961
9962         Use a more robust test for a "can't happen" condition.
9963         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
9964         narrowed the st_size value.  Presuming the "can't happen" condition
9965         is true, that narrowing could conceivably convert an invalid st_size
9966         value into a valid one.  Instead, use a change based on Matthew
9967         Woehlke's original patch.
9968
9969         Slight readability improvement: use an assert-like macro
9970         in place of literal "abort ()" uses.
9971         * lib/fts.c (fts_assert): Define.
9972         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
9973         Use this macro instead of a bare 'abort'.
9974
9975 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9976
9977         Don't worry about using IRIX 5.3's wctype.h broken definitions;
9978         simply work around them.
9979         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
9980         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
9981         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
9982         declaring.
9983         Don't bother to define as macros, since the standard doesn't require it.
9984         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
9985         longer worry about IRIX 5.3.
9986         (HAVE_WCTYPE_CTMP_BUG): Remove.
9987
9988 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9989
9990         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
9991         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
9992         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9993         Problems reported by Georg Schwarz for IRIX 5.3.
9994
9995         * gnulib-tool (autoconf_minversion): Take the maximum version number
9996         found, not the minimum.  Problem reported by James Youngman.
9997
9998 2007-01-03  Karl Berry  <karl@gnu.org>
9999
10000         * doc/error.texi: new file, explaining interaction with progname.
10001         * doc/gnulib.texi: include it.  Update copyright.
10002
10003 2007-01-03  Simon Josefsson  <simon@josefsson.org>
10004
10005         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
10006         AC_CANONICAL_HOST, to improve autobuild outputs.
10007
10008 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
10009             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10010
10011         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
10012         sockets, server sockets, and other file descriptors.  Count errors
10013         to compute the return value.  Reorder the code a bit to be easier
10014         to follow.  Don't set event bits that were not requested (except
10015         POLLERR and POLLHUP).
10016
10017 2007-01-01  Bruno Haible  <bruno@clisp.org>
10018
10019         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
10020
10021 2007-01-03  Jim Meyering  <jim@meyering.net>
10022
10023         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
10024
10025 2007-01-02  Bruno Haible  <bruno@clisp.org>
10026
10027         * modules/settime (Include): Require timespec.h.
10028         * modules/nanosleep (Include): Likewise.
10029
10030 2007-01-01  Bruno Haible  <bruno@clisp.org>
10031
10032         * gnulib-tool (func_emit_copyright_notice): Bump year.
10033         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
10034
10035 2007-01-01  Bruno Haible  <bruno@clisp.org>
10036
10037         Improve support for OpenBSD.
10038         * build-aux/config.rpath (libname_spec): Export.
10039         (library_names_spec): New variable. Export.
10040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
10041         library_names_spec from the config.rpath output. Locate shared library
10042         through the name pattern in library_names_spec.
10043
10044 2007-01-01  Eric Blake  <ebb9@byu.net>
10045
10046         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
10047
10048 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10049
10050         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
10051         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
10052         assume the C locale, and avoid an "eval" that could cause trouble.
10053         Problem with SORT reported by Bob Proulx.
10054
10055         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
10056         Define.  Trivial patch from Henning Nielsen Lund, originally
10057         sent to bug-grep@gnu.org today.
10058
10059 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10060
10061         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
10062         struct stat.  Problem reported by Henning Nielsen Lund.
10063         * lib/acl.c: Include acl.h first, to check interface.  Don't
10064         bother to include sys/types.h and sys/stat.h again.
10065
10066 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10067
10068         Import the following change from libc; problem reported by
10069         Sven Verdoolaege.
10070
10071         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
10072
10073         [BZ #1373]
10074         * lib/argp.h: Remove __NTH for __argp_usage inline function.
10075
10076 2006-12-28  Jim Meyering  <jim@meyering.net>
10077
10078         * build-aux/announce-gen: Do not assume that the package
10079         builds any of tar.gz, tar.bz2, and .xdelta files.
10080         Suggestion from Simon Josefsson.
10081
10082 2006-12-28  Simon Josefsson  <simon@josefsson.org>
10083
10084         * modules/announce-gen: New file.
10085
10086 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10087
10088         * lib/mbchar.h: Just include <wctype.h>; the wctype module
10089         handles its gotchas now.
10090         * lib/mbswidth.c: Likewise.
10091         * lib/wcwidth.h: Likewise.
10092         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
10093         and iswcntrl; the wctype module does this stuff now.
10094         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10096         * modules/mbchar (Depends-on): Add wctype.
10097         * modules/mbswidth (Depends-on): Likewise.
10098         * modules/wcwidth (Depends-on): Likewise.
10099
10100 2006-12-27  Eric Blake  <ebb9@byu.net>
10101
10102         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
10103         module uses more than what <wctype.h> is required to provide.
10104
10105 2006-12-26  Eric Blake  <ebb9@byu.net>
10106
10107         * gnulib-tool (sed_extract_prog): Avoid space-tab.
10108
10109 2006-12-26  Eric Blake  <ebb9@byu.net>
10110
10111         * modules/absolute-header: New module.
10112         * modules/fcntl (Depends-on): Depend on it.
10113         * modules/inttypes (Depends-on): Likewise.
10114         * modules/stdint (Depends-on): Likewise.
10115         * modules/sys_stat (Depends-on): Likewise.
10116         * modules/wctype (Depends-on): Likewise.
10117         * MODULES.html.sh (Support for building libraries and
10118         executables): Document it.
10119
10120 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         * gnulib-tool (SED): Remove, undoing previous change.
10123         The problem was that it broke coreutils on Solaris, because
10124         "sed --posix" leaked into a makefile.
10125         (sed): New alias, if 'alias' and GNU sed.
10126
10127 2006-12-24  Jim Meyering  <jim@meyering.net>
10128
10129         Work around an fchownat bug in glibc-2.4:
10130         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
10131         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
10132         in spite of the -P option.
10133         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
10134         New macros.
10135         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
10136         * modules/openat (Files): Add lib/fchownat.c.
10137         * lib/openat.c (fchownat): Don't define here.  Move to...
10138         * lib/fchownat.c: ...this new file.
10139
10140 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10141
10142         Fix bug reported by Bruno Haible in
10143         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
10144         where quotearg.c didn't compile on Mac OS X 10.2 because it
10145         lacks <wchar.h> and wint_t.
10146         * lib/wctype_.h (__wctype_wint_t): New type.
10147         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
10148         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
10149         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
10150         Arg is now of type __wctype_wint_t, not wint_t.
10151         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
10152         substitute HAVE_WINT_T.
10153         * modules/wctype (Files): Add m4/wint_t.m4.
10154         (wctype.h): Substitute HAVE_WINT_T.
10155
10156 2006-12-23  Bruno Haible  <bruno@clisp.org>
10157
10158         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
10159
10160 2006-12-23  Bruno Haible  <bruno@clisp.org>
10161
10162         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
10163         S_ISLNK.
10164         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
10165         mingw.
10166
10167 2006-12-22  Bruno Haible  <bruno@clisp.org>
10168
10169         * lib/copy-file.c: Include acl.h.
10170         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
10171         Close the file descriptors only after being done with copy_acl.
10172         * modules/copy-file (Depends-on): Add acl.
10173
10174 2006-12-22  Bruno Haible  <bruno@clisp.org>
10175
10176         * gnulib-tool (SED): New variable.
10177         Use $SED instead of sed everywhere.
10178
10179 2006-12-22  Bruno Haible  <bruno@clisp.org>
10180
10181         * modules/no-c++: New file.
10182         * m4/no-c++.m4: New file.
10183         * MODULES.html.sh (Support for building libraries and executables):
10184         Add no-c++.
10185
10186 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10187
10188         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
10189         Include <limits.h>, and use its INT_MAX to rewrite the
10190         j loop so that it does not overflow 'int'.  Problem reported by
10191         Ralf Wildenhues in
10192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
10193         Play it safe by shifting left by 1 rather than multiplying by 2,
10194         as GCC is less likely to optimize this away when the value
10195         is signed (when it assumes overflow leads to undefined behavior).
10196         Also, don't assume time_t uses two's complement.
10197
10198 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10199
10200         * MODULES.html.sh: New module wctype.
10201         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
10202         * lib/fnmatch.c: Don't bother to include <wchar.h> before
10203         <wctype.h>, since the new wctype module should fix this.
10204         * lib/quotearg.c: Include <wctype.h> unconditionally, since
10205         the wctype module should arrange for it.
10206         * lib/regex_internal.h: Likewise.
10207         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
10208         since the wctype module should handle this now.
10209         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
10210         * modules/fnmatch (Depends-on): Add wctype.
10211         * modules/quotearg (Depends-on): Likewise.
10212         * modules/regex (Depends-on): Likewise.
10213
10214 2006-12-19  Bruno Haible  <bruno@clisp.org>
10215
10216         * lib/strdup.h [C++]: Wrap definitions in extern "C".
10217         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
10218
10219 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10220
10221         * modules/savewd (Depends-on): Fix dependency on fcntl.
10222
10223 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10224
10225         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
10226         conforms to C99, rather than relying on the user's environment
10227         setting of STDINT_H.
10228
10229 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10230         and Eric Blake  <ebb9@byu.net>
10231
10232         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
10233         This is more consistent with the other defines here.
10234         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
10235         Port to z/OS.  Problem reported by Paul Gilmartin.
10236         Change local vars to use gl_ prefix rather than ac_.
10237         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
10238         with other defines.
10239         * modules/double-slash-root: New module.
10240         * modules/dirname (Files): Remove m4/double-slash-root.m4.
10241         (Depends-on): Add double-slash-root.
10242         * MODULES.html.sh (File system functions): Mention new module.
10243
10244 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10245
10246         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
10247         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
10248         This is for the benefit of gzip, which doesn't do i18n.
10249
10250 2006-12-12  Jim Meyering  <jim@meyering.net>
10251
10252         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
10253         Reported by Andreas Schwab <schwab@suse.de>.
10254
10255 2006-12-12  Bruno Haible  <bruno@clisp.org>
10256
10257         Merge these changes.
10258         2006-09-05  Bruno Haible  <bruno@clisp.org>
10259         * lib/iconvme.c (iconv_string): No need to save and restore errno when
10260         iconv_alloc succeeded.
10261         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
10262         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
10263         test for " && dest " at the end - dest is always != NULL there. Call
10264         iconv with 4xNULL arguments initially, to reset the state. Call iconv
10265         with 2xNULL arguments, also to flush the state storage. Handle the
10266         IRIX iconv behaviour. Realloc the final result, to throw away unused
10267         memory.
10268
10269 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10270
10271         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
10272         and fchmodat unconditionally, since glibc 2.4 has them.
10273         Problem reported by Arkadiusz Miskiewicz.
10274
10275 2006-12-10  Bruno Haible  <bruno@clisp.org>
10276
10277         * gnulib-tool (func_import): Show the include files only for those
10278         modules that are copied and specified.
10279         Reported by Karl Berry.
10280
10281 2006-12-08  Jim Meyering  <jim@meyering.net>
10282
10283         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
10284         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
10285
10286         * build-aux/announce-gen: Add two new options, both optional:
10287         --bootstrap-tools=TOOL_LIST
10288               a comma-separated list of tools, e.g.,
10289               autoconf,automake,bison,gnulib
10290         --gnulib-snapshot-date=DATE
10291               if gnulib is in the bootstrap tool list,
10292               then report this as the snapshot date.
10293               If not specified, use the current date/time.
10294               If you specify a date here, be sure it's UTC.
10295
10296 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10297
10298         * tests/test-argp-2.sh: Fix test to match actual output.
10299         (func_compare): Fix sed script to be portable.
10300
10301 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
10302
10303         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
10304         workaround for this case.  It is not autoconfigured now; offhand
10305         it's hard to see how to autoconfigure it.
10306
10307 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
10310         a directory that is about to be chowned.  Such a directory's
10311         initial file permissions should permit the owner only and this
10312         should not be changed until after the chown, since the group and
10313         other bits would be incorrect if they granted permission before
10314         the chown.
10315
10316         Fix porting problem for iswctype reported by Georg Schwarz in:
10317         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
10318         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
10319         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
10320         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
10321         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10322
10323 2006-12-03  Jim Meyering  <jim@meyering.net>
10324
10325         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
10326         p->fts_statp may not yet be defined.
10327         (fts_read): Instead, set it in the caller, once p->fts_statp is
10328         sure to be defined, and corresponds to a top-level directory.
10329         This bug made du -x fail.  Here's the coreutils test case:
10330         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
10331         Reported by Mike Frysinger.
10332
10333 2006-12-01  Jim Meyering  <jim@meyering.net>
10334
10335         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
10336         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
10337         Reported by Simon Josefsson.
10338
10339 2006-11-30  Jim Meyering  <jim@meyering.net>
10340
10341         * m4/warning.m4: Use the all-permissive copyright notice
10342         recommended by RMS (rather than LGPL).
10343         * m4/vararrays.m4: Likewise.
10344         * m4/flexmember.m4: Likewise.
10345
10346 2006-11-29  Bruno Haible  <bruno@clisp.org>
10347
10348         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10349         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
10350         using +=.
10351         Reported by Simon Josefsson <simon@josefsson.org>.
10352
10353 2006-11-28  James Youngman <jay@gnu.org>
10354
10355         * README: Advise users that they might find the bug-gnulib@gnu.org
10356         and autotools-announce@gnu.org mailing lists useful.
10357
10358 2006-11-28  Bruno Haible  <bruno@clisp.org>
10359
10360         * m4/ptrdiff_max.m4: Remove file.
10361
10362 2006-11-21  Bruno Haible  <bruno@clisp.org>
10363
10364         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
10365         _AC_COMPUTE_INT.
10366         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10367         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
10368         _AC_COMPUTE_INT.
10369         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10370         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
10371         _AC_COMPUTE_INT.
10372         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10373
10374 2006-11-28  Jim Meyering  <jim@meyering.net>
10375
10376         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
10377         warning from "gcc -Wshadow" about shadowing the builtin.
10378
10379 2006-11-27  Bruno Haible  <bruno@clisp.org>
10380
10381         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
10382         _AC_COMPUTE_INT.
10383         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10384
10385 2006-11-27  Bruno Haible  <bruno@clisp.org>
10386             Paul Eggert  <eggert@cs.ucla.edu>
10387
10388         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
10389
10390 2006-11-26  Bruno Haible  <bruno@clisp.org>
10391
10392         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10393         noinst_LTLIBRARIES.
10394
10395 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
10396             Bruno Haible  <bruno@clisp.org>
10397
10398         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
10399         if compiling with "gcc -ansi".
10400
10401 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10402
10403         Fix some incompatibilities with gcc -ansi -pedantic.
10404         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
10405         if compiling pedantically with GCC, unless it's C99 or later.
10406         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
10407         it mishandles gcc -ansi -pedantic as well.
10408         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
10409         if gcc -pedantic.
10410         * lib/regexec.c (check_node_accept_bytes): Don't use auto
10411         initializers for struct if -pedantic, unless it's C99 or later.
10412
10413 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
10414
10415         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
10416         Don't close an fd more than once. Identical atimes indicate
10417         success, not failure.
10418
10419 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
10420
10421         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
10422
10423 2006-11-23  Jim Meyering  <jim@meyering.net>
10424
10425         * build-aux/announce-gen: New file.  From coreutils.
10426
10427 2006-11-22  Jim Meyering  <jim@meyering.net>
10428
10429         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
10430         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
10431         (fts_read): Use a temporary to narrow the overused st_size member
10432         before using it in a switch statement.  Reported by Matthew Woehlke.
10433
10434         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
10435         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10436
10437 2006-11-20  Bruno Haible  <bruno@clisp.org>
10438
10439         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
10440         changequote instead of pairs of brackets.
10441         Reported by Andreas Schwab <schwab@suse.de>.
10442
10443 2006-11-21  Jim Meyering  <jim@meyering.net>
10444
10445         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
10446         so as to remain compatible with older compilers.
10447         Patch from Michael Deutschmann.
10448
10449 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10450
10451         * MODULES.html.sh (File system functions): Add openat.
10452
10453         * lib/openat.h (rpl_fstatat): New macro, if
10454         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
10455         (fstatat): Define to rpl_fstatat under the same conditions,
10456         unless COMPILING_FSTATAT.
10457         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
10458         seems to have the bug.
10459         * lib/fstatat.c: New file.
10460         * modules/openat (Files): Add it.
10461
10462 2006-11-20  Bruno Haible  <bruno@clisp.org>
10463
10464         * Makefile: New file.
10465
10466 2006-11-20  Jim Meyering  <jim@meyering.net>
10467
10468         The beginnings of syntax-related checks for gnulib.
10469         * lib/Makefile: New file.
10470         * lib/t-idcache: New script.  Ensure that the two halves of
10471         idcache.c stay in sync.
10472
10473         * lib/idcache.c: Adjust comments in user- and group- portions to
10474         be more accurate, and to be consistent with one another.
10475
10476 2006-11-20  Jim Meyering  <jim@meyering.net>
10477
10478         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
10479         continue using the flexible array member (thus, this module performs
10480         half as many malloc calls), with the addition that...
10481         (getgroup, getuser): Consistently record a non-match via an empty
10482         "name" string, and map an empty string match to a NULL return value.
10483         * modules/idcache (Depends-on): Re-add flexmember.
10484
10485         * lib/idcache.c (getuser): Remove all uses of the register keyword.
10486         (getuidbyname, getgroup, getgidbyname): Likewise.
10487
10488         Use cleaner syntax: NULL rather than 0.
10489         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
10490
10491 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10492
10493         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
10494         It mishandled the case where the group was missing.
10495         Problem reported by Greg Schafer.
10496         * modules/idcache: Likewise.
10497
10498 2006-11-18  Jim Meyering  <jim@meyering.net>
10499
10500         * check-module (%exempt_header): Add exception for some
10501         conditionally-included headers.
10502
10503         * modules/i-ring (Depends-on): Add verify.
10504         (License): Change to LGPL.
10505
10506 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
10509         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
10510         and inttostr.h.  Use snprintf rather than uinttostr, so that
10511         LGPLed code doesn't depend on GPLed.
10512
10513 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10514
10515         * modules/inline (License): Change from GPL to LGPL.
10516
10517 2006-11-17  Jim Meyering  <jim@meyering.net>
10518
10519         * modules/d-type (License): Switch to LGPL.
10520
10521 2006-11-15  Bruno Haible  <bruno@clisp.org>
10522
10523         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
10524
10525 2006-11-15  Eric Blake  <ebb9@byu.net>
10526
10527         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
10528         the module dependency.
10529
10530 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10531             Bruno Haible  <bruno@clisp.org>
10532
10533         * gnulib-tool (func_create_testdir): Add license consistency check.
10534
10535 2006-11-15  Eric Blake  <ebb9@byu.net>
10536
10537         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
10538         random "(cached)" in configure output.
10539
10540 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10541
10542         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
10543         test for conforming inttypes.h is both announced and cached.
10544
10545         * MODULES.html.sh (seen_modules, seen_files): New variables.
10546         (func_module): Rewrite to use a few less gnulib-tool and sed
10547         invocations.  Avoid a couple of quadratic algorithms for ...
10548         (missed_modules, missed_files): ... these, with ...
10549         (func_append, func_tmpdir): ... these new functions, from
10550         gnulib-tool.  Analogously, install traps for cleanup.
10551
10552         * tests/test-gc.c (main): Remove unused variables.
10553         * tests/test-read-file.c: Include stdlib.h, for 'free'.
10554
10555 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
10556
10557         * modules/inttostr (License): Change to LGPL.
10558
10559 2006-11-14  Eric Blake  <ebb9@byu.net>
10560
10561         * modules/tempname (License): Change to LGPL.
10562
10563 2006-11-14  Eric Blake  <ebb9@byu.net>
10564
10565         * doc/functions.texi (Function Portability): *printf functions on
10566         Cygwin now understand all POSIX size specifiers.
10567
10568 2006-11-14  Bruno Haible  <bruno@clisp.org>
10569
10570         * modules/c-ctype (License): Change to LGPL.
10571
10572 2006-11-12  Bruno Haible  <bruno@clisp.org>
10573
10574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10575         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
10576         for GNOME libraries, for which the include files are installed in
10577         subdirectories of $prefix/include.
10578
10579 2006-11-12  Bruno Haible  <bruno@clisp.org>
10580
10581         * m4/lib-link.m4: Require at least autoconf-2.54.
10582         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
10583         name to underscores for the --with option.
10584
10585 2006-11-13  Bruno Haible  <bruno@clisp.org>
10586
10587         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
10588         the tests directory.
10589         Reported by Ralf Wildenhues.
10590
10591 2006-11-13  Bruno Haible  <bruno@clisp.org>
10592
10593         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
10594         (func_emit_initmacro_end): Undo the override here.
10595         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
10596         Works around the famous automake error in coreutils.
10597
10598 2006-11-13  Eric Blake  <ebb9@byu.net>
10599
10600         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
10601         element, not its node.
10602
10603 2006-11-12  Bruno Haible  <bruno@clisp.org>
10604
10605         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
10606         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
10607
10608 2006-11-12  Bruno Haible  <bruno@clisp.org>
10609
10610         * gnulib-tool: New option --local-symlink.
10611         (func_usage): Document it.
10612         (lsymbolic): New variable.
10613         (func_import, func_create_testdir): If --symlink was not specified,
10614         test whether --local-symlink was specified and the file comes from
10615         the local_gnulib_dir.
10616
10617 2006-11-12  Bruno Haible  <bruno@clisp.org>
10618
10619         * gnulib-tool (func_ln): New function.
10620         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
10621
10622 2006-11-12  Bruno Haible  <bruno@clisp.org>
10623
10624         Finish support for source files in subdirectories.
10625         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
10626         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
10627         AUTOMAKE_OPTIONS.
10628         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
10629
10630 2006-11-12  Bruno Haible  <bruno@clisp.org>
10631
10632         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10633         EXTRA_lib_SOURCES augmentation.
10634         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
10635
10636 2006-11-12  Jim Meyering  <jim@meyering.net>
10637
10638         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
10639         file descriptors.  This also averts a failure on systems with
10640         native openat support when a traversed directory lacks "x" access.
10641         * lib/fts_.h: Include "i-ring.h"
10642         (struct FTS) [fts_fd_ring]: New member.
10643         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
10644         (FCHDIR): Add parentheses.
10645         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
10646         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
10647         When descending, rather than simply closing the previous
10648         fts_cwd_fd value, push that file descriptor onto the ring.
10649         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
10650         (fts_open): Initialize the new fd_ring member.
10651         (fts_close): Clear the ring.
10652         (fts_safe_changedir): When possible, use our new fd_ring to skip
10653         the diropen and fstat and dev/ino comparison that would normally
10654         accompany a virtual `chdir ("..")'.
10655
10656         * modules/fts (Depends-on): Add i-ring.
10657         * modules/i-ring: New module.
10658         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
10659         * m4/i-ring.m4: New file.
10660
10661 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10662
10663         * gnulib-tool (func_create_testdir): Fix replacement of
10664         `build-aux' in configure.ac.  Run autotools in gltests
10665         subdirectory.
10666         (func_create_testdir, func_create_megatestdir, test): There is
10667         no need for '--force' in most autotool invocations in a new
10668         tree.  Actually fail the whole test if any of the tools, or the
10669         configure or make stages fail.
10670
10671         Sync from Automake.
10672         * build-aux/gnupload: Revert last change.  Add pointer to upload
10673         instructions of the GNU Maintenance Instructions.
10674         Suggestion by Karl Berry.
10675
10676 2006-11-10  Jim Meyering  <jim@meyering.net>
10677
10678         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
10679
10680 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10681
10682         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
10683         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
10684         (bind_textdomain_codeset) [! ENABLE_NLS]:
10685         Evaluate all the arguments.  That way, callers get compatible behavior
10686         if the arguments have side effects.  Also, it avoids some GCC
10687         diagnostics in some cases; Joel E. Denny reported problems when Bison
10688         was configured with --enable-gcc-warnigs.
10689
10690 2006-11-10  Jim Meyering  <jim@meyering.net>
10691
10692         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
10693         relevant options in CFLAGS (like -O, -fno-inline) are taken into
10694         account.
10695
10696 2006-11-10  Jim Meyering  <jim@meyering.net>
10697
10698         * modules/inline: New file/module.
10699         * modules/xalloc (Files): Remove m4/inline.m4.
10700         (Depends-on): Add inline, instead.
10701         * modules/oset: Likewise.
10702         * modules/list: Likewise.
10703
10704 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
10707         Problem reported by Matthew Woehlke.
10708
10709 2006-11-09  Bruno Haible  <bruno@clisp.org>
10710
10711         * lib/tempname.c (gen_tempname): Remove variant that invokes
10712         __gen_tempname.
10713         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
10714         __gen_tempname.
10715
10716 2006-11-08  Bruno Haible  <bruno@clisp.org>
10717
10718         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
10719         to 'yes' instead of 'cross-compiling'.
10720
10721 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
10722
10723         * lib/quotearg.h (quotearg_free): New decl.
10724         * lib/quotearg.c (quotearg_free): New function.
10725         (slot0, nslots, slotvec0, slotvec):
10726         Now file-scope so that quotearg_free can get at them.
10727
10728 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10729
10730         Sync from Automake.
10731         * build-aux/gnupload: Add missing 'gnu' to example URL.
10732         Report by Karl Berry.
10733
10734 2006-11-08  Bruno Haible  <bruno@clisp.org>
10735
10736         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
10737         Suggested by Paul Eggert.
10738
10739 2006-11-08  Jim Meyering  <jim@meyering.net>
10740
10741         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
10742         It's already included if !_LIBC.
10743         (fts_safe_changedir): Add a comment.
10744
10745 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
10748         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
10749         Matthew Woehlke.
10750
10751         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
10752         definitions up, to avoid colliding with change below.
10753         (static_inline) [HAVE_INLINE]: New macro.
10754         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
10755         Provide extern decls when !HAVE_INLINE.  Do not define unless
10756         static_inline is defined, either by us or by xmalloc.c.  Use
10757         static_inline rather than static inline.
10758         (XCALLOC): Optimize sizeof(T) = 1 case.
10759         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
10760
10761 2006-11-07  Bruno Haible  <bruno@clisp.org>
10762
10763         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
10764         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
10765         AC_C_INLINE.
10766         * modules/xalloc (Files): Add m4/inline.m4.
10767
10768 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10769
10770         * README: Fix typo.
10771         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
10772         (Miscellanous Notes): ...from this.
10773
10774 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10777         Mention that offsetof should be used instead of sizeof.
10778         From Bruno Haible.
10779
10780 2006-11-07  Bruno Haible  <bruno@clisp.org>
10781
10782         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
10783
10784 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10785
10786         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
10787         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
10788         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
10789         (gl_tree_add_before, gl_tree_add_after):
10790         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
10791         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
10792         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
10793         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
10794         (gl_linked_add_after, gl_linked_add_at): Likewise.
10795         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
10796         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
10797         (gl_tree_add_before, gl_tree_add_after): Likewise.
10798         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
10799         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
10800         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10801
10802 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10803
10804         * lib/gl_oset.h: Use C comment style, not C++ comment style.
10805
10806 2006-11-06  Bruno Haible  <bruno@clisp.org>
10807
10808         * m4/inline.m4: New file.
10809         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
10810         * modules/list (Files): Add m4/inline.m4.
10811         * modules/oset (Files): Likewise.
10812
10813 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10814
10815         * lib/idcache.c: Include <stddef.h>, for offsetof.
10816         (struct userid.name): Change from char * to a flexible array member.
10817         All uses changed.
10818         * modules/idcache (Depends-on): Add flexmember.
10819
10820         * MODULES.html.sh (Core language properties): New module flexmember.
10821         * modules/flexmember, m4/flexmember.m4: New files.
10822
10823         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
10824         inline functions that are identical with the old xnmalloc_inline,
10825         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
10826         that we can avoid some unnecessary integer multiplications and
10827         divisions in the common case where the element size is known at
10828         compile time.
10829         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
10830         needed.
10831         (xnboundedmalloc): Remove.
10832         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
10833         arguments, for consistency with rest of this header.
10834         (xcharalloc): Rewrite using XNMALLOC.
10835         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
10836         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
10837         versions have been moved to lib/xalloc.h and renamed to be the
10838         non-*_inline versions.
10839         (xmalloc, xrealloc): Implement without reference to the xnmalloc
10840         and xnrealloc functions, since those functions are now inline and
10841         now call us.
10842         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
10843         renaming described above.
10844         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
10845         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
10846         captures the dependency in AC_C_INLINE.
10847
10848         New module canonicalize-lgpl, proposed by Charles Wilson in
10849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
10850         with a few small changes afterwards.
10851         * MODULES.html.sh (File system functions): New module
10852         canonicalize-lgpl.
10853         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
10854         and canonicalize_file_name.
10855         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
10856         * modules/canonicalize-lgpl: New files.
10857
10858 2006-11-05  Bruno Haible  <bruno@clisp.org>
10859
10860         * gnulib-tool (func_import, func_create_testdir): Create directories
10861         also for files in subdirectories of lib/.
10862
10863 2006-11-05  Bruno Haible  <bruno@clisp.org>
10864
10865         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
10866         ANSI C compliant.
10867
10868 2006-11-03  Bruno Haible  <bruno@clisp.org>
10869
10870         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
10871         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
10872         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
10873         (xnboundedmalloc): New inline function.
10874         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
10875         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
10876         xmalloc.
10877         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
10878         xmalloc.
10879         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
10880         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
10881         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
10882         xmalloc.
10883         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
10884         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
10885         xmalloc.
10886         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
10887         gl_tree_add_after): Use XMALLOC instead of xmalloc.
10888         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
10889         xmalloc.
10890         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
10891         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
10892         gl_tree_add_after): Use XMALLOC instead of xmalloc.
10893         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
10894         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
10895         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
10896         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
10897
10898 2006-11-03  Bruno Haible  <bruno@clisp.org>
10899
10900         * lib/c-ctype.h [C++]: Define functions without name mangling.
10901         * lib/fwriteerror.h [C++]: Likewise.
10902         * lib/gcd.h [C++]: Likewise.
10903         * lib/linebreak.h [C++]: Likewise.
10904
10905 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10906
10907         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
10908         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
10909         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
10910         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
10911         Check for functions and headers just once.
10912         Check for declaration of canonicalize_file_name.
10913         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
10914
10915 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
10916
10917         * gnulib-tool (func_import): Fix typo in actioncmd.
10918
10919 2006-11-02  Bruno Haible  <bruno@clisp.org>
10920
10921         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
10922         newline sequence in the Makefile.am snippet as a space, like "make"
10923         does.
10924         Reported by Roger Persson <perrog@gmail.com>.
10925
10926 2006-11-01  Bruno Haible  <bruno@clisp.org>
10927
10928         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
10929         already declared in <string.h>.
10930         * lib/strcase.h (strncasecmp): Don't declare it if yes.
10931
10932 2006-11-01  Bruno Haible  <bruno@clisp.org>
10933
10934         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
10935         * lib/strcase.h: Include <string.h>.
10936         (strcasecmp): Define to rpl_strcasecmp here.
10937
10938 2006-11-01  Bruno Haible  <bruno@clisp.org>
10939
10940         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
10941
10942 2006-11-01  Eric Blake  <ebb9@byu.net>
10943
10944         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
10945
10946         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
10947
10948 2006-10-29  Bruno Haible  <bruno@clisp.org>
10949
10950         Make it compile in C++ mode.
10951         * lib/full-write.c (full_rw): Add a cast.
10952
10953 2006-11-01  Bruno Haible  <bruno@clisp.org>
10954
10955         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
10956         be POSIX compliant.
10957         Reported by Roger Persson <perrog@gmail.com>.
10958
10959 2006-11-01  Eric Blake  <ebb9@byu.net>
10960
10961         * lib/getopt_.h: Fix comments.
10962
10963 2006-10-31  Eric Blake  <ebb9@byu.net>
10964
10965         * modules/tmpdir (Depends-on): Add sys_stat.
10966         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
10967         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
10968         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
10969         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
10970         tempname.
10971
10972 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         Avoid some C++ diagnostics reported by Bruno Haible.
10975         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
10976         xmalloc.
10977         (quotearg_alloc): Use xcharalloc rather than xmalloc.
10978         (struct slotvec): Move to top level.
10979         (quotearg_n_options): Rewrite to avoid xmalloc.
10980         * lib/xalloc.h (xcharalloc): New function.
10981         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
10982         [defined __cplusplus]: Add function template that provides result
10983         type propagation.  This part of the change is from Bruno Haible.
10984
10985 2006-10-29  Bruno Haible  <bruno@clisp.org>
10986
10987         Make it compile in C++ mode.
10988         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
10989         * lib/strnlen1.c (strnlen1): Cast memchr result.
10990         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
10991         * lib/clean-temp.c (string_equals, string_hash): Add casts.
10992         (create_temp_dir): Rename local variable 'template'.
10993         (compile_csharp_using_sscli): Add cast.
10994         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
10995         * lib/findprog.c (find_in_path): Likewise.
10996         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
10997         * lib/wait-process.c (register_slave_subprocess): Likewise.
10998
10999 2006-10-22  Bruno Haible  <bruno@clisp.org>
11000
11001         * modules/tsearch: New file.
11002         * lib/tsearch.h: New file.
11003         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
11004         * m4/tsearch.m4: New file.
11005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
11006
11007 2006-10-29  Eric Blake  <ebb9@byu.net>
11008
11009         * lib/arcfour.c: Assume config.h.
11010         * lib/arctwo.c: Likewise.
11011         * lib/base64.c: Likewise.
11012         * lib/check-version.c: Likewise.
11013         * lib/crc.c: Likewise.
11014         * lib/des.c: Likewise.
11015         * lib/gc-gnulib.c: Likewise.
11016         * lib/gc-libgcrypt.c: Likewise.
11017         * lib/gc-pbkdf2-sha1.c: Likewise.
11018         * lib/getaddrinfo.c: Likewise.
11019         * lib/getdelim.c: Likewise.
11020         * lib/getline.c: Likewise.
11021         * lib/hmac-md5.c: Likewise.
11022         * lib/hmac-sha1.c: Likewise.
11023         * lib/iconvme.c: Likewise.
11024         * lib/md2.c: Likewise.
11025         * lib/md4.c: Likewise.
11026         * lib/memxor.c: Likewise.
11027         * lib/read-file.c: Likewise.
11028         * lib/readline.c: Likewise.
11029         * lib/rijndael-alg-fst.c: Likewise.
11030         * lib/rijndael-api-fst.c: Likewise.
11031         * lib/xgetdomainname.c: Likewise.
11032
11033 2006-10-28  Eric Blake  <ebb9@byu.net>
11034
11035         * lib/xstrndup.c: Assume config.h.
11036
11037 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11038
11039         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
11040         stat-macros.h is now for our own macros, whereas stat_h is for
11041         macros in the <sys/stat.h> name space.
11042         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
11043         (STAT_MACROS_H): Remove.
11044         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
11045         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
11046         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
11047         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
11048         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
11049         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
11050         Move these macros to ...
11051         * lib/stat_.h: here.  Don't include stat-macros.h.
11052         * lib/canonicalize.c: Don't include stat-macros.h.
11053         * lib/chown.c: Likewise.
11054         * lib/euidaccess.c: Likewise.
11055         * lib/file-type.c: Likewise.
11056         * lib/filemode.c: Likewise.
11057         * lib/glob.c: Likewise.
11058         * lib/isapipe.c: Likewise.
11059         * lib/lchown.c: Likewise.
11060         * lib/lstat.c: Likewise.
11061         * lib/mkdir-p.c: Likewise.
11062         * lib/rmdir.c: Likewise.
11063         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
11064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
11065         unless mkdir isn't declared, to speed up 'configure'.
11066         Always create sys/stat.h, since it's unlikely any real sys/stat.h
11067         would define all the S_* symbols.
11068         * modules/canonicalize (Depends-on):
11069         Depend on sys_stat, not stat-macros.
11070         * modules/chown: Likewise.
11071         * modules/euidaccess: Likewise.
11072         * modules/filemode: Likewise.
11073         * modules/file-type: Likewise.
11074         * modules/glob: Likewise.
11075         * modules/isapipe: Likewise.
11076         * modules/lchown: Likewise.
11077         * modules/lstat: Likewise.
11078         * modules/mkancesdirs: Likewise.
11079         * modules/rmdir: Likewise.
11080         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
11081         * modules/modechange: Likewise.
11082         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
11083         (configure.ac): Remove gl_STAT_MACROS.
11084         * modules/sys_stat (Depends-on): Remove stat-macros.
11085
11086 2006-10-27  Bruno Haible  <bruno@clisp.org>
11087
11088         * m4/signed.m4: Remove file.
11089         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
11090         invocation.
11091         * modules/vasnprintf (Files): Remove m4/signed.m4.
11092
11093 2006-10-27  Bruno Haible  <bruno@clisp.org>
11094
11095         Update to GNU gettext 0.16.
11096         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
11097         m4/inttypes-h.m4, m4/signed.m4.
11098         * m4/gettext.m4: Update to GNU gettext 0.16.
11099         * m4/intl.m4: New file, from GNU gettext.
11100         * m4/intldir.m4: New file, from GNU gettext.
11101         * config/srclist.txt: Update
11102
11103 2006-10-27  Eric Blake  <ebb9@byu.net>
11104
11105         * MODULES.html.sh: Document tempname.
11106         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
11107         dependencies.
11108         (Files): Move lib/tempname.c...
11109         * modules/tempname: ...to this new module.
11110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
11111         (gl_PREREQ_TEMPNAME): Move...
11112         * m4/tempname.m4: ...to this new file.
11113         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
11114         * modules/sys_stat (Depends-on): Add stat-macros.
11115         * lib/stat_.h (includes): Pick up stat macros.
11116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
11117         if stat macros are broken.
11118         * lib/tempname.c (includes): No need to include "stat-macros.h".
11119         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
11120         (direxists, __path_search) [!_LIBC]: Don't compile these in
11121         gnulib; the tmpdir module covers that.
11122         * lib/tempname.h: New file.
11123
11124 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11125
11126         * COPYING: Explain how gnulib-tool converts licence headers.
11127         Almost all wording by Eric Blake.
11128
11129 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11130
11131         * lib/mbchar.h (is_basic_table): Make read-only.
11132         * lib/mbchar.c (is_basic_table): Likewise.
11133         Reported by John Darrington.
11134
11135 2006-10-25  Bruno Haible  <bruno@clisp.org>
11136
11137         * lib/progname.h (set_program_name): Undefine before defining.
11138
11139 2006-10-25  Bruno Haible  <bruno@clisp.org>
11140
11141         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
11142         false for non-gcc C++ compilers.
11143         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11144
11145 2006-10-24  Bruno Haible  <bruno@clisp.org>
11146
11147         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
11148         iconv implementations like Irix iconv.
11149
11150 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11151
11152         * modules/vararrays: New file.
11153         * m4/vararrays.m4: New file, taken from diffutils.
11154         * MODULES.html.sh: New module vararrays.
11155
11156 2006-10-24  Karl Berry  <karl@gnu.org>
11157
11158         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
11159         Don't call GNU Unix.
11160
11161 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11162
11163         * users.txt: Add Libtool.
11164
11165         Sync from Libtool:
11166
11167         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11168
11169         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
11170         to gnulib's policy of including config.h unconditionally.
11171
11172 2006-10-24  Bruno Haible  <bruno@clisp.org>
11173
11174         * modules/wcwidth (Files): Add m4/wint_t.m4.
11175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
11176         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
11177
11178 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11179
11180         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
11181         to pacify GCC with some -W flags enabled.  Problem reported by
11182         Bruno Haible.
11183
11184 2006-10-24  Jim Meyering  <jim@meyering.net>
11185
11186         * MODULES.html.sh: Remove uinttostr.  It's not a module.
11187         Reported by Karl Berry.
11188
11189 2006-10-23  Bruno Haible  <bruno@clisp.org>
11190
11191         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
11192
11193 2006-10-24  Bruno Haible  <bruno@clisp.org>
11194
11195         * lib/gl_list.h: Use C comment style, not C++ comment style.
11196
11197 2006-10-23  Eric Blake  <ebb9@byu.net>
11198
11199         * lib/getaddrinfo.c (includes): Add missing include.
11200
11201 2006-10-23  Bruno Haible  <bruno@clisp.org>
11202             Paul Eggert  <eggert@cs.ucla.edu>
11203
11204         Ability to rename obstack_free.
11205         * lib/obstack.h (__obstack_free): New macro. Declare instead of
11206         obstack_free.
11207         (obstack_free): Invoke the __obstack_free macro.
11208         * lib/obstack.c (obstack_free): Use __obstack_free macro.
11209
11210 2006-10-23  Bruno Haible  <bruno@clisp.org>
11211             Paul Eggert  <eggert@cs.ucla.edu>
11212
11213         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
11214         __argc, __argv from the declaration. (They are defined as macros on
11215         mingw.)
11216
11217 2006-10-22  Bruno Haible  <bruno@clisp.org>
11218
11219         * doc/gnulib-intro.texi: New file.
11220         * doc/gnulib.texi: Include it.
11221
11222 2006-10-21  Bruno Haible  <bruno@clisp.org>
11223
11224         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
11225         "Introduction", "Miscellanous Notes", "Particular Modules".
11226
11227 2006-10-21  Bruno Haible  <bruno@clisp.org>
11228
11229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11230         Change mostlyclean-local rule to avoid sh syntax error from bash
11231         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
11232
11233 2006-10-23  Jim Meyering  <jim@meyering.net>
11234
11235         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
11236         in place of snprintf.
11237
11238         * modules/inttostr (Files): Add lib/uinttostr.c.
11239         * lib/uinttostr.c (inttostr): New file/function.
11240         * lib/inttostr.h (uinttostr): Declare.
11241         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
11242         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
11243         Add uinttostr.
11244         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
11245
11246 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
11247
11248         * lib/canonicalize.c (ELOOP): Define if not already defined.
11249         Problem reported by Bruno Haible in
11250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
11251
11252 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
11255         Problem reported by Perry Smith and Ville Laurikari.
11256
11257         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
11258         uses.
11259
11260 2006-10-19  Bruno Haible  <bruno@clisp.org>
11261
11262         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
11263         for mingw.
11264
11265 2006-10-19  Bruno Haible  <bruno@clisp.org>
11266
11267         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
11268         Needed for mingw.
11269
11270 2006-10-19  Bruno Haible  <bruno@clisp.org>
11271
11272         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
11273
11274 2006-10-19  Bruno Haible  <bruno@clisp.org>
11275
11276         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
11277         it.
11278
11279 2006-10-19  Bruno Haible  <bruno@clisp.org>
11280
11281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
11282         invocation.
11283
11284 2006-10-19  Bruno Haible  <bruno@clisp.org>
11285
11286         * gnulib-tool (func_create_testdir): Don't include ftruncate and
11287         mountlist by default.
11288
11289 2006-10-16  Bruno Haible  <bruno@clisp.org>
11290
11291         * lib/c-strstr.c: Include c-strstr.h.
11292
11293 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
11294
11295         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
11296         in a slash.
11297
11298 2006-10-18  Bruno Haible  <bruno@clisp.org>
11299
11300         * lib/lock.h [C++]: Wrap definitions in extern "C".
11301
11302 2006-10-18  Bruno Haible  <bruno@clisp.org>
11303
11304         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
11305         gl_LIBOBJS list.
11306
11307 2006-10-18  Bruno Haible  <bruno@clisp.org>
11308
11309         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
11310
11311 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11312
11313         * lib/xstrtol.h: Include gettext.h.
11314         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
11315         Problem reported by Eric Blake.
11316         * modules/xstrtol (Depends-on): Add gettext-h.
11317
11318 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
11319
11320         * lib/strftime.c (advance): New macro.
11321         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
11322         incomplete type, so you can't add 0 to it.  Problem and patch
11323         reported by Eelco Dolstra for dietlibc.
11324
11325 2006-10-18  Jim Meyering  <jim@meyering.net>
11326
11327         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
11328         type for a local, and rename it: s/up/user_proc/.
11329
11330 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
11331
11332         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
11333         READ_UTMP_USER_PROCESS.
11334         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
11335
11336 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
11337
11338         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
11339         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
11340
11341 2006-10-17  Eric Blake  <ebb9@byu.net>
11342
11343         * lib/sigprocmask.c (sigprocmask): Fix typo.
11344
11345         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
11346
11347         * modules/clean-temp (Makefile.am): Don't add to make output...
11348         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
11349         config.h.
11350
11351 2006-10-17  Bruno Haible  <bruno@clisp.org>
11352
11353         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
11354         differently if DEFAULT_TEXT_DOMAIN is set.
11355
11356 2006-10-16  Bruno Haible  <bruno@clisp.org>
11357
11358         * lib/clean-temp.c: Include fwriteerror.h.
11359
11360 2006-10-16  Bruno Haible  <bruno@clisp.org>
11361
11362         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
11363
11364 2006-10-16  Bruno Haible  <bruno@clisp.org>
11365
11366         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
11367         * lib/sigprocmask.h: Include <sys/types.h>.
11368         (sigset_t): Use the system's definition if present.
11369
11370 2006-10-17  Eric Blake  <ebb9@byu.net>
11371
11372         * lib/xvasprintf.c (includes): Assume config.h.
11373         * lib/xasprintf.c (includes): Likewise.
11374
11375 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11376
11377         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
11378         at least as wide as intmax_t.
11379
11380 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
11381
11382         (Imported from Automake.)
11383         * build-aux/gnupload: Update to version 1.1 of directive file.
11384
11385 2006-10-16  Eric Blake  <ebb9@byu.net>
11386
11387         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
11388         match Automake 1.10a.
11389
11390 2006-10-14  Bruno Haible  <bruno@clisp.org>
11391
11392         * modules/sigprocmask: New file.
11393         * lib/sigprocmask.h: New file.
11394         * lib/sigprocmask.c: New file.
11395         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
11396         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
11397         request sigprocmask.o.
11398         (gl_PREREQ_SIGPROCMASK): New macro.
11399         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
11400         (Depends-on): Add sigprocmask.
11401         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
11402         gt_SIGNALBLOCKING. Test for 'raise' only once.
11403         * lib/fatal-signal.c: Include sigprocmask.h.
11404         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
11405         unblock_fatal_signals): Define always.
11406         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11407         sigprocmask.
11408
11409 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11410
11411         Sync from Automake.
11412         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
11413         which incorrectly sets the mode of an existing destination
11414         directory.  In some cases the unpatched install-sh could do the
11415         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
11416         system.  We hope this is rare in practice, but it's clearly worth
11417         fixing.  Problem reported by Alex Unleashed in
11418         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
11419         Also, don't bother to check for -m bugs unless we're using -m;
11420         suggested by Stepan Kasal.
11421
11422 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11423
11424         Sync from Automake.
11425         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
11426         `-c' flag, so they appear at the same position as in %FASTDEP%
11427         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
11428         which ignores unknown options only after the first non-option.
11429         Bug report against M4 by Nelson H. F. Beebe.
11430
11431 2006-10-13  Jim Meyering  <jim@meyering.net>
11432
11433         Fix a bug in yesterday's change.
11434         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
11435         p->fts_statp->st_dev would be used uninitialized.
11436         Ensures that we always call fts_stat on the very first entry.
11437         Miklos Szeredi reported that find -xdev stopped working.
11438
11439 2006-10-12  Bruno Haible  <bruno@clisp.org>
11440
11441         * gnulib-tool (func_get_automake_snippet): Append an automatically
11442         computed EXTRA_DIST augmentation.
11443         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
11444         * modules/alloca-opt (Makefile.am): Likewise.
11445         * modules/allocsa (Makefile.am): Likewise.
11446         * modules/arcfour (Makefile.am): Likewise.
11447         * modules/arctwo (Makefile.am): Likewise.
11448         * modules/argmatch (Makefile.am): Likewise.
11449         * modules/argz (Makefile.am): Likewise.
11450         * modules/atexit (Makefile.am): Likewise.
11451         * modules/backupfile (Makefile.am): Likewise.
11452         * modules/byteswap (Makefile.am): Likewise.
11453         * modules/c-strtod (Makefile.am): Likewise.
11454         * modules/c-strtold (Makefile.am): Likewise.
11455         * modules/calloc (Makefile.am): Likewise.
11456         * modules/canon-host (Makefile.am): Likewise.
11457         * modules/canonicalize (Makefile.am): Likewise.
11458         * modules/chdir-long (Makefile.am): Likewise.
11459         * modules/chdir-safer (Makefile.am): Likewise.
11460         * modules/check-version (Makefile.am): Likewise.
11461         * modules/chown (Makefile.am): Likewise.
11462         * modules/cloexec (Makefile.am): Likewise.
11463         * modules/close-stream (Makefile.am): Likewise.
11464         * modules/closeout (Makefile.am): Likewise.
11465         * modules/crc (Makefile.am): Likewise.
11466         * modules/csharpexec (Makefile.am): Likewise.
11467         * modules/cycle-check (Makefile.am): Likewise.
11468         * modules/des (Makefile.am): Likewise.
11469         * modules/dev-ino (Makefile.am): Likewise.
11470         * modules/dirfd (Makefile.am): Likewise.
11471         * modules/dirname (Makefile.am): Likewise.
11472         * modules/dup2 (Makefile.am): Likewise.
11473         * modules/eealloc (Makefile.am): Likewise.
11474         * modules/error (Makefile.am): Likewise.
11475         * modules/euidaccess (Makefile.am): Likewise.
11476         * modules/exclude (Makefile.am): Likewise.
11477         * modules/exitfail (Makefile.am): Likewise.
11478         * modules/fcntl-safer (Makefile.am): Likewise.
11479         * modules/fcntl (Makefile.am): Likewise.
11480         * modules/file-type (Makefile.am): Likewise.
11481         * modules/fileblocks (Makefile.am): Likewise.
11482         * modules/filemode (Makefile.am): Likewise.
11483         * modules/filenamecat (Makefile.am): Likewise.
11484         * modules/fnmatch (Makefile.am): Likewise.
11485         * modules/fopen-safer (Makefile.am): Likewise.
11486         * modules/fpending (Makefile.am): Likewise.
11487         * modules/fprintftime (Makefile.am): Likewise.
11488         * modules/free (Makefile.am): Likewise.
11489         * modules/fsusage (Makefile.am): Likewise.
11490         * modules/ftruncate (Makefile.am): Likewise.
11491         * modules/fts (Makefile.am): Likewise.
11492         * modules/gc-arcfour (Makefile.am): Likewise.
11493         * modules/gc-des (Makefile.am): Likewise.
11494         * modules/gc-hmac-md5 (Makefile.am): Likewise.
11495         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
11496         * modules/gc-md4 (Makefile.am): Likewise.
11497         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
11498         * modules/gc-sha1 (Makefile.am): Likewise.
11499         * modules/gc (Makefile.am): Likewise.
11500         * modules/getaddrinfo (Makefile.am): Likewise.
11501         * modules/getcwd (Makefile.am): Likewise.
11502         * modules/getdelim (Makefile.am): Likewise.
11503         * modules/getdomainname (Makefile.am): Likewise.
11504         * modules/getgroups (Makefile.am): Likewise.
11505         * modules/gethostname (Makefile.am): Likewise.
11506         * modules/gethrxtime (Makefile.am): Likewise.
11507         * modules/getline (Makefile.am): Likewise.
11508         * modules/getloadavg (Makefile.am): Likewise.
11509         * modules/getlogin_r (Makefile.am): Likewise.
11510         * modules/getndelim2 (Makefile.am): Likewise.
11511         * modules/getopt (Makefile.am): Likewise.
11512         * modules/getpagesize (Makefile.am): Likewise.
11513         * modules/getpass-gnu (Makefile.am): Likewise.
11514         * modules/getpass (Makefile.am): Likewise.
11515         * modules/getsubopt (Makefile.am): Likewise.
11516         * modules/gettime (Makefile.am): Likewise.
11517         * modules/gettimeofday (Makefile.am): Likewise.
11518         * modules/getugroups (Makefile.am): Likewise.
11519         * modules/getusershell (Makefile.am): Likewise.
11520         * modules/glob (Makefile.am): Likewise.
11521         * modules/group-member (Makefile.am): Likewise.
11522         * modules/hard-locale (Makefile.am): Likewise.
11523         * modules/hash (Makefile.am): Likewise.
11524         * modules/hmac-md5 (Makefile.am): Likewise.
11525         * modules/hmac-sha1 (Makefile.am): Likewise.
11526         * modules/human (Makefile.am): Likewise.
11527         * modules/idcache (Makefile.am): Likewise.
11528         * modules/imaxabs (Makefile.am): Likewise.
11529         * modules/imaxdiv (Makefile.am): Likewise.
11530         * modules/inet_ntop (Makefile.am): Likewise.
11531         * modules/inet_pton (Makefile.am): Likewise.
11532         * modules/intprops (Makefile.am): Likewise.
11533         * modules/inttostr (Makefile.am): Likewise.
11534         * modules/inttypes (Makefile.am): Likewise.
11535         * modules/isapipe (Makefile.am): Likewise.
11536         * modules/javaversion (Makefile.am): Likewise.
11537         * modules/lchmod (Makefile.am): Likewise.
11538         * modules/lchown (Makefile.am): Likewise.
11539         * modules/localcharset (Makefile.am): Likewise.
11540         * modules/long-options (Makefile.am): Likewise.
11541         * modules/lstat (Makefile.am): Likewise.
11542         * modules/malloc (Makefile.am): Likewise.
11543         * modules/mathl (Makefile.am): Likewise.
11544         * modules/mbchar (Makefile.am): Likewise.
11545         * modules/md2 (Makefile.am): Likewise.
11546         * modules/md4 (Makefile.am): Likewise.
11547         * modules/md5 (Makefile.am): Likewise.
11548         * modules/memcasecmp (Makefile.am): Likewise.
11549         * modules/memchr (Makefile.am): Likewise.
11550         * modules/memcmp (Makefile.am): Likewise.
11551         * modules/memcoll (Makefile.am): Likewise.
11552         * modules/memcpy (Makefile.am): Likewise.
11553         * modules/memmem (Makefile.am): Likewise.
11554         * modules/memmove (Makefile.am): Likewise.
11555         * modules/mempcpy (Makefile.am): Likewise.
11556         * modules/memrchr (Makefile.am): Likewise.
11557         * modules/memset (Makefile.am): Likewise.
11558         * modules/memxor (Makefile.am): Likewise.
11559         * modules/mkancesdirs (Makefile.am): Likewise.
11560         * modules/mkdir-p (Makefile.am): Likewise.
11561         * modules/mkdir (Makefile.am): Likewise.
11562         * modules/mkdtemp (Makefile.am): Likewise.
11563         * modules/mkstemp (Makefile.am): Likewise.
11564         * modules/mktime (Makefile.am): Likewise.
11565         * modules/modechange (Makefile.am): Likewise.
11566         * modules/mountlist (Makefile.am): Likewise.
11567         * modules/nanosleep (Makefile.am): Likewise.
11568         * modules/obstack (Makefile.am): Likewise.
11569         * modules/openat (Makefile.am): Likewise.
11570         * modules/pagealign_alloc (Makefile.am): Likewise.
11571         * modules/pathmax (Makefile.am): Likewise.
11572         * modules/physmem (Makefile.am): Likewise.
11573         * modules/poll (Makefile.am): Likewise.
11574         * modules/posixtm (Makefile.am): Likewise.
11575         * modules/posixver (Makefile.am): Likewise.
11576         * modules/putenv (Makefile.am): Likewise.
11577         * modules/quote (Makefile.am): Likewise.
11578         * modules/quotearg (Makefile.am): Likewise.
11579         * modules/raise (Makefile.am): Likewise.
11580         * modules/read-file (Makefile.am): Likewise.
11581         * modules/readline (Makefile.am): Likewise.
11582         * modules/readlink (Makefile.am): Likewise.
11583         * modules/readtokens (Makefile.am): Likewise.
11584         * modules/readutmp (Makefile.am): Likewise.
11585         * modules/realloc (Makefile.am): Likewise.
11586         * modules/regex (Makefile.am): Likewise.
11587         * modules/rename-dest-slash (Makefile.am): Likewise.
11588         * modules/rename (Makefile.am): Likewise.
11589         * modules/rijndael (Makefile.am): Likewise.
11590         * modules/rmdir (Makefile.am): Likewise.
11591         * modules/rpmatch (Makefile.am): Likewise.
11592         * modules/safe-read (Makefile.am): Likewise.
11593         * modules/safe-write (Makefile.am): Likewise.
11594         * modules/same-inode (Makefile.am): Likewise.
11595         * modules/same (Makefile.am): Likewise.
11596         * modules/save-cwd (Makefile.am): Likewise.
11597         * modules/savedir (Makefile.am): Likewise.
11598         * modules/setenv (Makefile.am): Likewise.
11599         * modules/settime (Makefile.am): Likewise.
11600         * modules/sha1 (Makefile.am): Likewise.
11601         * modules/sig2str (Makefile.am): Likewise.
11602         * modules/snprintf (Makefile.am): Likewise.
11603         * modules/stat-macros (Makefile.am): Likewise.
11604         * modules/stat-time (Makefile.am): Likewise.
11605         * modules/stdbool (Makefile.am): Likewise.
11606         * modules/stdint (Makefile.am): Likewise.
11607         * modules/stdlib-safer (Makefile.am): Likewise.
11608         * modules/stpcpy (Makefile.am): Likewise.
11609         * modules/stpncpy (Makefile.am): Likewise.
11610         * modules/strcase (Makefile.am): Likewise.
11611         * modules/strcasestr (Makefile.am): Likewise.
11612         * modules/strchrnul (Makefile.am): Likewise.
11613         * modules/strcspn (Makefile.am): Likewise.
11614         * modules/strdup (Makefile.am): Likewise.
11615         * modules/strerror (Makefile.am): Likewise.
11616         * modules/strftime (Makefile.am): Likewise.
11617         * modules/strndup (Makefile.am): Likewise.
11618         * modules/strnlen (Makefile.am): Likewise.
11619         * modules/strpbrk (Makefile.am): Likewise.
11620         * modules/strsep (Makefile.am): Likewise.
11621         * modules/strstr (Makefile.am): Likewise.
11622         * modules/strtod (Makefile.am): Likewise.
11623         * modules/strtoimax (Makefile.am): Likewise.
11624         * modules/strtok_r (Makefile.am): Likewise.
11625         * modules/strtol (Makefile.am): Likewise.
11626         * modules/strtoll (Makefile.am): Likewise.
11627         * modules/strtoul (Makefile.am): Likewise.
11628         * modules/strtoull (Makefile.am): Likewise.
11629         * modules/strtoumax (Makefile.am): Likewise.
11630         * modules/strverscmp (Makefile.am): Likewise.
11631         * modules/sys_socket (Makefile.am): Likewise.
11632         * modules/sys_stat (Makefile.am): Likewise.
11633         * modules/sysexits (Makefile.am): Likewise.
11634         * modules/time_r (Makefile.am): Likewise.
11635         * modules/timegm (Makefile.am): Likewise.
11636         * modules/timespec (Makefile.am): Likewise.
11637         * modules/tmpfile-safer (Makefile.am): Likewise.
11638         * modules/trim (Makefile.am): Likewise.
11639         * modules/unistd-safer (Makefile.am): Likewise.
11640         * modules/unlinkdir (Makefile.am): Likewise.
11641         * modules/unlocked-io (Makefile.am): Likewise.
11642         * modules/userspec (Makefile.am): Likewise.
11643         * modules/utime (Makefile.am): Likewise.
11644         * modules/utimecmp (Makefile.am): Likewise.
11645         * modules/utimens (Makefile.am): Likewise.
11646         * modules/vasnprintf (Makefile.am): Likewise.
11647         * modules/vasprintf (Makefile.am): Likewise.
11648         * modules/vsnprintf (Makefile.am): Likewise.
11649         * modules/xalloc (Makefile.am): Likewise.
11650         * modules/xgetcwd (Makefile.am): Likewise.
11651         * modules/xnanosleep (Makefile.am): Likewise.
11652         * modules/xreadlink (Makefile.am): Likewise.
11653         * modules/xstrtod (Makefile.am): Likewise.
11654         * modules/xstrtol (Makefile.am): Likewise.
11655         * modules/xstrtold (Makefile.am): Likewise.
11656         * modules/yesno (Makefile.am): Likewise.
11657         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
11658
11659 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11660
11661         * modules/error (Makefile.am): Distribute files through
11662         EXTRA_DIST, not lib_SOURCES.
11663
11664 2006-10-12  Eric Blake  <ebb9@byu.net>
11665
11666         * modules/error (Makefile.am): Distribute files in /lib.
11667         * modules/obstack (Makefile.am): Likewise.
11668
11669 2006-10-12  Bruno Haible  <bruno@clisp.org>
11670
11671         * modules/acl (Makefile.am): Distribute all files in lib/ through
11672         EXTRA_DIST.
11673         * modules/arcfour (Makefile.am): Likewise.
11674         * modules/arctwo (Makefile.am): Likewise.
11675         * modules/argmatch (Makefile.am): Likewise.
11676         * modules/argz (Makefile.am): Likewise.
11677         * modules/atexit (Makefile.am): Likewise.
11678         * modules/backupfile (Makefile.am): Likewise.
11679         * modules/c-strtod (Makefile.am): Likewise.
11680         * modules/c-strtold (Makefile.am): Likewise.
11681         * modules/calloc (Makefile.am): Likewise.
11682         * modules/canon-host (Makefile.am): Likewise.
11683         * modules/canonicalize (Makefile.am): Likewise.
11684         * modules/chdir-long (Makefile.am): Likewise.
11685         * modules/chdir-safer (Makefile.am): Likewise.
11686         * modules/check-version (Makefile.am): Likewise.
11687         * modules/chown (Makefile.am): Likewise.
11688         * modules/cloexec (Makefile.am): Likewise.
11689         * modules/close-stream (Makefile.am): Likewise.
11690         * modules/closeout (Makefile.am): Likewise.
11691         * modules/crc (Makefile.am): Likewise.
11692         * modules/cycle-check (Makefile.am): Likewise.
11693         * modules/des (Makefile.am): Likewise.
11694         * modules/dirfd (Makefile.am): Likewise.
11695         * modules/dirname (Makefile.am): Likewise.
11696         * modules/dup2 (Makefile.am): Likewise.
11697         * modules/euidaccess (Makefile.am): Likewise.
11698         * modules/exclude (Makefile.am): Likewise.
11699         * modules/exitfail (Makefile.am): Likewise.
11700         * modules/fcntl-safer (Makefile.am): Likewise.
11701         * modules/file-type (Makefile.am): Likewise.
11702         * modules/fileblocks (Makefile.am): Likewise.
11703         * modules/filemode (Makefile.am): Likewise.
11704         * modules/filenamecat (Makefile.am): Likewise.
11705         * modules/fnmatch (Makefile.am): Likewise.
11706         * modules/fopen-safer (Makefile.am): Likewise.
11707         * modules/fpending (Makefile.am): Likewise.
11708         * modules/fprintftime (Makefile.am): Likewise.
11709         * modules/free (Makefile.am): Likewise.
11710         * modules/fsusage (Makefile.am): Likewise.
11711         * modules/ftruncate (Makefile.am): Likewise.
11712         * modules/fts (Makefile.am): Likewise.
11713         * modules/gc (Makefile.am): Likewise.
11714         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
11715         * modules/getaddrinfo (Makefile.am): Likewise.
11716         * modules/getcwd (Makefile.am): Likewise.
11717         * modules/getdelim (Makefile.am): Likewise.
11718         * modules/getdomainname (Makefile.am): Likewise.
11719         * modules/getgroups (Makefile.am): Likewise.
11720         * modules/gethostname (Makefile.am): Likewise.
11721         * modules/gethrxtime (Makefile.am): Likewise.
11722         * modules/getline (Makefile.am): Likewise.
11723         * modules/getloadavg (Makefile.am): Likewise.
11724         * modules/getlogin_r (Makefile.am): Likewise.
11725         * modules/getopt (Makefile.am): Likewise.
11726         * modules/getpass (Makefile.am): Likewise.
11727         * modules/getpass-gnu (Makefile.am): Likewise.
11728         * modules/getsubopt (Makefile.am): Likewise.
11729         * modules/gettime (Makefile.am): Likewise.
11730         * modules/gettimeofday (Makefile.am): Likewise.
11731         * modules/getugroups (Makefile.am): Likewise.
11732         * modules/getusershell (Makefile.am): Likewise.
11733         * modules/glob (Makefile.am): Likewise.
11734         * modules/group-member (Makefile.am): Likewise.
11735         * modules/hard-locale (Makefile.am): Likewise.
11736         * modules/hash (Makefile.am): Likewise.
11737         * modules/hmac-md5 (Makefile.am): Likewise.
11738         * modules/hmac-sha1 (Makefile.am): Likewise.
11739         * modules/human (Makefile.am): Likewise.
11740         * modules/idcache (Makefile.am): Likewise.
11741         * modules/imaxabs (Makefile.am): Likewise.
11742         * modules/imaxdiv (Makefile.am): Likewise.
11743         * modules/inet_ntop (Makefile.am): Likewise.
11744         * modules/inet_pton (Makefile.am): Likewise.
11745         * modules/inttostr (Makefile.am): Likewise.
11746         * modules/isapipe (Makefile.am): Likewise.
11747         * modules/lchown (Makefile.am): Likewise.
11748         * modules/long-options (Makefile.am): Likewise.
11749         * modules/lstat (Makefile.am): Likewise.
11750         * modules/malloc (Makefile.am): Likewise.
11751         * modules/mathl (Makefile.am): Likewise.
11752         * modules/mbchar (Makefile.am): Likewise.
11753         * modules/md2 (Makefile.am): Likewise.
11754         * modules/md4 (Makefile.am): Likewise.
11755         * modules/md5 (Makefile.am): Likewise.
11756         * modules/memcasecmp (Makefile.am): Likewise.
11757         * modules/memchr (Makefile.am): Likewise.
11758         * modules/memcmp (Makefile.am): Likewise.
11759         * modules/memcoll (Makefile.am): Likewise.
11760         * modules/memcpy (Makefile.am): Likewise.
11761         * modules/memmem (Makefile.am): Likewise.
11762         * modules/memmove (Makefile.am): Likewise.
11763         * modules/mempcpy (Makefile.am): Likewise.
11764         * modules/memrchr (Makefile.am): Likewise.
11765         * modules/memset (Makefile.am): Likewise.
11766         * modules/memxor (Makefile.am): Likewise.
11767         * modules/mkancesdirs (Makefile.am): Likewise.
11768         * modules/mkdir (Makefile.am): Likewise.
11769         * modules/mkdir-p (Makefile.am): Likewise.
11770         * modules/mkdtemp (Makefile.am): Likewise.
11771         * modules/mkstemp (Makefile.am): Likewise.
11772         * modules/mktime (Makefile.am): Likewise.
11773         * modules/modechange (Makefile.am): Likewise.
11774         * modules/mountlist (Makefile.am): Likewise.
11775         * modules/nanosleep (Makefile.am): Likewise.
11776         * modules/openat (Makefile.am): Likewise.
11777         * modules/pagealign_alloc (Makefile.am): Likewise.
11778         * modules/physmem (Makefile.am): Likewise.
11779         * modules/poll (Makefile.am): Likewise.
11780         * modules/posixtm (Makefile.am): Likewise.
11781         * modules/posixver (Makefile.am): Likewise.
11782         * modules/putenv (Makefile.am): Likewise.
11783         * modules/quote (Makefile.am): Likewise.
11784         * modules/quotearg (Makefile.am): Likewise.
11785         * modules/raise (Makefile.am): Likewise.
11786         * modules/read-file (Makefile.am): Likewise.
11787         * modules/readline (Makefile.am): Likewise.
11788         * modules/readlink (Makefile.am): Likewise.
11789         * modules/readtokens (Makefile.am): Likewise.
11790         * modules/readutmp (Makefile.am): Likewise.
11791         * modules/realloc (Makefile.am): Likewise.
11792         * modules/regex (Makefile.am): Likewise.
11793         * modules/rename (Makefile.am): Likewise.
11794         * modules/rename-dest-slash (Makefile.am): Likewise.
11795         * modules/rijndael (Makefile.am): Likewise.
11796         * modules/rmdir (Makefile.am): Likewise.
11797         * modules/rpmatch (Makefile.am): Likewise.
11798         * modules/safe-read (Makefile.am): Likewise.
11799         * modules/safe-write (Makefile.am): Likewise.
11800         * modules/same (Makefile.am): Likewise.
11801         * modules/save-cwd (Makefile.am): Likewise.
11802         * modules/savedir (Makefile.am): Likewise.
11803         * modules/setenv (Makefile.am): Likewise.
11804         * modules/settime (Makefile.am): Likewise.
11805         * modules/sha1 (Makefile.am): Likewise.
11806         * modules/sig2str (Makefile.am): Likewise.
11807         * modules/snprintf (Makefile.am): Likewise.
11808         * modules/stdlib-safer (Makefile.am): Likewise.
11809         * modules/stpcpy (Makefile.am): Likewise.
11810         * modules/stpncpy (Makefile.am): Likewise.
11811         * modules/strcase (Makefile.am): Likewise.
11812         * modules/strcasestr (Makefile.am): Likewise.
11813         * modules/strchrnul (Makefile.am): Likewise.
11814         * modules/strcspn (Makefile.am): Likewise.
11815         * modules/strdup (Makefile.am): Likewise.
11816         * modules/strerror (Makefile.am): Likewise.
11817         * modules/strftime (Makefile.am): Likewise.
11818         * modules/strndup (Makefile.am): Likewise.
11819         * modules/strnlen (Makefile.am): Likewise.
11820         * modules/strpbrk (Makefile.am): Likewise.
11821         * modules/strsep (Makefile.am): Likewise.
11822         * modules/strstr (Makefile.am): Likewise.
11823         * modules/strtod (Makefile.am): Likewise.
11824         * modules/strtoimax (Makefile.am): Likewise.
11825         * modules/strtok_r (Makefile.am): Likewise.
11826         * modules/strtol (Makefile.am): Likewise.
11827         * modules/strtoll (Makefile.am): Likewise.
11828         * modules/strtoul (Makefile.am): Likewise.
11829         * modules/strtoull (Makefile.am): Likewise.
11830         * modules/strtoumax (Makefile.am): Likewise.
11831         * modules/strverscmp (Makefile.am): Likewise.
11832         * modules/time_r (Makefile.am): Likewise.
11833         * modules/timegm (Makefile.am): Likewise.
11834         * modules/tmpfile-safer (Makefile.am): Likewise.
11835         * modules/unistd-safer (Makefile.am): Likewise.
11836         * modules/unlinkdir (Makefile.am): Likewise.
11837         * modules/userspec (Makefile.am): Likewise.
11838         * modules/utime (Makefile.am): Likewise.
11839         * modules/utimecmp (Makefile.am): Likewise.
11840         * modules/utimens (Makefile.am): Likewise.
11841         * modules/vasnprintf (Makefile.am): Likewise.
11842         * modules/vasprintf (Makefile.am): Likewise.
11843         * modules/vsnprintf (Makefile.am): Likewise.
11844         * modules/xalloc (Makefile.am): Likewise.
11845         * modules/xgetcwd (Makefile.am): Likewise.
11846         * modules/xnanosleep (Makefile.am): Likewise.
11847         * modules/xreadlink (Makefile.am): Likewise.
11848         * modules/xstrtod (Makefile.am): Likewise.
11849         * modules/xstrtol (Makefile.am): Likewise.
11850         * modules/xstrtold (Makefile.am): Likewise.
11851         * modules/yesno (Makefile.am): Likewise.
11852
11853 2006-10-12  Jim Meyering  <jim@meyering.net>
11854
11855         * m4/getloadavg.m4: Revert the change below.
11856
11857         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
11858         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
11859         fail with a symlink, which is what coreutils' ./bootstrap now
11860         creates by default.
11861
11862 2006-10-12  Bruno Haible  <bruno@clisp.org>
11863
11864         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
11865         mingw.
11866         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
11867         MSVC and mingw explicitly.
11868
11869 2006-10-11  Simon Josefsson  <jas@extundo.com>
11870             Bruno Haible  <bruno@clisp.org>
11871
11872         Add support for multiple gnulib-tool invocations in the scope of a
11873         single configure.ac file.
11874         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
11875         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
11876         with the same contents as the _LIBADD variable.
11877         (func_emit_initmacro_start, func_emit_initmacro_end,
11878         func_emit_initmacro_done): New functions.
11879         (func_import, func_create_testdir): Invoke them. Allow the identifiers
11880         gl_LIBOBJS and gl_LTLIBOBJS.
11881
11882 2006-10-11  Bruno Haible  <bruno@clisp.org>
11883
11884         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
11885         (func_create_testdir): Don't create po/Makefile.am, don't invoke
11886         autoreconf. Instead, invoke autopoint explicitly but move back the
11887         *.m4 files from gnulib.
11888
11889 2006-10-11  Bruno Haible  <bruno@clisp.org>
11890
11891         * gnulib-tool (func_usage): Make module names after --create-testdir
11892         optional.
11893         (func_create_testdir): If no module was specified, use nearly all
11894         modules.
11895
11896 2006-10-12  Jim Meyering  <jim@meyering.net>
11897
11898         Big performance improvement for fts-based tools that use FTS_NOSTAT.
11899         Avoid spurious inode-mismatch problems on non-POSIX file systems.
11900         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
11901         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
11902         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
11903         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
11904         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
11905         (fts_set_stat_required): New function.
11906         (fts_open): Defer the calls to fts_stat, if possible or requested.
11907         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
11908         into fts_stat itself.
11909         (fts_read): Perform any required (deferred) fts_stat call.
11910         (fts_build): Likewise, for the directory we're about to open and read.
11911         In the readdir loop, carefully decide whether each entry will require
11912         an eventual call to fts_stat, using dirent.d_type info if available.
11913         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
11914         a command line argument into this function.  Update all callers.
11915         Map a return value of FTS_DOT to FTS_D for a command line argument.
11916         * modules/fts (Depends-on): Add d-type.  Alphabetize.
11917         Thanks to Miklos Szeredi for his tenacity and for the initial
11918         bug report about "find" failing on a FUSE-based file system.
11919
11920         * lib/fts.c (fts_open): Use consistent indentation.
11921
11922 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11923
11924         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
11925         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
11926         reported by Jim Meyering.  All uses of cache variables renamed
11927         to match Autoconf's.
11928         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
11929         the other one.
11930
11931         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11932         Fix misspelling in diagnostic.
11933
11934 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11935
11936         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
11937         defined.  Problem reported by Matthew Woehlke.
11938
11939         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
11940         Add support for Tandem NonStop R series.
11941         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
11942         Use new macro.
11943
11944         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
11945         (has_trailing_slash): Omit size arg; all callers changed.
11946         Omit 'inline', since it doesn't help performance and we'd
11947         need to configure it.
11948         Don't count //, ///, etc. as having a trailing slash.
11949         As a side effect, this removes a C99ism reported by Matthew Woehlke.
11950         (rpl_rename_dest_slash): On failure, use rename's errno rather
11951         than (in some cases) an incorrect or junk errno.
11952         Simplify code by removing need to compute length; this does
11953         cause it to make two passes instead of one over the file name,
11954         but it's worth it.
11955
11956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
11957         change, since Autoconf's version may no longer be appropriate now
11958         that we are using CVS Autoconf's version.  Add support for Tandem.
11959
11960 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11961             Bruno Haible  <bruno@clisp.org>
11962
11963         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
11964         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
11965         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
11966         gl_AC_TYPE_LONG_LONG.
11967
11968         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
11969         instead of HAVE_LONG_LONG.
11970         * lib/printf-args.c (printf_fetchargs): Likewise.
11971         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11972         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
11974         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
11975         gl_AC_TYPE_LONG_LONG.
11976
11977 2006-10-11  Bruno Haible  <bruno@clisp.org>
11978
11979         * m4/longlong.m4: Add comments.
11980         * m4/ulonglong.m4: Likewise.
11981
11982 2006-10-10  Bruno Haible  <bruno@clisp.org>
11983
11984         Make it possible to #define stpcpy, strdup to aliases.
11985         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
11986         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
11987
11988 2006-10-10  Bruno Haible  <bruno@clisp.org>
11989
11990         Make it possible to #define gcd to an alias.
11991         * lib/gcd.c: Include config.h.
11992
11993 2006-10-10  Bruno Haible  <bruno@clisp.org>
11994
11995         Make it possible to #define c_isascii to an alias.
11996         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
11997         defined. Undefine the macros before defining them, to avoid gcc
11998         warnings.
11999         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
12000         define NO_C_CTYPE_MACROS early.
12001
12002 2006-10-10  Bruno Haible  <bruno@clisp.org>
12003
12004         Make it possible to #define set_program_name to an alias.
12005         * lib/progname.c: Don't undefine set_program_name; instead, undefine
12006         ENABLE_RELOCATABLE early.
12007
12008 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12009
12010         Port to Tandem NSK OSS, which has 64-bit signed int but at most
12011         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
12012         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
12013         More generally, don't assume that 64-bit signed int is available
12014         if unsigned int is, and vice versa.
12015         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
12016         unsigned symbols, not on their signed counterparts.
12017         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
12018         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
12019         (UINT64_C, UINTMAX_C):
12020         Likewise.
12021         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
12022         unsigned counterparts.
12023         (Have_long_long, Unsigned): New macros.
12024         (Int): Renamed from INT.
12025         (strtoimax): Use the new macros.
12026         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
12027         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
12028         * modules/inttypes (inttypes.h): Substitute
12029         HAVE_UNSIGNED_LONG_LONG_INT.
12030         * modules/stdint (stdint.h): Likewise.
12031         (Files): Add m4/ulonglong.m4.
12032
12033 2006-10-10  Bruno Haible  <bruno@clisp.org>
12034
12035         Fix a gcc -Wshadow warning.
12036         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
12037         to 'bucket'.
12038         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
12039         gl_linked_indexof_from_to): Likewise.
12040         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
12041         Likewise.
12042         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
12043         Likewise.
12044         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
12045         Reported by Eric Blake.
12046
12047 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12048
12049         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
12050         for NetBSD.  Problem reported by Bruno Haible.
12051
12052 2006-10-09  Jim Meyering  <jim@meyering.net>
12053
12054         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
12055         Patch from Bruno Haible.
12056
12057 2006-10-09  Jim Meyering  <jim@meyering.net>
12058
12059         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
12060         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
12061         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
12062
12063 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12064
12065         Don't include <config.h> twice; this doesn't work in some cases,
12066         e.g., when config.h has "#define intmax_t long long int" and
12067         we include <config.h>, <inttypes.h>, <config.h> in that order.
12068         Problem reported by Matthew Woehlke in:
12069         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
12070         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
12071         * lib/fts-cycle.c: Don't include config.h.
12072         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
12073         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
12074         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
12075         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
12076         inttypes.h.
12077         * lib/xstrtoumax.c: Likewise.
12078         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
12079         __strtol and the like, so that this module is more like its siblings.
12080         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
12081         Remove; no longer needed now that we assume gnulib inttypes.h.
12082
12083 2006-10-08  Bruno Haible  <bruno@clisp.org>
12084
12085         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
12086         option.
12087
12088 2006-10-07  Jim Meyering  <jim@meyering.net>
12089
12090         * modules/inttypes (inttypes.h): Revert what seems to have been
12091         an inadvertent part of today's change: use "|", not "/" in the
12092         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
12093
12094 2006-10-07  Bruno Haible  <bruno@clisp.org>
12095
12096         * modules/sublist: New file.
12097
12098 2006-10-07  Bruno Haible  <bruno@clisp.org>
12099
12100         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
12101         * modules/argz (argz.h): Likewise.
12102         * modules/arpa_inet (arpa/inet.h): Likewise.
12103         * modules/byteswap (byteswap.h): Likewise.
12104         * modules/configmake (configmake.h): Likewise.
12105         * modules/fcntl (fcntl.h): Likewise.
12106         * modules/fnmatch (fnmatch.h): Likewise.
12107         * modules/getopt (getopt.h): Likewise.
12108         * modules/glob (glob.h): Likewise.
12109         * modules/inttypes (inttypes.h): Likewise.
12110         * modules/netinet_in (netinet/in.h): Likewise.
12111         * modules/poll (poll.h): Likewise.
12112         * modules/stdbool (stdbool.h): Likewise.
12113         * modules/stdint (stdint.h): Likewise.
12114         * modules/sys_select (sys/select.h): Likewise.
12115         * modules/sys_socket (sys/socket.h): Likewise.
12116         * modules/sys_stat (sys/stat.h): Likewise.
12117         * modules/sysexits (sysexits.h): Likewise.
12118         * modules/unistd (unistd.h): Likewise.
12119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12120         Add a "DO NOT EDIT" comment to the generated file.
12121         (func_import): Likewise for gnulib-comp.m4.
12122
12123 2006-10-07  Bruno Haible  <bruno@clisp.org>
12124
12125         * lib/gl_sublist.h: New file.
12126         * lib/gl_sublist.c: New file.
12127
12128 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12129
12130         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
12131         name (relative to the original working directory) and the file
12132         name component (relative to the temporary working directory).  All
12133         callers changed.
12134         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
12135         * lib/mkdir-p.c (make_dir_parents): Likewise.
12136         * lib/mkdir-p.h (make_dir_parents): Likewise.
12137
12138 2006-10-06  Eric Blake  <ebb9@byu.net>
12139
12140         Define several macros for use by the clean-temp module.
12141         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
12142         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
12143         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
12144
12145         * lib/clean-temp.h (close_stream_temp): New declaration.
12146         * lib/clean-temp.c (includes): Pull in headers according to what
12147         other modules are in use.
12148         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
12149
12150 2006-10-06  Bruno Haible  <bruno@clisp.org>
12151
12152         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
12153         instead of fopen, fwriteerror.
12154
12155 2006-10-06  Bruno Haible  <bruno@clisp.org>
12156
12157         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
12158         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
12159         int.
12160         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
12161         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
12162         Return an error indicator.
12163         Suggested by Eric Blake.
12164
12165 2006-10-06  Bruno Haible  <bruno@clisp.org>
12166
12167         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
12168         Reported by Eric Blake.
12169
12170 2006-10-06  Bruno Haible  <bruno@clisp.org>
12171
12172         * modules/closeout (Description): Mention stderr too.
12173
12174 2006-10-06  Bruno Haible  <bruno@clisp.org>
12175         and Paul Eggert  <eggert@cs.ucla.edu>
12176
12177         * lib/closeout.c (close_stdout): Also close stderr.
12178         * lib/closeout.h: Update comment.
12179
12180 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12181
12182         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
12183         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
12184         * lib/dirchownmod.c: Include lchown.h.
12185         * lib/lchown.c: Don't include files that lchown.h now includes.
12186         Don't declare chown, since lchown.h now does that.
12187         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
12188         (lchown): Define to rpl_chown if lchown is declared but
12189         does not exist.  Declare using a prototype if lchown is not
12190         declared.  Add a copyright notice.
12191         * lib/mkstemp.h: Include <unistd.h>.
12192         * lib/openat.c: Include lchown.h.
12193
12194         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
12195         we now test for that separately.
12196         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
12197         rather than O_NOFOLLOW, when testing whether it's possible to
12198         avoid a race condition reliably.
12199         * lib/savewd.c (savewd_chdir): Likewise.
12200
12201         Remove macros that are no longer needed now that stdint.h is
12202         reliable.
12203         * lib/fsusage.c (UINTMAX_MAX): Remove.
12204         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
12205         * lib/utimecmp.c (SIZE_MAX): Remove.
12206
12207         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
12208
12209         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
12210         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
12211         O_NOATIME works.
12212
12213 2006-10-05  Bruno Haible  <bruno@clisp.org>
12214
12215         * lib/gl_list.h (gl_sortedlist_search_from_to,
12216         gl_sortedlist_indexof_from_to): New declarations.
12217         (gl_list_implementation): New fields sortedlist_search_from_to,
12218         sortedlist_indexof_from_to.
12219         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
12220         inline functions.
12221         * lib/gl_list.c (gl_sortedlist_search_from_to,
12222         gl_sortedlist_indexof_from_to): New functions.
12223         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
12224         function.
12225         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
12226         (gl_array_sortedlist_search_from_to): New function.
12227         (gl_array_list_implementation): Update.
12228         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
12229         function.
12230         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
12231         (gl_carray_sortedlist_search_from_to): New function.
12232         (gl_carray_list_implementation): Update.
12233         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
12234         gl_linked_sortedlist_indexof_from_to): New functions.
12235         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12236         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12237         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
12238         gl_tree_sortedlist_indexof_from_to): New functions.
12239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12240         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12241         Update.
12242         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12243         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
12244         Update.
12245
12246 2006-10-05  Bruno Haible  <bruno@clisp.org>
12247
12248         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
12249         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
12250         (struct gl_list_implementation): Add fields search_from_to,
12251         indexof_from_to. Remove fields search, indexof.
12252         (gl_list_search): Use the search_from_to method.
12253         (gl_list_search_from, gl_list_search_from_to): New functions.
12254         (gl_list_indexof): Use the indexof_from_to method.
12255         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
12256         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
12257         (gl_list_search_from, gl_list_search_from_to): New functions.
12258         (gl_list_indexof): Use the indexof_from_to method.
12259         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
12260         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
12261         gl_array_indexof. Add start_index, end_index arguments.
12262         (gl_array_search_from_to): Renamed from gl_array_search. Add
12263         start_index, end_index arguments.
12264         (gl_array_remove, gl_array_list_implementation): Update.
12265         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
12266         gl_carray_indexof. Add start_index, end_index arguments.
12267         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
12268         start_index, end_index arguments.
12269         (gl_carray_remove, gl_carray_list_implementation): Update.
12270         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
12271         gl_linked_search. Add start_index, end_index arguments.
12272         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
12273         start_index, end_index arguments.
12274         (gl_linked_remove): Update.
12275         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12276         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12277         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
12278         field to 'size_t'.
12279         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
12280         gl_tree_search. Add start_index, end_index arguments.
12281         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
12282         start_index, end_index arguments.
12283         (gl_tree_remove): Update.
12284         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12285         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12286         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
12287         function.
12288         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
12289         gl_tree_search. Add start_index, end_index arguments.
12290         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
12291         start_index, end_index arguments.
12292         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12293         Update.
12294         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12295
12296 2006-10-05  Bruno Haible  <bruno@clisp.org>
12297
12298         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
12299
12300         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
12301         fwriteerror_temp): New declarations.
12302         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
12303         (descriptors): New variable.
12304         (cleanup): First, close the descriptors.
12305         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
12306         fclose_temp, fwriteerror_temp): New functions.
12307
12308 2006-10-04  Jim Meyering  <jim@meyering.net>
12309
12310         * lib/fts.c (fts_open): Tiny comment change.
12311
12312 2006-10-04  Bruno Haible  <bruno@clisp.org>
12313
12314         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
12315         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
12316         gl_LOCK_BODY.
12317         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
12318         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
12319         gl_LOCK_EARLY_BODY.
12320         (gl_LOCK): Require gl_LOCK_BODY.
12321
12322 2006-10-04  Bruno Haible  <bruno@clisp.org>
12323
12324         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
12325         (gl_oset_search_atleast): New declaration.
12326         (struct gl_oset_implementation): Add field 'search_atleast'.
12327         (gl_oset_search_atleast): New inline function.
12328         * lib/gl_oset.c (gl_oset_search_atleast): New function.
12329         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
12330         (gl_array_oset_implementation): Update.
12331         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
12332         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
12333         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
12334
12335 2006-10-04  Bruno Haible  <bruno@clisp.org>
12336
12337         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
12338
12339 2006-10-03  Bruno Haible  <bruno@clisp.org>
12340
12341         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
12342         from gl_avltreehash_list_implementation.
12343
12344 2006-10-03  Bruno Haible  <bruno@clisp.org>
12345
12346         * lib/gl_oset.c (gl_oset_add): Fix return type.
12347
12348 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
12349
12350         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
12351
12352 2006-10-02  Eric Blake  <ebb9@byu.net>
12353
12354         * modules/strnlen (Depends-on): Add extensions.
12355
12356 2006-10-02  Eric Blake  <ebb9@byu.net>
12357
12358         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
12359         definition in 2.60+.
12360
12361 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12362
12363         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
12364         checks.
12365
12366 2006-10-02  Bruno Haible  <bruno@clisp.org>
12367
12368         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
12369         to the AUTOMAKE_OPTIONS.
12370         Reported by Jim Meyering.
12371
12372 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
12373
12374         Work around bug in Solaris 10 /proc file system:
12375         /proc/self/fd/NNN/.. isn't the parent directory of
12376         the directory whose file descriptor is NNN.  This needs to
12377         be worked around at run time, not compile time, since a
12378         program might be built on Solaris 8, where things work, and
12379         run on Solaris 10.
12380         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
12381         to use the following interface instead:
12382         (OPENAT_BUFFER_SIZE): New macro.
12383         (openat_proc_name): New function.
12384         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
12385         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
12386         Likewise.
12387         * lib/openat-proc.c: New file.
12388         * modules/openat (Files): Add lib/openat-proc.c.
12389         (Depends-on): Add same-inode, stdbool.
12390         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
12391
12392 2006-09-29  Bruno Haible  <bruno@clisp.org>
12393
12394         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
12395         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
12396         argument. Set stdout_closed before testing for ferror, not after.
12397         (fwriteerror, fwriteerror_no_ebadf): New functions.
12398
12399 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12400
12401         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
12402
12403 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
12404
12405         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
12406         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
12407
12408 2006-09-28  Jim Meyering  <jim@meyering.net>
12409
12410         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
12411         Include <unistd.h>.
12412
12413 2006-09-28  Bruno Haible  <bruno@clisp.org>
12414
12415         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
12416         * modules/linkedhash-list (Depends-on): Likewise.
12417         * modules/rbtreehash-list (Depends-on): Likewise.
12418
12419 2006-09-28  Bruno Haible  <bruno@clisp.org>
12420
12421         * lib/strndup.h: Simplify the redefinition of strndup.
12422         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
12423         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
12424
12425 2006-09-28  Bruno Haible  <bruno@clisp.org>
12426
12427         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
12428         * lib/gl_linkedhash_list.c: Likewise.
12429         * lib/gl_rbtreehash_list.c: Likewise.
12430
12431 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
12432
12433         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
12434         getaddrinfo.
12435
12436         * lib/__fpending.h: Don't include <stdio_ext.h> unless
12437         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
12438         it causes <stdio_ext.h> to cause a compile-time error.
12439         Problem reported by Nelson H. F. Beebe.
12440         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
12441         of HAVE_DECL___PENDING.
12442
12443         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
12444         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
12445         declaration.
12446
12447 2006-09-27  Jim Meyering  <jim@meyering.net>
12448
12449         This file could end up with a definition for a function
12450         named __strndup, rather than rpl_strndup on a system with
12451         incomplete weak_alias support.
12452         * lib/strndup.c (strndup): Rename from __strndup.
12453         Remove #defines that used to map __strndup to strndup.
12454         Don't use K&R prototypes.
12455         Remove LIBC-related code, since this file is not sync'd with glibc.
12456         * lib/strndup.h: Revamp, accordingly.
12457         * m4/strndup.m4: Modernize.
12458
12459 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12460
12461         * modules/savewd (Depends-on): Add 'raise'.
12462         * lib/savewd.c: Include <signal.h>, for 'raise'.
12463
12464 2006-09-26  Jim Meyering  <jim@meyering.net>
12465
12466         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
12467         when we detect Darwin 8.7.0's acl_get_file bug.
12468         Rearrange to perform the new (below) run-test while $LIBS
12469         contains any acl-related library.  Set USE_ACL at the end.
12470         (gl_ACL_GET_FILE): New function.
12471
12472 2006-09-26  Eric Blake  <ebb9@byu.net>
12473
12474         * lib/verror.c: Include <config.h> unconditionally.
12475
12476 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
12477
12478         * modules/clock-time (Maintainer): Add self.
12479         * modules/getlogin_r (Depends-on): Add extensions.
12480
12481 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12482
12483         * modules/clock-time: New module.
12484         * modules/nanosleep (Depends-on): Add clock-time.
12485         * modules/gethrxtime (Depends-on): Likewise.
12486         * modules/gettime (Depends-on): Likewise.
12487         * modules/settime (Depends-on): Likewise.
12488
12489         * modules/fts-lgpl: Depend on openat.
12490         * modules/mkancesdirs: Depend on savewd.
12491         * modules/mkdir-p: Likewise.
12492
12493 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12494
12495         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
12496
12497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
12498         `gl_have_arbitrary_file_name_length_limit' to
12499         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
12500         actually works between configure runs.
12501
12502 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12503             Bruno Haible  <bruno@clisp.org>
12504
12505         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
12506
12507 2006-09-25  Jim Meyering  <jim@meyering.net>
12508
12509         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
12510         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
12511
12512 2006-09-25  Eric Blake  <ebb9@byu.net>
12513
12514         * gnulib-tool (func_import, func_create_testdir): Fix typos in
12515         exec's in 2006-09-18 patch when shuffling fds.
12516
12517 2006-09-25  Bruno Haible  <bruno@clisp.org>
12518
12519         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
12520         Reported by Jim Meyering.
12521
12522 2006-09-24  Jim Meyering  <jim@meyering.net>
12523
12524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
12525         compare a pointer against a literal "0".  That caused failures with
12526         at least HP-UX's hpcc.
12527
12528 2006-09-22  Simon Josefsson  <jas@extundo.com>
12529
12530         * modules/gc-sha1:
12531         * modules/gc-md4:
12532         * modules/gc-hmac-sha1:
12533         * modules/gc-hmac-md5:
12534         * modules/gc-des:
12535         * modules/gc-arcfour: Distribute more files.
12536
12537 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12538
12539         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
12540         (gl_linked_iterator_from_to): Initialize struct completely.
12541         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
12542         (gl_tree_iterator_from_to): Likewise
12543         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
12544         * lib/gl_array_list.c [lint] (gl_array_iterator)
12545         (gl_array_iterator_from_to): Likewise.
12546         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
12547         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
12548         (gl_carray_iterator_from_to): Likewise.
12549
12550         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
12551         * lib/md4.c (md4_process_block): Remove unused variable.
12552         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
12553         parentheses for clarity.
12554
12555 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12556
12557         * modules/bison-i18n (Depends-on): Add gettext.
12558
12559 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12560
12561         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
12562         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
12563         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
12564         also add missing comma that caused broken test.
12565         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
12566         stdlib.h, for `abort'.
12567         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
12568         variables.
12569         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
12570         include unistd.h if present, for `rmdir'.
12571         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
12572         variables.
12573         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
12574         in the process include standard headers for prototypes.
12575         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
12576         gets declared on GNU/Linux.
12577         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
12578         unistd.h, for `rmdir'.
12579         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
12580
12581         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
12582         always true.
12583         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
12584
12585         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
12586
12587 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12588
12589         * gnulib-tool (func_version): Create output all at once.  This
12590         may help avoid triggering unnecessary SIGPIPEs, and at any
12591         rate it doesn't hurt.
12592
12593 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12594             Bruno Haible  <bruno@clisp.org>
12595
12596         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
12597         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12598         * m4/signed.m4 (bh_C_SIGNED): Likewise.
12599
12600         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
12601         (gl_FUNC_VASPRINTF): Invoke it.
12602
12603 2006-09-22  Bruno Haible  <bruno@clisp.org>
12604
12605         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
12606         getloadavg.c as first argument.
12607
12608 2006-09-22  Bruno Haible  <bruno@clisp.org>
12609
12610         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
12611         at the beginning of the gl_INIT macro.
12612         * modules/getloadavg (configure.ac): Pass $gl_source_base to
12613         gl_GETLOADAVG.
12614
12615 2006-09-22  Bruno Haible  <bruno@clisp.org>
12616
12617         * gnulib-tool (func_create_megatestdir): Don't include the config-h
12618         module.
12619         Suggested by Ralf Wildenhues.
12620
12621 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12622
12623         Import this patch from libc:
12624
12625         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12626
12627         * lib/regex_internal.c (re_string_reconstruct): Handle
12628         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12629         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12630         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12631         re_string_context_at.
12632
12633         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
12634         now requires it.
12635         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
12636         gl_REGEX now does it for us.
12637         (gl_REGEX): Add test taken from
12638         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
12639
12640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
12641         Check that large offsets work.  Modernize Autoconf usages.
12642         Prefer "yes" to mean a good thing rather than a bad.
12643         Don't put "#define mkstemp" in config.h, as this might interfere
12644         with standard system headers that "#define mkstemp mkstemp64".
12645
12646         * modules/mkstemp (Depends-on): Add extensions, so that
12647         mkstemp is visible on some platforms.
12648         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
12649         (Include): Change to "mkstemp.h" from <stdlib.h>.
12650         (Files): Add mkstemp.h.
12651
12652         * lib/mkstemp.h: New file, since some standard headers
12653         #define mkstemp.
12654         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
12655         Include "mkstemp.h".
12656         Make the _LIBC code resemble glibc original more,
12657         e.g., use K&R style.
12658         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
12659         (mkstemp): Remove, since mkstemp.h does this for us.
12660         * lib/stdlib--.h: Include mkstemp.h.
12661
12662         Import this patch from libc:
12663
12664         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
12665
12666         * lib/tempname.c (__gen_tempname): Change attempts_min
12667         into a macro.  Use preprocessor to decide how to initialize
12668         attempts [Coverity CID 67].
12669
12670 2006-09-20  Bruno Haible  <bruno@clisp.org>
12671
12672         * lib/mkdtemp.c: Import from libc.
12673         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
12674                 * sysdeps/posix/tempname.c (__gen_tempname): Change
12675                 attempts_min into a macro.  Use preprocessor to decide how to
12676                 initialize attempts [Coverity CID 67].
12677         2001-11-27  Paul Eggert  <eggert@twinsun.com>
12678                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
12679                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
12680
12681 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12682
12683         * gnulib-tool (func_exit): New function, to allow to pass the
12684         exit status portably through the trap.  Use everywhere.
12685         (--help, --version): Signal a write error.
12686         (trap): catch SIGPIPE, for write errors.
12687         Exit at the end of the trap, with the correct exit status.
12688
12689 2006-09-19  Karl Berry  <karl@gnu.org>
12690
12691         * doc/gnulib.texi: note about the license texinfo files.
12692
12693 2006-09-19  Eric Blake  <ebb9@byu.net>
12694
12695         * gnulib-tool: Avoid space-tab.
12696
12697 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12698
12699         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
12700         that prevented coreutils 6.1 from building.  Problem reported
12701         by Petter Reinholdtsen.
12702
12703 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         * gnulib-tool (avoidlist): Fix typo that broke options like
12706         --avoid=lock that are used by coreutils bootstrap.
12707
12708 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
12709
12710         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
12711         more systematically.
12712
12713 2006-09-18  Jim Meyering  <jim@meyering.net>
12714
12715         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
12716
12717 2006-09-18  Bruno Haible  <bruno@clisp.org>
12718
12719         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
12720
12721 2006-09-18  Bruno Haible  <bruno@clisp.org>
12722
12723         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
12724         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
12725         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
12726         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
12727         * m4/gettext.m4: Require autoconf >= 2.52.
12728         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
12729         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
12730         of gl_cv_header_inttypes_h.
12731
12732 2006-09-18  Bruno Haible  <bruno@clisp.org>
12733
12734         * lib/javaversion.c: Include configmake.h.
12735
12736 2006-09-18  Bruno Haible  <bruno@clisp.org>
12737
12738         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
12739         avoid that the while loops be executed in a subshell.
12740
12741 2006-09-18  Bruno Haible  <bruno@clisp.org>
12742
12743         * MODULES.html.sh (func_module): Break long lines.
12744         Suggested by Bruce Korb <bkorb@gnu.org>.
12745
12746 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12747
12748         Speed up by a factor of 1.12.
12749         * gnulib-tool (nl): New variable.
12750         (func_import): Rewrite include directive extraction to only read each
12751         directive once.
12752
12753 2006-09-17  Bruno Haible  <bruno@clisp.org>
12754
12755         * modules/javaversion (Makefile.am): Remove DEFS setting.
12756         (Depends-on): Add configmake, for PKGDATADIR definition.
12757
12758 2006-09-17  Bruno Haible  <bruno@clisp.org>
12759
12760         * gnulib-tool (func_create_testdir): Rewrite all files at once.
12761
12762 2006-09-17  Bruno Haible  <bruno@clisp.org>
12763
12764         * gnulib-tool (func_append): New function, stolen from libtool.m4.
12765         (func_modules_transitive_closure, func_modules_add_dummy,
12766         func_modules_to_filelist, func_import, func_create_testdir,
12767         func_create_megatestdir, ...): Use it wherever possible.
12768         Suggested by Ralf Wildenhues.
12769
12770 2006-09-16  Karl Berry  <karl@gnu.org>
12771
12772         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
12773         to avoid sectioning errors.
12774         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
12775         [ifinfo]: blank line after @center-ed titles.
12776         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
12777         Spell FSF address consistently with others.
12778         (These changes approved by rms.)
12779
12780 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12781
12782         Speed up by a factor of 1.61.
12783         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
12784         already checked module names again.
12785
12786 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12787
12788         Speed up by a factor of 1.13.
12789         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
12790         for new_files, and the input to func_add_or_update.
12791
12792 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12793
12794         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
12795         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
12796
12797 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12798
12799         * modules/mkancesdirs (Depends-on): Add fcntl.
12800         * modules/savewd: New file.
12801         * MODULES.html.sh (File system functions): Add savewd.
12802
12803         * modules/configmake (Makefile.am): Add support for the
12804         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
12805
12806 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12807
12808         * m4/savewd.m4: New file.
12809
12810 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12811
12812         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
12813         (dirchownmod): New arg FD.  All callers changed.
12814         Use FD rather than opening the directory ourself, as opening is
12815         now the caller's responsibility.
12816         * lib/dirchownmod.h: Likewise.
12817         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
12818         hosts that require <sys/types.h> before <sys/stat.h>.  Include
12819         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
12820         (test_dir): Remove.
12821         (mkancesdirs): Return length of prefix of FILE that has already
12822         been made, or -2 if there is a child doing the work.  Redo
12823         algorithm so that it is O(N) rather than O(N**2).  Optimize away
12824         ".", and treat ".." specially since it might stray back into
12825         already-created areas.  Use a subprocess if necessary.  New arg
12826         WD; all users changed.  MAKE_DIR function should now return 1
12827         if it creates a directory that is not readable.  Return -2 if
12828         a child process is spun off.
12829         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
12830         Adjust signature to match code.
12831         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
12832         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
12833         all users changed.
12834         * lib/savewd.c, lib/savewd.h: New files.
12835
12836 2006-09-15  Jim Meyering  <jim@meyering.net>
12837
12838         * modules/rename-dest-slash: New module.
12839         * MODULES.html.sh (posix_compat): Add it here.
12840
12841         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
12842
12843 2006-09-15  Jim Meyering  <jim@meyering.net>
12844
12845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
12846         file.
12847
12848         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
12849
12850 2006-09-15  Jim Meyering  <jim@meyering.net>
12851
12852         * lib/rename-dest-slash.c (has_trailing_slash): Use
12853         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
12854         (rpl_rename_dest_slash): Perform the cheaper trailing slash
12855         test before testing whether SRC is a directory.
12856         Suggestions from Bruno Haible.
12857
12858         Avoid a warning about an unused variable.
12859         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
12860         into the #ifdef block where it's used.
12861
12862         * lib/rename-dest-slash.c: New file.
12863
12864 2006-09-14  Bruno Haible  <bruno@clisp.org>
12865
12866         * lib/allocsa.c: Include <config.h> unconditionally.
12867         * lib/asnprintf.c: Likewise.
12868         * lib/asprintf.c: Likewise.
12869         * lib/c-strcasecmp.c: Likewise.
12870         * lib/c-strcasestr.c: Likewise.
12871         * lib/c-strncasecmp.c: Likewise.
12872         * lib/c-strstr.c: Likewise.
12873         * lib/classpath.c: Likewise.
12874         * lib/clean-temp.c: Likewise.
12875         * lib/concatpath.c: Likewise.
12876         * lib/copy-file.c: Likewise.
12877         * lib/csharpcomp.c: Likewise.
12878         * lib/csharpexec.c: Likewise.
12879         * lib/execute.c: Likewise.
12880         * lib/fatal-signal.c: Likewise.
12881         * lib/findprog.c: Likewise.
12882         * lib/fwriteerror.c: Likewise.
12883         * lib/gl_array_list.c: Likewise.
12884         * lib/gl_array_oset.c: Likewise.
12885         * lib/gl_avltree_list.c: Likewise.
12886         * lib/gl_avltree_oset.c: Likewise.
12887         * lib/gl_avltreehash_list.c: Likewise.
12888         * lib/gl_carray_list.c: Likewise.
12889         * lib/gl_linked_list.c: Likewise.
12890         * lib/gl_linkedhash_list.c: Likewise.
12891         * lib/gl_list.c: Likewise.
12892         * lib/gl_oset.c: Likewise.
12893         * lib/gl_rbtree_list.c: Likewise.
12894         * lib/gl_rbtree_oset.c: Likewise.
12895         * lib/gl_rbtreehash_list.c: Likewise.
12896         * lib/imaxabs.c: Likewise.
12897         * lib/imaxdiv.c: Likewise.
12898         * lib/javacomp.c: Likewise.
12899         * lib/javaexec.c: Likewise.
12900         * lib/javaversion.c: Likewise.
12901         * lib/linebreak.c: Likewise.
12902         * lib/localcharset.c: Likewise.
12903         * lib/lock.c: Likewise.
12904         * lib/mbchar.c: Likewise.
12905         * lib/mbswidth.c: Likewise.
12906         * lib/mkdtemp.c: Likewise.
12907         * lib/pipe.c: Likewise.
12908         * lib/printf-args.c: Likewise.
12909         * lib/printf-parse.c: Likewise.
12910         * lib/progname.c: Likewise.
12911         * lib/progreloc.c: Likewise.
12912         * lib/readlink.c: Likewise.
12913         * lib/sh-quote.c: Likewise.
12914         * lib/stpcpy.c: Likewise.
12915         * lib/stpncpy.c: Likewise.
12916         * lib/strcasecmp.c: Likewise.
12917         * lib/strcasestr.c: Likewise.
12918         * lib/strcspn.c: Likewise.
12919         * lib/striconv.c: Likewise.
12920         * lib/strncasecmp.c: Likewise.
12921         * lib/strnlen1.c: Likewise.
12922         * lib/strstr.c: Likewise.
12923         * lib/strtok_r.c: Likewise.
12924         * lib/tls.c: Likewise.
12925         * lib/tmpdir.c: Likewise.
12926         * lib/unicodeio.c: Likewise.
12927         * lib/unsetenv.c: Likewise.
12928         * lib/vasnprintf.c: Likewise.
12929         * lib/vasprintf.c: Likewise.
12930         * lib/wait-process.c: Likewise.
12931         * lib/xallocsa.c: Likewise.
12932         * lib/xsetenv.c: Likewise.
12933         * lib/xstriconv.c: Likewise.
12934
12935 2006-09-13  Simon Josefsson  <jas@extundo.com>
12936
12937         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
12938         that internally, suggested by Ralf Wildenhues
12939         <Ralf.Wildenhues@gmx.de>.
12940
12941 2006-09-13  Simon Josefsson  <jas@extundo.com>
12942
12943         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
12944         @LIBOBJS@.
12945         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12946
12947 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12948
12949         * lib/_fpending.c: Include <config.h> unconditionally, since we no
12950         longer worry about uses that don't define HAVE_CONFIG_H.
12951         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
12952         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
12953         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
12954         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
12955         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
12956         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
12957         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
12958         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
12959         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
12960         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
12961         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
12962         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
12963         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
12964         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
12965         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
12966         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
12967         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
12968         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
12969         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
12970         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
12971         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
12972         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
12973         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
12974         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
12975         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
12976         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
12977         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
12978         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
12979         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
12980         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
12981         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
12982         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
12983         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
12984         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
12985         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
12986         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
12987         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
12988         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
12989         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
12990         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
12991         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
12992         Likewise.
12993
12994 2006-09-13  Eric Blake  <ebb9@byu.net>
12995
12996         * lib/getopt.c: Fix typo in last commit.
12997
12998 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12999
13000         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
13001         dgettext.
13002
13003 2006-09-12  Jim Meyering  <jim@meyering.net>
13004
13005         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
13006         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
13007         Reported by Nelson H. F. Beebe.
13008
13009 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13010
13011         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
13012         program_invocation_name and program_invocation_short_name are
13013         initialized.
13014         * lib/argp-namefrob.h: Move declarations of program_invocation_name
13015         and program_invocation_short_name to argp.h, so they are visible
13016         to user programs.
13017         * lib/argp.h: Likewise
13018
13019 2006-09-10  Bruno Haible  <bruno@clisp.org>
13020
13021         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
13022         m4/inttypes_h.m4, m4/uintmax_t.m4.
13023
13024 2006-09-10  Bruno Haible  <bruno@clisp.org>
13025
13026         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
13027         gl_AC_TYPE_UINTMAX_T.
13028
13029 2006-09-10  Bruno Haible  <bruno@clisp.org>
13030
13031         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
13032
13033 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13034
13035         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
13036         convention.  Text proposed by Bruno Haible.
13037         (struct argp_option): Document the use of N_() wrappers.
13038
13039         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
13040         '\v', and translate the two parts separately, instead of feeding
13041         the whole string to gettext.  This allows to exclude
13042         '\v' from the strings visible to the translator by writing doc
13043         strings as N_("..") "\v" N_("..").
13044
13045 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13046
13047         * config/srclist.txt: Undo latest change; the bug was fixed.
13048
13049 2006-09-09  Bruno Haible  <bruno@clisp.org>
13050
13051         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
13052         assignments if building a library without libtool.
13053         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
13054         in func_emit_lib_Makefile_am.
13055         (func_import): When building a static library libfoo.a, arrange to
13056         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
13057         (func_create_testdir): Likewise.
13058         * modules/gc (configure.ac, Makefile.am): If building statically,
13059         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
13060         * modules/iconvme (configure.ac, Makefile.am): Likewise.
13061         * modules/striconv (configure.ac, Makefile.am): Likewise.
13062         Based on a suggestion by Ralf Wildenhues.
13063
13064 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
13067         Check for unistd.h too, since Autoconf doesn't assume POSIX.
13068         Also:
13069
13070         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13071         Add year_2050_test to catch glibc bug 2821
13072         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
13073
13074         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13075         Prefer #ifdef to #if.
13076
13077         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
13078         Return from 'main' instead of calling 'exit'.
13079
13080 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13081
13082         * lib/mktime.c (guess_time_tm): Fix bug where mktime
13083         returned the maximum time_t value rather than (time_t) -1.
13084         Problem originally reported by William Bardwell
13085         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
13086
13087         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
13088         Moved to here ...
13089         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
13090         ... from here.
13091
13092 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13093
13094         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
13095         2821 is fixed.
13096
13097 2006-09-08  Jim Meyering  <jim@meyering.net>
13098
13099         Don't make generated files read-only.  That would bother too many
13100         people.  However, do retain the ability to work when targets are
13101         read-only: remove the destination and temporary files before writing
13102         them (when generated via sed or echo), or by using the -f option for
13103         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
13104         * modules/alloca-opt, modules/argz, modules/arpa_inet:
13105         * modules/byteswap, modules/configmake, modules/fcntl:
13106         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
13107         * modules/localcharset, modules/netinet_in, modules/poll:
13108         * modules/stdbool, modules/stdint, modules/sys_select:
13109         * modules/sys_socket, modules/sys_stat, modules/sysexits:
13110
13111 2006-09-08  Jim Meyering  <jim@meyering.net>
13112
13113         Avoid new build failure on FreeBSD 6.0.
13114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
13115         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
13116         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
13117
13118 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13119
13120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
13121
13122 2006-09-07  Jim Meyering  <jim@meyering.net>
13123
13124         Fix global typo in last change: use chmod u-w, not chmod u-x.
13125         Spotted by Paul Eggert and Bruce Korb.
13126         * modules/alloca-opt, modules/argz, modules/arpa_inet:
13127         * modules/byteswap, modules/configmake, modules/fcntl:
13128         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
13129         * modules/localcharset, modules/netinet_in, modules/poll:
13130         * modules/stdbool, modules/stdint, modules/sys_select:
13131         * modules/sys_socket, modules/sys_stat, modules/sysexits:
13132
13133 2006-09-06  Jim Meyering  <jim@meyering.net>
13134
13135         Make generated files be read-only.
13136         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
13137         Ensure that each generated file is now read-only.
13138         * modules/argz: Likewise.
13139         * modules/arpa_inet: Likewise.
13140         * modules/byteswap: Likewise.
13141         * modules/configmake: Likewise.
13142         * modules/fcntl: Likewise.
13143         * modules/fnmatch: Likewise.
13144         * modules/getopt: Likewise.
13145         * modules/glob: Likewise.
13146         * modules/inttypes: Likewise.
13147         * modules/netinet_in: Likewise.
13148         * modules/poll: Likewise.
13149         * modules/stdbool: Likewise.
13150         * modules/stdint: Likewise.
13151         * modules/sys_select: Likewise.
13152         * modules/sys_socket: Likewise.
13153         * modules/sys_stat: Likewise.
13154         * modules/sysexits: Likewise.
13155         * modules/localcharset: Same as above, but continue using temporary
13156         file named "t-$@" (why different?) rather than the "$@-t" used
13157         everywhere else.
13158
13159         * modules/sysexits (Makefile.am): Replace literal occurrences
13160         of "sysexit.h" more readable, and more consistent, "$@".
13161
13162 2006-09-06  Bruno Haible  <bruno@clisp.org>
13163
13164         * modules/striconv: New file.
13165         * modules/xstriconv: New file.
13166         * MODULES.html.sh (Internationalization functions): Add striconv,
13167         xstriconv.
13168
13169 2006-09-06  Bruno Haible  <bruno@clisp.org>
13170
13171         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
13172         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
13173         not using libtool correctly.
13174
13175 2006-09-06  Bruno Haible  <bruno@clisp.org>
13176
13177         * lib/striconv.h: New file.
13178         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
13179         iconvstring.c.
13180         * lib/xstriconv.h: New file.
13181         * lib/xstriconv.c: New file.
13182
13183 2006-09-06  Bruno Haible  <bruno@clisp.org>
13184
13185         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13186         lib_..._LDFLAGS.
13187
13188 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13189
13190         * lib/argz_.h: Sync from Libtool.
13191
13192         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
13193                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13194
13195         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
13196
13197 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
13198
13199         * modules/trim: New file.
13200
13201 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
13202
13203         * lib/trim.h: New file.
13204         * lib/trim.c: New file.
13205
13206 2006-09-05  Bruno Haible  <bruno@clisp.org>
13207
13208         * MODULES.html.sh (String handling): Add trim.
13209
13210 2006-09-04  Karl Berry  <karl@gnu.org>
13211
13212         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
13213         until next release.
13214
13215 2006-09-03  Bruno Haible  <bruno@clisp.org>
13216
13217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
13218         correctly.
13219
13220 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
13223         not gl_GETLOADAVG.  Omit unneeded semicolons.
13224         Problems reported by Ralf Wildenhues in
13225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
13226         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
13227         at the end, which is the usual gnulib style.
13228
13229         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
13230         of doing all the work ourselves.
13231         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
13232         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
13233
13234 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13235
13236         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
13237         Problem reported by Ralf Wildenhues in
13238         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
13239
13240         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
13241         HAVE_STRUCT_STATFS_F_FSTYPENAME.
13242
13243 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13244
13245         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
13246         yesterday's patch by changing test -n to test -z.
13247
13248 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13249
13250         * modules/getloadavg (Files): Add m4/getloadavg.m4.
13251         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
13252         the former is now obsolescent.
13253
13254         * modules/chdir-long (Depends-on): Add fcntl.
13255
13256 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13257
13258         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
13259         obsolescent, and programs should use gnulib instead.
13260         * m4/getloadavg.m4: New file, with contents taken from Autoconf
13261         but with prefixes changed.
13262
13263 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13264
13265         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
13266         or stdbool.h, because they might not exist while configuring.
13267
13268         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
13269         Don't include unistd.h or limits.h; not needed, since chdir-long.h
13270         does that for us.
13271         (O_DIRECTORY): Remove.
13272
13273 2006-08-31  Eric Blake  <ebb9@byu.net>
13274
13275         * gnulib-tool: Don't let emacs change spaces to TAB.
13276
13277 2006-08-31  Bruno Haible  <bruno@clisp.org>
13278
13279         * gnulib-tool: When calling func_import more than once, do it in a
13280         subshell.
13281         Reported by Eric Blake <ebb9@byu.net>.
13282
13283 2006-08-31  Bruno Haible  <bruno@clisp.org>
13284
13285         * gnulib-tool (nl): Remove variable.
13286         (sed_transform_lib_file): Use more robust test for config-h module.
13287         (func_import): Fix typo in 2006-08-25 patch.
13288
13289 2006-08-31  Bruno Haible  <bruno@clisp.org>
13290
13291         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
13292         specified, augment Makefile.am variables instead of assigning them.
13293
13294 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13295
13296         Work around a bug in both the Linux and SunOS 64-bit kernels:
13297         nanosleep mishandles sleeps for longer than 2**31 seconds.
13298         Problem reported by Frank v Waveren in
13299         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
13300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
13301         Check for nanosleep bug.
13302         (LIB_NANOSLEEP): Append clock_gettime library if needed.
13303
13304 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13305
13306         Work around a bug in both the Linux and SunOS 64-bit kernels:
13307         nanosleep mishandles sleeps for longer than 2**31 seconds.
13308         Problem reported by Frank v Waveren in
13309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
13310         * lib/nanosleep.c (BILLION): New constant.
13311         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
13312         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
13313         implementation.
13314
13315 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13316
13317         * modules/nanosleep (Depends-on): Add gettime.
13318
13319 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13320         and Simon Josefsson  <jas@extundo.com>
13321         and Oskar Liljeblad  <oskar@osk.mine.nu>
13322
13323         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
13324         * gnulib-tool (func_import): New license type 'unmodifiable license
13325         text'.
13326         * modules/fdl: Use it.  Longer description.
13327         * module/gpl, module/lgpl: New files.
13328
13329 2006-08-30  Jim Meyering  <jim@meyering.net>
13330
13331         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
13332         shadowing the parameter.
13333
13334 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13335
13336         Sync from Libtool:
13337
13338         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13339
13340         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
13341         sharing with gnulib.  Report by Eric Blake.
13342
13343 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13344
13345         * modules/isapipe: New file.
13346         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
13347
13348 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13349
13350         * modules/configmake (Makefile.am): Add a comment, and omit
13351         the CONFIGMAKE_ prefix from generated macro names.  Suggested
13352         by Bruno Haible.
13353
13354 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13355
13356         * m4/isapipe.m4: New file.
13357
13358 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13359
13360         * lib/isapipe.c, lib/isapipe.h: New files.
13361
13362 2006-08-29  Jim Meyering  <jim@meyering.net>
13363
13364         * modules/configmake (Makefile.am): Make configmake.h depend on
13365         Makefile.  Otherwise, a stale configmake.h could hang around.
13366
13367 2006-08-29  Eric Blake  <ebb9@byu.net>
13368
13369         * lib/error.c (error_at_line, print_errno_message): Match libc, after
13370         resolution of upstream bug 3044.
13371
13372 2006-08-29  Bruno Haible  <bruno@clisp.org>
13373
13374         * modules/localcharset (Depends-on): Add configmake.
13375         (Makefile.am): Remove setting of LIBDIR through DEFS.
13376
13377 2006-08-29  Bruno Haible  <bruno@clisp.org>
13378
13379         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
13380         defined.
13381
13382 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         * modules/fcntl: New file.
13385         * modules/chdir-safer (Depends-on): Add fcntl.
13386         * modules/fts: Likewise.
13387         * modules/mkdir-p: Likewise.
13388
13389         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
13390         This undoes the most recent change, since we're now addressing the
13391         problem in a different way.
13392
13393         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
13394         into output, since the output might be called Makefile.am even
13395         if $makefile_name is something different.
13396         (func_import): Use $makefile_am rather than
13397         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
13398         empty.
13399
13400         * modules/inttypes (Files): Add m4/inttypes-h.m4.
13401
13402 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13403
13404         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
13405         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
13406         recent change to stdint.m4, since we're now addressing the problem in a
13407         different way.
13408
13409 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13410
13411         * m4/fcntl_h.m4: New file.
13412
13413 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13414
13415         * lib/fcntl_.h: New file.
13416         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
13417         the fcntl module.
13418         * lib/dirchownmod.c: Likewise.
13419         * lib/fts.c: Likewise.
13420
13421         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
13422         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
13423         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
13424         just before including <inttypes.h>, to avoid circular inclusion.
13425
13426 2006-08-28  Jim Meyering  <jim@meyering.net>
13427
13428         * doc/visibility.texi: Actually read and correct the grammar of the
13429         sentence affected by yesterday's change.
13430
13431 2006-08-28  Eric Blake  <ebb9@byu.net>
13432
13433         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
13434         needs wrapper.
13435
13436 2006-08-28  Eric Blake  <ebb9@byu.net>
13437
13438         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
13439
13440 2006-08-28  Eric Blake  <ebb9@byu.net>
13441
13442         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
13443
13444 2006-08-28  Bruno Haible  <bruno@clisp.org>
13445
13446         * modules/c-strstr: New file, from GNU gettext.
13447         * MODULES.html.sh (String handling): Add c-strstr.
13448
13449 2006-08-28  Bruno Haible  <bruno@clisp.org>
13450
13451         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
13452         macros.
13453         Reported by Eric Blake.
13454
13455 2006-08-28  Bruno Haible  <bruno@clisp.org>
13456
13457         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
13458         (VASNPRINTF): Return a string of length > INT_MAX without failing.
13459         * lib/vasprintf.c: Include errno.h, limits.h.
13460         (EOVERFLOW): New fallback definition.
13461         (vasprintf): Test here whether the string length is > INT_MAX.
13462         * lib/vsnprintf.c: Include errno.h, limits.h.
13463         (EOVERFLOW): New fallback definition.
13464         (vsnprintf): Fix bug when generated string was too long for the buffer.
13465         Test here whether the string length is > INT_MAX.
13466
13467 2006-08-28  Bruno Haible  <bruno@clisp.org>
13468
13469         * lib/inttypes_.h (SCNX*): Remove definitions.
13470         Reported by Eric Blake.
13471
13472 2006-08-28  Bruno Haible  <bruno@clisp.org>
13473
13474         * lib/c-strstr.h: New file, from GNU gettext.
13475         * lib/c-strstr.c: New file, from GNU gettext.
13476
13477 2006-08-28  Bruno Haible  <bruno@clisp.org>
13478
13479         * gnulib-tool: Reorder some statements.
13480
13481 2006-08-28  Bruno Haible  <bruno@clisp.org>
13482
13483         * gnulib-tool: New option --makefile-name.
13484         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
13485         $makefile_name.
13486         (func_import): Write $makefile_name to the cache file, and read it from
13487         there unless explicitly specified. Use $makefile_name as file name
13488         instead of Makefile.am. Adjust the recommendations accordingly.
13489
13490 2006-08-28  Bruno Haible  <bruno@clisp.org>
13491
13492         * gnulib-tool (func_verify_module): Check against misapplying patch.
13493
13494 2006-08-28  Bruno Haible  <bruno@clisp.org>
13495
13496         * gnulib-tool (func_relativize, func_relconcat): New functions.
13497         Give an error if --local-dir is given with --update.
13498         Remove trailing slashes from $local_gnulib_dir.
13499         (func_import): Store the relativized $local_gnulib_dir in
13500         gnulib-cache.m4, and read it from there if not specified explicitly.
13501
13502 2006-08-28  Bruno Haible  <bruno@clisp.org>
13503
13504         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
13505         is the current directory. Respect also $local_gnulib_dir.
13506
13507 2006-08-28  Bruno Haible  <bruno@clisp.org>
13508             Simon Josefsson  <jas@extundo.com>
13509
13510         BeOS portability.
13511         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
13512
13513 2006-08-27  Jim Meyering  <jim@meyering.net>
13514
13515         * doc/visibility.texi: Remove duplicate word: "pointer".
13516
13517 2006-08-26  Bruno Haible  <bruno@clisp.org>
13518
13519         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
13520         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
13521         (Makefile.am): Create inttypes.h from inttypes_.h.
13522         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
13523
13524         * modules/imaxabs: New file.
13525
13526         * modules/imaxdiv: New file.
13527
13528 2006-08-26  Bruno Haible  <bruno@clisp.org>
13529
13530         * m4/inttypes.m4: New file.
13531         * m4/_inttypes_h.m4: Remove file.
13532         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
13533         PRI_MACROS_BROKEN.
13534         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
13535
13536         * m4/imaxabs.m4: New file.
13537
13538         * m4/imaxdiv.m4: New file.
13539
13540 2006-08-26  Bruno Haible  <bruno@clisp.org>
13541
13542         * lib/inttypes_.h: New file.
13543         * lib/inttypes.h: Remove file.
13544         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
13545
13546         * lib/imaxabs.c: New file.
13547
13548         * lib/imaxdiv.c: New file.
13549
13550 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13551
13552         New config-h module, so that "make" output needn't be cluttered
13553         by -DHAVE_CONFIG_H.
13554         * MODULES.html.sh (Support for building libraries and executables):
13555         Add config-h.
13556         * modules/config-h: New file.
13557         * gnulib-tool (nl, sed_transform_lib_file): New vars.
13558         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
13559         the config-h module is used.
13560
13561         New configmake module, so that "make" output needn't be cluttered
13562         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
13563         * MODULES.html.sh (Support for building libraries and executables):
13564         Add configmake.
13565         * modules/configmake: New file.
13566
13567 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13568
13569         * m4/config-h.m4: New file.
13570
13571 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13572
13573         * config/srclist.txt: Add elisp-comp.
13574
13575 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13576
13577         * MODULES.html.sh (Support for building libraries and executables):
13578         Add elisp-comp.
13579         * build-aux/elisp-comp: New file.
13580         * modules/elisp-comp: New file.
13581
13582 2006-08-24  Bruno Haible  <bruno@clisp.org>
13583
13584         * gnulib-tool (func_create_testdir): Use non-default values of
13585         sourcebase and m4base.
13586
13587 2006-08-24  Bruno Haible  <bruno@clisp.org>
13588
13589         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
13590         HTML structure.
13591
13592 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13593
13594         * modules/openat (Depends-on): Add lchown.
13595
13596 2006-08-23  Bruno Haible  <bruno@clisp.org>
13597
13598         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
13599         of gl_LOCK_EARLY instead of gl_LOCK.
13600
13601 2006-08-23  Bruno Haible  <bruno@clisp.org>
13602
13603         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
13604         on OSF/1 to no.
13605         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
13606
13607 2006-08-23  Bruno Haible  <bruno@clisp.org>
13608
13609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
13610         as unusable.
13611
13612         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
13613         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
13614         (gl_LOCK): New macro.
13615
13616 2006-08-22  Simon Josefsson  <jas@extundo.com>
13617
13618         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
13619         to md5 module.
13620
13621 2006-08-22  Simon Josefsson  <jas@extundo.com>
13622
13623         * MODULES.html.sh: Add "Support for maintaining and release
13624         projects".
13625
13626         * build-aux/gnupload: New file, from coreutils.
13627
13628 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13629
13630         Avoid the need for AC_LIBSOURCES in m4 macros.
13631         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
13632         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
13633         * modules/check-version (EXTRA_DIST): Add check-version.h.
13634         * modules/crc (EXTRA_DIST): Add crc.h.
13635         * modules/des (EXTRA_DIST): Add des.h.
13636         * modules/gc (EXTRA_DIST): Add gc.h.
13637         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
13638         * modules/getline (EXTRA_DIST): Add getline.h.
13639         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
13640         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
13641         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
13642         * modules/md2 (EXTRA_DIST): Add md2.h.
13643         * modules/md4 (EXTRA_DIST): Add md4.h.
13644         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
13645         * modules/read-file (EXTRA_DIST): Add read-file.h.
13646         * modules/readline (EXTRA_DIST): Add readline.h.
13647         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
13648         rijndael-api-fst.h.
13649
13650 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13651
13652         * m4/rijndael.m4 (gl_ARCFOUR):
13653         * m4/arctwo.m4 (gl_ARCTWO):
13654         * m4/check-version.m4 (gl_CHECK_VERSION):
13655         * m4/crc.m4 (gl_CRC):
13656         * m4/des.m4 (gl_DES):
13657         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
13658         * m4/gc.m4 (gl_GC):
13659         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
13660         * m4/getline.m4 (gl_FUNC_GETLINE):
13661         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
13662         * m4/hmac-md5.m4 (gl_HMAC_MD5):
13663         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
13664         * m4/md2.m4 (gl_MD2):
13665         * m4/md4.m4 (gl_MD4):
13666         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
13667         * m4/read-file.m4 (gl_FUNC_READ_FILE):
13668         * m4/readline.m4 (gl_FUNC_READLINE):
13669         * m4/rijndael.m4 (gl_RIJNDAEL):
13670         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
13671         to get the necessary .h files and whatnot.
13672
13673 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13674
13675         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
13676         gnulib rather than the other way around.
13677         * config/srclistvars.sh (COREUTILS): Remove.
13678
13679 2006-08-22  Jim Meyering  <jim@meyering.net>
13680
13681         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
13682
13683         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
13684
13685 2006-08-22  Eric Blake  <ebb9@byu.net>
13686
13687         * modules/regexprops-generic: New file.
13688         * MODULES.html.sh (Support for building documentation): List it.
13689
13690 2006-08-22  Eric Blake  <ebb9@byu.net>
13691
13692         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
13693         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13694         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
13695         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13696
13697 2006-08-22  Bruno Haible  <bruno@clisp.org>
13698
13699         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
13700         and lib_LTLIBRARIES like the other lib_* variables.
13701
13702 2006-08-22  Bruno Haible  <bruno@clisp.org>
13703
13704         * build-aux/x-to-1.in: New file, from GNU gettext.
13705
13706 2006-08-22  Bruno Haible  <bruno@clisp.org>
13707
13708         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
13709         <utmpx.h> exists.
13710
13711 2006-08-22  Bruno Haible  <bruno@clisp.org>
13712
13713         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
13714         <utmpx.h> exists.
13715
13716 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13717
13718         BeOS portability.
13719         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
13720         exist.
13721         Problem reported by Bruno Haible.
13722
13723 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13724
13725         Avoid the need for AC_LIBSOURCES in m4 macros.
13726         * modules/acl (EXTRA_DIST): Add acl.h.
13727         * modules/argmatch (Files): Add m4/argmatch.m4.
13728         (configure.ac): Add gl_ARGMATCH.
13729         (EXTRA_DIST): Renamed from lib_SOURCES, for
13730         consistency with the other modules.  Remove argmatch.c.
13731         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
13732         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
13733         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
13734         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
13735         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
13736         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
13737         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
13738         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
13739         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
13740         * modules/closeout (EXTRA_DIST): Add closeout.h.
13741         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
13742         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
13743         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
13744         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
13745         dirname.h; remove basename.c and stripslash.c.
13746         * modules/exclude (EXTRA_DIST): Add exclude.h.
13747         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
13748         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
13749         * modules/file-type (EXTRA_DIST): Add file-type.h.
13750         * modules/filemode (EXTRA_DIST): Add filemode.h.
13751         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
13752         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
13753         * modules/fpending (EXTRA_DIST): Add __fpending.h.
13754         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
13755         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
13756         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
13757         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
13758         * modules/getdate (EXTRA_DIST): Add getdate.c.
13759         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
13760         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
13761         * modules/getpass (EXTRA_DIST): Add getpass.h.
13762         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
13763         * modules/group-member (EXTRA_DIST): Add group-member.h.
13764         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
13765         * modules/hash (EXTRA_DIST): Add hash.h.
13766         * modules/human (EXTRA_DIST): Add human.h.
13767         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
13768         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
13769         * modules/lchown (EXTRA_DIST): Add lchown.h.
13770         * modules/long-options (EXTRA_DIST): Add long-options.h.
13771         * modules/lstat (EXTRA_DIST): Add lstat.h.
13772         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
13773         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
13774         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
13775         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
13776         * modules/memxor (EXTRA_DIST): Add memxor.h.
13777         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
13778         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
13779         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
13780         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
13781         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
13782         * modules/physmem (EXTRA_DIST): Add physmem.h.
13783         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
13784         * modules/posixver (EXTRA_DIST): Add posixver.h.
13785         * modules/quote (EXTRA_DIST): Add quote.h.
13786         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
13787         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
13788         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
13789         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
13790         regex_internal.h regexec.c.
13791         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
13792         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
13793         * modules/same (EXTRA_DIST): Add same.h.
13794         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
13795         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
13796         * modules/savedir (EXTRA_DIST): Add savedir.h.
13797         * modules/sha1 (EXTRA_DIST): Add sha1.h.
13798         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
13799         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
13800         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
13801         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
13802         * modules/strdup (EXTRA_DIST): Add strdup.h.
13803         * modules/strftime (EXTRA_DIST): Add strftime.h.
13804         * modules/strndup (EXTRA_DIST): Add strndup.h.
13805         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
13806         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
13807         * modules/time_r (EXTRA_DIST): Add time_r.h.
13808         * modules/timespec (EXTRA_DIST): Add timespec.h.
13809         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
13810         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
13811         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
13812         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
13813         * modules/userspec (EXTRA_DIST): Add userspec.h.
13814         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
13815         * modules/utimens (EXTRA_DIST): Add utimens.h.
13816         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
13817         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
13818         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
13819         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
13820         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
13821         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
13822         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
13823         * modules/yesno (EXTRA_DIST): Add yesno.h.
13824
13825 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13826
13827         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
13828
13829         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
13830         * m4/dev-ino.m4, same-inode.m4: Remove.
13831
13832         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
13833         * m4/acl.m4 (AC_FUNC_ACL):
13834         * m4/backupfile.m4 (gl_BACKUPFILE):
13835         * m4/c-strtod.m4 (gl_C99_STRTOLD):
13836         * m4/canon-host.m4 (gl_CANON_HOST):
13837         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
13838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
13839         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
13840         * m4/cloexec.m4 (gl_CLOEXEC):
13841         * m4/close-stream.m4 (gl_CLOSE_STREAM):
13842         * m4/closeout.m4 (gl_CLOSEOUT):
13843         * m4/dirfd.m4 (gl_FUNC_DIRFD):
13844         * m4/dirname.m4 (gl_DIRNAME):
13845         * m4/exclude.m4 (gl_EXCLUDE):
13846         * m4/exitfail.m4 (gl_EXITFAIL):
13847         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
13848         * m4/file-type.m4 (gl_FILE_TYPE):
13849         * m4/filemode.m4 (gl_FILEMODE):
13850         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
13851         * m4/fpending.m4 (gl_FUNC_FPENDING):
13852         * m4/fprintftime.m4 (gl_FPRINTFTIME):
13853         * m4/fts.m4 (gl_FUNC_FTS):
13854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
13855         * m4/getdate.m4 (gl_GETDATE):
13856         * m4/gethrxtime.m4 (gl_GETHRXTIME):
13857         * m4/getpagesize.m4 (gl_GETPAGESIZE):
13858         * m4/getpass.m4 (gl_FUNC_GETPASS):
13859         * m4/gettime.m4 (gl_GETTIME):
13860         * m4/getugroups.m4 (gl_GETUGROUPS):
13861         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
13862         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
13863         * m4/hard-locale.m4 (gl_HARD_LOCALE):
13864         * m4/hash.m4 (gl_HASH):
13865         * m4/idcache.m4 (gl_IDCACHE):
13866         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
13867         * m4/lchown.m4 (gl_FUNC_LCHOWN):
13868         * m4/long-options.m4 (gl_LONG_OPTIONS):
13869         * m4/lstat.m4 (gl_FUNC_LSTAT):
13870         * m4/md5.m4 (gl_MD5):
13871         * m4/memcasecmp.m4 (gl_MEMCASECMP):
13872         * m4/memcoll.m4 (gl_MEMCOLL):
13873         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
13874         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
13875         * m4/memxor.m4 (gl_MEMXOR):
13876         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
13877         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
13878         * m4/modechange.m4 (gl_MODECHANGE):
13879         * m4/mountlist.m4 (gl_MOUNTLIST):
13880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13881         * m4/openat.m4 (gl_FUNC_OPENAT):
13882         * m4/pathmax.m4 (gl_PATHMAX):
13883         * m4/physmem.m4 (gl_PHYSMEM):
13884         * m4/posixtm.m4 (gl_POSIXTM):
13885         * m4/posixver.m4 (gl_POSIXVER):
13886         * m4/quote.m4 (gl_QUOTE):
13887         * m4/quotearg.m4 (gl_QUOTEARG):
13888         * m4/readtokens.m4 (gl_READTOKENS):
13889         * m4/readutmp.m4 (gl_READUTMP):
13890         * m4/regex.m4 (gl_REGEX):
13891         * m4/safe-read.m4 (gl_SAFE_READ):
13892         * m4/safe-write.m4 (gl_SAFE_WRITE):
13893         * m4/same.m4 (gl_SAME):
13894         * m4/save-cwd.m4 (gl_SAVE_CWD):
13895         * m4/savedir.m4 (gl_SAVEDIR):
13896         * m4/settime.m4 (gl_SETTIME):
13897         * m4/sha1.m4 (gl_SHA1):
13898         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
13899         * m4/stat-macros.m4 (gl_STAT_MACROS):
13900         * m4/stat-time.m4 (gl_STAT_TIME):
13901         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
13902         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
13903         * m4/strdup.m4 (gl_FUNC_STRDUP):
13904         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
13905         * m4/strndup.m4 (gl_FUNC_STRNDUP):
13906         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
13907         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
13908         * m4/time_r.m4 (gl_TIME_R):
13909         * m4/timespec.m4 (gl_TIMESPEC):
13910         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
13911         * m4/unlinkdir.m4 (gl_UNLINKDIR):
13912         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
13913         * m4/userspec.m4 (gl_USERSPEC):
13914         * m4/utimecmp.m4 (gl_UTIMECMP):
13915         * m4/utimens.m4 (gl_UTIMENS):
13916         * m4/xalloc.m4 (gl_XALLOC):
13917         * m4/xgetcwd.m4 (gl_XGETCWD):
13918         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
13919         * m4/xreadlink.m4 (gl_XREADLINK):
13920         * m4/xstrtod.m4 (gl_XSTRTOD):
13921         * m4/yesno.m4 (gl_YESNO):
13922         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
13923         to get the necessary .h files and whatnot.
13924
13925 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
13926             Bruno Haible  <bruno@clisp.org>
13927
13928         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
13929         /bin/sh understanding of '!' conditional negation.
13930
13931 2006-08-21  Jim Meyering  <jim@meyering.net>
13932
13933         * modules/openat (Depends-on): Really alphabetize.
13934
13935         * modules/acl (Depends-on): Add error and quote.
13936
13937         * check-module (find_included_lib_files): Add at-func.c to the
13938         ok-to-include-more-than-once white list.
13939
13940         * modules/openat (Depends-on): Add lstat.  Alphabetize.
13941
13942 2006-08-21  Bruno Haible  <bruno@clisp.org>
13943
13944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13945         Emit a pkgdata_DATA variable only if some snippets add contents to it.
13946         Reported by Martin Lambers <marlam@marlam.de>.
13947
13948 2006-08-21  Bruno Haible  <bruno@clisp.org>
13949
13950         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
13951         specify an installation location, don't emit a noinst_LIBRARIES or
13952         noinst_LTLIBRARIES assignment.
13953
13954 2006-08-21  Bruno Haible  <bruno@clisp.org>
13955
13956         BeOS portability.
13957         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
13958         BeOS has mbrtowc() but no <wctype.h>.
13959
13960 2006-08-21  Bruno Haible  <bruno@clisp.org>
13961
13962         BeOS portability.
13963         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
13964         exist.
13965
13966 2006-08-21  Bruno Haible  <bruno@clisp.org>
13967
13968         BeOS portability.
13969         * lib/mbchar.h: Include <wctype.h> only if it exists.
13970
13971 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         Remove files that are no longer needed by their respective modules.
13974         * m4/obstack.m4: Remove.
13975         * m4/strerror_r.m4: Remove.
13976         * m4/uint32_t.m4: Remove.
13977         * m4/uintptr_t.m4: Remove.
13978         * m4/ullong_max.m4: Remove.
13979         * m4/xstrtoimax.m4: Remove.
13980         * m4/xstrtoumax.m4: Remove.
13981
13982         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
13983         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
13984         dependencies now capture this.
13985
13986         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
13987         Do not use AC_LIBSOURCES, since gnulib modules now do this.
13988         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
13989         * m4/human.m4 (gl_HUMAN): Likewise.
13990         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
13991         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
13992
13993         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
13994
13995         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
13996         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
13997         stdint.
13998         * m4/human.m4 (gl_HUMAN): Likewise.
13999         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
14000         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
14001         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
14002         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
14003         * m4/xstrtol (gl_XSTRTOL): Likewise.
14004
14005         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
14006         AC_TYPE_LONG_LONG_INT.
14007         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
14008         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
14009         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
14010         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
14011
14012         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
14013         on stdbool.
14014
14015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
14016         (gl_PREREQ_XSTRTOUL): Remove.
14017
14018         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
14019
14020         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
14021         mode.
14022
14023 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14024
14025         Add and change modules to make it easier for coreutils to use
14026         gnulib-tool.
14027         * modules/backupfile (Files): Remove m4/d-ino.m4.
14028         (Depends-on): Add d-ino.
14029         * modules/cycle-check (Depends-on): Add stdint.
14030         (lib_SOURCES): Add cycle-check.h.
14031         * modules/d-ino: New module.
14032         * modules/d-type: New module.
14033         * modules/error (Files): Remove m4/strerror_r.m4.
14034         * modules/filemode (Files): Add m4/st_dm_mode.m4.
14035         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
14036         m4/inttypes_h.m4, m4/uintmax_t.m4.
14037         (Depends-on): Add stdint.
14038         (lib_SOURCES): Add fsusage.h.
14039         * modules/getcwd (Files): Remove d-ino.m4.
14040         (Depends-on): Add d-ino.
14041         * modules/getndelim2 (Depends-on): Add stdint.
14042         * modules/glob (Files): Remove m4/d-type.m4.
14043         (Depends-on): Add d-type.
14044         * modules/host-os: New module.
14045         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
14046         m4/inttypes_h.m4, m4/uintmax_t.m4.
14047         * Depends-on: Add stdint.
14048         (lib_SOURCES): Add human.h.
14049         * modules/inttostr (Files): Remove m4/intmax_t.m4,
14050         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
14051         m4/uintmax_t.m4, m4/ulonglong.m4.
14052         (Depends-on): Add stdint.
14053         (EXTRA_DIST): Add inttostr.h.
14054         * modules/lchmod: New module.
14055         * modules/link-follow: New module.
14056         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
14057         (Depends-on): Add lchmod.
14058         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
14059         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
14060         (Depends-on): Add stdint.
14061         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
14062         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
14063         (Depends-on): Add stdint.
14064         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
14065         * modules/perl: New module.
14066         * modules/regex (Depends-on): Add stdint.
14067         * modules/rmdir-errno: New module.
14068         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
14069         m4/intmax_t.m4.
14070         (Depends-on): Add stdint.
14071         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
14072         m4/uintmax_t.m4.
14073         (Depends-on): Add stdint.
14074         * modules/unlink-busy: New module.
14075         * modules/utimecmp (Depends-on): Add stdint.
14076         * modules/uptime: New module.
14077         * modules/winsz-ioctl: New module.
14078         * modules/winsz-termios: New module.
14079         * modules/xnanosleep (Depends-on): Add nanosleep.
14080         * modules/ullong_max: Remove.
14081         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
14082         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
14083         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
14084         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
14085         (Depends-on): Add inttypes.
14086         (lib_SOURCES): Add xstrtol.h.
14087         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
14088         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
14089         * MODULES.html.sh: Move 'assert' into the assert section.
14090         Move 'dummy' into the linking section.
14091         Remove ullong_max.
14092         Add section for compatibility checks for POSIX:2001 functions,
14093         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
14094         winsz-ioctl, and winsz-termios into it.
14095         Add lchmod.
14096         Add top-level Misc section and put host-os, perl, and uptime
14097         into it.
14098
14099 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14100
14101         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
14102         now assume the stdint module.  Do not include inttypes.h.
14103         * lib/fsusage.h: Likewise.
14104         * lib/getndelim2.c: Likewise.
14105         * lib/human.h: Likewise.
14106         * lib/inttostr.h: Likewise.
14107         * lib/obstack.c: Likewise.
14108         * lib/regex_internal.h: Likewise.
14109         * lib/tempname.c: Likewise.
14110         * lib/utimecmp.c: Likewise.
14111         * lib/xstrtol.h: Likewise.
14112
14113         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
14114
14115         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
14116         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
14117         * lib/xtime.h: Likewise.
14118
14119 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14120
14121         * modules/openat (Files): Add lib/fchmodat.c.
14122         Fixes problem reported by Jay Youngman.
14123
14124 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14125
14126         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
14127         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
14128
14129 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14130             Bruno Haible  <bruno@clisp.org>
14131
14132         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
14133         and is a script that invokes bison. Tighten the code. Add comments.
14134
14135 2006-08-18  Jim Meyering  <jim@meyering.net>
14136
14137         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
14138         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
14139         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
14140         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
14141
14142 2006-08-18  Bruno Haible  <bruno@clisp.org>
14143
14144         * modules/bison-i18n: New file.
14145         * MODULES.html.sh (Internationalization functions): Add it.
14146
14147 2006-08-18  Bruno Haible  <bruno@clisp.org>
14148
14149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
14150         sys/statvfs.h. When getmntinfo was found, check its declaration and
14151         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
14152
14153 2006-08-18  Bruno Haible  <bruno@clisp.org>
14154
14155         * m4/bison-i18n.m4: New file, from bison.
14156
14157 2006-08-18  Bruno Haible  <bruno@clisp.org>
14158
14159         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
14160         (ME_DUMMY): Treat "kernfs" as a dummy.
14161         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
14162
14163 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14164
14165         Update from coreutils.
14166
14167         2006-08-15  Jim Meyering  <jim@meyering.net>
14168
14169         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
14170
14171         2006-01-17  Jim Meyering  <jim@meyering.net>
14172
14173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
14174
14175         2006-01-11  Jim Meyering  <jim@meyering.net>
14176
14177         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
14178         Check for the lchmod function.
14179
14180 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14181
14182         Update from coreutils.
14183
14184         * lib/__fpending.h: Add copyright notice.
14185         * lib/fprintftime.h: Likewise.
14186         * lib/savedir.c: Use (C) in copyright notice.
14187         * lib/savedir.h: Likewise.
14188
14189         2006-08-15  Jim Meyering  <jim@meyering.net>
14190
14191         * lib/at-func.c: New file, with the logic of all emulated at-functions.
14192         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
14193         in support of the EXPECTED_ERRNO macro.
14194         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
14195         definitions.  Instead, define the appropriate symbols and include
14196         "at-func.c".
14197         * lib/mkdirat.c (mkdirat): Likewise.
14198         * lib/fchmodat.c (fchmodat): Likewise.
14199         (ENOSYS): Remove definition.
14200         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
14201         it.  Don't include "unistd--.h" -- it wasn't ever used.
14202
14203         2006-01-17  Jim Meyering  <jim@meyering.net>
14204
14205         Rewrite fts.c not to change the current working directory,
14206         by using openat, fstatat, fdopendir, etc..
14207
14208         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
14209         (HAVE_OPENAT_SUPPORT): Define.
14210         [_LIBC] (fchdir): Don't undef or define; no longer used.
14211         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
14212         Now, this `function' always succeeds, and consumes its file descriptor
14213         parameter -- so callers must not close such FDs.  Update callers.
14214         (diropen_fd, opendirat, cwd_advance_fd): New functions.
14215         (diropen): Add parameter, SP.  Adjust all callers.
14216         Implement using diropen_fd, rather than open.
14217         (fts_open): Initialize new member, fts_cwd_fd.
14218         Remove fts_rft-setting code.
14219         (fts_close): Close fts_cwd_fd, if necessary.
14220         (__opendir2): Define in terms of opendir or opendirat,
14221         depending on whether the FST_NOCHDIR flag is set.
14222         (fts_build): Since fts_safe_changedir consumes its FD, and since
14223         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
14224         and close the dup'd file descriptor upon failure.
14225         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
14226         (fts_safe_changedir): Tweak semantics to reflect that this function
14227         now calls cwd_advance_fd and hence consumes its FD argument.
14228         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
14229         [struct FTS] (fts_rft): Remove now-unused member.
14230         [struct FTS] (fts_cycle.state): Improve comment.
14231
14232         * lib/openat.c (openat_needs_fchdir): New function.
14233         * lib/openat.h (openat_needs_fchdir): Declare it.
14234
14235 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
14236
14237         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
14238         Problem and fix reported by Pádraig Brady in
14239         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
14240
14241 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14242
14243         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
14244
14245 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14246
14247         * lib/memcoll.c (memcoll): Optimize for the common case where the
14248         arguments are bytewise equal.
14249
14250 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14251
14252         * doc/regexprops-generic.texi: Add a copyright notice.
14253
14254 2006-08-15  Bruno Haible  <bruno@clisp.org>
14255
14256         * modules/tmpdir (License): Change to LGPL.
14257
14258 2006-08-15  Bruno Haible  <bruno@clisp.org>
14259
14260         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
14261         module.
14262
14263 2006-08-14  Simon Josefsson  <jas@extundo.com>
14264
14265         * config/srclist.txt: Add gnupload.
14266
14267 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14268
14269         Change copyright notice from LGPL 2 to GPL 2, since that's the
14270         standard form used in the gnulib repository.
14271         * tests/test-lock.c: Likewise.
14272         * tests/test-stdint.c: Likewise.
14273         * tests/test-tls.c: Likewise.
14274
14275         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
14276         prelude-manager.  User shorter URLs for GNU projects, without '?'.
14277         Add copyright notice.
14278
14279         * check-module: Add copyright notice.  Output a copyright
14280         notice if "--version" is specified.
14281         * modules/COPYING: New file.
14282         * tests/test-getaddrinfo.c: Add copyright notice.
14283         * tests/test-verify.c: Likewise.
14284
14285 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14286
14287         Change copyright notice from LGPL 2 to GPL 2, since that's the
14288         standard form used in the gnulib repository.
14289         * lib/lock.c: LGPL -> GPL.
14290         * lib/lock.h: Likewise.
14291         * lib/strnlen1.c: Likewise.
14292         * lib/strnlen1.h: Likewise.
14293         * lib/tls.c: Likewise.
14294         * lib/tls.h: Likewise.
14295         * lib/tmpdir.c: Likewise.
14296
14297         * lib/TODO: Remove; this belongs only in coreutils.
14298
14299 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14300
14301         Add copyright notices to long-enough files that lack them, since
14302         otherwise the files aren't clearly free.  Use the same notice that
14303         getdate.texi already uses.
14304         * doc/alloca-opt.texi: Add copyright notice.
14305         * doc/alloca.texi: Likewise.
14306         * doc/ctime.texi: Likewise.
14307         * doc/functions.texi: Likewise.
14308         * doc/gcd.texi: Likewise.
14309         * doc/gnulib-tool.texi: Likewise.
14310         * doc/inet_ntoa.texi: Likewise.
14311         * doc/visibility.texi: Likewise.
14312
14313         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
14314         * doc/quote.texi: Add copyright notice.
14315
14316         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
14317         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
14318         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
14319         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
14320         is now obsolete, and give a pointer to the Sun list.
14321         Add copyright notice.
14322
14323 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14324
14325         * config/srclistvars.sh: Add copyright notice.
14326
14327 2006-08-14  Eric Blake  <ebb9@byu.net>
14328
14329         Import the following change from libc:
14330
14331         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
14332
14333         Upstream bug 2997.
14334         * lib/misc/error.c: Add space between program name and message if file
14335         name is missing.
14336
14337 2006-08-12  Karl Berry  <karl@gnu.org>
14338
14339         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
14340         remove, these originate in gnulib now.
14341
14342 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14343
14344         * doc/Makefile (standards.info standards.html standards.dvi):
14345         Also depend on make-stds.texi.
14346
14347 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14348
14349         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
14350         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
14351
14352         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
14353         in wchar_t.  Problem reported by Eric Blake.
14354
14355         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
14356         LEN is smaller than SIZE.  Suggested by Bruno Haible.
14357         Also, help the compiler to keep LEN in a register.
14358
14359 2006-08-11  Eric Blake  <ebb9@byu.net>
14360
14361         * users.txt: Sort.  Add tar.
14362
14363 2006-08-11  Bruno Haible  <bruno@clisp.org>
14364
14365         * users.txt: New file.
14366
14367 2006-08-11  Bruno Haible  <bruno@clisp.org>
14368
14369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
14370         before <wchar.h>. Needed for OSF/1 and BSD/OS.
14371
14372 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14373
14374         * modules/snprintf (Depends-on): Remove minmax.
14375         (Maintainer): Add self and Bruno.
14376
14377 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14378
14379         * lib/.cppi-disable: Add snprintf.h, socket_.h.
14380         * lib/snprintf.c: Include <errno.h> and <limits.h>.
14381         (EOVERFLOW): Define if the system does not.
14382         Do not include "minmax.h"; it wasn't used.
14383         (snprintf): Don't assume size_t promotes to an unsigned type.
14384         Fix bug when generated string was too long for the buffer: the
14385         buffer's contents are supposed to be the initial prefix of the
14386         output.  Don't assume vasnprintf returns EOVERFLOW if the size
14387         exceeds INT_MAX; do the check ourselves.
14388
14389         Import the following changes from libc:
14390
14391         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14392
14393         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
14394         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
14395         set wc to the byte which couldn't be converted.
14396         (re_string_reconstruct): Don't clear valid_raw_len before calling
14397         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14398         tip_context using re_string_context_at.
14399
14400         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
14401
14402         * lib/posix/regex.h: g++ still cannot handled [restrict].
14403
14404         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
14405
14406         * lib/posix/regex.h: Remove special handling for VMS.
14407
14408 2006-08-10  Jim Meyering  <jim@meyering.net>
14409
14410         * modules/same-inode: New module.
14411         * modules/dev-ino: New module.
14412         * modules/cycle-check: Depend on these modules, rather than simply
14413         including their .h files.
14414         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
14415         required via m4/cycle-check.m4.
14416         * modules/same: Depend on new same-inode module, rather than
14417         including same-inode.h.
14418         * modules/chdir-safer: New file.
14419
14420         * modules/chown (Depends-on): Add stat-macros.
14421
14422 2006-08-10  Jim Meyering  <jim@meyering.net>
14423
14424         * m4/cycle-check.m4: New file.
14425         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
14426         * m4/dev-ino.m4, m4/same-inode.m4: New files.
14427
14428 2006-08-10  Eric Blake  <ebb9@byu.net>
14429
14430         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
14431         in from original proposal.
14432
14433 2006-08-10  Eric Blake  <ebb9@byu.net>
14434         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14435
14436         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
14437         namespace.
14438
14439 2006-08-10  Bruno Haible  <bruno@clisp.org>
14440
14441         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
14442         as well.
14443
14444 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14445
14446         Sync from coreutils.
14447
14448         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
14449
14450         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
14451         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
14452
14453 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14454
14455         * modules/restrict: Remove; no longer needed now that we assume
14456         Autoconf 2.59 or later.
14457         * MODULES.html.sh: Remove 'restrict'.
14458         * modules/argp (Depends-on): Remove 'restrict'.
14459         * modules/base64 (Depends-on): Likewise.
14460         * modules/gc (Depends-on): Likewise.
14461         * modules/getaddrinfo (Depends-on): Likewise.
14462         * modules/glob (Depends-on): Likewise.
14463         * modules/inet_ntop (Depends-on): Likewise.
14464         * modules/inet_pton (Depends-on): Likewise.
14465         * modules/memxor (Depends-on): Likewise.
14466         * modules/regex (Depends-on): Likewise.
14467         * modules/strtok_r (Depends-on): Likewise.
14468         * modules/time_r (Depends-on): Likewise.
14469
14470 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14471
14472         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
14473         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
14474         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14475         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
14476         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14477         * m4/memxor.m4 (gl_MEMXOR): Likewise.
14478         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
14479         gl_C_RESTRICT replaced by AC_C_RESTRICT.
14480
14481         Merge from coreutils.
14482         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
14483         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
14484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14485         * m4/time_r.m4 (gl_TIME_R): Likewise.
14486
14487 2006-08-09  Karl Berry  <karl@gnu.org>
14488
14489         * config/srclist.txt: no more gettext-tools, per Bruno.
14490
14491 2006-08-08  Eric Blake  <ebb9@byu.net>
14492
14493         * modules/verror: New module.
14494         * MODULES.html.sh: Document it.
14495
14496 2006-08-08  Eric Blake  <ebb9@byu.net>
14497
14498         * lib/verror.h, lib/verror.c: New files.
14499
14500 2006-08-08  Eric Blake  <ebb9@byu.net>
14501
14502         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
14503         verror_at_line output complies with GNU Coding Standards even when
14504         file is NULL.
14505
14506 2006-08-07  Bruno Haible  <bruno@clisp.org>
14507
14508         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
14509         versions of AIX.
14510         Reported by Ralf Wildenhues.
14511
14512 2006-08-07  Bruno Haible  <bruno@clisp.org>
14513
14514         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
14515         in an AC_DEFUN. Needed so that the autoconf snippets can use
14516         AC_REQUIRE.
14517
14518 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14519
14520         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14521         Initialize pkgdata_DATA.
14522         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
14523         overriding it.
14524
14525 2006-08-06  Eric Blake  <ebb9@byu.net>
14526
14527         * lib/error.h: Fold in some upstream changes from glibc.
14528         * lib/error.c: Likewise.
14529
14530 2006-08-04  Bruno Haible  <bruno@clisp.org>
14531
14532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14533         Make the mostlyclean-local rule depend on mostlyclean-generic.
14534         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
14535
14536 2006-07-31  Bruno Haible  <bruno@clisp.org>
14537
14538         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
14539         <stdlib.h>, <string.h>.
14540
14541 2006-07-30  Bruno Haible  <bruno@clisp.org>
14542
14543         * modules/readlink (License): Change to LGPL.
14544
14545 2006-07-30  Bruno Haible  <bruno@clisp.org>
14546
14547         * modules/javaversion (Makefile.am): Distribute javaversion.java and
14548         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
14549         set PKGDATADIR to point to it.
14550
14551 2006-07-30  Bruno Haible  <bruno@clisp.org>
14552
14553         * modules/csharpexec (configure.ac): Comment out macro invocation.
14554         * modules/javaexec (configure.ac): Likewise.
14555         * modules/javacomp-script (configure.ac): Likewise.
14556
14557         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
14558
14559 2006-07-30  Bruno Haible  <bruno@clisp.org>
14560
14561         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
14562         linked-list.
14563
14564 2006-07-30  Bruno Haible  <bruno@clisp.org>
14565
14566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
14567
14568 2006-07-30  Bruno Haible  <bruno@clisp.org>
14569
14570         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14571         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
14572         get removed.
14573
14574 2006-07-29  Bruno Haible  <bruno@clisp.org>
14575
14576         Make it possible for gnulib-tool to work with locally modified or
14577         augmented gnulib repositories.
14578         * gnulib-tool (func_usage): Document --local-dir option.
14579         (local_gnulib_dir): New variable.
14580         Handle --local-dir option.
14581         (func_lookup_file): New function.
14582         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
14583         (func_get_description, func_get_filelist, func_get_description,
14584         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
14585         func_get_automake_snippet, func_get_include_directive,
14586         func_get_license, func_get_maintainer): Use func_lookup_file.
14587         (func_import, func_create_testdir): Use func_lookup_file.
14588
14589 2006-07-29  Bruno Haible  <bruno@clisp.org>
14590
14591         * modules/setenv (Depends-on): Add unistd.
14592
14593 2006-07-29  Bruno Haible  <bruno@clisp.org>
14594
14595         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
14596
14597 2006-07-29  Bruno Haible  <bruno@clisp.org>
14598
14599         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
14600
14601 2006-07-29  Bruno Haible  <bruno@clisp.org>
14602
14603         * gnulib-tool (import, update): If there is no Makefile.am, look at
14604         aclocal.m4, instead of bailing out.
14605
14606 2006-07-29  Bruno Haible  <bruno@clisp.org>
14607
14608         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
14609         Categorize the options by when they are useful.
14610
14611 2006-07-29  Bruno Haible  <bruno@clisp.org>
14612
14613         * gnulib-tool (func_usage): Document option --no-libtool.
14614         Handle option --no-libtool.
14615         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
14616         for changed semantics of $libtool variable.
14617         (func_import): Likewise. If libtool is not used, show this through
14618         an option --no-libtool.
14619         (func_create_testdir): Update.
14620
14621 2006-07-29  Bruno Haible  <bruno@clisp.org>
14622
14623         * gnulib-tool (func_import): Extend error message about missing
14624         --doc-base.
14625
14626 2006-07-29  Bruno Haible  <bruno@clisp.org>
14627
14628         * gnulib-tool (func_import): Don't create the $docbase directory if
14629         there is no file to store there.
14630
14631 2006-07-29  Bruno Haible  <bruno@clisp.org>
14632
14633         * gnulib-tool (autoconf_minversion): If a --dir option is given and
14634         relevant, look for configure.ac there, not in the current directory.
14635         Also use a simple search for AC_PREREQ, not "autoconf --trace".
14636
14637 2006-07-29  Bruno Haible  <bruno@clisp.org>
14638
14639         * gnulib-tool (SORT): New variable.
14640         (func_usage): Undocument --assume-autoconf option.
14641         Remove --assume-autoconf option handling.
14642         (autoconf_minversion): Determine from the contents of configure.ac.
14643         (func_import): Remove autoconf_minversion handling.
14644         Suggested by Eric Blake.
14645
14646 2006-07-29  Bruno Haible  <bruno@clisp.org>
14647
14648         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
14649
14650 2006-07-29  Bruno Haible  <bruno@clisp.org>
14651
14652         * config/srclist.txt (*setenv.[ch]): Remove rules.
14653
14654 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14655
14656         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
14657
14658 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14659
14660         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
14661         arpa/inet.h.
14662
14663 2006-07-28  Simon Josefsson  <jas@extundo.com>
14664
14665         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
14666         * modules/inet_pton (Depends-on): Likewise.
14667
14668 2006-07-28  Simon Josefsson  <jas@extundo.com>
14669
14670         * m4/netinet_in_h.m4: New file.
14671
14672 2006-07-28  Simon Josefsson  <jas@extundo.com>
14673
14674         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
14675         #include's.
14676
14677 2006-07-28  Simon Josefsson  <jas@extundo.com>
14678
14679         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
14680         #include's.
14681
14682 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
14683
14684         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
14685         setgid on directories only if they set these bits.
14686         * lib/modechange.h: Remove obsolete comment about masks.
14687
14688 2006-07-28  Eric Blake  <ebb9@byu.net>
14689
14690         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
14691         macro expansion.
14692
14693 2006-07-28  Bruno Haible  <bruno@clisp.org>
14694
14695         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
14696
14697 2006-07-28  Bruno Haible  <bruno@clisp.org>
14698
14699         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
14700
14701 2006-07-28  Bruno Haible  <bruno@clisp.org>
14702
14703         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14704         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14705         Define fallbacks.
14706         Avoids link error on FreeBSD 4.x.
14707         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14708
14709         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
14710         encoding.
14711         * lib/mbswidth.c (iswcntrl): Likewise.
14712
14713 2006-07-27  Bruno Haible  <bruno@clisp.org>
14714
14715         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
14716         test.
14717
14718 2006-07-27  Bruno Haible  <bruno@clisp.org>
14719
14720         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
14721         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
14722         defined.
14723
14724 2006-07-26  Eric Blake  <ebb9@byu.net>
14725
14726         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
14727
14728 2006-07-26  Eric Blake  <ebb9@byu.net>
14729
14730         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
14731         like mingw that lack mkstemp.
14732         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
14733         avoid compilation warning on mingw.
14734
14735 2006-07-26  Bruno Haible  <bruno@clisp.org>
14736
14737         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
14738         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
14739         INT_FAST*_MIN, INTPTR_MIN.
14740
14741 2006-07-25  Bruno Haible  <bruno@clisp.org>
14742
14743         * modules/version-etc (Depends-on): Add stdarg.
14744
14745 2006-07-25  Bruno Haible  <bruno@clisp.org>
14746
14747         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
14748         complex commands.
14749
14750 2006-07-25  Bruno Haible  <bruno@clisp.org>
14751
14752         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
14753         defined in <stdarg.h> or config.h.
14754
14755 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14756
14757         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
14758         (gl_STDIO_SAFER): Remove.
14759
14760 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14761
14762         * MODULES.html.sh (File stream based Input/Output):
14763         Add fopen-safer, tmpfile-safer; remove stdio-safer.
14764         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
14765         * modules/fopen-safer, modules/tmpfile-safer: New files.
14766         * modules/stdio-safer: Remove.
14767
14768 2006-07-24  Bruno Haible  <bruno@clisp.org>
14769
14770         * modules/tmpdir: New file.
14771         * MODULES.html.sh (File system functions): Add it.
14772
14773 2006-07-24  Bruno Haible  <bruno@clisp.org>
14774
14775         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
14776         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
14777
14778 2006-07-24  Bruno Haible  <bruno@clisp.org>
14779
14780         * modules/clean-temp: New file.
14781
14782 2006-07-24  Bruno Haible  <bruno@clisp.org>
14783
14784         * m4/tmpdir.m4: New file, from GNU gettext.
14785
14786 2006-07-24  Bruno Haible  <bruno@clisp.org>
14787
14788         * lib/tmpdir.h: New file, from GNU gettext.
14789         * lib/tmpdir.c: New file, from GNU gettext.
14790
14791 2006-07-24  Bruno Haible  <bruno@clisp.org>
14792
14793         * lib/clean-temp.h: New file, from GNU gettext.
14794         * lib/clean-temp.c: New file, from GNU gettext.
14795
14796 2006-07-23  Eric Blake  <ebb9@byu.net>
14797
14798         * modules/stdio-safer (Files): Add tmpfile-safer.c.
14799         (Depends-on): Add binary-io.
14800
14801 2006-07-23  Eric Blake  <ebb9@byu.net>
14802
14803         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
14804
14805 2006-07-23  Eric Blake  <ebb9@byu.net>
14806
14807         * lib/tmpfile-safer.c: New file.
14808         * lib/stdio-safer.h (fopen_safer): Add prototype.
14809         * lib/stdio--.h (tmpfile): Make safer.
14810
14811 2006-07-23  Bruno Haible  <bruno@clisp.org>
14812
14813         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
14814         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
14815         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
14816         gl_linked_remove_at): Use it.
14817
14818 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14819         and Simon Josefsson <jas@extundo.com>
14820
14821         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
14822
14823         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
14824
14825 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14826
14827         * modules/close-stream: New file.
14828         * modules/closeout (Description): Make it clear that it exits
14829         with a diagnostic on error.
14830         (Depends-on): Add close-stream.  Remove fpending, stdbool.
14831         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
14832
14833 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14834
14835         * m4/close-stream.m4: New file.
14836
14837 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14838
14839         * lib/close-stream.c, lib/close-stream.h: New files.
14840
14841 2006-07-22  Bruno Haible  <bruno@clisp.org>
14842
14843         Merge from GNU gettext 0.15.
14844
14845         2006-05-01  Bruno Haible  <bruno@clisp.org>
14846
14847                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
14848
14849         2006-07-22  Bruno Haible  <bruno@clisp.org>
14850
14851                 * modules/javaversion: New file.
14852                 * MODULES.html.sh (Java): Add javaversion.
14853
14854         2006-03-12  Bruno Haible  <bruno@clisp.org>
14855
14856                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
14857
14858         2005-12-04  Bruno Haible  <bruno@clisp.org>
14859
14860                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
14861                 (untested).
14862
14863         2006-06-21  Bruno Haible  <bruno@clisp.org>
14864
14865                 Avoid warnings from recent versions of mcs.
14866                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
14867                 -o, -L, -r any more. Use options documented since mcs-1.0
14868                 instead. Similarly for -g.
14869
14870         2005-12-04  Bruno Haible  <bruno@clisp.org>
14871
14872                 * build-aux/csharpcomp.sh.in: Suffix for resources is
14873                 .resources, not .resource.
14874
14875         2005-07-09  Bruno Haible  <bruno@clisp.org>
14876
14877                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
14878                 add a .dll suffix.
14879                 Reported by Mark Junker <mjscod@gmx.de>.
14880
14881         2006-07-22  Bruno Haible  <bruno@clisp.org>
14882
14883                 * modules/gettext: Upgrade to gettext-0.15.
14884                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
14885                 m4/visibility.m4.
14886                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
14887
14888 2006-07-22  Bruno Haible  <bruno@clisp.org>
14889
14890         Merge from GNU gettext 0.15.
14891
14892         2006-03-25  Bruno Haible  <bruno@clisp.org>
14893
14894                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
14895
14896         2006-07-21  Bruno Haible  <bruno@clisp.org>
14897
14898                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
14899                 "1.1".
14900
14901         2006-05-09  Bruno Haible  <bruno@clisp.org>
14902
14903                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
14904                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
14905                 for the conftestver execution.
14906
14907         2006-05-01  Bruno Haible  <bruno@clisp.org>
14908
14909                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
14910                 optional target-version argument. Verify that the compiler
14911                 groks source of the specified source-version, or add -source
14912                 option as necessary. Verify that the compiler produces
14913                 bytecode in the specified target-version, or add -target and
14914                 -source options as necessary. Make the result of the test
14915                 available as variable CONF_JAVAC. Also log error output in
14916                 config.log.
14917
14918         2006-03-11  Bruno Haible  <bruno@clisp.org>
14919
14920                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
14921
14922         2006-05-09  Bruno Haible  <bruno@clisp.org>
14923
14924                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
14925                 CLASSPATH_SEPARATOR to a semicolon.
14926
14927         2006-03-12  Bruno Haible  <bruno@clisp.org>
14928
14929                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
14930                 available as variable CONF_JAVA, for subsequent autoconf
14931                 tests. Also log error output in config.log.
14932
14933         2006-07-19  Bruno Haible  <bruno@clisp.org>
14934
14935                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
14936                 that getline works on glibc2 systems. Needed to avoid trouble
14937                 in relocatable.c.
14938                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
14939
14940         2005-12-04  Bruno Haible  <bruno@clisp.org>
14941
14942                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
14943                 launcher (untested).
14944
14945         2005-12-04  Bruno Haible  <bruno@clisp.org>
14946
14947                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
14948
14949         2006-07-22  Bruno Haible  <bruno@clisp.org>
14950
14951                 * gettext.m4: Update from GNU gettext-0.15.
14952                 * nls.m4: Likewise.
14953                 * po.m4: Likewise.
14954                 * inttypes-pri.m4: Likewise.
14955                 * inttypes-h.m4: Renamed from inttypes.m4.
14956                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
14957
14958 2006-07-22  Bruno Haible  <bruno@clisp.org>
14959
14960         Merge from GNU gettext 0.15.
14961
14962         2005-07-05  Bruno Haible  <bruno@clisp.org>
14963
14964                 * printf-args.c (printf_fetchargs): Work around broken
14965                 definition of wint_t on mingw.
14966
14967         2005-02-12  Bruno Haible  <bruno@clisp.org>
14968
14969                 * xallocsa.h: Add extern "C" for C++.
14970
14971         2006-05-17  Bruno Haible  <bruno@clisp.org>
14972
14973                 Cygwin portability.
14974                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
14975
14976         2006-04-30  Bruno Haible  <bruno@clisp.org>
14977
14978                 * progreloc.c: Include <mach-o/dyld.h> if available.
14979                 (find_executable): Use _NSGetExecutablePath when possible.
14980
14981         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14982
14983                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
14984                 function.
14985
14986         2005-12-29  Bruno Haible  <bruno@clisp.org>
14987
14988                 * progreloc.c (set_program_name_and_installdir): Fix
14989                 compilation error.
14990
14991         2005-12-04  Bruno Haible  <bruno@clisp.org>
14992
14993                 Cygwin portability.
14994                 * progreloc.c: Include <windows.h> also on Cygwin.
14995                 (find_executable): Add support for Cygwin.
14996                 (set_program_name_and_installdir): Handle also platforms with
14997                 nonempty EXEEXT.
14998
14999         2006-07-11  Bruno Haible  <bruno@clisp.org>
15000
15001                 * javacomp.c: Fix a comment.
15002                 Reported by Jim Meyering.
15003
15004         2006-04-30  Bruno Haible  <bruno@clisp.org>
15005
15006                 * javacomp.h (compile_java_class): Add source_version,
15007                 target_version arguments.
15008                 * javacomp.c: Rewritten to choose only a compiler that
15009                 respects the specified source_version and target_version.
15010
15011         2006-06-27  Bruno Haible  <bruno@clisp.org>
15012
15013                 Assume correct S_ISDIR macro.
15014                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
15015
15016         2006-07-22  Bruno Haible  <bruno@clisp.org>
15017
15018                 * javaversion.h: New file, from GNU gettext.
15019                 * javaversion.c: New file, from GNU gettext.
15020                 * javaversion.java: New file, from GNU gettext.
15021                 * javaversion.class: New file, from GNU gettext.
15022
15023         2006-05-17  Bruno Haible  <bruno@clisp.org>
15024
15025                 Cygwin portability.
15026                 * javaexec.c (execute_java_class): Test for jview program
15027                 also on Cygwin.
15028
15029         2006-04-09  Bruno Haible  <bruno@clisp.org>
15030
15031                 * fatal-signal.c: Don't include string.h.
15032                 (at_fatal_signal): Use a copying loop instead of memcpy.
15033
15034         2005-12-04  Bruno Haible  <bruno@clisp.org>
15035
15036                 * csharpexec.c: Add support for 'clix' launcher (untested).
15037                 (execute_csharp_using_sscli): New function.
15038                 (execute_csharp_program): Call it.
15039
15040         2006-06-21  Bruno Haible  <bruno@clisp.org>
15041
15042                 Avoid warnings from recent versions of mcs.
15043                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
15044                 -o, -L, -r any more. Use options documented since mcs-1.0
15045                 instead. Similarly for -g.
15046
15047         2005-07-09  Bruno Haible  <bruno@clisp.org>
15048
15049                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
15050                 add a .dll suffix.
15051                 Reported by Mark Junker <mjscod@gmx.de>.
15052
15053         2006-06-17  Bruno Haible  <bruno@clisp.org>
15054
15055                 * config.charset: Update for NetBSD 3.0.
15056
15057         2006-05-17  Bruno Haible  <bruno@clisp.org>
15058
15059                 Cygwin portability.
15060                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
15061
15062         2006-05-16  Bruno Haible  <bruno@clisp.org>
15063
15064                 * localcharset.c [CYGWIN]: Include <windows.h>.
15065                 (get_charset_aliases): For Cygwin, return the same CPxxx
15066                 aliases list as under WIN32.
15067                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
15068                 the environment variables. Fall back to GetACP().
15069
15070         2006-04-05  Bruno Haible  <bruno@clisp.org>
15071
15072                 * config.charset: Update Juan Manuel Guerrero's address.
15073
15074         2005-02-12  Bruno Haible  <bruno@clisp.org>
15075
15076                 * allocsa.h: Add extern "C" for C++.
15077
15078         2005-02-10  Bruno Haible  <bruno@clisp.org>
15079
15080                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
15081                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
15082
15083         2006-07-22  Bruno Haible  <bruno@clisp.org>
15084
15085                 * gettext.h: Update to GNU gettext-0.15.
15086
15087 2006-07-22  Bruno Haible  <bruno@clisp.org>
15088
15089         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
15090         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
15091         lib-prefix.m4, longdouble.m4, ssize_t.m4.
15092
15093 2006-07-21  Eric Blake  <ebb9@byu.net>
15094
15095         * modules/stdlib-safer: New file.
15096         * MODULES.html.sh (File stream based Input/Output): Add
15097         stdlib-safer.
15098
15099 2006-07-21  Eric Blake  <ebb9@byu.net>
15100
15101         * lib/stdlib-safer.h: New file from coreutils, required by
15102         stdlib--.h.
15103
15104 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
15105
15106         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
15107
15108 2006-07-20  Bruno Haible  <bruno@clisp.org>
15109
15110         * gnulib-tool: Recognize new option --assume-autoconf.
15111         (autoconf_minversion): New variable.
15112         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
15113
15114 2006-07-20  Bruno Haible  <bruno@clisp.org>
15115
15116         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
15117
15118 2006-07-19  Derek R. Price  <derek@ximbiot.com>
15119
15120         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
15121         Reindent and repaginate.
15122
15123 2006-07-19  Derek Price  <derek@ximbiot.com>
15124
15125         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
15126         Correct grammar.
15127
15128 2006-07-17  Bruno Haible  <bruno@clisp.org>
15129
15130         * modules/list: New file.
15131         * modules/array-list: New file.
15132         * modules/carray-list, modules/carray-list-tests: New files.
15133         * modules/linked-list, modules/linked-list-tests: New files.
15134         * modules/avltree-list, modules/avltree-list-tests: New files.
15135         * modules/rbtree-list, modules/rbtree-list-tests: New files.
15136         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
15137         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
15138         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
15139         * modules/oset: New file.
15140         * modules/array-oset: New file.
15141         * modules/avltree-oset, modules/avltree-oset-tests: New files.
15142         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
15143         * tests/test-carray_list.c: New file.
15144         * tests/test-linked_list.c: New file.
15145         * tests/test-avltree_list.c: New file.
15146         * tests/test-rbtree_list.c: New file.
15147         * tests/test-linkedhash_list.c: New file.
15148         * tests/test-avltreehash_list.c: New file.
15149         * tests/test-rbtreehash_list.c: New file.
15150         * tests/test-avltree_oset.c: New file.
15151         * tests/test-rbtree_oset.c: New file.
15152         * MODULES.html.sh (Container data structures): New section.
15153
15154 2006-07-17  Bruno Haible  <bruno@clisp.org>
15155
15156         * m4/gl_list.m4: New file.
15157
15158 2006-07-17  Bruno Haible  <bruno@clisp.org>
15159
15160         * lib/gl_list.h: New file.
15161         * lib/gl_list.c: New file.
15162         * lib/gl_array_list.h: New file.
15163         * lib/gl_array_list.c: New file.
15164         * lib/gl_carray_list.h: New file.
15165         * lib/gl_carray_list.c: New file.
15166         * lib/gl_linked_list.h: New file.
15167         * lib/gl_linked_list.c: New file.
15168         * lib/gl_anylinked_list1.h: New file.
15169         * lib/gl_anylinked_list2.h: New file.
15170         * lib/gl_avltree_list.h: New file.
15171         * lib/gl_avltree_list.c: New file.
15172         * lib/gl_anyavltree_list1.h: New file.
15173         * lib/gl_anyavltree_list2.h: New file.
15174         * lib/gl_rbtree_list.h: New file.
15175         * lib/gl_rbtree_list.c: New file.
15176         * lib/gl_anyrbtree_list1.h: New file.
15177         * lib/gl_anyrbtree_list2.h: New file.
15178         * lib/gl_anytree_list1.h: New file.
15179         * lib/gl_anytree_list2.h: New file.
15180         * lib/gl_linkedhash_list.h: New file.
15181         * lib/gl_linkedhash_list.c: New file.
15182         * lib/gl_anyhash_list1.h: New file.
15183         * lib/gl_anyhash_list2.h: New file.
15184         * lib/gl_avltreehash_list.h: New file.
15185         * lib/gl_avltreehash_list.c: New file.
15186         * lib/gl_rbtreehash_list.h: New file.
15187         * lib/gl_rbtreehash_list.c: New file.
15188         * lib/gl_anytreehash_list1.h: New file.
15189         * lib/gl_anytreehash_list2.h: New file.
15190
15191         * lib/gl_oset.h: New file.
15192         * lib/gl_oset.c: New file.
15193         * lib/gl_array_oset.h: New file.
15194         * lib/gl_array_oset.c: New file.
15195         * lib/gl_avltree_oset.h: New file.
15196         * lib/gl_avltree_oset.c: New file.
15197         * lib/gl_rbtree_oset.h: New file.
15198         * lib/gl_rbtree_oset.c: New file.
15199         * lib/gl_anytree_oset.h: New file.
15200
15201 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15202
15203         * m4/mkancesdirs.m4: New file.
15204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
15205         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
15206         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
15207         it.
15208
15209 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15210
15211         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
15212         * lib/mkancesdirs.h: New files.
15213         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
15214         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
15215         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
15216         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
15217         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
15218         callers changed.  Revamp internals significantly, by not
15219         attempting to create directories that are temporarily more
15220         permissive than the final results.  Do not attempt to use
15221         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
15222         This removes some race conditions, fixes some bugs, and simplifies
15223         things.  Use new dirchownmod function to do owner and mode changes.
15224         * lib/mkdir-p.h: Likewise.
15225         * lib/modechange.c (octal_to_mode): New function.
15226         (struct mode_change): New member mentioned.
15227         (make_node_op_equals): New arg mentioned.  All callers changed.
15228         (mode_compile): Keep track of which mode bits the user has explicitly
15229         mentioned.
15230         (mode_adjust): New arg DIR, so that we implement the X op correctly.
15231         New arg PMODE_BITS, to keep track of which mode bits the user
15232         mentioned; it treats S_ISUID and S_ISGID speciall.
15233         All callers changed.
15234         * lib/modechange.h: Likewise.
15235
15236 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15237
15238         * MODULES.html.sh: Add mkancestors.
15239         * modules/mkancesdirs: New module.
15240         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
15241         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
15242         The chdir-safer and afs files are now orphans; I'll remove them
15243         unless someone speaks up.
15244         Add lib/dirchownmod.c, lib/dirchownmod.h.
15245         (Depends-on): Remove alloca, chown, save-cwd, dirname.
15246         Add lchown, mkancesdirs.
15247         (Maintainer): Add self.
15248
15249 2006-07-15  Karl Berry  <karl@gnu.org>
15250
15251         * gnulib-tool: help message wording/arrangement.
15252
15253 2006-07-14  Simon Josefsson  <jas@extundo.com>
15254
15255         * doc/gnulib.texi (Libtool and Windows): New section.
15256
15257 2006-07-12  Simon Josefsson  <jas@extundo.com>
15258
15259         * modules/gendocs (License): Fix license, approved by Karl.
15260
15261 2006-07-12  Eric Blake  <ebb9@byu.net>
15262
15263         * MODULES.html.sh: Add gendocs.
15264
15265 2006-07-11  Eric Blake  <ebb9@byu.net>
15266
15267         * modules/fdl: New module, to install doc/fdl.texi.
15268         * MODULES.html.sh: Add new section for documentation modules.
15269         * gnulib-tool: Avoid space-tab.
15270         (--doc-base): New option, to manage files from doc.
15271
15272 2006-07-11  Eric Blake  <ebb9@byu.net>
15273
15274         * m4/absolute-header.m4: Fix comments to match recent change.
15275
15276 2006-07-11  Eric Blake  <ebb9@byu.net>
15277
15278         * gnulib-tool: List --doc-base before --tests-base.
15279
15280 2006-07-11  Derek R. Price  <derek@ximbiot.com>
15281
15282         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
15283
15284 2006-07-11  Bruno Haible  <bruno@clisp.org>
15285
15286         * README: Mention where to put documentation.
15287
15288 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15289
15290         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
15291
15292 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
15293
15294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
15295         to stdint.m4.
15296
15297 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
15300         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
15301         "no/such/file/stdint.h" when there is no such file, so that
15302         the resulting C code can be parsed by dodgy compilers.
15303         Problems reported by Bob Proulx.
15304
15305 2006-07-10  Derek R. Price  <derek@ximbiot.com>
15306
15307         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
15308         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
15309         macros into the GNU _D_EXACT_NAMLEN.
15310         * lib/savedir.c:  Likewise.
15311         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
15312
15313 2006-07-10  Derek R. Price  <derek@ximbiot.com>
15314         and Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
15317         * m4/savedir.m4:
15318         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
15319         macros into the GNU _D_EXACT_NAMLEN.
15320
15321 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15322
15323         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
15324         around the absolute name, to work around a problem with the HP-UX
15325         11.23 native C compiler, reported by Bob Proulx.
15326
15327 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15328
15329         * doc/maintain.texi, make-stds.texi: Sync from
15330         <http://savannah.gnu.org/projects/gnustandards>.
15331
15332 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15333
15334         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
15335
15336 2006-07-09  Jim Meyering  <jim@meyering.net>
15337
15338         * m4/glob.m4: Remove a doubled word in a comment.
15339
15340 2006-07-09  Jim Meyering  <jim@meyering.net>
15341
15342         * lib/argp-pv.c: Remove a doubled word in a comment.
15343         * lib/check-version.c (check_version): Likewise.
15344         * lib/javacomp.c (compile_java_class): Likewise.
15345
15346 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
15349         for the benefit of people using Autoconf 2.60.  If you want to
15350         support older Autoconf versions you can copy m4/onceonly_2_57.m4
15351         (or m4/onceonly.m4, if pre-2.57) manually.
15352
15353 2006-07-08  Jim Meyering  <jim@meyering.net>
15354
15355         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
15356         comment.
15357         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
15358         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
15359         comment.
15360
15361 2006-07-08  Jim Meyering  <jim@meyering.net>
15362
15363         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
15364
15365 2006-07-07  Simon Josefsson  <jas@extundo.com>
15366
15367         * tests/test-crc.c: Change expected crc value, the test vector
15368         were probably computed using the old broken crc.c?
15369
15370 2006-07-06  Simon Josefsson  <jas@extundo.com>
15371
15372         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
15373         now the canonical place for the M4 file).
15374
15375         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
15376         from the sys_socket dependency now.
15377
15378         * modules/inet_pton (Files): Ditto.
15379
15380         * modules/inet_ntop (Files): Ditto.
15381
15382 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
15383
15384         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
15385         not gl_PREREQ_GETUSERSHELL.
15386
15387 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15388
15389         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
15390         with only one argument, for Autoconf 2.60.
15391         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
15392         expand to nothing, so add a shell command to avoid syntax error.
15393         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15394
15395 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15396
15397         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
15398
15399 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
15402         no longer needed.  Check for isblank decl.
15403         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
15404         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
15405         of existence.
15406
15407 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15408
15409         * lib/getloadavg.c: Use __VMS, not VMS.
15410         * lib/getopt.c: Likewise.
15411         * lib/getpagesize.h: Likewise.
15412         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
15413         and probably does not work.
15414
15415 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15416
15417         * lib/.cppi-disable: Add wcwidth.
15418         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
15419         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
15420         (ISGRAPH): Remove.  All uses changed to isgraph.
15421         (FOLD) [!defined _LIBC]: Remove special case.
15422         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
15423         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
15424         HAVE_ISBLANK.
15425         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
15426         case.
15427
15428 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
15429
15430         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
15431         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
15432         brackets.  Other minor changes to suppress some compiler
15433         warnings.
15434
15435 2006-07-06  Derek R. Price  <derek@ximbiot.com>
15436         and Paul Eggert  <eggert@cs.ucla.edu>
15437
15438         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
15439         of invoking obsolescent AC_HEADER_DIRENT macro.
15440         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15441         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
15442         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15444         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
15445         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
15446         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
15447         * m4/readdir.m4: Remove; no longer needed.
15448
15449 2006-07-06  Derek R. Price  <derek@ximbiot.com>
15450         and Paul Eggert  <eggert@cs.ucla.edu>
15451
15452         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
15453         Don't worry about this obsolete case any more.
15454         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
15455         directories.
15456         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
15457         worry about this obsolete case any more.
15458         * lib/fts.c: Likewise.
15459         * lib/getcwd.c: Likewise.
15460         * lib/glob.h: Likewise.
15461         * lib/savedir.c: Likewise.
15462
15463 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15464
15465         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
15466         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
15467         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
15468         needed.
15469         All uses removed.
15470         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
15471         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
15472         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
15473         needed.
15474         * m4/getdate.m4 (gl_GETDATE): Likewise.
15475         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
15476         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
15477         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15478         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
15479         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
15480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15481         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
15482         needed.
15483
15484 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         * lib/memcasecmp.c: Include <limits.h>.
15487         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
15488         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
15489         Don't assume isdigit succeeds only on '0' through '9'.
15490
15491 2006-07-05  Eric Blake  <ebb9@byu.net>
15492
15493         * modules/getaddrinfo (Depends-on): Add snprintf.
15494
15495 2006-07-05  Eric Blake  <ebb9@byu.net>
15496
15497         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
15498         to avoid 'header present but could not be compiled' on cygwin.
15499
15500 2006-07-05  Eric Blake  <ebb9@byu.net>
15501
15502         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
15503         missing from netdb.h.
15504         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
15505
15506 2006-07-05  Derek R. Price  <derek@ximbiot.com>
15507
15508         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
15509         no longer needed.
15510         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
15511         * m4/getdate.m4 (gl_GETDATE): Likewise.
15512         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
15513         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
15514         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15515         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
15516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15517
15518 2006-07-05  Derek R. Price  <derek@ximbiot.com>
15519
15520         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
15521         All uses of is_space replaced by isspace.
15522         * lib/exit.h: Don't talk about STDC_HEADERS.
15523         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
15524         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
15525         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
15526         replaced by isprint etc.
15527         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
15528         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
15529         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
15530         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
15531         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
15532         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
15533
15534 2006-07-05  Bruno Haible  <bruno@clisp.org>
15535
15536         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
15537         the function exists, before testing against AIX.
15538         Reported by Martin Lambers <marlam@marlam.de>.
15539
15540 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
15543         From Mark D. Baushke.
15544
15545 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
15548         to the absolute name, not just one, to bypass Sun C 5.8's
15549         "warning: #include of /usr/include/... may be non-portable".
15550
15551 2006-07-04  Eric Blake  <ebb9@byu.net>
15552
15553         * modules/dirname-tests: New test module.
15554         * tests/test-dirname.c: New file, replacing dirname.c
15555         TEST_DIRNAME section that was recently deleted.
15556
15557 2006-07-04  Bruno Haible  <bruno@clisp.org>
15558
15559         Assume ANSI C header files and <ctype.h> functions.
15560         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
15561         (mbsnwidth): Use isprint, iscntrl instead.
15562
15563 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15564
15565         Merge from coreutils.
15566         * MODULES.html.sh: Add xstrtold.
15567         * modules/xstrtold: New file.
15568         * modules/cycle-check (Files): Add lib/same-inode.h.
15569         * modules/dirname (Files): Add m4/double-slash-root.m4.
15570         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
15571         * modules/mkdir-p (Files): Add lib/same-inode.h.
15572         * modules/same (Files): Add lib/same-inode.h.
15573
15574 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15575
15576         * m4/absolute-header.m4: Renamed from full-header-path.m4.
15577         This is to keep the terminology clean; POSIX talks about
15578         "absolute pathnames", not "full pathnames", but the GNU
15579         Coding Standards say to use "path" for something else;
15580         so use "absolute" to keep both sides happy.
15581         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
15582         Set gl_absolute_header, not gl_full_header_path.
15583         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
15584         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
15585         All uses changed.
15586
15587         Merge from coreutils.
15588
15589         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
15592         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
15593         want to require the building of c-strtod.o.
15594         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
15595         needs -lm directly.
15596         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
15597
15598         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
15599
15600         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
15601         --as-needed option if available.  Problem reported by Albert Chin in
15602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
15603         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
15604         cc merely issues a bunch of annoying warnings for --as-needed
15605         (this problem was reported by Bob Proulx).  Also, try linking with
15606         -lm to detect a bug in binutils 2.16 (this problem was reported
15607         by Ralf Wildenhues).
15608
15609         2006-06-18  Jim Meyering  <jim@meyering.net>
15610
15611         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
15612         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
15613         macro.
15614         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
15615         also check for glibc-2.4's abort-inducing bug.
15616
15617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
15618         Low-probability clean-up should be to use rmdir to get rid of
15619         the just-created directory, not unlink.
15620
15621         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
15622         configure fail, and request a bug report to inform us about it.
15623         Add a comment that, barring reports to the contrary, in 2007 we'll
15624         assume ftruncate is universally available.
15625
15626         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15627
15628         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
15629
15630         2006-03-12  Jim Meyering  <jim@meyering.net>
15631
15632         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
15633         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
15634         * m4/same.m4 (gl_SAME): Likewise.
15635         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
15636
15637         2006-03-11  Eric Blake  <ebb9@byu.net>
15638
15639         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
15640         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
15641         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
15642         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
15643
15644 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15645
15646         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
15647         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
15648         reported by Mark D. Baushke, one in
15649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
15650
15651         Merge from coreutils.
15652
15653         * lib/.cppi-disable: Add stdint_.h.
15654         * lib/.cvsignore: Add stdint.h.
15655
15656         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15657
15658         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
15659         both double and long double versions.
15660         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
15661         * lib/xstrtold.c: New file.
15662         * lib/xstrtod.h (xstrtold): New decl.
15663
15664         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         * lib/filemode.c (setst): Remove.
15667         (strmode): Rewrite to avoid setst.  This makes the code shorter,
15668         (arguably) clearer, and the generated code is a bit smaller on my
15669         Debian GNU/Linux stable x86 host.
15670
15671         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15672
15673         * lib/filemode.c: Include "filemode.h" first, to test the interface.
15674         Assume that filemode.h includes sys/types.h and sys/stat.h.
15675         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
15676         (ftypelet): Reorder to put common cases first, for efficiency.
15677         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
15678         to do 'M'.
15679         (strmode): Renamed from mode_string, and now stores 12 bytes instead
15680         of 10, for compatibility with FreeBSD.  All callers changed.
15681         (filemodestring): Now stores 12 bytes instead of 10, and sets file
15682         types that can't be deduced solely from st_mode.  First arg is now a
15683         const pointer.
15684         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
15685         (strmode): Renamed from mode_string.
15686         (filemodestring): New decl.
15687         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
15688         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
15689         needed.
15690         (S_ISPORT, S_ISWHT): New macros, if not already defined.
15691
15692         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15693
15694         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
15695         fsusage.h now does that.  Include fsusage.h first, to test interface.
15696         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
15697         at most one method (the old code could have generated decls that
15698         didn't conform to C89, not that this was ever exercised).
15699         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
15700
15701         2006-03-19  Jim Meyering  <jim@meyering.net>
15702
15703         Work even in a chroot where d_ino values for entries in "/"
15704         don't match the stat.st_ino values for the same names.
15705         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
15706         number, iterate through all entries again, using lstat instead.
15707         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
15708         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
15709
15710         * lib/getcwd.c (__getcwd): Clarify a comment.
15711         Use memcpy in place of a call to strcpy.
15712
15713         2006-03-12  Jim Meyering  <jim@meyering.net>
15714
15715         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
15716         matches that of the current directory (which we're about to chdir ".."
15717         out of), then save the dev-ino of the parent, instead.
15718
15719         * lib/same-inode.h (SAME_INODE): New file/macro.
15720         * lib/chdir-safer.c (SAME_INODE): Remove definition.
15721         Include "same-inode.h", instead.
15722         * lib/same.c: Likewise.
15723         * lib/cycle-check.h: Include "same-inode.h".
15724         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
15725         * lib/cycle-check.c (SAME_INODE): Remove definition.
15726         * lib/root-dev-ino.h: Include "same-inode.h".
15727
15728         2006-03-11  Eric Blake  <ebb9@byu.net>
15729
15730         * lib/same.c (same_name): s/base_name/last_component/
15731         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
15732         * lib/filenamecat.c (file_name_concat): Likewise.
15733
15734         2006-03-11  Eric Blake  <ebb9@byu.net>,
15735                     Paul Eggert  <eggert@cs.ucla.edu>
15736
15737         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
15738         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
15739         drive prefix.
15740         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
15741         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
15742         (last_component): New method.
15743         * lib/dirname.c (dir_len): Determine when drive letters need a
15744         subsequent slash.  Preserve // when it is special.
15745         (dir_name): Don't append dot when drive letter is absolute.
15746         [TEST_DIRNAME]: Move into a full-blown gnulib test.
15747         * lib/basename.c (base_name): New semantics - malloc the result.
15748         Preserve // when it is special.  Preserve relative files that look
15749         like drive letters.
15750         (base_len): Preserve // when it is special.
15751         (last_component): New method, similar to old base_name semantics.
15752         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
15753         base_name.  Strip redundant slashes from ///.
15754
15755 2006-07-03  Jim Meyering  <jim@meyering.net>
15756
15757         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
15758         macro is used before the first cycle_check call.
15759
15760 2006-07-03  Eric Blake  <ebb9@byu.net>
15761
15762         * modules/dirname (Depends-on): Add xstrndup.
15763
15764 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15765
15766         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
15767         test cases, so that config.log is a bit easier to follow.
15768
15769 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15770
15771         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
15772         both are 64 bits, since this seems to be the tradition, and this
15773         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
15774         we ever run into a host that prefers long long to long in this
15775         case, we'll need another configure-time test.  Problem reported by
15776         Jim Meyering.
15777
15778 2006-07-02  Eric Blake  <ebb9@byu.net>
15779
15780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
15781
15782 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15783
15784         * modules/inttypes (Depends-on): No longer depends on stdint.
15785         * modules/stdint (Description): Say more about assumptions.
15786         Say that the fast types might differ.  Say macros are used.
15787         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
15788         (Makefile.am): Revise list of substituted symbols to match
15789         new stdint.m4.
15790         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
15791         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
15792         * tests/test-stdint.c (verify_same_types)
15793         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
15794         the code conforms to C99/C89.
15795         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
15796         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
15797
15798 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15799
15800         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
15801         but fix a bug, by requiring at least 64 bits.
15802         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15803         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
15804         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
15805         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
15806
15807         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
15808         changes.  Make 2.59 a prerequisite.  Check and substitute for
15809         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
15810         inttypes.h.  Do not use special include files; just use the
15811         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
15812         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
15813         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
15814         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
15815         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
15816         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
15817         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
15818         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
15819         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
15820         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
15821         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
15822         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
15823         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
15824         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
15825         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
15826         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
15827         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
15828         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
15829         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
15830         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
15831         WINT_MAX.  Check for C99 conformance more strictly, by detecting
15832         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
15833         not check for things that C99 does not require, e.g., int8_t.  If
15834         a test isn't needed unless <stdint.h> isn't working, and is
15835         unlikely to be needed for any other reason, then don't do it
15836         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
15837         size_t, since we assume C89 freestanding at least.  Do not check
15838         for sig_atomic_t, wchar_t, or wint_t, since the code now does
15839         the right thing even if the types are not defined.  Instead use:
15840         (gl_STDINT_TYPE_PROPERTIES): New macro.
15841         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
15842         testing whether <sys/types.h> clashes, as Autoconf does this for
15843         us now.  All uses removed.
15844         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
15845         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
15846         (gl_CHECK_TYPE_SAME):
15847         Remove; no longer needed.
15848         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
15849         exists, since we'll return 0 anyway in that case.
15850         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
15851
15852 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15853
15854         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
15855         possible collision with system files.
15856         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
15857         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
15858         WCHAR_MIN and WCHAR_MAX in this case.
15859         (<stddef.h>): Do not include; no longer needed.
15860         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
15861         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
15862         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
15863         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
15864         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
15865         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
15866         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
15867         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
15868         !defined(__c99))]: Include in this case too, since it's harmless
15869         now.
15870         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
15871         dangerous to do so.
15872         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
15873         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
15874         (_STDINT_MIN, _STDINT_MAX): New macros.
15875         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
15876         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
15877         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
15878         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
15879         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
15880         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
15881         macros, not typedefs; this simplifies things quite a bit.
15882         Use long int for all types narrower than int64_t.
15883         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
15884         Define in terms of long long int or int64_t or long int,
15885         not int64_t or int32_t.  This saves some compile-time testing.
15886         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
15887         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
15888         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
15889         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
15890         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
15891         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
15892         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
15893         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
15894         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
15895         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
15896         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
15897         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
15898         undef any previous version and define our own version, for
15899         simplicity and consistency with the new macros for types.
15900         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
15901         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
15902         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
15903         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
15904         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
15905         @WINT_T_SUFFIX@ to keep things simple here.
15906         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
15907         Simplify by assuming typical 8/16/32/64 host, since we're
15908         already doing that elsewhere anyway.
15909         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
15910         and assume long long int is 64 bits if available.  This
15911         speeds up 'configure'.
15912
15913 2006-07-01  Eric Blake  <ebb9@byu.net>
15914
15915         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
15916         Reported by Andreas Buening.
15917
15918 2006-07-01  Eric Blake  <ebb9@byu.net>
15919
15920         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
15921
15922 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
15923
15924         * lib/getaddrinfo.c: fixed typo
15925
15926 2006-06-29  Jim Meyering  <jim@meyering.net>
15927
15928         * modules/strftime (Maintainer): Add my name, since with the
15929         FPRINTFTIME changes strftime.c has forked from glibc.
15930
15931 2006-06-29  Eric Blake  <ebb9@byu.net>
15932
15933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
15934
15935 2006-06-29  Eric Blake  <ebb9@byu.net>
15936
15937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
15938
15939 2006-06-29  Eric Blake  <ebb9@byu.net>
15940
15941         * lib/stat_.h: New file.
15942
15943 2006-06-29  Eric Blake  <ebb9@byu.net>
15944
15945         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
15946         unused static function.
15947
15948 2006-06-29  Eric Blake  <ebb9@byu.net>
15949
15950         * doc/functions.texi (Function Portability): Document missing lstat
15951         on mingw.
15952
15953 2006-06-29  Eric Blake  <ebb9@byu.net>
15954
15955         * MODULES.html.sh: Add sys_stat.
15956         * modules/sys_stat: New module.
15957         * modules/mkstemp (Depends-on): Add sys_stat.
15958
15959 2006-06-29  Derek R. Price  <derek@ximbiot.com>
15960
15961         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
15962
15963 2006-06-29  Derek R. Price  <derek@ximbiot.com>
15964
15965         * m4/c-bs-a.m4: Removed.
15966
15967 2006-06-29  Derek R. Price  <derek@ximbiot.com>
15968
15969         * lib/strftime.c: Assume strftime() exists.
15970
15971 2006-06-29  Derek Price  <derek@ximbiot.com>
15972
15973         * modules/c-bs-a: Removed - \a is C89.
15974         * MODULES.html.sh: Remove c-bs-a.
15975
15976 2006-06-29  Bruno Haible  <bruno@clisp.org>
15977
15978         * modules/wcwidth (License): Change to LGPL.
15979
15980 2006-06-28  Simon Josefsson  <jas@extundo.com>
15981
15982         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
15983         on _WIN32.
15984
15985         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
15986         getnameinfo.
15987
15988 2006-06-28  Simon Josefsson  <jas@extundo.com>
15989
15990         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
15991
15992 2006-06-28  Simon Josefsson  <jas@extundo.com>
15993
15994         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
15995         functions there.  It will succeed on Windows XP, but on Windows
15996         2000 and (presumably) earlier, it will fail, and use the internal
15997         re-implementation.
15998         (use_win32_p): New function.
15999         (getaddrinfo): Use strtoul on servname, to support numeric ports.
16000         Support AI_NUMERICSERV to disable getservbyname.
16001         (getnameinfo): New function, only supports
16002         NI_NUMERICHOST|NI_NUMERICSERV for now.
16003
16004         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
16005         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
16006         getnameinfo.
16007
16008 2006-06-28  Eric Blake  <ebb9@byu.net>
16009
16010         * modules/wcwidth: New file.
16011         * modules/mbchar (Depends-on): Add wcwidth.
16012         * modules/mbswidth (Depends-on): Add wcwidth.
16013         * MODULES.html.sh: Add wcwidth.
16014
16015 2006-06-28  Eric Blake  <ebb9@byu.net>
16016
16017         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
16018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
16019
16020 2006-06-28  Eric Blake  <ebb9@byu.net>
16021
16022         * lib/xvasprintf.h: Fix comments.
16023
16024 2006-06-28  Eric Blake  <ebb9@byu.net>
16025
16026         * lib/mbchar.h (wcwidth): Include wcwidth.h.
16027         * lib/mbswidth.c (wcwidth): Move from here...
16028         * lib/wcwidth.h: ...to this new file.
16029
16030 2006-06-28  Derek R. Price  <derek@ximbiot.com>
16031
16032         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
16033
16034         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
16035         it's obsolete.
16036         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
16037
16038 2006-06-28  Derek R. Price  <derek@ximbiot.com>
16039
16040         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
16041         Autoconf 2.60 says this stuff was obsolete.
16042
16043 2006-06-28  Bruno Haible  <bruno@clisp.org>
16044
16045         * modules/wcwidth (Files): Add m4/wchar_t.m4.
16046
16047 2006-06-28  Bruno Haible  <bruno@clisp.org>
16048
16049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
16050         gt_TYPE_WCHAR_T.
16051
16052 2006-06-28  Bruno Haible  <bruno@clisp.org>
16053
16054         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
16055         declaration for wcwidth.
16056         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
16057
16058 2006-06-28  Bruno Haible  <bruno@clisp.org>
16059
16060         * lib/mkdtemp.c [MINGW]: Include <io.h>.
16061         (mkdir): Define using _mkdir.
16062
16063 2006-06-28  Bruno Haible  <bruno@clisp.org>
16064
16065         * lib/getaddrinfo.h: Fix POSIX URL.
16066         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
16067         _WIN32.
16068         (use_win32_p): Make static.
16069         (getaddrinfo): Reject service name if it is empty or does not consist
16070         solely of decimal digits, or if its value is > 65535.
16071         (getnameinfo): Remove useless casts.
16072
16073 2006-06-27  Simon Josefsson  <jas@extundo.com>
16074
16075         * modules/sys_select: New file, suggested by Bruno Haible, Paul
16076         Eggert and Martin Lambers.
16077
16078 2006-06-27  Simon Josefsson  <jas@extundo.com>
16079
16080         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
16081         Eggert and Martin Lambers.
16082
16083 2006-06-27  Bruno Haible  <bruno@clisp.org>
16084
16085         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
16086         result to 0, not to empty.
16087         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
16088
16089 2006-06-27  Bruno Haible  <bruno@clisp.org>
16090
16091         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
16092
16093 2006-06-26  Simon Josefsson  <jas@extundo.com>
16094
16095         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
16096         present.
16097
16098 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
16099
16100         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
16101         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
16102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
16103
16104 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
16105
16106         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
16107
16108 2006-06-26  Bruno Haible  <bruno@clisp.org>
16109
16110         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
16111
16112 2006-06-26  Bruno Haible  <bruno@clisp.org>
16113
16114         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
16115
16116 2006-06-26  Bruno Haible  <bruno@clisp.org>
16117
16118         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
16119         SGI C compiler in pre-C99 mode.
16120         Suggested by Mark D. Baushke and Larry Jones.
16121
16122 2006-06-26  Bruno Haible  <bruno@clisp.org>
16123
16124         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
16125         WCHAR_MAX.
16126         Reported by Mark D. Baushke and Larry Jones.
16127
16128 2006-06-26  Bruno Haible  <bruno@clisp.org>
16129
16130         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
16131         in pre-C99 mode.
16132         Suggested by Mark D. Baushke and Larry Jones.
16133
16134 2006-06-23  Simon Josefsson  <jas@extundo.com>
16135             Bruno Haible  <bruno@clisp.org>
16136
16137         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
16138         Emit mostlyclean-local rule.
16139         (func_emit_tests_Makefile_am): Likewise.
16140         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
16141
16142 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
16143
16144         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
16145
16146 2006-06-23  Bruno Haible  <bruno@clisp.org>
16147
16148         * tests/test-stdint.c: Update to match ISO C 99 Technical
16149         Corrigendum 1.
16150
16151 2006-06-23  Bruno Haible  <bruno@clisp.org>
16152
16153         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
16154
16155 2006-06-23  Bruno Haible  <bruno@clisp.org>
16156
16157         * lib/stdint_.h: Treat IRIX like OpenBSD.
16158
16159 2006-06-23  Bruno Haible  <bruno@clisp.org>
16160
16161         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
16162         ISO C 99 Technical Corrigendum 1.
16163
16164 2006-06-22  Simon Josefsson  <jas@extundo.com>
16165
16166         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
16167         MinGW.
16168
16169 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16170
16171         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
16172         needed.  Some compiler complained about some of them.  Problem reported
16173         by Larry Jones in
16174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
16175
16176 2006-06-21  Simon Josefsson  <jas@extundo.com>
16177
16178         * tests/test-getaddrinfo.c: New file.
16179
16180         * modules/getaddrinfo-tests: New file.
16181
16182         * MODULES.html.sh: Add inet_pton.
16183
16184         * modules/inet_pton: New file.
16185
16186 2006-06-21  Simon Josefsson  <jas@extundo.com>
16187
16188         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
16189         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
16190         of using the (limited) gnulib implementation on Windows XP.
16191
16192         * m4/inet_pton.m4: New file.
16193
16194 2006-06-21  Simon Josefsson  <jas@extundo.com>
16195
16196         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
16197         variable.
16198
16199         * lib/socket_.h: Don't define WINVER.
16200
16201         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
16202         slightly modified to work in gnulib.
16203
16204 2006-06-21  Simon Josefsson  <jas@extundo.com>
16205
16206         * doc/gnulib.texi (Windows sockets): Add.
16207
16208 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16209
16210         * lib/read-file.c (fread_file): Start with buffer allocation of
16211         0 bytes rather than 1 byte; this simplifies the code.
16212         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
16213         code to free buffer and save/restore errno.
16214         (internal_read_file): Remove unused local.
16215
16216 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16217
16218         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
16219         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
16220         Problem reported by Denis Excoffier in
16221         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
16222
16223 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16224
16225         * modules/sys_socket, modules/socklen: Include sys/types since
16226         FreeBSD 4.x's sys/socket.h needs it.
16227
16228 2006-06-19  Simon Josefsson  <jas@extundo.com>
16229
16230         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
16231
16232 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
16233
16234         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
16235
16236 2006-06-19  Bruno Haible  <bruno@clisp.org>
16237
16238         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
16239         and FULL_PATH_INTTYPES_H in angle brackets.
16240         Reported by Mark D. Baushke <mdb@gnu.org>.
16241
16242 2006-06-17  Eric Blake  <ebb9@byu.net>
16243
16244         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
16245         errno.
16246
16247 2006-06-17  Bruno Haible  <bruno@clisp.org>
16248
16249         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
16250         <sys/inttypes.h>.
16251
16252 2006-06-17  Bruno Haible  <bruno@clisp.org>
16253
16254         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
16255         whether errno is declared. Assume <errno.h> declares errno.
16256
16257 2006-06-17  Bruno Haible  <bruno@clisp.org>
16258
16259         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
16260
16261 2006-06-17  Bruno Haible  <bruno@clisp.org>
16262
16263         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
16264         problem on Solaris 2.5.1.
16265
16266 2006-06-16  Eric Blake  <ebb9@byu.net>
16267
16268         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
16269         * lib/unicodeio.c [!defined errno]: Likewise.
16270         * lib/strtol.c [!defined errno]: Likewise.
16271         * lib/strtod.c [!defined errno]: Likewise.
16272
16273 2006-06-15  Eric Blake  <ebb9@byu.net>
16274
16275         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
16276
16277 2006-06-15  Eric Blake  <ebb9@byu.net>
16278
16279         * config/srclist.txt (ssize_t.m4): Lose sync.
16280
16281 2006-06-15  Bruno Haible  <bruno@clisp.org>
16282
16283         * modules/stdint (Files): Include m4/full-header-path.m4,
16284         m4/size_max.m4, m4/wchar_t.m4.
16285         (Makefile.am): Many more substitutions.
16286         * modules/stdint-tests: New file.
16287         * tests/test-stdint.c: New file.
16288
16289 2006-06-15  Bruno Haible  <bruno@clisp.org>
16290
16291         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
16292         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
16293         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
16294         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
16295         gl_CHECK_TYPE_SAME): New macros.
16296
16297 2006-06-15  Bruno Haible  <bruno@clisp.org>
16298
16299         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
16300
16301 2006-06-15  Bruno Haible  <bruno@clisp.org>
16302
16303         * lib/stdint_.h: Rewritten to be fully auto-configured.
16304         Fixes bug on HP-UX/IA64.
16305
16306 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16307
16308         * lib/getdate.y (__attribute__): Don't define if already defined.
16309         Problem reported by Larry Jones.
16310         * lib/utimens.c (__attribute__): Likewise.
16311
16312 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
16313
16314         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
16315         reported by Andreas Schwab.
16316
16317 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16318             Bruno Haible  <bruno@clisp.org>
16319
16320         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
16321         check for the declaration of strnlen and a run test that exposes the
16322         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
16323         rpl_strndup.
16324
16325 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16326             Bruno Haible  <bruno@clisp.org>
16327
16328         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
16329
16330 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16331
16332         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
16333         compile test, for Tru64 4.0D.
16334
16335 2006-05-28  Karl Berry  <karl@gnu.org>
16336
16337         * config/srclist.txt (printf-args.c): lose sync.
16338
16339 2006-05-26  Martin Lambers  <marlam@marlam.de>
16340
16341         * lib/getpass.c: Updates the test for the native W32 API, and adds
16342         missing includes, thus fixing compilation warnings.
16343
16344 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16345
16346         * lib/exclude.c (exclude_fnmatch): New function.
16347         (excluded_file_name): Call exclude_fnmatch.
16348         * lib/exclude.h (excluded_file_name): New prototype
16349
16350 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
16351
16352         * lib/tempname.c (small_open, large_open): New macros.
16353         (__open, __open64) [!_LIBC]: Remove.
16354         (__gen_tempname): Use small_open and large_open instead of __open
16355         and __open64.  This fixes a portability bug on HP-UX 11.11i
16356         reported by Simon Wing-Tang in
16357         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
16358
16359 2006-05-24  Bruno Haible  <bruno@clisp.org>
16360
16361         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
16362         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
16363         Reported by Thorsten Maerz <torte@netztorte.de> via
16364         Aaron Stone <aaron@serendipity.cx>.
16365
16366 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16367
16368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
16369         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
16370         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
16371         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
16372         not really conditional on the cache.
16373         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
16374
16375 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16376
16377         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
16378         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
16379         (my_usleep): Don't mishandle maximum value.
16380
16381 2006-05-19  Jim Meyering  <jim@meyering.net>
16382
16383         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
16384
16385 2006-05-17  Bruno Haible  <bruno@clisp.org>
16386
16387         Cygwin portability.
16388         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
16389
16390 2006-05-17  Bruno Haible  <bruno@clisp.org>
16391
16392         * lib/stdint_.h: Fix recognition of Cygwin.
16393
16394 2006-05-15  Bruno Haible  <bruno@clisp.org>
16395
16396         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
16397         on libtool patch by Ralf Wildenhues.
16398
16399 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
16400
16401         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
16402         test for C99 conformance; (bool) 0.5 is an integer constant
16403         expression, but (bool) -0.5 is not.  Problem reported by Fedor
16404         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
16405
16406 2006-05-11  Simon Josefsson  <jas@extundo.com>
16407
16408         * m4/xvasprintf.m4: Fix obvious typo.
16409
16410 2006-05-11  Jim Meyering  <jim@meyering.net>
16411
16412         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
16413         James Lemley.
16414
16415 2006-05-10  Simon Josefsson  <jas@extundo.com>
16416
16417         * lib/md4.c: Typo fix, update copyright years.
16418         (K1, K2): Don't use L because it turn computations into 64-bit on
16419         64-bit platforms.
16420
16421 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16422
16423         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
16424         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
16425         unwanted sign propagation, e.g., on hosts with 64-bit int.
16426         There still are some problems with reeelly weird theoretical hosts
16427         (e.g., 33-bit int) but it's not worth worrying about now.
16428         * lib/sha1.c (rol): Likewise.
16429         (K1, K2, K3, K4): Remove unnecessary L suffix.
16430
16431 2006-05-10  Bruno Haible  <bruno@clisp.org>
16432
16433         * lib/des.c: Cast to avoid warnings.
16434
16435 2006-05-09  Bruno Haible  <bruno@clisp.org>
16436
16437         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
16438         (Depends-on): Depend also on xsize, stdarg.
16439         (configure.ac): Add gl_XVASPRINTF.
16440
16441 2006-05-09  Bruno Haible  <bruno@clisp.org>
16442
16443         * m4/xvasprintf.m4: New file.
16444
16445 2006-05-09  Bruno Haible  <bruno@clisp.org>
16446
16447         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
16448         (EOVERFLOW): Define fallback value.
16449         (xstrcat): New function.
16450         (xvasprintf): Recognize the special case of a string concatenation.
16451
16452 2006-05-08  Eric Blake  <ebb9@byu.net>
16453
16454         * gnulib-tool (func_version): Base copyright year on CVS date.
16455         (func_emit_copyright_notice): New function.
16456         (func_emit_lib_Makefile_am): Use it.
16457         (func_emit_tests_Makefile_am): Likewise.
16458         (func_import): Likewise.
16459
16460 2006-05-08  Bruno Haible  <bruno@clisp.org>
16461
16462         * modules/stdarg: New file.
16463         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
16464
16465 2006-05-08  Bruno Haible  <bruno@clisp.org>
16466
16467         * m4/stdarg.m4: New file, from GNU gettext.
16468
16469 2006-05-08  Bruno Haible  <bruno@clisp.org>
16470
16471         * config/srclist.txt (build-aux/config.rpath): different from latest
16472         release.
16473
16474 2006-05-08  Bruno Haible  <bruno@clisp.org>
16475
16476         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
16477
16478 2006-05-05  Jim Meyering  <jim@meyering.net>
16479
16480         * m4/warning.m4: New file, derived from bison's file by the same name.
16481
16482 2006-05-03  Bruno Haible  <bruno@clisp.org>
16483
16484         * lib/stdint_.h: Shorter URL.
16485         * lib/inttypes.h: Likewise.
16486
16487 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
16488
16489         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
16490
16491 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
16492
16493         * lib/verify.h: Document the internals better.  Most of this change
16494         was written by Bruno Haible.
16495
16496 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
16497
16498         * doc/verify.texi: New file, partly based on a proposal by
16499         Bruno Haible.
16500
16501 2006-05-02  Bruno Haible  <bruno@clisp.org>
16502
16503         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
16504         test from here...
16505         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
16506
16507 2006-04-29  Bruno Haible  <bruno@clisp.org>
16508
16509         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
16510         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
16511
16512 2006-04-29  Bruno Haible  <bruno@clisp.org>
16513
16514         * gnulib-tool: Make --update option actually work.
16515
16516 2006-04-29  Bruno Haible  <bruno@clisp.org>
16517
16518         * doc/gcd.texi: New file.
16519         * doc/gnulib.texi: Include it.
16520
16521 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16522
16523         * lib/getdate.y (get_date): When adding relative date, start with the
16524         initial time, not with the result of the first mktime call.
16525
16526 2006-04-25  Bruno Haible  <bruno@clisp.org>
16527
16528         * gnulib-tool (func_import): Output the include directives in three
16529         blocks, sorted separately.
16530         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16531
16532 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16533
16534         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
16535         to define main with arguments, for C++.  Reported by Eric Blake.
16536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16537         Prefer 'int main ()' to 'int main (void)', for C++.
16538         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16539         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
16540         for 'main', for C99 and C++.
16541
16542 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16543
16544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
16545         Don't assume that exit status -1 is valid.
16546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16547         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16548         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16549         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
16550         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
16551         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
16552         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
16553         functions can be used without declaring them, or that you can
16554         exit with status -1.
16555         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16556
16557 2006-04-24  Karl Berry  <karl@gnu.org>
16558
16559         * config/srclist.txt (longdouble.m4): sync lost.
16560
16561 2006-04-24  Eric Blake  <ebb9@byu.net>
16562
16563         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
16564
16565 2006-04-24  Bruno Haible  <bruno@clisp.org>
16566
16567         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
16568         poll() implementation in AIX.
16569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16570
16571 2006-04-24  Bruno Haible  <bruno@clisp.org>
16572
16573         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
16574         assigned exactly once.
16575
16576 2006-04-23  Claudio Fontana  <claudio@gnu.org>
16577             Bruno Haible  <bruno@clisp.org>
16578
16579         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
16580         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
16581         for AM_CPPFLAGS.
16582
16583 2006-04-23  Bruno Haible  <bruno@clisp.org>
16584
16585         * modules/copy-file: Depend on unistd.
16586         * modules/execute: Likewise.
16587         * modules/fatal-signal: Likewise.
16588         * modules/findprog: Likewise.
16589         * modules/mkdtemp : Likewise.
16590         * modules/pipe: Likewise.
16591         * modules/wait-process: Likewise.
16592
16593 2006-04-23  Bruno Haible  <bruno@clisp.org>
16594
16595         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
16596         condition was already detected.
16597         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16598
16599 2006-04-23  Bruno Haible  <bruno@clisp.org>
16600
16601         * lib/copy-file.c: Include <unistd.h> unconditionally.
16602         * lib/execute.c: Likewise.
16603         * lib/fatal-signal.c: Likewise.
16604         * lib/findprog.c: Likewise.
16605         * lib/mkdtemp.c: Likewise.
16606         * lib/pipe.h: Likewise.
16607         * lib/pipe.c: Likewise.
16608         * lib/wait-process.h: Likewise.
16609
16610 2006-04-23  Bruno Haible  <bruno@clisp.org>
16611
16612         * gnulib-tool (func_usage): Fix --import description. Document
16613         --update.
16614         (func_import): Create temporary file in a temporary directory, if
16615         --dry-run is specified. Silence errors from 'grep' when there are no
16616         m4 files in $m4dir.
16617         (func_create_testdir): Silence errors from 'grep' when there are no
16618         m4 files in $m4dir.
16619         Reported by Karl Berry <karl@freefriends.org>.
16620
16621 2006-04-20  Bruno Haible  <bruno@clisp.org>
16622
16623         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
16624         one argument, so that the code will be portable to Autoconf 2.60.
16625         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
16626         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
16627         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
16628
16629 2006-04-19  Derek Price  <derek@ximbiot.com>
16630             Eric Blake  <ebb9@byu.net>
16631
16632         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
16633         rather than "/full/path.h".  Update comment to match.  Shorten &
16634         generalize m4_translit call via AS_TR_CPP.
16635
16636 2006-04-19  Derek Price  <derek@ximbiot.com>
16637             Eric Blake  <ebb9@byu.net>
16638
16639         * lib/inttypes.h: Correct grammar in comment.
16640
16641 2006-04-18  Derek Price  <derek@ximbiot.com>
16642             Paul Eggert  <eggert@cs.ucla.edu>
16643
16644         * modules/inttypes: New file.
16645         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
16646
16647 2006-04-18  Derek Price  <derek@ximbiot.com>
16648             Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
16651         New files.
16652
16653 2006-04-18  Derek Price  <derek@ximbiot.com>
16654             Paul Eggert  <eggert@cs.ucla.edu>
16655
16656         * lib/inttypes.h: New file.
16657         * lib/strtoimax.c: Assume <inttypes.h>.
16658
16659 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
16660
16661         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
16662         isn't mounted.  Problem reported by Kir Kolyshkin.
16663
16664 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
16665
16666         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
16667         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
16668         Derek R. Price.
16669         * lib/regex.h (RE_DUP_MAX): Update comment to match current
16670         implementation.
16671
16672 2006-04-12  Eric Blake  <ebb9@byu.net>
16673
16674         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
16675         is now done automatically by the corresponding Autoconf macro.
16676
16677 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16678
16679         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
16680         time_r.h.
16681
16682 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         Merge regex changes from libc, removing some of our
16685         POSIX-conformance changes that were rejected and redoing them in a
16686         less-intrusive way.
16687
16688         * lib/regcomp.c (re_compile_internal, init_dfa):
16689         Length arg is now size_t, not Idx.  All uses changed.
16690         (peek_token): Forward decl now says internal_function.
16691         (__re_error_msgid, __re_error_msgid_idx):
16692         Now static rather than extern with attribute_hidden.
16693         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
16694         For some reason libc prefers K&R style defns for external functions.
16695         (regerror) [!defined _LIBC]: Likewise.
16696         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
16697         (seek_collating_symbol_entry, lookup_collation_sequence_value):
16698         (build_range_exp, build_collating_symbol):
16699         Use K&R-style defn.
16700         (re_compile_fastmap): Use '\0' to memset, not 0.
16701         (utf8_sb_map): Make the calculations more obvious.
16702         (init_dfa, parse_bracket_exp, build_charclass_op):
16703         Call calloc and cast result, as glibc does.
16704         (init_word_char, fetch_token, peek_token, peek_token_bracket):
16705         (build_range_exp, build_collating_symbol):
16706         Now internal functions.
16707
16708         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
16709
16710         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
16711         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
16712         Don't depend on VMS; depend on __VMS instead, for POSIX
16713         namespace cleanness.
16714         (regoff_t): Define to ssize_t, not long int.
16715
16716         Remove the REG_ macros named below.  Instead, make the old names
16717         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
16718         __USE_GNU_REGEX.
16719         (REG_BACKSLASH_ESCAPE_IN_LISTS):
16720         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
16721         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
16722         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
16723         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
16724         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
16725         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
16726         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
16727         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
16728         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
16729         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
16730         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
16731         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
16732         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
16733         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
16734         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
16735         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
16736         (REG_NREGS):
16737         Remove.  All uses replaced by the old RE_* names.
16738         (RE_BACKSLASH_ESCAPE_IN_LISTS):
16739         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
16740         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
16741         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
16742         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
16743         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
16744         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
16745         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
16746         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
16747         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
16748         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
16749         Don't bother having these macros be independent of each others'
16750         values, since they no longer exist in the POSIX name space.
16751
16752         Rename the following member names back to their old names,
16753         unless !__USE_GNU_REGEX.  All uses changed back.
16754         (buffer): Renamed from re_buffer.
16755         (allocated): Renamed from re_allocated.
16756         (used): Renamed from re_used.
16757         (syntax): Renamed from re_syntax.
16758         (fastmap): Renamed from re_fastmap.
16759         (translate): Renamed from re_translate.
16760         (can_be_null): Renamed from re_can_be_null.
16761         (regs_allocated): Renamed from re_regs_allocated.
16762         (fastmap_accurate): Renamed from re_fastmap_accurate.
16763         (no_sub): Renamed from re_no_sub.
16764         (not_bol): Renamed from re_not_bol.
16765         (not_eol): Renamed from re_not_eol.
16766         (newline_anchor): Renamed from re_newline_anchor.
16767         (num_regs): Renamed from rm_num_regs.
16768         (start): Renamed from rm_start.
16769         (end): Renamed from rm_end.
16770
16771         (free_state): Move up a bit.
16772
16773         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
16774         #define to be empty.
16775         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
16776         when that is what is intended.
16777         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
16778         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
16779         (MAX): New macro.
16780         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
16781         All uses changed back to re_malloc, etc.  It's now the caller's
16782         responsibility to check for overflow; all callers changed.
16783         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
16784         (re_x2nrealloc): Remove.
16785         (free_state): Remove decl.
16786
16787         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
16788         (re_set_registers, re_exec):
16789         Use K&R-style defn.
16790
16791         2006-01-31  Roland McGrath  <roland@redhat.com>
16792
16793         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
16794         Reported by Mike Frysinger <vapier@gentoo.org>.
16795
16796         2006-01-15  Andreas Jaeger  <aj@suse.de>
16797
16798         [BZ #1950]
16799         * lib/regex_internal.c (re_string_reconstruct): Adjust for
16800         build_wcs_upper_buffer change.
16801         (build_wcs_upper_buffer): Change return type.
16802
16803         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
16804
16805         * lib/regex_internal.h: Include <stdint.h> if available.
16806
16807         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
16808
16809         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
16810
16811         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
16812
16813         * lib/regcomp.c: Adjust for changed secondary hash function.
16814
16815         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
16816
16817         * lib/regex.h: Pretty printing.
16818         Clean up namespace a bit.
16819
16820         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
16821
16822         * lib/regexec.c (update_cur_sifted_state, check_arrival,
16823         check_arrival_add_next_nodes): Avoid using uninitialized variable.
16824
16825         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16826                     Ulrich Drepper  <drepper@redhat.com>
16827
16828         [BZ #1302]
16829         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
16830         changed.
16831         (bitset_word_t): Renamed from bitset_word.  All uses changed.
16832
16833         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
16834
16835         [BZ #281]
16836         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
16837         * lib/regcomp.c: Remove unnecessary uses of
16838         unsigned RE_TRANSLATE_TYPE.
16839         * lib/regex_internal.h: Likewise.
16840         * lib/regex_internal.c: Likewise.
16841         * lib/regexec.c: Likewise.
16842         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
16843
16844         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
16845
16846         * lib/regexec.c (find_recover_state): Remove unnecessary
16847         initialization.
16848         (transit_state_bkref): Make DFA a const pointer.
16849         (get_subexp): Likewise.
16850         (check_arrival): Likewise.
16851         (update_cur_sifted_state): Likewise.
16852         (re_search_internal): Likewise.
16853         (prune_impossible_nodes): Likewise.
16854         (acquire_init_state_context): Likewise.
16855         (proceed_next_node): Likewise.
16856         (set_regs): Likewise.
16857         (free_fail_stack_return): Likewise.
16858         (check_arrival_expand_ecl): Mark DFA parameter as const.
16859         (check_arrival_expand_ecl_sub): Likewise.
16860         (check_subexp_limits): Likewise.
16861         (sub_epsilon_src_nodes):  Likewise.
16862         (add_epsilon_src_nodes):  Likewise.
16863         (merge_state_array): Likewise.
16864         (update_regs): Likewise.
16865         (build_trtable): Likewise.
16866         (sift_states_backward): Mark MCTX parameter as const.
16867         (build_sifted_states): Likewise.
16868         (update_cur_sifted_state): Likewise.
16869         (sift_states_mkref): Likewise.
16870         (check_arrival_expand_ecl): Mark eclosure as const.
16871         (check_dst_limits_calc_pos_1): Likewise.
16872         * lib/regex_internal.h (re_match_context_t): Make dfa a const
16873         pointer.
16874
16875         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
16876
16877         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
16878         (transit_state_sb): Likewise.
16879         (transit_state_mb): Likewise.
16880         (sift_states_iter_mb): Likewise.
16881         (check_arrival_add_next_nodes): Likewise.
16882         (check_node_accept_bytes): Change first parameter to pointer-to-const.
16883         [_LIBC] (re_search_2_stub): Use mempcpy.
16884
16885         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
16886         mbrtowc for very simple UTF-8 case.
16887
16888         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
16889         a pointer-to-const.
16890         (re_acquire_state_context): Likewise.
16891         * lib/regex_internal.h: Adjust prototypes.
16892
16893         * lib/regex.c: Prevent using C++ compilers.
16894
16895         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
16896         (re_acquire_state_context): Likewise.
16897
16898 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16899
16900         * modules/regex (Depends-on): Add ssize_t.
16901
16902 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16903
16904         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
16905         translation table.
16906
16907 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16908
16909         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
16910
16911 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
16912             Bruno Haible  <bruno@clisp.org>
16913
16914         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
16915         <sys/types.h> and <inttypes.h>.
16916
16917 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16918
16919         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
16920         `__error_t_defined', so argp.h will not typedef the former.
16921
16922 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
16923
16924         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
16925         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
16926         glibc names.  Even if glibc is changed to conform to POSIX, the
16927         traditional names will be available anyway, since regex depends on
16928         the extensions module.  Also, fix a longstanding typo in the
16929         implementation of Spencer ERE test #75 from grep 2.3.  Problems
16930         reported by Emanuele Giaquinta.  Also, change sense of cached
16931         variable, so that the message makes sense.
16932
16933 2006-03-24  Simon Josefsson  <jas@extundo.com>
16934
16935         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
16936         including some doc fixes.
16937         (base64_encode_alloc): Fix +1 bug on allocation failures.
16938
16939 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16940
16941         * lib/base64.c (base64_encode): Do not read past end of array with
16942         unsanitized input on systems with CHAR_BIT > 8.
16943
16944 2006-03-24  Eric Blake  <ebb9@byu.net>
16945
16946         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
16947
16948 2006-03-22  Karl Berry  <karl@gnu.org>
16949
16950         * config/srclist.txt (*setenv.[ch]): get from coreutils.
16951         * config/srclistvars.sh (COREUTILS): new var.
16952
16953 2006-03-17  Jim Meyering  <jim@meyering.net>
16954
16955         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
16956         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
16957
16958 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
16961         no longer needs it.  Instead, check that regoff_t is as least
16962         as wide as ptrdiff_t.
16963
16964         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
16965         so that our regex.h stays compatible with the installed regex.
16966         This is helpful for installers who configure --without-included-regex.
16967         Problem reported by Emanuele Giaquinta.
16968
16969 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16970
16971         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
16972         Typedef to long int, not to off_, as POSIX will likely change
16973         in that direction.
16974
16975 2006-03-15  Eric Blake  <ebb9@byu.net>
16976
16977         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
16978
16979 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
16980
16981         * lib/argp-help.c (validate_uparams): Fix typo
16982         * lib/argp-parse.c (argp_default_options): Consistently begin help
16983         messages with a lowercase letter.
16984
16985 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
16986
16987         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
16988         overrun buffers and shouldn't be used (much as gets shouldn't be
16989         used).
16990         * lib/time_r.c (asctime_r, ctime_r): Likewise.
16991
16992 2006-03-08  Simon Josefsson  <jas@extundo.com>
16993
16994         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
16995         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16996
16997 2006-03-08  Simon Josefsson  <jas@extundo.com>
16998
16999         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
17000         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17001
17002 2006-03-08  Simon Josefsson  <jas@extundo.com>
17003
17004         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
17005         signal that configure disabled the device.
17006
17007 2006-03-08  Simon Josefsson  <jas@extundo.com>
17008
17009         * build-aux/maint.mk: Fix refresh-po, to handle no translated
17010         languages.
17011
17012 2006-03-07  Simon Josefsson  <jas@extundo.com>
17013
17014         * modules/getopt (Depends-on): Add unistd.
17015
17016         * modules/unistd: New file.
17017
17018 2006-03-07  Simon Josefsson  <jas@extundo.com>
17019
17020         * modules/gc-random: New file.
17021
17022 2006-03-07  Simon Josefsson  <jas@extundo.com>
17023
17024         * m4/unistd_h.m4: New file.
17025
17026 2006-03-07  Simon Josefsson  <jas@extundo.com>
17027
17028         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
17029         test to be side-effect free by storing the result in the cache
17030         variable gl_cv_lib_readline, and moving the assignment of
17031         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
17032         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17033
17034 2006-03-07  Simon Josefsson  <jas@extundo.com>
17035
17036         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
17037         error on missing devices (the functions will return an error).
17038
17039         * m4/gc.m4: Move random stuff to gc-random.m4
17040
17041 2006-03-07  Simon Josefsson  <jas@extundo.com>
17042
17043         * lib/unistd_.h: New file.
17044
17045 2006-03-07  Simon Josefsson  <jas@extundo.com>
17046
17047         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
17048
17049 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17050
17051         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
17052         Problem reported by Juan Manuel Guerrero.
17053
17054 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17055
17056         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
17057         the unistd module.
17058         * lib/getlogin_r.c: Likewise.
17059         * lib/getlogin_r.h: Likewise.
17060         * lib/glob.c: Likewise.
17061         * lib/pagealign_alloc.c: Likewise.
17062         * lib/unistd_.h: Remove; no longer needed.
17063
17064 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17065
17066         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17067         Add unistd.
17068         * modules/c-stack (Depends-on): Add unistd.
17069         * modules/getlogin_r: Likewise.
17070         * modules/glob: Likewise.
17071         * modules/pagealign_alloc: Likewise.
17072         * modules/unistd (Files): Remove lib/unistd_.h.
17073         (EXTRA_DIST): Remove.
17074         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
17075         need unistd_.h.
17076         (MOSTLYCLEANFILES): Remove unistd.h-t.
17077
17078 2006-03-03  Simon Josefsson  <jas@extundo.com>
17079
17080         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
17081
17082 2006-03-03  Simon Josefsson  <jas@extundo.com>
17083
17084         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
17085         libidn and bison.
17086
17087 2006-03-03  Simon Josefsson  <jas@extundo.com>
17088
17089         * build-aux/maint.mk: Add indent target.
17090
17091 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
17092
17093         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
17094         our replacement poll.h in any case, to avoid a differing
17095         declaration from a system header.  Seen on AIX.
17096
17097 2006-03-01  Simon Josefsson  <jas@extundo.com>
17098
17099         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
17100         <kasal@ucw.cz>.
17101
17102 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17103
17104         * modules/gettime (Depends-on): Add extensions module.
17105         * modules/nanosleep (Depends-on): Likewise.
17106         * modules/settime (Depends-on): Likewise.
17107
17108 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17109
17110         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
17111         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
17112         pedantically.
17113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17114         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
17115
17116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
17117         not "==".  Reported by Ralf Wildenhues.
17118
17119 2006-03-01  Karl Berry  <karl@gnu.org>
17120
17121         * doc/Copyright/request-*: new files, synced from gnuorg.
17122
17123 2006-03-01  Karl Berry  <karl@gnu.org>
17124
17125         * config/srclist.txt (Copyright/*): new entries.
17126
17127 2006-02-28  Simon Josefsson  <jas@extundo.com>
17128
17129         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
17130
17131 2006-02-27  Simon Josefsson  <jas@extundo.com>
17132
17133         * lib/base64.h: Indent #define's.  From Jim Meyering
17134         <jim@meyering.net>.
17135
17136 2006-02-27  Jim Meyering  <jim@meyering.net>
17137
17138         Revert the change of 2006-02-24, so these files can continue
17139         to be sync'd from gettext.
17140         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
17141         of `config.h'.
17142
17143 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17144
17145         * modules/intprops: New file.
17146         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17147         Add intprops.
17148         * modules/getloadavg (Files): Remove lib/intprops.h.
17149         (Depends-on): Add intprops.
17150         * modules/human: Likewise.
17151         * modules/inttostr: Likewise.
17152         * modules/openat: Likewise.
17153         * modules/sig2str: Likewise.
17154         * modules/userspec: Likewise.
17155         * modules/utimecmp: Likewise.
17156         * modules/xnanosleep: Likewise.
17157         * modules/xstrtol: Likewise.
17158
17159 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
17160
17161         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
17162         * modules/lock-tests (TESTS): Use $(EXEEXT).
17163         * modules/tls-tests: Likewise.
17164         * modules/argp-tests: Likewise.
17165         (check_PROGRAMS): New var, replacing...
17166         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
17167
17168 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17169
17170         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
17171         `config.h'.
17172
17173 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17174
17175         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
17176
17177 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17178
17179         Sync from coreutils.
17180         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
17181         gl_CHDIR_SAFER.
17182
17183 2006-02-22  Jim Meyering  <jim@meyering.net>
17184
17185         Sync from coreutils.
17186         * m4/chdir-safer.m4: New file.
17187
17188 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17189
17190         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
17191         AT_FDCWD exceeds INT_MAX.
17192         * lib/openat.h (AT_FDCWD): Likewise.
17193
17194 2006-02-17  Eric Blake  <address@hidden>
17195
17196         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
17197
17198 2006-02-16  Simon Josefsson  <jas@extundo.com>
17199
17200         * modules/getaddrinfo (Depends-on): Add sys_socket.
17201
17202 2006-02-15  Simon Josefsson  <jas@extundo.com>
17203
17204         * build-aux/maint.mk: Add dsyntax-check rule.
17205
17206 2006-02-15  Eric Blake  <ebb9@byu.net>
17207
17208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
17209         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
17210         'present but cannot compile' warnings on cygwin.
17211         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
17212         use ws2tcpip.h if sys/socket.h works.
17213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
17214         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
17215
17216 2006-02-14  Simon Josefsson  <jas@extundo.com>
17217
17218         * modules/maintainer-makefile (Files): Rename.
17219
17220         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
17221         and (the local) Makefile.cfg to maint-cfg.mk.
17222
17223         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
17224         to the latter.
17225
17226         * modules/maintainer-makefile: New module.
17227
17228         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
17229         severaly stripped to make it possible to build it up from scratch
17230         with reliable tests.
17231
17232         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
17233         fixes to permit overriding the default actions when configure and
17234         makefile are not available.
17235
17236 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17237
17238         Sync from coreutils.
17239         * modules/lstat (Depends-on): Don't depend on xalloc.
17240         (License): Change from GPL to LGPL, since this is now simply a
17241         replacement for a libc function.
17242
17243 2006-02-14  Jim Meyering  <jim@meyering.net>
17244
17245         Sync from coreutils.
17246
17247         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
17248         failure on deficient systems, and simplify gnulib lgpl dependencies.
17249         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
17250         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
17251
17252         * lib/xalloc-die.c: Remove unused definition of N_.
17253
17254 2006-02-14  Jim Meyering  <jim@meyering.net>
17255
17256         Sync from coreutils.
17257         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
17258         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
17259         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
17260         double-quote uses of that variable, to accommodate the rare case in
17261         which getmntent is available in none of the libraries checked.  This
17262         happens at least on FreeBSD 5.0.
17263
17264 2006-02-13  Simon Josefsson  <jas@extundo.com>
17265
17266         * gnulib-tool (Usage): Fix --import, from
17267         karl@freefriends.org (Karl Berry).
17268
17269 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
17270
17271         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
17272
17273 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
17274
17275         * lib/argp-namefrob.h: Restore changes accidentally lost during the
17276         "autoupdate" on 2005-12-12.
17277
17278 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17279
17280         * modules/closeout (Depends-on): Remove atexit.
17281
17282 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17283
17284         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
17285         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
17286
17287 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17288
17289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
17290         __EXTENSIONS__ if this causes compilation to fail.  Problem
17291         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
17292         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
17293
17294 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17295
17296         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
17297         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
17298         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
17299         All uses changed.
17300
17301 2006-01-26  Simon Josefsson  <jas@extundo.com>
17302
17303         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
17304         prototype is visible on mingw32.
17305
17306         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
17307         for mingw32.
17308
17309         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
17310         mingw32).
17311
17312 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17313
17314         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
17315         attempt to open for write; this always fails, at least on POSIX
17316         hosts.  This reinstates the 2006-01-09 change, which was
17317         inadvertently removed.
17318
17319 2006-01-26  Bruno Haible  <bruno@clisp.org>
17320
17321         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
17322         Reported by Paul Eggert.
17323
17324 2006-01-26  Bruno Haible  <bruno@clisp.org>
17325             Paul Eggert  <eggert@cs.ucla.edu>
17326
17327         * lib/stdbool_.h (_Bool)
17328         [(! (defined __cplusplus || defined __BEOS__)
17329           && !defined __GNUC__
17330           && !(defined __HP_cc || defined __xlc__
17331                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
17332                || defined __sgi))]:
17333         #define to signed char in these cases too; this simplifies
17334         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
17335         etc., separately) and makes it more conservative.
17336
17337 2006-01-25  Simon Josefsson  <jas@extundo.com>
17338
17339         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
17340         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
17341         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
17342
17343 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17344
17345         * lib/argp-namefrob.h: Bugfix. Remove stray #
17346
17347 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
17348
17349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
17350         so that we test the test.
17351         Check for yet another HP-UX cc bug involving *bool |= bool.
17352
17353 2006-01-25  Karl Berry  <karl@gnu.org>
17354
17355         * config/srclist.txt (vasnprintf.c): sync lost.
17356
17357 2006-01-25  Jim Meyering  <jim@meyering.net>
17358
17359         Sync from the stable (b5) branch of coreutils:
17360
17361         * lib/fts.c (fts_children): Don't let close() clobber errno from
17362         failed fchdir().
17363
17364         * lib/fts.c (fts_stat): When following a symlink-to-directory,
17365         don't necessarily interpret stat-fails+lstat-succeeds as indicating
17366         a dangling symlink.  That can also happen at least for ELOOP.
17367         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
17368         FYI, this bug predates the inclusion of fts.c in coreutils.
17369
17370         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
17371         in their own block, so pre-c99 compilers don't object.
17372
17373         Avoid the double-free (first in fts_read, second in fts_close) that
17374         would occur when an `active' directory is made inaccessible (e.g.,
17375         via chmod a-x) during a traversal.
17376         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
17377         before returning.  Reproduce this failure by
17378         mkdir -p a/b; cd a; chmod a-x . b
17379         Reported by Stavros Passas.
17380
17381 2006-01-25  Jim Meyering  <jim@meyering.net>
17382
17383         * lib/fileblocks.c: Remove more useless parentheses.
17384         * lib/readutmp.h: Likewise.
17385
17386 2006-01-25  Bruno Haible  <bruno@clisp.org>
17387
17388         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
17389         warnings.
17390         Reported by Paul Eggert.
17391
17392 2006-01-25  Bruno Haible  <bruno@clisp.org>
17393
17394         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
17395         rid of a trap command. For Solaris sh.
17396         Reported by Mark D. Baushke <mdb@gnu.org>.
17397
17398 2006-01-24  Simon Josefsson  <jas@extundo.com>
17399
17400         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
17401         Bruno.
17402
17403 2006-01-24  Karl Berry  <karl@gnu.org>
17404
17405         * config/srclist.txt (argp-namefrob.h): sync lost.
17406
17407 2006-01-24  Jim Meyering  <jim@meyering.net>
17408
17409         * modules/openat (Files): Add lib/intprops.h.
17410         From Mark D. Baushke.
17411
17412 2006-01-24  Jim Meyering  <jim@meyering.net>
17413
17414         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
17415         Reported by Mark D. Baushke.
17416
17417 2006-01-24  Jim Meyering  <jim@meyering.net>
17418
17419         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
17420
17421 2006-01-24  Bruno Haible  <bruno@clisp.org>
17422
17423         * modules/strnlen (Maintainer): Change from glibc to all.
17424
17425 2006-01-24  Bruno Haible  <bruno@clisp.org>
17426
17427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
17428         Patch by Paul Eggert.
17429
17430 2006-01-24  Bruno Haible  <bruno@clisp.org>
17431
17432         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
17433         already has it.
17434         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
17435         2005-11-26.
17436
17437         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
17438         'signed char' to avoid problems with the built-in _Bool type.
17439         Reported by Paul Eggert on 2005-11-26.
17440
17441 2006-01-24  Bruno Haible  <bruno@clisp.org>
17442
17443         * gnulib-tool (func_import): Avoid constructing complicated sed
17444         expressions inside backquote.
17445         Report and solution by Mark D. Baushke <mdb@gnu.org>.
17446
17447 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
17448
17449         These changes imported from libc.
17450         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
17451         test and two separate function calls.
17452         * lib/strndup.c (__strndup): Add libc_hidden_def.
17453
17454 2006-01-23  Simon Josefsson  <jas@extundo.com>
17455
17456         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
17457         Remove the test_*_SOURCES variable: automake infers it by default.
17458         * modules/tls-tests: Likewise.
17459
17460 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17461
17462         Work around porting bugs reported by Dieter in
17463         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
17464         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
17465         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
17466         Include "getopt.h" first, to check interface.
17467         (getenv): Declare only if defined HAVE_DECL_GETENV &&
17468         !HAVE_DECL_GETENV.
17469         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
17470         (__strndup): Revert to K&R-style function dfns, the glibc style.
17471         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
17472         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
17473         Include strnlen.h first, to get prototype properly.
17474         (strnlen): Renamed from __strnlen.
17475         Remove weak alias.
17476
17477 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17478
17479         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
17480
17481 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17482
17483         * config/srclist.txt: Adjust to reflect glibc reorganization.
17484         This affects only comments.
17485
17486 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17487
17488          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
17489          Reported by Bruce Korb <bkorb@gnu.org>.
17490
17491 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17492
17493         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
17494         to pacify gcc -Wswitch-default.
17495
17496 2006-01-22  Bruno Haible  <bruno@clisp.org>
17497
17498         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
17499         temporary buffer for sprintf, take into account the precision also
17500         for 'd', 'i', 'u', 'o', 'x', 'X'.
17501
17502 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17503
17504         * modules/argp-tests: New module
17505         * tests/test-argp.c: New file
17506         * tests/test-argp-2.sh: New file
17507
17508 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17509
17510         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
17511         (__argp_base_name): Removed
17512         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
17513         typo.
17514         (__argp_base_name): Provide macro definition or extern declaration
17515         depending on the configuration
17516
17517 2006-01-20  Simon Josefsson  <jas@extundo.com>
17518
17519         * modules/inet_ntop (Depends-on): Depend on sys_socket.
17520
17521 2006-01-20  Simon Josefsson  <jas@extundo.com>
17522
17523         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
17524
17525 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17526
17527         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
17528         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
17529         Suggested by Bruno Haible.
17530
17531 2006-01-20  Karl Berry  <karl@gnu.org>
17532
17533         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
17534         until changes propagate, I guess.
17535
17536 2006-01-19  Simon Josefsson  <jas@extundo.com>
17537
17538         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
17539
17540 2006-01-19  Simon Josefsson  <jas@extundo.com>
17541
17542         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
17543
17544 2006-01-19  Simon Josefsson  <jas@extundo.com>
17545
17546         * gnulib-tool: Set check_PROGRAMS.
17547
17548         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
17549         modules/des-tests, modules/gc-arcfour-tests,
17550         modules/gc-arctwo-tests, modules/gc-des-tests,
17551         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
17552         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
17553         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
17554         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
17555         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
17556         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
17557         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
17558         test_*_SOURCES.
17559
17560 2006-01-18  Simon Josefsson  <jas@extundo.com>
17561
17562         * modules/socklen (Depends-on): Depend on sys_socket.
17563
17564 2006-01-18  Simon Josefsson  <jas@extundo.com>
17565
17566         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
17567         modules/des-tests, modules/gc-arcfour-tests,
17568         modules/gc-arctwo-tests, modules/gc-des-tests,
17569         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
17570         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
17571         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
17572         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
17573         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
17574         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
17575         $(EXEEXT) to automake TESTS variable, for mingw32.
17576
17577 2006-01-17  Simon Josefsson  <jas@extundo.com>
17578
17579         * modules/socklen (Include): Need sys/socket.h.
17580
17581 2006-01-17  Bruno Haible  <bruno@clisp.org>
17582
17583         * modules/ssize_t (Include): Add <sys/types.h>.
17584
17585 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17586
17587         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
17588         it's not portable and it doesn't work with cross-compiles.
17589         Problem reported by Bruno Haible.  Fix missing-$ typo in
17590         'test "gl_cv_ignore_unused_libraries" ...' that prevented
17591         -zignore from being used with Sun's C compiler.
17592
17593 2006-01-12  Simon Josefsson  <jas@extundo.com>
17594
17595         * lib/base64.c: Fix warning, reported by Bruno Haible
17596         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
17597
17598 2006-01-12  Bruno Haible  <bruno@clisp.org>
17599
17600         * modules/ldd: New file.
17601         * build-aux/ldd.sh.in: New file.
17602         * MODULES.html.sh (Support for building libraries and executables): Add
17603         ldd.
17604
17605 2006-01-12  Bruno Haible  <bruno@clisp.org>
17606
17607         * m4/ldd.m4: New file.
17608
17609 2006-01-12  Bruno Haible  <bruno@clisp.org>
17610
17611         * gnulib-tool (func_import, func_create_testdir): Don't go into an
17612         endless loop while replacing $auxdir with build-aux.
17613
17614 2006-01-11  Simon Josefsson  <jas@extundo.com>
17615
17616         * lib/stdint_.h (SIZE_MAX): Add missing (.
17617
17618 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17619
17620         Sync from coreutils.
17621         * lib/md5.c: Fix commentary typos.
17622         (alignof, UNALIGNED_P): No need for a GCC-specific version.
17623         * lib/md5.h (__attribute__): Remove; unused.
17624         * lib/sha1.c: Fix commentary to match md5 better.
17625         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
17626         so that we don't need to worry about alignment.  All uses changed.
17627         This merges the 2005-10-28 md5 change into sha1.
17628
17629 2006-01-11  Jim Meyering  <jim@meyering.net>
17630
17631         Sync from coreutils.
17632         * lib/md5.c (OP): Fix spacing.
17633
17634 2006-01-11  Bruno Haible  <bruno@clisp.org>
17635
17636         Ensure automatic ordering between gl_LOCK and gl_ARGP.
17637         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
17638         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
17639
17640 2006-01-11  Bruno Haible  <bruno@clisp.org>
17641
17642         Ensure automatic ordering between gl_LOCK and gl_ARGP.
17643         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
17644         the "early" section as well.
17645
17646 2006-01-11  Bruno Haible  <bruno@clisp.org>
17647
17648         Avoid "ar: no archive members specified" error on MacOS X.
17649         * gnulib-tool (func_modules_add_dummy): New function.
17650         (func_import, func_create_testdir): Invoke it.
17651
17652 2006-01-11  Bruno Haible  <bruno@clisp.org>
17653
17654         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
17655         with $auxdir in AC_CONFIG_FILES statements.
17656
17657 2006-01-11  Bruno Haible  <bruno@clisp.org>
17658
17659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17660         Initialize also noinst_HEADERS to empty.
17661
17662 2006-01-11  Bruno Haible  <bruno@clisp.org>
17663
17664         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
17665         variables.
17666         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
17667         autoreconf.
17668
17669 2006-01-11  Bruno Haible  <bruno@clisp.org>
17670
17671         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
17672         overridable by the user.
17673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17674
17675 2006-01-10  Simon Josefsson  <jas@extundo.com>
17676
17677         * modules/sys_socket: New file.
17678
17679 2006-01-10  Simon Josefsson  <jas@extundo.com>
17680
17681         * m4/sys_socket_h.m4: New file.
17682
17683 2006-01-10  Simon Josefsson  <jas@extundo.com>
17684
17685         * lib/socket_.h: New file.
17686
17687 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17688
17689         * modules/readutmp (Maintainer): Add myself.
17690
17691 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17692
17693         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
17694         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
17695         People who are still concerned with buggy memcmp implementations
17696         can invoke gl_FUNC_MEMCMP themselves.
17697
17698 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17699
17700         * lib/regex_internal.h (BITSET_WORD_BITS):
17701         Work around a bug in 64-bit PGC (before version 6.1-2), where the
17702         preprocessor mishandles large unsigned values as if they were signed.
17703         Problem reported by Claudio Fontana in
17704         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
17705
17706 2006-01-10  Jim Meyering  <jim@meyering.net>
17707
17708         Avoid the double-free (first in fts_read, second in fts_close) that
17709         would occur when an `active' directory is made inaccessible (e.g.,
17710         via chmod a-x) during a traversal.
17711         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
17712         before returning.  Reproduce this failure by
17713         mkdir -p a/b; cd a; chmod a-x . b
17714         Reported by Stavros Passas.
17715
17716         Sync from coreutils.
17717         * lib/sha1.c: Tweak grammar in a comment.
17718
17719 2006-01-10  Jim Meyering  <jim@meyering.net>
17720
17721         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
17722         Patch by Joerg Sonnenberger.
17723
17724 2006-01-10  Bruno Haible  <bruno@clisp.org>
17725
17726         * modules/readutmp: Depend on module free.
17727         * modules/strtok_r: Depend on module restrict.
17728
17729 2006-01-10  Bruno Haible  <bruno@clisp.org>
17730
17731         * modules/gettext (configure.ac): Add an invocation of
17732         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
17733
17734 2006-01-10  Bruno Haible  <bruno@clisp.org>
17735
17736         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
17737         Reported by Werner Lemberg <wl@gnu.org>.
17738
17739 2006-01-10  Bruno Haible  <bruno@clisp.org>
17740
17741         * lib/localcharset.c: Update from GNU gettext.
17742
17743 2006-01-10  Bruno Haible  <bruno@clisp.org>
17744
17745         * lib/argp.h (__const): Remove macro. Use const instead.
17746         * lib/argp-fmtstream.h (__const): Likewise.
17747         * lib/glob_.h (__const): Remove macro.
17748         * lib/glob-libc.h: Use const instead of __const.
17749
17750 2006-01-10  Bruno Haible  <bruno@clisp.org>
17751
17752         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
17753         variable.
17754         Needed to avoid an automake error regarding the 'gettext' module.
17755
17756 2006-01-09  Simon Josefsson  <jas@extundo.com>
17757
17758         * modules/inet_ntop (Depends-on): Add restrict.
17759
17760 2006-01-09  Simon Josefsson  <jas@extundo.com>
17761
17762         * modules/gc-rijndael-tests (License): Put under LGPL.
17763
17764         * modules/gc-des-tests (License): Likewise.
17765
17766         * modules/gc-arcfour-tests (License): Likewise.
17767
17768         * modules/gc-arctwo-tests (License): Likewise.
17769
17770         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
17771
17772         * modules/gc-hmac-sha1-tests (Files): Likewise.
17773
17774         * modules/gc-hmac-md5-tests (License): Likewise.
17775
17776         * modules/gc-sha1-tests (License): Likewise.
17777
17778         * modules/gc-md5-tests (License): Likewise.
17779
17780         * modules/gc-md4-tests (License): Likewise.
17781
17782         * modules/gc-md2-tests (License): Likewise.
17783
17784         * modules/gc-tests (License): Likewise.
17785
17786         * modules/des-tests (License): Likewise.
17787
17788         * modules/md4-tests (License): Likewise.
17789
17790         * modules/md2-tests (License): Likewise.
17791
17792 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17793
17794         Sync from coreutils:
17795
17796         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
17797         * modules/lib-ignore: New file.
17798         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
17799         chdir-safer.m4, lchmod.m4.
17800         * modules/openat: Add mkdirat.c, openat-priv.h.
17801
17802 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17803
17804         Sync from coreutils.
17805         * m4/lib-ignore.m4: New file.
17806         * m4/lchmod.m4: New file.
17807
17808 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17809
17810         Sync from coreutils.
17811         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
17812         for write access: POSIX says that must fail.
17813         * lib/fts.c (diropen): Likewise.
17814         * lib/save-cwd.c (save_cwd): Likewise.
17815         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
17816         well, for minor improvements on hosts that lack O_DIRECTORY.
17817         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
17818         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
17819         Fall back on chown if open failed with EACCES.
17820
17821         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
17822         Report an error at compile-time if only a 1-second nominal clock
17823         resolution is found.
17824
17825         * lib/lchmod.h: New file.
17826         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
17827         (make_dir_parents): Use lchown rather than chown, and
17828         lchmod rather than chmod.
17829
17830         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
17831         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
17832         "proc" reported by n0dalus.
17833
17834         * lib/mountlist.c: Include <limits.h>.
17835         (dev_from_mount_options)
17836         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
17837         New function.  It no longer assumes "dev=" has the System V meaning
17838         on Linux (since it doesn't).  It also parses "dev=" more carefully.
17839         (read_file_system_list)
17840         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
17841         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
17842         dev= in that case.
17843
17844         * lib/posixtm.h (PDS_PRE_2000): New macro.
17845         * lib/posixtm.c (year): Arg is now syntax_bits rather than
17846         allow_century.  All usages changed.  Reject dates outside the range
17847         1969-1999 if PDS_PRE_2000 is used.
17848
17849 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17850
17851         Sync from coreutils.
17852         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
17853         (Time of day items): Mention the possibility of leap seconds.
17854         Problem reported by Dr. David Alan Gilbert.
17855
17856 2006-01-09  Jim Meyering  <jim@meyering.net>
17857
17858         Sync from coreutils.
17859
17860         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
17861
17862         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
17863
17864         * lib/modechange.c (mode_compile): Reject an invalid mode string
17865         that starts with an octal digit.  From Andreas Gruenbacher.
17866
17867         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
17868         and dup to open_safer and dup_safer, respectively.
17869         (openat_permissive): Fix typo in comment.
17870
17871         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
17872         "gettext.h"; either no longer needed or are guaranteed by openat.h.
17873         (_): Remove; no longer needed.
17874         (openat): Renamed from rpl_openat; no need for rpl_openat
17875         since openat.h renames openat for us.
17876         Replace most of the body with a call to openat_permissive,
17877         to avoid duplicate code.
17878         Port to (probably hypothetical) environments were mode_t is
17879         wider than int.
17880         (openat_permissive): Require mode arg, so that we can check
17881         types better.  Put it just after flags.  Change cwd failure
17882         indicator from pointer-to-bool to pointer-to-errno-value.
17883         All callers changed.
17884         Invoke openat_save_fail and/or openat_restore_fail if
17885         cwd_errno is null, so that openat can call us.
17886         (openat_permissive, fdopendir, fstatat, unlinkat):
17887         Simplify errno handling to avoid some duplicate code,
17888         as it's OK to set errno on success.
17889         * lib/openat.h: Revamp code so that function macros depend on
17890         __OPENAT_PREFIX only, not also on AT_FDCWD.
17891         (openat_ro): Remove.  Caller changed to use openat_permissive.
17892         (openat_permissive): Now a macro, if not a function.
17893         (openat_restore_fail, openat_save_fail): Now always functions,
17894         since mkdirat needs them even if __OPENAT_PREFIX is defined.
17895
17896         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
17897         and openat.c.
17898         * lib/mkdirat.c: Include openat-priv.h.
17899         Remove definitions of macros defined therein.
17900         * lib/openat.c: Likewise.
17901
17902         * lib/mkdirat.c (mkdirat): New file and function.
17903         * lib/openat.h (mkdirat): Declare.
17904
17905         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
17906
17907         * lib/openat.h (openat_permissive): Declare.
17908         (openat_ro): Define.
17909
17910         * lib/openat.c (EXPECTED_ERRNO): New macro.
17911         (openat_permissive): New function -- used in remove.c rewrite.
17912         (all functions): Set errno just before returning, only if there
17913         was an actual failure.
17914         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
17915
17916         Emulate openat-family functions using Linux's procfs, if possible.
17917         Idea and some code based on Ulrich Drepper's glibc changes.
17918
17919         * lib/openat.c: (BUILD_PROC_NAME): New macro.
17920         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
17921         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
17922         before falling back on save_cwd and restore_cwd.
17923         (fdopendir, fstatat, unlinkat): Likewise.
17924
17925         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
17926         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
17927
17928         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
17929         as second argument to va_arg.  Otherwise, some versions of gcc
17930         warn that `if this code is reached, the program will abort'.
17931
17932 2006-01-09  Jim Meyering  <jim@meyering.net>
17933
17934         Sync from coreutils.
17935         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
17936         Require openat-priv.h.
17937
17938 2006-01-09  Bruno Haible  <bruno@clisp.org>
17939
17940         * modules/strnlen (Include): Use strnlen.h.
17941
17942 2006-01-09  Bruno Haible  <bruno@clisp.org>
17943
17944         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
17945
17946 2006-01-09  Bruno Haible  <bruno@clisp.org>
17947
17948         * lib/sysexit_.h (EX_OK): New macro.
17949         Suggested by Martin Lambers <marlam@marlam.de>.
17950
17951 2006-01-09  Bruno Haible  <bruno@clisp.org>
17952
17953         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
17954         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
17955
17956 2006-01-09  Bruno Haible  <bruno@clisp.org>
17957
17958         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
17959         numbers.
17960
17961 2006-01-09  Bruno Haible  <bruno@clisp.org>
17962
17963         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
17964         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
17965         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
17966         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
17967
17968 2006-01-09  Bruno Haible  <bruno@clisp.org>
17969
17970         * build-aux/javacomp.sh.in: New file, moved from lib/.
17971         * modules/javacomp-script (Files): Update.
17972         (configure.ac): Add AC_CONFIG_FILES invocation.
17973         (EXTRA_DIST): Remove variable.
17974
17975         * build-aux/javaexec.sh.in: New file, moved from lib/.
17976         * modules/javaexec (Files): Update.
17977         (configure.ac): Add AC_CONFIG_FILES invocation.
17978         (EXTRA_DIST): Remove javaexec.sh.in.
17979
17980         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
17981         * modules/csharpcomp-script (Files): Update.
17982         (configure.ac): Add AC_CONFIG_FILES invocation.
17983         (EXTRA_DIST): Remove variable.
17984
17985         * build-aux/csharpexec.sh.in: New file, moved from lib/.
17986         * modules/csharpexec (Files): Update.
17987         (configure.ac): Add AC_CONFIG_FILES invocation.
17988         (EXTRA_DIST): Remove csharpexec.sh.in.
17989
17990 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
17991
17992         Sync from coreutils.
17993
17994         Add POSIX ACL support
17995         * lib/acl.h (copy_acl, set_acl): Add declarations.
17996         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
17997         systems other than Linux.
17998         (chmod_or_fchmod): New function: use fchmod when possible,
17999         and chmod otherwise.
18000         (file_has_acl): Add a POSIX ACL implementation, with a
18001         Linux-specific subcase.
18002         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
18003         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
18004         acls are unsupported.
18005         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
18006         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
18007         are unsupported.
18008
18009 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
18010
18011         Sync from coreutils.
18012         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
18013
18014 2006-01-07  Bruno Haible  <bruno@clisp.org>
18015
18016         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
18017         gl_EARLY.
18018
18019 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18020
18021         * lib/strftime.c (tzname): Don't declare if it is already #defined.
18022         Problem reported for Mingw by Mark Junker.
18023
18024 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18025
18026         * README: Gnulib normally doesn't generate a tarball.
18027
18028 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18029
18030         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
18031         long int, not int, for nanosecond counts, so that people who are
18032         used to POSIX struct timespec won't be surprised.  Reported by Jim
18033         Meyering.
18034
18035 2005-12-28  Bruno Haible  <bruno@clisp.org>
18036
18037         * build-aux/config.rpath: Update from GNU gettext.
18038
18039 2005-12-16  Jim Meyering  <jim@meyering.net>
18040
18041         * modules/fprintftime: New module.
18042         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
18043
18044 2005-12-16  Jim Meyering  <jim@meyering.net>
18045
18046         * m4/fprintftime.m4: New file.
18047
18048 2005-12-16  Jim Meyering  <jim@meyering.net>
18049
18050         * lib/fprintftime.c, lib/fprintftime.h: New files.
18051
18052 2005-12-15  Simon Josefsson  <jas@extundo.com>
18053
18054         * modules/socklen (configure.ac): Fix M4 macro name, to align with
18055         new m4/socklen.m4.
18056
18057 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18058
18059         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
18060         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
18061
18062 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18063
18064         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
18065         * lib/argp-help.c (fill_in_uparams): Check if the constructed
18066         struct uparams is valid. Fall back to the default values if it is
18067         not.
18068
18069 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18070
18071         * modules/argp (Files): Add argp-pin.c
18072         (Depends-on): dirname
18073         (lib_SOURCES): Add argp-pin.c
18074
18075 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18076
18077         * m4/argp.m4:  Check if program_invocation_name and
18078         program_invocation_short_name are declared and define appropriate
18079         macros if they are not.
18080
18081 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18082
18083         * lib/argp-help.c (__argp_base_name): New function
18084         (__argp_short_program_name): Rewrite using __argp_base_name
18085         * lib/argp-namefrob.h: Define program_invocation_name and
18086         program_invocation_short_name if requested
18087         (__argp_base_name): Add prototype
18088         * lib/argp-parse.c (argp_def): Use gettext wrappers
18089         (argp_default_parser): Use __argp_base_name
18090         * lib/argp-pin.c: New file. Defines program_invocation_name and
18091         program_invocation_short_name on systems that lack them.
18092
18093 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18094
18095         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
18096         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
18097         porting problem reported by Georg Schwarz in
18098         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
18099
18100 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18101
18102         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
18103         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
18104         porting problem reported by Georg Schwarz in
18105         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
18106
18107 2005-12-05  Bruno Haible  <bruno@clisp.org>
18108
18109         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
18110         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
18111         Reported by Mark Junker <mjscod@gmx.de>.
18112
18113 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
18114
18115         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
18116         Use implementation from Albert Chin, with some
18117         comments/corrections by Stepan Kasal and myself.
18118
18119 2005-12-02  Bruno Haible  <bruno@clisp.org>
18120
18121         * gnulib-tool (func_import): Accept GPLed build tool modules when
18122         --lgpl is given.
18123         * modules/csharpcomp-script: New file.
18124         * modules/csharpcomp: Depend on it.
18125         * modules/javacomp-script: New file.
18126         * modules/javacomp: Depend on it.
18127         Suggested by Simon Josefsson.
18128
18129 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18130
18131         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
18132         statement, to work around an HP-UX 10.20 compiler bug reported by
18133         Peter O'Gorman.
18134
18135 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18136
18137         * modules/savedir (Depends-on): Add openat.
18138
18139 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18140
18141         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
18142         (uintmax_t) [defined uintmax_t]: Do not declare.
18143         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
18144         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
18145         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
18146         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
18147         sake of portability to weird hosts that C allows (though we don't
18148         know of any practical examples).
18149
18150         * lib/savedir.h (fdsavedir): New decl.
18151         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
18152         contains most of the former guts of savedir.
18153         (savedir): Use savedirstream.
18154         Include "openat.h".
18155
18156 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18157
18158         * modules/obstack (Files): Add m4/ulonglong.m4.
18159         Problem reported by Davide Angelocola.
18160
18161 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18162
18163         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
18164         coreutils no longer futzes with rounding modes.
18165
18166 2005-11-14  Jim Meyering  <jim@meyering.net>
18167
18168         * lib/mkstemp-safer.c: Include <config.h>, required for possible
18169         replacement of mkstemp.
18170
18171 2005-11-10  Simon Josefsson  <jas@extundo.com>
18172
18173         * lib/readline.c: Remove EOL.
18174
18175 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18176
18177         * modules/gethrxtime (Depends-on): Add gettime.
18178
18179 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18180
18181         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
18182         or gettimeofday; no longer needed.
18183
18184 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18185
18186         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
18187         time business.
18188         (gethrxtime) [! (HAVE_NANOUPTIME
18189         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
18190         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
18191         our own approximation.
18192
18193 2005-11-08  Eric Blake  <ebb9@byu.net>
18194
18195         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
18196
18197 2005-11-08  Eric Blake  <ebb9@byu.net>
18198
18199         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
18200
18201 2005-11-04  Bruno Haible  <bruno@clisp.org>
18202
18203         * gnulib-tool: Implement --update mode.
18204
18205 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18206
18207         Fix porting problem reported by Theodoros V. Kalamatianos.
18208         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
18209         Don't assume that futimes failing means we must fail.
18210
18211 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18212
18213         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
18214         variables to suggest the intended function of the PATH_MAX check.
18215
18216 2005-10-30  Kean Johnston  <jkj@sco.com>
18217
18218         Trivial changes to support SCO systems.
18219         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
18220         as PATH_MAX.
18221         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
18222         where __ptr is null when no I/O is pending.
18223
18224 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
18225
18226         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
18227         leave errno alone.  Problem reported by Dmitry V. Levin.
18228
18229 2005-10-28  Simon Josefsson  <jas@extundo.com>
18230
18231         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
18232         Test more.
18233
18234         * tests/test-gc-md2.c, tests/test-md2.c: New files.
18235
18236         * modules/md2, modules/md2-tests: New files.
18237
18238 2005-10-28  Simon Josefsson  <jas@extundo.com>
18239
18240         * m4/inet_ntop.m4: More tests.
18241
18242         * m4/gc-md2.m4, md2.m4: New file.
18243
18244 2005-10-28  Simon Josefsson  <jas@extundo.com>
18245
18246         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
18247         "restrict" keywords, as per POSIX.  Protect the function
18248         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
18249         Don't use K&R prototypes.  Check the sprintf return values.
18250         Re-define EAFNOSUPPORT if not present.  Indent.
18251
18252         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
18253         suggested by Bruno Haible <bruno@clisp.org>.
18254
18255         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
18256
18257         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
18258
18259         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
18260         libgcrypt).
18261
18262         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
18263
18264         * lib/md2.h, lib/md2.c: New files.
18265
18266 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
18267
18268         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
18269         errno alone.  Problem reported by Frederic Jolliton.
18270
18271 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
18272
18273         * modules/verify (License): Change from GPL to LGPL.  This is a
18274         tiny module and there are apparently near-equivalents that are
18275         under the BSD license.
18276
18277 2005-10-24  Simon Josefsson  <jas@extundo.com>
18278
18279         * modules/sha1: Relicense to LGPL.
18280
18281 2005-10-24  Simon Josefsson  <jas@extundo.com>
18282
18283         * lib/md4.h: Shrink buffer size, now that we changed the type.
18284
18285 2005-10-23  Simon Josefsson  <jas@extundo.com>
18286
18287         * gnulib-tool (func_import): Fix --tests-base.
18288
18289 2005-10-22  Simon Josefsson  <jas@extundo.com>
18290
18291         * modules/arcfour (Depends-on): Need stdint.
18292
18293 2005-10-22  Simon Josefsson  <jas@extundo.com>
18294
18295         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
18296         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
18297
18298 2005-10-22  Simon Josefsson  <jas@extundo.com>
18299
18300         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
18301         suggested by Bruno Haible <bruno@clisp.org>.
18302
18303 2005-10-22  Simon Josefsson  <jas@extundo.com>
18304
18305         * lib/crc.h: Include stddef.h, for size_t.
18306
18307 2005-10-22  Simon Josefsson  <jas@extundo.com>
18308
18309         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
18310         arcfour_context struct (simplify test vector testing in GNU
18311         Shishi).
18312
18313 2005-10-21  Simon Josefsson  <jas@extundo.com>
18314
18315         * modules/des, modules/des-tests: New files.
18316
18317         * modules/gc-des, modules/gc-des-tests: New files.
18318
18319         * tests/test-des.c, tests/test-gc-des.c: New file.
18320
18321 2005-10-21  Simon Josefsson  <jas@extundo.com>
18322
18323         * modules/arctwo, modules/arctwo-tests: New files.
18324
18325         * tests/test-arctwo.c: New file.
18326
18327         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
18328
18329         * tests/test-gc-arctwo.c: New file.
18330
18331 2005-10-21  Simon Josefsson  <jas@extundo.com>
18332
18333         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
18334         Bruno Haible <bruno@clisp.org>.
18335
18336         * m4/gc-des.m4: New file.
18337
18338 2005-10-21  Simon Josefsson  <jas@extundo.com>
18339
18340         * m4/arctwo.m4: New file.
18341
18342         * m4/gc-arctwo.m4: New file.
18343
18344 2005-10-21  Simon Josefsson  <jas@extundo.com>
18345
18346         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
18347         block.
18348
18349 2005-10-21  Simon Josefsson  <jas@extundo.com>
18350
18351         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
18352         <bruno@clisp.org>.
18353
18354         * lib/hmac-sha1.c (hmac_sha1): Likewise.
18355
18356         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
18357         Bruno Haible <bruno@clisp.org>.
18358
18359         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
18360         <bruno@clisp.org>.
18361
18362 2005-10-21  Simon Josefsson  <jas@extundo.com>
18363
18364         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
18365
18366 2005-10-21  Simon Josefsson  <jas@extundo.com>
18367
18368         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
18369
18370 2005-10-21  Simon Josefsson  <jas@extundo.com>
18371
18372         * lib/des.h, lib/des.c: New files.
18373
18374         * lib/gc-gnulib.c: Support DES.c
18375
18376 2005-10-21  Simon Josefsson  <jas@extundo.com>
18377
18378         * lib/arctwo.h, lib/arctwo.c: New files.
18379
18380         * lib/gc-gnulib.c: Support ARCTWO.
18381
18382 2005-10-21  Simon Josefsson  <jas@extundo.com>
18383
18384         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
18385         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18386
18387 2005-10-21  Simon Josefsson  <jas@extundo.com>
18388
18389         * gnulib-tool (func_import, func_create_testdir): Define automake
18390         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
18391         Makefile.am snippet),
18392         suggested by Bruno Haible <bruno@clisp.org>.
18393
18394         * modules/gc (Makefile.am): Use it.
18395
18396 2005-10-21  Bruno Haible  <bruno@clisp.org>
18397
18398         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
18399         patch.
18400
18401 2005-10-19  Simon Josefsson  <jas@extundo.com>
18402
18403         * tests/test-gc-rijndael.c: New file.
18404
18405         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
18406
18407 2005-10-19  Simon Josefsson  <jas@extundo.com>
18408
18409         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
18410         interface too.
18411
18412 2005-10-19  Simon Josefsson  <jas@extundo.com>
18413
18414         * tests/test-gc-arcfour.c: New file.
18415
18416         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
18417
18418 2005-10-19  Simon Josefsson  <jas@extundo.com>
18419
18420         * modules/gc-md4, modules/gc-md4-tests: New file.
18421
18422         * tests/test-gc-md4.c: New file.
18423
18424 2005-10-19  Simon Josefsson  <jas@extundo.com>
18425
18426         * m4/gc-md4.m4: New file.
18427
18428 2005-10-19  Simon Josefsson  <jas@extundo.com>
18429
18430         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
18431         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
18432         <kasal@ucw.cz>.
18433
18434 2005-10-19  Simon Josefsson  <jas@extundo.com>
18435
18436         * m4/gc-arcfour.m4: New file.
18437
18438         * m4/gc-rijndael.m4: New file.
18439
18440 2005-10-19  Simon Josefsson  <jas@extundo.com>
18441
18442         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
18443
18444 2005-10-19  Simon Josefsson  <jas@extundo.com>
18445
18446         * lib/gc-gnulib.c: Support ARCFOUR.
18447
18448 2005-10-19  Simon Josefsson  <jas@extundo.com>
18449
18450         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
18451         support.
18452
18453         * lib/gc.h: Add ECB enum type.
18454
18455         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
18456
18457 2005-10-18  Simon Josefsson  <jas@extundo.com>
18458
18459         * tests/test-md5.c: New file.
18460
18461         * modules/md5-tests: New file.
18462
18463 2005-10-18  Simon Josefsson  <jas@extundo.com>
18464
18465         * tests/test-md4.c: New file.
18466
18467         * modules/md4, modules/md4-tests: New files.
18468
18469 2005-10-18  Simon Josefsson  <jas@extundo.com>
18470
18471         * m4/md4.m4: New file.
18472
18473 2005-10-18  Simon Josefsson  <jas@extundo.com>
18474
18475         * lib/md4.h, lib/md4.c: New files, based on md5.?.
18476
18477 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
18478
18479         * gnulib-tool (func_create_testdir): Omit the second check whether
18480         BUILT_SOURCES in nonempty.
18481
18482 2005-10-17  Simon Josefsson  <jas@extundo.com>
18483
18484         * tests/test-rijndael.c: New file.
18485
18486 2005-10-17  Simon Josefsson  <jas@extundo.com>
18487
18488         * modules/sha1: Depend on stdint instead of md5.
18489
18490         * modules/md5: Depend on stdint, remove uint32_t.
18491
18492 2005-10-17  Simon Josefsson  <jas@extundo.com>
18493
18494         * modules/gc-sha1-tests: New file.
18495
18496         * tests/test-gc-sha1.c: New file.
18497
18498 2005-10-17  Simon Josefsson  <jas@extundo.com>
18499
18500         * m4/md5.m4: Remove call to uint32_t.m4.
18501
18502 2005-10-17  Simon Josefsson  <jas@extundo.com>
18503
18504         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
18505
18506         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
18507         md5.h.
18508
18509         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
18510
18511         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
18512
18513 2005-10-17  Simon Josefsson  <jas@extundo.com>
18514
18515         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
18516
18517 2005-10-17  Simon Josefsson  <jas@extundo.com>
18518
18519         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
18520
18521 2005-10-17  Simon Josefsson  <jas@extundo.com>
18522
18523         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
18524
18525         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
18526
18527 2005-10-17  Bruno Haible  <bruno@clisp.org>
18528
18529         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
18530         that it can also be used in a test.
18531
18532 2005-10-16  Bruno Haible  <bruno@clisp.org>
18533
18534         * gnulib-tool (func_emit_tests_Makefile_am): Also define
18535         TESTS_ENVIRONMENT, so that individual tests can augment it.
18536
18537         * gnulib-tool (func_create_testdir): Use an intermediate target for
18538         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
18539         macros, like $(ALLOCA_H), which cannot be passed through the command
18540         line.
18541
18542 2005-10-15  Simon Josefsson  <jas@extundo.com>
18543
18544         * modules/rijndael-tests: New file.
18545
18546         * modules/rijndael: New file.
18547
18548 2005-10-15  Simon Josefsson  <jas@extundo.com>
18549
18550         * m4/rijndael.m4: New file.
18551
18552 2005-10-15  Simon Josefsson  <jas@extundo.com>
18553
18554         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
18555
18556         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
18557
18558 2005-10-14  Simon Josefsson  <jas@extundo.com>
18559
18560         * tests/test-arcfour.c: New file.
18561
18562         * modules/arcfour, modules/arcfour-tests: New files.
18563
18564 2005-10-14  Simon Josefsson  <jas@extundo.com>
18565
18566         * m4/arcfour.m4: New file.
18567
18568 2005-10-14  Simon Josefsson  <jas@extundo.com>
18569
18570         * lib/arcfour.h, lib/arcfour.c: New files.
18571
18572 2005-10-14  Roland McGrath  <roland@redhat.com>
18573
18574         Import from libc.  [BZ #1331]
18575         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
18576         macro argument.
18577         Reported by Matej Vela <vela@debian.org>.
18578
18579 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18580
18581         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
18582         include <wchar.h>; no longer needed.
18583
18584 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18585
18586         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
18587
18588 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
18589         and  Ulrich Drepper  <drepper@redhat.com>
18590
18591         Import from libc.
18592         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
18593         instead of inline stream orientation test and two separate
18594         function calls.  Pay no attention to USE_IN_LIBIO.
18595
18596 2005-10-13  Simon Josefsson  <jas@extundo.com>
18597
18598         * modules/gc-hmac-md5-tests: New file.
18599
18600         * tests/test-gc-hmac-sha1.c: New file.
18601
18602         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
18603
18604         * modules/gc-hmac-md5-tests: New file.
18605
18606         * tests/test-gc-md5.c: New file.
18607
18608         * modules/gc-md5-tests: New file.
18609
18610 2005-10-13  Simon Josefsson  <jas@extundo.com>
18611
18612         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
18613         Move memory allocation outside of loop.
18614
18615 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18616
18617         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
18618         intermediate directory is in a read-only file system.  Problem
18619         reported by Eric Blake.
18620
18621 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
18622
18623         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
18624
18625 2005-10-12  Simon Josefsson  <jas@extundo.com>
18626
18627         * tests/test-hmac-sha1.c: New file.
18628
18629         * modules/hmac-sha1-tests: New file.
18630
18631         * modules/hmac-sha1: New file.
18632
18633 2005-10-12  Simon Josefsson  <jas@extundo.com>
18634
18635         * modules/gc-sha1: New file.
18636
18637 2005-10-12  Simon Josefsson  <jas@extundo.com>
18638
18639         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
18640
18641         * tests/test-gc-pbkdf2-sha1.c: New file.
18642
18643 2005-10-12  Simon Josefsson  <jas@extundo.com>
18644
18645         * modules/gc-md5, modules/gc-hmac-md5: New files.
18646
18647         * modules/gc (Files): Remove md5, memxor and hmac files.
18648
18649 2005-10-12  Simon Josefsson  <jas@extundo.com>
18650
18651         * m4/gc-pbkdf2-sha1.m4: New file.
18652
18653         * m4/gc-hmac-sha1.m4: New file.
18654
18655         * m4/gc-sha1: New file.
18656
18657         * m4/hmac-sha1.m4: New file.
18658
18659 2005-10-12  Simon Josefsson  <jas@extundo.com>
18660
18661         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
18662
18663         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
18664
18665 2005-10-12  Simon Josefsson  <jas@extundo.com>
18666
18667         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
18668         suggested by Bruno Haible <bruno@clisp.org>.
18669
18670 2005-10-12  Simon Josefsson  <jas@extundo.com>
18671
18672         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
18673
18674 2005-10-12  Simon Josefsson  <jas@extundo.com>
18675
18676         * lib/gc-pbkdf2-sha1.c: New file.
18677
18678         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
18679
18680 2005-10-12  Simon Josefsson  <jas@extundo.com>
18681
18682         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
18683
18684         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
18685
18686 2005-10-12  Simon Josefsson  <jas@extundo.com>
18687
18688         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
18689         GC_USE_HMAC_MD5, respectively.
18690
18691         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
18692         (gc_md5): Fix typo.
18693
18694         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
18695
18696         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
18697
18698         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
18699
18700 2005-10-12  Bruno Haible  <bruno@clisp.org>
18701
18702         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
18703         Reported by Stepan Kasal <kasal@ucw.cz>.
18704
18705 2005-10-11  Simon Josefsson  <jas@extundo.com>
18706
18707         * tests/test-crc.c: New file.
18708
18709         * modules/crc, modules/crc-tests: New files.
18710
18711 2005-10-11  Simon Josefsson  <jas@extundo.com>
18712
18713         * m4/crc.m4: New file.
18714
18715 2005-10-11  Simon Josefsson  <jas@extundo.com>
18716
18717         * lib/gc.h: Add gc_hash and gc_hash_buffer.
18718
18719         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
18720
18721         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
18722
18723 2005-10-11  Simon Josefsson  <jas@extundo.com>
18724
18725         * lib/crc.h, lib/crc.c: New files.
18726
18727         * lib/gc.h (gc_hash_buffer): Add doc.
18728
18729 2005-10-11  Bruno Haible  <bruno@clisp.org>
18730
18731         * modules/c-strcasestr: New file.
18732         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
18733
18734 2005-10-11  Bruno Haible  <bruno@clisp.org>
18735
18736         * modules/c-strcase: New file.
18737         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
18738
18739 2005-10-11  Bruno Haible  <bruno@clisp.org>
18740
18741         * lib/strcasecmp.c: Include limits.h.
18742         (strcasecmp): Avoid integer overflow on exotic platforms.
18743         * lib/strncasecmp.c: Include limits.h.
18744         (strncasecmp): Avoid integer overflow on exotic platforms.
18745         Reported by Paul Eggert.
18746
18747 2005-10-11  Bruno Haible  <bruno@clisp.org>
18748
18749         * lib/c-strcasestr.h: New file, from GNU gettext.
18750         * lib/c-strcasestr.c: New file, from GNU gettext.
18751
18752 2005-10-11  Bruno Haible  <bruno@clisp.org>
18753
18754         * lib/c-strcase.h: New file, from GNU gettext.
18755         * lib/c-strcasecmp.c: New file, from GNU gettext.
18756         * lib/c-strncasecmp.c: New file, from GNU gettext.
18757
18758 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18759
18760         * modules/mempcpy (License): GPL -> LGPL.
18761         * modules/strchrnul (License): Likewise.
18762         * modules/sysexits (License): Likewise.
18763
18764 2005-10-08  Simon Josefsson  <jas@extundo.com>
18765
18766         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
18767
18768 2005-10-07  Simon Josefsson  <jas@extundo.com>
18769
18770         * m4/memxor.m4: Remove gl_C_RESTRICT call.
18771
18772 2005-10-06  Simon Josefsson  <jas@extundo.com>
18773
18774         * tests/test-hmac-md5.c: New file.
18775
18776         * modules/hmac-md5-tests: New file.
18777
18778         * modules/hmac-md5: New file.
18779
18780 2005-10-06  Simon Josefsson  <jas@extundo.com>
18781
18782         * m4/hmac-md5.m4: New file.
18783
18784         * m4/memxor.m4: Require gl_C_RESTRICT.
18785
18786 2005-10-06  Simon Josefsson  <jas@extundo.com>
18787
18788         * lib/memxor.c (memxor): Avoid casts and warnings.
18789
18790 2005-10-06  Simon Josefsson  <jas@extundo.com>
18791
18792         * lib/hmac-md5.c: New file.
18793
18794         * lib/hmac.h: New file.
18795
18796 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18797
18798         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
18799         promotes to int, not unsigned int, to catch the AIX 5.3
18800         compiler bug.
18801
18802 2005-10-05  Simon Josefsson  <jas@extundo.com>
18803
18804         * modules/memxor: New file.
18805
18806         * modules/iconv (Files): Move config.rpath to havelib, it is used
18807         there.
18808
18809         * modules/havelib (Files): Add config.rpath.
18810
18811 2005-10-05  Simon Josefsson  <jas@extundo.com>
18812
18813         * m4/memxor.m4: New file.
18814
18815 2005-10-05  Simon Josefsson  <jas@extundo.com>
18816
18817         * lib/memxor.c (memxor): Fix compiler error.
18818
18819         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
18820         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
18821
18822         * lib/memxor.h, lib/memxor.c: New files.
18823
18824         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
18825         we assume all systems have it, suggested by Jim Meyering
18826         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
18827         any systems lack sys/socket.h; mingw32 is known to lack it, but we
18828         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
18829         same reasons.
18830
18831 2005-10-05  Simon Josefsson  <jas@extundo.com>
18832
18833         * config/srclist.txt: Add glibc bug 1423 for md5.h.
18834
18835 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18836
18837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
18838         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
18839         needed, since the source code now assumes these .h files.
18840
18841 2005-10-05  Derek Price  <derek@ximbiot.com>
18842
18843         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
18844
18845 2005-10-05  Bruno Haible  <bruno@clisp.org>
18846
18847         * modules/stdint (License): Change to LGPL.
18848
18849 2005-10-04  Simon Josefsson  <jas@extundo.com>
18850
18851         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
18852         D. Baushke" <mdb@gnu.org>.
18853
18854 2005-10-04  Bruno Haible  <bruno@clisp.org>
18855
18856         * lib/verify.h (verify_true): Provide alternative definition for C++.
18857
18858 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18859
18860         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
18861         (SSIZE_MAX): New macro, if not already defined.
18862         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
18863         than 2 GiB.
18864
18865 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18866
18867         Sync from coreutils.
18868         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
18869         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
18870         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
18871         ULLONG_MAX doesn't work with 2.7.2.1.
18872
18873 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18874
18875         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
18876         From Ben Pfaff.
18877
18878         * modules/exclude (Depends-on): Depend on verify.
18879         * modules/strtoimax (Depends-on): Likewise.
18880         * modules/utimecmp (Depends-on): Likewise.
18881
18882 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18883
18884         * lib/exclude.c: Include verify.h.
18885         (verify): Remove.  All callers changed to use verify.h's version.
18886         * lib/strtoimax.c: Likewise.
18887         * lib/utimecmp.c: Likewis.e
18888
18889         Sync from coreutils.
18890         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
18891         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
18892         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
18893         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
18894         bother returning ENOSYS if settimeofday or stime fails; just let
18895         them return whatever errno they want to return.
18896         * lib/utimens.c: Include unistd.h, for dup2.
18897         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
18898         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
18899
18900 2005-10-02  Jim Meyering  <jim@meyering.net>
18901
18902         Sync from coreutils.
18903         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
18904         from glibc-2.2.5 that fails for read-only files.
18905
18906 2005-10-02  Jim Meyering  <jim@meyering.net>
18907
18908         Sync from coreutils.
18909         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
18910         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
18911         `#if HAVE_CONFIG_H'.
18912         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
18913         Remove AT_FDCWD test.
18914         Do not consume the fd unless successful.
18915         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
18916         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
18917         block, so that we don't even try to compile it if settimeofday is
18918         available.  This works around a compilation failure on OSF1 V5.1,
18919         due to stime requiring a `long int*' while tv_sec is `int'.
18920
18921 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
18922
18923         Sync from coreutils.
18924         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
18925         against `yes', rather than just testing for nonempty.
18926
18927 2005-10-01  Simon Josefsson  <jas@extundo.com>
18928
18929         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
18930         and Darwin.
18931
18932         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
18933         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
18934         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
18935         freeaddrinfo and gai_strerror are declared by the POSIX headers.
18936         Check if struct addrinfo is declared.
18937
18938 2005-10-01  Simon Josefsson  <jas@extundo.com>
18939
18940         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
18941         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
18942         AI_* and EAI_* definitions.  Protect function declarations.
18943
18944 2005-10-01  Jim Meyering  <jim@meyering.net>
18945
18946         Sync from coreutils.
18947
18948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
18949         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
18950         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
18951         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
18952         in the inet and nsl libraries.  Required on Solaris 5.7.
18953
18954 2005-10-01  Jim Meyering  <jim@meyering.net>
18955
18956         Sync from coreutils.
18957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
18958         in the inet and nsl libraries.  Required on Solaris 5.7.
18959
18960 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
18961
18962         * lib/getdelim.c (getdelim): Remove unused variables.
18963
18964 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
18965
18966         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
18967         so that the code works even with ancient cpp.  Portability problem
18968         with GCC 2.7.2.1 reported by Thomas M.Ott.
18969
18970 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
18971
18972         * modules/regex (Depends-on): Add strcase.
18973
18974         * modules/gethostname (Licence): Change from GPL to LGPL, since
18975         gethostname.c is a trivial implementation of a standard library
18976         function.
18977         * modules/poll (License): Change from GPL to LGPL, since it's
18978         derived from LGPL code.
18979
18980 2005-09-27  Jim Meyering  <jim@meyering.net>
18981
18982         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
18983         HAVE_CONFIG_H.
18984
18985         * lib/intprops.h (signed_type_or_expr__): Define.
18986         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
18987         for unsigned types.
18988
18989 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         * lib/verify.h (verify_expr): Remove, replacing with:
18992         (verify_true): New macro that returns true instead of void.
18993         (verify_type__): Remove.
18994         (verify): Use verify_true rather than verify_type__.
18995
18996 2005-09-26  Bruno Haible  <bruno@clisp.org>
18997
18998         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
18999         is necessary.
19000         (lib_SOURCES): Remove mbchar.c.
19001         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
19002         (Files): Add m4/mbrtowc.m4.
19003         * modules/mbiter: Likewise.
19004         * modules/mbuiter: Likewise.
19005
19006 2005-09-26  Bruno Haible  <bruno@clisp.org>
19007
19008         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
19009         compile mbchar.c if they are not both present.
19010         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
19011         * m4/mbiter.m4 (gl_MBITER): Likewise.
19012         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
19013         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
19014         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
19015
19016 2005-09-25  Jim Meyering  <jim@meyering.net>
19017
19018         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
19019         also uses socklen_t.
19020
19021 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19022
19023         * lib/utimens.c (ENOSYS): Define if not already defined.
19024         (futimens): Support having a null PATH if the file descriptor
19025         is nonnegative.
19026
19027         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
19028         Remove.
19029         (__attribute): Define to empty unless GCC 3.1 or later.
19030         This works around a core dump on OpenBSD 3.4, which has GCC
19031         2.95.3, which dumps core when given __attribute__(()).  It also
19032         simplifies other tests, since we really don't want to bother with
19033         worrying about which ancient version of GCC supported what.
19034         Original problem reported by Yoann Vandoorselaere, with part of
19035         the fix suggested by Derek Price.
19036
19037 2005-09-24  Jim Meyering  <jim@meyering.net>
19038
19039         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
19040         so we can once again use a positive bitfield width of 1 -- now we
19041         don't have to explain why we were using a bitfield width of 2.
19042
19043 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
19046         and similarly for the other external symbols.  Problem reported
19047         by James Gallager.
19048
19049         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
19050         bug reported by Jim Meyering.
19051
19052         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
19053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
19054         not needed, since socklen is a prerequisite module.
19055
19056 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
19057
19058         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
19059         Problem reported by Eric Blake.
19060         (getaddrinfo): Initialize se so that it's not garbage.
19061         Redo internal storage allocation so that it doesn't make unportable
19062         assumptions about alignment.
19063         Fix a memory leak.
19064
19065         * lib/utimens.c (futimens): Use futimesat if available.
19066         Prefer it to futimes since it doesn't have the futimes bug.
19067
19068         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
19069         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
19070         Instead, declare a function that returns a pointer to an array,
19071         and use verify_type__ to declare the size of the array.
19072         Problem and germ of a solution reported by Bruno Haible.
19073         (verify_type__): Use 2, not 1, for bitfield size, to avoid
19074         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
19075
19076 2005-09-23  Jim Meyering  <jim@meyering.net>
19077
19078         Sync from coreutils.
19079         Correct build failure (socklen_t not defined) on at least
19080         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
19081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
19082
19083 2005-09-23  Jim Meyering  <jim@meyering.net>
19084
19085         * modules/getaddrinfo (Depends-on): Add socklen.
19086
19087 2005-09-23  Bruno Haible  <bruno@clisp.org>
19088
19089         * tests/test-verify.c: New file.
19090
19091 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19092
19093         Sync from coreutils.
19094
19095         * modules/argmatch (Depends-on): Add verify.
19096         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
19097         unistd-safer.
19098         * modules/save-cwd (Depends-on): Likewise.
19099
19100         * modules/openat (Files): Add lib/openat-die.c.
19101         (Depends-on): Remove error, exitfail.
19102         Add dirname.
19103
19104         * modules/verify: New file.
19105         * MODULES.html.sh (Diagnostics <assert.h>): New section,
19106         with "verify" module.
19107
19108 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19109
19110         Sync from coreutils.
19111
19112         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
19113         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
19114         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
19115         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
19116         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
19117         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
19118         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
19119         Don't bother checking for string.h, stdlib.h, unistd.h.
19120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
19121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
19122         module's job.
19123         * m4/jm-macros.m4 (gl_MACROS): Likewise.
19124         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
19125
19126         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
19127         (gl_GETDATE): Use it.
19128
19129         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
19130
19131 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19132
19133         Sync from coreutils.
19134
19135         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
19136         stat-time.h.
19137         * lib/argmatch.h: Include verify.h
19138         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
19139         (ARGMATCH_ASSERT): Remove; unused.
19140         * lib/canonicalize.c: Assume STDC_HEADERS.
19141         * lib/exclude.c: Include "strcase.h".
19142         * lib/regex_internal.h [!defined _LIBC]: Likewise.
19143         * lib/getusershell.c: Include stdio--.h rather than stdio.h
19144         and stdio-safer.h.
19145         (getusershell): Call fopen, not fopen_safer.
19146         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
19147         Do not include unistd-safer.h.
19148         (save_cwd): Don't call fd_safer; no longer needed
19149         now that we include fcntl--.h.
19150
19151         * lib/getdate.y (relative_time): New type.
19152         (RELATIVE_TIME_0): New constant.
19153         (parser_control): Use relative_time instead of doing it ourselves.
19154         (%union): Add new relative_time rel member.
19155         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
19156         Now typeless.
19157         (relunit, relunit_snumber): Now of type rel.
19158         (zone, rel, relunit, get_date): Adjust to above changes.
19159
19160         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
19161         Do not include unistd-safer.h.
19162         (getloadavg): Don't call fd_safer; no longer needed
19163         now that we include fcntl--.h.
19164
19165         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
19166         (make_dir_parents): Treat ENOSYS like EEXIST.
19167
19168         Improve quality of diagnostics on restore_cwd failure.
19169         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
19170         (make_dir_parents): Last arg is now int * (for errno), not bool *.
19171         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
19172         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
19173         each time through the loop.  Do not diagnose restore_cwd failure;
19174         that is the caller's job (and perhaps the caller does not care).
19175
19176         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
19177         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
19178         If the file already exists but is not a directory, don't bother
19179         to try to make its parents.
19180         Close potential file descriptor leak if we can't chdir("/") (!).
19181         Don't always return true if chdir($PWD) fails; return true only
19182         if the requested action was done successfully (except for the
19183         chdir($PWD)).
19184         Don't log final directory unless we actually made it.
19185         Refactor to avoid duplicate code to fix up permissions.
19186         Don't attempt to fix up parent permissions if chdir($PWD) fails.
19187
19188         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
19189         to make it a bit faster and (I hope) clearer.
19190         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
19191         Fix bug in formats like %2N.
19192
19193         * lib/verify.h: New file.
19194
19195 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19196
19197         Sync from coreutils.
19198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
19199
19200 2005-09-22  Jim Meyering  <jim@meyering.net>
19201
19202         Sync from coreutils.
19203
19204         * m4/lstat.m4 (gl_FUNC_LSTAT):
19205         Use AC_LIBSOURCES to require lstat.c and lstat.h.
19206         Remove obsolete comment.
19207         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
19208         * m4/xstrtod.m4: Likewise.
19209
19210         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
19211
19212 2005-09-22  Jim Meyering  <jim@meyering.net>
19213
19214         Sync from coreutils.
19215
19216         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
19217
19218         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
19219         the .tm_year member, since otherwise gcc-4.0 would now warn about
19220         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
19221
19222         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
19223         order to avoid an unsuppressible warning from gcc on 64-bit systems.
19224
19225         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
19226         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
19227         when run in a time zone for which daylight savings time is in effect
19228         for the starting date.
19229
19230         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
19231         stop us from restricting permissions of just-created absolute-named
19232         directories.
19233         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
19234         to restore initial working directory.
19235         * lib/mkdir-p.c (make_dir_parents): New parameter:
19236         different_working_dir, to tell caller if/when we change the working
19237         directory and are unable to return to the initial one.
19238         * lib/mkdir-p.h (make_dir_parents): Update prototype.
19239         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
19240         `return false'.  This fixes a bug introduced on 2004-07-30.
19241
19242         * lib/openat.c (fdopendir): Be sure to close the supplied
19243         file descriptor before returning.  This makes our replacement
19244         implementation a little closer to Solaris's, where fdopendir
19245         ties the file descriptor to the returned DIR* pointer.
19246         * lib/openat.c (unlinkat): New function.
19247         * lib/openat.h (unlinkat): Add prototype.
19248         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
19249         (openat_restore_fail): Rename from openat_restore_die.
19250         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
19251
19252         Provide an alternative to exiting immediately upon save_cwd or
19253         restore_cwd failure.  Now, an application can arrange e.g.,
19254         to perform a longjump in that case.
19255         * lib/openat.c: Include dirname.h.
19256         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
19257         (rpl_openat, fdopendir, fstatat): Call openat_save_die
19258         and openat_restore_die rather than calling error directly.
19259         Don't include "error.h" or "exitfail.h"; they're no longer needed.
19260
19261         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
19262         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
19263         define.
19264
19265         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
19266         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
19267                             int utc, int nanoseconds);
19268         Background:
19269         date should not have to allocate a megabyte of virtual memory to
19270         handle a format argument like +%1048575T.  When implemented with
19271         strftime, it must allocate such a buffer, use strftime to fill it
19272         in, print it, then free it.
19273         With fprintftime, it simply prints everything and exits.
19274         With no need for memory allocation, that's one fewer way to fail.
19275         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
19276         optional field width, not before, so we accept %9:z, not %:9z.
19277         (my_strftime): Be sure to use L_('x') for literals.
19278
19279         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
19280         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
19281         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
19282         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
19283         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
19284         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
19285         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
19286         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
19287         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
19288         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
19289         * lib/xgethostname.c, lib/xreadlink.c:
19290         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
19291
19292         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
19293         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
19294         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
19295         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19296         and don't include <sys/file.h>).
19297
19298 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
19299
19300         Sync from coreutils.
19301
19302         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
19303         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
19304         [!LDAV_DONE]: Avoid unused variable warning.
19305
19306 2005-09-21  Bruno Haible  <bruno@clisp.org>
19307
19308         * lib/unicodeio.h (unicode_to_mb): New declaration.
19309
19310 2005-09-20  Derek Price  <derek@ximbiot.com>
19311
19312         * lib/getaddrinfo.c: Don't include <netdb.h> included from
19313         getaddrinfo.h.
19314
19315 2005-09-20  Bruno Haible  <bruno@clisp.org>
19316
19317         * gnulib-tool: Remove trailing slashes from the values specified for
19318         --source-base, --m4-base, --tests-base, --aux-dir.
19319         Suggested by Simon Josefsson <jas@extundo.com>.
19320
19321 2005-09-20  Bruno Haible  <bruno@clisp.org>
19322
19323         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
19324         func_modules_to_filelist, func_import, func_create_testdir): Make all
19325         sorting results locale-independent, so that gnulib-cache.m4 doesn't
19326         change when gnulib-tool is invoked in a different locale.
19327
19328 2005-09-19  Simon Josefsson  <jas@extundo.com>
19329
19330         * m4/socklen.m4: Fix typo.
19331
19332 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19333
19334         Use a consistent style for including <config.h>.
19335         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
19336         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
19337         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
19338         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
19339         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
19340         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
19341         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
19342         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
19343         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
19344         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
19345         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
19346         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
19347         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
19348         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
19349         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
19350         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
19351         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
19352         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
19353         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
19354         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
19355         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
19356         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
19357         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
19358         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
19359         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
19360         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
19361         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
19362         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
19363         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
19364         lib/xstrtoumax.c, lib/yesno.c:
19365         Standardize inclusion of config.h.
19366         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
19367         lib/inttostr.h:  Removed inclusion of config.h from header files.
19368         * lib/inttostr.c:  Adjusted in-tree users.
19369         * lib/timespec.h: Remove superfluous warning to include config.h.
19370         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
19371         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
19372         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
19373         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
19374         config.h with HAVE_CONFIG_H.
19375
19376 2005-09-19  Jim Meyering  <jim@meyering.net>
19377
19378         * modules/pathmax (License): Change to LGPL.
19379
19380 2005-09-19  Derek Price  <derek@ximbiot.com>
19381
19382         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
19383
19384 2005-09-19  Bruno Haible  <bruno@clisp.org>
19385
19386         * gnulib-tool (import): Provide default for --tests-base.
19387
19388 2005-09-19  Bruno Haible  <bruno@clisp.org>
19389
19390         * doc/quote.texi: New file, extracted from gnulib.texi.
19391         * doc/ctime.texi: New file, extracted from gnulib.texi.
19392         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
19393         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
19394         * doc/gnulib.texi: Include them.
19395
19396 2005-09-18  Bruno Haible  <bruno@clisp.org>
19397
19398         Portability fix.
19399         * gnulib-tool (func_readlink): New function.
19400         (func_ln_if_changed): Use it.
19401
19402 2005-09-18  Bruno Haible  <bruno@clisp.org>
19403
19404         * gnulib-tool: Support --with-tests also with --import.
19405         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
19406         (func_import): Use variables $testsbase and $inctests. Emit a
19407         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
19408         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
19409         SUBDIRS += $testsdir.
19410         (func_create_testdir): Update.
19411
19412 2005-09-18  Bruno Haible  <bruno@clisp.org>
19413
19414         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
19415         instead of $dry_run.
19416         (func_cp_if_changed, func_mv_if_changed): Remove functions.
19417         (func_ln_if_changed): Don't handle dry-run here.
19418         (func_import): In dry-run mode, detect more precisely which actions
19419         would be performed, and don't use "...ing" verbs.
19420
19421 2005-09-18  Bruno Haible  <bruno@clisp.org>
19422
19423         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
19424         (func_import): Use join on two temporary files instead of three nested
19425         loops, in order to determine which files are new or old.
19426
19427 2005-09-18  Bruno Haible  <bruno@clisp.org>
19428
19429         * gnulib-tool (func_import): Comment out code that spits out the
19430         new files with --dry-run.
19431
19432 2005-09-18  Bruno Haible  <bruno@clisp.org>
19433
19434         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
19435
19436 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19437
19438         * lib/stat-time.h: New file.
19439         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
19440         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
19441         in a different way.
19442         (timespec_cmp): New function.
19443         * lib/utimecmp.c: Include stat-time.h.
19444         (SYSCALL_RESOLUTION): Depend on whether various struct stat
19445         members exist, not on the obsolescent ST_MTIM_NSEC.
19446         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
19447
19448 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19449
19450         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
19451
19452 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19453
19454         * MODULES.html.sh (File system functions): Add stat-time.
19455         * modules/stat-time: New file.
19456         * modules/timespec (Files): Remove m4/st_mtim.m4; this
19457         is now done in a different way, by the stat-time module.
19458         * modules/utimecmp (Depends-on): Add stat-time.
19459
19460 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19461
19462         * m4/st_mtim.m4: Remove.  Superseded by...
19463         * m4/stat-time.m4: New file.
19464         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
19465         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
19466
19467 2005-09-15  Derek Price  <derek@ximbiot.com>
19468
19469         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
19470
19471 2005-09-15  Derek Price  <derek@ximbiot.com>
19472
19473         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
19474         * lib/regex_internal.c: Ditto, using this...
19475         (__GNUC_PREREQ): ...new macro.
19476         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
19477         using...
19478         (__GNUC_PREREQ): ...this new macro.
19479
19480         * lib/strstr.h: Include string.h. Define strstr as a macro here.
19481
19482 2005-09-15  Derek Price  <derek@ximbiot.com>
19483             Paul Eggert  <eggert@cs.ucla.edu>
19484
19485         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
19486         changes, consolidating in...
19487         * lib/regex_internal.h: ...this file.
19488
19489 2005-09-13  Jim Meyering  <jim@meyering.net>
19490
19491         * lib/canon-host.c: Filter through gnu indent and reword comments
19492         slightly.
19493         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
19494
19495 2005-09-13  Derek Price  <derek@ximbiot.com>
19496
19497         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
19498         failure.
19499         Reported by Jim Meyering  <jim@meyering.net>.
19500
19501 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19502
19503         * lib/base64.c: Typo.
19504         (base64_encode): Put b64str in initialized data section.
19505
19506 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19507
19508         Merge glibc and coreutils changes into gnulib, plus a few
19509         extra fixes.
19510         * lib/md5.c: Use #error rather than a string.
19511         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
19512         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
19513         (__attribute__): Define to empty for non recent-GCC.
19514         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
19515         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
19516         Renamed from their non-__ counterparts, with new macros replacing
19517         them if not _LIBC.  Add __THROW attribute.
19518         (rol): Remove.
19519         (struct md5_ctx): Align buffer if using GCC.
19520         * lib/sha1.h (struct sha1_ctx): Likewise.
19521         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
19522         The old name was backwards.
19523         (NOTSWAP): Remove; not used.
19524         (rol): New macro, moved here from md5.h.
19525         (sha1_process_block): Remove a FIXME that doesn't make sense.
19526
19527 2005-09-12  Derek Price  <derek@ximbiot.com>
19528
19529         Return usable errors from canon-host.
19530         * lib/canon-host.h: New file.
19531         * lib/canon-host.c (canon_host): Wrap...
19532         (canon_host_r): ...this new function, which now relies exclusively on
19533         getaddrinfo.
19534         (ch_strerror): New function.
19535         (last_cherror): New global.
19536         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
19537         interface.
19538         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
19539         void *.
19540         (freeaddrinfo): Free ai->ai_canonname when set.
19541
19542 2005-09-12  Derek Price  <derek@ximbiot.com>
19543
19544         Make canon-host require getaddrinfo.
19545         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
19546         AC_LIBSOURCE canon-host.h.  Call...
19547         (gl_PREREQ_CANON_HOST): ...this new function, which requires
19548         gl_GETADDRINFO.
19549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
19550
19551 2005-09-12  Derek Price  <derek@ximbiot.com>
19552
19553         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
19554         LGPL.
19555         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
19556
19557 2005-09-12  Derek Price  <derek@ximbiot.com>
19558
19559         * lib/gai_strerror.c: Include config.h when available.  Include
19560         getaddrinfo.h before other headers to test interface.
19561         Reported by Larry Jones <lawrence.jones@ugs.com>.
19562
19563 2005-09-12  Derek Price  <derek@ximbiot.com>
19564             Paul Eggert  <eggert@cs.ucla.edu>
19565
19566         * modules/glob (Files): Add glob-libc.h.
19567
19568 2005-09-12  Derek Price  <derek@ximbiot.com>
19569             Paul Eggert  <eggert@cs.ucla.edu>
19570
19571         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
19572         glob_.h, glob-libc.h.
19573         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
19574
19575 2005-09-12  Derek Price  <derek@ximbiot.com>
19576             Paul Eggert  <eggert@cs.ucla.edu>
19577
19578         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
19579         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
19580         protecting things that should be done only in gnulib contexts.
19581         * lib/glob_.h: New file, containing only the glob things needed for
19582         gnulib.
19583         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
19584         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
19585         (glob, globfree, glob_pattern_p): Now defined simply in terms of
19586         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
19587         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
19588         and to respect the namespace rules better.
19589
19590 2005-09-08  Simon Josefsson  <jas@extundo.com>
19591
19592         * modules/socklen: New file.
19593
19594 2005-09-08  Simon Josefsson  <jas@extundo.com>
19595
19596         * m4/socklen.m4: New file.
19597
19598 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19599
19600         * modules/utimens (Files): Add m4/utimbuf.m4, since
19601         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
19602         Reported by Sergey Poznyakoff.
19603
19604 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19605
19606         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
19607         definitions, since that's the preferred style in glibc.
19608         Fix a minor spacing issue, and update copyright notice to match
19609         glibc's.
19610
19611 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19612
19613         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
19614
19615 2005-09-06  Simon Josefsson  <jas@extundo.com>
19616
19617         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
19618         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
19619
19620 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19621
19622         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
19623         warning.
19624
19625 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19626
19627         * config/srclist.txt: Add glibc bug 1302.
19628
19629 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
19630
19631         Change bitset word type from unsigned int to unsigned long int,
19632         as this has better performance on typical 64-bit hosts.
19633         Port bitset code to hosts with unusual word sizes.
19634         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
19635         (build_collating_symbol):
19636         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
19637         argument is a bitset.  This is merely a style issue, but it makes
19638         it clearer that an entire array is expected.
19639         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
19640         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
19641         Port to the case where bitset_word is not the same as unsigned int.
19642         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
19643         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
19644         Likewise.
19645         * lib/regexec.c (check_dst_limits_calc_pos_1,
19646         check_subexp_matching_top):
19647         (build_trtable, group_nodes_into_DFAstates):
19648         Likewise.
19649         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
19650         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
19651         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
19652         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
19653         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
19654         * lib/regcomp.c (optimize_subexps, lower_subexp):
19655         Work even if bitset_word has holes in its bitwise representation.
19656         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
19657         * lib/regexec.c (check_dst_limits_calc_pos_1,
19658         check_subexp_matching_top):
19659         Likewise.
19660         * lib/regex_internal.c (re_string_reconstruct):
19661         Don't assume UCHAR_MAX == 255.
19662         * lib/regex_internal.h (bitset_set_all): Likewise.
19663         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
19664         All uses changed.
19665         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
19666         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
19667         All uses changed.
19668         (BITSET_WORD_MAX): New macro.
19669         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
19670         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
19671         (bitset_empty, bitset_copy):
19672         Prefer sizeof (bitset) to multiplying it out ourselves.
19673         (bitset_not_merge): Remove; unused.
19674         (bitset_contain): Return bool, not unsigned int with one bit on.
19675         All callers changed.
19676         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
19677         alignment than re_node_set; do this by defining a new internal
19678         type struct dests_alloc and using it to allocate memory.
19679
19680 2005-09-05  Bruno Haible  <bruno@clisp.org>
19681
19682         * gnulib-tool (func_import): Fix comparison in handling of symbolic
19683         links.
19684
19685 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
19686
19687         * modules/size_max (Makefile.am): Add size_max.h
19688
19689 2005-09-04  Derek Price  <derek@ximbiot.com>
19690
19691         * gnulib-tool (func_import): Fix reversed $symbolic logic.
19692
19693 2005-09-03  Simon Josefsson  <jas@extundo.com>
19694
19695         * gnulib-tool: Fix typo.
19696
19697 2005-09-03  Simon Josefsson  <jas@extundo.com>
19698
19699         * config/srclist.txt: Add glibc bug 1293.
19700
19701 2005-09-03  Derek Price  <derek@ximbiot.com>
19702
19703         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
19704         From Larry Jones <lawrence.jones@ugs.com>.
19705
19706 2005-09-02  Simon Josefsson  <jas@extundo.com>
19707
19708         * modules/socklen: New file.
19709
19710 2005-09-02  Simon Josefsson  <jas@extundo.com>
19711
19712         * modules/havelib: New module.
19713
19714         * modules/gettext, modules/iconv, modules/lock, modules/readline:
19715         Use havelib.
19716
19717 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19718
19719         Check for arithmetic overflow when calculating sizes, to prevent
19720         some buffer-overflow issues.  These patches are conservative, in the
19721         sense that when I couldn't determine whether an overflow was possible,
19722         I inserted a run-time check.
19723         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
19724         macros.
19725         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
19726         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
19727         (re_xnrealloc, re_x2nrealloc): New inline functions.
19728         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
19729         parse_bracket_exp):
19730         (build_equiv_class, build_charclass): Check for arithmetic overflow
19731         in size expression calculations.
19732         * lib/regex_internal.c (re_string_realloc_buffers):
19733         (build_wcs_upper_buffer, re_node_set_add_intersect):
19734         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
19735         (re_dfa_add_node, register_state): Likewise.
19736         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
19737         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
19738         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
19739         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
19740
19741 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19742
19743         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
19744         m4/ulonglong.m4.  Problem reported by Martin Lambers.
19745
19746 2005-09-02  Bruno Haible  <bruno@clisp.org>
19747
19748         Support for lib vs. lib64 distinction on biarch platforms.
19749         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
19750         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
19751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
19752
19753 2005-09-02  Bruno Haible  <bruno@clisp.org>
19754
19755         * gnulib-tool (import): In the other first-use case, provide defaults
19756         as well.
19757
19758 2005-09-02  Bruno Haible  <bruno@clisp.org>
19759
19760         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
19761         patches not yet found in the latest gettext release.
19762
19763 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19764
19765         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
19766         to avoid a collision with bits/local_lim.h in glibc.
19767         All uses changed.  Problem reported by Dmitry V. Levin in
19768         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
19769
19770         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
19771         bugs in int versus size_t comparisons.
19772         (re_string_context_at): Fix bug where the code assumed that
19773         Idx is signed.
19774
19775         Use bool where appropriate.
19776         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
19777         All callers changed.
19778         (calc_eclosure_iter): Likewise, for ROOT arg.
19779         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
19780         (build_charclass_op): Likewise, for NON_MATCH arg.
19781         * lib/regex_internal.c (re_string_allocate, re_string_construct):
19782         (re_string_construct_common): Likewise, for ICASE arg.
19783         * lib/regexec.c (re_search_2_stub, re_search_stub):
19784         Likewise, for RET_LEN arg.
19785         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
19786         (set_regs): Likewise, for FL_BACKTRACK arg.
19787         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
19788         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
19789         (calc_eclosure_iter, parse_bracket_exp):
19790         Use bool for internal variables that are booleans.
19791         * lib/regexec.c (re_search_internal, check_matching,
19792         proceed_next_node):
19793         (set_regs, build_sifted_states, sift_states_bkref):
19794         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
19795         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19796         (find_collation_sequence_value):
19797         Likewise.
19798         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
19799         (re_node_set_compare):
19800         Return bool, not int. All callers changed.
19801         * lib/regexec.c (check_halt_node_context, check_dst_limits):
19802         (build_trtable, check_node_accept): Likewise.
19803         * lib/regex_internal.h: Include stdbool.h.
19804
19805         Fix bugs uncovered when converting to bool.
19806         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
19807         failure instead of charging ahead blindly.
19808         * lib/regex_internal.c (register_state): Likewise.
19809         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
19810         for freeing internal storage.
19811         (group_nodes_into_DFA_states): Use unsigned int, not int, for
19812         bitset pieces used as boolean, to avoid undefined behavior
19813         on hosts that do int overflow checking.
19814
19815 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19816
19817         * config/srclist.txt: Add glibc bugs 1285-1287.
19818
19819 2005-09-01  Jim Meyering  <jim@meyering.net>
19820
19821         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
19822         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
19823         Require gl_STAT_MACROS, too.
19824
19825 2005-09-01  Bruno Haible  <bruno@clisp.org>
19826
19827         * gnulib-tool (import): In the first-use case, provide defaults.
19828
19829 2005-09-01  Bruno Haible  <bruno@clisp.org>
19830
19831         * gnulib-tool (func_import): Remove the .tmp files.
19832
19833 2005-09-01  Bruno Haible  <bruno@clisp.org>
19834
19835         * gnulib-tool (func_import): Fix handling of symbolic links.
19836
19837 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19838
19839         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
19840         old glibc regex code mishandles strings longer than 2**31 bytes.
19841         This patch fixes this when the regex code is used in gnulib
19842         (i.e., outside glibc).
19843
19844         This patch should not affect the use of the regex code inside
19845         glibc.  No doubt this problem also needs to be handled for glibc
19846         as well, but the result will be an incompatible change to the
19847         glibc ABI, and the old ABI will have to be supported too.  That
19848         can be the the subject for another patch.
19849
19850         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
19851         governing whether the rest of this patch is active.  By default,
19852         the macro is disabled and the patch has no effect.
19853         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
19854         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
19855         (struct re_pattern_buffer, re_search, re_search_2, re_match):
19856         (re_match_2, re_set_registers): Use the new types.
19857         * lib/regex_internal.h (Idx, re_hashval_t): New types.
19858         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
19859         New macros.
19860         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
19861         (re_string_context_at, bin_tree_t, re_dfastate_t):
19862         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
19863         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
19864         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
19865         (re_string_char_size_at, re_string_wchar_at):
19866         (re_string_elem_size_at):
19867         Use the new types and macros to port to 64-bit hosts.
19868         Use unsigned types for internal values, so that the code
19869         mostly works even for arrays larger than SSIZE_MAX.
19870         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
19871         (search_duplicated_node, calc_eclosure_iter, fetch_number):
19872         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19873         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
19874         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
19875         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
19876         (calc_inveclosure, parse_dup_op, build_range_exp):
19877         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
19878         (fetch_number, create_token_tree, mark_opt_subexp):
19879         Likewise.
19880         * lib/regex_internal.c (re_string_construct_common,
19881         create_ci_newstate):
19882         (create_cd_newstate, re_string_allocate, re_string_construct):
19883         (re_string_realloc_buffers, build_wcs_upper_buffer):
19884         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19885         (re_string_reconstruct, re_string_peek_byte_case):
19886         (re_string_fetch_byte_case, re_string_context_at):
19887         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19888         (re_node_set_init_copy, re_node_set_add_intersect):
19889         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19890         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19891         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19892         (re_acquire_state, re_acquire_state_context, register_state):
19893         Likewise.
19894         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
19895         search_cur_bkref_entry):
19896         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
19897         (re_search_internal, re_search_2_stub, re_search_stub)
19898         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
19899         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
19900         (update_cur_sifted_state, check_dst_limits):
19901         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
19902         (check_subexp_limits, sift_states_bkref, merge_state_array):
19903         (check_subexp_matching_top, get_subexp, get_subexp_sub):
19904         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
19905         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19906         (expand_bkref_cache, check_node_accept_bytes):
19907         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
19908         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
19909         (acquire_init_state_context, check_halt_node_context):
19910         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
19911         (sift_states_backward, clean_state_log_if_needed):
19912         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
19913         (find_recover_state, transit_state_sb, transit_state_mb):
19914         (transit_state_bkref, build_trtable, match_ctx_clean):
19915         Likewise.
19916         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
19917         to work around an assumption that REG_MISSING is negative.
19918
19919         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
19920         (seek_collating_symbol_entry) [defined _LIBC]:
19921         (lookup_collation_sequence_value) [defined _LIBC]:
19922         (build_range_exp, build_collating_symbol) [defined _LIBC]:
19923         Use prototypes rather than old-style function definitions.
19924         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
19925         (transit_state_sb) [0]:
19926         (find_collation_sequence_value) [defined _LIBC]: Likewise.
19927
19928         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
19929         rm_eo.
19930
19931         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
19932         (optimize_subexps, lower_subexp):
19933         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
19934         since the signed shift might overflow.  Use 1u<<31 instead.
19935         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
19936         Likewise.
19937         * lib/regexec.c (check_dst_limits_calc_pos_1,
19938         check_subexp_matching_top): Likewise.
19939
19940         * lib/regcomp.c (optimize_subexps, lower_subexp):
19941         Use CHAR_BIT rather than 8, for clarity.
19942         * lib/regexec.c (check_dst_limits_calc_pos_1):
19943         (check_subexp_matching_top): Likewise.
19944         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
19945         have to worry about portability issues when shifting it left.
19946         Remove no-longer-needed test for table_size > 0.
19947         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
19948         in a word, as the resulting behavior is undefined.
19949         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
19950         in one case, a <= should have been an <, and in another case the
19951         whole test was missing.
19952         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
19953         the standard name CHAR_BIT.
19954         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
19955         this is not true on one's complement and signed-magnitude hosts.
19956
19957         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
19958         next_last_offset.
19959         (struct re_dfa_t): Remove unused member states_alloc.
19960         * lib/regcomp.c (init_dfa): Don't initialize unused members.
19961
19962 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19963
19964         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
19965         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
19966         and large-file glibc and in 32-bit large-file Solaris.
19967
19968 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19969
19970         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
19971         lengths fit in regoff_t; this isn't true if regoff_t is the same
19972         width as size_t.
19973         * lib/regex.c (re_search_internal): 5th arg is LAST_START
19974         (= START + RANGE) instead of RANGE.  This avoids overflow
19975         problems when regoff_t is the same width as size_t.
19976         All callers changed.
19977         (re_search_2_stub): Check for overflow when adding the
19978         sizes of the two strings.
19979         (re_search_stub): Check for overflow when adding START
19980         to RANGE; if it occurs, substitute the extreme value.
19981
19982 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19983
19984         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
19985
19986 2005-08-31  Jim Meyering  <jim@meyering.net>
19987
19988         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
19989         a pointer-to-const.
19990         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
19991         (register_state): Likewise.
19992         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
19993         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
19994         (group_nodes_into_DFAstates): Likewise.
19995
19996 2005-08-31  Jim Meyering  <jim@meyering.net>
19997
19998         * check-module: Add a FIXME comment.
19999
20000 2005-08-31  Eric Blake  <ebb9@byu.net>
20001
20002         * modules/unistd-safer (Files): Add unistd--.h.
20003         * modules/stdio-safer (Files): Add stdio--.h.
20004
20005 2005-08-31  Derek Price  <derek@ximbiot.com>
20006
20007         * lib/getdelim.c (getdelim): Return EOF on EOF.
20008         Reported by Larry Jones <lawrence.jones@ugs.com>.
20009
20010 2005-08-31  Bruno Haible  <bruno@clisp.org>
20011
20012         Avoid unnecessary diffs in the generated lib/Makefile.am.
20013         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
20014         the generated files.
20015         (func_import): Don't set cmd.
20016
20017 2005-08-31  Bruno Haible  <bruno@clisp.org>
20018
20019         * lib/strstr.c: Include <stddef.h>, for NULL.
20020         * lib/strcasestr.c: Likewise.
20021         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20022
20023 2005-08-31  Bruno Haible  <bruno@clisp.org>
20024
20025         * gnulib-tool: New option --macro-prefix.
20026         (func_import): Use macro_prefix.
20027         (import): Handle option --macro-prefix.
20028
20029 2005-08-31  Bruno Haible  <bruno@clisp.org>
20030
20031         * gnulib-tool (import): Rename most ac_* variables to cached_*.
20032         Also use new variables cached_lgpl, cached_libtool.
20033
20034 2005-08-31  Bruno Haible  <bruno@clisp.org>
20035
20036         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
20037         always instantiating them.
20038
20039 2005-08-31  Bruno Haible  <bruno@clisp.org>
20040
20041         * gnulib-tool (func_import): Read the previous cached settings
20042         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
20043         earlier added by gnulib but are now dropped. Warn when a gnulib file
20044         overwrites a non-gnulib file.
20045
20046 2005-08-31  Bruno Haible  <bruno@clisp.org>
20047
20048         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
20049         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
20050         projects that don't keep autogenerated files in CVS. Put into
20051         actioncmd only the specified modules, not the transitive closure.
20052
20053 2005-08-31  Bruno Haible  <bruno@clisp.org>
20054
20055         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
20056         Create directories that shall be filled.
20057         (import): Don't look for gl_* macros in configure.ac. Recurse across
20058         all directories containing a gnulib-cache.m4 files, if meaningful.
20059
20060 2005-08-31  Bruno Haible  <bruno@clisp.org>
20061
20062         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
20063         (import): Set seen_libtool when we see gl_LIBTOOL.
20064
20065 2005-08-31  Bruno Haible  <bruno@clisp.org>
20066
20067         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
20068         declaration macro definitions from generated gnulib.m4.
20069
20070 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
20071
20072         * lib/iconvme.h: Add prototype for iconv_alloc.
20073
20074 2005-08-29  Simon Josefsson  <jas@extundo.com>
20075
20076         * lib/iconvme.c: Fix errno.
20077
20078 2005-08-29  Bruno Haible  <bruno@clisp.org>
20079
20080         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
20081         that it works when the directory contains spaces.
20082
20083 2005-08-29  Bruno Haible  <bruno@clisp.org>
20084
20085         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
20086
20087 2005-08-29  Bruno Haible  <bruno@clisp.org>
20088
20089         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
20090         Emit more advice.
20091
20092 2005-08-29  Bruno Haible  <bruno@clisp.org>
20093         and Stepan Kasal  <kasal@ucw.cz>
20094
20095         * check-module: If more parameters are given, check each of them
20096         separately; add more exceptions, as noted by Jim Meyering.
20097         (check_module): New procedure.
20098         (%exempt_header): Now contains all exceptions.
20099
20100 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
20101
20102         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
20103
20104 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
20105
20106         * lib/iconvme.c: Split iconv_string into iconv_alloc.
20107
20108 2005-08-28  Bruno Haible  <bruno@clisp.org>
20109
20110         * m4/gnulib-tool.m4: New file.
20111
20112 2005-08-27  Jim Meyering  <jim@meyering.net>
20113
20114         * modules/unistd-safer (Files): Add pipe-safer.c.
20115         * modules/fcntl-safer (Files): Add creat-safer.c.
20116
20117 2005-08-27  Jim Meyering  <jim@meyering.net>
20118
20119         * m4/stdlib-safer.m4: New file.  From coreutils.
20120         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
20121         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
20122         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
20123         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
20124         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
20125
20126 2005-08-27  Jim Meyering  <jim@meyering.net>
20127
20128         * lib/fopen-safer.c: Merge minor changes from coreutils.
20129         * lib/dup-safer.c: Likewise.
20130         * lib/fd-safer.c: Likewise.
20131
20132         Merge from coreutils.
20133         * lib/stdio--.h: New file.
20134         * lib/stdlib--.h: New file.
20135         * lib/mkstemp-safer.c: New file.
20136
20137         GNU tar needs these.
20138         * lib/pipe-safer.c: New file.
20139         * lib/creat-safer.c: New file.
20140         * lib/fcntl--.h (creat): Define to creat_safer.
20141         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
20142         * lib/unistd--.h (pipe): Define to pipe_safer.
20143         * lib/unistd-safer.h: Declare pipe_safer.
20144
20145 2005-08-26  Simon Josefsson  <jas@extundo.com>
20146
20147         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
20148         Haible <bruno@clisp.org>.
20149
20150 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
20151
20152         * lib/regex_internal.h: Remove all references to
20153         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
20154         or better.
20155         (bitset_not, bitset_merge, bitset_not_merge):
20156         (bitset_mask, re_string_allocate, re_string_construct):
20157         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
20158         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
20159         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
20160         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
20161         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
20162         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
20163         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
20164         (re_acquire_state_context):
20165         Remove unnecessary forward decls.
20166         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
20167         Put __attribute at function definition,
20168         now that the function decl has been removed.
20169         * lib/regex_internal.c (re_string_peek_byte_case):
20170         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
20171         Likewise.
20172
20173 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
20174
20175         * m4/regex.m4: Add AC_PREREQ(2.50).
20176         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
20177
20178 2005-08-25  Simon Josefsson  <jas@extundo.com>
20179
20180         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
20181         __fsetlocking.
20182
20183 2005-08-25  Simon Josefsson  <jas@extundo.com>
20184
20185         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
20186         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
20187         GLIBC specific code.
20188
20189 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20190
20191         Make regex safe for g++.  This fixes one real bug (an "err"
20192         that should have been "*err").  g++ problem reported by
20193         Sam Steingold.
20194         * lib/regex_internal.h (re_calloc): New macro, consistent with
20195         re_malloc etc.  All callers of calloc changed to use re_calloc.
20196         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
20197         not int.  All callers changed.
20198         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
20199         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
20200         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
20201         (find_recover_state): Change "err" to "*err"; this fixes what
20202         appears to be a real bug.
20203         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
20204         versus int.
20205
20206 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20207
20208         * modules/regex (Depends-on): Add malloc, since the code
20209         assumes that !malloc(0) means failure.
20210
20211 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20212
20213         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
20214
20215         alloca modernization/simplification for regex.
20216         * lib/regex.c: Remove portability cruft for alloca.  This no longer
20217         needs to be at the start of the file, and can be moved into
20218         regex_internal.h and simplified.
20219         * lib/regex_internal.h: Include <alloca.h>.
20220         (__libc_use_alloca) [!defined _LIBC]: New macro.
20221         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
20222         now works outside glibc.
20223
20224 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         * config/srclist.txt: Add glibc bugs 1241, 1245.
20227
20228 2005-08-25  Jim Meyering  <jim@meyering.net>
20229
20230         * lib/open-safer.c: Include <config.h>.
20231         Otherwise, we'd lose LARGEFILE support in any file using
20232         e.g. "fcntl--.h"
20233
20234 2005-08-25  Bruno Haible  <bruno@clisp.org>
20235
20236         * m4/minmax.m4: Require autoconf 2.52.
20237         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
20238         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
20239         alternatives of translit over the alphabet.
20240         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
20241
20242 2005-08-24  Simon Josefsson  <jas@extundo.com>
20243
20244         * tests/test-getpass.c: New file.
20245
20246 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20247
20248         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
20249         for GNU regex features.
20250
20251 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20252
20253         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
20254         * lib/regex.h (regerror): Likewise.
20255
20256         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
20257         requires this.  (The code never needed it.)
20258
20259         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
20260         All uses of recently-renamed identifiers changed to use the new,
20261         POSIX-compliant names.  The code will build and run just fine
20262         without these changes, but it's better to eat our own dog food
20263         and use the standard-conforming names.
20264
20265         * lib/regex.h: Fix a multitude of POSIX name space violations.
20266         These changes have an effect only for programs that define
20267         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
20268         do not change anything for programs compiled in the normal way.
20269         Also, there is no effect on the ABI.
20270
20271         (_REGEX_SOURCE): New macro.
20272         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
20273         defined and _GNU_SOURCE is not; this fixes a name space violation.
20274
20275         Rename the following macros to obey POSIX requirements.
20276         The old names are still visible as macros if _REGEX_SOURCE is defined.
20277         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
20278         RE_BACKSLASH_ESCAPE_IN_LISTS.
20279         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
20280         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
20281         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
20282         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
20283         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
20284         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
20285         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
20286         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
20287         (REG_INTERVALS): renamed from RE_INTERVALS.
20288         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
20289         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
20290         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
20291         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
20292         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
20293         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
20294         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
20295         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
20296         RE_UNMATCHED_RIGHT_PAREN_ORD.
20297         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
20298         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
20299         (REG_DEBUG): renamed from RE_DEBUG.
20300         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
20301         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
20302         unusual, since we can't clash with the POSIX REG_ICASE.
20303         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
20304         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
20305         (REG_NO_SUB): renamed from RE_NO_SUB.
20306         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
20307         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
20308         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
20309         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
20310         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
20311         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
20312         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
20313         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
20314         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
20315         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
20316         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
20317         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
20318         RE_SYNTAX_POSIX_MINIMAL_BASIC.
20319         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
20320         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
20321         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
20322         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
20323         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
20324         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
20325         (REG_FIXED): Renamed from REGS_FIXED.
20326         (REG_NREGS): Renamed from RE_NREGS.
20327
20328         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
20329         of other REG_* macros, since POSIX says the user is allowed to
20330         #undef these macros selectively.
20331
20332         (reg_errcode_t): Update comment stating what other tables need
20333         to be consistent.
20334
20335         Rename the following enum values to obey POSIX requirements.
20336         The old names are still visible as macros.
20337         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
20338         is not defined, since GNU is supposed to be a superset of POSIX as
20339         much as possible, and since we want reg_errcode_t to be a signed
20340         type for implementation consistency.
20341         (_REG_NOERROR): Renamed from REG_NOERROR.
20342         (_REG_NOMATCH): Renamed from REG_NOMATCH.
20343         (_REG_BADPAT): Renamed from REG_BADPAT.
20344         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
20345         (_REG_ECTYPE): Renamed from REG_ECTYPE.
20346         (_REG_EESCAPE): Renamed from REG_EESCAPE.
20347         (_REG_ESUBREG): Renamed from REG_ESUBREG.
20348         (_REG_EBRACK): Renamed from REG_EBRACK.
20349         (_REG_EPAREN): Renamed from REG_EPAREN.
20350         (_REG_EBRACE): Renamed from REG_EBRACE.
20351         (_REG_BADBR): Renamed from REG_BADBR.
20352         (_REG_ERANGE): Renamed from REG_ERANGE.
20353         (_REG_ESPACE): Renamed from REG_ESPACE.
20354         (_REG_BADRPT): Renamed from REG_BADRPT.
20355         (_REG_EEND): Renamed from REG_EEND.
20356         (_REG_ESIZE): Renamed from REG_ESIZE.
20357         (_REG_ERPAREN): Renamed from REG_ERPAREN.
20358         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
20359         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
20360         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
20361         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
20362
20363         (_REG_RE_NAME, _REG_RM_NAME): New macros.
20364         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
20365         changed.  But support the old name if the new one is not defined
20366         and if _REGEX_SOURCE.
20367
20368         Change the following member names in struct re_pattern_buffer.
20369         The old names are still supported if !_REGEX_SOURCE.
20370         The new names are always supported, regardless of _REGEX_SOURCE.
20371         (re_buffer): Renamed from buffer.
20372         (re_allocated): Renamed from allocated.
20373         (re_used): Renamed from used.
20374         (re_syntax): Renamed from syntax.
20375         (re_fastmap): Renamed from fastmap.
20376         (re_translate): Renamed from translate.
20377         (re_can_be_null): Renamed from can_be_null.
20378         (re_regs_allocated): Renamed from regs_allocated.
20379         (re_fastmap_accurate): Renamed from fastmap_accurate.
20380         (re_no_sub): Renamed from no_sub.
20381         (re_not_bol): Renamed from not_bol.
20382         (re_not_eol): Renamed from not_eol.
20383         (re_newline_anchor): Renamed from newline_anchor.
20384
20385         Change the following member names in struct re_registers.
20386         The old names are still supported if !_REGEX_SOURCE.
20387         The new names are always supported, regardless of _REGEX_SOURCE.
20388         (rm_num_regs): Renamed from num_regs.
20389         (rm_start): Renamed from start.
20390         (rm_end): Renamed from end.
20391
20392         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
20393         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
20394         Prepend __ to parameter names.
20395
20396         Undo yesterday's changes.
20397
20398 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20399
20400         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
20401         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
20402         lib/regex.c.
20403
20404 2005-08-24  Jim Meyering  <jim@meyering.net>
20405
20406         Sync from coreutils.
20407         * m4/fcntl-safer.m4: New file.
20408
20409         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
20410         and object files for this module.
20411
20412 2005-08-24  Jim Meyering  <jim@meyering.net>
20413
20414         Sync from coreutils.
20415         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
20416
20417 2005-08-24  Jim Meyering  <jim@meyering.net>
20418
20419         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
20420         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
20421
20422 2005-08-24  Jim Meyering  <jim@meyering.net>
20423
20424         * modules/fcntl-safer: New module.
20425         * modules/fts (Depends-on): Add fcntl-safer.
20426         * MODULES.html.sh (File descriptor based Input/Output):
20427         Add fcntl-safer.
20428
20429 2005-08-24  Bruno Haible  <bruno@clisp.org>
20430
20431         Support for unit test modules.
20432         * modules/README: Mention tests modules.
20433         * modules/TEMPLATE-TESTS: New file.
20434         * gnulib-tool: New options --extract-tests-module, --with-tests and
20435         --tests-base (unused for the moment).
20436         (testsbase, inctests): New variables.
20437         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
20438         (func_verify_module): Exclude TEMPLATE-TESTS.
20439         (func_verify_nontests_module, func_verify_tests_module): New functions.
20440         (func_get_dependencies): Add implicit dependency for tests modules.
20441         (func_get_tests_module): New function.
20442         (func_modules_transitive_closure): When --with-tests was specified,
20443         include the unit tests as well, unless explicitly avoided.
20444         (func_emit_lib_Makefile_am): Ignore the tests modules here.
20445         (func_emit_tests_Makefile_am): New function.
20446         (func_create_testdir): When --with-tests was specified, emit a
20447         tests/ directory.
20448         * MODULES.html.sh (Future developments): Update.
20449
20450 2005-08-24  Bruno Haible  <bruno@clisp.org>
20451
20452         * modules/tls-tests: New file.
20453         * tests/test-tls.c: New file, from GNU gettext.
20454
20455 2005-08-24  Bruno Haible  <bruno@clisp.org>
20456
20457         * modules/lock-tests: New file.
20458         * tests/test-lock.c: New file, from GNU gettext.
20459
20460 2005-08-24  Bruno Haible  <bruno@clisp.org>
20461
20462         * lib/lock.h: Add multiple inclusion guard.
20463         * lib/tls.h: Add multiple inclusion guard.
20464
20465 2005-08-24  Bruno Haible  <bruno@clisp.org>
20466
20467         * gnulib-tool: Add support for the --aux-dir option to
20468         --create-testdir, --create-megatestdir, --test, --megatest.
20469         (func_create_testdir, func_create_megatestdir): Optionally emit a
20470         AC_CONFIG_AUX_DIR directive.
20471         (create-testdir, create-megatestdir, test, megatest): Provide a
20472         default value for $auxdir.
20473
20474 2005-08-24  Bruno Haible  <bruno@clisp.org>
20475
20476         * gnulib-tool (import): Use compound statement instead of subshell
20477         where possible.
20478
20479 2005-08-24  Bruno Haible  <bruno@clisp.org>
20480
20481         * gnulib-tool (import): Change --aux-dir default to "build-aux".
20482
20483 2005-08-24  Bruno Haible  <bruno@clisp.org>
20484
20485         * gnulib-tool (func_version): Update.
20486
20487 2005-08-24  Bruno Haible  <bruno@clisp.org>
20488
20489         * gnulib-tool (func_import, func_create_testdir,
20490         func_create_megatestdir): Quote all autoconf macro arguments.
20491
20492 2005-08-24  Bruno Haible  <bruno@clisp.org>
20493
20494         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
20495         option --force, because --force causes the aclocal.m4 of each
20496         subdirectory to be newer than the corresponding config.h.in.
20497
20498 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20499
20500         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
20501         All contents moved to gl_REGEX.
20502         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
20503         assume that it does.
20504
20505 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20506
20507         * lib/regex.h (REG_NOSYS)
20508         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
20509         Define, since POSIX requires it as of 2001.
20510         (_REG_ENOSYS)
20511         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
20512         New private symbol, used to keep the enum signed in all cases.
20513         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
20514         Youngman in
20515         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
20516
20517         * lib/regex_internal.c (re_string_skip_chars, register_state):
20518         (calc_state_hash):
20519         Remove forward decls; no longer needed now that we use prototypes.
20520         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
20521         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
20522         (clean_state_log_if_needed): Likewise.
20523
20524 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20525
20526         * config/srclist.txt: Add glibc bugs 1231-1233.
20527
20528 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20529
20530         Fix problems reported by Sam Steingold in
20531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
20532         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
20533         assumed that reg_errcode_t is a signed type, which is not
20534         necessarily true if _XOPEN_SOURCE is not defined.
20535         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
20536         since some compilers warn about it otherwise.
20537
20538 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
20541         (init_word_char, create_initial_state, duplicate_node_closure):
20542         (fetch_token, peek_token_bracket, build_range_exp):
20543         (build_collating_symbol): Remove forward decls; no longer needed
20544         now that we use prototypes.
20545
20546         * lib/regcomp.c:
20547         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
20548         (re_compile_fastmap_iter, regcomp, regerror, regfree):
20549         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
20550         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
20551         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
20552         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
20553         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
20554         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
20555         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
20556         (build_range_exp, build_collating_symbol, parse_bracket_exp):
20557         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
20558         (build_charclass, build_charclass_op, fetch_number, create_tree):
20559         (create_token_tree, mark_opt_subexp, duplicate_tree):
20560         Use prototypes rather than old-style definitions.
20561
20562         * lib/regex_internal.c:
20563         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
20564         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
20565         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
20566         (re_string_reconstruct, re_string_peek_byte_case):
20567         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
20568         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
20569         (re_node_set_init_copy, re_node_set_add_intersect):
20570         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
20571         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
20572         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
20573         (re_acquire_state, re_acquire_state_context, register_state):
20574         (create_ci_newstate, create_cd_newstate, free_state):
20575         Likewise.
20576         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
20577         re_search_2):
20578         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
20579         (re_search_internal, prune_impossible_nodes):
20580         (acquire_init_state_context, check_matching, static):
20581         (check_halt_node_context, check_halt_state_context, proceed_next_node):
20582         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
20583         (update_regs, sift_states_backward, build_sifted_states):
20584         (clean_state_log_if_needed, merge_state_array):
20585         (update_cur_sifted_state, add_epsilon_src_nodes):
20586         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
20587         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
20588         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
20589         (find_recover_state, check_subexp_matching_top, transit_state_mb):
20590         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
20591         (check_arrival, check_arrival_add_next_nodes):
20592         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
20593         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
20594         (check_node_accept_bytes, check_node_accept, extend_buffers):
20595         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
20596         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
20597         (sift_ctx_init):
20598         Likewise.
20599
20600         * lib/regex_internal.h:
20601         (re_string_allocate, re_string_construct, re_string_reconstruct):
20602         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
20603         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
20604         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
20605         (re_string_context_at, re_string_peek_byte_case):
20606         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
20607         is defined, since we now use prototypes always.
20608
20609         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
20610         C89 or better.  All uses removed.
20611
20612 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20613
20614         * config/srclist.txt: Add glibc bugs 1220-1227.
20615
20616 2005-08-20  Jim Meyering  <jim@meyering.net>
20617
20618         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
20619         of unused local, dfa.
20620
20621 2005-08-20  Bruno Haible  <bruno@clisp.org>
20622
20623         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
20624
20625 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20626
20627         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
20628         (re_node_set_insert_last, re_dfa_add_node):
20629         Rename local variables to avoid GCC shadowing warnings.
20630
20631 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20632
20633         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
20634         [defined lint]: Suppress bogus uninitialized-variable warnings.
20635
20636         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
20637         and let the caller return REG_ESPACE if out of space.  This
20638         removes an uninitialied-variable warning with GCC 4.0.1, and also
20639         avoids taking the address of a local variable.  All callers
20640         changed.
20641
20642 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20643
20644         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
20645         $LIBCSRC/posix/regexec.c.
20646         Add glibc bug 1217 for regcomp.c.
20647
20648 2005-08-19  Jim Meyering  <jim@meyering.net>
20649
20650         * lib/regexec.c (proceed_next_node): Redo local variables to
20651         avoid GCC shadowing warnings.
20652
20653 2005-08-18  Bruno Haible  <bruno@clisp.org>
20654
20655         * lib/strstr.c (strstr): Fix return value in multibyte case.
20656         * lib/strcasestr.c (strcasestr): Likewise.
20657
20658 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20659
20660         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
20661
20662 2005-08-17  Jim Meyering  <jim@meyering.net>
20663
20664         Make the %s format (seconds since the epoch) work for a negative
20665         number and when used with a zero-padded field width, e.g. %015s.
20666
20667         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
20668         label so that it precedes the code to set `digits'.  Otherwise,
20669         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
20670         print `00-22'.  Now, it prints `-0022', as it should.
20671
20672 2005-08-17  Bruno Haible  <bruno@clisp.org>
20673
20674         * modules/strstr (Files): Add m4/mbrtowc.m4.
20675         (Depends-on): Add mbuiter.
20676
20677 2005-08-17  Bruno Haible  <bruno@clisp.org>
20678
20679         * modules/strcasestr: New file.
20680         * MODULES.html.sh (String handling, based on ANSI C 89): Add
20681         strcasestr.
20682
20683 2005-08-17  Bruno Haible  <bruno@clisp.org>
20684
20685         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
20686
20687 2005-08-17  Bruno Haible  <bruno@clisp.org>
20688
20689         * modules/mbuiter: New file.
20690         * MODULES.html.sh (Extended multibyte and wide character utilities):
20691         Add mbuiter.
20692
20693 2005-08-17  Bruno Haible  <bruno@clisp.org>
20694
20695         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
20696         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
20697
20698 2005-08-17  Bruno Haible  <bruno@clisp.org>
20699
20700         * m4/strcasestr.m4: New file.
20701
20702 2005-08-17  Bruno Haible  <bruno@clisp.org>
20703
20704         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
20705         * lib/strstr.c: Completely rewritten, with multibyte locale support.
20706
20707 2005-08-17  Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/strcasestr.h: New file.
20710         * lib/strcasestr.c: New file.
20711
20712 2005-08-17  Bruno Haible  <bruno@clisp.org>
20713
20714         * lib/strcasecmp.c: Use mbuiter.h.
20715
20716 2005-08-17  Bruno Haible  <bruno@clisp.org>
20717
20718         * lib/mbuiter.h: New file.
20719
20720 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20721
20722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
20723         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
20724         and gl_GETOPT are both invoked via different paths (as happens
20725         with GNU tar CVS because it uses both argp and getopt), the former
20726         wins.
20727
20728 2005-08-16  Bruno Haible  <bruno@clisp.org>
20729
20730         * modules/tls: New file.
20731         * MODULES.html.sh (Multithreading): Add tls.
20732
20733 2005-08-16  Bruno Haible  <bruno@clisp.org>
20734
20735         * modules/strnlen1: New file.
20736         * MODULES.html.sh (String handling): Add strnlen1.
20737
20738 2005-08-16  Bruno Haible  <bruno@clisp.org>
20739
20740         * modules/strcase (Files): Add m4/mbrtowc.m4.
20741         (Depends-on): Add strnlen1, mbchar.
20742
20743 2005-08-16  Bruno Haible  <bruno@clisp.org>
20744
20745         * modules/mbiter: New file.
20746         * MODULES.html.sh (Extended multibyte and wide character utilities):
20747         Add mbiter.
20748
20749 2005-08-16  Bruno Haible  <bruno@clisp.org>
20750
20751         * modules/mbfile: New file.
20752         * MODULES.html.sh (Extended multibyte and wide character utilities):
20753         Add mbfile.
20754
20755 2005-08-16  Bruno Haible  <bruno@clisp.org>
20756
20757         * modules/mbchar: New file.
20758         * MODULES.html.sh (Extended multibyte and wide character utilities):
20759         New section.
20760
20761 2005-08-16  Bruno Haible  <bruno@clisp.org>
20762
20763         * m4/tls.m4: New file, from GNU gettext.
20764
20765 2005-08-16  Bruno Haible  <bruno@clisp.org>
20766
20767         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
20768         always.
20769         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
20770
20771 2005-08-16  Bruno Haible  <bruno@clisp.org>
20772
20773         * m4/mbiter.m4: New file.
20774
20775 2005-08-16  Bruno Haible  <bruno@clisp.org>
20776
20777         * m4/mbfile.m4: New file.
20778
20779 2005-08-16  Bruno Haible  <bruno@clisp.org>
20780
20781         * m4/mbchar.m4: New file.
20782
20783 2005-08-16  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/tls.h: New file, from GNU gettext.
20786         * lib/tls.c: New file, from GNU gettext.
20787
20788 2005-08-16  Bruno Haible  <bruno@clisp.org>
20789
20790         * lib/strnlen1.h: New file.
20791         * lib/strnlen1.c: New file.
20792
20793 2005-08-16  Bruno Haible  <bruno@clisp.org>
20794
20795         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
20796         (mbi_init): Update.
20797         (mbi_avail, mbi_advance): Let the iteration end before the terminating
20798         NUL byte, not after it.
20799
20800 2005-08-16  Bruno Haible  <bruno@clisp.org>
20801
20802         * lib/strcase.h (strcasecmp): Add note in comments.
20803         * lib/strncasecmp.c: Use code from strcasecmp.c.
20804         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
20805         (strcasecmp): Work correctly in multibyte locales.
20806
20807 2005-08-16  Bruno Haible  <bruno@clisp.org>
20808
20809         * lib/mbiter.h: New file.
20810
20811 2005-08-16  Bruno Haible  <bruno@clisp.org>
20812
20813         * lib/mbfile.h: New file.
20814
20815 2005-08-16  Bruno Haible  <bruno@clisp.org>
20816
20817         * lib/mbchar.h: New file.
20818         * lib/mbchar.c: New file.
20819
20820 2005-08-16  Bruno Haible  <bruno@clisp.org>
20821
20822         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
20823         the valid ones. Makes the comparison operations transitive:
20824         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
20825         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
20826
20827 2005-08-15  Simon Josefsson  <jas@extundo.com>
20828
20829         * modules/ssize_t (License): Change to 'unlimited'.
20830
20831         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
20832
20833 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20834
20835         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
20836         Add comments for each pending glibc patch.
20837
20838 2005-08-15  Bruno Haible  <bruno@clisp.org>
20839
20840         * lib/regex.h (__restrict_arr): Don't define to __restrict if
20841         __cplusplus is defined.
20842
20843 2005-08-14  Jim Meyering  <jim@meyering.net>
20844
20845         Sync from coreutils.
20846
20847         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
20848         Use the hash-table-based cycle-detection code not just when
20849         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
20850         Reported by James Youngman in
20851         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
20852         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
20853         FTS_TIGHT_CYCLE_CHECK.
20854         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
20855         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
20856         once again.
20857         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
20858         * lib/fts.c (fd_safer): Remove decl.
20859         Include fcntl--.h rather than unistd-safer.h
20860         (fts_safe_changedir): Don't call fd_safer; no longer needed
20861         now that we include fcntl--.h.
20862
20863 2005-08-12  Simon Josefsson  <jas@extundo.com>
20864
20865         * modules/getndelim2: Use ssize_t module.
20866         * modules/getnline: Likewise.
20867         * modules/safe-read: Likewise.
20868         * modules/xreadlink: Likewise.
20869
20870         * modules/ssize_t: New file.
20871
20872 2005-08-12  Simon Josefsson  <jas@extundo.com>
20873
20874         * m4/readline.m4: Look for termcap, curses or ncurses if required.
20875
20876 2005-08-12  Simon Josefsson  <jas@extundo.com>
20877
20878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20879         ssize_t.
20880
20881 2005-08-12  Simon Josefsson  <jas@extundo.com>
20882
20883         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
20884         readline, getdelim and check_version.
20885         (Support for systems lacking ISO C 99: Sizes of integer types):
20886         Add size_max.
20887
20888 2005-08-12  Bruno Haible  <bruno@clisp.org>
20889
20890         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
20891
20892 2005-08-11  Simon Josefsson  <jas@extundo.com>
20893
20894         * modules/readline: New file.
20895
20896         * modules/strnlen (Files): Add strnlen.h.
20897
20898 2005-08-11  Simon Josefsson  <jas@extundo.com>
20899
20900         * m4/readline.m4: New file.
20901
20902 2005-08-11  Simon Josefsson  <jas@extundo.com>
20903
20904         * lib/readline.h, readline.c: New file.
20905
20906 2005-08-11  Simon Josefsson  <jas@extundo.com>
20907
20908         * doc/gnulib.texi (Initial import, Finishing touches): Mention
20909         gl_AVOID.
20910
20911 2005-08-11  Bruno Haible  <bruno@clisp.org>
20912
20913         * lib/strnlen.h (strnlen): Change parameter name to match comment.
20914
20915 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
20916
20917         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
20918
20919 2005-08-10  Simon Josefsson  <jas@extundo.com>
20920
20921         * tests/test-iconvme.c: New file.
20922
20923 2005-08-10  Simon Josefsson  <jas@extundo.com>
20924
20925         * m4/strnlen.m4: New file.
20926
20927         * m4/strndup.m4: Don't check for strnlen declaration, done in
20928         strnlen.m4.
20929
20930 2005-08-10  Simon Josefsson  <jas@extundo.com>
20931
20932         * lib/strndup.c: Use strnlen.h.
20933
20934         * lib/strnlen.h: New file.
20935
20936 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20937
20938         * README: Typos.
20939
20940 2005-08-02  Simon Josefsson  <jas@extundo.com>
20941
20942         * modules/readline: New file.
20943
20944 2005-08-02  Simon Josefsson  <jas@extundo.com>
20945
20946         * modules/getdelim: New file.
20947
20948         * modules/getline: Rewrite, don't use getndelim2.
20949
20950 2005-08-02  Simon Josefsson  <jas@extundo.com>
20951
20952         * m4/getline.m4: Separate out getdelim stuff into separate module.
20953
20954         * m4/getdelim.m4: New file.
20955
20956 2005-08-02  Simon Josefsson  <jas@extundo.com>
20957
20958         * lib/getline.h, getline.c: Rewrite.
20959
20960         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
20961
20962 2005-07-31  Bruno Haible  <bruno@clisp.org>
20963
20964         * lib/lock.h (gl_lock_initializer): New macro.
20965         (gl_lock_define_initialized): Use it.
20966         (gl_rwlock_initializer): New macro.
20967         (gl_rwlock_define_initialized): Use it.
20968         (gl_recursive_lock_initializer): New macro.
20969         (gl_recursive_lock_define_initialized): Use it.
20970
20971 2005-07-30  Karl Berry  <karl@gnu.org>
20972
20973         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
20974         Report from Ben Pfaff, regarding getopt.
20975
20976 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
20977
20978         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
20979         normal way.
20980         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
20981         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
20982         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
20983         (gl_GETOPT): Use the new macros.  Most of the implementation
20984         is moved to the new macros.  This is for programs like Emacs
20985         that don't want all the functionality of gl_GETOPT.
20986
20987 2005-07-26  Bruno Haible  <bruno@clisp.org>
20988
20989         * m4/lock.m4: Update from GNU gettext.
20990
20991 2005-07-26  Bruno Haible  <bruno@clisp.org>
20992
20993         * lib/lock.h: Update from GNU gettext.
20994         * lib/lock.c: Update from GNU gettext.
20995
20996 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
20997
20998         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
20999         obsolescent AC_TRY_RUN.  Include the default includes files, for
21000         'exit'.
21001
21002 2005-07-24  Bruno Haible  <bruno@clisp.org>
21003
21004         * modules/visibility: New file.
21005         * MODULES.html.sh (Misc): Add visibility.
21006
21007 2005-07-24  Bruno Haible  <bruno@clisp.org>
21008
21009         * m4/visibility.m4: New file.
21010
21011 2005-07-24  Bruno Haible  <bruno@clisp.org>
21012
21013         * doc/visibility.texi: New file.
21014
21015 2005-07-22  Bruno Haible  <bruno@clisp.org>
21016
21017         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
21018         $(ALLOCA_H), redundant through BUILT_SOURCES.
21019         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
21020         redundant through BUILT_SOURCES.
21021         * modules/byteswap (Makefile.am): Remove explicit dependency on
21022         $(BYTESWAP_H), redundant through BUILT_SOURCES.
21023         * modules/fnmatch (Makefile.am): Remove explicit dependency on
21024         $(FNMATCH_H), redundant through BUILT_SOURCES.
21025         * modules/getopt (Makefile.am): Remove explicit dependency on
21026         $(GETOPT_H), redundant through BUILT_SOURCES.
21027         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
21028         redundant through BUILT_SOURCES.
21029         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
21030         redundant through BUILT_SOURCES.
21031         * modules/stdbool (Makefile.am): Remove explicit dependency on
21032         $(STDBOOL_H), redundant through BUILT_SOURCES.
21033         * modules/stdint (Makefile.am): Remove explicit dependency on
21034         $(STDINT_H), redundant through BUILT_SOURCES.
21035         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
21036         Remove explicit dependency on $(SYSEXITS_H).
21037         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
21038
21039 2005-07-18  Simon Josefsson  <jas@extundo.com>
21040
21041         * lib/check-version.c (check_version): Accept identical versions too.
21042
21043 2005-07-18  Bruno Haible  <bruno@clisp.org>
21044
21045         * modules/lock: New file.
21046         * MODULES.html.sh (Multithreading): New section.
21047
21048 2005-07-18  Bruno Haible  <bruno@clisp.org>
21049
21050         * m4/lock.m4: New file, from GNU gettext.
21051
21052 2005-07-18  Bruno Haible  <bruno@clisp.org>
21053
21054         * lib/lock.h: New file, from GNU gettext.
21055         * lib/lock.c: New file, from GNU gettext.
21056
21057 2005-07-18  Bruno Haible  <bruno@clisp.org>
21058
21059         * lib/lock.h (gl_once_t): New type.
21060         (gl_once_define, gl_once): New macros.
21061         * lib/lock.c (fresh_once): New variable.
21062         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
21063         functions.
21064
21065 2005-07-16  Simon Josefsson  <jas@extundo.com>
21066
21067         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
21068         workaround, suggested by Bruno.
21069
21070 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21071
21072         * modules/xalloc (Depends-on): Add xalloc-die.
21073         * modules/xvasprintf (Depends-on): Add xalloc-die.
21074
21075 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21076
21077         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
21078         with a minor change.
21079
21080 2005-07-15  Bruno Haible  <bruno@clisp.org>
21081
21082         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
21083         When using lib/poll.c, define poll as rpl_poll.
21084
21085 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
21086
21087         * modules/argp (Depends-on): Remove unlocked-io.
21088
21089 2005-07-14  Derek Price  <derek@ximbiot.com>
21090
21091         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
21092         for glob symlink bug.
21093
21094 2005-07-14  Bruno Haible  <bruno@clisp.org>
21095
21096         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
21097         Instead, test for *_unlocked function declarations directly.
21098
21099 2005-07-11  Simon Josefsson  <jas@extundo.com>
21100
21101         * modules/size_max: New file.
21102
21103         * modules/xsize: Depend on size_max module for size_max.m4.
21104
21105 2005-07-11  Simon Josefsson  <jas@extundo.com>
21106
21107         * lib/size_max.h: New file.
21108
21109 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21110
21111         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
21112         copyright symbol and the year.
21113         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
21114         (version_etc_va): Use parameterized copyright notice.
21115         Reword to conform to the current GNU coding standards.
21116
21117 2005-07-11  Karl Berry  <karl@gnu.org>
21118
21119         * doc/gnulib.texi (Quoting): new node.
21120         (Initial import): more info, from Patrice.
21121
21122 2005-07-11  Bruno Haible  <bruno@clisp.org>
21123
21124         * gnulib-tool (func_usage): Document option --avoid.
21125         (Command line options): Handle --avoid.
21126         (func_acceptable): New function.
21127         (func_modules_transitive_closure): Use it.
21128
21129 2005-07-11  Bruno Haible  <bruno@clisp.org>
21130
21131         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
21132         Reported by Jim Meyering.
21133
21134 2005-07-10  Bruno Haible  <bruno@clisp.org>
21135
21136         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
21137         Needed when size_t is smaller than 'unsigned int'.
21138         Reported by Paul Eggert.
21139
21140 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21141
21142         * modules/argp (Depends-on): Add unlocked-io
21143
21144 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21145
21146         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
21147         block of defines.
21148
21149 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21150
21151         * config/srclist.txt: Comment out regcomp.c, since we have a porting
21152         fix now.
21153
21154 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
21155         and Paul Eggert  <eggert@cs.ucla.edu>
21156
21157         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
21158         in wint_t, not wchar_t.  Remove now-unnecessary cast.
21159
21160 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         * modules/regex (Files): Add lib/regex_internal.c,
21163         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
21164         (Depends-on): Add extensions.
21165         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
21166
21167 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21168
21169         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
21170         pathconf.
21171         * m4/same.m4 (gl_SAME): Likewise.
21172         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
21173
21174         * m4/regex.m4: Adjust to new libc regex implementation.
21175         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
21176         all the .c and .h parts of (the new) regex.
21177         Quote the m4 stuff better.
21178         Check for RE_ICASE bug of old gnulib.
21179         Check for REG_STARTEND of recent libc.
21180         Rename local variables from jm_* to gl_*.
21181         Quote operand of "test -f".
21182         Say "recent enough" version of libc, not "version 2".
21183         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
21184         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
21185         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
21186         Remove check for btowc, isascii.
21187         Require AM_LANGINFO_CODESET.
21188
21189 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21190
21191         * lib/regex.c, regex.h: Sync from libc.
21192         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
21193         * lib/regexec.c:
21194         New files, synced from libc, except that regex_internal.h
21195         currently has a small porting fix.
21196
21197 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
21200         regex_internal.c, regexec.c.
21201         Add regex_internal.h too, but as a comment, since the libc version
21202         is currently broken in gnulib mode.
21203
21204 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21205
21206         Support programs like Emacs that use gnulib but not gettext.
21207         * MODULES.html.sh (Internationalization functions): Add gettext-h.
21208         * modules/gettext-h: New file.
21209         * modules/gettext (Files): Remove lib/gettext.h.
21210         (Depends-on): Add gettext-h.
21211         (Makefile.am): Remove lib_SOURCES.
21212         * modules/argmatch, modules/c-stack, modules/closeout:
21213         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
21214         * modules/execute, modules/file-type, modules/getaddrinfo:
21215         * modules/getopt, modules/human, modules/javacomp:
21216         * modules/javaexec, modules/mkdir-p, modules/obstack:
21217         * modules/openat, modules/pagealign_alloc, modules/pipe:
21218         * modules/quotearg, modules/regex, modules/rpmatch:
21219         * modules/unicodeio, modules/userspec, modules/version-etc:
21220         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
21221         * modules/xsetenv:
21222         Depend on gettext-h, not gettext.
21223
21224 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21225
21226         * gnulib-tool (func_import): Add support for 'public domain' license.
21227         * modules/alloca, modules/atexit, modules/memmove:
21228         Now public domain, not GPL.
21229         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
21230         * modules/realloc, modules/strerror, modules/strtod:
21231         Now LGPL, not GPL.
21232
21233 2005-07-05  Bruno Haible  <bruno@clisp.org>
21234
21235         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
21236         autoconf CVS. Needed for mingw.
21237
21238 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21239
21240         Remove the dependency of the strftime module on the tzset module.
21241         * modules/strftime (Depends-on): Remove dependency on tzset.
21242
21243 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21244
21245         Remove the dependency of the strftime module on the tzset module.
21246         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
21247         gl_FUNC_TZSET_CLOBBER.
21248
21249 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21250
21251         Remove the dependency of the strftime module on the tzset module.
21252         * lib/strftime.c (my_strftime)
21253         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
21254         Copy the input structure, to work around some of the bug with
21255         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
21256         Solaris releases, you should also use the tzset module, but we won't
21257         require it as a dependency any more since we don't want LGPLed code
21258         to depend on GPLed code.
21259
21260 2005-07-02  Jim Meyering  <jim@meyering.net>
21261
21262         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
21263         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
21264         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
21265         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
21266
21267 2005-07-02  Jim Meyering  <jim@meyering.net>
21268
21269         * lib/backupfile.c (backup_args): Change a `0' to NULL.
21270
21271 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21272
21273         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
21274         declares only 'struct timespec;' (!).
21275
21276 2005-07-01  Jim Meyering  <jim@meyering.net>
21277
21278         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
21279         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
21280         * lib/save-cwd.c, tempname.c:
21281         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
21282         and don't include <sys/file.h>).
21283
21284 2005-06-29  Jim Meyering  <jim@meyering.net>
21285
21286         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
21287         type name.  Use the variable name instead.
21288         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
21289         Likewise.
21290
21291 2005-06-28  Simon Josefsson  <jas@extundo.com>
21292
21293         * modules/check-version (Files): Add check-version.m4.
21294
21295 2005-06-28  Simon Josefsson  <jas@extundo.com>
21296
21297         * m4/check-version.m4: New file, suggested by Jim Meyering
21298         <jim@meyering.net>.
21299
21300 2005-06-28  Simon Josefsson  <jas@extundo.com>
21301
21302         * lib/check-version.h, lib/check-version.c: New files.
21303
21304 2005-06-28  Simon Josefsson  <jas@extundo.com>
21305
21306         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
21307         collision with global variable.  Better indentation.  Don't
21308         increment buffer pointer beyond buffer end.  Based on comments
21309         from Paul Eggert <eggert@cs.ucla.edu>.
21310
21311         * lib/base64.h: Indent.
21312
21313 2005-06-28  Simon Josefsson  <jas@extundo.com>
21314
21315         * doc/gnulib.texi (Library version handling): New section.
21316
21317 2005-06-28  Jim Meyering  <jim@meyering.net>
21318
21319         * check-module (find_included_lib_files): Hard-code another
21320         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
21321         but modules/fts-lgpl (correctly) does not list those files.
21322
21323         * modules/canonicalize (Files): Add lib/pathmax.h.
21324
21325 2005-06-25  Simon Josefsson  <jas@extundo.com>
21326
21327         * modules/check-version: New file.
21328
21329 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21330
21331         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
21332         initializer of struct addrinfo, as an indication that we don't
21333         care how many members the structure has.
21334
21335 2005-06-24  Derek Price  <derek@ximbiot.com>
21336         and Bruno Haible  <bruno@clisp.org>
21337
21338         Remove stat module & update lstat.
21339         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
21340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21341         * m4/stat.m4: Remove this file.
21342
21343 2005-06-24  Derek Price  <derek@ximbiot.com>
21344         and Bruno Haible  <bruno@clisp.org>
21345
21346         Remove stat module & update lstat.
21347         * lib/stat.c: Remove this file...
21348         (slash_aware_lstat): ...moving this content and its support...
21349         * lib/lstat.c (rpl_lstat): ...into here.
21350         * lib/lstat.h: New file.
21351
21352 2005-06-24  Derek Price  <derek@ximbiot.com>
21353         and Bruno Haible  <bruno@clisp.org>
21354
21355         Remove stat module & update lstat.
21356         * config/srclist.txt (libc sources): Remove stat.
21357
21358 2005-06-24  Derek Price  <derek@ximbiot.com>
21359         and Bruno Haible  <bruno@clisp.org>
21360
21361         Remove stat module & update lstat.
21362         * MODULES.html.sh (stat): Remove.
21363         * MODULES.html: Regenerated.
21364         * modules/lstat (Description): Correct function name.
21365         (Files): Add "lstat.h".
21366         (Depends-on): Remove stat, add xalloc, stat-macros.
21367         * modules/stat: Remove this file.
21368         (Include): Add "lstat.h", remove <sys/stat.h>.
21369
21370 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21371
21372         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
21373         (ranged_convert): Don't save conversion in a temporary struct.
21374         This causes a warning with GCC 4.0.0, and anyway in the typical
21375         case it's not worth the extra 100 bytes or so of code.
21376         (ranged_convert, __mktime_internal): When calling a function via a
21377         pointer P, use P () rather than (*P) (), as we now assume C89 or
21378         better.
21379
21380 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21381
21382         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
21383         "who -r" failed to give output.  Problem reported by Tim Waugh.
21384
21385         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
21386         (xcalloc): Use it to avoid needless tests.
21387         Problem reported by Jim Meyering.
21388
21389 2005-06-20  Derek Price  <derek@ximbiot.com>
21390
21391         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
21392         unnecessary for Autoconfs > 2.59c.
21393
21394 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21395
21396         * lib/argp.h (__option_is_short): Check upper limit of
21397         __key. Isprint() requires its argument to have the value
21398         of an unsigned char or EOF.
21399
21400 2005-06-16  Jim Meyering  <jim@meyering.net>
21401
21402         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
21403         when either N or S is zero.
21404
21405 2005-06-16  Derek Price  <derek@ximbiot.com>
21406
21407         * m4/bison.m4: Declare YACC & YFLAGS precious.
21408
21409 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
21412         multibyte string or pattern, fall back on unibyte matching.
21413         Problem reported by James Youngman.
21414
21415 2005-06-08  Bruno Haible  <bruno@clisp.org>
21416
21417         * modules/csharpcomp: New file.
21418         * MODULES.html.sh (C#): Add csharpcomp.
21419
21420 2005-06-08  Bruno Haible  <bruno@clisp.org>
21421
21422         * m4/csharpcomp.m4: New file, from GNU gettext.
21423
21424 2005-06-08  Bruno Haible  <bruno@clisp.org>
21425
21426         * lib/csharpcomp.h: New file, from GNU gettext.
21427         * lib/csharpcomp.c: New file, from GNU gettext.
21428         * lib/csharpcomp.sh.in: New file, from GNU gettext.
21429
21430 2005-06-08  Bruno Haible  <bruno@clisp.org>
21431
21432         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
21433         warning on mingw.
21434
21435 2005-06-07  Derek Price  <derek@ximbiot.com>
21436
21437         Sync from CVS.
21438         * lib/glob_.h: Indent nested #ifdef.
21439
21440 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21441
21442         Sync from coreutils.
21443         Use "file name" when talking about file names, instead of "filename"
21444         or "path", as per the GNU coding standards.
21445         * lib/mkdir-p.c: Renamed from makepath.c.
21446         (make_dir_parents): Renamed from make_path.  All callers changed.
21447         * lib/mkdir-p.h: Likewise.  All includers changed.
21448         * lib/filenamecat.c: Renamed from path-concat.c.
21449         (file_name_concat): Renamed from path_concat.  All callers changed.
21450         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
21451         * lib/filenamecat.h: Likewise.  All includers changed.
21452         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
21453         in comments or local variable names.
21454         * lib/basename.c: Likewise.
21455         * lib/canonicalize.c, canonicalize.h: Likewise.
21456         * lib/dirname.c, dirname.h: Likewise.
21457         * lib/euidaccess.c: Likewise.
21458         * lib/exclude.c: Likewise
21459         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
21460         * lib/fsusage.c, fsuage.h: Likewise.
21461         * lib/fts.c, fts_.h: Likewise.
21462         * lib/getcwd.c: Likewise.
21463         * lib/getloadavg.c: Likewise.
21464         * lib/mkstemp.c: Likewise.
21465         * lib/mountlist.c, mountlist.h: Likewise.
21466         * lib/openat.c, openat.h: Likewise.
21467         * lib/readlink-stub.c: Likewise.
21468         * lib/readutmp.c, readutmp.h: Likewise.
21469         * lib/rename.c: Likewise.
21470         * lib/rmdir.c: Likewise.
21471         * lib/same.c: Likewise.
21472         * lib/savedir.c: Likewise.
21473         * lib/stripslash.c: Likewise.
21474         * lib/tempname.c: Likewise.
21475         * lib/xreadlink.c: Likewise.
21476         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
21477         All uses changed.
21478         * lib/exclude.h: Likewise.
21479
21480         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
21481         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
21482         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
21483         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
21484         * lib/pathmax.h: Include <limits.h> unconditionally, since other
21485         files have been getting away with it for years (MORE/BSD 4.3
21486         is extinct now).
21487         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
21488         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
21489
21490         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
21491         Define to 256, not 255, as per modern POSIX.
21492
21493 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21494
21495         Sync from coreutils.
21496         Use "file name" when talking about file names, instead of "filename"
21497         or "path", as per the GNU coding standards.
21498         * MODULES.html.sh: mkdir-p renamed from makepath.
21499         filenamecat renamed from path-concat.
21500         * modules/filenamecat: Renamed from modules/path-concat.
21501         (Files): filenamecat.h and filenamecat.c renamed from
21502         path-concat.h and path-concat.c.
21503         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
21504         (Include): filenamecat.h, not path-concat.h.
21505         * modules/mkdir-p: Renamed from modules/makepath.
21506         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
21507         makepath.c.
21508         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
21509         (Include): mkdir-p.h, not makepath.h.
21510
21511 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21512
21513         Sync from coreutils.
21514         * m4/mkdir-p.m4: Renamed from makepath.m4.
21515         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
21516         Rename files from makepath.c to mkdir-p.c, and from
21517         makepath.h to mkdir-p.h.
21518         * m4/filenamecat.m4: Renamed from path-concat.m4.
21519         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
21520         Rename files from path-concat.c to filenamecat.c,
21521         and from path-concat.h to filenamecat.h.
21522         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
21523         "file name" in local variables or comments.
21524         * m4/rename.m4: Likewise.
21525
21526 2005-06-01  Bruno Haible  <bruno@clisp.org>
21527
21528         * modules/csharpexec: New file.
21529         * MODULES.html.sh (C#): New section.
21530
21531 2005-06-01  Bruno Haible  <bruno@clisp.org>
21532
21533         * m4/csharp.m4: New file, from GNU gettext.
21534         * m4/csharpexec.m4: New file, from GNU gettext.
21535
21536 2005-06-01  Bruno Haible  <bruno@clisp.org>
21537
21538         * lib/csharpexec.h: New file, from GNU gettext.
21539         * lib/csharpexec.c: New file, from GNU gettext.
21540         * lib/csharpexec.sh.in: New file, from GNU gettext.
21541
21542 2005-05-31  Derek Price  <derek@ximbiot.com>
21543             Paul Eggert  <eggert@cs.ucla.edu>
21544
21545         Sync from cvs.
21546         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
21547
21548 2005-05-31  Derek Price  <derek@ximbiot.com>
21549             Paul Eggert  <eggert@cs.ucla.edu>
21550
21551         Sync from cvs.
21552         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
21553
21554 2005-05-29  Derek Price  <derek@ximbiot.com>
21555
21556         * config/srclist.txt (glob_.h, glob.c): Add these files.
21557
21558 2005-05-29  Derek Price  <derek@ximbiot.com>
21559
21560         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
21561         * modules/glob: New file.
21562         * modules/getlogin_r: Add link to POSIX spec in description.
21563
21564 2005-05-29  Derek Price  <derek@ximbiot.com>
21565             Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         * m4/glob.m4: New file.
21568
21569 2005-05-29  Derek Price  <derek@ximbiot.com>
21570             Paul Eggert  <eggert@cs.ucla.edu>
21571
21572         * lib/glob_.h, lib/glob.c: New files.
21573
21574 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21575
21576         * modules/fts (Files): Remove m4/inttypes-pri.m4.
21577         * modules/fts-lgpl (Depends-on): Remove gettext.
21578
21579 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21580
21581         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
21582         and don't require gt_INTTYPES_PRI.
21583
21584 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21585
21586         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
21587
21588         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
21589         the configuration hassle isn't worth it.
21590         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
21591         (LONGEST_MODIFIER, PRIuMAX): Remove.
21592
21593 2005-05-27  Bruno Haible  <bruno@clisp.org>
21594
21595         * lib/getlogin_r.h: Remove second include of <stddef.h>.
21596
21597 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
21598
21599         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
21600         _POSIX_PTHREAD_SEMANTICS for Solaris.
21601
21602 2005-05-25  Derek Price  <derek@ximbiot.com>
21603
21604         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
21605
21606 2005-05-25  Derek Price  <derek@ximbiot.com>
21607             Paul Eggert  <eggert@cs.ucla.edu>
21608
21609         * modules/getlogin_r, m4/getlogin_r.m4: New files.
21610         * lib/getlogin_r.c, getlogin_r.h: New files.
21611
21612 2005-05-25  Bruno Haible  <bruno@clisp.org>
21613             Derek Price  <derek@ximbiot.com>
21614
21615         * lib/getlogin_r.h: Simplify API documentation.
21616
21617 2005-05-23  Derek Price  <derek@ximbiot.com>
21618
21619         * modules/minmax (Files): Add m4/minmax.m4.
21620         (configure.ac): Add gl_MINMAX.
21621
21622 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21623
21624         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
21625         so that unistd-safer.h (GPL'ed code) need not be included.
21626
21627 2005-05-22  Bruno Haible  <bruno@clisp.org>
21628
21629         * m4/minmax.m4: New file.
21630         Based on a patch by Derek Price <derek@ximbiot.com>.
21631
21632 2005-05-22  Bruno Haible  <bruno@clisp.org>
21633
21634         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
21635         (INT64_MIN): Fix definition.
21636         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
21637
21638         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
21639         NEED_SIGNED_INT_TYPES.
21640
21641         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
21642         HAVE_SYSTEM_INTTYPES.
21643
21644 2005-05-22  Bruno Haible  <bruno@clisp.org>
21645
21646         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
21647         Also include <sys/param.h> if it defines MIN, MAX.
21648         Based on a patch by Derek Price <derek@ximbiot.com>.
21649
21650 2005-05-21  Jim Meyering  <jim@meyering.net>
21651
21652         * modules/fts (Files): Add m4/inttypes-pri.m4.
21653         (Depends-on): Add lstat and remove gettext.  Alphabetize.
21654
21655 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21656
21657         New fts module.
21658         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
21659         (setup_dir, free_dir): New functions.
21660         (enter_dir, leave_dir): Define trivial
21661         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
21662         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
21663         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
21664         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
21665         Move to fts-cycle.c.
21666         (fts_open): Use setup_dir.
21667         (fts_close): Use free_dir.
21668         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
21669         This adds a label and some gotos, but the alternatives were messier.
21670         Check for memory allocation failure when entering a dir.
21671         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
21672         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
21673         (FTS): New member fts_cycle, that is a union that contains the
21674         old active_dir_ht and cycle_state.  All uses changed to mention
21675         fts_cycle.ht and fts_cycle.state.
21676         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
21677         fts.c, with the following changes:
21678         (setup_dir, free_dir): New functions.
21679         (enter_dir): Now returns bool.  Return true if successful, false
21680         if memory exhausted.  All callers changed.
21681         Do not bother partly cleaning up on
21682         memory allocation failure; that is free_dir's job.
21683         However, free ad if hash_insert fails, to avoid memory leak.
21684         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
21685         fts->fts_options to see which union member to use.
21686
21687 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21688
21689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
21690         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
21691
21692 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21693
21694         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
21695
21696 2005-05-20  Jim Meyering  <jim@meyering.net>
21697
21698         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
21699         Now a macro, to pacify GCC.
21700
21701 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
21702
21703         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
21704         of -1.
21705
21706 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
21707
21708         * lib/chown.c (rpl_chown): Return -1 on failure.
21709
21710 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
21711
21712         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
21713         Don't check for stddef.h.
21714         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
21715         don't use its results.
21716         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
21717         since we include them unconditionally.  Don't require
21718         AM_STDBOOL_H, since stdbool is a prerequisite.
21719         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
21720         since we assume C89 or better.
21721         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
21722         as we don't use their results.
21723         Don't check for fchdir, memmove, memset, strrchr, as we use
21724         them unconditionally.
21725         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
21726         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
21727
21728 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
21729
21730         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
21731         Include <stddef.h> unconditionally, since we assume C89 now.
21732         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
21733         * lib/fts.c: Include fts_.h first, to check interface.
21734         Do not include intprops.h; no longer needed.
21735         Include cycle-check.h and hash.h, since fts_.h no longer does.
21736         Remove unnecessary casts of closedir to void.
21737         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
21738         decide whether to decrement nlinks.
21739         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
21740         (FTS): Use struct hash_table * instead of Hash_table, so that
21741         we no longer need to include hash.h here.
21742
21743 2005-05-18  Jim Meyering  <jim@meyering.net>
21744
21745         * modules/dirfd (License): Change to LGPL.  Most of the code
21746         is already in the public domain.
21747
21748 2005-05-18  Jim Meyering  <jim@meyering.net>
21749
21750         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
21751         Reported by Yoann Vandoorselaere.
21752
21753 2005-05-17  Jim Meyering  <jim@meyering.net>
21754
21755         * m4/fts.m4: New file, from coreutils.
21756
21757 2005-05-17  Jim Meyering  <jim@meyering.net>
21758
21759         * lib/fts.c, lib/fts_.h: New files, from coreutils.
21760
21761 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21762
21763         Sync from coreutils.
21764         * m4/unlinkdir.m4: New file.
21765
21766 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21767
21768         Sync from coreutils.
21769         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
21770         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
21771         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
21772         White space changes only.
21773         * lib/makepath.c (make_path): Port to hosts where leading "//" is
21774         special.
21775         * lib/yesno.c: Include getline.h, not ctype.h.
21776         (yesno): Don't remove leading white space; POSIX doesn't allow it.
21777         Use getline to remove arbitrary restriction on response length.
21778
21779 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21780
21781         * config/srclist-update: Spell out "Street" in FSF postal
21782         mail address; this is the style the FSF seems to prefer.
21783
21784         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
21785         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
21786         this updates FSF postal mail address.
21787
21788         Sync from coreutils.
21789         * modules/unlinkdir: New file.
21790         * modules/yesno (Depends-on): Add getline.
21791         * MODULES.html.sh (File system functions): Add unlinkdir.
21792
21793 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21794
21795         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
21796         lib/strsep.h:
21797         Change the initial comment to refer to GPL, not LGPL.
21798         gnulib-tool will change it to LGPL as needed.
21799
21800         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
21801         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
21802         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
21803         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
21804         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
21805         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
21806         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
21807         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
21808         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
21809         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
21810         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
21811         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
21812         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
21813         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
21814         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
21815         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
21816         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
21817         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
21818         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
21819         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
21820         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
21821         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
21822         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
21823         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
21824         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
21825         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
21826         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
21827         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
21828         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
21829         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
21830         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
21831         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
21832         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
21833         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
21834         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
21835         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
21836         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
21837         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
21838         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
21839         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
21840         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
21841         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
21842         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
21843         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
21844         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
21845         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
21846         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
21847         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
21848         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
21849         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
21850         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21851         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
21852         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
21853         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
21854         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
21855         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
21856         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
21857         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
21858         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
21859         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
21860         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
21861         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
21862         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
21863         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
21864         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
21865         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
21866         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
21867         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
21868         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
21869         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
21870         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
21871         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
21872         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
21873         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
21874         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
21875         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
21876         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
21877         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
21878         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
21879         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
21880         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
21881         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
21882         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
21883         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
21884         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
21885         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
21886         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
21887         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
21888         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
21889         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
21890         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
21891         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
21892         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
21893         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
21894         lib/yesno.c, lib/yesno.h:
21895         Update FSF postal mail address.
21896
21897 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21898
21899         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
21900         tests/test-memmem.c, tests/test-stpncpy.c:
21901         Update FSF postal mail address.
21902
21903 2005-05-13  Bruno Haible  <bruno@clisp.org>
21904
21905         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
21906         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
21907         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
21908         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
21909         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
21910         Add support for 64-bit integers in the MSVC compiler.
21911
21912 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21913
21914         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
21915
21916 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
21917
21918         * gnulib-tool (func_import): Sort and uniquify recommended includes.
21919
21920 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21921
21922         * doc/getdate.texi (General date syntax): Don't say that date
21923         date --iso-8601=ns generates acceptable dates; it doesn't yet.
21924         Problem reported by Nic Ferrier.
21925
21926 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21927
21928         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
21929         specified in ai_socktype. Fix invalid ai_protocol
21930         check. ai_protocol is usually set to 0 or depending on
21931         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
21932         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
21933         ai_socktype / ai_protocol in the returned addrinfo structure.
21934
21935 2005-05-10  Simon Josefsson  <jas@extundo.com>
21936
21937         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
21938         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21939
21940 2005-05-10  Karl Berry  <karl@gnu.org>
21941
21942         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
21943         (from http://www.gnu.org/licenses).
21944         * doc/COPYING.LIB: also rename to COPYING.LESSER.
21945         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
21946         fdl.texi suffices.
21947
21948 2005-05-10  Karl Berry  <karl@gnu.org>
21949
21950         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
21951         (COPYING.DOC): remove.
21952
21953         * config/srclist-update: new FSF address.
21954
21955 2005-05-10  Derek Price  <derek@ximbiot.com>
21956
21957         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
21958         possible.
21959
21960 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21961             Bruno Haible  <bruno@clisp.org>
21962
21963         * modules/inet_ntop: New file.
21964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21965         inet_ntop.
21966
21967 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21968             Bruno Haible  <bruno@clisp.org>
21969
21970         * m4/inet_ntop.m4: New file.
21971
21972 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21973             Bruno Haible  <bruno@clisp.org>
21974
21975         * lib/inet_ntop.h: New file.
21976         * lib/inet_ntop.c: New file, from glibc with modifications.
21977
21978 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
21979
21980         * modules/time_r (License): Change to LGPL.
21981         * modules/extensions (License): Change to LGPL.  Actually,
21982         the license is more permissive than that, but currently gnulib-tool
21983         doesn't know how to handle more-permissive licenses.
21984
21985         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
21986         Problem reported by Dave Love.
21987
21988 2005-05-08  Jim Meyering  <jim@meyering.net>
21989
21990         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
21991         blank.
21992
21993 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21994
21995         * modules/argmatch (Depends-on): Add stdbool.
21996         * modules/backupfile (Depends-on): Likewise.
21997         * modules/chdir-long (Depends-on): Likewise.
21998         * modules/closeout (Depends-on): Likewise.
21999         * modules/cycle-check (Depends-on): Likewise.
22000         * modules/dirname (Depends-on): Likewise.
22001         * modules/fnmatch (Depends-on): Likewise.
22002         * modules/fsusage (Depends-on): Likewise.
22003         * modules/fwriteerror (Depends-on): Likewise.
22004         * modules/getcwd (Depends-on): Likewise.
22005         * modules/getloadavg (Depends-on): Likewise.
22006         * modules/hard-locale (Depends-on): Likewise.
22007         * modules/makepath (Depends-on): Likewise.
22008         * modules/mountlist (Depends-on): Likewise.
22009         * modules/nanosleep (Depends-on): Likewise.
22010         * modules/posixtm (Depends-on): Likewise.
22011         * modules/quotearg (Depends-on): Likewise.
22012         * modules/readtokens (Depends-on): Likewise.
22013         * modules/readtokens0 (Depends-on): Likewise.
22014         * modules/readutmp (Depends-on): Likewise.
22015         * modules/save-cwd (Depends-on): Likewise.
22016         * modules/strftime (Depends-on): Likewise.
22017         * modules/userspec (Depends-on): Likewise.
22018         * modules/utimecmp (Depends-on): Likewise.
22019         * modules/xgetcwd (Depends-on): Likewise.
22020         * modules/xnanosleep (Depends-on): Likewise.
22021         * modules/xstrtod (Depends-on): Likewise.
22022         * modules/yesno (Depends-on): Likewise.
22023
22024 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22025
22026         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
22027         needless checks.
22028
22029 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22030
22031         Merge from coreutils.  Among other things,
22032         add bulletproofing for cases where stdin, stdout, or stderr are closed.
22033         * lib/fd-safer.c: New file.
22034         * lib/fcntl-safer.h, open-safer.c: Remove.
22035         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
22036         * lib/dup-safer.c: Include unistd-safer.h first.
22037         Don't include errno.h.
22038         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
22039         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
22040         * lib/file-type.c: Rely on file-type.h change.
22041         * lib/getloadavg.c: Include unistd-safer.h.
22042         (getloadavg): Use safer open.
22043         * lib/getusershell.c: Include "stdio-safer.h".
22044         (getusershell): Use safer fopen.
22045         * lib/long-options.c (long_options): Use NULL rather than 0.
22046         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
22047         'free'.
22048         * lib/modechange.c: Likewise.
22049         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
22050         (MODE_DONE): New constant.
22051         (struct mode_change): Remove 'next' member.
22052         (make_node_op_equals): New function; like the old one of the
22053         same name, except it allocates an array.
22054         (mode_compile, mode_create_from_ref): Use it.
22055         (mode_compile): Allocate result as an array, not a linked list.
22056         Parse octal string ourself, so that we catch mistakes like "+0".
22057         (mode_adjust): Arg is an array, not a linked list.
22058         * lib/modechange.c: Include stat-macros.h, xalloc.h.
22059         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
22060         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
22061         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
22062         Remove.  This is now stat-macros.h's job.
22063         (talloc): Remove.  All callers replaced by xalloc, so that
22064         our invokers don't have to worry about reporting memory failures.
22065         (make_node_op_equals): Remove.
22066         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
22067         New constants.
22068         (struct mode_change): Moved here from modechange.h.
22069         (mode_append_entry): Remove.
22070         (mode_compile): Remove MASKED_OPS arg, since it encouraged
22071         apps to have incorrect behavior.  Use simpler algorithm for head
22072         and tail.  Don't futz with umask; that's now the job of mode_adjust.
22073         Detect more invalid usages rather than having somewhat-random behavior.
22074         Don't insert an "a=" action, as that leads to incorrect behavior.
22075         (mode_compile, mode_create_from_ref): Return NULL on error instead
22076         of an enum, since now there's only one way to have an error.  All
22077         callers changed.
22078         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
22079         at the correct time.  Simplify calculation of "+u" and its ilk.
22080         Don't mishandle "+X".
22081         (mode_free): Remove "register" and localize decls.
22082         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
22083         (struct mode_change): Move to modechange.c; callers don't
22084         need to see this stuff.
22085         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
22086         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
22087         (mode_change, mode_adjust): Reflect the new signatures noted above.
22088         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
22089         that might redefine system include files.
22090         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
22091         (my_usleep): Use NULL rather than (void *) 0.
22092         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
22093         Use siginterrupt to specify that system calls should be interrupted.
22094         (rpl_nanosleep): Move initialization of suspended closer to call of
22095         my_usleep.
22096         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
22097         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
22098         (desirable_utmp_entry): New function.
22099         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
22100         using x2nrealloc, to simplify logic.
22101         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
22102         size calculation.  Do not assume utmp file is a regular file.
22103         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
22104         (READ_UTMP_CHECK_PIDS): New constant.
22105         * lib/save-cwd.c: Include unistd-safer.h.
22106         (save_cwd): Use fd_safer.
22107         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
22108         [!_LIBC] Include "stat-macros.h" instead.
22109         * lib/unistd-safer.h (fd_safer): New decl.
22110
22111 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22112
22113         * modules/getloadavg (Depends-on): Add unistd-safer.
22114         * modules/getusershell (Depends-on): Add stdio-safer.
22115         * modules/lstat (Depends-on): Remove xalloc.
22116         * modules/mkstemp (Depends-on): Add stat-macros.
22117         * modules/modechange (Depends-on): Remove xstrtol.
22118         Add stat-macros, xalloc.
22119         * modules/save-cwd (Depends-on): Add unistd-safer.
22120         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
22121         * modules/unistd-safer (Files): Add lib/fd-safer.c
22122         (Makefile.am): Remove lib_SOURCES.
22123
22124         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
22125         Remove fcntl-safer; unistd-safer supersedes it.
22126
22127 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22128
22129         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
22130         AC_HEADER_STAT.
22131         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
22132         (gl_PREREQ_CHOWN): Remove.
22133         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
22134         it.  Don't require AC_HEADER_STAT.
22135         (gl_PREREQ_LSTAT): Remove.
22136         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
22137         Don't require AC_HEADER_STAT.
22138         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
22139         (gl_PREREQ_RMDIR): Remove.
22140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
22141         mention stat-macros.h or AC_HEADER_STAT, since we'll make
22142         the stat-macros module a prerequisite.
22143         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
22144         * m4/filemode.m4 (gl_FILEMODE): Likewise.
22145         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
22146         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
22147         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
22148         variable names.
22149         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
22150         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
22151         variable prefixes.
22152         * m4/fcntl-safer.m4: Remove.
22153         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
22154         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
22155         Invoke gl_PREREQ_FD_SAFER.
22156         (gl_PREREQ_FD_SAFER): New macro.
22157         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
22158         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
22159         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
22160         Remove duplicate call to AC_LIBOBJ(readutmp).
22161         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
22162
22163         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
22164         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
22165
22166 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22167
22168         * MODULES.html.sh (Misc): Add byteswap.
22169
22170 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22171
22172         * modules/getcwd (Depends-on): Add extensions.
22173         * modules/openat (Depends-on): Likewise.
22174
22175 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22176
22177         * modules/byteswap: New file.
22178
22179 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22180
22181         * m4/byteswap.m4: New file.
22182
22183 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22184
22185         * lib/byteswap_.h: New file.
22186
22187 2005-04-25  Karl Berry  <karl@gnu.org>
22188
22189         * m4/gettext.m4: Update from GNU gettext 0.14.4.
22190
22191 2005-04-25  Albert Chin  <china@thewrittenword.com>
22192
22193         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
22194         Toolkit C bug.
22195
22196 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
22197
22198         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
22199         (func_ln_if_changed) Remove forcibly for no error message
22200         in case file does not exist.
22201
22202 2005-04-19  Simon Josefsson  <jas@extundo.com>
22203
22204         * gnulib-tool (Options): Make --symlink mean --symbolic.
22205
22206 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
22207
22208         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
22209
22210 2005-04-16  Simon Josefsson  <jas@extundo.com>
22211
22212         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
22213
22214 2005-04-15  Simon Josefsson  <jas@extundo.com>
22215
22216         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
22217
22218 2005-04-15  Simon Josefsson  <jas@extundo.com>
22219
22220         * gnulib-tool: Rename --symlink to --symbolic.
22221
22222 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
22223
22224         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
22225         symbolic links to files instead of copying/moving.  Add --aux-dir,
22226         specifying directory relative --dir where auxiliary build tools
22227         are placed.
22228
22229 2005-04-14  Bruno Haible  <bruno@clisp.org>
22230
22231         * modules/allocsa (License): Change to LGPL.
22232         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22233
22234 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22235
22236         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
22237         that "UTC +1 second" continues to work.  Problem reported
22238         by Dmitry V. Levin.
22239         (relunit_snumber): New rule.
22240         (relunit): Use it.
22241
22242 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22243
22244         * lib/getdate.y (universal_time_zone_table): New constant.
22245         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
22246         universal_time_zone_table.
22247         (lookup_zone): Prefer universal_time_zone_table to
22248         local_time_zone_table, so that "GMT" time stamps are allowed in
22249         London during the summer.  Problem reported by Ian Abbott.
22250
22251 2005-04-12  Jim Meyering  <jim@meyering.net>
22252
22253         * lib/human.c (humblock): Set *options even when returning due to
22254         xstrtoumax conversion failure.  Thanks to a used-uninitialized
22255         warning from gcc-4.
22256
22257 2005-04-09  Jim Meyering  <jim@meyering.net>
22258
22259         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
22260         -Wuninitialized: initialize tm0.tm_year.
22261
22262 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
22263
22264         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
22265         count, since there's no maximum.  All uses changed.
22266         Add member dsts_seen.
22267         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
22268         not being INT_MAX.
22269         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
22270         Use pc_rels_seen to decide whther a date is absolute.
22271
22272         * lib/getdate.y (number): Don't overwrite year.
22273         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
22274         check.
22275
22276 2005-04-02  Simon Josefsson  <jas@extundo.com>
22277
22278         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
22279         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
22280
22281 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
22282
22283         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
22284         where no absolute path name can be longer than PATH_MAX.
22285
22286 2005-03-27  Jim Meyering  <jim@meyering.net>
22287
22288         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
22289
22290 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
22291
22292         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
22293         "one's complement" -> "ones' complement" in comment, as per Knuth.
22294         "value of type" -> "type or expression" in comment.
22295         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
22296
22297 2005-03-26  Jim Meyering  <jim@meyering.net>
22298
22299         Comment nits.
22300         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
22301         Correct typos: s/or/of/.
22302
22303 2005-03-26  Jim Meyering  <jim@meyering.net>
22304
22305         * modules/check-include-files: Move to ../ and rename to...
22306         * check-module: ...this.
22307
22308 2005-03-25  Jim Meyering  <jim@meyering.net>
22309
22310         * modules/xvasprintf (Files): Add xalloc.h.
22311
22312 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22313
22314         * modules/gettext (Files): config/config.rpath ->
22315         build-aux/config.rpath
22316         * modules/iconv (Files): Likewise.
22317         Problem reported by Oskar Liljeblad.
22318
22319 2005-03-23  Jim Meyering  <jim@meyering.net>
22320
22321         * modules/check-include-files: New script to check for
22322         missing dependencies, multiple includes, etc.
22323
22324         * modules/c-strtold (Depends-on): Add xalloc.
22325         * modules/c-strtod (Depends-on): Add xalloc.
22326         * modules/hash (Depends-on): Add xalloc.
22327         (Files): Remove lib/xalloc.h.
22328
22329         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
22330         * modules/userspec (Files): Add lib/inttostr.h.
22331
22332 2005-03-23  Jim Meyering  <jim@meyering.net>
22333
22334         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
22335
22336 2005-03-22  Jim Meyering  <jim@meyering.net>
22337
22338         * modules/stat-macros: New module.
22339         * modules/canonicalize, modules/euidaccess, modules/file-type,
22340         * modules/filemode, modules/lchown, modules/makepath,
22341         * modules/rmdir, modules/stat: Depend on new stat-macros module
22342         rather than listing lib/stat-macros.h manually.
22343         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
22344
22345 2005-03-22  Jim Meyering  <jim@meyering.net>
22346
22347         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
22348
22349 2005-03-22  Bruno Haible  <bruno@clisp.org>
22350
22351         * config/srclist.txt: Replace target directory 'config' with
22352         'build-aux'.
22353         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
22354         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
22355         ../build-aux/.
22356
22357 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
22358
22359         * modules/chdir-long (Depends-on): Add mempcpy.
22360
22361         * modules/acl, modules/backupfile, modules/c-strtod,
22362         modules/c-strtold, modules/canon-host, modules/canonicalize,
22363         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
22364         modules/exclude, modules/exitfail, modules/file-type,
22365         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
22366         modules/getdate, modules/getline, modules/getpagesize,
22367         modules/getpass, modules/getugroups, modules/group-member,
22368         modules/hard-locale, modules/hash, modules/human, modules/idcache,
22369         modules/inttostr, modules/long-options, modules/makepath,
22370         modules/md5, modules/memcasecmp, modules/memcoll,
22371         modules/modechange, modules/mountlist, modules/path-concat,
22372         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
22373         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
22374         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
22375         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
22376         modules/strftime, modules/strndup, modules/strverscmp,
22377         modules/timespec, modules/unlocked-io, modules/userspec,
22378         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
22379         modules/yesno:
22380         Remove lib_SOURCES line from Makefile.am section, as this is now
22381         done automatically by the corresponding Autoconf macro.
22382
22383 2005-03-21  Jim Meyering  <jim@meyering.net>
22384
22385         Changes imported from coreutils.
22386
22387         * lib/cycle-check.c: Don't include xalloc.h.
22388
22389         * lib/path-concat.c: Don't include assert.h.
22390         (path_concat): Remove assertion that would have triggered
22391         for ABASE starting with more than one slash.
22392         Reported by Andreas Schwab.
22393
22394         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
22395         properly when ABASE is an absolute file name.
22396         Correct the description of this function.
22397         Include <assert.h>.
22398         Add an assertion and a test driver.
22399         This fixes a bug introduced on 2004-07-02.
22400         Andreas Schwab reported the resulting failure of cp --parents:
22401         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
22402
22403 2005-03-21  Jim Meyering  <jim@meyering.net>
22404
22405         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
22406         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
22407
22408 2005-03-21  Jim Meyering  <jim@meyering.net>
22409         and  Paul Eggert  <eggert@cs.ucla.edu>
22410
22411         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
22412         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
22413         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
22414         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
22415         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
22416         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
22417         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
22418         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
22419         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
22420         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
22421         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
22422         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
22423         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
22424         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
22425         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
22426         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
22427         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
22428         for these modules.
22429
22430 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
22433         (which shouldn't happen), generate nothing instead of returning 0
22434         immediately, so that nstrftime (NULL, ...) doesn't return 0.
22435
22436 2005-03-16  Bruno Haible  <bruno@clisp.org>
22437
22438         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
22439         HAVE_LONGLONG_64BIT.
22440
22441 2005-03-16  Bruno Haible  <bruno@clisp.org>
22442
22443         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
22444         HAVE_LONGLONG_64BIT.
22445
22446 2005-03-16  Bruno Haible  <bruno@clisp.org>
22447
22448         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
22449         HAVE_LONGLONG_64BIT.
22450
22451 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22452
22453         * lib/strftime.c (my_strftime): Prepend space to format so that we can
22454         reliably distinguish strftime failure from empty output on POSIX
22455         hosts.
22456
22457 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22458
22459         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
22460         (iconv_string): Don't guess a size-zero buffer, as that might cause
22461         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
22462         result would be 'too large', where 'too large' is (heuristically)
22463         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
22464         overflow concerns.  This will prevent some unwanted malloc failures
22465         when the inputs are very large.
22466
22467 2005-03-15  Karl Berry  <karl@gnu.org>
22468
22469         * config/srclist.txt (config.rpath): from gettext.
22470         * config/config.rpath: update.
22471
22472 2005-03-15  Bruno Haible  <bruno@clisp.org>
22473
22474         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
22475         to 'negate'.
22476
22477         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
22478         variable.
22479
22480         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
22481         results.
22482
22483 2005-03-14  Simon Josefsson  <jas@extundo.com>
22484
22485         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
22486         <fx@gnu.org>.
22487
22488 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22489
22490         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
22491         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
22492         intprops.h.
22493         * lib/strtol.c: Likewise.
22494
22495 2005-03-14  Jim Meyering  <jim@meyering.net>
22496
22497         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
22498         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
22499         to be nonzero so that we (and caller) can detect the difference
22500         between a valid zero-length expansion and an error return, even
22501         when the underlying strftime fails before writing anything into
22502         that location.
22503
22504 2005-03-14  Bruno Haible  <bruno@clisp.org>
22505
22506         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
22507         Update from GNU gettext 0.14.3.
22508
22509 2005-03-10  Jim Meyering  <jim@meyering.net>
22510
22511         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
22512
22513 2005-03-10  Jim Meyering  <jim@meyering.net>
22514
22515         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
22516         so that this module works on systems without fchdir.
22517
22518 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
22519
22520         Factor int-properties macros into a single file, except for
22521         glibc-related files.
22522         * lib/intprops.h: New file.
22523         * lib/getloadavg.c: Include it instead of limits.h.
22524         (INT_STRLEN_BOUND): Remove.
22525         * lib/human.c: Include intprops.h.
22526         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
22527         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
22528         302/1000.
22529         * lib/inttostr.h: Include intprops.h instead of limits.h.
22530         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
22531         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
22532         for consistency with intprops.h.
22533         (time_t_is_integer, twos_complement_arithmetic): Use them.
22534         * lib/sig2str.h: Include <signal.h>, intprops.h.
22535         (INT_STRLEN_BOUND): Remove.
22536         * lib/strftime.c (TYPE_SIGNED): Remove.
22537         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
22538         * lib/strtol.c: Adjust comments to match intprops.h.
22539         * lib/userspec.c: Include intprops.h.
22540         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
22541         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
22542         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
22543         instead of rolling our own expressions.
22544         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
22545
22546         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
22547         instead of int.
22548         (my_strftime): Do not mishandle years close to INT_MAX, by doing
22549         the right thing even if adding 1900 would overflow.  Similarly
22550         for tm_mon + 1 and tm_yday + 1.
22551         Make %Y always equivalent to %C%y, and similarly for %G and %g.
22552         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
22553         (DO_SIGNED_NUMBER): New macro.
22554         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
22555
22556 2005-03-07  Bruno Haible  <bruno@clisp.org>
22557
22558         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
22559
22560 2005-03-07  Bruno Haible  <bruno@clisp.org>
22561
22562         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
22563
22564 2005-03-04  Derek R. Price  <derek@ximbiot.com>
22565
22566         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
22567         (func_import): Only replace files via --import when they have actually
22568         changed.
22569
22570 2005-03-03  Derek R. Price  <derek@ximbiot.com>
22571
22572         * m4/mmap-anon.m4: New file.
22573         * m4/pagealign_alloc.m4: New file.
22574
22575 2005-03-03  Derek R. Price  <derek@ximbiot.com>
22576             Bruno Haible  <bruno@clisp.org>
22577
22578         * modules/pagealign_alloc: New file.
22579         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
22580
22581 2005-03-03  Derek R. Price  <derek@ximbiot.com>
22582             Bruno Haible  <bruno@clisp.org>
22583
22584         * lib/pagealign_alloc.h: New file.
22585         * lib/pagealign_alloc.c: New file.
22586
22587 2005-03-03  Bruno Haible  <bruno@clisp.org>
22588
22589         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
22590         Use an all-permissive copyright notice, recommended by RMS.
22591
22592 2005-03-02  Bruno Haible  <bruno@clisp.org>
22593
22594         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
22595         of AIX, the replacement has to be done only after <string.h> is
22596         included, therefore not in config.h. stpncpy.h does the replacement,
22597         and stpncpy.c uses it.
22598
22599 2005-03-02  Bruno Haible  <bruno@clisp.org>
22600
22601         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
22602         stpncpy.c uses it.
22603
22604 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22605
22606         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
22607         The workaround isn't strictly needed for POSIX conformance, and
22608         it's too much of a pain to configure and maintain.  We'll ask
22609         people to fix their kernels instead.
22610         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
22611         (NANOSLEEP_BUG_WORKAROUND): Remove.
22612         (xnanosleep): Remove the workaround.
22613
22614 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22615
22616         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
22617         Reported by Derek Price.
22618         (Include): Add "timespec.h".
22619
22620         * modules/xnanosleep (Depends-on): Remove gethrxtime.
22621
22622 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22623
22624         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
22625         to detect nanosleep bug.
22626
22627 2005-03-01  Bruno Haible  <bruno@clisp.org>
22628
22629         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
22630
22631 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22632
22633         * modules/gethrxtime: New file.
22634         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
22635         (Depends-on): Add gethrxtime.
22636         (configure.ac): Add gl_XNANOSLEEP.
22637         (Makefile.am): Remove lib_SOURCES line.
22638
22639 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22640
22641         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
22642         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
22643
22644 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22645
22646         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
22647         * lib/timespec.h (gettime): Return void, since it always
22648         succeeds now.  All uses changed.
22649         * lib/gettime.c (gettime) Likewise.
22650         [HAVE_NANOTIME]: Prefer nanotime.
22651         Assume gettimeofday succeeds, as POSIX requires.
22652         Assime time () succeeds, since other code already does.
22653         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
22654         (timespec_subtract): Remove.
22655         (NANOSLEEP_BUG_WORKAROUND): New constant.
22656         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
22657         things considerably.  Use it only on GNU/Linux hosts, since the
22658         workaround shouldn't be needed elsewhere.
22659
22660 2005-02-24  Bruno Haible  <bruno@clisp.org>
22661
22662         * modules/gettext (Files): Add m4/glibc2.m4.
22663
22664 2005-02-24  Bruno Haible  <bruno@clisp.org>
22665
22666         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
22667         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
22668         * m4/progtest.m4:
22669         Update from GNU gettext 0.14.2.
22670         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
22671
22672 2005-02-24  Bruno Haible  <bruno@clisp.org>
22673
22674         * lib/localcharset.c: Update from GNU gettext 0.14.2.
22675         * lib/config.charset: Update from GNU gettext 0.14.2.
22676
22677 2005-02-24  Bruno Haible  <bruno@clisp.org>
22678
22679         * lib/gettext.h: Update from GNU gettext 0.14.2.
22680
22681 2005-02-23  Simon Josefsson  <jas@extundo.com>
22682
22683         * m4/iconvme.m4: New file.
22684
22685 2005-02-23  Jim Meyering  <jim@meyering.net>
22686
22687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
22688         change.
22689         Thanks to Bruno Haible for catching it.
22690
22691 2005-02-22  Simon Josefsson  <jas@extundo.com>
22692
22693         * modules/iconvme: New file.
22694
22695         * MODULES.html.sh: Add iconvme.
22696
22697 2005-02-22  Simon Josefsson  <jas@extundo.com>
22698
22699         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
22700
22701 2005-02-22  Simon Josefsson  <jas@extundo.com>
22702
22703         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
22704
22705 2005-02-22  Jim Meyering  <jim@meyering.net>
22706
22707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
22708         s/ifndef/ifdef/.
22709
22710 2005-02-20  Neil Conway  <neilc@samurai.com>
22711
22712         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
22713         returned by OSX/Darwin if the specified buffer is not large
22714         enough for the hostname.
22715
22716 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22717
22718         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
22719         pass it to _help, otherwise the latter coredumps trying to
22720         dereference state.root_argp.
22721
22722 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22723
22724         * modules/chdir-long (Depends-on): Add memrchr.
22725         * modules/memrchr (Files): Add lib/memrchr.h.
22726         (Include): "memrchr.h".
22727
22728 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22729
22730         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
22731
22732 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         * lib/memrchr.h: New file.
22735         * lib/chdir-long.c: Include it.
22736         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
22737         Don't bother including stddef.h.
22738
22739 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
22740
22741         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
22742         inclusion.
22743         Include <sys/types.h>, for dev_t.
22744         (ME_DUMMY, ME_REMOTE): Move from here....
22745         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
22746         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
22747         Dmitry V. Levin.
22748         Include mountlist.h first, to test the interface.
22749
22750 2005-01-29  Bruno Haible  <bruno@clisp.org>
22751
22752         * lib/progname.c (program_name): Initialize.
22753         Needed when linking statically on MacOS X.
22754
22755 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22756
22757         Sync from coreutils.
22758         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
22759         (Depends-on): Add c-strtod.
22760         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
22761
22762 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22763
22764         Sync from coreutils.
22765         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
22766
22767         Remove files that are specific to coreutils.
22768         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
22769
22770 2005-01-28  Bruno Haible  <bruno@clisp.org>
22771
22772         * modules/javacomp: New file.
22773         * MODULES.html.sh (Java): Add javacomp.
22774
22775 2005-01-28  Bruno Haible  <bruno@clisp.org>
22776
22777         * m4/javacomp.m4: New file, from GNU gettext.
22778
22779 2005-01-28  Bruno Haible  <bruno@clisp.org>
22780
22781         * lib/javacomp.sh.in: New file, from GNU gettext.
22782         * lib/javacomp.h: New file, from GNU gettext.
22783         * lib/javacomp.c: New file, from GNU gettext.
22784
22785 2005-01-26  Simon Josefsson  <jas@extundo.com>
22786
22787         * lib/gai_strerror.c: Use GPL in header.
22788
22789 2005-01-26  Bruno Haible  <bruno@clisp.org>
22790
22791         * modules/javaexec: New file.
22792         * MODULES.html.sh (Java): Add javaexec.
22793
22794 2005-01-26  Bruno Haible  <bruno@clisp.org>
22795
22796         * m4/javaexec.m4: New file, from GNU gettext.
22797
22798 2005-01-26  Bruno Haible  <bruno@clisp.org>
22799
22800         * lib/javaexec.sh.in: New file, from GNU gettext.
22801         * lib/javaexec.h: New file, from GNU gettext.
22802         * lib/javaexec.c: New file, from GNU gettext.
22803
22804 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22805
22806         * modules/lchown (Depends-on): Remove lchown.h
22807
22808 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22809
22810         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
22811         must be defined if the header file was not found, in order
22812         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
22813
22814 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22815
22816         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
22817         initializers for struct pentry_state.
22818         (__argp_error): Check return value of __asprintf
22819         (__argp_failure): Translate error message
22820
22821         * lib/argp-parse.c: Removed braces around the expansion of N_()
22822
22823 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22824
22825         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
22826         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
22827         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
22828         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
22829         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
22830         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
22831         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
22832         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
22833         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
22834         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
22835         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
22836         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
22837         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
22838         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
22839         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
22840         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
22841         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
22842         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
22843         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
22844         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
22845         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
22846         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
22847         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
22848         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
22849         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
22850         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
22851         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
22852         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
22853         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
22854         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
22855         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
22856         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
22857         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
22858         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
22859         xstrtol.m4, xstrtoumax.m4, yesno.m4:
22860         Use an all-permissive copyright notice, recommended by RMS.
22861
22862 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22863
22864         * modules/chdir-long (Depends-on): Remove mempcpy.
22865
22866 2005-01-21  Jim Meyering  <jim@meyering.net>
22867
22868         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
22869         same value as for Solaris 9.
22870
22871         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
22872         component length.  This included changing the parameter to be
22873         of type `char *' rather than `char const *'.
22874         * lib/chdir-long.h (chdir_long): Update prototype.
22875
22876         * lib/openat.c (fdopendir, fstatat): New functions.
22877         * lib/openat.h: Include headers required for use of DIR and struct
22878         stat.
22879         [AT_SYMLINK_NOFOLLOW]: Define.
22880         (fdopendir, fstatat): Add prototypes.
22881
22882 2005-01-21  Bruno Haible  <bruno@clisp.org>
22883
22884         * modules/classpath: New file.
22885         * MODULES.html.sh (Java): Add classpath.
22886
22887 2005-01-21  Bruno Haible  <bruno@clisp.org>
22888
22889         * lib/classpath.h: New file, from GNU gettext.
22890         * lib/classpath.c: New file, from GNU gettext.
22891
22892 2005-01-20  Simon Josefsson  <jas@extundo.com>
22893
22894         * modules/version-etc-fsf: New file.
22895
22896 2005-01-20  Simon Josefsson  <jas@extundo.com>
22897
22898         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
22899         * lib/version-etc.c: Remove version_etc_copyright.
22900         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
22901         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
22902
22903 2005-01-20  Simon Josefsson  <jas@extundo.com>
22904
22905         * lib/base64.h (isbase64): Add.
22906
22907         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
22908         using a unsigned prototype, don't inline.
22909         (base64_decode): Use it.
22910
22911 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22912
22913         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
22914         it.
22915
22916 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22917
22918         * lib/save-cwd.c (save_cwd): Remove code to support the case
22919         where fchdir is missing or flaky.
22920
22921 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22922
22923         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
22924
22925 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22926
22927         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
22928         AC_LIBSOURCES now does this.
22929         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
22930         with new ullong_max module.
22931
22932 2005-01-19  Bruno Haible  <bruno@clisp.org>
22933
22934         * modules/sh-quote: New file.
22935         * MODULES.html.sh (Executing programs): Add sh-quote.
22936
22937 2005-01-19  Bruno Haible  <bruno@clisp.org>
22938
22939         * lib/sh-quote.h: New file, from GNU gettext.
22940         * lib/sh-quote.c: New file, from GNU gettext.
22941
22942 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         Merge from coreutils.
22945         * m4/ullong_max.m4: New file.
22946         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
22947         (gl_MACROS): Assume localeconv exists.
22948
22949 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22950
22951         Merge changes from coreutils, as described below in several
22952         changelogs dated today.
22953
22954         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
22955         (O_DIRECTORY): Remove; not needed here, since "." must be
22956         a directory.  All uses removed.
22957         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
22958         universal on Suns, and we also need to test for IRIX.
22959         Revamp code to use 'if' rather than '#if'.
22960         Avoid unnecessary comparison of cwd->desc to 0.
22961
22962         * lib/utimens.c (futimens): Robustify the previous patch, by checking
22963         for known valid error numbers rather than observed invalid ones.
22964
22965 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22966
22967         * modules/ullong_max: New file.
22968
22969         * modules/chdir-long, modules/openat: New files.
22970         * modules/save-cwd (Depends-on): Depend on chdir-long.
22971         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
22972
22973 2005-01-18  Jim Meyering  <jim@meyering.net>
22974
22975         Merge from coreutils.
22976         * m4/chdir-long.m4, m4/openat.m4: New files.
22977         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
22978         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
22979         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
22980         is sane and DOES follow symlinks.  Besides, testing 20 different
22981         systems found no broken chown implementations.
22982         Prompted by a change in rsync's copy of this macro.
22983         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
22984
22985         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
22986
22987         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
22988         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
22989         NULL-means-set-to-current-time semantics.
22990         Remove temporary file immediately, rather than waiting
22991         for configure's at-exit trap code to do it.
22992
22993 2005-01-18  Jim Meyering  <jim@meyering.net>
22994
22995         * lib/version-etc.c (version_etc_copyright): Update copyright date.
22996
22997         * lib/utimens.c (futimens): Account for the fact that futimes
22998         can also fail with errno == ENOSYS or errno == ENOENT.
22999         Patch from Dmitry V. Levin.
23000
23001         Change the name of the robust chdir function from chdir to chdir_long.
23002         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
23003         (restore_cwd): Use chdir_long, not chdir.
23004         * lib/chdir-long.c: Renamed from chdir.c.
23005         * lib/chdir-long.h: Renamed from chdir.h.
23006         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
23007         Hurd.
23008
23009 2005-01-18  Bruno Haible  <bruno@clisp.org>
23010
23011         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
23012         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
23013         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
23014         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
23015         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
23016         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
23017         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
23018         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
23019         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
23020         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
23021         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
23022         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
23023         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
23024         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
23025         Use an all-permissive copyright notice, recommended by RMS.
23026
23027 2005-01-18  Bob Proulx  <bob@proulx.com>
23028
23029         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
23030         simplify offsetof() macro construct to avoid compile failure with
23031         native HP-UX 11.0 ANSI C compiler.
23032
23033 2005-01-17  Bruno Haible  <bruno@clisp.org>
23034
23035         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
23036         redundant because stpncpy.m4 takes care of it.
23037
23038 2005-01-17  Bruno Haible  <bruno@clisp.org>
23039
23040         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
23041
23042 2005-01-17  Bruno Haible  <bruno@clisp.org>
23043
23044         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
23045         used.
23046
23047 2005-01-17  Bruno Haible  <bruno@clisp.org>
23048
23049         * lib/fwriteerror.h (fwriteerror): Change specification to include
23050         fclose.
23051         * lib/fwriteerror.c: Include <stdbool.h>.
23052         (fwriteerror): At the end, close the file stream. Record whether
23053         stdout was already closed.
23054
23055 2005-01-17  Bruno Haible  <bruno@clisp.org>
23056
23057         * lib/execute.c (environ): Declare if needed.
23058         * lib/pipe.c (environ): Likewise.
23059         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
23060
23061 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23062
23063         * modules/argp: Depend on vsnprintf
23064
23065 2005-01-10  Jim Meyering  <jim@meyering.net>
23066
23067         * modules/closeout (Depends-on): Add atexit.
23068
23069 2005-01-06  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
23072
23073 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23074
23075         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
23076         definitions to be after all include files, to avoid collisions.
23077         Problem reported by Bob Proulx.
23078
23079 2005-01-04  Jim Meyering  <jim@meyering.net>
23080
23081         Changes imported from coreutils.
23082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
23083         as the mkstemp template, use a temporary directory and an
23084         8.3-friendly template to avoid trouble on systems like DJGPP.
23085         Reported by Juan M. Guerrero via Stepan Kasal.
23086         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
23087         close. Remove the temporary directory right away, rather than waiting
23088         for configure's at-exit trap code to do it.
23089         Suggestion from Stepan Kasal.
23090
23091 2005-01-01  Simon Josefsson  <jas@extundo.com>
23092
23093         * gnulib-tool: Print #include directives when --import'ing.
23094
23095 2004-12-28  Simon Josefsson  <jas@extundo.com>
23096
23097         * tests/test-base64.c: Include required header files.  Remove
23098         unused variables.
23099
23100 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23101
23102         * modules/error (Depends-on): Remove gettext.
23103
23104 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23105
23106         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
23107         not needed.  This removes a dependency on the gettext module.
23108         [defined _LIBC]: Do not include <libintl.h>; not needed.
23109
23110 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
23111
23112         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
23113         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
23114
23115 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
23116
23117         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
23118         HAVE_DECL_STRTOLD.
23119
23120 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23121
23122         * modules/getdate (Depends-on): Remove alloca-opt.
23123
23124 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23125
23126         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
23127
23128 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23129
23130         * lib/argp-parse.c: Include <stddef.h>.
23131         (alignof, alignto): New macros.
23132         (parser_init): Don't assume that void * is aligned sufficiently
23133         for struct option.
23134
23135         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
23136         need to extend the stack.
23137         (YYINITDEPTH): New macro, so that the initial stack isn't overly
23138         large.
23139
23140 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23141
23142         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
23143
23144 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23145
23146         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
23147         (2004-10-24) change.  Apparently this was a false alarm.
23148
23149         * modules/getdate: Depend on alloca-opt, not alloca.
23150
23151 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23152
23153         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
23154         Remove now-obsolete comment about AIX.
23155         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
23156         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
23157         (YYMAXDEPTH): New macro.
23158
23159 2004-12-18  Simon Josefsson  <jas@extundo.com>
23160
23161         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
23162
23163 2004-12-18  Bruno Haible  <bruno@clisp.org>
23164
23165         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
23166
23167 2004-12-18  Bruno Haible  <bruno@clisp.org>
23168
23169         * lib/fatal-signal.c (fatal_signals): Make non-const.
23170         (init_fatal_signals): New function.
23171         (uninstall_handlers, install_handlers): Ignore signals that were set to
23172         SIG_IGN.
23173         (at_fatal_signal): Call init_fatal_signals.
23174         (init_fatal_signal_set): Likewise. Ignore signals that were set to
23175         SIG_IGN.
23176         Reported by Paul Eggert.
23177
23178 2004-12-18  Bruno Haible  <bruno@clisp.org>
23179
23180         * doc/alloca.texi: New file.
23181         * doc/alloca-opt.texi: New file.
23182
23183 2004-12-17  Jim Meyering  <jim@meyering.net>
23184
23185         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
23186         Otherwise, install-sh could exit with improper exit status when
23187         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
23188
23189 2004-12-16  Simon Josefsson  <jas@extundo.com>
23190
23191         * tests/test-base64.c: Add license.
23192
23193 2004-12-15  Stepan Kasal  <address@hidden>
23194
23195         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
23196
23197 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23198
23199         * modules/getcwd (Files): Add m4/d-ino.m4.
23200         Suggested by Mark D. Baushke.
23201
23202 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
23203
23204         * lib/getdate.y (textint): New member "negative".
23205         (time_zone_hhmm): New function.
23206         Expect 14 shift-reduce conflicts, not 13.
23207         (o_colon_minutes): New rule.
23208         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
23209         (yylex): Set the "negative" member of signed numbers.
23210
23211 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
23212
23213         * doc/getdate.texi (Time of day items, Time zone items):
23214         Describe new formats +00:00, UTC+00:00.
23215
23216 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23217
23218         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
23219         spurious "-l"s.  Problem reported by Stepan Kasal.
23220
23221 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
23222
23223         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
23224         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
23225
23226 2004-12-04  Simon Josefsson  <jas@extundo.com>
23227
23228         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
23229         Vandoorselaere <yoann@prelude-ids.org>.
23230
23231 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23232
23233         Changes imported from coreutils.
23234         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
23235         exist.
23236         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
23237
23238 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23239
23240         Changes imported from coreutils.
23241         * lib/hard-locale.c: Assume <locale.h> exists.
23242         Include "strdup.h".
23243         (GLIBC_VERSION): New macro.
23244         (hard_locale): Assume setlocale exists.
23245         Rewrite to avoid #ifdef.
23246         Use strdup rather than malloc + strcpy.
23247         * lib/human.c: Assume <locale.h> exists.
23248         (human_readable): Assume localeconv exists.
23249
23250 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23251
23252         * modules/hard-locale (Depends-on): Add strdup.
23253
23254 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
23255
23256         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
23257         convert T2, not T.  (Imported from libc.)
23258
23259 2004-11-30  Simon Josefsson  <jas@extundo.com>
23260
23261         * modules/restrict (License): Change to LGPL.
23262
23263 2004-11-30  Simon Josefsson  <jas@extundo.com>
23264
23265         * m4/restrict.m4: Add copyright and copying conditions.
23266
23267 2004-11-30  Simon Josefsson  <jas@extundo.com>
23268
23269         * m4/base64.m4: New file.
23270
23271 2004-11-30  Simon Josefsson  <jas@extundo.com>
23272
23273         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
23274         base64.
23275
23276         * tests/test-base64.c: New file.
23277
23278         * modules/base64: New file.
23279
23280 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
23281
23282         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
23283         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
23284
23285         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
23286
23287 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
23288
23289         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
23290         (__getcwd.c): Don't restore errno; glibc doesn't.
23291         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
23292         first, falling back to our code only if its results look suspicious.
23293         Ensure that the resulting buffer is only as large as necessary.
23294
23295         * lib/readutmp.c: Include readutmp.h first.
23296         Include <errno.h>, since readutmp.h no longer does that.
23297         * lib/readutmp.h: Don't include <errno.h>,
23298         <sys/param.h>, <time.h>; not needed to establish interface.
23299         (errno): Remove decl.
23300         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
23301         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
23302         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
23303
23304 2004-11-28  Simon Josefsson  <jas@extundo.com>
23305
23306         * lib/base64.h, base64.c: New file.
23307
23308 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
23309
23310         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
23311
23312 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23313
23314         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
23315         (Depends-on): Remove pathmax, same.  Add mempcpy.
23316         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
23317         (Makefile.am): Append getcwd.h to lib_SOURCES.
23318         (Include): Add getcwd.h.
23319         (Maintainer): Change from Jim Meyering to "all, glibc",
23320         since getdate now uses intended-for-glibc code.
23321         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
23322         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
23323
23324 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23325
23326         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
23327         HP's ANSI C compiler.
23328         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
23329         Declaring int functions causes warnings on some modern systems and
23330         shouldn't be needed to compile on ancient ones.
23331         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
23332         defined.
23333
23334         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
23335         with the following changes.
23336         (__set_errno): Parenthesize properly.
23337         Include <stdbool.h>.
23338         (MIN, MAX, MATCHING_INO): New macros.
23339         (__getcwd): Define with prototype, not K&R form.
23340         Use heuristics to allocate default buffer on stack if possible.
23341         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
23342         behavior, and to avoid the PATH_MAX limit when computing
23343         ../../../../...
23344         Use MATCHING_INO to compare inode number to file.
23345         Check for arithmetic overflow in size calculations.
23346         Fix bug in reallocation of dot array that caused getcwd to fail
23347         on directories nested deeper than 75.
23348         Be more careful about saving errno on error.
23349         Do not use realloc; use only free+malloc, as this is a bit
23350         more flexible and avoids a needless copy operation.
23351         Do not inspect st_dev and st_ino for symbolic links; POSIX
23352         doesn't specify the latter.
23353         Check for closedir errors.
23354         Avoid needless casts.
23355         Use "#ifdef weak_alias" around weak_alias, to be like other
23356         glibc code.
23357         The following changes to getcwd.c have effect only when used in
23358         gnulib; they have no effect inside glibc proper.
23359         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
23360         as alloca isn't used.
23361         (alloca, __alloca): Likewise.
23362         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
23363         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
23364         unconditionally, as gnulib assumes C89 or better.
23365         Do not include <sys/param.h>.
23366         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
23367         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
23368         better.
23369         (NULL) [!defined NULL]: Remove; we assume C89 or better.
23370         Include <dirent.h> in a way that is compatible with modern Autoconf.
23371         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
23372         New macros, if not already defined.
23373         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
23374         Use "_LIBC", not "defined _LIBC", for consistency.
23375         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
23376         a mempcpy module.
23377         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
23378         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
23379         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
23380         credit only to Jim Meyering and adjust the copyright dates.
23381         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
23382         <stdlib.h>, <unistd.h>, "pathmax.h".
23383         Instead, include "xgetcwd.h" (first) and "getcwd.h".
23384         (INITIAL_BUFFER_SIZE): Remove.
23385         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
23386
23387 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23388
23389         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
23390         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
23391         Use the _ONCE methods, for efficiency.
23392         Check for fcntl.h.  In test program, include <errno.h>
23393         and <fcntl.h> if available.  Remove old K&R cruft from
23394         test program.  Check for common errors in GNU/Linux,
23395         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
23396         don't do AC_LIBOBJ, as that's getcwd.m4's job.
23397         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
23398         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
23399         name accordingly.
23400         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
23401         accommodate new getcwd.c.
23402         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
23403         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
23404         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
23405         that's all we need now.
23406
23407 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23408
23409         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
23410         argp-parse.c depends on getopt internals, that means we should
23411         always use our getopt, to be on the safe side.
23412         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
23413         order not to spoil the result of an eventual previous invocation
23414         of gl_GETOPT_SUBSTITUTE.
23415
23416 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23417
23418         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
23419         redefinition warnings. To avoid them, include the defines
23420         in `#if !defined __need_getopt ... #endif'. The only place
23421         where __getopt_argv_const is used is in definitions
23422         of getopt_long and getopt_long_only below, which are as well
23423         protected by `#ifndef __need_getopt'.
23424         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
23425         __need_getopt after including <stdio.h> and <unistd.h> These
23426         headers might have defined it.
23427
23428 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
23429
23430         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
23431
23432 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
23433
23434         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
23435         (futimens): New function, which uses futimes if available.
23436         (futimens, utimens): Support timespec==NULL, with same semantics
23437         as utime and utimens.
23438         * lib/utimens.h (futimens): New decl.
23439
23440 2004-11-23  Jim Meyering  <jim@meyering.net>
23441
23442         * lib/getopt_.h: Remove trailing blanks.
23443
23444 2004-11-23  Jim Meyering  <jim@meyering.net>
23445
23446         * lib/__fpending.c: Add comment.
23447
23448 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
23449
23450         * modules/canonicalize (Depends-on): Add xreadlink.
23451         Problem reported by James Youngman.
23452
23453 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23454
23455         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
23456         New macros.
23457         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
23458         optopt): Use them instead of invoking ## directly; otherwise, the
23459         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
23460
23461 2004-11-19  Bruno Haible  <bruno@clisp.org>
23462
23463         * lib/strtok_r.c: Move comments from here...
23464         * lib/strtok_r.h: ... to here.
23465
23466 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23467
23468         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
23469         implementations that mishandle size_t overflow.
23470
23471 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23472
23473         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
23474         might fail.  Problem reported by Yoann Vandoorselaere.
23475         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
23476         implementations that mishandle size_t overflow.
23477
23478 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23479
23480         * modules/canon-host (Depends-on): Add strdup.
23481
23482 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23483
23484         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
23485
23486 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23487
23488         * lib/canon-host.c: Include "strdup.h".
23489         (canon_host): Use getaddrinfo if available, so that IPv6 works.
23490         Use strdup instead of malloc/strcpy to duplicate strings.
23491
23492         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
23493         (human_space_before_unit): New constant.
23494         * lib/human.c (human_readable): Support it.
23495
23496         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
23497         (xgetcwd): Set errno correctly when failing.
23498         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
23499         the failure is actually due to a PATH_MAX problem.
23500
23501         Further getopt changes to make it more likely that glibc will
23502         buy the changes back.
23503         * lib/getopt.c (POSIXLY_CORRECT): New constant.
23504         (getopt): Use it, so to preserve glibc semantic
23505         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
23506         when compiling for libc.
23507         * lib/getopt_.h (__getopt_argv_const): Bring it back.
23508         (getopt_long, getopt_long_only): Use it.
23509
23510         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
23511         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
23512         (getopt): Argv is now char * const *, as per standard.
23513         (_getopt_internal_r, _getopt_internal): Argv is now char **,
23514         not char *__getopt_argv_const *.
23515         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
23516         _getopt_long_only_r): Likewise.
23517         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
23518         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
23519         _getopt_long_r, _getopt_long_only_r): Likewise.
23520         * lib/getopt_.h (__getopt_argv_const): Remove.
23521         (getopt): Argv is now char * const *, as per standard.
23522
23523         * lib/getdate.y (tORDINAL): New token.
23524         (day, relunit): Allow it for relative times.
23525         (relative_time_table): Use tORDINAL for ordinals.
23526
23527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23528
23529         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
23530         Document that "second" isn't allowed as an ordinal number.
23531
23532 2004-11-16  Jim Meyering  <jim@meyering.net>
23533
23534         * modules/closeout (Depends-on): Add fpending.
23535
23536 2004-11-15  Jim Meyering  <jim@meyering.net>
23537
23538         * lib/closeout.c: Include "__fpending.h" once again.
23539         Include <stdbool.h>.
23540         (close_stdout): Don't fail just because stdout was closed initially,
23541         since some programs don't write to stdout in the normal course of
23542         operation (other than --version and --help), and we don't want this
23543         function to make e.g. `touch file >&-' fail.
23544         But do fail if it was closed and someone has tried to write to it.
23545         E.g., `printf foo >&-' must fail.
23546
23547 2004-11-13  Jim Meyering  <jim@meyering.net>
23548
23549         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
23550
23551 2004-11-12  Simon Josefsson  <jas@extundo.com>
23552
23553         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
23554         small doc fix is still pending.
23555
23556 2004-11-11  Simon Josefsson  <jas@extundo.com>
23557
23558         * modules/strtok_r: New file.
23559
23560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23561         strtok_r.
23562
23563 2004-11-11  Simon Josefsson  <jas@extundo.com>
23564
23565         * m4/strtok_r.m4: New file.
23566
23567         * m4/getopt.m4: Replace opterr.
23568
23569 2004-11-11  Simon Josefsson  <jas@extundo.com>
23570
23571         * lib/strtok_r.h, strtok_r.c: New file.
23572
23573 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23574
23575         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
23576         of replacing opterr, getopt, etc.  This should handle the
23577         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
23578
23579 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23580
23581         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
23582         we can stop lying to compilers about the constness of argv when we
23583         are compiled outside glibc.
23584         (getopt, getopt_long, getopt_long_only): Use it.
23585         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
23586         _getopt_internal, getopt): Likewise.
23587         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
23588         _getopt_long_only_r): Likewise.
23589         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
23590         _getopt_long_r, _getopt_long_only_r): Likewise.
23591
23592         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
23593         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
23594         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
23595         the other external symbols.
23596         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
23597         declaration, since the above renaming now works around collisions.
23598
23599 2004-11-11  Jim Meyering  <jim@meyering.net>
23600
23601         * lib/linebreak.c: Remove trailing blanks.
23602         * lib/alloca_.h: Likewise.
23603         * lib/acosl.c: Likewise.
23604         * lib/euidaccess.c: Likewise.
23605         * lib/allocsa.h: Likewise.
23606
23607 2004-11-10  Simon Josefsson  <jas@extundo.com>
23608
23609         * m4/getaddrinfo.m4: New file.
23610
23611 2004-11-10  Simon Josefsson  <jas@extundo.com>
23612
23613         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
23614
23615 2004-11-10  Simon Josefsson  <jas@extundo.com>
23616
23617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23618         getaddrinfo.
23619
23620         * modules/getaddrinfo: New file.
23621
23622 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23623
23624         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
23625
23626 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23627
23628         * lib/mktime.c (SHR): New macro, which is a portable
23629         substitute for >> that should work even on Crays.
23630         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
23631         Problem reported by Mark D. Baushke in
23632         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
23633         * lib/getdate.y (SHR): Likewise.
23634         (tm_diff): Use it.
23635         * lib/strftime.c (SHR): Likewise.
23636         (tm_diff): Use it.
23637         * lib/quotearg.c (struct quoting_options): Use unsigned int for
23638         quote_these_too, so that right shifts are well defined.  All uses
23639         changed.
23640
23641 2004-11-10  Jim Meyering  <jim@meyering.net>
23642
23643         Ensure that no close failure goes unreported.
23644         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
23645         return early when it seems there's nothing to flush.
23646         Don't include __fpending.h.
23647
23648 2004-11-10  Jim Meyering  <jim@meyering.net>
23649
23650         * modules/closeout (Depends-on): Remove fpending.
23651
23652 2004-11-10  Jim Meyering  <jim@meyering.net>
23653
23654         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
23655
23656 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23657
23658         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
23659         gl_FUNC_STRFTIME.
23660         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
23661         and AC_REQUIRE when possible, to avoid duplicate checks.
23662         Check for <wchar.h>.
23663
23664 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23665
23666         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
23667
23668 2004-11-09  Bruno Haible  <bruno@clisp.org>
23669
23670         * m4/sockpfaf.m4: New file.
23671
23672 2004-11-05  Bruno Haible  <bruno@clisp.org>
23673
23674         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
23675         Reported by Mark D. Baushke <mdb@cvshome.org>.
23676
23677 2004-11-04  Bruno Haible  <bruno@clisp.org>
23678
23679         2004-09-11  Bruno Haible  <bruno@clisp.org>
23680                 * allocsa.valgrind: New file.
23681         2004-02-06  Bruno Haible  <bruno@clisp.org>
23682                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
23683                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
23684                 Reported by Christopher Seip <chris.seip@hp.com>.
23685
23686 2004-11-04  Bruno Haible  <bruno@clisp.org>
23687
23688         * modules/allocsa (Files): Add lib/allocsa.valgrind.
23689         (Makefile.am): Distribute it.
23690
23691 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23692
23693         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
23694         with errno == ERANGE if the buffer is too small.
23695         Problem reported by Mark D. Baushke.
23696
23697 2004-11-03  Albert Chin  <china@thewrittenword.com>
23698             Paul Eggert  <eggert@cs.ucla.edu>
23699
23700         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
23701         equivalent, substitute $ac_type for equivalent type rather than
23702         blindly using uint32_t *always* which won't work if uint32_t is not
23703         available.  Define _UINT32_T to work around typedef of uint32_t if
23704         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
23705         2.5.1.
23706
23707 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23708
23709         * m4/jm-macros.m4: Sync from coreutils.
23710         (gl_MACROS): Check for mbrlen, for pathchk.
23711         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
23712
23713 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23714
23715         * lib/xreadlink.c (MAXSIZE): New macro.
23716         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
23717         size does not exceed MAXSIZE.  Avoid cast.
23718         As suggested by Mark D. Baushke in
23719         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
23720         if readlink fails with buffer size just under MAXSIZE, try again
23721         with MAXSIZE.
23722
23723 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23724
23725         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
23726
23727 2004-11-02  Derek R. Price  <derek@ximbiot.com>
23728         and  Paul Eggert  <eggert@cs.ucla.edu>
23729
23730         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
23731         (get_date): Overparenthesize to avoid GCC warning.
23732
23733 2004-11-02  Bruno Haible  <bruno@clisp.org>
23734
23735         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
23736         returns void.
23737
23738 2004-11-02  Bruno Haible  <bruno@clisp.org>
23739
23740         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
23741         function returns void.
23742
23743 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23744
23745         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
23746         fflush_unlocked, flockfile, funlockfile, funlockfile,
23747         fputs_unlocked, putc_unlocked.
23748
23749 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23750
23751         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
23752         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
23753         already declared.
23754
23755 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23756
23757         * modules/getdate (Files): Add doc/getdate.texi.
23758         (Depends-on): Add setenv, xalloc.
23759
23760 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23761
23762         * lib/getdate.y: Add support for TZ="foo" within a date string.
23763         Fix some bugs near time_t boundaries.  Reject dates with
23764         out-of-range components, e.g., "Sept 31".
23765         Include <stdlib.h>, "setenv.h", "xalloc.h".
23766         (ISDIGIT_LOCALE): Remove; unused.
23767         Note that the TZ and time functions used here are not reentrant.
23768         (mktime_ok, get_tz): New functions.
23769         (TZBUFSIZE): New constant.
23770         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
23771         This requires that we sometimes generate our own TZ="XXX..." setting.
23772
23773 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23774
23775         * doc/getdate.texi: New file, from coreutils with modifications for
23776         the new TZ parsing.
23777
23778 2004-10-27  Derek R. Price  <derek@ximbiot.com>
23779
23780         * lib/mktime.c (not_equal_tm): Remove redundant check.
23781
23782 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23783
23784         * modules/regex (lib_SOURCES): Add regex.c.
23785         Reported by James Youngman in
23786         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
23787
23788 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23789
23790         * lib/getdate.y: Use Bison 1.875 features, and some minor
23791         code cleanups.  This change does not affect semantics.
23792         Don't include <stdlib.h>; no longer needed.
23793         Don't include unlocked-io.h; only the "#if TEST" code uses
23794         stdio, and performance isn't crucial there.
23795         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
23796         Bison 1.875 features as described below.
23797         All uses of "PC." replaced by "pc->".
23798         (YYSTYPE): Add a forward declaration.
23799         (yylex, yyerror): Use full prototypes in forward decls.
23800         Use "%pure-parser" rather than obsolescent "%pure_parser".
23801         Use %parse-param and %lex-param instead of obsolescent
23802         YYPARSE_PARAM and YYLEX_PARAM.
23803         (meridian_table, month_and_day_table, time_units_table,
23804         relative_time_table, time_zone_table, military_table,
23805         lookup_zone, lookup_word, get_date):
23806         Use NULL instead of 0 where appropriate.
23807         (to_hour): Avoid abort (), to avoid a dependency on
23808         stdlib.h.
23809         (yyerror, yylex): Now accepts parser_control * arg.
23810         (main) [TEST]: Use '\0' rather than 0 for char.
23811
23812 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23813
23814         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
23815
23816 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23817
23818         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
23819         It's now the caller's responsibility to handle the case where
23820         !HAVE_GETPAGESIZE && !defined getpagesize.
23821
23822         * lib/mktime.c (leapyear): Arg is long int, not int.
23823
23824 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23825
23826         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
23827
23828 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
23829
23830         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
23831         missing.  Problem reported by James Youngman.
23832
23833 2004-10-16  Simon Josefsson  <jas@extundo.com>
23834
23835         * gnulib-tool: Fix comments.  Fix parse problem.
23836         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
23837
23838 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
23839
23840         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
23841         implementation of getopt_long.  Problem reported by Alexander Taler in:
23842         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
23843
23844 2004-10-15  Bruno Haible  <bruno@clisp.org>
23845
23846         * gnulib-tool: Untabify. Initialize supplied_libname.
23847         (func_usage): More homogenous output.
23848         (func_modules_transitive_closure, func_modules_to_filelist,
23849         func_emit_lib_Makefile_am): New functions.
23850         (func_import): New function, extracted from big case statement. Use
23851         func_get_license, func_modules_transitive_closure,
23852         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
23853         opt_lgpl. Don't use test -a, as it's not portable.
23854         (func_create_testdir): Use func_modules_transitive_closure,
23855         func_modules_to_filelist, func_emit_lib_Makefile_am.
23856
23857 2004-10-15  Bruno Haible  <bruno@clisp.org>
23858
23859         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
23860
23861 2004-10-15  Bruno Haible  <bruno@clisp.org>
23862
23863         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
23864         the portions belonging to each module.
23865         Suggested by Derek Robert Price <derek@ximbiot.com>.
23866
23867 2004-10-12  Simon Josefsson  <jas@extundo.com>
23868
23869         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
23870         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
23871         to real functions.
23872
23873 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23874
23875         * modules/vsnprintf: New file.
23876
23877 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23878
23879         * m4/vsnprintf.m4: New file.
23880
23881 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23882
23883         * lib/vsnprintf.h: New file.
23884         * lib/vsnprintf.c: New file.
23885
23886 2004-10-11  Bruno Haible  <bruno@clisp.org>
23887
23888         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
23889         vsnprintf.
23890
23891 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23892
23893         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
23894
23895 2004-10-07  Bruno Haible  <bruno@clisp.org>
23896
23897         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
23898         fits into the provided buffer.
23899
23900 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23901
23902         * lib/diacrit.c, diacrit.h: Add GPL notice.
23903
23904         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
23905         notice.
23906         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
23907         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
23908         This avoids a potential constant-folding bug.
23909
23910 2004-10-05  Bruno Haible  <bruno@clisp.org>
23911
23912         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
23913         for the declaration of strsep.
23914
23915 2004-10-05  Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
23918
23919 2004-10-04  Simon Josefsson  <jas@extundo.com>
23920
23921         * modules/memmem: New file.
23922         * tests/test-memmem.c: New file.
23923         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
23924
23925 2004-10-04  Simon Josefsson  <jas@extundo.com>
23926
23927         * m4/memmem.m4: New file.
23928
23929 2004-10-04  Simon Josefsson  <jas@extundo.com>
23930
23931         * lib/memmem.h: New file.
23932         * lib/memmem.c: New file, taken from glibc.
23933
23934 2004-10-04  Simon Josefsson  <jas@extundo.com>
23935
23936         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
23937         '#ifdef USE_UNLOCKED_IO'.
23938
23939 2004-10-04  Simon Josefsson  <jas@extundo.com>
23940
23941         * config/srclist.txt: Add memmem from glibc.
23942
23943 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23944
23945         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
23946
23947         * modules/argmatch, modules/argp, modules/closeout, modules/error,
23948         modules/exclude, modules/getdate, modules/getline,
23949         modules/getndelim2, modules/getpass, modules/getpass-gnu,
23950         modules/getusershell, modules/linebuffer, modules/md5,
23951         modules/mountlist, modules/posixtm, modules/readtokens,
23952         modules/readutmp, modules/regex, modules/sha1,
23953         modules/version-etc, modules/yesno:
23954         Remove dependency on unlocked-io.
23955
23956 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23957
23958         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
23959
23960         * m4/unlocked-io.m4: Add copyright notice.
23961         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
23962
23963 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23964
23965         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
23966         * lib/xmalloc.c (xmemdup): Likewise.
23967         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
23968         XFREE): Remove these long-obsolescent macros.
23969         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
23970         * lib/xstrdup.c: Remove.
23971
23972         * lib/regex.c (re_comp): Cast gettext return value to char *,
23973         Problem reported by Martin Neitzel via Mark D. Baushke.
23974
23975 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23976
23977         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
23978         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
23979         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
23980         regex.c, sha1.c, version-etc.c, yesno.c:
23981         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
23982         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
23983         the includer's responsibility.
23984
23985         Sync from coreutils.
23986
23987         * lib/modechange.c (mode_compile): Don't decrement a pointer that
23988         points to the start of a string, as the C Standard says the
23989         resulting behavior is undefined.
23990
23991         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
23992         simple -> simple_backups, numbered_existing ->
23993         numbered_existing_backups, numbered -> numbered_backups
23994         to avoid shadowing problems.  All uses changed.
23995         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
23996         * lib/backupfile.c (check_extension, numbered_backup):
23997         Rename locals to avoid shadowing 'basename'.
23998         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
23999         once.
24000
24001         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
24002         * lib/.cvsignore: Add getopt.h.
24003
24004 2004-10-04  Bruno Haible  <bruno@clisp.org>
24005
24006         * modules/README: New file.
24007         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
24008         not a module.
24009
24010 2004-10-02  Jim Meyering  <jim@meyering.net>
24011
24012         * lib/dirfd.h, getpagesize.h: Add copyright notice.
24013
24014 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24015
24016         * modules/strsep: New file.
24017
24018 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24019
24020         * m4/strsep.m4: New file.
24021
24022 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24023
24024         * lib/strsep.h: New file.
24025         * lib/strsep.c: New file.
24026
24027 2004-10-01  Simon Josefsson  <jas@extundo.com>
24028
24029         * lib/snprintf.c (snprintf): Handle size==0.
24030
24031 2004-10-01  Simon Josefsson  <jas@extundo.com>
24032             Bruno Haible  <bruno@clisp.org>
24033
24034         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
24035         (snprintf): Declare 'args'.
24036
24037 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         * lib/snprintf.c: Remove comments as to why each header is needed.
24040
24041 2004-10-01  Bruno Haible  <bruno@clisp.org>
24042
24043         * MODULES.html.sh: Add strsep.
24044
24045 2004-09-30  Simon Josefsson  <jas@extundo.com>
24046
24047         * modules/snprintf: New file.
24048
24049 2004-09-30  Simon Josefsson  <jas@extundo.com>
24050
24051         * m4/snprintf.m4: New file.
24052
24053 2004-09-30  Simon Josefsson  <jas@extundo.com>
24054
24055         * lib/snprintf.h, lib/snprintf.c: New files.
24056
24057 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24058
24059         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
24060         (hol_entry_help): Never translate an empty string.
24061         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
24062         * lib/argp.h (OPTION_NO_TRANS): New option.
24063
24064 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
24065
24066         * modules/argp (Maintainer): Replace Simon Josefsson
24067         by Sergey Poznyakoff.
24068
24069 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
24070
24071         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
24072         changes merged back into glibc.
24073
24074 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
24075
24076         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
24077
24078 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
24079
24080         * lib/xvasprintf.c: Include xalloc.h.
24081         (xvasprintf): Use xalloc_die, not xmalloc_die.
24082
24083 2004-09-29  Bruno Haible  <bruno@clisp.org>
24084
24085         * modules/alloca-opt: New file, derived from modules/alloca.
24086         * modules/allocsa: Depend on alloca-opt instead of alloca.
24087         * modules/setenv: Likewise.
24088         * modules/vasnprintf: Likewise.
24089         * MODULES.html.sh: Add alloca-opt.
24090
24091 2004-09-28  Simon Josefsson  <jas@extundo.com>
24092
24093         * gnulib-tool: New parameter --lgpl, to asseert that modules are
24094         LGPL, and to replace license template from GPL to LGPL.
24095
24096 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
24097
24098         * modules/dummy: Change license to LGPL.
24099
24100 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
24101
24102         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
24103
24104 2004-09-24  Simon Josefsson  <jas@extundo.com>
24105
24106         * modules/minmax (License): Change from GPL to LGPL.
24107
24108 2004-09-23  Simon Josefsson  <jas@extundo.com>
24109
24110         * gnulib-tool (--import): Typo.
24111
24112 2004-09-23  Simon Josefsson  <jas@extundo.com>
24113
24114         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
24115
24116 2004-09-22  Bruno Haible  <bruno@clisp.org>
24117
24118         * modules/*: Add 'License' field.
24119         * gnulib-tool: Accept --extract-license option.
24120         (func_get_license): New function.
24121
24122 2004-09-21  Bruno Haible  <bruno@clisp.org>
24123
24124         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
24125         Reported by Simon Josefsson.
24126
24127 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24128
24129         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
24130         gl_AC_TYPE_LONG_LONG.
24131
24132 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24133
24134         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
24135
24136 2004-09-18  Simon Josefsson  <jas@extundo.com>
24137         and  Paul Eggert  <eggert@cs.ucla.edu>
24138
24139         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
24140         calls with autoreconf.  Define GL_LIB.
24141
24142 2004-09-14  Karl Berry  <karl@gnu.org>
24143
24144         * config/srclist.txt: unsync setenv.c, sigh.
24145
24146 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24147
24148         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
24149         Problem reported by Bruno Haible in:
24150         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
24151
24152 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24153
24154         * config/srclist.txt: Comment out argp-pvh.c.
24155
24156 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24157
24158         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
24159         in case some system header has #define'd it.  Problem reported by
24160         Soeren D. Schulze in
24161         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
24162
24163 2004-09-09  Karl Berry  <karl@gnu.org>
24164
24165         * regex.[ch]: delete from the root.  These were supposed to be
24166                 synced with emacs cvs, but this has not happened for about
24167                 a year, and anyway nothing else uses emacs regex.[ch].
24168                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
24169                 lib/regex[.ch] is untouched.
24170
24171 2004-09-09  Bruno Haible  <bruno@clisp.org>
24172
24173         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
24174
24175 2004-09-09  Bruno Haible  <bruno@clisp.org>
24176
24177         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
24178         modifications.
24179         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
24180
24181 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
24182
24183         * modules/xvasprintf: New file.
24184         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
24185
24186 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
24187
24188         * lib/xvasprintf.h: New file.
24189         * lib/xvasprintf.c: New file.
24190         * lib/xasprintf.c: New file.
24191
24192 2004-09-08  Bruno Haible  <bruno@clisp.org>
24193
24194         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
24195
24196 2004-09-08  Bruno Haible  <bruno@clisp.org>
24197
24198         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
24199         length is > INT_MAX.
24200         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
24201         more.
24202
24203 2004-09-08  Bruno Haible  <bruno@clisp.org>
24204
24205         * lib/stdint_.h: New file, taken from GNU clisp.
24206
24207 2004-09-08  Bruno Haible  <bruno@clisp.org>
24208             Oskar Liljeblad  <oskar@osk.mine.nu>
24209
24210         * modules/stdint: New file.
24211         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
24212
24213 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         Import from coreutils.
24216         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
24217         strings on unbounded length.  alloca's performance benefits aren't
24218         that important here.
24219         (V_STRDUP): Remove.
24220         (parse_with_separator): New function, with most of the internals
24221         of the old parse_user_spec.  Allow user to omit both user and group,
24222         for compatibility with FreeBSD.
24223         Clone only the user name, not the entire spec.
24224         Do not set *uid, *gid unless entirely successful.
24225         Avoid memory leak in some failing cases.
24226         Fix regression for USER.GROUP reported by Dmitry V. Levin in
24227         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
24228         (parse_user_spec): Rewrite to use parse_with_separator.
24229
24230 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24231
24232         * modules/userspec: Don't depend on alloca.
24233
24234 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24235
24236         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
24237
24238 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
24241         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
24242         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
24243
24244 2004-08-16  Simon Josefsson  <jas@extundo.com>
24245
24246         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
24247         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
24248         Add --dry-run for --import.
24249         Let user provided command line parameters override configure.ac
24250         settings.
24251
24252 2004-08-12  Simon Josefsson  <jas@extundo.com>
24253
24254         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
24255         as discussed with Paul Eggert in threads rooted at
24256         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
24257         and
24258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
24259         Before, the test was empty, and relied on ELIDE_CODE in source
24260         code.)
24261         (gl_PREREQ_GETOPT): New macro.
24262         (gl_GETOPT): Use them.
24263
24264 2004-08-12  Simon Josefsson  <jas@extundo.com>
24265
24266         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
24267         * lib/getopt_.h: Renamed from getopt.h.
24268
24269 2004-08-12  Simon Josefsson  <jas@extundo.com>
24270
24271         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
24272         Change default library name from libfoo to libgnu.
24273         Now, if you have a configure.ac that says:
24274                 gl_SOURCE_BASE(gl)
24275                 gl_M4_BASE(gl/m4)
24276                 gl_MODULES(error getopt etcetera)
24277                 gl_INIT
24278         you can import all you need by running:
24279                 ../gnulib/gnulib-tool --import
24280
24281         * modules/getopt (Files): Rename getopt.h to getopt_.h.
24282         (Makefile.am): Rewrite, use logic from argz.
24283         (Include): Use <getopt.h> instead of "getopt.h".
24284
24285 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24286
24287         * modules/argp (Files): Add m4/unlocked-io.m4.
24288         (Depends-on): Add extensions.
24289
24290 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24291
24292         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
24293         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
24294         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
24295         Check for program_invocation_name, program_invocation_short_name,
24296         flockfile, funlockfile, features.h, _getopt_long_only_r.
24297
24298 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24299
24300         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
24301         its complicated substitute.
24302         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
24303         and program_invocation_name.
24304         (__argp_basename) [!_LIBC]: Remove; the only use was
24305         replaced by its body.
24306         (__argp_short_program_name): Change condition from
24307         !defined __argp_short_program_name to
24308         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
24309         to match argp-namefrob.h.
24310         (__argp_failure): Don't assume strerror_r returns char *.
24311         * lib/argp-parse.c (N_): Define unconditionally.
24312         (argp_default_options): Fill out initializers with 0 to avoid
24313         gcc warnings.
24314
24315 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24316
24317         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
24318         getopt1.c.
24319
24320 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         Merge from coreutils.
24323
24324         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
24325
24326         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
24327         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
24328
24329 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24330
24331         Merge from coreutils.
24332
24333         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
24334         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
24335         for Reliant Unix 5.43.
24336
24337         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
24338         (union fooround): Use uintmax_t, not long int.
24339         The rest is a merge from libc:
24340         [defined _LIBC]: Include <shlib-compat.h>.
24341         (_obstack) [defined _LIBC]: Remove after 2.3.4.
24342
24343         * lib/settime.c (settime): Recode to avoid warning with
24344         Sun Forte C 6U2.
24345
24346         * lib/strverscmp.c: Convert to UTF-8.
24347
24348 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24349
24350         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24351         m4/uintmax_t.m4.
24352
24353 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24354
24355         * modules/xalloc-die: New file.
24356         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
24357
24358         * modules/md5 (Files): Add m4/uint32_t.m4.
24359         * modules/sha1: Renamed from modules/sha.
24360         (Files):
24361         Rename lib/sha.h to lib/sha1.h.
24362         Rename lib/sha.c to lib/sha1.c.
24363         Rename m4/sha.m4 to m4/sha1.m4.
24364         (lib_SOURCES): Likewise.
24365         (configure.ac): Rename gl_SHA to gl_SHA1.
24366         (Include): sha.h -> sha1.h.
24367
24368 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24369
24370         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
24371         * m4/sha1.m4: Renamed from sha.m4.
24372         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
24373
24374 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24375
24376         * lib/obstack.h (obstack_empty_p):
24377         Don't assume that chunk->contents is suitably aligned.
24378         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
24379         Likewise. Problem reported by Benno in
24380         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
24381
24382         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
24383         readable.  This could be improved further but it'd take some work.
24384
24385 2004-08-08  Simon Josefsson  <jas@extundo.com>
24386
24387         * modules/xgethostname (Depends-on): Remove exit and error (not
24388         used).
24389
24390         * modules/getpass-gnu: Add getpass.h.
24391         (Depends-on): Add stdbool.
24392         * modules/getpass: Add getpass.h.
24393
24394 2004-08-08  Simon Josefsson  <jas@extundo.com>
24395
24396         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
24397         Check getpass declaration.
24398
24399 2004-08-08  Simon Josefsson  <jas@extundo.com>
24400
24401         * lib/xgethostname.c: Don't include error.h (not used).
24402
24403         * lib/getpass.h: Add.
24404         * lib/getpass.c: Include getpass.h first.
24405
24406 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
24407
24408         * lib/xalloc-die.c: New file.
24409         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
24410         All uses removed.
24411         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
24412         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
24413         xalloc-die.c.
24414         (_, N_, xalloc_die): Move to xalloc-die.c.
24415         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
24416         so that we needn't mess with xalloc_msg_memory_exhausted.
24417
24418         * lib/sha1.h: Renamed from sha.h.
24419         (SHA1_H): Renamed from _SHA_H.
24420         (sha1_ctx): Renamed from sha_ctx.
24421         (sha1_init_ctx): Renamed from sha_init_ctx.
24422         (sha1_process_block): Renamed from sha_process_block.
24423         (sha1_process_bytes): Renamed from sha_process_bytes.
24424         (sha1_finish_ctx): Renamed from sha_finish_ctx.
24425         (sha1_read_ctx): Renamed from sha_read_ctx.
24426         (sha1_stream): Renamed from sha_stream.
24427         (sha1_buffer): Renamed from sha_buffer.
24428         * lib/sha1.c: Likewise; renamed from sha.c.
24429         Do not include <sys/types.h>.
24430         Include <stddef.h> rather than <stdlib.h>.
24431
24432 2004-08-08  Bruno Haible  <bruno@clisp.org>
24433
24434         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
24435         FILESYSTEM_PREFIX_LEN.
24436         * lib/progreloc.c: Likewise.
24437         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
24438
24439 2004-08-06  Simon Josefsson  <jas@extundo.com>
24440
24441         * modules/progname (Depends-on): Don't depend on stdbool.
24442
24443 2004-08-06  Simon Josefsson  <jas@extundo.com>
24444
24445         * modules/getsubopt: New file.
24446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24447         getsubopt.
24448
24449 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         More merge from coreutils.
24452
24453         * m4/utimens.m4, m4/utimecmp.m4: New files.
24454         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
24455         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
24456         prereq.m4, sha.m4: Import changes from coreutils.
24457
24458 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
24459
24460         More merge from coreutils.
24461         * modules/raise, modules/readtokens0, modules/utimens:
24462         * modules/utimecmp, module/xnanosleep: New files.
24463         * modules/strftime: Add lib/strftime.h.
24464         Change include from <time.h> to "strftime.h".
24465         * modules/yesno: Add lib/yesno.h.
24466         * modules/backupfile: Remove lib/addext.c.
24467         * modules/euidaccess: Add stat-macros.h.
24468         * modules/canonicalize, modules/euidaccess,
24469         modules/filemode, modules/lchown, modules/makepath,
24470         modules/rmdir, modules/stat: Likewise.
24471
24472 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
24473
24474         Merge from tar.
24475         * lib/argp-help.c (make_hol, hol_append): Don't assume that
24476         SIZE_MAX is a valid preprocessor constant.
24477         (__argp_basename): Change from "#ifndef _LIBC"
24478         to "#ifndef __argp_short_program_name", so that
24479         we don't compile these functions for tar.
24480
24481         More merges from coreutils.
24482         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
24483         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
24484         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
24485         * lib/addext.c: Remove; no longer needed.
24486         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
24487         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
24488         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
24489         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
24490         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
24491         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
24492         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
24493         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
24494         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
24495         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
24496         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
24497         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
24498         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
24499         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
24500         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
24501         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
24502         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
24503         Import changes from coreutils.
24504
24505 2004-08-05  Simon Josefsson  <jas@extundo.com>
24506
24507         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
24508
24509 2004-08-05  Simon Josefsson  <jas@extundo.com>
24510
24511         * m4/getsubopt.m4: New file.
24512
24513 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         Merge from coreutils.
24516
24517         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
24518         * m4/getcwd-path-max.m4: New files.
24519
24520         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
24521         FILESYSTEM_PREFIX_LEN ->
24522         FILE_SYSTEM_PREFIX_LEN.
24523         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
24524         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
24525         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
24526         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
24527
24528         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
24529         prerequisite modules now handle the DOS stuff.
24530         Don't check for unistd.h.
24531
24532 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24533
24534         Merge from coreutils.
24535
24536         * lib/.gdb-history: Remove; this doesn't belong here.
24537
24538         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
24539         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
24540         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
24541         * lib/getcwd.c: New files.
24542
24543         * lib/dirname.h: Include <stdbool.h>.
24544         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
24545         for consistency with POSIX terminology.  All uses changed.
24546         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
24547         (strip_trailing_slashes): Use bool for booleans.
24548         * lib/stripslash.c (strip_trailing_slashes): Likewise.
24549
24550         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
24551         sometimes returns a positive errno value even when it succeeds.
24552         (print_errno_message) [!LIBC]: Fall back on strerror if
24553         __strerror_r fails.
24554
24555         * lib/path-concat.c (mempcpy): Don't define if a system header defines
24556         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
24557         (longest_relative_suffix): New function.
24558         (path_concat): Use it.  Assume first argument is not NULL.
24559         Port to DOS.  Omit redundant separators.
24560         Report an error instead of returning NULL.
24561         Use mempcpy instead of memcpy.
24562         (xpath_concat): Remove: not declared or used.
24563
24564         * lib/same.h: Include <stdbool.h>
24565         (same_name): Return bool, not int.
24566         * lib/same.c (same_name): Likewise.
24567         (errno): Don't declare; we assume C89 or better now.
24568
24569         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
24570         if not already defined.
24571
24572         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
24573         * lib/dup-safer.c (errno): Likewise.
24574
24575 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24576
24577         Merge from coreutils.
24578         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
24579         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
24580         * modules/path-concat: Don't depend on strdup.
24581
24582 2004-08-03  Simon Josefsson  <jas@extundo.com>
24583
24584         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
24585         * lib/progname.h: Don't include stdbool.h.
24586
24587 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24588
24589         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
24590         * MODULES.html.sh (func_all_modules): Remove fatal.
24591
24592 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24593
24594         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
24595
24596 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24597
24598         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
24599         working.
24600
24601 2004-08-02  Simon Josefsson  <jas@extundo.com>
24602
24603         * lib/getsubopt.h: New file, with comments from Bruno Haible.
24604         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
24605         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
24606
24607 2004-08-01  Simon Josefsson  <jas@extundo.com>
24608
24609         * lib/xgetdomainname.c: Include stdlib.h, for free().
24610
24611 2004-07-19  Bruno Haible  <bruno@clisp.org>
24612
24613         * MODULES.html.sh (func_all_modules): Add dummy.
24614
24615 2004-07-16  Simon Josefsson  <jas@extundo.com>
24616
24617         * modules/dummy: New file.
24618
24619 2004-07-16  Simon Josefsson  <jas@extundo.com>
24620
24621         * lib/dummy.c: New file.
24622
24623 2004-07-16  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/backupfile.h: Add extern "C" for C++.
24626         * lib/closeout.h: Likewise.
24627         * lib/copy-file.h: Likewise.
24628         * lib/findprog.h: Likewise.
24629         * lib/full-write.h: Likewise.
24630         * lib/pathname.h: Likewise.
24631         * lib/progname.h: Likewise.
24632         * lib/stpcpy.h: Likewise.
24633         * lib/stpncpy.h: Likewise.
24634         * lib/strcase.h: Likewise.
24635         * lib/strstr.h: Likewise.
24636         * lib/xalloc.h: Likewise.
24637
24638         * lib/mbswidth.h: Add extern "C" for C++.
24639         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
24640
24641 2004-07-13  Robert Millan  <robertmh@gnu.org>
24642
24643         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
24644
24645 2004-07-09  Simon Josefsson  <jas@extundo.com>
24646
24647         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
24648         failed without this.)
24649
24650 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24651
24652         * modules/chown (Files): Add lib/fchown-stub.c, since
24653         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
24654
24655 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24656
24657         * lib/fchown-stub.c: New file.
24658
24659 2004-06-24  Jim Meyering  <jim@meyering.net>
24660
24661         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
24662
24663 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24664
24665         * modules/argz: Omit "#include".
24666
24667         * MODULES.html.sh (func_all_modules): Add calloc, to match
24668         2004-06-01 addition of calloc module.
24669
24670 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24671
24672         * m4/argz.m4: New file, which is autoupdated from libtool.
24673
24674 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24675
24676         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
24677         libtool.
24678
24679 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24680
24681         * config/srclist-update: Don't insist on "USA." before the
24682         close-comment, as libtool omits the period and puts the */ on a
24683         separate line.
24684         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
24685         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
24686
24687 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
24688
24689         * modules/argz: New file.
24690         * MODULES.html.sh (func_all_modules): Add argz.
24691
24692 2004-06-12  Jim Meyering  <jim@meyering.net>
24693         and  Paul Eggert  <eggert@cs.ucla.edu>
24694
24695         * modules/hash (Files): Add lib/xalloc.h.
24696         * modules/pipe (Depends-on): Add wait-process.
24697         * modules/stat (Depends-on): Add xalloc.
24698         * modules/userspec (Files): Add lib/userspec.h.
24699         * modules/xstrto
24700
24701         Upgrade from gettext-0.13.
24702         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
24703         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
24704         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
24705
24706 2004-06-10  Jim Meyering  <jim@meyering.net>
24707
24708         * lib/calloc.c: New file.
24709
24710 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
24711
24712         * lib/getdate.y (yylex): Allow space between sign and number.
24713         Problem reported by Dan Jacobson.
24714
24715 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
24716
24717         Merge from coreutils CVS.
24718
24719         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
24720         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
24721         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
24722         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
24723         xstrtol.m4: Fix copyright date and/or serial number.
24724
24725         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
24726         See if we need an fchown replacement.
24727         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
24728         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
24729         and use the replacement function if we detect either defect.
24730
24731         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
24732         gl_UTIMECMP.
24733
24734 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
24735         and  Jim Meyering  <jim@meyering.net>
24736
24737         Merge from coreutils CVS.
24738
24739         * lib/stat-macros.h: New file, with contents from file-type.h
24740         and coreutils' system.h.
24741         * lib/file-type.c: Include "stat-macros.h".
24742         * lib/file-type.h (file_type): Move all macro definitions to new file,
24743         stat-macros.h.
24744
24745         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
24746         Wrap old code with this conditional.
24747         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
24748         function that does not dereference symlinks.
24749         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
24750
24751         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
24752         dependency problems.
24753         (xreadlink): Accept new arg SIZE, for efficiency.
24754         All decls and uses changed.
24755         * lib/xreadlink.h: Include <stddef.h>, for size_t.
24756
24757         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
24758         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
24759
24760         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
24761         sysexits.h.
24762
24763 2004-06-01  Jim Meyering  <jim@meyering.net>
24764
24765         * m4/calloc.m4: New file.
24766
24767 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24768
24769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
24770         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
24771         Also, fix a typo in a diagnostic.
24772
24773 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24774
24775         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
24776         or AC_FUNC_REALLOC.
24777
24778 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24779
24780         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
24781         macros to be defined.
24782         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
24783         the allocator returns NULL because the requested size is zero.
24784
24785 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24786
24787         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
24788         var.  Add comment explaining why libc still defines it.  This
24789         merges the following patch from glibc:
24790         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
24791
24792 2004-05-20  Andreas Schwab  <schwab@suse.de>
24793
24794         * m4/free.m4: Replace free if it not known to work, not the other
24795         way round.
24796
24797 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24798
24799         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
24800         present in glibc since revision 1.1 of this file.
24801         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
24802         obstack_alignment_mask, obstack_alloc, obstack_base,
24803         obstack_blank, obstack_blank_fast, obstack_chunk_size,
24804         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
24805         obstack_grow0, obstack_init, obstack_int_grow,
24806         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
24807         obstack_next_free, obstack_object_size, obstack_ptr_grow,
24808         obstack_ptr_grow_fast, obstack_room): Remove declarations of
24809         nonexistent functions.
24810
24811 2004-05-18  Karl Berry  <karl@gnu.org>
24812
24813         * config/srclist.txt: break link for vasnprintf.c.
24814
24815 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24816
24817         Port obstack to the AS/400, where pointers are 16 bytes wide and
24818         you cannot cast an integer to a valid pointer.  This patch is
24819         currently waiting to be integrated into glibc; see
24820         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
24821
24822         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
24823         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
24824         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
24825         (struct obstack): temp member is now a union of a pointer and
24826         an integer, instead of an integer.  All integer uses changed.
24827         This does not affect the physical layout of struct obstack,
24828         except on hosts (like the AS/400) where the size or alignment of
24829         void * is greater than that of ptrdiff_t.
24830         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
24831         __STDC__)]: Store temporary in pointer member of union, not
24832         integer member.
24833         * lib/obstack.c: Include <stddef.h>, for offsetof.
24834         (struct fooalign): Remove; it doesn't need a name.
24835         (union fooround): Change double to long double, and add void *.
24836         (DEFAULT_ALIGNMENT): Use offsetof to compute.
24837         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
24838         not a macro.  Hence the values are always int; so remove all
24839         casts-to-int in uses.
24840
24841 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
24844         we can get this patch merged into glibc.
24845
24846 2004-05-17  Derek R. Price  <derek@ximbiot.com>
24847             Paul Eggert  <eggert@cs.ucla.edu>
24848
24849         * m4/argp: Depend on alloca.
24850
24851 2004-05-17  Derek R. Price  <derek@ximbiot.com>
24852             Paul Eggert  <eggert@cs.ucla.edu>
24853
24854         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
24855         freecoding.
24856
24857 2004-05-17  Bruno Haible  <bruno@clisp.org>
24858
24859         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
24860         precision that consists of a '.' followed by an empty digit string.
24861         Patch by Tor Lillqvist <tml@iki.fi>.
24862
24863 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24864
24865         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
24866         for backward compatibility with older code.  We need our own
24867         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
24868         it under some other name, and our alloca.h will define it.
24869
24870 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24871             Derek Price  <derek@ximbiot.com>
24872
24873         * lib/alloca.c: Include <alloca.h>, to get our interface.
24874         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
24875         include <alloca.h> first.  Use C89 prototype for alloca; this
24876         requires including <stddef.h> for size_t.  Use extern "C" if C++.
24877         Use #elif for simplicity, since we can assume C89 now.
24878         Don't try to source the system alloca.h since it will not be found
24879         and to prevent recursively including its replacement.
24880         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
24881         * lib/regex.c: Likewise.
24882
24883 2004-05-16  Derek Price  <derek@ximbiot.com>
24884             Paul Eggert  <eggert@cs.ucla.edu>
24885
24886         getline cleanup.  This changes the getndelim2 API: both order of
24887         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
24888         no delimiter).
24889
24890         * lib/getline.c: Don't include stddef.h or stdio.h, since our
24891         interface does that.
24892         (getline): Always use getdelim, so that we don't have two
24893         copies of this code.
24894         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
24895         if available.
24896         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
24897         (GETNDELIM2_MAXIMUM): New macro.
24898         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
24899         instead of the old practice of delim2==0.  All callers changed.
24900         Return -1 on overflow, instead of returning junk.
24901         Do not set *linesize unless allocation succeeds.
24902         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
24903         that we include sys/types.h.
24904         * lib/getnline.h: Likewise.
24905         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
24906         (getndelim2): Reorder arguments.
24907         * lib/getnline.c (getnline, getndelim):
24908         Don't discard the NMAX argument.
24909         (getnline): Invoke getndelim, to avoid code duplication.
24910         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
24911         of (size_t) -1 by callers of the getnline family.
24912
24913 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24914
24915         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
24916         Check for gettimeofday.
24917         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
24918         Check for settimeofday, stime.
24919
24920 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24921
24922         * lib/nanosleep.c (suspended): Change its type from int to
24923         sig_atomic_t volatile.
24924         (first_call): Make it private to rpl_nanosleep, and have it
24925         be zero initially as that's a bit faster.
24926         (my_usleep): Round up fractional times instead of truncating them,
24927         as this is the usual meaning for 'sleep'.
24928
24929         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
24930         doesn't work.
24931         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
24932         (ENOSYS): Define if not defined.
24933         (settime): Fall back on stime if it exists and settimeofday fails.
24934         But don't bother with fallbacks if a method fails with errno == EPERM.
24935
24936 2004-05-11  Jim Meyering  <jim@meyering.net>
24937
24938         Prior to this change, the save_cwd caller required read access to the
24939         current directory on most systems (ones with the fchdir function).
24940
24941         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
24942         fails, try write-only, and finally, resort to using xgetcwd.
24943
24944 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
24945
24946         * lib/obstack.c, obstack.h: Import changes from libc.
24947
24948 2004-04-28  Bruno Haible  <bruno@clisp.org>
24949
24950         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
24951         also implicitly appends .exe to executables.
24952         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
24953         accepts Windows pathnames.
24954         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
24955         Treat Cygwin like Windows, since it now accepts Windows pathnames.
24956         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
24957         Treat Cygwin like Windows, since it now accepts Windows pathnames.
24958         Reported by Derek Robert Price <derek@ximbiot.com>.
24959
24960 2004-04-21  Karl Berry  <karl@gnu.org>
24961
24962         * config/srclist.txt (localcharset.c): break sync.
24963
24964 2004-04-20  Paul Eggert  <eggert@twinsun.com>
24965
24966         * m4/host-os.m4: Add a copyright notice.
24967
24968 2004-04-20  Jim Meyering  <jim@meyering.net>
24969
24970         Change UTILS_ to gl_ in AC_DEFINE'd names.
24971         Change utils_- and jm_-prefixed variables, too.
24972         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
24973         UTILS_FUNC_MKDIR_TRAILING_SLASH.
24974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
24975
24976         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
24977         Don't emit trailing blanks.
24978         Also rename jm_-prefixed variables to have gl_ prefix.
24979
24980         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
24981         Also rename jm_-prefixed variables to have gl_ prefix.
24982
24983         * m4/jm-macros.m4: Reflect the renamings.
24984         * m4/prereq.m4: Likewise.
24985
24986 2004-04-20  Jim Meyering  <jim@meyering.net>
24987
24988         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
24989         memory.
24990
24991 2004-04-20  Jim Meyering  <jim@meyering.net>
24992             Bruno Haible  <bruno@clisp.org>
24993
24994         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
24995         memory when realloc fails.
24996
24997 2004-04-19  Jim Meyering  <jim@meyering.net>
24998
24999         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
25000         now that readutmp.c may call `free (0)'.
25001
25002 2004-04-19  Bruno Haible  <bruno@clisp.org>
25003
25004         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
25005         * m4/inttypes_h.m4: Likewise.
25006         * m4/stdint_h.m4: Likewise.
25007         * m4/intmax_t.m4: Likewise.
25008         * m4/uintmax_t.m4: Likewise.
25009
25010 2004-04-18  Jim Meyering  <jim@meyering.net>
25011
25012         * m4/prereq.m4: Don't forbid jm_ prefix.
25013
25014         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
25015         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
25016         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
25017         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
25018         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
25019         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
25020         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
25021         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
25022         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
25023         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
25024         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
25025         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
25026         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
25027         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
25028         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
25029         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
25030         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
25031         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
25032         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
25033
25034 2004-04-18  Jim Meyering  <jim@meyering.net>
25035
25036         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
25037         failure, don't leak memory and do call END_UTMP_ENT.
25038
25039 2004-04-16  Jim Meyering  <jim@meyering.net>
25040
25041         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
25042         coreutils' stat program.
25043         (gl_PREREQ): Don't require jm_PREREQ_STAT.
25044
25045 2004-04-11  Paul Eggert  <eggert@twinsun.com>
25046
25047         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
25048         C89.
25049         (CHAR_BIT): Remove, since we assume C89.
25050         Include <stdint.h> if available, as per current Autoconf CVS advice.
25051
25052 2004-03-31  Jim Meyering  <jim@meyering.net>
25053
25054         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
25055         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
25056         * m4/xalloc.m4: Likewise.
25057
25058 2004-03-30  Paul Eggert  <eggert@twinsun.com>
25059
25060         Merge from coreutils.
25061
25062         * m4/inttostr.m4: New file.
25063         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
25064         Require AM_STDBOOL_H and gl_TIMESPEC instead.
25065         Require gl_CLOCK_TIME.
25066         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
25067
25068 2004-03-30  Paul Eggert  <eggert@twinsun.com>
25069
25070         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
25071         not bool, to be more consistent with Unix conventions.
25072         Suggested by Bruno Haible.
25073
25074         Merge from coreutils.
25075
25076         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
25077         * lib/umaxtostr.c: New files.
25078
25079         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
25080         the usual <time.h> dance.
25081         (get_date): Change signature to support fractional time stamps.
25082         All callers changed.
25083         * lib/getdate.y: Include "getdate.h" first, as we can now
25084         assume C89 and don't need to worry about 'const'.
25085         Similarly, include "unlocked-io.h" near start, not in middle.
25086         Include <limits.h>.
25087         (textint.value): Use long int rather than int.
25088         (textint.digits): Use size_t rather than int.
25089         (BILLION, LOG10_BILLION): New constants.
25090         (parser_control): New member rel_ns.  Members day_ordinal,
25091         time_zone, month, day, hour, minutes, rel_year, rel_month,
25092         rel_day, rel_hour, rel_minutes, rel_seconds
25093         are now long int, not int.  Member seconds is now struct timespec,
25094         not int.  New member timespec_seen.  Members dates_seen, days_seen,
25095         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
25096         not int.
25097         (%union.intval): Now long int, not int.
25098         New member timespec.
25099         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
25100         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
25101         (spec): Now is a timespec or an item list.
25102         (timespec, items): New nonterminals.
25103         (time, rel, relunit, number, get_date):
25104         Add support for fractional seconds.
25105         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
25106         (gmtime, localtime, mktime): Remove decls; not needed with C89.
25107         (to_hour): First arg is now long int, not int.
25108         (to_year): Returns long int, not int.
25109         Don't treat year -70 like 70.
25110         (tm_diff): Returns long int, not int.
25111         (lookup_word): Use bool instead of int when appropriate.
25112         (yylex): Use size_t for count, not int.
25113         Detect overflow when parsing large integer constants.
25114         Add support for fractions.
25115         (get_date): Make pointers 'const' if possible.
25116         Use more-portable code to detect integer overflow.
25117         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
25118         Don't use ctime; it's not reliable if the year has >4 digits.
25119
25120         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
25121         This is for compatibility with BSD.
25122
25123         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
25124         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
25125         From coreutils' system.h.
25126
25127         * lib/userspec.c: Don't include "posixver.h".
25128         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
25129         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
25130         compatible extension.  Simplify code by removing a boolean int
25131         that was always nonzero if a string was nonnull.
25132
25133 2004-03-30  Jim Meyering  <jim@meyering.net>
25134
25135         Merge from coreutils.
25136
25137         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
25138         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
25139         on some systems one must include <grp.h> before it.
25140         Reported by Christian Krackowizer.
25141
25142 2004-03-30  Jim Meyering  <jim@meyering.net>
25143
25144         Merge from coreutils.
25145
25146         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
25147
25148         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
25149         an empty input stream.
25150
25151         * lib/readtokens.c: Include <stdbool.h>.
25152         (readtoken): Use `size_t' rather than int/long.
25153         All callers adjusted.
25154         Use `bool' rather than `int' where appropriate.
25155         Use memset rather than an explicit loop.
25156         Use x2nrealloc rather than xrealloc.
25157         Allow the use of `\0' as a delimiter.
25158         (readtokens): Likewise.
25159         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
25160
25161 2004-03-30  Jim Meyering  <jim@meyering.net>
25162
25163         * m4/realloc.m4: Remove file, since now it does no more than
25164         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
25165         the `configure.ac' section of module/realloc.
25166         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
25167
25168 2004-03-30  Bruno Haible  <bruno@clisp.org>
25169
25170         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
25171         nonnull.
25172
25173 2004-03-29  Paul Eggert  <eggert@twinsun.com>
25174
25175         Merge changes to getloadavg.c from coreutils and Emacs.
25176
25177         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
25178         Define to an expression, not to the empty string.
25179         Include cloexec.h and xalloc.h.
25180         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
25181         Use set_cloexec_flag rather than rolling our own.
25182         * lib/cloexec.c, lib/cloexec.h: New files.
25183
25184 2004-03-29  Paul Eggert  <eggert@twinsun.com>
25185
25186         * m4/cloexec.m4: New file.
25187
25188 2004-03-18  Paul Eggert  <eggert@twinsun.com>
25189
25190         * lib/getopt.h: Sync with libc CVS.
25191
25192 2004-03-18  Paul Eggert  <eggert@twinsun.com>
25193             Bruno Haible  <bruno@clisp.org>
25194
25195         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
25196         mbswidth.
25197
25198 2004-03-18  Paul Eggert  <eggert@twinsun.com>
25199             Bruno Haible  <bruno@clisp.org>
25200
25201         * lib/mbswidth.h: Include <wchar.h> only if
25202         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
25203         <wchar.h>.
25204         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
25205
25206 2004-03-09  Paul Eggert  <eggert@twinsun.com>
25207
25208         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
25209         Sync with libc CVS.
25210         * lib/getopt_int.h: New file, also synced from libc.
25211
25212 2004-03-09  Paul Eggert  <eggert@twinsun.com>
25213
25214         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
25215         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
25216         Bring back getopt.c, getopt.h, getopt1.c.
25217
25218 2004-03-07  Paul Eggert  <eggert@twinsun.com>
25219
25220         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
25221         All uses changed.  Check for sa_sigaction member; this fixes
25222         a bug first reported by Jason Andrade in
25223         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
25224
25225 2004-03-07  Paul Eggert  <eggert@twinsun.com>
25226
25227         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
25228         '#if' expressions.  Unlike the code it replaces, it does not
25229         depend on (defined _SC_PAGESIZE).  However, it does depend on
25230         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
25231         first reported by Jason Andrade in
25232         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
25233
25234 2004-02-25  Simon Josefsson  <jas@extundo.com>
25235
25236         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
25237
25238 2004-02-25  Simon Josefsson  <jas@extundo.com>
25239
25240         * lib/strdup.h: New file.
25241         * lib/strdup.c: Include it.
25242         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
25243         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
25244
25245 2004-02-23  Karl Berry  <karl@gnu.org>
25246
25247         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
25248         (from fencepost.gnu.org:/gd/gnuorg).
25249
25250 2004-02-23  Karl Berry  <karl@gnu.org>
25251
25252         * config/srclistvars.sh (GNUORG) [karl]: redefine.
25253         * config/srclist.txt: add maintain/standards documents.
25254
25255 2004-02-18  Bruno Haible  <bruno@clisp.org>
25256
25257         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
25258         Reported by Derek Robert Price <derek@ximbiot.com>.
25259
25260 2004-02-16  Karl Berry  <karl@gnu.org>
25261
25262         * config/mkinstalldirs, install-sh: update from automake.
25263
25264 2004-02-06  Karl Berry  <karl@gnu.org>
25265
25266         * m4/po.m4: update from gettext 0.14.1.
25267
25268 2004-02-06  Karl Berry  <karl@gnu.org>
25269
25270         * lib/config.charset: update from gettext 0.14.1.
25271
25272 2004-02-05  Paul Eggert  <eggert@twinsun.com>
25273
25274         Add comments and code, prompted by suggestions from Bruno Haible
25275         for sh-quote.
25276         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
25277         describing the enum quoting_style values.
25278         * lib/quotearg.c (quotearg_alloc): New function.
25279         (quotearg_buffer_restyled): Treat lone { and } as special.
25280         Treat = as special.  Work around bug with older shells
25281         that "see" a '\' that is really the 2nd byte of a multibyte char.
25282         Quote empty string with shell_quoting_style.
25283
25284 2004-02-03  Bruno Haible  <bruno@clisp.org>
25285
25286         * m4/pipe.m4: New file, from GNU gettext.
25287
25288 2004-02-03  Bruno Haible  <bruno@clisp.org>
25289
25290         * lib/pipe.h: New file, from GNU gettext.
25291         * lib/pipe.c: New file, from GNU gettext.
25292
25293 2004-01-27  Bruno Haible  <bruno@clisp.org>
25294
25295         * m4/execute.m4: New file, from GNU gettext.
25296
25297 2004-01-27  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/execute.h: New file, from GNU gettext.
25300         * lib/execute.c: New file, from GNU gettext.
25301         * lib/w32spawn.h: New file, from GNU gettext.
25302
25303 2004-01-24  Paul Eggert  <eggert@twinsun.com>
25304
25305         Merge from diffutils.
25306
25307         * lib/file-type.c (file_type): Add typed memory objects.
25308         * lib/file-type.h (S_TYPEISTMO): New macro.
25309
25310         * lib/c-stack.h (c_stack_action): Remove argv argument.
25311         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
25312         (die): Don't calculate message unless segv_action returns.
25313         (get_stack_location, min_address_from_argv, max_address_from_argv,
25314         volatile stack_base, volatile_stack_size): Remove.
25315         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
25316         that every segmentation violation is a stack overflow.  (Ouch!)
25317         See Debian bug 136249 (still outstanding) for more info about why
25318         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
25319
25320 2004-01-24  Paul Eggert  <eggert@twinsun.com>
25321
25322         Exit-status fix from coreutils.
25323
25324         Use exit_failure consistently in place of EXIT_FAILURE,
25325         so that program exit statuses are consistent on failure.
25326
25327         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
25328         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
25329         * lib/argmatch.h: Comment fix to match the above.
25330         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
25331         Now a macro referring to exit_failure, instead of a separate
25332         variable.  Include "exitfail.h" to get it.
25333         * lib/xstrtol.h: Include "exitfail.h".
25334         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
25335
25336         * lib/long-options.c (parse_long_options): Use prototype
25337         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
25338         for clarity.
25339
25340 2004-01-21  Jim Meyering  <jim@meyering.net>
25341
25342         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
25343         so as not to conflict with a different-sized __mktime_internal
25344         function in GNU libc.
25345         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
25346         Problem building statically-linked `ls' reported by Michael Brunnbauer.
25347
25348 2004-01-20  Karl Berry  <karl@gnu.org>
25349
25350         * config/config.guess: update from config.
25351
25352         * config/srclistvars.sh: GNUWWWLICENSES for karl.
25353
25354 2004-01-20  Bruno Haible  <bruno@clisp.org>
25355
25356         Safer stack allocation.
25357         * lib/setenv.c: Include allocsa.h.
25358         (alloca): Remove fallback definition.
25359         (freea): Remove macro.
25360         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
25361         instead of freea.
25362
25363 2004-01-20  Bruno Haible  <bruno@clisp.org>
25364
25365         * m4/eealloc.m4: New file, from GNU gettext.
25366
25367 2004-01-20  Bruno Haible  <bruno@clisp.org>
25368
25369         * m4/allocsa.m4: New file, from GNU gettext.
25370
25371 2004-01-20  Bruno Haible  <bruno@clisp.org>
25372
25373         * lib/xallocsa.h: New file, from GNU gettext.
25374         * lib/xallocsa.c: New file, from GNU gettext.
25375
25376 2004-01-20  Bruno Haible  <bruno@clisp.org>
25377
25378         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
25379
25380 2004-01-20  Bruno Haible  <bruno@clisp.org>
25381
25382         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
25383         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
25384         specially.
25385
25386 2004-01-20  Bruno Haible  <bruno@clisp.org>
25387
25388         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
25389         patch.
25390
25391 2004-01-20  Bruno Haible  <bruno@clisp.org>
25392
25393         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
25394
25395 2004-01-20  Bruno Haible  <bruno@clisp.org>
25396
25397         * lib/eealloc.h: New file.
25398
25399 2004-01-20  Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/binary-io.h: Avoid warnings on Cygwin.
25402
25403 2004-01-20  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/allocsa.h: New file, from GNU gettext.
25406         * lib/allocsa.c: New file, from GNU gettext.
25407
25408 2004-01-18  Karl Berry  <karl@gnu.org>
25409
25410         * doc/gpl.texi, doc/lgpl.texi: new files.
25411
25412 2004-01-18  Karl Berry  <karl@gnu.org>
25413
25414         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
25415         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
25416
25417 2004-01-15  Paul Eggert  <eggert@twinsun.com>
25418
25419         Merge from coreutils.
25420
25421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
25422         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
25423         (gl_DEFAULT_POSIX2_VERSION): Move
25424         the documentation from 'configure' into 'config.hin',
25425         so that 'configure --help' isn't burdened by it and
25426         we don't have to worry about its formatting there.
25427         Reword the documentation so that it's more succinct
25428         and can be run together into a single paragraph.
25429         * m4/same.m4 (gl_SAME): Check for pathconf.
25430
25431 2004-01-15  Paul Eggert  <eggert@twinsun.com>
25432
25433         Merge from coreutils.
25434
25435         * lib/posixver.c: Include posixver.h.
25436
25437         * lib/same.c: Include <stdbool.h>, <limits.h>.
25438         (_POSIX_NAME_MAX): Define if not defined.
25439         (MIN): New macro.
25440         (same_name): If file names are silently truncated, report
25441         that the file names are the same if they are the same after
25442         the silent truncation.
25443
25444         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
25445         conversion function.
25446         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
25447         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
25448         longer needed.
25449
25450 2004-01-15  Jim Meyering  <jim@meyering.net>
25451
25452         Merge from coreutils.
25453
25454         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
25455         if no library is required.
25456         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
25457         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
25458         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
25459         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
25460         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
25461         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
25462         value, $ac_cv_search_crypt, if it's "none required".
25463         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
25464         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
25465         not gl_FUNC_GETLOADAVG.
25466         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
25467         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
25468
25469 2004-01-15  Jim Meyering  <jim@meyering.net>
25470
25471         Merge from coreutils.
25472
25473         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
25474         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
25475         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
25476
25477         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
25478         optional configure-time default.
25479
25480         * lib/version-etc.c (version_etc_copyright): Update copyright date.
25481
25482         * lib/xreadlink.c (xreadlink): Correct outdated comment.
25483
25484 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
25485
25486         Merge from coreutils.
25487
25488         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
25489         value, $ac_cv_search_nanosleep, if it's "none required".
25490
25491 2004-01-14  Paul Eggert  <eggert@twinsun.com>
25492
25493         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
25494         with like-named macro in fnmatch.c.
25495         (EXT): Use an internal constant instead.
25496
25497         Merge fnmatch patches from glibc.
25498         * lib/fnmatch.c (mbsinit): Remove define.
25499         Add libc_hidden_ver (__fnmatch, fnmatch).
25500         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
25501         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
25502
25503 2004-01-14  Karl Berry  <karl@gnu.org>
25504
25505         * config/install-sh: update from automake.
25506
25507 2004-01-13  Karl Berry  <karl@gnu.org>
25508
25509         * config/install-sh: update from automake.
25510
25511 2004-01-09  Karl Berry  <karl@gnu.org>
25512
25513         * config/install-sh: update from automake.
25514
25515 2004-01-05  Karl Berry  <karl@gnu.org>
25516
25517         * config/config.{sub,guess}: update from config.
25518
25519 2003-12-31  Karl Berry  <karl@gnu.org>
25520
25521         * config/depcomp: update from automake.
25522
25523 2003-12-14  Karl Berry  <karl@gnu.org>
25524
25525         * lib/config.charset: update from gettext-runtime.
25526
25527 2003-12-03  Paul Eggert  <eggert@twinsun.com>
25528
25529         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
25530         Bug reported by Alfred M. Szmidt.
25531
25532 2003-12-03  Bruno Haible  <bruno@clisp.org>
25533
25534         * m4/gettext.m4: Upgrade from gettext-0.13.
25535         * m4/po.m4: Upgrade from gettext-0.13.
25536         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
25537         * m4/intmax.m4: New file, from gettext-0.13.
25538         * m4/printf-posix.m4: New file, from gettext-0.13.
25539
25540 2003-11-29  Karl Berry  <karl@gnu.org>
25541
25542         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
25543
25544 2003-11-25  Paul Eggert  <eggert@twinsun.com>
25545             Bruno Haible  <bruno@clisp.org>
25546
25547         * lib/printf-parse.h: Don't include sys/types.h.
25548         (ARG_NONE): New macro.
25549         (char_directive): Change type of *arg_index fields to size_t.
25550         * lib/printf-parse.c: Don't include sys/types.h.
25551         (SSIZE_MAX): Remove macro.
25552         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
25553         Remove unnecessary overflow check.
25554         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
25555         fields.
25556
25557 2003-11-25  Bruno Haible  <bruno@clisp.org>
25558
25559         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
25560
25561 2003-11-25  Bruno Haible  <bruno@clisp.org>
25562
25563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
25564         gt_TYPE_SSIZE_T.
25565
25566 2003-11-24  Paul Eggert  <eggert@twinsun.com>
25567
25568         * modules/alloca: Remove dependency on xalloc.
25569
25570 2003-11-24  Paul Eggert  <eggert@twinsun.com>
25571
25572         * lib/alloca.c: Remove dependency on xalloc module.
25573         (xalloc_die): Remove.
25574         (memory_full) [!defined emacs]: New macro.
25575         [!defined emacs]: Don't include xalloc.h.
25576         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
25577         address arithmetic overflows.  Change datatypes a bit to avoid
25578         unnecessary casts.
25579
25580 2003-11-22  Jim Meyering  <jim@meyering.net>
25581
25582         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
25583         s/size/size_t/.
25584
25585 2003-11-21  Karl Berry  <karl@gnu.org>
25586
25587         * config/config.{sub,guess}: update from config.
25588
25589 2003-11-18  Karl Berry  <karl@gnu.org>
25590
25591         * config/config.{sub,guess}: update from config.
25592
25593         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
25594
25595 2003-11-17  Paul Eggert  <eggert@twinsun.com>
25596
25597         * README: Mention that S+T cannot overflow if S is the size of
25598         an existing object and T is sufficiently small.
25599
25600 2003-11-17  Jim Meyering  <jim@meyering.net>
25601
25602         On systems without utime and without a utimes function capable of
25603         dealing with a NULL struct utimbuf* argument, this utime replacement
25604         could -- in unusual circumstances -- leak a file descriptor.
25605         * lib/utime.c: Include <unistd.h> and <errno.h>.
25606         (utime_null): Be sure to close `fd' and to preserve errno.
25607         Reported by Geoff Collyer via Arnold Robbins.
25608
25609 2003-11-17  Bruno Haible  <bruno@clisp.org>
25610
25611         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
25612         (Depends-on): Add xsize.
25613
25614 2003-11-17  Bruno Haible  <bruno@clisp.org>
25615
25616         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
25617
25618 2003-11-17  Bruno Haible  <bruno@clisp.org>
25619
25620         * lib/vasnprintf.c (alloca): Remove fallback definition.
25621         (freea): Remove definition.
25622         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
25623         Reported by Paul Eggert.
25624
25625 2003-11-16  Paul Eggert  <eggert@twinsun.com>
25626             Bruno Haible  <bruno@clisp.org>
25627
25628         Protect against address arithmetic overflow.
25629         * lib/printf-args.h: Include stddef.h.
25630         (arguments): Change type of field 'count' to size_t.
25631         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
25632         'unsigned int' where appropriate.
25633         * lib/printf-parse.h: Include sys/types.h.
25634         (char_directive): Change type of *arg_index fields to ssize_t.
25635         (char_directives): Change type of fields 'count', max_*_length to
25636         size_t.
25637         * lib/printf-parse.c: Include sys/types.h and xsize.h.
25638         (SSIZE_MAX): Define fallback value.
25639         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
25640         instead of 'int' where appropriate. Check a_allocated, d_allocated
25641         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
25642         * lib/vasnprintf.c: Include xsize.h.
25643         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
25644         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
25645         overflow. Avoid wraparound when converting a width or precision from
25646         decimal to binary.
25647
25648 2003-11-16  Bruno Haible  <bruno@clisp.org>
25649
25650         Update from GNU gettext.
25651         * lib/printf-parse.c: Generalize to it can be compiled for wide
25652         strings.
25653         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
25654         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
25655         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
25656         SNPRINTF): New macros.
25657         Don't include <alloca.h> if the file is used inside libintl.
25658         (local_wcslen): New function, for Solaris 2.5.1.
25659         (VASNPRINTF): Use it instead of wcslen.
25660
25661 2003-11-16  Bruno Haible  <bruno@clisp.org>
25662
25663         * lib/xsize.h (xmax): New function.
25664         (xsum, xsum3, xsum4): Declare as "pure" functions.
25665
25666 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25667
25668         * modules/xalloc (Files): Undo latest change, since xalloc.h
25669         no longer needs SIZE_MAX or PTRDIFF_MAX.
25670
25671 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25672
25673         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
25674         gl_PTRDIFF_MAX.
25675
25676 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25677
25678         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
25679         "return", to pacify some unknown compiler.  Problem reported
25680         by Joerg Schilling.
25681
25682 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25683
25684         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
25685         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
25686         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
25687         heuristic is just as accurate as far as we know, and it removes a
25688         dependency on size_max.m4 and ptrdiff_max.m4.
25689
25690 2003-11-11  Bruno Haible  <bruno@clisp.org>
25691
25692         * modules/xsize (Files): Add m4/size_max.m4.
25693         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
25694
25695 2003-11-11  Bruno Haible  <bruno@clisp.org>
25696
25697         * m4/size_max.m4: New file.
25698         * m4/ptrdiff_max.m4: New file.
25699         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
25700         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
25701         (gl_XALLOC): Invoke it.
25702
25703 2003-11-11  Bruno Haible  <bruno@clisp.org>
25704
25705         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
25706         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
25707         defined.
25708
25709 2003-11-10  Paul Eggert  <eggert@twinsun.com>
25710
25711         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
25712         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
25713         rejected some allocations of exactly SIZE_MAX - 2 bytes.
25714         From Bruno Haible.
25715         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
25716         not (size_t) -1, since it's defined here.
25717
25718 2003-11-09  Karl Berry  <karl@gnu.org>
25719
25720         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
25721
25722 2003-11-06  Paul Eggert  <eggert@twinsun.com>
25723
25724         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
25725         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
25726         Reject sizes of exactly SIZE_MAX bytes.
25727         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
25728         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
25729
25730 2003-11-05  Bruno Haible  <bruno@clisp.org>
25731
25732         * lib/xsize.h: Include limits.h, to avoid a possible collision with
25733         SIZE_MAX defined in <limits.h> on Solaris.
25734
25735 2003-11-04  Jim Meyering  <jim@meyering.net>
25736
25737         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
25738         variable names, rather than @VAR@.
25739         * modules/poll: Likewise.
25740
25741 2003-11-04  Bruno Haible  <bruno@clisp.org>
25742
25743         * modules/xsize: New file.
25744         * modules/linebreak: Depend on xsize.
25745         * MODULES.html.sh (func_all_modules): Add xsize.
25746
25747 2003-11-04  Bruno Haible  <bruno@clisp.org>
25748
25749         * m4/xsize.m4: New file.
25750
25751 2003-11-04  Bruno Haible  <bruno@clisp.org>
25752
25753         * lib/xsize.h: New file.
25754         * lib/linebreak.c: Include xsize.h.
25755         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
25756         argument for overflow.
25757         Suggested by Paul Eggert.
25758
25759 2003-11-03  Karl Berry  <karl@gnu.org>
25760
25761         * config/config.{guess,sub}: update from config.
25762
25763 2003-11-03  Jim Meyering  <jim@meyering.net>
25764
25765         * modules/userspec (lib_SOURCES): Add userspec.h.
25766         (Include): Add "userspec.h".
25767         Improve description.
25768
25769 2003-11-03  Jim Meyering  <jim@meyering.net>
25770
25771         * lib/userspec.c: Include "userspec.h".
25772         * lib/userspec.h: New file.
25773
25774 2003-11-03  Bruno Haible  <bruno@clisp.org>
25775
25776         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
25777
25778 2003-11-03  Bruno Haible  <bruno@clisp.org>
25779
25780         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
25781         available, to avoid (extremely rare) race condition.
25782         Suggested by Paul Eggert.
25783
25784 2003-11-02  Karl Berry  <karl@gnu.org>
25785
25786         * config/srclist.txt (vasprintf.c): sync broken, sigh.
25787
25788 2003-10-31  Paul Eggert  <eggert@twinsun.com>
25789
25790         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
25791         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
25792         (read_filesystem_list): Set and use me_type_malloced.
25793         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
25794         whatever the type happens to be), for brevity and consistency.
25795         Check for size calculation overflow on Alphas running OSF/1.
25796
25797 2003-10-31  Jim Meyering  <jim@meyering.net>
25798
25799         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
25800
25801         * lib/linebuffer.c: Include <string.h> for declaration of memset.
25802
25803 2003-10-30  Paul Eggert  <eggert@twinsun.com>
25804             Bruno Haible  <bruno@clisp.org>
25805
25806         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
25807         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
25808
25809 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25810
25811         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
25812         netbsd*-gnu*.  Suggested by Robert Millan.
25813
25814 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25815
25816         * modules/group-member: Depend on stdbool.
25817
25818 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25819
25820         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
25821
25822 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25823
25824         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
25825         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
25826         after the 'gnu' in these cases.  This fixes some bugs in the
25827         previous change, and is based on suggestions by Robert Millan.
25828
25829 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25830
25831         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
25832         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
25833         no longer needed.
25834         * lib/quotearg.c (quotearg_n_options): Use it.
25835         * lib/group-member.c: Include <stdbool.h>.
25836         (free_group_info): Arg is now const *; don't free arg.
25837         (get_group_info): Now returns bool and accepts struct group_info *,
25838         rather than returning a malloc'ed struct group_info *.
25839         All uses changed.  Check for overflow in internal size calculation.
25840
25841         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
25842         rather than xmalloc/xrealloc.
25843         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
25844         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
25845         conformance bug: the old code used a pointer after freeing the
25846         storage that it addressed.
25847         * lib/hash.c (hash_initialize): Simplify the code by using
25848         xalloc_oversized rather than doing it by hand.
25849         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
25850         the buffer preserved.  Use free and xmalloc instead.
25851         * lib/quotearg.c (quotearg_n_options): Likewise.
25852         Use a simpler test for size overflow.  Don't use xalloc_oversized
25853         because unsigned int might be wider than size_t (!); this suggests
25854         that we should switch from unsigned int to size_t for slot numbers.
25855
25856 2003-10-28  Paul Eggert  <eggert@twinsun.com>
25857
25858         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
25859         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
25860         NetBSD kernels.  Requested by Richard Stallman.
25861
25862 2003-10-27  Paul Eggert  <eggert@twinsun.com>
25863
25864         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
25865         to allocate the returned structure.  Do not allocate a subarray,
25866         as x2nrealloc will do that.
25867         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
25868         instead of xnrealloc.
25869         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
25870
25871 2003-10-27  Bruno Haible  <bruno@clisp.org>
25872
25873         * lib/stdbool_.h: Better support for BeOS.
25874
25875 2003-10-26  Paul Eggert  <eggert@twinsun.com>
25876
25877         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
25878         now uses inline.
25879
25880 2003-10-26  Paul Eggert  <eggert@twinsun.com>
25881
25882         * lib/xalloc.h (xalloc_oversized): New static inline function, for
25883         callers that want to do their own size-overflow checking.  Include
25884         <stdbool.h>, since xalloc_oversized returns bool.
25885         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
25886         to use xalloc_oversized.
25887
25888         Add two functions x2realloc, x2nrealloc, for programs that grow
25889         arrays dynamically by doubling their sizes.
25890         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
25891         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
25892         New functions.
25893
25894         Port to C99 semantics for 'inline' of external functions.
25895         Bug reported by Bruno Haible.
25896         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
25897         with the old contents of xnmalloc.
25898         (xnmalloc, xmalloc): Use it.
25899         (xnrealloc_inline): New static inline function,
25900         with the old contents of xnrealloc.
25901         (xnrealloc, xrealloc): Use it.
25902
25903         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
25904         that.
25905
25906 2003-10-26  Karl Berry  <karl@gnu.org>
25907
25908         * config/srclist.txt (COPYING.DOC): no longer available from
25909         /gd/gnuorg; don't know where the ultimate source is.
25910
25911 2003-10-25  Paul Eggert  <eggert@twinsun.com>
25912
25913         Fix several address-calculation bugs in the hash modules,
25914         plus some minor code cleanup.
25915
25916         * lib/hash.h: Include <stdbool.h>, for bool.
25917         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
25918         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
25919         hash_get_n_entries, hash_get_max_bucket_length,
25920         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
25921         hash_rehash): Use size_t rather than unsigned.
25922         * lib/hash.c (struct hash_table, hash_get_n_buckets,
25923         hash_get_n_buckets_used, hash_get_n_entries,
25924         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
25925         hash_get_entries, hash_do_for_each, hash_string, is_prime,
25926         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
25927         Likewise.
25928         (SIZE_MAX): Define if not defined.
25929         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
25930         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
25931         hash_print):
25932         Use const * when possible.
25933         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
25934         (check_tuning): Fix bug: if tuning parameters were very close to
25935         0 or 1, rounding errors could have caused subscript violations.
25936         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
25937         (hash_initialize): Add 'fail:' label
25938         to free table and return NULL, and use it to simplify code.
25939         Use calloc rather than clearing the storage ourself.
25940         (hash_initialize, hash_rehash): Check for arithmetic overflow in
25941         buffer size calculations.
25942         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
25943         Include <stddef.h>, for size_t.
25944         * lib/hash-pjw.c (hash_pjw): Likewise.
25945         Switch to method described by Bruno Haible.
25946         Include <limits.h>, for CHAR_BIT.
25947         (SIZE_BITS): New macro.
25948
25949 2003-10-23  Paul Eggert  <eggert@twinsun.com>
25950
25951         * m4/getline.m4 (AM_FUNC_GETLINE):
25952         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
25953         hosts.  Problem reported by Derek Robert Price in
25954         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
25955         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
25956         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
25957
25958 2003-10-21  Paul Eggert  <eggert@twinsun.com>
25959
25960         * lib/getndelim2.c (getndelim2): When size calculation overflows,
25961         ceiling the allocation at NMAX bytes rather than silently
25962         discarding input bytes before NMAX is reached.  This makes
25963         a difference only if NMAX exceeds SIZE_MAX / 2.
25964
25965         * lib/obstack.c: Merge from glibc.
25966         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
25967         Add libc_hidden_def (_obstack_newchunk).
25968         (_obstack_free) [! defined _LIBC]: Remove.
25969         [defined _LIBC]: Make a strong alias from obstack_free, rather than
25970         a clone of the function body.
25971         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
25972         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
25973
25974         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
25975         glibc.
25976         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
25977         arg to memcpy.
25978
25979         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
25980         (obstack_ptr_grow_fast, obstack_int_grow_fast):
25981         Don't use lvalue casts, as GCC plans to remove support for them
25982         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
25983         was also present in the non-GCC version, indicating that this
25984         code had always been buggy and had never been widely used.
25985         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
25986         Use the fast variant of each macro, rather than copying the
25987         definiens of the fast variant; that way, we'll be more likely to
25988         catch future bugs in the fast variants.
25989
25990 2003-10-20  Bruno Haible  <bruno@clisp.org>
25991
25992         * modules/wait-process: New file.
25993         * MODULES.html.sh (func_all_modules): Add wait-process.
25994
25995 2003-10-20  Bruno Haible  <bruno@clisp.org>
25996
25997         * m4/wait-process.m4: New file.
25998
25999 2003-10-20  Bruno Haible  <bruno@clisp.org>
26000
26001         * lib/wait-process.h: New file, from GNU gettext.
26002         * lib/wait-process.c: New file, from GNU gettext.
26003
26004 2003-10-19  Jim Meyering  <jim@meyering.net>
26005
26006         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
26007         HPUX 10.20.
26008
26009 2003-10-18  Karl Berry  <karl@gnu.org>
26010
26011         * config/config.guess: update from config.
26012
26013 2003-10-16  Paul Eggert  <eggert@twinsun.com>
26014
26015         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
26016         (getgroups): First arg is int, not size_t.
26017         Don't let 'free' mangle errno.
26018
26019 2003-10-16  Paul Eggert  <eggert@twinsun.com>
26020
26021         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
26022
26023 2003-10-16  Karl Berry  <karl@gnu.org>
26024
26025         * config/config.{guess,sub}: update from config.
26026
26027 2003-10-16  Jim Meyering  <jim@meyering.net>
26028
26029         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
26030         memcpy.
26031
26032 2003-10-15  Paul Eggert  <eggert@twinsun.com>
26033
26034         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
26035         (SIZE_MAX): Remove.
26036         (new_exclude, add_exclude_file): Initial size no longer needs to
26037         be a power of 2.
26038         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
26039         our own address arithmetic overflow checking.
26040
26041         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
26042         (fnmatch): Do not alloca more than 2000 wide characters;
26043         instead, use malloc for large buffers.
26044         Check for address arithmetic overflow, and return -1
26045         with errno set to ENOMEM in that case.
26046         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
26047         (NEW_PATTERN): Do not alloca more than 8000 bytes;
26048         instead, return -1.  Check for address arithmetic overflow.
26049
26050 2003-10-14  Paul Eggert  <eggert@twinsun.com>
26051
26052         Handle invalid suffixes and overflow independently, so that
26053         callers can treat them independently as needed.  Fix some bugs in
26054         suffix handling, e.g., "100k@" was not diagnosed as an invalid
26055         suffix for a human-readable blocksize.  The major caller-visible
26056         change is the addition of a new
26057         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
26058         that both overflow and suffix chars were found.
26059
26060         * lib/human.c (humblock): Don't check separately for invalid suffix
26061         char; that is xstrtoumax's job (now that its bug is fixed).
26062         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
26063         INTMAX_MAX]: New macros.
26064         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
26065         TYPE_MAXIMUM): New macros.
26066         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
26067         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
26068         if overflow occurs, as it's what __strtol does and it's more useful
26069         in practice.
26070         (__xstrtol): If __strtol reports some error other than ERANGE,
26071         reflect it to the caller as LONGINT_INVALID.  If it reports
26072         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
26073         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
26074         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
26075         value.
26076         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
26077         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
26078         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
26079         [defined UINTMAX_MAX]: New macros.
26080
26081 2003-10-14  Bruno Haible  <bruno@clisp.org>
26082
26083         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
26084
26085 2003-10-14  Bruno Haible  <bruno@clisp.org>
26086
26087         * m4/sig_atomic_t: New file, from GNU gettext.
26088         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
26089
26090 2003-10-14  Bruno Haible  <bruno@clisp.org>
26091
26092         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
26093         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
26094         Also use volatile where needed.
26095
26096 2003-10-12  Paul Eggert  <eggert@twinsun.com>
26097
26098         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
26099         Change maintainer from Bruno Haible to 'all'.
26100
26101 2003-10-12  Paul Eggert  <eggert@twinsun.com>
26102
26103         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
26104
26105 2003-10-12  Paul Eggert  <eggert@twinsun.com>
26106
26107         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
26108         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
26109         and define in terms of the other primitives.
26110         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
26111         (SIZE_MAX): Define if not already defined.
26112         (array_size_overflow): New function.
26113         (xalloc_die): Abort instead of exiting if 'error' returns.
26114         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
26115         (xmalloc, xrealloc): Use them.
26116         (xcalloc): Check for address arithmetic overflow.
26117         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
26118         a bit faster than strcpy.
26119
26120 2003-10-10  Simon Josefsson  <jas@extundo.com>
26121
26122         * modules/argp (Depends-on): Add restrict and strcase.
26123
26124 2003-10-10  Simon Josefsson  <jas@extundo.com>
26125
26126         * m4/argp.m4: Add AC_C_INLINE.
26127
26128 2003-10-08  Paul Eggert  <eggert@twinsun.com>
26129
26130         Merge getpass from libc, plus a few fixes.
26131
26132         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
26133         Include <stdbool.h>.
26134         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
26135         __fsetlocking to empty.
26136         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
26137         do include <bits/libc-lock.h>.
26138         Do not include <fcntl.h>; not needed.
26139         [_LIBC]: Include <wchar.h>.
26140         (NOTCANCEL_MODE): New macro.
26141         (flockfile, funlockfile) [_LIBC]: New macros.
26142         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
26143         [!_LIBC]: New macros.
26144         (call_fclose): New function.
26145         (getpass): Use it.  Save tty stream separately; this simplifies the
26146         code and makes it more reliable if stdin happens to equal stdout.
26147         Invoke __fsetlocking on tty.
26148         Handle thread cancellation if needed.
26149         Namespace cleanup (use __tcgetattr, __getline).
26150         Use bool for Booleans.
26151         [USE_IN_LIBIO]: Handle wide streams.
26152         [!_LIBC]: Unconditionally do the fseek, since we don't know what
26153         stream might go where.
26154
26155         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
26156         doesn't have to include <stdio.h> before us.
26157         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
26158         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
26159         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
26160         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
26161         if not declared, so that we can use getpass.c code from libc without
26162         rewriting it.
26163         (flockfile, ftrylockfile, funlockfile): New macros.
26164
26165 2003-10-08  Paul Eggert  <eggert@twinsun.com>
26166
26167         * modules/getpass: Depend on stdbool.
26168
26169 2003-10-08  Paul Eggert  <eggert@twinsun.com>
26170
26171         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
26172
26173 2003-10-07  Karl Berry  <karl@gnu.org>
26174
26175         * config/config.{guess,sub}: update from config.
26176
26177 2003-10-06  Jim Meyering  <jim@meyering.net>
26178             Bruno Haible  <bruno@clisp.org>
26179
26180         This lets translators provide better translations for the
26181         "Written by ..." part of --version output.
26182         * lib/version-etc.h: Include stdarg.h.
26183         (version_etc_copyright): Declare as readonly.
26184         (version_etc): Make this function variadic with a NULL-terminated list
26185         of author name strings.
26186         (version_etc_va): New declaration.
26187         * lib/version-etc.c: Include stdarg.h, stdlib.h.
26188         (version_etc_copyright): Declare as readonly.
26189         (version_etc_va): New function. Provide a different translatable string
26190         for each possible number of authors < 10. Abbreviate when there are 10
26191         authors or more.
26192         (version_etc): Make this function variadic. Call version_etc_va.
26193         Suggestion from Gary V. Vaughan.
26194
26195         * lib/long-options.h (parse_long_options): Change prototype: the
26196         authors string is moved to the end and becomes variadic.
26197         * lib/long-options.c: Include stdarg.h.
26198         (parse_long_options): Make this function variadic, too.
26199         Call version_etc_va, not version_etc.
26200
26201 2003-10-06  Bruno Haible  <bruno@clisp.org>
26202
26203         * modules/version-etc-2: Remove file.
26204         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
26205
26206 2003-10-06  Bruno Haible  <bruno@clisp.org>
26207
26208         * modules/fatal-signal: New file.
26209         * MODULES.html.sh (func_all_modules): Add fatal-signal.
26210
26211 2003-10-06  Bruno Haible  <bruno@clisp.org>
26212
26213         * m4/fatal-signal.m4: New file.
26214         * m4/signalblocking.m4: New file, from GNU gettext.
26215
26216 2003-10-06  Bruno Haible  <bruno@clisp.org>
26217
26218         * lib/version-etc-2.h: Remove file.
26219         * lib/version-etc-2.c: Remove file.
26220
26221 2003-10-06  Bruno Haible  <bruno@clisp.org>
26222
26223         * lib/fatal-signal.h: New file, from GNU gettext.
26224         * lib/fatal-signal.c: New file, from GNU gettext.
26225
26226 2003-10-05  Paul Eggert  <eggert@twinsun.com>
26227
26228         * README: Rework advice for preventing empty .o files.
26229         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
26230         not <sys/types.h>.
26231
26232 2003-10-04  Karl Berry  <karl@gnu.org>
26233
26234         * lib/argp*: update from libc.
26235
26236 2003-10-04  Karl Berry  <karl@gnu.org>
26237
26238         * config/config.{guess,sub}: update from config.
26239
26240 2003-10-02  Bruno Haible  <bruno@clisp.org>
26241
26242         * modules/lchown (Include): Add lchown.h.
26243         * modules/time_r (Include): Use "..." syntax.
26244         * modules/xgetdomainname (Include): Add xgetdomainname.h.
26245
26246 2003-10-01  Simon Josefsson  <jas@extundo.com>
26247
26248         * MODULES.html.sh (func_all_modules): Move gethostname from section
26249         'based on' to section 'lacking' POSIX:2001.
26250
26251 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
26252
26253         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
26254         to output mode on the same stream.
26255
26256 2003-09-29  Paul Eggert  <eggert@twinsun.com>
26257
26258         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
26259         Fix arg typo in previous patch.
26260
26261 2003-09-28  Jim Meyering  <jim@meyering.net>
26262
26263         * lib/error.c: Correct cpp indentation.
26264
26265 2003-09-27  Paul Eggert  <eggert@twinsun.com>
26266
26267         * modules/free: New file.
26268
26269 2003-09-27  Paul Eggert  <eggert@twinsun.com>
26270
26271         * m4/free.m4: New file.
26272
26273 2003-09-27  Paul Eggert  <eggert@twinsun.com>
26274
26275         * lib/minmax.h (MIN, MAX)
26276         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
26277         Omit the special code that used __typeof__, since we worry that
26278         it could be more trouble than it's worth.  See:
26279         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
26280         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
26281
26282         * lib/free.c: New file.
26283
26284 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
26285
26286         Trivial fixes to Makefile.am parts of module listings.
26287         * modules/strstr: Append strstr.h to lib_SOURCES.
26288         * modules/strcase: Likewise, for strcase.h.
26289
26290 2003-09-27  Karl Berry  <karl@gnu.org>
26291
26292         * config/mkinstalldirs: update from automake.
26293
26294 2003-09-26  Paul Eggert  <eggert@twinsun.com>
26295
26296         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
26297         (error_tail): Do not loop, reallocating temporary buffer, since
26298         the output cannot contain more wide characters than the input
26299         contains bytes, the size must be big enough already.  This avoids
26300         one potential size overflow calculation.  Check for size overflow
26301         when calculating temporary buffer size.  Free temporary buffer
26302         when done, if it was allocated with malloc; this plugs a memory
26303         leak.  Remove casts from void * to pointers, that are no longer
26304         needed now that we're assuming C89 or better.
26305
26306         Merge error changes from glibc.
26307
26308         * lib/error.c, error.h: Update copyright notice header to match glibc.
26309         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
26310         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
26311         Disable cancellation while printing error.
26312         * lib/error.h: Prepend __ to parameter names.
26313
26314 2003-09-26  Jim Meyering  <jim@meyering.net>
26315
26316         * lib/error.c (error_tail): Move some declarations
26317         into inner scope where the local variables are used.
26318
26319 2003-09-26  Bruno Haible  <bruno@clisp.org>
26320
26321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
26322         stpncpy().
26323         Don't define stpncpy through config.h; it's now done through stpncpy.h.
26324
26325 2003-09-26  Bruno Haible  <bruno@clisp.org>
26326
26327         * lib/stpncpy.h (gnu_stpncpy): New declaration.
26328         (stpncpy): Define as alias for gnu_stpncpy.
26329         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
26330
26331 2003-09-25  Simon Josefsson  <jas@extundo.com>
26332
26333         * lib/xgetdomainname.h: New file.
26334         * lib/xgetdomainname.c: New file.
26335
26336 2003-09-25  Simon Josefsson  <jas@extundo.com>
26337             Bruno Haible  <bruno@clisp.org>
26338
26339         * modules/getdomainname: New file.
26340         * modules/xgetdomainname: New file.
26341         * MODULES.html.sh (func_all_modules): Add getdomainname,
26342         xgetdomainname.
26343
26344 2003-09-25  Simon Josefsson  <jas@extundo.com>
26345             Bruno Haible  <bruno@clisp.org>
26346
26347         * m4/getdomainname.m4: New file.
26348
26349 2003-09-25  Simon Josefsson  <jas@extundo.com>
26350             Bruno Haible  <bruno@clisp.org>
26351
26352         * lib/getdomainname.h: New file.
26353         * lib/getdomainname.c: New file.
26354
26355 2003-09-25  Karl Berry  <karl@gnu.org>
26356
26357         * lib/argp-fmtstream.c, argp-help.c: update from libc.
26358
26359 2003-09-25  Karl Berry  <karl@gnu.org>
26360
26361         * config/install-sh: update from automake.
26362
26363 2003-09-25  Bruno Haible  <bruno@clisp.org>
26364
26365         * modules/version-etc-2: New file, from modules/version-etc with
26366         modifications.
26367         * MODULES.html.sh (func_all_modules): Add version-etc-2.
26368
26369 2003-09-25  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
26372         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
26373
26374 2003-09-24  Simon Josefsson  <jas@extundo.com>
26375
26376         * modules/xgethostname: Add xgethostname.h.
26377
26378 2003-09-24  Paul Eggert  <eggert@twinsun.com>
26379
26380         * lib/linebuffer.c (freebuffer): Don't free the argument, just
26381         the buffer associated with the argument.  Bug reported by
26382         Simon Josefsson.
26383
26384 2003-09-24  Paul Eggert  <eggert@twinsun.com>
26385
26386         * README: Document assumptions that 'int' is at least 32 bits
26387         wide, that integer arithmetic is 2's complement without overflow,
26388         that there are no holes in integer values, that adding sizes of
26389         two nonoverlapping objects can't overflow, and that all-bits-zero
26390         yields scalar zero.  Fix spelling and capitalization typos.
26391
26392 2003-09-19  Karl Berry  <karl@gnu.org>
26393
26394         * lib/argp.h: update from libc.
26395
26396 2003-09-17  Paul Eggert  <eggert@twinsun.com>
26397
26398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
26399         to avoid spurious warnings like "AC_RUN_IFELSE was called before
26400         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
26401
26402 2003-09-17  Paul Eggert  <eggert@twinsun.com>
26403
26404         * gnulib-tool: Use "test -h", not "test -L", for portability
26405         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
26406         (tags_regexp): Remove, since \| doesn't conform to POSIX.
26407         (sed_extract_prog): Issue s commands one-by-one, rather than
26408         using \| in one s command.
26409
26410 2003-09-16  Paul Eggert  <eggert@twinsun.com>
26411
26412         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
26413         input error, instead of returning NULL the next time we are called
26414         (and therefore losing track of errno).
26415
26416 2003-09-16  Bruno Haible  <bruno@clisp.org>
26417
26418         * gnulib-tool (func_create_testdir): Warn about duplicated
26419         dependencies.
26420
26421 2003-09-15  Paul Eggert  <eggert@twinsun.com>
26422
26423         * modules/argmatch, modules/fatal, modules/obstack,
26424         modules/xalloc, modules/xgethostname: Sort dependencies by
26425         importance, not alphabetically.
26426
26427 2003-09-15  Paul Eggert  <eggert@twinsun.com>
26428
26429         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
26430         fails, so that the caller gets the proper errno.
26431
26432         * lib/readutmp.c (read_utmp): Likewise.
26433         Check for fstat error.  Close stream and free storage
26434         when failing.
26435
26436 2003-09-14  Karl Berry  <karl@gnu.org>
26437
26438         * config/srclist.txt (strdup.c): disable for c89 changes.
26439
26440 2003-09-14  Jim Meyering  <jim@meyering.net>
26441
26442         * lib/getloadavg.c: Correct cpp indentation.
26443         * lib/strdup.c: Likewise.
26444         * lib/vasnprintf.c: Likewise.
26445
26446 2003-09-14  Bruno Haible  <bruno@clisp.org>
26447
26448         * modules/fwriteerror: New file.
26449         * MODULES.html.sh (func_all_modules): Add fwriteerror.
26450
26451 2003-09-14  Bruno Haible  <bruno@clisp.org>
26452
26453         * lib/fwriteerror.h: New file.
26454         * lib/fwriteerror.c: New file.
26455
26456 2003-09-12  Paul Eggert  <eggert@twinsun.com>
26457
26458         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
26459         modules/xgethostname, modules/xalloc: Depend on exit.
26460
26461 2003-09-12  Paul Eggert  <eggert@twinsun.com>
26462
26463         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
26464
26465         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
26466         and AC_MINIX, too, so that their extensions are available.
26467
26468         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
26469         This macro has been superseded by gl_BACKUPFILE.
26470
26471         More patches to assume C89 or better.
26472
26473         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
26474
26475         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
26476         unconditionally.
26477         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
26478         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
26479         Include <string.h>, <stdlib.h> unconditionally.
26480         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
26481         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
26482         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
26483         headers or for string.h.
26484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
26485         or strtoul.
26486
26487         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
26488         headers.
26489         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
26490         * m4/userspec.m4 (gl_USERSPEC): Likewise.
26491         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
26492         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
26493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26494         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
26495         memcpy, memset.
26496         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
26497         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
26498         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
26499         strtol.
26500         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
26501         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
26502         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
26503         strtoul.
26504
26505 2003-09-12  Paul Eggert  <eggert@twinsun.com>
26506
26507         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
26508         * lib/obstack.c [!defined _LIBC]: Likewise.
26509         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
26510         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
26511         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
26512
26513         More changes to assume C89 or better.
26514
26515         * lib/error.c (error_tail): Assume vprintf.
26516
26517         * lib/argmatch.c (getenv): Remove decl.
26518         * lib/progreloc.c (get_full_program_name): Define via prototype.
26519         * lib/setenv.c (clearenv): Likewise.
26520         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
26521         needed.
26522         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
26523         (malloc, memcpy): Remove decls.
26524         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
26525         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
26526         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
26527         (memcpy): Remove macro.
26528         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
26529         (__P): Remove.  All uses removed.
26530         (PTR): Remove.  All uses changed to void *.
26531         (CHAR_BIT, NULL): Remove.
26532         (spaces, zeros, memset_space, memset_zero)
26533         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
26534         Remove.
26535         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
26536         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
26537         Define with prototype.
26538         Remove now-unnecessary prototype decl.
26539         (extra_args_spec): Assume ANSI C.  All uses changed.
26540         (extra_args_spec_iso): Remove.
26541         (my_strftime, emacs_strftimeu): Define via prototype.
26542         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
26543         unconditionally.
26544         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
26545         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
26546         (strtoul, strtol): Remove decls.
26547         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
26548         LONG_MAX): Remove.
26549         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
26550         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
26551         (LOCALE_PARAM_PROTO): New macro.
26552         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
26553         (INTERNAL (strtol), strtol): Define with a prototype.
26554         (PARAMS): Remove.  All uses removed.
26555         * lib/tempname.c: Include <string.h> unconditionally.
26556         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
26557         * lib/xgethostname.c (main): Define with a prototype.
26558         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
26559         Include <stdlib.h> unconditionally.
26560         (calloc, malloc, realloc, free): Remove decls.
26561         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
26562         Include <stdlib.h> unconditionally.  Sort include file names.
26563         (strtod): Remove.
26564         (xstrtod): Define with a prototype.
26565         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
26566         (strtol, strtoul): Remove decls.
26567
26568 2003-09-11  Paul Eggert  <eggert@twinsun.com>
26569
26570         More patches to assume C89 or better.
26571         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
26572         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
26573         string.h, memchr, STDC_HEADERS.
26574
26575 2003-09-11  Paul Eggert  <eggert@twinsun.com>
26576
26577         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
26578         Include <stdlib.h>, <string.h> unconditionally.
26579         Remove now-unnecessary cast to char *.
26580         * lib/strnlen.c: Include <string.h> unconditionally.
26581         * lib/yesno.c (yesno): Define with a prototype.
26582
26583 2003-09-11  Bruno Haible  <bruno@clisp.org>
26584
26585         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
26586
26587 2003-09-10  Jim Meyering  <jim@meyering.net>
26588
26589         * lib/error.c: Correct indentation of cpp directives.
26590
26591 2003-09-10  Bruno Haible  <bruno@clisp.org>
26592
26593         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
26594         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
26595         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
26596         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
26597         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
26598         <stdlib.h> and <string.h> checks.
26599         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
26600         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
26601
26602 2003-09-10  Bruno Haible  <bruno@clisp.org>
26603
26604         * lib/strcspn.c: Include <string.h> unconditionally.
26605         * lib/strpbrk.c: Include <string.h> unconditionally.
26606         * lib/strstr.c: Include <string.h> unconditionally.
26607         * lib/unicodeio.c: Include <string.h> unconditionally.
26608         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
26609         * lib/unsetenv.c: Likewise.
26610         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
26611         * lib/yesno.c: Include <stdlib.h> unconditionally.
26612         (rpmatch): Add prototype.
26613
26614 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26615
26616         More patches to assume C89 or better.
26617         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
26618         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
26619         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
26620         or for string.h.
26621         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
26622         stdlib.h.
26623         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
26624         C headers.
26625         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
26626         string.h.
26627         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
26628         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
26629         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
26630         or for string.h.
26631         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
26632         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
26633         C headers.
26634         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
26635         memcpy.
26636         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
26637         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
26638         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
26639         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
26640         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
26641         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
26642         string.h, free.
26643         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
26644         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
26645         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
26646         C headers, or for string.h.
26647         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
26648         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
26649         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
26650         headers, memory.h, stdlib.h, string.h, strings.h.
26651         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
26652         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
26653         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
26654         strchr.
26655         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
26656         headers, memory.h, string.h.
26657         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
26658         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
26659         free.
26660         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
26661         headers.
26662         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
26663         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
26664         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
26665         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
26666         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
26667
26668 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26669
26670         More K&R removal.
26671
26672         * lib/acosl.c (main): Use a prototype.
26673         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
26674         tanl.c: Likewise.
26675
26676         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
26677
26678         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
26679         (getopt, etopt_long, getopt_long_only, _getopt_internal)
26680         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
26681         with a prototype.
26682         * lib/getopt.c (const): Remove macro.
26683         Include <string.h> unconditionally.
26684         (my_index): Remove; all uses changed to strchr.
26685         (strlen): Remove decl.
26686         (exchange): Remove forward decl; no longer needed.
26687         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
26688         Define with prototype.
26689         * lib/getopt1.c (const): Remove macro.
26690         (getopt_long, getopt_long_only, main): Define with prototype.
26691
26692         * lib/getugroups.c: Include <string.h> unconditionally.
26693
26694         * lib/getusershell.c: Include <stdlib.h> unconditionally.
26695         (getusershell, setusershell, endusershell, readname, main):
26696         Define with prototypes.
26697
26698         * lib/group-member.c: Include group-member.h first.
26699         Include <stdlib.h> unconditionally.
26700
26701         * lib/hard-locale.c: Include hard-locale.h first.
26702         Include <stdlib.h>, <string.h> unconditionally.
26703
26704         * lib/hash.c (free, malloc): Remove decls.
26705         Include <stdlib.h> unconditionally.
26706
26707         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
26708         (getenv): Do not declare.
26709
26710         * lib/idcache.c: Include <string.h> unconditionally.
26711
26712         * lib/long-options.c: Include long-options.h first, to test interface.
26713         Include <stdlib.h> unconditionally.
26714
26715         * lib/makepath.c: Include makepath.h first, to test interface.
26716         Include <stdlib.h> and <string.h> unconditionally.
26717
26718         * lib/linebuffer.c: Include <stdlib.h>.
26719         (free): Remove decl.
26720
26721         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
26722         stddef.h. rpl_malloc returns void *, not char *.
26723         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
26724         prototype.
26725
26726         * lib/md5.h: Include <limits.h> unconditionally.
26727         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
26728         (__P): Remove; all uses removed.
26729         * lib/md5.c: Include "md5.h" first.
26730         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
26731         md5_buffer, md5_process_bytes, md5_process_block):
26732         Define with prototypes.
26733         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
26734         * lib/sha.c: Include "sha.h" first.
26735         Include <stdlib.h>, <string.h> unconditionally.
26736
26737         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
26738         * lib/memcmp.c (__ptr_t): Likewise.
26739         * lib/memrchr.c (__ptr_t): Likewise.
26740         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
26741         Include <string.h> unconditionally.
26742         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
26743         * lib/memchr.c: Include <stdlib.h> unconditionally.
26744         * lib/memchr.c (LONG_MAX): Remove.
26745         * lib/memrchr.c (LONG_MAX): Likewise.
26746         * lib/memchr.c (__memchr): Define via a prototype.
26747         * lib/memrchr.c (__memrchr): Likewise.
26748         * lib/memcmp.c (__P): Remove, and remove all uses.
26749         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
26750         Remove forward decls; no longer needed.
26751         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
26752         Use types required by C89 in prototype.
26753
26754         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
26755         * lib/savedir.c: Likewise.
26756         * lib/mkdir.c (free): Remove decl.
26757         * lib/rmdir.c (rmdir): Define with a prototype.
26758         * lib/savedir.c: Include savedir.h first, to test interface.
26759
26760         * lib/mktime.c (STDC_HEADERS): Remove.
26761         Include <stdlib.h>, <string.h> unconditionally.
26762
26763         * lib/modechange.c: Include <stdlib.h> unconditionally.
26764         (malloc): Remove decl.
26765
26766         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
26767         (free): Remove decl.
26768
26769         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
26770         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
26771         (This type really should be intptr_t, but that's a C99ism.)
26772         (_obstack_memcpy): Remove: all uses changed to memcpy.
26773         Include <string.h> unconditionally.
26774         (struct obstack): Assume __STDC__ for types of members
26775         chunkfun, freefun, extra_arg.
26776         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
26777         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
26778         obstack_begin, obstack_specify_allocation,
26779         obstack_specify_allocation_with_arg, obstack_chunkfun,
26780         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
26781         Remove unprototyped decls and the macros that use them.
26782         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
26783         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
26784         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
26785         (defined __STDC__ && __STDC__)]:
26786         Remove nonprototyped code.
26787         Include <stdlib.h> unconditionally.
26788         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
26789         _obstack_allocated_p, _obstack_free, obstack_free,
26790         _obstack_memory_used, print_and_abort):
26791         Define using prototypes.
26792         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
26793         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
26794         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
26795         obstack_next_free, obstack_object_size, obstack_room) [0]:
26796         Remove unused, unprototyped code.
26797
26798         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
26799
26800         * lib/physmem.c (physmem_total, physmem_available, main): Define
26801         with prototypes.
26802
26803         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
26804         (main): Define with a prototype.
26805
26806         * lib/posixver.c (getenv): Remove decl.
26807
26808         * lib/putenv.c (malloc): Returns void *, not char *.
26809         Include <string.h> unconditionally.
26810         (strchr, memcpy, NULL): Do not define.
26811
26812         * lib/readtokens.c: Include readtokens.h first, to test interface.
26813         Include <stdlib.h>, <string.h> unconditionally.
26814         (init_tokenbuffer): Define with a prototype.
26815
26816         * lib/regex.c (PARAMS): Remove.  All uses removed.
26817         All uses of _RE_ARGS removed, too.
26818         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
26819         unconditionally.
26820         (bzero): Assume memset exists.
26821         (memcmp, memcpy, NULL): Remove.
26822         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
26823         char, or assignments to local vars of type signed char.
26824         (init_syntax_once, PREFIX(extract_number_and_incr),
26825         PREFIX(print_partial_compiled_pattern),
26826         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
26827         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
26828         PREFIX(regex_grow_registers), PREFIX(regex_compile),
26829         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
26830         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
26831         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
26832         wcs_compile_range, byte_compile_range, truncate_wchar,
26833         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
26834         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
26835         count_mbs_length, wcs_re_match_2_internal,
26836         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
26837         PREFIX(alt_match_null_string_p),
26838         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
26839         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
26840         regfree, PREFIX(extract_number)): Define with prototype.  Remove
26841         now-unnecessary declaration, if any.
26842         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
26843         regcomp, regexec):
26844         Remove now-unnecessary casts among pointer types.
26845         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
26846
26847         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
26848         (free): Remove decl.
26849
26850         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
26851
26852         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
26853         (free): Remove decl.
26854
26855         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
26856         * lib/xgetcwd.c: Likewise.
26857
26858         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
26859         (free): Remove decl.
26860
26861         * lib/strchrnul.c (strchrnul): Define with a prototype.
26862         Fix bug: c_in was not converted to char before searching.
26863
26864         The following changes are not K&R related:
26865
26866         * lib/group-member.h: Include <sys/types.h>, so that this file is
26867         self-contained.
26868         * lib/makepath.h: Likewise.
26869
26870         * lib/getusershell.c (readname, default_index, line_size, readname):
26871         Use size_t, not int, for sizes.
26872         (readname): If the size overflows, report an error instead of
26873         looping forever.
26874
26875 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26876
26877         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
26878         libc.
26879
26880 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26881
26882         * README: New section: portability guidelines.
26883
26884 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
26885
26886         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
26887         C89 spec.
26888
26889 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
26890
26891         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
26892
26893 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26894
26895         Assume C89 or better; remove K&R cruft.
26896         A few of these changes were first proposed by Derek Robert Price
26897         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
26898
26899         * lib/addext.c: Include <string.h> unconditionally.
26900         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
26901         Don't declare getenv or malloc.
26902
26903         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
26904         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
26905         (NULL): Remove.
26906         (find_stack_direction, alloca): Use prototypes.
26907
26908         * lib/atexit.c (atexit): Define using a prototype.
26909
26910         * lib/basename.c, dirname.c, stripslash.c:
26911         Include <string.h> unconditionally.
26912
26913         * lib/bcopy.c: Include <stddef.h>.
26914         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
26915
26916         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
26917
26918         * lib/error.h (error, error_at_line, error_print_progname)
26919         [! (defined (__STDC__) && __STDC__)]: Remove decls.
26920         * lib/error.c: Include error.h first, to check interface.
26921         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
26922         (VA_START): Remove; all uses changeed to va_start.
26923         (exit, strerror): Remove decls.
26924         (error_print_progname): Prototype uncondionally.
26925         Don't include <errno.h>; no longer needed.
26926         (private_strerror): Remove.
26927         (error_tail): Always define.
26928         (error, error_at_line): Assume C89 or better; always use prototypes.
26929         * lib/fatal.c: Include "fatal.h" first, to test interface.
26930         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
26931         (VA_START): Remove; all uses changed to va_start.
26932         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
26933         this case.
26934         (exit): Remove decl.
26935         (fatal): Prototype unconditionally.  Assume va_start works.
26936         Abort at end, to pacify gcc.
26937
26938         * lib/euidaccess.c (main): Define with a prototype.
26939
26940         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
26941
26942         * lib/exitfail.c: Include <stdlib.h> unconditionally.
26943
26944         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
26945         prototypes.
26946         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
26947         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
26948         (getenv): Remove decl.
26949         (fnmatch): Define using a prototype.
26950         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
26951         (FCT): Define using a prototype.
26952
26953         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
26954
26955         * lib/gethostname.c: Include <stddef.h>.
26956         (gethostname): Define with prototype.  Length is size_t, not int.
26957
26958 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26959
26960         Assume C89 or better; remove K&R cruft.
26961         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
26962         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
26963         string.h, getenv, malloc.
26964         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
26965         headers.
26966         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
26967         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
26968         do not check for strerror.
26969         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
26970         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
26971         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
26972         do not check for doprnt or vprintf.
26973         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
26974         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
26975
26976 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26977
26978         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
26979         getversion.c should have been removed then, but was accidentally
26980         preserved.
26981
26982         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
26983         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
26984
26985 2003-09-08  Karl Berry  <karl@gnu.org>
26986
26987         * config/config.sub, config.guess, srclistvars.sh: update from savannah
26988                 config, forget about prep.
26989
26990         * config/depcomp, missing: update from automake.
26991
26992 2003-09-07  Paul Eggert  <eggert@twinsun.com>
26993
26994         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
26995         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
26996
26997 2003-09-07  Paul Eggert  <eggert@twinsun.com>
26998
26999         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
27000         copy_tm_result.  Bug reported by Simon Josefsson in
27001         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
27002
27003 2003-09-06  Paul Eggert  <eggert@twinsun.com>
27004
27005         * m4/time_r.m4: New file.
27006         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
27007         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
27008         is. Check for timegm declaration.
27009         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
27010         Do not check for gmtime_r.
27011         Replace mktime if __mktime_internal does not exist and if mktime
27012         hasn't been replaced already.
27013
27014 2003-09-06  Paul Eggert  <eggert@twinsun.com>
27015
27016         * lib/time_r.c, lib/time_r.h: New files.
27017
27018         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
27019         __localtime_r.
27020         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
27021         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
27022
27023         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
27024         __gmtime_r.
27025         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
27026         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
27027         Include <time_r.h>.
27028
27029         * lib/timegm.c: Switch to glibc implementation, with the following
27030         changes:
27031         [defined HAVE_CONFIG_H]: Include <config.h>.
27032         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
27033         (__mktime_internal) [!defined _LIBC]: New decl.
27034         (__gmtime_r) [!defined _LIBC]: New macro and function.
27035         (timegm): Use a prototype, since gnulib assumes C89.
27036         Do not bother declaring tmp to be const, as it's not really usefu.
27037         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
27038         (timegm): Declare only if HAVE_DECL_TIMEGM.
27039
27040 2003-09-06  Paul Eggert  <eggert@twinsun.com>
27041
27042         * MODULES.html.sh (func_all_modules): Add time_r.
27043         * modules/time_r: New file.
27044         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
27045         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
27046
27047 2003-09-03  Paul Eggert  <eggert@twinsun.com>
27048
27049         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
27050         Bug reported by Lute Kamstra in
27051         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
27052
27053         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
27054         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
27055         course with correspondingly smaller numbers for tomorrow and
27056         yesterday.  From Tadayoshi Funaba.  Originally installed into
27057         sh-utils on 1999-08-07, but the patch got lost (I guess during the
27058         coreutils merge?).
27059
27060 2003-08-31  Simon Josefsson  <jas@extundo.com>
27061
27062         * modules/timegm: New file.
27063         * MODULES.html.sh (func_all_modules): Add timegm.
27064
27065 2003-08-31  Simon Josefsson  <jas@extundo.com>
27066
27067         * m4/timegm.m4: New file.
27068
27069 2003-08-31  Simon Josefsson  <jas@extundo.com>
27070
27071         * lib/timegm.h: New file.
27072         * lib/timegm.c: New file.  Based on
27073         wget-1.8.2/src/http.c:mktime_from_utc.
27074
27075 2003-08-31  Karl Berry  <karl@gnu.org>
27076
27077         * lib/argp.h: update from libc.
27078
27079 2003-08-28  Bruno Haible  <bruno@clisp.org>
27080
27081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
27082         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
27083         followed by '#define fnmatch fnmatch_posix' gives an error.
27084
27085 2003-08-28  Bruno Haible  <bruno@clisp.org>
27086
27087         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
27088         warning on QNX, which defines O_BINARY to 000000.
27089
27090 2003-08-27  Jim Meyering  <jim@meyering.net>
27091
27092         * m4/mkstemp.m4: Require that the system mkstemp be able to create
27093         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
27094         would fail after 32.  Reported by Danny Levinson.  Details here:
27095         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
27096
27097 2003-08-24  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
27100         MSVC7 <stdio.h> is included later.
27101
27102 2003-08-22  Simon Josefsson  <jas@extundo.com>
27103
27104         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
27105
27106 2003-08-20  Karl Berry  <karl@gnu.org>
27107
27108         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
27109
27110 2003-08-20  Bruno Haible  <bruno@clisp.org>
27111
27112         * modules/progname: New file.
27113         * MODULES.html.sh (func_all_modules): Add progname.
27114
27115 2003-08-20  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/progname.h: New file, from GNU gettext.
27118         * lib/progname.c: New file, from GNU gettext.
27119         * lib/progreloc.c: New file, from GNU gettext.
27120
27121 2003-08-19  Jim Meyering  <jim@meyering.net>
27122
27123         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
27124         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
27125
27126 2003-08-19  Bruno Haible  <bruno@clisp.org>
27127
27128         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
27129         more.
27130
27131 2003-08-19  Bruno Haible  <bruno@clisp.org>
27132
27133         * lib/xstrdup.c: Assume <string.h> exists.
27134
27135 2003-08-18  Paul Eggert  <eggert@twinsun.com>
27136
27137         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
27138         in makefile rules.
27139
27140 2003-08-18  Jim Meyering  <jim@meyering.net>
27141
27142         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
27143         * m4/lib-ld.m4: Likewise.
27144
27145 2003-08-18  Jim Meyering  <jim@meyering.net>
27146
27147         * lib/setenv.h: Indent nested cpp directive.
27148         * lib/vasnprintf.c: Remove trailing blanks.
27149
27150 2003-08-17  Simon Josefsson  <jas@extundo.com>
27151
27152         * modules/xstrndup: New file.
27153         * MODULES.html.sh (func_all_modules): Add xstrndup.
27154
27155 2003-08-17  Simon Josefsson  <jas@extundo.com>
27156
27157         * modules/argp: Fix autoconf macro name. Add more dependencies.
27158
27159 2003-08-17  Simon Josefsson  <jas@extundo.com>
27160
27161         * m4/xstrndup.m4: New file.
27162
27163 2003-08-17  Simon Josefsson  <jas@extundo.com>
27164
27165         * m4/argp.m4: New file.
27166
27167 2003-08-17  Simon Josefsson  <jas@extundo.com>
27168             Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/xstrndup.h: New file.
27171         * lib/xstrndup.c: New file.
27172
27173 2003-08-17  Bruno Haible  <bruno@clisp.org>
27174
27175         * modules/strndup (Files, Include): Add lib/strndup.h.
27176
27177 2003-08-17  Bruno Haible  <bruno@clisp.org>
27178
27179         * modules/euidaccess (Files): Add lib/euidaccess.h.
27180
27181 2003-08-17  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/strndup.h: New file.
27184
27185 2003-08-17  Bruno Haible  <bruno@clisp.org>
27186
27187         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
27188         like AC_GNU_SOURCE.
27189         * modules/extensions (configure.ac): Comment out the invocation of
27190         gl_USE_SYSTEM_EXTENSIONS.
27191
27192 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27193
27194         Merges from coreutils, etc.
27195         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
27196         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
27197         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
27198         fixing a typo.
27199         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
27200         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
27201
27202 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27203
27204         Document merge from coreutils.
27205         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
27206         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
27207         * modules/utime: Add m4/utimes-null.m4.
27208
27209 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27210
27211         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
27212         space, undoing this 2003-08-12 change:
27213         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
27214
27215 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27216
27217         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
27218         strtoul.c from libc, undoing this 2003-08-12 change:
27219         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
27220
27221 2003-08-16  Jim Meyering  <jim@meyering.net>
27222
27223         Merges from coreutils.
27224         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
27225         prefix.  Adjust cache variables similarly.  Create 500 rather than
27226         just 300 files, to exercise bug on Darwin6.5, too.
27227         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
27228         $missing_dir.
27229         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
27230         AM_SYS_POSIX_TERMIOS.
27231         Reported by mkc@mathdogs.com.
27232         Also change use of $am_cv_sys_posix_termios
27233         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
27234         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
27235         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
27236         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
27237         in /proc/mounts until it finds one with matching device number.  This
27238         is unnecessary when the FILE argument *is* a mount point.  No stat call
27239         is necessary in that case.  So, disable the statvfs-testing code on
27240         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
27241         as RedHat bug# 84846.
27242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
27243         to 1MB, so as not to render systems with no stack size limit (e.g.,
27244         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
27245         Include <unistd.h>.  On some systems,
27246         it is required for the definition of _SC_PAGESIZE.
27247
27248 2003-08-16  Jim Meyering  <jim@meyering.net>
27249
27250         Merge from coreutils.
27251         * lib/xstrtoimax.c: #else #if -> #elif.
27252         * lib/xstrtoumax.c: Likewise.
27253
27254 2003-08-16  Jim Meyering  <jim@meyering.net>
27255
27256         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
27257         * m4/utimes.m4: Removed.
27258         * m4/utimes-null.m4: Renamed from utimes.m4.
27259
27260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
27261         to 1MB, so as not to render systems with no stack size limit (e.g.,
27262         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
27263         Include <unistd.h>.  On some systems,
27264         it is required for the definition of _SC_PAGESIZE.
27265
27266 2003-08-16  Jim Meyering  <jim@meyering.net>
27267         and Paul Eggert  <eggert@cs.ucla.edu>
27268
27269         Merges from coreutils, etc.
27270
27271         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
27272         using the latest version from cvs.  This avoids problems with #line
27273         directives using a vendor (Sun) compiler.
27274         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
27275         Don't set GETGROUPS_LIB here; now it's
27276         done via getgroups.m4's wrapper function.
27277         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
27278         rather than just in sh-util/configure.in, so that the
27279         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
27280         same.
27281         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
27282         AC_FUNC_GETLOADAVG where to find getloadavg.c.
27283         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
27284         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
27285         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
27286         Remove code that is now done by the newly-required macros.
27287         Append $(EXEEXT) to DF_PROG.
27288         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
27289         Do not invoke or require the following here,
27290         since prereq.m4 or some gnulib .m4 now does this for us:
27291         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
27292         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
27293         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
27294         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
27295         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
27296         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
27297         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
27298         AC_FUNC_OBSTACK.
27299         Do not replace the following functions, as this is now the job
27300         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
27301         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
27302         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
27303         atexit getpass, strdup, getpagesize.
27304         Replace 'raise'.
27305         Do not check for the following functions, as this is now the job
27306         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
27307         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
27308         setregid.
27309         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
27310         Check for sys/sysctl.h.
27311         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
27312         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
27313         of checking for ssize_t ourselves.
27314
27315         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
27316         Require every macro that gnulib/modules/* suggests for us.
27317         (jm_PREREQ_ADDEXT): New macro.
27318         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
27319         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
27320
27321         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
27322         (gl_PHYSMEM): Use it.
27323         Also check for `table' function.
27324         Check for new headers and functions.
27325         Add check for sys/sysmp.h.
27326         With suggestions from Kaveh Ghazi.
27327         Ignore headers that are present but cannot be compiled.  This
27328         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
27329         C 5.4.
27330
27331 2003-08-15  Paul Eggert  <eggert@twinsun.com>
27332
27333         Document merge from coreutils.
27334         * modules/userspec: Depend on posixver.
27335         * modules/strftime: Depend on tzset.
27336
27337 2003-08-15  Paul Eggert  <eggert@twinsun.com>
27338
27339         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
27340         rather than tab, after '#' in shell-script copyright notices.
27341         Suggested by Bruno Haible.
27342
27343 2003-08-15  Paul Eggert  <eggert@twinsun.com>
27344
27345         * config/srclist-update: Use three spaces, rather than tab, after '#'
27346         in shell-script copyright notices.  Suggested by Bruno Haible.
27347         Remove unnecessary parenthesization in regular expression.
27348
27349 2003-08-15  Jim Meyering  <jim@meyering.net>
27350
27351         Merge from coreutils.
27352         * lib/xgethostname.c: Include <stdlib.h>.
27353         (xghostname): Don't exit for anything other than memory-related
27354         failure; just return NULL.
27355         * lib/userspec.c: Include "posixver.h".
27356         (parse_user_spec): Accept `.' as a separator only
27357         in pre-POSIX-200112 mode.
27358         * lib/strtoimax.c: Use #elif rather than #else #if.
27359         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
27360         Remove function, now that we can rely on a working tzset function.
27361         [!_LIBC]: Ensure that the required autoconf test has been run.
27362         [!defined _NL_CURRENT && HAVE_STRFTIME]:
27363         Use underlying_strftime for %r.
27364         * lib/sha.c: Merge in some clean-up and optimization changes from
27365         glibc.
27366         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
27367         Ensure that it is a multiple of 64.
27368         Rearrange loop exit tests so as to avoid performing an
27369         additional fread after encountering an error or EOF.
27370         * lib/realloc.c: Update copyright date.
27371
27372 2003-08-15  Jim Meyering  <jim@meyering.net>
27373         and Paul Eggert  <eggert@twinsun.com>
27374
27375         Merge from coreutils.
27376         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
27377         member but strut utmpx does not.  Needed for AIX 4.3.3.
27378         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
27379
27380 2003-08-15  Jim Meyering  <jim@meyering.net>
27381         and Paul Eggert  <eggert@cs.ucla.edu>
27382
27383         Merges from coreutils, etc.
27384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
27385         Require gl_FUNC_TZSET_CLOBBER.
27386         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
27387         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
27388         members.
27389
27390 2003-08-14  Paul Eggert  <eggert@twinsun.com>
27391
27392         Help the merge from coreutils.
27393         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
27394         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
27395         * m4/tzset.m4: Use it too.
27396
27397 2003-08-14  Paul Eggert  <eggert@twinsun.com>
27398
27399         * modules/tzset: New file.
27400
27401 2003-08-14  Jim Meyering  <jim@meyering.net>
27402
27403         Merges from coreutils.
27404         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
27405         variable names, rather than @FNMATCH_H@.
27406         * modules/alloca: Likewise for $(ALLOCA_H).
27407
27408         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
27409         the three copies of the literal target, `fnmatch.h'.
27410         * modules/alloca (alloca.h): Likewise.
27411
27412 2003-08-14  Jim Meyering  <jim@meyering.net>
27413
27414         Merge from coreutils.
27415         * m4/tzset.m4: New file.
27416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
27417         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
27418         otherwise, AIX 5.1 systems would end up using the latter.
27419         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
27420         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
27421         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
27422         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
27423
27424 2003-08-14  Jim Meyering  <jim@meyering.net>
27425
27426         Merge from coreutils.
27427         * lib/obstack.h: Whitespace changes.
27428         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
27429         and xcalloc return values.
27430         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
27431         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
27432         hang on OSF/1 5.1 for DIR on both local and remote file systems.
27433         Reported by (and fix confirmed by) Nelson H. F. Beebe.
27434         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27435         error from mntctl.
27436         Use mntctl's return value to drive the entry-processing loop, since
27437         we can't rely on the value of the vmt_length member in the last
27438         entry.  On some systems doing so could result in exhausting
27439         virtual memory.  Based in part on a patch from Mike Jetzer.
27440
27441 2003-08-14  Jim Meyering  <jim@meyering.net>
27442         and Paul Eggert  <eggert@twinsun.com>
27443
27444         Merges from coreutils, plus other fixes.
27445         * lib/physmem.c: Merge in portability changes from gcc/libiberty
27446         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
27447         for credits and details.  Thanks to Kaveh Ghazi for helping
27448         to keep these files in sync.
27449         (ARRAY_SIZE): Define it.
27450         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
27451         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
27452         (memcasecmp): Don't assume size_t fits in unsigned int.
27453         Remove casts and duplicate code.
27454         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
27455         (memcpy): Remove definition.
27456         Merge in some clean-up and optimization changes from glibc.
27457         [BLOCKSIZE]: Move definition to top of file.
27458         Ensure that it is a multiple of 64.
27459         Rearrange loop exit tests so as to avoid performing an
27460         additional fread after encountering an error or EOF.
27461         * lib/md5.h (md5_uintptr): Define.
27462         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
27463         return to the initial working directory.  Preserve errno
27464         for caller.
27465         * lib/idcache.c: Include "xalloc.h".
27466         (xmalloc, xrealloc): Remove decls.
27467         (getuser): Remove casts no longer required in C89.
27468         * lib/human.c: Include stdio.h, for sprintf.
27469         * lib/group-member.c: Include "xalloc.h".
27470         (xmalloc, xrealloc): Remove decls.
27471         (get_group_info): Remove casts no longer required in C89.
27472         * lib/getusershell.c (readname): Remove casts no longer required in
27473         C89.
27474         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
27475         * lib/getline.c: Whitespace fix, from coreutils.
27476
27477 2003-08-13  Paul Eggert  <eggert@twinsun.com>
27478
27479         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
27480         Check for isascii.
27481
27482         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
27483         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
27484         Undo previous (whitespace-only) change.
27485
27486 2003-08-13  Paul Eggert  <eggert@twinsun.com>
27487
27488         * lib/exclude.c: Include <ctype.h>
27489         (IN_CTYPE_DOMAIN): New macro.
27490         (is_space): New fn.
27491         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
27492         and empty lines.
27493
27494         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
27495         Undo previous (whitespace-only) change.
27496
27497 2003-08-13  Paul Eggert  <eggert@twinsun.com>
27498
27499         * config/srclist-update: Change update back to the old behavior,
27500         leaving whitespace alone.  Use one 'sed' command rather than a
27501         pipeline.
27502         (fixlicense): Now a variable, not a function.
27503         (remove_trailing_blanks): Remove.
27504         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
27505         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
27506         Undo previous (whitespace-only) change.
27507
27508 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27509
27510         Merge from coreutils.
27511         * modules/euidaccess: Add lib_SOURCES, include for new
27512         file euidaccess.h
27513
27514 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27515
27516         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
27517         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
27518         Normalize leading white space and remove trailing white space.
27519
27520         Merge from coreutils
27521         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
27522
27523         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
27524         0.12.1.  These files are now being upgraded automatically by
27525         ../config/srclist-update.
27526
27527 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27528
27529         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
27530         Normalize leading white space and remove trailing white space.
27531         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
27532         notice, as per ../config/srclist-update.
27533
27534         Merge from coreutils.
27535         * lib/euidaccess.h: New file.
27536         * lib/euidaccess.c: Include it.
27537         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
27538         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
27539         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
27540
27541 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27542
27543         * config/srclist-update: Add copyright notice.
27544         (remove_id_lines, remove_trailing_blanks): New constants.
27545         (fixfile): Use them to normalize spacing a bit in copied files.
27546         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
27547         Normalize leading white space and remove trailing white space.
27548
27549         * config/texinfo.tex: Sync with texinfo.
27550
27551         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
27552         strtoul.c from libc, to merge coreutils whitespace changes.
27553
27554         * config/srclist.txt: Get the following m4 files from gettext:
27555         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
27556         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
27557         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
27558         wint_t.m4.
27559
27560 2003-08-12  Karl Berry  <karl@gnu.org>
27561
27562         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
27563         been made.
27564
27565 2003-08-11  Paul Eggert  <eggert@twinsun.com>
27566
27567         * modules/gnu-source, m4/gnu-source.m4:
27568         Remove; we're assuming Autoconf 2.54 or later now.
27569         Suggested by Bruno Haible.
27570         * MODULES.html.sh (func_all_modules): Remove gnu-source.
27571
27572 2003-08-11  Bruno Haible  <bruno@clisp.org>
27573
27574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
27575
27576 2003-08-11  Bruno Haible  <bruno@clisp.org>
27577
27578         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
27579         (vasnprintf): Use it instead of wcslen.
27580
27581 2003-08-11  Bruno Haible  <bruno@clisp.org>
27582
27583         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
27584         value to ensure that _Bool promotes to int. Use #define for _Bool when
27585         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
27586
27587 2003-08-10  Karl Berry  <karl@gnu.org>
27588
27589         * lib/regex.h: update from libc (whitespace fix).
27590
27591 2003-08-09  Paul Eggert  <eggert@twinsun.com>
27592
27593         Merge some files from coreutils.  These changes were
27594         originally made by Jim Meyering.
27595         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
27596         many older Unixes require this.
27597         * lib/alloca.c (alloca): Remove cast to argument of free;
27598         no longer needed in C89.
27599         * lib/alloca_.h, regex.h: Fix white space to match
27600         what GNU indent does.
27601
27602 2003-08-09  Paul Eggert  <eggert@twinsun.com>
27603
27604         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
27605         apparently Emacs's Unicode mode got confused before my 2003-08-05
27606         checkin.
27607
27608 2003-08-08  Paul Eggert  <eggert@twinsun.com>
27609
27610         * m4/extensions.m4: New file.
27611         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
27612         Require gl_USE_SYSTEM_EXTENSIONS.
27613         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
27614         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
27615
27616 2003-08-08  Paul Eggert  <eggert@twinsun.com>
27617
27618         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
27619         * modules/extensions, modules/gnu-source: New files.
27620         * modules/timespec, modules/unlocked-io: Depend on extensions.
27621
27622 2003-08-07  Paul Eggert  <eggert@twinsun.com>
27623
27624         * modules/restrict: New file.
27625         * MODULES.html.sh (func_all_modules): Add restrict.
27626         * modules/regex: Depend on restrict.
27627
27628 2003-08-07  Paul Eggert  <eggert@twinsun.com>
27629
27630         * m4/restrict.m4: New file.
27631         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
27632
27633 2003-08-07  Bruno Haible  <bruno@clisp.org>
27634
27635         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
27636         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
27637
27638 2003-08-07  Bruno Haible  <bruno@clisp.org>
27639
27640         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
27641         makes the module 'getndelim2' compatible with the module 'getline'.
27642
27643 2003-08-05  Paul Eggert  <eggert@twinsun.com>
27644
27645         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
27646         byte with "\201" to avoid glitches when editing that source file
27647         with multi-gnome-terminal.
27648
27649 2003-08-05  Paul Eggert  <eggert@twinsun.com>
27650
27651         * lib/bumpalloc.h: Remove.
27652
27653 2003-08-05  Paul Eggert  <eggert@twinsun.com>
27654
27655         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
27656         * modules/bumpalloc: Remove.
27657
27658 2003-08-04  Paul Eggert  <eggert@twinsun.com>
27659
27660         * lib/getloadavg.c: Change copyright notice and spacing to conform to
27661         GNU coding style.
27662
27663         Merge from coreutils.
27664         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
27665         1. From glibc.
27666         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
27667         from Karl Berry, implemented by Jim Meyering.
27668         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
27669         from Dmitry V. Levin.
27670         Remove anachronistic cast of xrealloc.
27671         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
27672         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
27673         type. Otherwise, it wouldn't compile with at least /bin/cc on
27674         ymp-cray-unicos9.0.2.X.
27675         Combine two mostly-identical uses of alloca into one.
27676         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
27677
27678 2003-08-04  Dave Love  <d.love@dl.ac.uk>
27679
27680         [From Emacs.]
27681
27682         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
27683         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
27684         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
27685         obsolete NLIST_NAME_UNION.
27686         [__GNU__]: Undef BSD and FSCALE.
27687         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
27688
27689 2003-08-03  Paul Eggert  <eggert@twinsun.com>
27690
27691         * lib/stdbool_.h (_Bool): Make it signed char, instead of
27692         an enum type, so that it's guaranteed to promote to int.  See:
27693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
27694
27695 2003-08-03  Karl Berry  <karl@gnu.org>
27696
27697         * config/depcomp: update from automake.
27698
27699 2003-07-31  Paul Eggert  <eggert@twinsun.com>
27700
27701         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
27702         (strerror): Don't assume that a printable int fits in 14 bytes.
27703
27704 2003-07-31  Bruno Haible  <bruno@clisp.org>
27705
27706         * modules/getpass-gnu: New file.
27707         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
27708
27709 2003-07-31  Bruno Haible  <bruno@clisp.org>
27710
27711         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
27712
27713 2003-07-24  Karl Berry  <karl@gnu.org>
27714
27715         * config/missing: update from automake.
27716
27717 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
27718             Bruno Haible  <bruno@clisp.org>
27719
27720         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
27721         * lib/getline.c (getline, getdelim): Likewise.
27722         Remove _GNU_SOURCE define; now it's defined in config.h through
27723         m4/getline.m4.
27724
27725 2003-07-23  Karl Berry  <karl@gnu.org>
27726
27727         * config/config.sub: update from prep.
27728
27729 2003-07-22  Paul Eggert  <eggert@twinsun.com>
27730
27731         * modules/xalloc (Depends-on): Add exitfail.
27732         * modules/xmemcoll: Likewise.
27733
27734 2003-07-22  Paul Eggert  <eggert@twinsun.com>
27735
27736         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
27737         over-parenthesization in macros.
27738
27739         Sync with coreutils.
27740
27741         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
27742         required by C99.
27743
27744         Use `exit_failure' for xalloc and xmemcoll instead of their own
27745         private exit-failure variables.
27746         * lib/xalloc.h (xalloc_exit_failure): Remove.
27747         * lib/xmalloc.c: Likewise.  Include exitfail.h.
27748         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
27749         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
27750         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
27751         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
27752
27753 2003-07-20  Jim Meyering  <jim@meyering.net>
27754
27755         * modules/closeout (Depends-on): Add exitfail.
27756         Suggestion from Bruno Haible.
27757
27758 2003-07-19  Karl Berry  <karl@gnu.org>
27759
27760         * config/config.sub: update from prep.
27761
27762 2003-07-18  Paul Eggert  <eggert@twinsun.com>
27763
27764         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
27765         Remove.
27766         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
27767         to test that it can stand by itself.  Include "exitfail.h".
27768         Clients should set exit_failure instead.
27769         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
27770
27771 2003-07-18  Bruno Haible  <bruno@clisp.org>
27772
27773         * modules/getndelim2: New file.
27774         * modules/getline: Share files with module getndelim2.
27775         * modules/getnline: Depend on getndelim2 instead of sharing files with
27776         it. Add getnline.c to lib_SOURCES.
27777         * MODULES.html.sh (func_all_modules): Add getndelim2.
27778
27779 2003-07-18  Bruno Haible  <bruno@clisp.org>
27780
27781         * m4/getndelim2.m4: New file.
27782         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
27783         invoke gl_PREREQ_GETNDELIM2.
27784         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
27785         gl_PREREQ_GETNDELIM2.
27786         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
27787         gl_GETNDELIM2.
27788
27789 2003-07-18  Bruno Haible  <bruno@clisp.org>
27790
27791         * lib/getndelim2.h: New file.
27792         * lib/getndelim2.c: Make into a module of its own. Include config.h,
27793         getndelim2.h.
27794         (getndelim2): Make non-static. Change return type to ssize_t.
27795         * lib/getline.h: Change argument names.
27796         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
27797         * lib/getnline.c: Include getndelim2.h.
27798
27799 2003-07-18  Andreas Schwab  <schwab@suse.de>
27800
27801         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
27802
27803 2003-07-17  Karl Berry  <karl@gnu.org>
27804
27805         * config/config.sub: update from prep.
27806
27807 2003-07-17  Bruno Haible  <bruno@clisp.org>
27808
27809         * modules/getnline: New file.
27810         * modules/getline: Add lib/getndelim2.c to source file list.
27811         * MODULES.html.sh (func_all_modules): Add getnline.
27812
27813 2003-07-17  Bruno Haible  <bruno@clisp.org>
27814
27815         * m4/getnline.m4: New file.
27816
27817 2003-07-17  Bruno Haible  <bruno@clisp.org>
27818
27819         * m4/Makefile.am.in: Remove file.
27820         * m4/Makefile.am: Remove file.
27821         * m4/Makefile.in: Remove file.
27822
27823 2003-07-17  Bruno Haible  <bruno@clisp.org>
27824
27825         * lib/getnline.h: New file.
27826         * lib/getnline.c: New file.
27827         * lib/getndelim2.c: New file, extracted from getline.c.
27828         (getndelim2): Renamed from getdelim2, with added nmax argument.
27829         * lib/getline.c: Include getndelim2.c.
27830         (getdelim2): Moved out to getndelim2.c.
27831         (getline, getdelim): Update.
27832
27833 2003-07-17  Bruno Haible  <bruno@clisp.org>
27834
27835         * lib/Makefile.am: Remove file.
27836         * lib/Makefile.in: Remove file.
27837
27838 2003-07-17  Bruno Haible  <bruno@clisp.org>
27839
27840         * configure.in: Remove file.
27841         * Makefile.in: Remove file.
27842
27843 2003-07-17  Bruno Haible  <bruno@clisp.org>
27844
27845         * MODULES.html.sh: Put the </BODY> right before </HTML>.
27846
27847 2003-07-16  Karl Berry  <karl@gnu.org>
27848
27849         * config/srclist-update: was running fixlicense twice, which caused
27850                 texinfo.tex to be nullified for some reason.  Simplify,
27851                 $gplsrc is no longer needed as far as I can see?
27852
27853 2003-07-16  Jim Meyering  <jim@meyering.net>
27854
27855         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
27856
27857 2003-07-15  Paul Eggert  <eggert@twinsun.com>
27858
27859         * config/srclist.txt: Get the following files from gettext-runtime/intl
27860         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
27861         ref-del.sin.  From Bruno Haible.
27862         * config/srclist-update (fixfile): Change grep pattern again, since the
27863         previous fix didn't work (there was another trailing $).  Use
27864         '[$]' to escape the $s.
27865
27866 2003-07-15  Karl Berry  <karl@gnu.org>
27867
27868         * lib/vasnprintf.c: update from gettext.
27869
27870 2003-07-15  Karl Berry  <karl@gnu.org>
27871
27872         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
27873         gets expanded when surrounded by '$'.
27874
27875 2003-07-15  Jim Meyering  <jim@meyering.net>
27876
27877         * modules/save-cwd: Don't depend on error.  From Derek Price.
27878
27879 2003-07-15  Jim Meyering  <jim@meyering.net>
27880
27881         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
27882
27883 2003-07-14  Simon Josefsson  <jas@extundo.com>
27884
27885         * modules/mempcpy: New file.
27886         * MODULES.html.sh (func_all_modules): Add mempcpy.
27887
27888 2003-07-14  Simon Josefsson  <jas@extundo.com>
27889
27890         * m4/mempcpy.m4: New file.
27891
27892 2003-07-14  Simon Josefsson  <jas@extundo.com>
27893
27894         * lib/mempcpy.h: New file.
27895         * lib/mempcpy.c: New file.
27896
27897 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27898
27899         * modules/getdate, modules/posixtm: Depend on mktime.
27900
27901 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27902
27903         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
27904         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
27905         unicodeio.c, unicodeio.h, unlocked-io.h:
27906         Switch from LGPL to GPL.
27907
27908 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27909
27910         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
27911         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
27912         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
27913         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
27914         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
27915         updated automatically by ../config/srclist-update.  This changes
27916         their license from LPGL to GPL.
27917
27918 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27919
27920         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
27921         assumed to refer to the root of the most recent stable gettext version.
27922         * config/srclistvars.sh: Add defaults for eggert.
27923         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
27924         Match "This program" as well as "The program".  This is needed
27925         for gettext.
27926
27927 2003-07-14  Jim Meyering  <jim@meyering.net>
27928
27929         Don't emit diagnostics.  Let callers do that.
27930         * lib/save-cwd.c: Don't include "error.h".
27931         (save_cwd): Don't call error.  Ensure that errno is valid
27932         when returning nonzero.
27933
27934         * lib/save-cwd.h (restore_cwd): Update prototype.
27935         * lib/save-cwd.c (restore_cwd): Remove two parameters.
27936         Simplify.  Don't call error upon failure.  Let callers do that.
27937         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
27938         when auditing is enabled.  But don't bother updating the #if.
27939
27940 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
27941
27942         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
27943         it breaks C++ compilation.
27944         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
27945
27946 2003-07-10  Simon Josefsson  <jas@extundo.com>
27947
27948         * modules/strchrnul (Makefile.am): Add strchrnul.h.
27949
27950 2003-07-10  Jim Meyering  <jim@meyering.net>
27951
27952         * m4/clock_time.m4: Remove trailing blank.
27953         * m4/intmax_t.m4: Likewise.
27954
27955 2003-07-10  Jim Meyering  <jim@meyering.net>
27956
27957         * lib/vasnprintf.c: Remove trailing blanks.
27958         Make cpp indentation consistent.
27959
27960 2003-07-09  Paul Eggert  <eggert@twinsun.com>
27961
27962         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
27963         posixver.c, strftime.c, strnlen.c, strverscmp.c:
27964         Switch from LGPL to GPL.
27965
27966 2003-07-09  Paul Eggert  <eggert@twinsun.com>
27967
27968         * config/srclist.txt: Sort sublists.  Add
27969         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
27970         that differ from gnulib for one reason or another; we'd like this list
27971         to be smaller but for now let's document what we have.
27972
27973 2003-07-08  Paul Eggert  <eggert@twinsun.com>
27974
27975         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
27976         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
27977         and sweeter "eval x=$x".
27978         * config/srclist.txt: Get lib/argp* from glibc.
27979
27980 2003-07-07  Paul Eggert  <eggert@twinsun.com>
27981
27982         * lib/mktime.c: Fix some boundary cases and remove need for floating
27983         point.
27984
27985         Issue a compile-time diagnostic if time_t is floating point, or if
27986         two's complement arithmetic is not in effect, or if arithmetic
27987         right shift does not propagate the sign.  These assumptions were
27988         all in the original code but they weren't checked.
27989
27990         (TIME_T_MIDPOINT, verify): New macros.
27991         (__isleap): Remove; it has integer overflow problems.
27992         (leapyear): New function, without those problems.
27993         (ydhms_tm_diff): Remove; splitting into two parts.
27994         (ydhms_diff): New function, containing the arithmetic part of
27995         the old ydhms_tm_diff function.  Issue a compile-time
27996         diagnostic if we are not using C99 integer division.
27997         Avoid casts when possible.
27998         (guess_time_tm): New function, containing the checking part of
27999         the old ydhms_tm_diff function.  Return the new value, rather than
28000         the difference between it and the old.  Accept a new argument T
28001         so that *T specifies the old value.  Check for overflow in the result.
28002
28003         (__mktime_internal): Use a time_t offset, not a long int offset.
28004         This undoes the 2003-06-04 change, which is no longer needed now
28005         that we have better overflow checking.
28006         (localtime_offset): Likewise.
28007
28008         (__mktime_internal): Avoid harmful overflow on hosts where time_t
28009         and long are 64-bit but int is only 32-bit.
28010         (ydhms_diff): Use long int to store year1 and yday1.
28011         Issue a compile-time diagnostic if long int is not wide enough.
28012
28013         (__mktime_internal): Use long int to store adjusted year and yday.
28014         Use plain C rather than preprocessor commands, if that doesn't
28015         affect efficiency.
28016         Check for overflow (and try to repair) after each probe
28017         rather than checking only at the very end.  This avoids some bugs
28018         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
28019         does not equal GMT offset at maximum time).
28020         Use integer to check for overflow rather than floating point; this
28021         is more portable to non-IEEE hosts, and is a tad faster.
28022         When we detect that we are oscillating between two values,
28023         don't check whether tm_isdst has the requested value, since
28024         we already know the answer.  When tm_isdst has the wrong value,
28025         use a different heuristic to find the right one, based on the
28026         extreme values actually observed in practice in tz2003a,
28027         rather than the (overly optimistic) "previous 3 calendar quarters".
28028
28029         (not_equal_tm, print_tm, check_result): Use "const T" rather than
28030         "T const" to accommodate glibc style.
28031         (check_result): Use less-confusing report format.  "long" -> "long int.
28032         (main): Likewise.
28033         Don't loop if the iteration overflows time_t.
28034         Allow a negative step in the iteration.
28035
28036 2003-07-06  Karl Berry  <karl@gnu.org>
28037
28038         * config/depcomp: update from automake.
28039         * config/config.sub: update from prep.
28040
28041 2003-07-03  Karl Berry  <karl@gnu.org>
28042
28043         * config/config.guess: update from prep.
28044
28045 2003-07-01  Paul Eggert  <eggert@twinsun.com>
28046
28047         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
28048         xreadlink.c now includes it unconditionally.
28049
28050 2003-07-01  Paul Eggert  <eggert@twinsun.com>
28051
28052         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
28053         having it depend on HAVE_SYS_TYPES_H.
28054
28055 2003-07-01  Bruno Haible  <bruno@clisp.org>
28056
28057         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
28058         <sys/types.h> should be sufficient.
28059         Reported by Paul Eggert.
28060
28061 2003-06-26  Karl Berry  <karl@gnu.org>
28062
28063         * config/depcomp: update from automake.
28064
28065 2003-06-26  Bruno Haible  <bruno@clisp.org>
28066
28067         * modules/human: Depend on module stdbool.
28068
28069 2003-06-25  Bruno Haible  <bruno@clisp.org>
28070
28071         * modules/readlink: New file.
28072         * modules/xreadlink: Depend on it.
28073         * MODULES.html.sh (func_all_modules): Add readlink.
28074
28075 2003-06-25  Bruno Haible  <bruno@clisp.org>
28076
28077         * m4/readlink.m4: New file.
28078
28079 2003-06-25  Bruno Haible  <bruno@clisp.org>
28080
28081         * lib/readlink.c: New file.
28082
28083 2003-06-22  Karl Berry  <karl@gnu.org>
28084
28085         * config/srclist.txt: update mkinstalldirs from automake.
28086         * config/mkinstalldirs: update.
28087
28088 2003-06-22  Bruno Haible  <bruno@clisp.org>
28089
28090         Portability to mingw32.
28091         * m4/ssize_t.m4: New file, from GNU gettext.
28092         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
28093         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
28094
28095 2003-06-22  Bruno Haible  <bruno@clisp.org>
28096
28097         * modules/safe-read: Add m4/ssize_t.m4.
28098         * modules/xreadlink: Add m4/ssize_t.m4.
28099
28100 2003-06-20  Bruno Haible  <bruno@clisp.org>
28101
28102         Assume C89, so PARAMS isn't needed.
28103         * lib/unicodeio.h (PARAMS): Remove.
28104         * lib/unicodeio.c: Don't use PARAMS.
28105
28106 2003-06-18  Karl Berry  <karl@gnu.org>
28107
28108         * config/config.{guess,sub}: update from prep.
28109
28110 2003-06-18  Jim Meyering  <jim@meyering.net>
28111
28112         Merge changes from coreutils.
28113         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
28114         Remove explicit declarations of xmalloc and realloc.
28115         Include xalloc.h.
28116         (read_utmp): Remove anachronistic cast of xmalloc.
28117
28118 2003-06-17  Paul Eggert  <eggert@twinsun.com>
28119
28120         Assume C89, so PARAMS isn't needed.
28121         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
28122         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
28123         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
28124         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
28125         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
28126         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
28127         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
28128         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
28129         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
28130         lib/xstrtod.h, lib/xstrtol.h: Likewise.
28131         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
28132         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
28133         no longer needed. Anyway, config.h should always be included before any
28134         other file.
28135
28136 2003-06-11  Simon Josefsson  <jas@extundo.com>
28137
28138         * modules/sysexits: New file.
28139         * MODULES.html.sh (func_all_modules): Add sysexits.
28140
28141 2003-06-11  Simon Josefsson  <jas@extundo.com>
28142
28143         * lib/sysexit_.h: New file.
28144
28145 2003-06-11  Derek Price  <derek@ximbiot.com>
28146
28147         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
28148         necessary.
28149
28150 2003-06-11  Bruno Haible  <bruno@clisp.org>
28151
28152         * m4/sysexits.m4: New file.
28153
28154 2003-06-10  Simon Josefsson  <jas@extundo.com>
28155
28156         * lib/argp.h: New file, from glibc.
28157         * lib/argp-ba.c: New file, from glibc.
28158         * lib/argp-eexst.c: New file, from glibc.
28159         * lib/argp-fmtstream.c: New file, from glibc.
28160         * lib/argp-fmtstream.h: New file, from glibc.
28161         * lib/argp-fs-xinl.c: New file, from glibc.
28162         * lib/argp-help.c: New file, from glibc.
28163         * lib/argp-namefrob.h: New file, from glibc.
28164         * lib/argp-parse.c: New file, from glibc.
28165         * lib/argp-pv.c: New file, from glibc.
28166         * lib/argp-pvh.c: New file, from glibc.
28167         * lib/argp-xinl.c: New file, from glibc.
28168
28169 2003-06-10  Simon Josefsson  <jas@extundo.com>
28170
28171         * modules/strchrnul: New file.
28172
28173 2003-06-10  Simon Josefsson  <jas@extundo.com>
28174
28175         * modules/argp: New file.
28176
28177 2003-06-10  Simon Josefsson  <jas@extundo.com>
28178
28179         * m4/strchrnul.m4: New file.
28180
28181 2003-06-10  Simon Josefsson  <jas@extundo.com>
28182
28183         * lib/strchrnul.h: New file.
28184         * lib/strchrnul.c: New file.
28185
28186 2003-06-10  Bruno Haible  <bruno@clisp.org>
28187
28188         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
28189
28190 2003-06-07  Karl Berry  <karl@gnu.org>
28191
28192         * config/config.{guess,sub}: update from prep.
28193
28194 2003-06-07  Jim Meyering  <jim@meyering.net>
28195
28196         * modules/strtod: Use $(...) notation, not @...@ for
28197         AC_REPLACE'd variables.
28198         * modules/localcharset: Likewise.
28199
28200 2003-06-07  Jim Meyering  <jim@meyering.net>
28201
28202         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
28203         in place of my name in the copyright comment.
28204         Remove definition and uses of __P.
28205
28206         From coreutils.
28207         * lib/stat.c: Don't declare xmalloc explicitly.
28208         Instead, include "xalloc.h".
28209         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
28210         xrealloc, and xcalloc return values.
28211         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
28212         Improve comment.
28213         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
28214
28215 2003-06-07  Bruno Haible  <bruno@clisp.org>
28216
28217         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
28218         avoid AC_CONFIG_LINKS.
28219         * modules/fnmatch (Makefile.am): Use explicit creation rule for
28220         fnmatch.h, to avoid AC_CONFIG_LINKS.
28221         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
28222
28223 2003-06-07  Bruno Haible  <bruno@clisp.org>
28224
28225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
28226         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
28227         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
28228         directory.
28229         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
28230         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
28231         directory.
28232
28233 2003-06-06  Jim Meyering  <jim@meyering.net>
28234
28235         Merge from coreutils.
28236         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
28237         Consolidate declarations and initializations of *_base* locals.
28238
28239         Merge from coreutils.
28240         This avoids a core dump on systems without GNU putenv,
28241         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
28242         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
28243         (unsetenv): New static function, from GNU libc.
28244         (rpl_putenv): Use it.
28245
28246         * lib/modechange.c: Remove trailing blanks.
28247
28248         Merge from coreutils.
28249         * lib/fsusage.c: Remove declaration of statfs.
28250         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
28251
28252         * lib/posixtm.c: Include <stdbool.h> unconditionally.
28253
28254 2003-06-06  Jim Meyering  <jim@meyering.net>
28255
28256         * lib/stdbool_.h: Renamed from stdbool.h.in.
28257
28258 2003-06-06  Jim Meyering  <jim@meyering.net>
28259             Bruno Haible  <bruno@clisp.org>
28260
28261         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
28262         Adjust Makefile.am snippet not to redirect directly to target.
28263         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
28264
28265 2003-06-05  Paul Eggert  <eggert@twinsun.com>
28266
28267         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
28268         mismatch, look in future quarters as well as past.  This fixes a
28269         bug when processing fall-backwards gaps immediately after a long
28270         period of daylight-saving time.
28271
28272         * lib/mktime.c: Assume freestanding C89 or better.
28273         (HAVE_LIMITS_H): Remove.  Assume it's 1.
28274         (__P): Remove; not used.
28275         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
28276         (mktime, not_equal_tm, print_tm, check_result,
28277         main): Use prototypes.  Use const * where appropriate.
28278         (main): Fix typo in testing code that uncovered by above changes.
28279         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
28280
28281 2003-06-04  Paul Eggert  <eggert@twinsun.com>
28282
28283         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
28284         locale.h, localeconv.  This merges changes from coreutils.
28285
28286         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
28287         It can be removed after the next Autoconf is released.
28288         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
28289         needed.
28290
28291 2003-06-04  Paul Eggert  <eggert@twinsun.com>
28292
28293         * lib/mktime.c: Fix Debian bug 177940
28294         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
28295         (localtime_offset): Now long int, not time_t, because we want it
28296         to be guaranteed to be signed.  All uses changed.
28297         (__mktime_internal): If overflow would occur when adding offset,
28298         don't add it.
28299
28300         Merge 'human' changes from coreutils.  Rewrite to support
28301         locale-specific notations like thousands separators.
28302         * lib/human.c: Simplify authorship notice.
28303         Include human.h immediately after config.h.
28304         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
28305         <limits.h>: Do not include, since human.h does.
28306         (SIZE_MAX, UINTMAX_MAX): New macros.
28307         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
28308         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
28309         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
28310         (power_letter): Renamed from suffixes.
28311         (generate_suffix_backwards): Remove.
28312         (adjust_value): Now takes int style (because of human.h changes)
28313         and long double value (for greater precision on some platforms).
28314         (group_number): New function.
28315         (human_readable): Use it.  Use integer options, not enum.
28316         Put the options before the sizes in the arg list.
28317         Support all the new options.
28318         The old human_readable function has been removed;
28319         use inttostr.h instead.
28320         (human_readable, default_block_size, humblock):
28321         Use uintmax_t, not int, for block sizes.
28322         (human_readable_inexact, block_size_types): Remove.
28323         (block_size_opts): New constant.
28324         (human_options): Renamed from human_block_size, with new signature
28325         that allows block sizes up to UINTMAX_MAX.  All callers changed.
28326         * lib/human.h: Add copyright and authorship notice.
28327         Include <limits.h> and <stdbool.h> unconditionally.
28328         (PARAMS): Remove.  All uses removed.
28329         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
28330         (enum human_inexact_style): Remove tag; now a nameless enum.
28331         (human_floor, human_ceiling, human_round_to_even): Now have
28332         values 2, 0, 1 rather than -1, 1, 0.
28333         (human_group_digits, human_suppress_point_zero, human_autoscale,
28334         human_base_1024, human_SI, human_B): New constants.
28335         (human_readable_inexact, human_block_size): Remove.
28336         (human_readable): Size args are now uintmax_t, not int.
28337         (human_options): New decl.
28338
28339         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
28340         unnecessary now that we assume C89 or better.  This change
28341         imported from coreutils.
28342
28343         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
28344         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
28345         in the 2003-05-30 sync from glibc.
28346
28347         .h files should stand alone, but we shouldn't include <sys/types.h>
28348         if we can get away with just <stddef.h>.
28349
28350         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
28351         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
28352         rather than <sys/types.h>, as we merely need size_t.
28353         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
28354         to get size_t.
28355         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
28356         Include <stdio.h>, to get FILE.
28357         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
28358         memcasecmp.h has included <stddef.h> and all we need is size_t.
28359         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
28360         our interface, instead of including <sys/types.h>
28361
28362 2003-06-04  Paul Eggert  <eggert@twinsun.com>
28363
28364         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
28365         now, as glibc mktime is buggy on non-glibc systems.
28366
28367 2003-06-03  Karl Berry  <karl@gnu.org>
28368
28369         * config/config.sub: update from prep.
28370
28371 2003-06-02  Paul Eggert  <eggert@twinsun.com>
28372
28373         [from coreutils]
28374         Fix some minor time-related bugs with POSIX time arguments.
28375         Some valid time stamps were being rejected (notably -1, and
28376         time stamps before 1900 on 64-bit hosts).  And some invalid
28377         time stamps were being accepted, e.g. September 31.
28378
28379         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
28380         that we can return (time_t) -1 successfully.
28381         * lib/posixtm.c: Likewise.
28382         [HAVE_STDBOOL_H]: Include <stdbool.h>.
28383         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
28384         (t): Remove static var.
28385         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
28386         of static var.  All uses changed.
28387         (year): Do not reject years before 1900; they can occur with
28388         64-bit time_t.
28389         (posix_time_parse): Do not check for out-of-range components;
28390         that is now the caller's responsibility, since our checks were
28391         only approximations.
28392         (posixtime): Use mktime to check for out-of-range components,
28393         since it knows them exactly.
28394         If mktime returns (time_t) -1, check whether an error actually occurred
28395         by invoking localtime on -1.
28396         (main) [TEST_POSIXTIME]: Check for input data errors, and report
28397         posixtime failures better.
28398         Improve the test data (in comments only).
28399
28400 2003-06-02  Karl Berry  <karl@gnu.org>
28401
28402         * config/mkinstalldirs (version): new variable.
28403         (--version): new option.
28404         (usage): improve message.
28405
28406 2003-05-30  Karl Berry  <karl@gnu.org>
28407
28408         * lib/mktime.c: update from libc.
28409
28410 2003-05-30  Bruno Haible  <bruno@clisp.org>
28411
28412         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
28413         * config/config.rpath: Upgrade to gettext-0.12.1.
28414
28415 2003-05-30  Bruno Haible  <bruno@clisp.org>
28416
28417         * m4/gettext.m4: Upgrade to gettext-0.12.1.
28418         * m4/nls.m4: New file, from gettext-0.12.1.
28419         * m4/po.m4: New file, from gettext-0.12.1.
28420         * m4/progtest.m4: Upgrade to gettext-0.12.1.
28421
28422 2003-05-30  Bruno Haible  <bruno@clisp.org>
28423
28424         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
28425         * lib/localcharset.h: Likewise.
28426         * lib/localcharset.c: Likewise.
28427
28428 2003-05-29  Karl Berry  <karl@gnu.org>
28429
28430         * config/config.rpath: update from gettext.
28431
28432 2003-05-28  Paul Eggert  <eggert@twinsun.com>
28433
28434         Assume the headers required for C89 freestanding compilers.
28435         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
28436         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
28437         * m4/human.m4 (gl_HUMAN): Likewise.
28438         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
28439         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
28440         * m4/userspec.m4 (gl_USERSPEC): Likewise.
28441         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
28442         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
28443         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
28444
28445 2003-05-28  Paul Eggert  <eggert@twinsun.com>
28446
28447         Assume the headers required for C89 freestanding compilers.
28448         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
28449         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
28450         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
28451         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
28452         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
28453         define, since <limits.h> is guaranteed to do that.
28454         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
28455         * lib/exclude.c: Include <stdbool.h> unconditionally.
28456         * lib/tempname.c: Include <stddef.h> unconditionally.
28457         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
28458         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
28459         <stddef.h> does that.
28460         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
28461         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
28462         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
28463         needed.
28464         * lib/xstrtol.c: Likewise.
28465         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
28466         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
28467
28468         * lib/addext.c (addext): Use assignment rather than cast, to avoid
28469         warnings on some platforms.
28470
28471         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
28472         arbitrarily.
28473
28474 2003-05-26  Jim Meyering  <jim@meyering.net>
28475
28476         Merge in a change from coreutils:
28477         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
28478         that is guaranteed to be `no'.  Use `no_such_member' to indicate
28479         that condition, rather than `-1' which is slightly misleading.
28480         Change the name of the cache variable to have the gl_ prefix.
28481         Prompted by a patch from Richard Dawe for DJGPP.
28482
28483 2003-05-24  Karl Berry  <karl@gnu.org>
28484
28485         * config/config.guess: update from prep.
28486
28487 2003-05-22  Karl Berry  <karl@gnu.org>
28488
28489         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
28490
28491 2003-05-20  Karl Berry  <karl@gnu.org>
28492
28493         * config/config.guess: update from prep.
28494
28495 2003-05-18  Karl Berry  <karl@gnu.org>
28496
28497         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
28498         might actually be set by the user.
28499
28500         * config/depcomp, install-sh, mdate-sh: update from automake.
28501
28502 2003-05-17  Bruno Haible  <bruno@clisp.org>
28503
28504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
28505         invalid expansion for AC_EGREP_CPP.
28506         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28507         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28508         Suggested by Akim Demaille <akim@epita.fr> in
28509         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
28510
28511 2003-05-12  Jim Meyering  <jim@meyering.net>
28512
28513         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
28514         the space-padded-by-default conversion specifiers, %e, %k, %l.
28515
28516 2003-05-12  Bruno Haible  <bruno@clisp.org>
28517
28518         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
28519         the string is longer than 4 KB.
28520
28521 2003-05-11  Karl Berry  <karl@gnu.org>
28522
28523         * config/config.{guess,sub}: update from prep.
28524
28525 2003-05-09  Bruno Haible  <bruno@clisp.org>
28526
28527         * modules/error: Add m4/strerror_r.m4 to file list.
28528
28529 2003-05-03  Bruno Haible  <bruno@clisp.org>
28530
28531         Upgrade to Unicode-4.0.
28532         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
28533         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
28534         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
28535         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
28536         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
28537         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
28538         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
28539         Change width of U+E0100..U+E01EF from 1 to 0.
28540
28541 2003-04-25  Jim Meyering  <jim@meyering.net>
28542
28543         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
28544         of type size_t, not int.
28545
28546 2003-04-25  Bruno Haible  <bruno@clisp.org>
28547
28548         * lib/copy-file.c: Include <stddef.h>, for size_t.
28549
28550 2003-04-21  Paul Eggert  <eggert@twinsun.com>
28551
28552         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
28553         code which expansion is under static control.  Patch imported from
28554         Akim Demaille's patch to Bison; see
28555         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
28556
28557 2003-04-14  Bruno Haible  <bruno@clisp.org>
28558
28559         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
28560
28561 2003-04-11  Jim Meyering  <jim@meyering.net>
28562
28563         Merge changes from Coreutils.
28564
28565         2003-03-22  Jim Meyering  <jim@meyering.net>
28566
28567         * lib/strftime.c (widen): Cast alloca return value to proper type.
28568
28569         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
28570
28571         From GNU libc.
28572         * lib/strftime.c (my_strftime): Handle very large width
28573         specifications for numeric values correctly.  Improve checks for
28574         overflow.
28575
28576         2003-01-19  Jim Meyering  <jim@meyering.net>
28577
28578         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
28579         definitions.
28580         (nl_get_alt_digit) [! defined my_strftime]: Define.
28581         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
28582         _nl_get_alt_digit and _nl_get_walt_digit.
28583
28584         * lib/strftime.c (my_strftime): Merge in locale-related changes from
28585         libc. These changes have no effect outside of _LIBC.
28586
28587 2003-04-10  Bruno Haible  <bruno@clisp.org>
28588
28589         * modules/findprog: New file.
28590         * MODULES.html.sh (func_all_modules): Add it.
28591
28592 2003-04-10  Bruno Haible  <bruno@clisp.org>
28593
28594         * m4/findprog.m4: New file.
28595         * m4/eaccess.m4: New file.
28596
28597 2003-04-10  Bruno Haible  <bruno@clisp.org>
28598
28599         * lib/findprog.h: New file, from GNU gettext.
28600         * lib/findprog.c: New file, from GNU gettext.
28601
28602 2003-04-05  Jim Meyering  <jim@meyering.net>
28603
28604         Merge changes from Coreutils.
28605
28606         * lib/exclude.h (PARAMS): Remove definition and uses.
28607         * lib/exclude.c: Remove uses of `PARAMS'.
28608
28609         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
28610         Add test-cases for DOS filenames. Declare program_name.
28611         (main): Set up program_name.  Patch by Rich Dawe.
28612
28613         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
28614         error from mntctl.
28615         Use mntctl's return value to drive the entry-processing loop, since
28616         we can't rely on the value of the vmt_length member in the last
28617         entry.  On some systems doing so could result in exhausting
28618         virtual memory.  Based in part on a patch from Mike Jetzer.
28619
28620 2003-04-04  Bruno Haible  <bruno@clisp.org>
28621
28622         * modules/linebreak: New file.
28623         * MODULES.html.sh (func_all_modules): Add it.
28624
28625 2003-04-04  Bruno Haible  <bruno@clisp.org>
28626
28627         * m4/linebreak.m4: New file.
28628
28629 2003-04-04  Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/linebreak.h: New file, from GNU gettext.
28632         * lib/linebreak.c: New file, from GNU gettext with slight
28633         modifications.
28634         * lib/lbrkprop.h: New file, from GNU gettext.
28635
28636 2003-04-03  Bruno Haible  <bruno@clisp.org>
28637
28638         * modules/utf8-ucs4: New file.
28639         * modules/utf16-ucs4: New file.
28640         * modules/ucs4-utf8: New file.
28641         * modules/ucs4-utf16: New file.
28642         * MODULES.html.sh (func_all_modules): Add them.
28643
28644 2003-04-03  Bruno Haible  <bruno@clisp.org>
28645
28646         * m4/utf-ucs4.m4: New file.
28647         * m4/ucs4-utf.m4: New file.
28648
28649 2003-04-03  Bruno Haible  <bruno@clisp.org>
28650
28651         * lib/utf8-ucs4.h: New file, from GNU gettext.
28652         * lib/utf16-ucs4.h: New file, from GNU gettext.
28653         * lib/ucs4-utf8.h: New file, from GNU gettext.
28654         * lib/ucs4-utf16.h: New file, from GNU gettext.
28655
28656 2003-04-02  Bruno Haible  <bruno@clisp.org>
28657
28658         * modules/binary-io: New file.
28659         * MODULES.html.sh (func_all_modules): Add it.
28660
28661 2003-04-02  Bruno Haible  <bruno@clisp.org>
28662
28663         * lib/binary-io.h: New file, from GNU gettext.
28664
28665 2003-04-01  Bruno Haible  <bruno@clisp.org>
28666
28667         * modules/pathname: New file.
28668         * MODULES.html.sh (func_all_modules): Add it.
28669
28670 2003-04-01  Bruno Haible  <bruno@clisp.org>
28671
28672         * lib/pathname.h: New file, from GNU gettext.
28673         * lib/concatpath.c: New file, from GNU gettext.
28674
28675 2003-03-30  Bruno Haible  <bruno@clisp.org>
28676
28677         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
28678
28679 2003-03-30  Bruno Haible  <bruno@clisp.org>
28680
28681         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
28682         function chown() doesn't exist.
28683
28684 2003-03-28  Bruno Haible  <bruno@clisp.org>
28685
28686         * modules/copy-file: New file.
28687         * MODULES.html.sh (func_all_modules): Add it.
28688
28689 2003-03-28  Bruno Haible  <bruno@clisp.org>
28690
28691         * m4/copy-file.m4: New file.
28692
28693 2003-03-28  Bruno Haible  <bruno@clisp.org>
28694
28695         * lib/copy-file.h: New file, from GNU gettext.
28696         * lib/copy-file.c: New file, from GNU gettext.
28697
28698 2003-03-18  Jim Meyering  <jim@meyering.net>
28699
28700         * lib/quote.c (quote_n): Fix typo in comment.
28701
28702 2003-03-18  Bruno Haible  <bruno@clisp.org>
28703
28704         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
28705         checking.
28706         * m4/onceonly_2_57.m4: Likewise.
28707
28708 2003-03-17  Bruno Haible  <bruno@clisp.org>
28709
28710         * m4/onceonly.m4: Require autoconf 2.54 or newer.
28711         (m4_quote): Remove macro.
28712         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
28713
28714 2003-03-14  Jim Meyering  <jim@meyering.net>
28715
28716         Merge changes from Coreutils.
28717         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
28718         to be const, in order to avoid warnings.
28719         (obstack_room): Likewise.
28720         (obstack_empty_p): Likewise.
28721
28722 2003-03-14  Bruno Haible  <bruno@clisp.org>
28723
28724         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
28725         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
28726
28727 2003-03-13  Paul Eggert  <eggert@twinsun.com>
28728
28729         Merge changes from Bison.
28730         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
28731         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
28732         when compiling Bison 1.875's `bitset bset = obstack_alloc
28733         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
28734         * lib/hash.c: Include <stdbool.h> unconditionally.
28735
28736 2003-03-13  Paul Eggert  <eggert@twinsun.com>
28737
28738         * m4/onceonly.m4 (m4_quote): New macro.
28739         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
28740         Quote AC_FOREACH variable-expansions properly.
28741
28742 2003-03-13  Paul Eggert  <eggert@twinsun.com>
28743
28744         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
28745
28746 2003-03-09  Paul Eggert  <eggert@twinsun.com>
28747
28748         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
28749         Reported by Bruce Becker; see:
28750         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
28751
28752 2003-03-03  Paul Eggert  <eggert@twinsun.com>
28753             Bruno Haible  <bruno@clisp.org>
28754
28755         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
28756         Reported by John Hughes, see
28757         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
28758
28759 2003-02-20  Bruno Haible  <bruno@clisp.org>
28760
28761         * MODULES.html.sh (func_all_modules): Add poll.
28762
28763 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
28764
28765         * modules/poll: New file.
28766
28767 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
28768
28769         * lib/poll_.h: New file.
28770         * lib/poll.c: New file.
28771
28772 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
28773
28774         * m4/poll.m4: New file.
28775
28776 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28777
28778         * modules/mathl: New file.
28779
28780 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28781
28782         * lib/mathl.h: New file.
28783         * lib/acosl.c: New file.
28784         * lib/asinl.c: New file.
28785         * lib/atanl.c: New file.
28786         * lib/ceill.c: New file.
28787         * lib/cosl.c: New file.
28788         * lib/expl.c: New file.
28789         * lib/floorl.c: New file.
28790         * lib/frexpl.c: New file.
28791         * lib/ldexpl.c: New file.
28792         * lib/logl.c: New file.
28793         * lib/sincosl.c: New file.
28794         * lib/sinl.c: New file.
28795         * lib/sqrtl.c: New file.
28796         * lib/tanl.c: New file.
28797         * lib/trigl.c: New file.
28798         * lib/trigl.h: New file.
28799
28800 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28801
28802         * m4/mathl.m4: New file.
28803
28804 2003-02-18  Bruno Haible  <bruno@clisp.org>
28805
28806         * MODULES.html.sh (func_all_modules): Add mathl.
28807
28808 2003-02-17  Bruno Haible  <bruno@clisp.org>
28809
28810         * modules/mkdtemp: New module.
28811         * MODULES.html.sh (func_all_modules): Add it.
28812
28813 2003-02-17  Bruno Haible  <bruno@clisp.org>
28814
28815         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
28816
28817 2003-02-17  Bruno Haible  <bruno@clisp.org>
28818
28819         * lib/mkdtemp.h: New file, from GNU gettext.
28820         * lib/mkdtemp.c: New file, from GNU gettext.
28821
28822 2003-02-02  Jim Meyering  <jim@meyering.net>
28823
28824         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
28825         e.g. glibc-2.2.93.
28826
28827 2003-01-31  Bruno Haible  <bruno@clisp.org>
28828
28829         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
28830         'rpl_rename'.
28831         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
28832         'rpl_strnlen'.
28833         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
28834         'rpl_strtod'.
28835         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
28836         'rpl_utime'.
28837
28838 2003-01-31  Bruno Haible  <bruno@clisp.org>
28839
28840         * lib/rename.c: #undef rename before defining rpl_rename.
28841         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
28842
28843 2003-01-30  Bruno Haible  <bruno@clisp.org>
28844
28845         * modules/vasnprintf, modules/vasprintf: New modules.
28846         * MODULES.html.sh (func_all_modules): Add them.
28847
28848 2003-01-30  Bruno Haible  <bruno@clisp.org>
28849
28850         * m4/signed.m4: New file, from GNU gettext.
28851         * m4/longdouble.m4: New file, from GNU gettext.
28852         * m4/wchar_t.m4: New file, from GNU gettext.
28853         * m4/wint_t.m4: New file, from GNU gettext.
28854         * m4/vasnprintf.m4: New file.
28855         * m4/vasprintf.m4: New file.
28856
28857 2003-01-30  Bruno Haible  <bruno@clisp.org>
28858
28859         * lib/printf-args.h: New file, from GNU gettext.
28860         * lib/printf-args.c: New file, from GNU gettext.
28861         * lib/printf-parse.h: New file, from GNU gettext.
28862         * lib/printf-parse.c: New file, from GNU gettext.
28863         * lib/vasnprintf.h: New file, from GNU gettext.
28864         * lib/vasnprintf.c: New file, from GNU gettext.
28865         * lib/asnprintf.c: New file, from GNU gettext.
28866         * lib/vasprintf.h: New file, from GNU gettext with modifications.
28867         * lib/vasprintf.c: New file, from GNU gettext.
28868         * lib/asprintf.c: New file, from GNU gettext.
28869
28870 2003-01-29  Bruno Haible  <bruno@clisp.org>
28871
28872         * modules/stpncpy: New module.
28873         * MODULES.html.sh (func_all_modules): Add it.
28874
28875 2003-01-29  Bruno Haible  <bruno@clisp.org>
28876
28877         * m4/stpncpy.m4: New file.
28878
28879 2003-01-29  Bruno Haible  <bruno@clisp.org>
28880
28881         * lib/stpncpy.h: New file, from GNU gettext with modifications.
28882         * lib/stpncpy.c: New file, from GNU gettext with modifications.
28883
28884 2003-01-28  Bruno Haible  <bruno@clisp.org>
28885
28886         * modules/c-ctype: New module.
28887         * MODULES.html.sh (func_all_modules): Add it.
28888
28889 2003-01-28  Bruno Haible  <bruno@clisp.org>
28890
28891         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
28892         Paul Eggert.
28893         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
28894         Paul Eggert.
28895
28896 2003-01-27  Bruno Haible  <bruno@clisp.org>
28897
28898         * modules/xsetenv: New module.
28899         * MODULES.html.sh (func_all_modules): Add it.
28900
28901 2003-01-27  Bruno Haible  <bruno@clisp.org>
28902
28903         * lib/xsetenv.h: New file, from GNU gettext.
28904         * lib/xsetenv.c: New file, from GNU gettext.
28905
28906 2003-01-23  Jim Meyering  <jim@meyering.net>
28907
28908         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
28909         from working on systems without dirfd (at least Irix and OSF1/Tru64).
28910
28911 2003-01-23  Bruno Haible  <bruno@clisp.org>
28912
28913         * modules/minmax: New module.
28914         * MODULES.html.sh (func_all_modules): Add it.
28915
28916 2003-01-23  Bruno Haible  <bruno@clisp.org>
28917
28918         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
28919         Eggert.
28920
28921 2003-01-22  Bruno Haible  <bruno@clisp.org>
28922
28923         * modules/exit: New module.
28924         * MODULES.html.sh (func_all_modules): Add it.
28925
28926 2003-01-22  Bruno Haible  <bruno@clisp.org>
28927
28928         * lib/exit.h: New file, from GNU gettext.
28929
28930 2003-01-19  Bruno Haible  <bruno@clisp.org>
28931
28932         * gnulib-tool: Recognize option --extract-maintainer.
28933         (func_get_maintainer): New function.
28934         * modules/*: Add Maintainer entry.
28935
28936 2003-01-16  Jim Meyering  <jim@meyering.net>
28937
28938         * m4/regex.m4: The `regex' struct is both input and output.
28939         Initialize it before each use.  Patch by Tim Waugh.
28940
28941 2003-01-16  Bruno Haible  <bruno@clisp.org>
28942
28943         * MODULES.html.sh: Add a table of contents. Add the module name as
28944         leftmost column. Add hyperlinks.
28945
28946 2003-01-15  Bruno Haible  <bruno@clisp.org>
28947
28948         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
28949
28950 2003-01-15  Bruno Haible  <bruno@clisp.org>
28951
28952         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
28953         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
28954         suffix.
28955
28956 2003-01-15  Bruno Haible  <bruno@clisp.org>
28957
28958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
28959
28960 2003-01-15  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
28963         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
28964
28965 2003-01-14  Jim Meyering  <jim@meyering.net>
28966
28967         * lib/same.c (same_name): Tweak a comment.
28968
28969 2003-01-14  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
28972         when a string comparison is sufficient.
28973
28974 2003-01-14  Bruno Haible  <bruno@clisp.org>
28975
28976         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
28977         'unsigned int'.
28978
28979 2003-01-14  Bruno Haible  <bruno@clisp.org>
28980
28981         * lib/hash-pjw.c: Add comment about low quality of this function.
28982
28983 2003-01-13  Bruno Haible  <bruno@clisp.org>
28984
28985         * modules/stpcpy: Distribute lib/stpcpy.h.
28986         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
28987
28988 2003-01-13  Bruno Haible  <bruno@clisp.org>
28989
28990         * modules/*: Add a description.
28991         * modules/strpbrk: Fix Makefile.am snippet.
28992         * modules/strtoimax: Fix dependencies.
28993         * modules/strtoumax: Likewise.
28994
28995 2003-01-13  Bruno Haible  <bruno@clisp.org>
28996
28997         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
28998         * modules/alloca (Makefile.am): All object files depend on alloca.h.
28999         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
29000
29001 2003-01-13  Bruno Haible  <bruno@clisp.org>
29002
29003         * gnulib-tool (func_create_testdir): Store config/* files in the main
29004         directory.
29005         * config.rpath: Move to ...
29006         * config/config.rpath: ... here.
29007         * modules/gettext: Contains config/config.rpath, not config.rpath.
29008         * modules/iconv: Likewise.
29009
29010 2003-01-12  Paul Eggert  <eggert@twinsun.com>
29011
29012         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
29013         to avoid collisions with libcurses and libreadline.
29014
29015         * m4/getstr.m4: Remove.
29016         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
29017
29018 2003-01-12  Paul Eggert  <eggert@twinsun.com>
29019
29020         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
29021         to avoid collisions with libcurses and libreadline.
29022
29023         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
29024         * lib/getstr.h, getstr.c: Remove.
29025         * lib/getline.c: Include "getline.h", to check interface.
29026         Move body of old getstr.c here: this defines MIN_CHUNK and
29027         declares getdelim2, which is renamed from getstr.
29028         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
29029
29030         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
29031         All uses changed.
29032         * lib/linebuffer.h: Likewise.
29033         (readline): Remove backward-compatibility macro.
29034
29035 2003-01-12  Paul Eggert  <eggert@twinsun.com>
29036
29037         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
29038         to avoid collisions with libcurses and libreadline.
29039         * getstr: Remove.
29040         * MODULES.html.sh: Remove getstr.
29041         * modules/getline: Depend on unlocked-io, not getstr.
29042
29043 2003-01-12  Jim Meyering  <jim@meyering.net>
29044
29045         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
29046
29047 2003-01-10  Bruno Haible  <bruno@clisp.org>
29048
29049         * modules/alloca: Change Makefile.am requirements. Simplify Include
29050         requirements. Add lib/alloca_.h to file list.
29051
29052 2003-01-10  Bruno Haible  <bruno@clisp.org>
29053
29054         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
29055
29056 2003-01-10  Bruno Haible  <bruno@clisp.org>
29057
29058         * lib/alloca_.h: New file.
29059         * lib/getdate.y: Unconditionally include alloca.h.
29060         * lib/makepath.c: Likewise.
29061         * lib/setenv.c: Likewise.
29062         * lib/userspec.c: Likewise.
29063
29064 2003-01-09  Karl Berry  <karl@gnu.org>
29065
29066         * MODULES.html.sh: include `dirname $0` in PATH, to find
29067         gnulib-tool.
29068
29069 2003-01-09  Bruno Haible  <bruno@clisp.org>
29070
29071         * modules/stdbool: Change configure.ac, Makefile.am requirements.
29072         Simplify Include requirements. Add lib/stdbool.h.in to file list.
29073
29074 2003-01-09  Bruno Haible  <bruno@clisp.org>
29075
29076         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
29077
29078 2003-01-09  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/stdbool.h.in: New file.
29081
29082 2003-01-09  Bruno Haible  <bruno@clisp.org>
29083
29084         * gnulib-tool (func_all_modules): Ignore files ending in ~.
29085         * MODULES.html.sh: Likewise.
29086
29087 2003-01-08  Jim Meyering  <jim@meyering.net>
29088
29089         * lib/full-write.c: Undefine and define-away `const' after inclusion
29090         of errno.h, not before.  Suggestion from Bruno Haible.
29091
29092 2003-01-08  Bruno Haible  <bruno@clisp.org>
29093
29094         * modules/full-read: Depend on full-write.
29095
29096 2003-01-08  Bruno Haible  <bruno@clisp.org>
29097
29098         * lib/safe-read.c: Include specification header first, to ensure its
29099         selfcontainedness.
29100         * lib/full-write.c: Likewise.
29101
29102 2003-01-07  Jim Meyering  <jim@meyering.net>
29103
29104         * lib/full-write.c: Rework so that it may serve to define full_read,
29105         too.
29106         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
29107
29108 2003-01-07  Bruno Haible  <bruno@clisp.org>
29109
29110         * lib/strtoimax.c: Include <stdint.h> as an alternative to
29111         <inttypes.h>.
29112         * lib/xstrtol.h: Likewise.
29113         * lib/xstrtoimax.c: Likewise.
29114         * lib/xstrtoumax.c: Likewise.
29115         * lib/human.h: Likewise.
29116
29117         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
29118         on systems that have <inttypes.h> but not <stdint.h>.
29119
29120 2003-01-07  Bruno Haible  <bruno@clisp.org>
29121
29122         * MODULES.html.sh: Add copyright notice.
29123         (missed_files): Omit CVS directory entries.
29124         (func_module): Make it work with sed-3.02.
29125         * MODULES.txt: Remove file.
29126
29127 2003-01-06  Jim Meyering  <jim@meyering.net>
29128
29129         * lib/version-etc.c: Update year in translatable copyright string.
29130
29131 2003-01-03  Karl Berry  <karl@gnu.org>
29132
29133         * config/config.{guess,sub}: update from prep.
29134
29135 2003-01-02  Karl Berry  <karl@gnu.org>
29136
29137         * doc/COPYING.DOC: belatedly updated to 1.2.
29138
29139 2003-01-01  Karl Berry  <karl@gnu.org>
29140
29141         * gnulib-tool (func_verify_module): report module name $module in
29142         error message, not $1.
29143         * gnulib-tool (create-testdir): don't complain if destdir couldn't
29144         be created, only if it doesn't exist.
29145         * gnulib-tool (last_checkin_date): don't expand the $Date here.
29146
29147 2002-12-31  Paul Eggert  <eggert@twinsun.com>
29148
29149         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
29150
29151 2002-12-31  Paul Eggert  <eggert@twinsun.com>
29152
29153         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
29154         memcmp if strcoll doesn't work.
29155
29156 2002-12-31  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/utime.c (utime_null): No need to call ftruncate if the file was
29159         nonempty.
29160
29161 2002-12-31  Bruno Haible  <bruno@clisp.org>
29162
29163         * lib/memcoll.c (STRCOLL): New macro.
29164         (memcoll): Use it.
29165
29166 2002-12-31  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/localcharset.h: New file.
29169         * lib/localcharset.c: Include it.
29170         * lib/unicodeio.c: Likewise.
29171
29172 2002-12-31  Bruno Haible  <bruno@clisp.org>
29173
29174         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
29175         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
29176
29177 2002-12-31  Bruno Haible  <bruno@clisp.org>
29178
29179         * lib/getline.h: Include <stddef.h>, for size_t.
29180
29181         * lib/unicodeio.h: Include <stddef.h>, for size_t.
29182         * lib/unicodeio.c: Don't include <stddef.h>.
29183
29184 2002-12-31  Bruno Haible  <bruno@clisp.org>
29185
29186         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
29187         HAVE_TM_ZONE.
29188
29189 2002-12-24  Karl Berry  <karl@gnu.org>
29190
29191         * config/config.guess: update from prep.
29192
29193 2002-12-24  Bruno Haible  <bruno@clisp.org>
29194
29195         General infrasructure.
29196         * m4/README: Rewritten.
29197         * m4/onceonly.m4: New file.
29198         * m4/onceonly_2_57.m4: New file.
29199
29200         Module atexit.
29201         * m4/atexit.m4: New file.
29202
29203         Module strtod.
29204         * m4/strtod.m4: New file.
29205
29206         Module strtol.
29207         * m4/strtol.m4: New file.
29208
29209         Module strtoul.
29210         * m4/strtoul.m4: New file.
29211
29212         Module memchr.
29213         * m4/memchr.m4: New file.
29214
29215         Module memcmp.
29216         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
29217         (jm_FUNC_MEMCMP): Invoke it.
29218
29219         Module memcpy.
29220         * m4/memcpy.m4: New file.
29221
29222         Module memmove.
29223         * m4/memmove.m4: New file.
29224
29225         Module memset.
29226         * m4/memset.m4: New file.
29227
29228         Module strcspn.
29229         * m4/strcspn.m4: New file.
29230
29231         Module strpbrk.
29232         * m4/strpbrk.m4: New file.
29233
29234         Module strstr.
29235         * m4/strstr.m4: New file.
29236
29237         Module strerror.
29238         * m4/strerror.m4: New file.
29239
29240         Module mktime.
29241         * m4/mktime.m4: Renamed from jm-mktime.m4.
29242         (gl_PREREQ_MKTIME): New macro.
29243         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
29244
29245         Module malloc.
29246         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
29247         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
29248         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
29249
29250         Module realloc.
29251         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
29252         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
29253         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
29254
29255         Module strftime.
29256         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
29257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
29258         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
29259         gl_TM_GMTOFF.
29260         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
29261
29262         Module xalloc.
29263         * m4/xalloc.m4: New file.
29264
29265         Module alloca.
29266         * m4/alloca.m4: New file.
29267
29268         Module putenv.
29269         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
29270         (jm_FUNC_PUTENV): Invoke it.
29271
29272         Module setenv.
29273         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
29274         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
29275         when invoked twice.
29276         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
29277         gt_FUNC_SETENV.
29278
29279         Module memrchr.
29280         * m4/memrchr.m4: New file.
29281
29282         Module stpcpy.
29283         * m4/stpcpy.m4: New file.
29284
29285         Module strcase.
29286         * m4/strcase.m4: New file.
29287
29288         Module strdup.
29289         * m4/strdup.m4: New file.
29290
29291         Module strnlen.
29292         * m4/strnlen.m4: New file.
29293
29294         Module strndup.
29295         * m4/strndup.m4: New file.
29296
29297         Module xstrtod.
29298         * m4/xstrtod.m4: New file.
29299
29300         Module xstrtol.
29301         * m4/xstrtol.m4: New file.
29302
29303         Module getdate.
29304         * m4/getdate.m4: New file.
29305
29306         Module unlocked-io.
29307         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
29308         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
29309         * m4/jm-glibc-io.m4n: Remove file.
29310
29311         Module long-options.
29312         * m4/long-options.m4: New file.
29313
29314         Module md5.
29315         * m4/md5.m4: New file.
29316
29317         Module sha.
29318         * m4/sha.m4: New file.
29319
29320         Module getstr.
29321         * m4/getstr.m4: New file.
29322
29323         Module getline.
29324         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
29325         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
29326         <sys/types.h>, for size_t. Use the function name gnu_getline, not
29327         simply getline. Infoke gl_PREREQ_GETLINE.
29328
29329         Module obstack.
29330         * m4/obstack.m4: New file.
29331
29332         Module hash.
29333         * m4/hash.m4: New file.
29334
29335         Module readtokens.
29336         * m4/readtokens.m4: New file.
29337
29338         Module strverscmp.
29339         * m4/strverscmp.m4: New file.
29340
29341         Module stdbool.
29342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
29343         OSF/1.
29344
29345         Module strtoll.
29346         * m4/strtoll.m4: New file.
29347
29348         Module strtoull.
29349         * m4/strtoull.m4: New file.
29350
29351         Module strtoimax.
29352         * m4/strtoimax.m4: New file.
29353
29354         Module strtoumax.
29355         * m4/strtoumax.m4: New file.
29356
29357         Module xstrtoimax.
29358         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
29359         jm_AC_PREREQ_XSTRTOIMAX.
29360         Moved the strtol prerequisites to strtol.m4.
29361         Moved the strtoll prerequisites to strtoll.m4.
29362         Moved the strtoimax prerequisites to strtoimax.m4.
29363
29364         Module xstrtoumax.
29365         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
29366         jm_AC_PREREQ_XSTRTOUMAX.
29367         Moved the strtoul prerequisites to strtoul.m4.
29368         Moved the strtoull prerequisites to strtoull.m4.
29369         Moved the strtoumax prerequisites to strtoumax.m4.
29370
29371         Module chown.
29372         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
29373         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
29374
29375         Module dup2.
29376         * m4/dup2.m4: New file.
29377
29378         Module ftruncate.
29379         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
29380         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
29381
29382         Module getgroups.
29383         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
29384         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
29385
29386         Module gettimeofday.
29387         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
29388         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
29389         gl_PREREQ_GETTIMEOFDAY.
29390
29391         Module mkdir.
29392         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
29393         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
29394
29395         Module mkstemp.
29396         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
29397         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
29398         jm_AC_TYPE_UINTMAX_T.
29399         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
29400
29401         Module stat.
29402         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
29403         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
29404
29405         Module lstat.
29406         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
29407         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
29408
29409         Module timespec.
29410         * m4/timespec.m4 (gl_TIMESPEC): New macro.
29411         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
29412         * m4/st_mtim.m4: Indentation.
29413
29414         Module nanosleep.
29415         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
29416         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
29417         gl_PREREQ_NANOSLEEP.
29418
29419         Module regex.
29420         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
29421         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
29422         (gl_REGEX): New macro.
29423
29424         Module rename.
29425         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
29426         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
29427
29428         Module rmdir.
29429         * m4/rmdir.m4: New file.
29430
29431         Module utime.
29432         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
29433         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
29434         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
29435
29436         Module dirname.
29437         * m4/dirname.m4: New file.
29438
29439         Module getopt.
29440         * m4/getopt.m4: New file.
29441
29442         Module unistd-safer.
29443         * m4/unistd-safer.m4: New file.
29444
29445         Module fnmatch.
29446         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
29447         declaration.
29448         (gl_PREREQ_FNMATCH_EXTRA): New macro.
29449         (gl_FUNC_FNMATCH_POSIX): New macro.
29450         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
29451         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
29452         simply fnmatch.
29453
29454         Module exclude.
29455         * m4/exclude.m4: New file.
29456
29457         Module human.
29458         * m4/human.m4: New file.
29459
29460         Module acl.
29461         * m4/acl.m4: Nop.
29462
29463         Module backupfile.
29464         * m4/backupfile.m4: New file.
29465         * m4/d-ino.m4: Indentation.
29466
29467         Module fsusage.
29468         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
29469         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
29470         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
29471
29472         Module dirfd.
29473         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
29474         requirements.
29475
29476         Module euidaccess.
29477         * m4/euidaccess.m4: New file.
29478
29479         Module file-type.
29480         * m4/file-type.m4: New file.
29481
29482         Module fileblocks.
29483         * m4/fileblocks.m4: New file.
29484
29485         Module filemode.
29486         * m4/filemode.m4: New file.
29487
29488         Module isdir.
29489         * m4/isdir.m4: New file.
29490
29491         Module lchown.
29492         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
29493         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
29494
29495         Module makepath.
29496         * m4/makepath.m4: New file.
29497
29498         Module modechange.
29499         * m4/modechange.m4: New file.
29500
29501         Module mountlist.
29502         * m4/mountlist.m4: New file.
29503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
29504         Indentation.
29505
29506         Module path-concat.
29507         * m4/path-concat.m4: New file.
29508
29509         Module pathmax.
29510         * m4/pathmax.m4: New file.
29511
29512         Module same.
29513         * m4/same.m4: New file.
29514
29515         Module save-cwd.
29516         * m4/save-cwd.m4: New file.
29517
29518         Module savedir.
29519         * m4/savedir.m4: New file.
29520
29521         Module xgetcwd.
29522         * m4/xgetcwd.m4: New file.
29523         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
29524
29525         Module xreadlink.
29526         * m4/xreadlink.m4: New file.
29527
29528         Module safe-read.
29529         * m4/safe-read.m4: New file.
29530
29531         Module safe-write.
29532         * m4/safe-write.m4: New file.
29533
29534         Module closeout.
29535         * m4/closeout.m4: New file.
29536
29537         Module stdio-safer.
29538         * m4/stdio-safer.m4: New file.
29539
29540         Module getpass.
29541         * m4/getpass.m4: New file.
29542
29543         Module getugroups.
29544         * m4/getugroups.m4: New file.
29545
29546         Module group-member.
29547         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
29548         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
29549
29550         Module idcache.
29551         * m4/idcache.m4: New file.
29552
29553         Module userspec.
29554         * m4/userspec.m4: New file.
29555
29556         Module gettime.
29557         * m4/clock_time.m4: New file.
29558         * m4/gettime.m4: New file.
29559
29560         Module settime.
29561         * m4/settime.m4: New file.
29562
29563         Module posixtm.
29564         * m4/posixtm.m4: New file.
29565
29566         Module gethostname.
29567         * m4/gethostname.m4: New file.
29568
29569         Module canon-host.
29570         * m4/canon-host.m4: New file.
29571
29572         Module gettext.
29573         * m4/codeset.m4: New file, from gettext-0.11.5.
29574         * m4/gettext.m4: New file, from gettext-0.11.5.
29575         * m4/glibc21.m4: New file, from gettext-0.11.5.
29576         * m4/iconv.m4: New file, from gettext-0.11.5.
29577         * m4/intdiv0.m4: New file, from gettext-0.11.5.
29578         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
29579         * m4/inttypes.m4: New file, from gettext-0.11.5.
29580         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
29581         * m4/isc-posix.m4: New file, from gettext-0.11.5.
29582         * m4/lcmessage.m4: New file, from gettext-0.11.5.
29583         * m4/lib-ld.m4: New file, from gettext-0.11.5.
29584         * m4/lib-link.m4: New file, from gettext-0.11.5.
29585         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
29586         * m4/progtest.m4: New file, from gettext-0.11.5.
29587         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
29588         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
29589         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
29590
29591         Module localcharset.
29592         * m4/localcharset.m4: New file.
29593
29594         Module hard-locale.
29595         * m4/hard-locale.m4: New file.
29596
29597         Module mbswidth.
29598         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
29599         onceonly macros.
29600         * m4/mbrtowc.m4: Add comment.
29601
29602         Module memcasecmp.
29603         * m4/memcasecmp.m4: New file.
29604
29605         Module memcoll.
29606         * m4/memcoll.m4: New file.
29607
29608         Module unicodeio.
29609         * m4/unicodeio.m4: New file.
29610
29611         Module rpmatch.
29612         * m4/rpmatch.m4: New file.
29613
29614         Module yesno.
29615         * m4/yesno.m4: New file.
29616
29617         Module exitfail.
29618         * m4/exitfail.m4: New file.
29619
29620         Module c-stack.
29621         * m4/c-stack.m4 (gl_C_STACK): New macro.
29622         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
29623
29624         Module error.
29625         * m4/error.m4 (gl_ERROR): New macro.
29626         (jm_PREREQ_ERROR): Use onceonly macros.
29627
29628         Module fatal.
29629         * m4/fatal.m4: New file.
29630
29631         Module getloadavg.
29632         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
29633         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
29634
29635         Module getpagesize.
29636         * m4/getpagesize.m4: New file.
29637
29638         Module getusershell.
29639         * m4/getusershell.m4: New file.
29640
29641         Module physmem.
29642         * m4/physmem.m4: New file.
29643
29644         Module posixver.
29645         * m4/posixver.m4: New file.
29646
29647         Module quotearg.
29648         * m4/quotearg.m4: New file.
29649
29650         Module quote.
29651         * m4/quote.m4: New file.
29652
29653         Module readutmp.
29654         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
29655
29656         Module sig2str.
29657         * m4/sig2str.m4: New file.
29658
29659         Other.
29660         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
29661         ulonglong.m4.
29662         * m4/intmax_t.m4: New file.
29663         * m4/d-type.m4: Indentation.
29664         * m4/jm-macros.m4: Update.
29665         * m4/prereq.m4 (jm_PREREQ): Update.
29666         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
29667         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
29668         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
29669         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
29670         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
29671         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
29672         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
29673         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
29674         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
29675         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
29676         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
29677         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
29678         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
29679         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
29680         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
29681         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
29682         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
29683         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
29684         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
29685
29686 2002-12-24  Bruno Haible  <bruno@clisp.org>
29687
29688         * MODULES.txt: Update according to m4/ changes.
29689
29690         Module gettext.
29691         * config.rpath: New file, from gettext-0.11.5.
29692
29693         * modules/*: New module descriptions.
29694         * gnulib-tool: New file.
29695         * MODULES.html.sh: New file.
29696
29697 2002-12-21  Karl Berry  <karl@gnu.org>
29698
29699         * doc/fdl.texi: update to version 1.2.
29700
29701 2002-12-19  Karl Berry  <karl@gnu.org>
29702
29703         * config/config.guess: update from prep.
29704
29705 2002-12-18  Bruno Haible  <bruno@clisp.org>
29706
29707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
29708         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
29709
29710 2002-12-17  Bruno Haible  <bruno@clisp.org>
29711
29712         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
29713         stdlib.h, string.h.
29714
29715 2002-12-17  Bruno Haible  <bruno@clisp.org>
29716
29717         * lib/canon-host.c (strdup): Remove unused declaration.
29718
29719         * lib/fsusage.c: Include full_read.h.
29720         (get_fs_usage): Use full_read instead of safe_read.
29721
29722         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
29723
29724 2002-12-12  Karl Berry  <karl@gnu.org>
29725
29726         * config/config.guess: update from prep.
29727
29728 2002-12-11  Bruno Haible  <bruno@clisp.org>
29729
29730         * m4/setenv.m4: New file, from gettext-0.11.5.
29731
29732 2002-12-11  Bruno Haible  <bruno@clisp.org>
29733
29734         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
29735         not unsetenv().
29736         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
29737         modifications:
29738
29739         2002-12-11  Bruno Haible  <bruno@clisp.org>
29740
29741                 * setenv.c (alloca): Fall back to malloc.
29742                 (freea): New macro.
29743                 (setenv): Use freea() to free memory allocated with alloca().
29744
29745         2002-11-13  Bruno Haible  <bruno@clisp.org>
29746
29747                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
29748                 function declarations.
29749                 * unsetenv.c (unsetenv): Likewise.
29750
29751         2002-03-04  Bruno Haible  <bruno@clisp.org>
29752
29753                 Portability to AIX 4.3.3.
29754                 * unsetenv.c: New file, extracted from setenv.c.
29755                 * setenv.c: Move the unsetenv() function to unsetenv.c.
29756
29757         2001-12-20  Bruno Haible  <bruno@clisp.org>
29758
29759                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
29760                 use malloc instead. For SunOS 4.
29761
29762         2001-12-11  Bruno Haible  <bruno@clisp.org>
29763
29764                 * setenv.c: Declare alloca.
29765                 (compar_fn_t): New typedef.
29766                 (KNOWN_VALUE, STORE_VALUE): Use it.
29767
29768         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
29769         setenv.h.
29770
29771 2002-12-10  Paul Eggert  <eggert@twinsun.com>
29772
29773         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
29774         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
29775         Choose values that are less likely to collide with system fnmatch
29776         options.
29777         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
29778         defined (e.g., a pure POSIX system).
29779         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
29780         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
29781
29782 2002-12-06  Paul Eggert  <eggert@twinsun.com>
29783
29784         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
29785         a pain in practice to deal with generated m4 files.  This change
29786         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
29787
29788         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
29789         and jm-glibc-io.m4, as they are no longer a special case.
29790         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
29791         kludge and the auto-generation stuff.  Check only whether the
29792         functions are declared, not whether they exist, since older hosts
29793         that don't declare the functions can't use the optimization anyway.
29794
29795 2002-12-06  Jim Meyering  <jim@meyering.net>
29796
29797         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
29798
29799         Merge in changes from libc's misc/error.c, in preparation
29800         for the merge of gnulib's changes back into libc.
29801
29802         * lib/error.c (_): Define only if not already defined.
29803         Move definition to follow all #include directives.
29804         Include unlocked-io.h only if !_LIBC.
29805         [_LIBC]: Include <libio/libioP.h>.
29806         [USE_IN_LIBIO]: Include <libio/iolibio.h>
29807         (fflush): Tweak definition to use INTUSE.
29808         (putc): Define.
29809
29810 2002-12-05  Paul Eggert  <eggert@twinsun.com>
29811
29812         * lib/alloca.c [defined emacs]: Include "lisp.h".
29813         (xalloc_die) [defined emacs]: New macro.
29814         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
29815         [! defined emacs]: Include <xalloc.h>.
29816         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
29817         (pointer): Typedef to POINTER_TYPE *.
29818         (malloc): Remove decl; we now always use xmalloc.
29819         (alloca): Use old-style definition, since Emacs needs this.
29820         Check for arithmetic overflow when computing combined size.
29821
29822 2002-12-04  Paul Eggert  <eggert@twinsun.com>
29823
29824         Do not generate unlocked-io.h automatically, since it's easier to
29825         maintain it by hand.
29826
29827         * lib/unlocked-io.h: New file, from GNU diffutils,
29828         but with proper copyright notice and attribution.
29829         * lib/gen-uio: Remove.
29830         * lib/Makefile.am: Add copyright notice.
29831         (libfetish_a_SOURCES): Add unlocked-io.h.
29832         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
29833         (DISTCLEANFILES, io_functions): Remove macros.
29834         (EXTRA_DIST): Remove gen_uio.
29835         (unlocked-io.h): Remove rule.
29836
29837 2002-12-04  Jim Meyering  <jim@meyering.net>
29838
29839         Reflect the fact that stat.c and lstat.c are no longer generated.
29840         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
29841         (DISTCLEANFILES): Likewise.
29842         (EXTRA_DIST): Likewise.
29843         (all_local): Don't depend on stat.c or lstat.c.
29844         (stat.c, lstat.c): Remove rules.
29845         (EXTRA_DIST): Remove xstat.in.
29846
29847         * lib/xstat.in: Remove file.  Contents moved into stat.c.
29848         * lib/stat.c: New file.  Contents mostly from xstat.in.
29849         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
29850         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
29851
29852         * lib/safe-read.c: Rework so that it may serve to define safe_write,
29853         too.
29854         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
29855
29856 2002-12-03  Jim Meyering  <jim@meyering.net>
29857
29858         * lib/safe-read.c, safe-write.c: Change variable names and comments,
29859         but not semantics, to minimize the differences between these two files.
29860         (safe_read): Change comment to mention SAFE_READ_ERROR.
29861
29862         * lib/safe-read.c (IS_EINTR): Define.
29863         (safe_read): Use IS_EINTR in place of in-function cpp directives.
29864
29865 2002-12-02  Jim Meyering  <jim@meyering.net>
29866
29867         * lib/safe-read.c (EINTR): Define.
29868         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29869         (INT_MAX): Provide fallback.
29870         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
29871
29872         * lib/safe-read.h (SAFE_READ_ERROR): Define.
29873
29874 2002-12-02  Bruno Haible  <bruno@clisp.org>
29875
29876         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
29877         Define, taken from safe-read.c.
29878         (INT_MAX): Provide fallback.
29879         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
29880         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
29881
29882         * lib/safe-read.c (EINTR): Remove definition.
29883         (safe_read): Don't use EINTR if it is absent.
29884
29885 2002-12-01  Jim Meyering  <jim@meyering.net>
29886
29887         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
29888         zero.
29889         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
29890
29891 2002-11-27  Paul Eggert  <eggert@twinsun.com>
29892
29893         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
29894         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
29895         with `if (! (value < limit)) abort ();', for readability.
29896
29897 2002-11-26  Karl Berry  <karl@gnu.org>
29898
29899         * lib/strdup.c: copy from libc again, with jim's ok.
29900         * lib/.cppi-disable: re-add strdup.c
29901
29902 2002-11-25  Karl Berry  <karl@gnu.org>
29903
29904         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
29905         instead of "strtol.c".
29906
29907 2002-11-25  Karl Berry  <karl@gnu.org>
29908
29909         * config/install-sh: update from automake for variable quoting, $0 in
29910         error msgs, etc.
29911
29912         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
29913         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
29914         entry.
29915
29916 2002-11-25  Jim Meyering  <jim@meyering.net>
29917
29918         * lib/mktime.c: Sync from libc, now that it has the latest fix.
29919
29920 2002-11-24  Karl Berry  <karl@gnu.org>
29921
29922         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
29923         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
29924
29925 2002-11-24  Jim Meyering  <jim@meyering.net>
29926
29927         Update from coreutils:
29928
29929         * lib/mktime.c: Merge in changes from libc.
29930
29931         Avoid a link-time failure on some Linux systems.
29932         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
29933         (otherwise).
29934         (__mon_yday): Declare with the STATIC attribute.
29935         (__mktime_internal): Likewise.
29936         Based on a report from Greg Schafer.
29937
29938 2002-11-23  Jim Meyering  <jim@meyering.net>
29939
29940         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
29941         Use `unsigned', not `int', as type of index.
29942
29943         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
29944
29945         * lib/fsusage.c: Remove unneeded parentheses around operands of
29946         `defined'.
29947
29948 2002-11-22  Paul Eggert  <eggert@twinsun.com>
29949
29950         * lib/quotearg.h: Allow multiple inclusion by surrounding with
29951         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
29952         so that we can be included first.
29953         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
29954         * lib/quotearg.c: Include quotearg.h immediately after config.h.
29955         No need to include stddef.h or sys/types.h any more.
29956         Surround local include files with "", not "<>".
29957         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
29958         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
29959         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
29960         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
29961         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
29962         (ISPRINT): Remove; no longer needed now that we assume C89.
29963
29964         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
29965         Preserve errno.
29966
29967         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
29968         quotearg_char): Use SIZE_MAX rather than
29969         (size_t) -1 when we are talking about "infinity".
29970
29971         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
29972
29973 2002-11-22  Paul Eggert  <eggert@twinsun.com>
29974
29975         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
29976         hint that one should use `if (! x) abort ();' rather than `assert
29977         (x);', and anyway it's one less thing to worry about configuring.
29978         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
29979         hash_rehash, hash_insert): Use abort rather than assert.
29980
29981 2002-11-22  Bruno Haible  <bruno@clisp.org>
29982
29983         * lib/safe-read.h: Assume C89. Add comments.
29984         (safe_read): Change return type to size_t.
29985         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
29986         byte counts > SSIZE_MAX correctly.
29987         * lib/safe-write.h: New file.
29988         * lib/safe-write.c: New file.
29989         * lib/full-read.h: New file.
29990         * lib/full-read.c: New file.
29991         * lib/full-write.h: Assume C89. Add comments.
29992         * lib/full-write.c: Include safe-write.h.
29993         (full_write): Rewritten to use safe_write.
29994         Suggested by Jim Meyering and Paul Eggert.
29995
29996 2002-11-21  Jim Meyering  <jim@meyering.net>
29997
29998         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
29999
30000         Merge in changes from the coreutils.
30001
30002         2002-09-25  Paul Eggert  <eggert@twinsun.com>
30003         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
30004         <stdint.h>.
30005         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
30006         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
30007         int.  Work more efficiently if X is the same width as uintmax_t.
30008         Do not compare X to -1, to avoid bogus compiler warning.
30009         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
30010         Don't assume that f_frsize and f_bsize are the same type.
30011
30012         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
30013         warning on FreeBSD.
30014
30015         * lib/makepath.c (make_path): Restore umask *before* creating the final
30016         component.
30017         (make_path): Minor reformatting.
30018
30019         * lib/xmalloc.c: Adjust to work with new autoconf macros,
30020         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
30021         HAVE_MALLOC/HAVE_REALLOC.
30022
30023         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
30024         dummy ones.  At least on GNU/Linux systems, `auto' means something
30025         else.
30026         From Michael Stone.
30027
30028 2002-11-21  Bruno Haible  <bruno@clisp.org>
30029
30030         Remove case insensitive option matching.
30031         * lib/argmatch.h (argcasematch): Remove declaration.
30032         (ARGCASEMATCH): Remove macro.
30033         (__xargmatch_internal): Remove case_sensitive argument.
30034         (XARGMATCH): Update.
30035         (XARGCASEMATCH): Remove macro.
30036         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
30037         case_sensitive argument.
30038         (argcasematch): Remove function.
30039         (__xargmatch_internal): Remove case_sensitive argument.
30040         (main): Use XARGMATCH instead of XARGCASEMATCH.
30041
30042         * lib/xmalloc.c: Change compile-time error message. Add comment about
30043         required autoconf version.
30044
30045 2002-11-20  Paul Eggert  <eggert@twinsun.com>
30046
30047         Merge argmatch cleanups from Bison.  Assume C89.
30048
30049         * lib/argmatch.c: Include config.h here, not in argmatch.h.
30050         Include stdlib.h, for EXIT_FAILURE.
30051         Always include <string.h>, since we assume C89.
30052         (EXIT_FAILURE): Remove pre-C89 bug workaround.
30053         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
30054         Include <stddef.h> instead, since it's all we need for size_t.
30055         (PARAMS): Remove.  All uses removed.
30056         (ARRAY_CARDINALITY): Do not bother to #undef.
30057         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
30058         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
30059         Remove unnecessary parentheses.
30060         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
30061         Insert necessary parentheses.
30062         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
30063         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
30064
30065 2002-11-19  Bruno Haible  <bruno@clisp.org>
30066
30067         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
30068         * lib/mbswidth.h: Include <stddef.h>, for size_t.
30069
30070         * lib/mbswidth.h (PARAMS): Remove macro.
30071         (mbswidth, mbsnwidth): Use ANSI C function declarations.
30072         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
30073
30074         * lib/gcd.h (PARAMS): Remove macro.
30075         (gcd): Use ANSI C function declarations.
30076         * lib/gcd.c (gcd): Likewise.
30077
30078 2002-11-15  Bruno Haible  <bruno@clisp.org>
30079
30080         * lib/strcspn.c: Include <stddef.h>.
30081         (strcspn): Use ANSI C function declaration. Change return type to
30082         size_t. Use NULL.
30083         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
30084         (strpbrk): Use NULL.
30085         * lib/strpbrk.h (PARAMS): Remove macro.
30086         (strpbrk): Use ANSI C function declaration.
30087         * lib/strstr.c: Don't include <sys/types.h>.
30088         * lib/strstr.h (PARAMS): Remove macro.
30089         (strstr): Use ANSI C function declarations.
30090
30091 2002-11-14  Karl Berry  <karl@gnu.org>
30092
30093         * config/mkinstalldirs: `do' on separate line, instead of
30094         `for var; do'.
30095
30096 2002-11-06  Bruno Haible  <bruno@clisp.org>
30097
30098         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
30099         * lib/gcd.c (gcd): Likewise.
30100
30101 2002-11-05  Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/gcd.h: New file, from gettext-0.11.5.
30104         * lib/gcd.c: New file, from gettext-0.11.5.
30105
30106 2002-11-05  Bruno Haible  <bruno@clisp.org>
30107
30108         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30109         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30110         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30111         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30112
30113         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
30114         <libintl.h>.
30115         * lib/makepath.c: Include gettext.h instead of <locale.h> and
30116         <libintl.h>.
30117
30118         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
30119         * lib/human.c: Include gettext.h instead of <libintl.h>.
30120         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
30121         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
30122         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
30123         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
30124         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
30125         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
30126         (textdomain): Remove definition.
30127         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
30128
30129         * lib/long-options.c: Remove include of <libintl.h> and definition of
30130         _.
30131         * lib/same.c: Remove include of <libintl.h> and definition of _.
30132
30133 2002-11-04  Owen Taylor  <otaylor@redhat.com>
30134
30135         * lib/config.charset: A few additions for Solaris.
30136
30137 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
30138
30139         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
30140         * lib/localcharset.c (locale_charset): Declare as extern "C".
30141
30142 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
30143
30144         * lib/config.charset: msdos in uk_UA uses CP1125.
30145
30146 2002-11-04  Bruno Haible  <bruno@clisp.org>
30147
30148         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
30149         * lib/strcase.h: New file, from GNU gettext-0.11.5.
30150         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
30151         * lib/strstr.h: New file, from GNU gettext-0.11.5.
30152         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
30153
30154 2002-11-04  Bruno Haible  <bruno@clisp.org>
30155
30156         * lib/localcharset.c (locale_charset): Don't return an empty string.
30157
30158 2002-11-04  Bruno Haible  <bruno@clisp.org>
30159
30160         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
30161         aliases.
30162
30163 2002-11-04  Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/config.charset: Update for newest glibc. Add canonical names
30166         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
30167
30168 2002-11-04  Bruno Haible  <bruno@clisp.org>
30169
30170         * lib/config.charset: Add support for NetBSD.
30171
30172 2002-11-04  Bruno Haible  <bruno@clisp.org>
30173
30174         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
30175
30176 2002-11-01  Bruno Haible  <bruno@clisp.org>
30177
30178         * configure.in: Add AC_CONFIG_AUX_DIR call.
30179         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
30180         test/Makefile.
30181         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
30182
30183 2002-09-28  Karl Berry  <karl@gnu.org>
30184
30185         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
30186         installed automake until the next release, since changes have been
30187         made.
30188
30189 2002-09-25  Karl Berry  <karl@gnu.org>
30190
30191         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
30192         * lib/getopt*: copy from libc/posix.
30193         * lib/gettext.h: copy from gettext.
30194         * lib/.cppi-disable: add strdup.c, gettext.h.
30195
30196 2002-09-25  Karl Berry  <karl@gnu.org>
30197
30198         * config/srclist.txt: enable gettext.h check.
30199         * config/config.{guess,sub}: update from prep.
30200         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
30201                 from automake 1.6.3.
30202         See srclist*.
30203
30204 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
30205
30206         * regex.c (PATFETCH): Remove the translating fetch.
30207         (PATFETCH_RAW): Rename to PATFETCH.
30208         (set_image_of_range): New fun.
30209         (SET_RANGE_TABLE_WORK_AREA): Use it.
30210         (regex_compile): Don't translate the pattern chars so eagerly.
30211         Only do it when inserting an `exactn' bytecode or when handling
30212         a char-range.
30213         (mutually_exclusive_p): Avoid empty statement.
30214
30215 2002-07-06  Jim Meyering  <meyering@lucent.com>
30216
30217         * m4/README: Don't mention Makefile.am.in.
30218         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
30219
30220 2002-07-01  Jim Meyering  <meyering@lucent.com>
30221
30222         * lib/c-stack.c: Include sys/time.h.
30223         From Volker Borchert.
30224
30225 2002-06-26  Paul Eggert  <eggert@twinsun.com>
30226
30227         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
30228
30229 2002-06-26  Paul Eggert  <eggert@twinsun.com>
30230
30231         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
30232         New macro.  Use it uniformly instead of
30233         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
30234         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
30235         reported by Vin Shelton.
30236
30237 2002-06-22  Paul Eggert  <eggert@twinsun.com>
30238
30239         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
30240         Do not assume SA_SIGINFO behavior.
30241         Bug reported by Jim Meyering on NetBSD 1.5.2.
30242
30243 2002-06-22  Jim Meyering  <meyering@lucent.com>
30244
30245         * m4/c-stack.m4: New file, from diffutils-2.8.2.
30246         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
30247
30248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
30249         now that configure.ac uses AC_GNU_SOURCE.
30250         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
30251         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
30252
30253         Update to latest tools.  Suggestions from Paul Eggert.
30254         * m4/stdbool.m4: New file, from diffutils-2.8.2.
30255         * m4/gnu-source.m4: Update from diffutils-2.8.2.
30256         * m4/fnmatch.m4: Likewise.
30257         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
30258         to AC_HEADER_STDBOOL
30259
30260 2002-06-22  Jim Meyering  <meyering@lucent.com>
30261
30262         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
30263         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
30264
30265 2002-06-22  Jim Meyering  <meyering@lucent.com>
30266
30267         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
30268
30269         * lib/exitfail.c, exitfail.h: Likewise.
30270         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
30271
30272         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
30273         of fnmatch.h.
30274         (EXTRA_DIST): Add fnmatch_loop.c.
30275         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
30276
30277         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
30278         * lib/fnmatch.c: Update from diffutils-2.8.2.
30279         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
30280         * lib/fnmatch.h: Remove file.
30281
30282 2002-06-21  Jim Meyering  <meyering@lucent.com>
30283
30284         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
30285         * m4/mbrtowc.m4: Likewise.
30286
30287         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
30288         * m4/mbswidth.m4: Reflect name change:
30289         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
30290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30291
30292         * m4/lib-link.m4: Update from gettext-0.11.2.
30293         * m4/gettext.m4: Likewise.
30294
30295         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
30296         From Alfred M. Szmidt.
30297
30298 2002-06-18  Paul Eggert  <eggert@twinsun.com>
30299
30300         * lib/file-type.h: Report an error if neither S_ISREG nor
30301         S_IFREG is defined, instead of using a test specific to glibc
30302         2.2.  This should be safe, since POSIX requires S_ISREG and
30303         Unix Version 7 had S_IFREG.  We don't need to check for
30304         <sys/types.h> since we don't use any symbols that it defines.
30305
30306 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
30307
30308         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
30309         $@-t, so that each temporary file name is unique and valid in the first
30310         8 characters, for operation under DOS.
30311
30312 2002-06-15  Paul Eggert  <eggert@twinsun.com>
30313
30314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
30315
30316 2002-06-15  Jim Meyering  <meyering@lucent.com>
30317
30318         Work even with DJGPP 2.03, which lacks support for symlinks.
30319         From Richard Dawe.
30320         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
30321         is defined.
30322         * lib/lchown.c (S_ISLNK): Likewise.
30323
30324 2002-06-15  Jim Meyering  <meyering@lucent.com>
30325
30326         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
30327         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
30328         have been included before this file.
30329
30330 2002-06-14  Jim Meyering  <meyering@lucent.com>
30331
30332         * lib/file-type.h: Use the version from diffutils-2.8.2.
30333         * lib/file-type.c: Likewise.
30334
30335 2002-06-07  Jim Meyering  <meyering@lucent.com>
30336
30337         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
30338         They're needed at least for NetBSD 1.5.2.
30339         ($statxfs_includes): Include those same headers.
30340         ($statxfs_includes): Include sys/vfs.h if available.
30341         ($statxfs_includes): Likewise for sys/statvfs.h.
30342         Check for the following members in both structs statfs and statvfs:
30343         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
30344
30345 2002-06-01  Jim Meyering  <meyering@lucent.com>
30346
30347         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
30348         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
30349
30350 2002-05-28  Jim Meyering  <meyering@lucent.com>
30351
30352         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
30353         Reported by Volker Borchert.
30354
30355 2002-05-27  Jim Meyering  <meyering@lucent.com>
30356
30357         Fix a problem seen only on nonconforming systems whereby ls.c's
30358         use of localtime, and then of gettimeofday would cause trouble:
30359         the localtime call used to initialize rpl_gettimeofday's save
30360         mechanism would clobber ls's current local time information so
30361         that in any long listing the first file would always be listed
30362         with date 1970-01-01.  Analysis by Volker Borchert.
30363
30364         * lib/gettimeofday.c (localtime): Undefine.
30365         (rpl_localtime): New function.
30366
30367 2002-05-27  Jim Meyering  <meyering@lucent.com>
30368
30369         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
30370         localtime.
30371
30372         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
30373         use the replacement function; it wouldn't resolve at link time.
30374         Reported by Volker Borchert.
30375
30376 2002-05-22  Jim Meyering  <meyering@lucent.com>
30377
30378         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
30379         file-type.h.
30380         * lib/file-type.h: New file.
30381         * lib/file-type.c (file_type): New file/function.  Extracted from
30382         diffutils.
30383
30384 2002-04-30  Jim Meyering  <meyering@lucent.com>
30385
30386         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
30387
30388 2002-04-29  Paul Eggert  <eggert@twinsun.com>
30389
30390         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
30391
30392 2002-04-29  Paul Eggert  <eggert@twinsun.com>
30393
30394         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
30395         Do not check for alloca.h (no longer used) or stdbool.h (was never
30396         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
30397
30398 2002-04-29  Paul Eggert  <eggert@twinsun.com>
30399
30400         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
30401
30402 2002-04-29  Jim Meyering  <meyering@lucent.com>
30403
30404         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
30405         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
30406         Use AC_FUNC_STRNLEN here instead.
30407
30408         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
30409         With autoconf-2.53a, it's part of AC_PROG_CC.
30410
30411 2002-04-28  Paul Eggert  <eggert@twinsun.com>
30412
30413         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
30414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
30415
30416 2002-04-28  Paul Eggert  <eggert@twinsun.com>
30417
30418         * lib/sig2str.h, lib/sig2str.c: New files.
30419         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
30420
30421 2002-04-28  Paul Eggert  <eggert@twinsun.com>
30422
30423         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
30424         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
30425         of 127, since 64 is the largest conceivable number for ancient
30426         nonstandard hosts.
30427         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
30428
30429 2002-04-28  Jim Meyering  <meyering@lucent.com>
30430
30431         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
30432
30433 2002-04-24  Jim Meyering  <meyering@lucent.com>
30434
30435         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
30436         (jm_PREREQ): Use it.
30437
30438         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
30439         mach/mach.h fcntl.h.
30440         Check for this function: setlocale.
30441
30442 2002-04-24  Jim Meyering  <meyering@lucent.com>
30443
30444         * lib/gettext.h: New file, from Gettext.
30445         * lib/Makefile.am (INCLUDES): Remove -I../intl.
30446         (libfetish_a_SOURCES): Add gettext.h.
30447
30448 2002-04-16  Jim Meyering  <meyering@lucent.com>
30449
30450         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
30451         ut_pid, ut_id, ut_exit.
30452
30453 2002-04-16  Jim Meyering  <meyering@lucent.com>
30454
30455         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
30456         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
30457         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
30458
30459 2002-04-12  Jim Meyering  <meyering@lucent.com>
30460
30461         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
30462         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
30463         existence of the getmntinfo function.  Needed for Darwin 5.3.
30464
30465         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
30466         This is necessary at least on Darwin 5.3.
30467
30468         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
30469         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
30470         strnlen.o in the library, and that makes some versions of ranlib
30471         object.
30472
30473 2002-04-12  Jim Meyering  <meyering@lucent.com>
30474
30475         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
30476
30477 2002-04-09  Jim Meyering  <meyering@lucent.com>
30478
30479         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
30480         to be more precise.  Rather than saying we're checking whether the
30481         function `works', say what we're testing.
30482         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
30483         Reported by Bruno Haible.
30484
30485 2002-03-10  Jim Meyering  <meyering@lucent.com>
30486
30487         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
30488         Suggestion from Santiago Vila.
30489
30490 2002-03-08  Jim Meyering  <meyering@lucent.com>
30491
30492         * lib/rename.c: Mention that this wrapper is needed also on
30493         mips-dec-ultrix4.4 systems.
30494
30495 2002-03-02  Jim Meyering  <meyering@lucent.com>
30496
30497         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
30498         not HAVE_CLOCK_SETTIME.
30499
30500 2002-02-27  Paul Eggert  <eggert@twinsun.com>
30501
30502         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
30503         Check for clock_settime.
30504
30505 2002-02-27  Paul Eggert  <eggert@twinsun.com>
30506
30507         * lib/nanosleep.h: Rename to....
30508         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
30509
30510         * lib/gettime.c: New file.
30511         * lib/settime.c: New file.
30512         * lib/stime.c: Remove.
30513
30514         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
30515         timespec.h.  Remove nanosleep.h.
30516
30517 2002-02-25  Paul Eggert  <eggert@twinsun.com>
30518
30519         * m4/acl.m4: New file.
30520         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
30521         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
30522
30523 2002-02-25  Paul Eggert  <eggert@twinsun.com>
30524
30525         * lib/acl.c, lib/acl.h: New files.
30526         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
30527
30528 2002-02-24  Jim Meyering  <meyering@lucent.com>
30529
30530         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
30531         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
30532         cause trouble.  Reported by Nelson Beebe.
30533
30534 2002-02-23  Paul Eggert  <eggert@twinsun.com>
30535
30536         * lib/path-concat.c (xpath_concat): Reorder code to pacify
30537         compilers that don't know that xalloc_die never returns.
30538
30539 2002-02-20  Jim Meyering  <meyering@lucent.com>
30540
30541         * lib/getdate.c: Regenerate using bison-1.33.
30542
30543 2002-02-17  Jim Meyering  <meyering@lucent.com>
30544
30545         * config/config.guess (main): Don't use `head -1'; it's no longer
30546         portable. Use `sed 1q' instead.
30547
30548 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
30549
30550         * m4/codeset.m4: Upgrade to gettext-0.11.
30551         * m4/gettext.m4: Upgrade to gettext-0.11.
30552         * m4/glibc21.m4: Upgrade to gettext-0.11.
30553         * m4/iconv.m4: Upgrade to gettext-0.11.
30554         * m4/isc-posix.m4: Upgrade to gettext-0.11.
30555         * m4/lcmessage.m4: Upgrade to gettext-0.11.
30556         * m4/lib-ld.m4: New file, from gettext-0.11.
30557         * m4/lib-link.m4: New file, from gettext-0.11.
30558         * m4/lib-prefix.m4: New file, from gettext-0.11.
30559         * m4/progtest.m4: Upgrade to gettext-0.11.
30560
30561 2002-02-15  Paul Eggert  <eggert@twinsun.com>
30562
30563         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
30564         (jm_PREREQ): Use it.
30565
30566 2002-02-15  Paul Eggert  <eggert@twinsun.com>
30567
30568         * lib/posixver.c, lib/posixver.h: New files.
30569         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
30570
30571 2002-02-02  Paul Eggert  <eggert@twinsun.com>
30572             Bruno Haible  <bruno@clisp.org>
30573
30574         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
30575         (fwrite_success_callback): New declaration.
30576         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
30577         print_unicode_char. Call failure callback instead of error.
30578         (fwrite_success_callback): New function.
30579         (exit_failure_callback): New function.
30580         (fallback_failure_callback): New function.
30581         (print_unicode_char): Call unicode_to_mb.
30582
30583 2002-01-26  Jim Meyering  <meyering@lucent.com>
30584
30585         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
30586         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
30587
30588 2002-01-26  Jim Meyering  <meyering@lucent.com>
30589
30590         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
30591
30592 2002-01-22  Paul Eggert  <eggert@twinsun.com>
30593
30594         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
30595
30596 2002-01-22  Jim Meyering  <meyering@lucent.com>
30597
30598         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
30599         Otherwise, some versions of automake would omit the rule that makes
30600         Makefile from Makefile.in.
30601
30602 2002-01-21  Paul Eggert  <eggert@twinsun.com>
30603
30604         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
30605         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
30606         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
30607         (memcoll): Set errno to zero if there is no error.
30608
30609         * lib/quotearg.c (quotearg_buffer_restyled):
30610         Fix bug with quoting buffers containing NUL when backslashing escapes.
30611         This bug was exposed by the other changes in this patch.
30612         (quotearg_n_options): New arg ARGSIZE.
30613         All callers changed.
30614         (quoting_options_from_style): New function.
30615         (quotearg_n_style): Use it.
30616         (quotearg_n_style_mem): New function.
30617
30618         * lib/quotearg.h (quotearg_n_style_mem): New function.
30619
30620 2002-01-19  Jim Meyering  <meyering@lucent.com>
30621
30622         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
30623         Remove useless quotes: DF_PROG="df".
30624         * m4/strnlen.m4: New file.
30625
30626 2002-01-16  Paul Eggert  <eggert@twinsun.com>
30627
30628         * lib/backupfile.c (ISDIGIT): Comment fix.
30629         * lib/getdate.y (ISDIGIT): Likewise.
30630         * lib/posixtm.c (ISDIGIT, year): Likewise.
30631         * lib/strverscmp.c (ISDIGIT): Likewise.
30632         * lib/userspec.c (ISDIGIT): Likewise.
30633
30634 2002-01-16  Jim Meyering  <meyering@lucent.com>
30635
30636         * lib/getdate.y: Add three semicolons, each just before a closing
30637         brace. Bison (as of version 1.31) no longer papers over that mistake.
30638
30639 2002-01-05  Jim Meyering  <meyering@lucent.com>
30640
30641         * lib/version-etc.c (version_etc_copyright): Update copyright year.
30642
30643 2001-12-19  Paul Eggert  <eggert@twinsun.com>
30644
30645         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
30646         not silently exit merely because the output buffer happens to
30647         have nothing pending.
30648
30649 2001-12-18  Paul Eggert  <eggert@twinsun.com>
30650
30651         See the big note in ../ChangeLog.
30652         * lib/human.c (suffixes): Prefer K to k for 1024.
30653         (generate_suffix_backwards): New function.
30654         (human_readable_inexact): Use it.
30655         * lib/xstrtol.c (__xstrtol): If there is no number but there
30656         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
30657         Accept 'K' as well as 'k'.
30658
30659 2001-12-15  Jim Meyering  <meyering@lucent.com>
30660
30661         * lib/regex.h (__restrict_arr): Update from libc.
30662
30663         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
30664         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
30665         (STREQ): Define.
30666
30667 2001-12-14  Jim Meyering  <meyering@lucent.com>
30668
30669         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
30670         Suggestion from Bruno Haible.
30671
30672 2001-12-10  Jim Meyering  <meyering@lucent.com>
30673
30674         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
30675         xrealloc, Instead, include "xalloc.h".
30676         (initbuffer): Don't cast xmalloc return value to char*.
30677         (readline): Reword comment.
30678         Don't cast xrealloc return value to char*
30679         Return NULL, not 0.
30680
30681 2001-12-09  Jim Meyering  <meyering@lucent.com>
30682
30683         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
30684         about `signed and unsigned type in conditional expression'.
30685         * lib/posixtm.c (posix_time_parse): Likewise.
30686
30687         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
30688
30689         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
30690         to avoid a pedantic warning.
30691
30692         * lib/getstr.c: Don't include assert.h.
30693         (getstr): Remove warning-evoking assertions.
30694         Return -1 if offset parameter is out of bounds.
30695         Change the type of a local from int to size_t.
30696
30697         * lib/strftime.c (my_strftime_localtime_r): Include this function
30698         definition in the `#if ! HAVE_TM_GMTOFF' block.
30699
30700         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
30701         Include xalloc.h instead.
30702
30703 2001-12-02  Jim Meyering  <meyering@lucent.com>
30704
30705         * lib/tempname.c: Don't declare getenv, thus reverting the change of
30706         2001-11-18.  It's no longer necessary, now that stdlib.h is always
30707         included.
30708
30709         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
30710         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
30711
30712 2001-11-30  Akim Demaille  <akim@epita.fr>
30713
30714         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
30715         before being defined.
30716
30717 2001-11-27  Paul Eggert  <eggert@twinsun.com>
30718
30719         * lib/quotearg.h (quotearg_n, quotearg_n_style):
30720         First arg is int, not unsigned.
30721         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
30722         (SIZE_MAX, UINT_MAX): New macros.
30723         (quotearg_n_options): Abort if N is negative.
30724         Avoid overflow check on hosts where size_t is 64 bits and int
30725         is 32 bits, as overflow is impossible there.
30726         Fix off-by-one typo that caused unnecessary reallocation.
30727
30728 2001-11-27  Jim Meyering  <meyering@lucent.com>
30729
30730         * lib/tempname.c: Merge with version from libc.
30731         * lib/regex.c: Likewise.
30732
30733         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
30734         systems for which STDC_HEADERS is 0, it was not included, resulting in
30735         a warning about an integer-to-pointer conversion problem with getenv.
30736         Reported by Volker Borchert.
30737
30738 2001-11-26  Jim Meyering  <meyering@lucent.com>
30739
30740         * lib/gtod.h: Remove file.
30741         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
30742         * lib/gettimeofday.c: Don't include gtod.h.
30743         (GTOD_init): Remove function.
30744         (rpl_gettimeofday): Do its job here instead, rather than aborting.
30745         Suggestion from Volker Borchert.
30746
30747 2001-11-23  Jim Meyering  <meyering@lucent.com>
30748
30749         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
30750         it.
30751         * lib/hash.c (struct hash_table): Define it here instead.
30752
30753 2001-11-22  Jim Meyering  <meyering@lucent.com>
30754
30755         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
30756
30757 2001-11-20  Jim Meyering  <meyering@lucent.com>
30758
30759         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
30760         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
30761
30762 2001-11-19  Jim Meyering  <meyering@lucent.com>
30763
30764         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
30765         directory.  Use "conftestXXXXXX" as the template.
30766         Suggestion from Paul Eggert.
30767
30768         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
30769         immediately, so the test doesn't mistakenly hit the max-open-files
30770         limit.
30771
30772 2001-11-18  Paul Eggert  <eggert@twinsun.com>
30773
30774         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
30775         (TEMPORARIES): New macro.
30776         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
30777         removes an artificial limitation (e.g. HP-UX 10.20, where
30778         TMP_MAX is 17576).
30779
30780 2001-11-18  Jim Meyering  <meyering@lucent.com>
30781
30782         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
30783
30784 2001-11-18  Jim Meyering  <meyering@lucent.com>
30785
30786         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
30787         on SunOS 4.
30788
30789         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
30790         files will be created before anything else.
30791
30792 2001-11-17  Paul Eggert  <eggert@twinsun.com>
30793
30794         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
30795         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
30796
30797 2001-11-17  Jim Meyering  <meyering@lucent.com>
30798
30799         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
30800         Prompted by a report from Bob Proulx.
30801
30802         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
30803         Instead, require UTILS_FUNC_MKSTEMP.
30804
30805 2001-11-17  Jim Meyering  <meyering@lucent.com>
30806
30807         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
30808         Now, that's done as part of AC_FUNC_STRTOD.
30809
30810 2001-11-17  Jim Meyering  <meyering@lucent.com>
30811
30812         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
30813         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
30814         rather than group writable.  Patch by Juan F. Codagnone.
30815
30816         * lib/readtokens.c: Remove explicit declarations of xmalloc and
30817         xrealloc, Instead, include "xalloc.h".
30818
30819         * lib/mountlist.c: Include unlocked-io.h after all system headers.
30820         Remove explicit declarations of xmalloc, xrealloc,
30821         and xstrdup.  Instead, include "xalloc.h".
30822
30823         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
30824         unlocked-io.h.
30825         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
30826         Likewise.
30827         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
30828
30829         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
30830         Reported by Padraig Brady.
30831
30832         * lib/mkstemp.c: #undef mkstemp.
30833         Include config.h.
30834         (rpl_mkstemp): Rename from mkstemp.
30835         Protoize.
30836
30837 2001-11-16  Jim Meyering  <meyering@lucent.com>
30838
30839         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
30840         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
30841         determine the amount of total physical memory, use pstat_getstatic.
30842         HPUX-11 doesn't define _SC_PHYS_PAGES.
30843         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
30844         If sysconf couldn't be used to determine the amount of available
30845         physical memory, use both pstat_getstatic and pstat_getdynamic.
30846         Based on a patch from Bob Proulx.
30847
30848 2001-11-10  Jim Meyering  <meyering@lucent.com>
30849
30850         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
30851         (jm_PREREQ): Use it.
30852
30853 2001-11-09  Jim Meyering  <meyering@lucent.com>
30854
30855         * m4/jm-macros.m4: Require autoconf-2.52f.
30856         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
30857         Use these AC_-prefixed names, not the AM_-prefixed ones.
30858
30859         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
30860
30861 2001-11-05  Jim Meyering  <meyering@lucent.com>
30862
30863         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
30864
30865 2001-11-04  Jim Meyering  <meyering@lucent.com>
30866
30867         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
30868         $DEFS.
30869
30870 2001-11-03  Jim Meyering  <meyering@lucent.com>
30871
30872         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
30873         of AC_DEFUN.
30874
30875         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
30876         know the name of the variable in the macro definition.
30877
30878 2001-11-03  Jim Meyering  <meyering@lucent.com>
30879
30880         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
30881         in argmatch_to_argument call.
30882
30883         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
30884         argument.
30885
30886         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
30887         e.g., a fault due to an attempt to free a NULL pointer.
30888
30889 2001-11-01  Jim Meyering  <meyering@lucent.com>
30890
30891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
30892         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
30893
30894 2001-11-01  Jim Meyering  <meyering@lucent.com>
30895
30896         * lib/dirfd.c, lib/dirfd.h: New files.
30897         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
30898
30899         * lib/hash.c (hash_print) [TESTING]: Clean up.
30900
30901 2001-10-22  Paul Eggert  <eggert@twinsun.com>
30902
30903         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
30904         to avoid a warning if -Wall.
30905
30906 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
30907
30908         * README: New file
30909         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
30910         (per RMS's instructions, this is now the canonical source)
30911         * lgpl/, gpl/: New directories.
30912
30913 2001-10-21  Paul Eggert  <eggert@twinsun.com>
30914
30915         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
30916
30917 2001-10-21  Jim Meyering  <meyering@lucent.com>
30918
30919         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
30920         this code would end up calling gettext even in packages built
30921         with --disable-nls.
30922         * lib/getopt.c (_): Likewise.
30923         * lib/regex.c (_): Likewise.
30924
30925 2001-10-20  Paul Eggert  <eggert@twinsun.com>
30926
30927         * m4/error.m4 (jm_PREREQ_ERROR):
30928         Do not invoke AC_CHECK_FUNCS with strerror_r, as
30929         AC_FUNC_STRERROR_R does that.
30930         Check for strerror declaration.
30931
30932         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
30933         are supposed to have them these days.
30934         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
30935         Merge changes from latest Autoconf CVS.
30936         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
30937         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
30938         POSIX decided to standardize on the int flavor of strerror_r.
30939
30940 2001-10-20  Paul Eggert  <eggert@twinsun.com>
30941
30942         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
30943         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
30944         Use strerror_r that is only a macro, even if it is not a function.
30945         (strerror): Check for HAVE_DECL_STRERROR before declaring.
30946         (private_strerror): Use prototypes, not old-style function definition.
30947         (print_errno_message): New function.
30948         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
30949         char*-flavored one.
30950         (error_tail, error, error_at_line): Use it.
30951
30952 2001-10-11  Jim Meyering  <meyering@lucent.com>
30953
30954         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
30955         and quote_n (1, ... to avoid clobbering a buffer.
30956
30957 2001-10-05  Jim Meyering  <meyering@lucent.com>
30958
30959         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
30960         hash-pjw.h.
30961         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
30962         * lib/hash-pjw.h: New file.
30963
30964 2001-09-30  Jim Meyering  <meyering@lucent.com>
30965
30966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
30967         `struct fsstat' has the `f_fstypename' member.
30968         Use that to define FS_TYPE, which is now used to make
30969         the getfsstat link test tighter.
30970
30971 2001-09-30  Jim Meyering  <meyering@lucent.com>
30972
30973         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
30974         Include <sys/ucred.h>, for Apple Darwin.
30975         Include sys/mount.h and sys/fs_types.h only if available.
30976         (FS_TYPE): Define.
30977         (read_filesystem_list): Use FS_TYPE.
30978
30979 2001-09-29  Paul Eggert  <eggert@twinsun.com>
30980
30981         * lib/exclude.c (excluded_filename): 0 -> false, since it's
30982         a boolean context.
30983
30984 2001-09-29  Jim Meyering  <meyering@lucent.com>
30985
30986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
30987         [one-argument getmntent function]): Include stdio.h before mntent.h.
30988         SunOS 4.1.x needs it for the declaration of `FILE'.
30989         Patch by Volker Borchert.
30990
30991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
30992         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
30993         sys/fs_types.h, and make the link-test for getfsstat guard #include
30994         directives with appropriate #if HAVE_*_H tests so that we can
30995         detect getfsstat on Apple Darwin1.3.7 systems.
30996         Reported by Nelson Beebe.
30997         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
30998
30999 2001-09-28  Paul Eggert  <eggert@twinsun.com>
31000
31001         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
31002         #defines strtoimax.  Also treat the other strto* functions
31003         like strtoimax.
31004
31005         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
31006         Check for strtoul and strtoumax,
31007         as those declarations are made even in the signed case.
31008         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
31009         Likewise, for strtol and strtoimax.
31010
31011 2001-09-28  Paul Eggert  <eggert@twinsun.com>
31012
31013         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
31014         #defines strtoimax.  Also treat the other strto* functions
31015         like strtoimax.
31016
31017         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
31018         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
31019         (strtoimax, strtoumax): Do not declare if already defined as a macro.
31020
31021 2001-09-26  Jim Meyering  <meyering@lucent.com>
31022
31023         Most macros in unlocked-io.h had the wrong number of arguments.
31024         * lib/gen-uio: New script.
31025         (USE_UNLOCKED_IO): Define to 1 if not already defined.
31026         * lib/unlocked-io.hin: Remove file.
31027         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
31028         rather than trying to embed it here.
31029         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
31030         Reported by Padraig Brady.
31031
31032 2001-09-25  Volker Borchert  <bt@teknon.de>
31033
31034         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
31035         `result'.
31036
31037 2001-09-24  Jim Meyering  <meyering@lucent.com>
31038
31039         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
31040
31041 2001-09-23  Jim Meyering  <meyering@lucent.com>
31042
31043         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
31044         instead of the mere test for existence of mntent.h.  The latter
31045         would get a false-positive on AIX 3.4 systems.
31046         In the outer getmntent if-block, don't die if neither of the getmntent
31047         tests succeeds.  Instead, just fall through and continue with the
31048         remaining tests.
31049
31050 2001-09-23  Jim Meyering  <meyering@lucent.com>
31051
31052         * lib/mountlist.c: Remove useless parentheses in #if directives.
31053         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
31054         the deprecated MOUNTED symbol is no longer defined in mntent.h.
31055
31056 2001-09-22  Jim Meyering  <meyering@lucent.com>
31057
31058         * m4/gettext.m4: New file.  From gettext.
31059         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
31060         * m4/progtest.m4: Likewise
31061         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
31062         * m4/glibc21.m4: Likewise.
31063
31064         * m4/libintl.m4: Remove.  No longer used.
31065
31066 2001-09-22  Jim Meyering  <meyering@lucent.com>
31067
31068         * lib/localcharset.c: Update from latest gettext.
31069         * lib/config.charset: Likewise.
31070
31071 2001-09-20  Jim Meyering  <meyering@lucent.com>
31072
31073         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
31074         strtoimax.
31075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
31076         strtoumax.
31077
31078 2001-09-20  Jim Meyering  <meyering@lucent.com>
31079
31080         * lib/xstrtol.c (strtoimax): Guard declaration with
31081         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
31082         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
31083         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
31084         (strtoumax): Likewise, for completeness (it wasn't necessary).
31085
31086 2001-09-17  Paul Eggert  <eggert@twinsun.com>
31087
31088         * lib/strtoimax.c (HAVE_LONG_LONG):
31089         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
31090         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
31091         to work around bug in IBM C compiler.
31092
31093 2001-09-17  Jim Meyering  <meyering@lucent.com>
31094
31095         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
31096         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
31097         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
31098         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
31099         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
31100         whenever the right hand side need not be expanded by the shell.
31101
31102 2001-09-16  Paul Eggert  <eggert@twinsun.com>
31103
31104         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
31105         library.  It's not correct, as some older glibcs are buggy.
31106         fnmatch wasn't fixed until glibc 2.2.
31107
31108         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
31109         special shell magic here.
31110
31111 2001-09-16  Jim Meyering  <meyering@lucent.com>
31112
31113         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
31114         * m4/jm-macros.m4: Require it.
31115
31116 2001-09-16  Jim Meyering  <meyering@lucent.com>
31117
31118         * lib/mkdir.c: New file.
31119
31120 2001-09-15  Jim Meyering  <meyering@lucent.com>
31121
31122         * m4/jm-macros.m4: Check for help2man.
31123
31124 2001-09-11  Jim Meyering  <meyering@lucent.com>
31125
31126         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
31127         The body, by Paul Eggert, was moved here from configure.in.
31128         * m4/jm-macros.m4: Require UTILS_HOST_OS.
31129
31130 2001-09-04  Paul Eggert  <eggert@twinsun.com>
31131
31132         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
31133         (jm_PREREQ): Use it.
31134
31135 2001-09-04  Paul Eggert  <eggert@twinsun.com>
31136
31137         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
31138         Use ssize_t, not int, to store result of readlink.
31139         Check for ssize_t overflow as well as size_t overflow,
31140         as POSIX says the result of readlink is implementation-defined
31141         when ssize_t overflows.
31142         Remove unnecessary cast to char*.
31143         Use free+malloc instead of realloc, as the storage doesn't need
31144         to be preserved and it's clearer and can be more efficient that way.
31145         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
31146         * lib/xreadlink.h (xreadlink): Update prototype.
31147
31148 2001-09-04  Paul Eggert  <eggert@twinsun.com>
31149
31150         * lib/xgetcwd.c: Revert some of the previous change; intead,
31151         fix the HAVE_GETCWD_NULL code to behave more like the
31152         !HAVE_GETCWD_NULL code used to.
31153
31154         Include "xalloc.h".
31155         (xgetcwd): Do not return NULL when memory is exhausted; instead,
31156         invoke xalloc_die.
31157
31158 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31159
31160         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
31161         sys/param.h, as pathmax.h includes them.
31162
31163 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31164
31165         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
31166         (jm_PREREQ_XGETCWD): New macro.
31167
31168         * m4/getcwd.m4: New file.
31169
31170 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31171
31172         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
31173         like the HAVE_GETCWD_NULL code.
31174         Include pathmax.h if not HAVE_GETCWD.
31175         Do not include xalloc.h.
31176         (INITIAL_BUFFER_SIZE): New symbol.
31177         Do not use xmalloc / xrealloc, since the caller is responsible for
31178         handling errors.  Preserve errno around `free' during failure.
31179         Do not overrun buffer when using getwd.
31180
31181 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31182
31183         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
31184         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
31185         getcwd (NULL, 0).
31186
31187 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31188
31189         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
31190         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
31191         spotted by Jim Meyering.
31192
31193 2001-09-03  Jim Meyering  <meyering@lucent.com>
31194
31195         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
31196         failure.
31197
31198 2001-09-02  Jim Meyering  <meyering@lucent.com>
31199
31200         * lib/error.c: Update from GNU libc.
31201
31202 2001-09-01  Jim Meyering  <meyering@lucent.com>
31203
31204         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
31205         Used by df.
31206
31207 2001-09-01  Jim Meyering  <meyering@lucent.com>
31208
31209         * lib/xreadlink.c: New file.
31210         * lib/xreadlink.h: New file.
31211         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
31212         xreadlink.h.
31213
31214         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
31215         doesn't conflict with sparc Solaris 7's definition in
31216         /usr/include/sys/int_types.h.
31217
31218         * lib/exclude.c: Use `""', not `<>' to #include non-system header
31219         files.
31220         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
31221         and strncasecmp as r-values.  Unixware didn't have declarations.
31222
31223 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31224
31225         * lib/xstrtol.h: Add copyright notice.
31226         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
31227         LONGINT_INVALID_SUFFIX_CHAR.
31228
31229 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31230
31231         * lib/xstrtol.c (strtoimax): New decl.
31232
31233 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31234
31235         * lib/xgetcwd.c: Don't include pathmax.h.
31236         Include stdlib.h and unistd.h if available.
31237         Include xalloc.h.
31238         (xmalloc, xstrdup, free): Remove decls.
31239         (xgetcwd): Don't assume sizes fit in unsigned.
31240         Check for overflow when computing sizes.
31241         Simplify reallocation code.
31242
31243 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31244
31245         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
31246         a directory's st_size can have an arbitrary value, so the old
31247         usage could waste an arbitrary amount of memory.  All uses
31248         changed.
31249         * lib/savedir.h: Update prototype.
31250
31251 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31252
31253         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
31254
31255         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
31256         old strtoimax.c.
31257
31258         Also, make the following further changes to make this file's
31259         configuration more similar to that of strtol.c:
31260         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
31261         (strtoumax, uintmax_t, strtoull, strtol): Remove.
31262         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
31263         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
31264         changed to signed values.
31265
31266         And make the following changes as well:
31267         Fix copyright notice, as 1999 was missing.
31268         (verify): New macro.
31269         (strtoimax): Check sizes at compile-time, not run-time.
31270         Prefer strtol to strtoll if both work.
31271         (main): Remove; it was not that useful and was a pain to maintain.
31272
31273         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
31274
31275 2001-08-31  Jim Meyering  <meyering@lucent.com>
31276
31277         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
31278         Use an initial, malloc'd, buffer of length 128 rather than
31279         a statically allocated one of length 1024.
31280
31281 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31282
31283         Simplify code, partly by assuming autoconf 2.52 semantics.
31284
31285         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
31286
31287         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
31288         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
31289         All uses removed.
31290         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
31291         Move AC_REQUIRE to next-to-top level, to avoid confusion.
31292         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
31293         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
31294         jm_AC_HEADER_INTTYPES_H.
31295         * m4/jm-macros.m4 (jm_MACROS): Likewise.
31296
31297         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
31298
31299         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
31300         Quote first arg of AC_DEFUN.
31301         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
31302         since they are needed to parse the include file even if we need
31303         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
31304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
31305         but with opposite signedness.
31306
31307 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31308
31309         Merge 'exclude' changes from tar 1.13.22.
31310         This fixes one or two unlikely storage allocation overflow bugs,
31311         but doesn't change user-visible behavior otherwise.
31312
31313 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31314
31315         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
31316         (jm_PREREQ_EXCLUDE): New macro.
31317
31318 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31319
31320         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
31321         tm to be declared.
31322
31323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31324
31325         * lib/hash.c: Remove '2001' from copyright notice.
31326
31327 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31328
31329         * lib/full-write.h: New file.
31330         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
31331         * lib/full-write.c: Correct credits, as cccp.c no longer
31332         exists and anyway it was so heavily changed from the old cccp
31333         code as to be unrecognizable.  Include full-write.h.
31334         (full_write) Return size_t, with short writes meaning failure.
31335         All callers changed.  This fixes a bug with large buffers
31336         on 64-bit hosts.
31337         * lib/utime.c: Include full-write.h.
31338
31339 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31340
31341         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
31342         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
31343         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
31344         Include if available.
31345         (<xalloc.h>): Include
31346         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
31347         (verify): New macro.  Use it to verify that EXCLUDE macros do not
31348         collide with FNM macros.
31349         (struct patopts): New struct.
31350         (struct exclude): Use it, as exclude patterns now come with options.
31351         (new_exclude): Support above changes.
31352         (new_exclude, add_exclude_file):
31353         Initial size must now be a power of two to simplify overflow checking.
31354         (free_exclude, fnmatch_no_wildcards): New function.
31355         (excluded_filename): No longer requires options arg, as the options
31356         are determined by add_exclude.  Now returns bool, not int.
31357         (excluded_filename, add_exclude):
31358         Add support for the fancy new exclusion options.
31359         (add_exclude, add_exclude_file): Now takes int options arg.
31360         Check for arithmetic overflow when computing sizes.
31361         (add_exclude_file): xrealloc might modify errno, so don't
31362         realloc until after errno might be used.
31363
31364         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
31365         New macros.
31366         (free_exclude): New decl.
31367         (add_exclude, add_exclude_file): Now takes int options arg.
31368         (excluded_filename): No longer requires options arg, as the options
31369         are determined by add_exclude.  Now returns bool, not int.
31370
31371 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31372
31373         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
31374
31375 2001-08-27  Jim Meyering  <meyering@lucent.com>
31376
31377         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
31378
31379         * lib/version-etc.c (N_): Remove definition.
31380         Revert most of last change.
31381         Instead, simply don't mark the `Copyright...' string for translation.
31382         Based on advice from Paul Eggert.
31383
31384         * lib/strtoxmax.c: Tweak comment.
31385
31386 2001-08-26  Jim Meyering  <meyering@lucent.com>
31387
31388         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
31389
31390         * m4/xstrtoimax.m4: New file.
31391         * m4/xstrtoumax.m4: Add comments explaining why we
31392         AC_REPLACE_FUNCS(strtol).
31393
31394 2001-08-26  Jim Meyering  <meyering@lucent.com>
31395
31396         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
31397         of copyright with `%s' so translators don't get an untranslated
31398         message in 2002.
31399         (COPYRIGHT_YEAR): Define.
31400         (version_etc): Use fprintf rather than fputs.
31401         Suggestion from Ulrich Drepper.
31402
31403         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
31404
31405         * lib/strtoll.c: New file, from GNU libc.
31406         * lib/xstrtoimax.c: New file.
31407
31408         * lib/xstrtol.h: Add xstrtoimax.
31409         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
31410         * lib/strtoimax.c: New file.  Likewise, but first define
31411         STRTOUXMAX_SIGNED.
31412
31413         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
31414         ...
31415         * lib/strtoxmax.c: ... then renamed to this.
31416
31417 2001-08-18  Paul Eggert  <eggert@twinsun.com>
31418
31419         * m4/inttypes.m4: Add AC_PREREQ(2.13).
31420         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
31421         (jm_AC_TYPE_INTMAX_T): New macro.
31422         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
31423
31424         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
31425
31426         * m4/longlong.m4: Renamed from ulonglong.m4.
31427         * m4/inttypes.m4: Renamed from inttypes_h.m4.
31428         * m4/uintmax_t.m4: Removed.
31429
31430 2001-08-13  Paul Eggert  <eggert@twinsun.com>
31431
31432         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
31433         Port to Solaris 8, where 'sed' requires a space after the 'r'
31434         command, and where sh dislikes "$/".  Clean up the spacing a bit.
31435         Redirect output to $tmp just once.
31436
31437 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
31438
31439         * lib/addext.c (<errno.h>): Include.
31440         (errno): Declare if not defined.
31441         (addext): Work correctly when pathconf returns -1 and leaves
31442         errno alone because there is no limit.  Also, work even if
31443         pathconf returns a value greater than SIZE_MAX.
31444
31445 2001-08-12  Jim Meyering  <meyering@lucent.com>
31446
31447         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
31448         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
31449         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
31450         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
31451         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
31452         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
31453         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
31454         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
31455         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
31456         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
31457         utime.m4, utimes.m4, xstrtoumax.m4:
31458         Quote the first argument in each use of AC_DEFUN.
31459
31460 2001-08-12  Jim Meyering  <meyering@lucent.com>
31461
31462         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
31463         Simply `return getcwd (NULL, 0);'.
31464         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
31465         Use 1300 as initial value for length, not PATH_MAX.
31466
31467         * lib/pathmax.h: Clean up cpp syntax.
31468
31469 2001-08-12  Jim Meyering  <meyering@lucent.com>
31470
31471         * lib/gettimeofday.c: New file.
31472         * lib/gtod.h: New file.
31473         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
31474
31475 2001-08-05  Jim Meyering  <meyering@lucent.com>
31476
31477         * m4/jm-macros.m4: Require autoconf-2.52.
31478
31479 2001-08-04  Jim Meyering  <meyering@lucent.com>
31480
31481         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
31482         stmt, to get in sync with glibc.
31483
31484 2001-08-03  Paul Eggert  <eggert@twinsun.com>
31485
31486         The following changes are from gettext 0.10.39 as maintained by
31487         Bruno Haible.
31488
31489         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
31490         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
31491         with inverted sense.  All uses changed.
31492
31493         * lib/mbswidth.c: Don't include <limits.h>.
31494         Include <stdlib.h> and <string.h> unconditionally.
31495         (iswcntrl, mbsinit, ISCNTRL): New macros.
31496         (mbsnwidth): Use K&R style function declarations.
31497         Don't bother checking for MB_LEN_MAX == 1, since the compiler
31498         can optimize it when MB_CUR_MAX == 1.
31499         The width of control characters is zero, not 1.
31500
31501 2001-08-03  Paul Eggert  <eggert@twinsun.com>
31502
31503         The following changes are from gettext 0.10.39 as maintained by
31504         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
31505
31506         * m4/codeset.m4: Upgrade to serial AM1.
31507         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
31508         all uses changed.  Quote first arg of AC_DEFUN.
31509         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
31510
31511         * m4/iconv.m4: Upgrade to serial AM2.
31512         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
31513         Add --with-libconv-prefix.
31514         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
31515         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
31516         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
31517         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
31518         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
31519
31520         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
31521         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
31522         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
31523         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
31524         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
31525         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
31526         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31527         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
31528         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
31529
31530         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
31531         string.h any more.
31532
31533         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
31534         not the default value.
31535
31536         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
31537         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
31538         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
31539         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
31540         Also check for iswcntrl, used for wcwidth fallback.
31541         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
31542         to Autoconf 2.13.
31543
31544 2001-08-03  Jim Meyering  <meyering@lucent.com>
31545
31546         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
31547         as it was in the original.  Reported by Paul Eggert.
31548
31549 2001-07-16  Jim Meyering  <meyering@lucent.com>
31550
31551         * m4/gettimeofday.m4: New file.
31552         Prompted by a report from Bernhard Baehr.
31553
31554 2001-07-15  Jim Meyering  <meyering@lucent.com>
31555
31556         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
31557         stuff. Now it's in ../Makefile.cfg.
31558
31559 2001-07-15  Jim Meyering  <meyering@lucent.com>
31560
31561         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
31562         (BUILT_SOURCES): Add unlocked-io.h.
31563         (io_functions): Define.
31564         (unlocked-io.h): New rule.
31565         (DISTCLEANFILES): Add unlocked-io.h.
31566         (all-local): Depend on unlocked-io.h, to ensure it is created.
31567
31568         * lib/unlocked-io.hin: New file
31569
31570         * lib/regex.c: Update from glibc.
31571
31572 2001-07-05  Jim Meyering  <meyering@lucent.com>
31573
31574         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
31575         recommendation.
31576         (libfetish_a_SOURCES): Put all .h files here instead.
31577         Remove a thus-exposed (better checks in automake) duplicate and
31578         two unnecessary .h files.
31579
31580 2001-07-04  Jim Meyering  <meyering@lucent.com>
31581
31582         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
31583         that generates jm-glibc-io.m4 so that it doesn't trigger any make
31584         distcheck failure.
31585
31586 2001-07-02  Jim Meyering  <meyering@lucent.com>
31587
31588         The following changes were prompted by suggestions from Bruno Haible.
31589
31590         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
31591         is now generated.
31592         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
31593         definition of EXTRA_DIST.
31594         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
31595         ensure that the generated file is created/updated whenever the list
31596         of $(unlocked_functions) is changed.
31597         (jm-glibc-io.m4): New rule.
31598         (unlocked-io.h): New rule -- currently unused.
31599
31600 2001-06-24  Jim Meyering  <meyering@lucent.com>
31601
31602         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
31603         unmatched right bracket, rather than kludging it with an extra,
31604         falsely-matching quote in a comment.  Patch by Akim Demaille.
31605
31606 2001-06-11  Jim Meyering  <meyering@lucent.com>
31607
31608         * lib/regex.c: Update from GNU libc.
31609
31610 2001-05-27  Jim Meyering  <meyering@lucent.com>
31611
31612         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
31613         Check for ut_type in struct utmp.
31614
31615 2001-05-27  Jim Meyering  <meyering@lucent.com>
31616
31617         * lib/readutmp.h (UT_TYPE): Define.
31618
31619 2001-05-24  Jim Meyering  <meyering@lucent.com>
31620
31621         * lib/argmatch.c: Include "quote.h".
31622         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
31623         quote function.  Reported by Göran Uddeborg.
31624
31625 2001-05-22  Jim Meyering  <meyering@lucent.com>
31626
31627         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
31628         now that we use the package-supplied version unconditionally.
31629         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
31630
31631 2001-05-21  Jim Meyering  <meyering@lucent.com>
31632
31633         * m4/regex.m4: Change a couple backticks to single quotes to avoid
31634         shell syntax errors.
31635
31636 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
31637
31638         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
31639
31640 2001-05-20  Paul Eggert  <eggert@twinsun.com>
31641
31642         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
31643         Don't bother to check library strftime, since
31644         we'll be using our own my_strftime function anyway.
31645         Define my_strftime instead of strftime.
31646
31647 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
31648
31649         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
31650         which is not yet declared.
31651
31652 2001-05-15  Jim Meyering  <meyering@lucent.com>
31653
31654         * m4/regex.m4: Use proper quoting so brackets appear in the test
31655         program.
31656         Reported by, and with help from, Bruno Haible.
31657
31658 2001-05-13  Jim Meyering  <meyering@lucent.com>
31659
31660         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
31661         undefined.
31662
31663 2001-05-11  Paul Eggert  <eggert@twinsun.com>
31664
31665         dirname code cleanup.  base_name now behaves more compatibly
31666         with POSIX basename when given file names that have trailing
31667         slashes, and similarly for dir_name.  Add new primitives
31668         base_len and dir_len.  Put the directory-name-related decls
31669         into dirname.h.
31670
31671         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
31672         * lib/backupfile.c (base_name): Likewise.
31673         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
31674         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
31675         * lib/makepath.c (strip_trailing_slashes): Likewise.
31676         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
31677         ISSLASH): Likewise.
31678         * lib/rename.c (strip_trailing_slashes): Likewise.
31679         * lib/same.c (base_name): Likewise.
31680         * lib/stripslash.c (ISSLASH): Likewise.
31681
31682         * lib/addext.c: Include <dirname.h> after size_t is defined.
31683         * lib/backupfile.c: Likewise.
31684
31685         * lib/addext.c (addext): Use base_len to trim redundant
31686         trailing slashes instead of doing it ourselves.
31687         But do not trim the last slash if it is not redundant.
31688
31689         * lib/backupfile.c (find_backup_file_name,
31690         max_backup_version): Use base_len instead of rolling it ourselves.
31691         Handle the case of "" and (on DOS) "C:" correctly.
31692
31693         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
31694         needed. Include <string.h>, <dirname.h>.
31695         (base_name): Allow file names ending in slashes, other than names
31696         that are all slashes.  In this case, return the basename followed
31697         by the slashes.  This is more general, and can be used in places
31698         where the original base_name purposely had an assertion failure.
31699         (base_len): New function.
31700
31701         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
31702         Do not include <assert.h>; no longer needed.
31703         Include xalloc.h.
31704         (memrchr): Remove decl.
31705         (dir_name_r): Remove.
31706         (dir_len): Renamed from dirlen.  All callers changed.
31707         Rewrite in terms of base_name, for simplicity and consistency.
31708         (dir_name): Never return NULL.  All callers changed.
31709         Do not include <stdlib.h> in test program; no longer needed.
31710         return 0; is fine for test program.
31711
31712         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
31713         New macros.
31714         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
31715
31716         * lib/path-concat.c (path_concat): Use base_len to compute
31717         base length, not strlen; this means we cannot rely on memcpy
31718         to null-terminate.
31719
31720         * lib/same.c (STREQ): Remove.
31721         (same_name): Handle the case where the basename ends in trailing '/'.
31722
31723         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
31724         a slash was stripped.  Do not strip the last slash after a
31725         file system prefix.
31726
31727 2001-05-11  Paul Eggert  <eggert@twinsun.com>
31728
31729         * lib/Makefile.am (libfetish_a_SOURCES):
31730         Add strftime.c, since we now compile it on all hosts.
31731
31732         * lib/strftime.c (my_strftime):
31733         Define to nstrftime if emacs, but only if my_strftime is not defined.
31734         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
31735         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
31736         Add one more extra argument: a nanoseconds value.
31737         All uses changed.
31738         (ns): New macro.
31739         (my_strftime function): Add %N format.
31740         (emacs_strftimeu): Renamed from emacs_strftime,
31741         with extra ut argument.
31742
31743 2001-05-09  Paul Eggert  <eggert@twinsun.com>
31744
31745         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
31746
31747 2001-04-21  Jim Meyering  <meyering@lucent.com>
31748
31749         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
31750         doesn't interfere.
31751
31752 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
31753
31754         * m4/ftruncate.m4: Check for chsize.
31755         Link with ftruncate.o unconditionally if ftruncate is missing.
31756         This was required when cross-compiling to i586-mingw32msvc.
31757
31758 2001-04-08  Jim Meyering  <meyering@lucent.com>
31759
31760         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
31761         recomputed; that's necessary when the offset spans a DST transition.
31762         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
31763
31764 2001-04-02  Jim Meyering  <meyering@lucent.com>
31765
31766         * lib/regex.h, regex.c: Update from GNU libc.
31767
31768 2001-03-24  Jim Meyering  <meyering@lucent.com>
31769
31770         * m4/jm-macros.m4: Require autoconf-2.49d.
31771
31772 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
31773
31774         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
31775
31776 2001-03-19  Paul Eggert  <eggert@twinsun.com>
31777
31778         * lib/version-etc.c (version_etc_copyright): Update to 2001.
31779
31780 2001-03-17  Jim Meyering  <meyering@lucent.com>
31781
31782         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
31783         now that the version in autoconf is equivalent.
31784         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
31785
31786         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
31787         Suggestion from Akim Demaille.
31788
31789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
31790         (jm_PREREQ_TEMPNAME): New function.
31791
31792 2001-03-16  Paul Eggert  <eggert@twinsun.com>
31793
31794         * lib/tempname.c (uint64_t): Define to uintmax_t if
31795         not defined, and if UINT64_MAX is not defined.
31796         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
31797         Reported by John David Anglin.
31798
31799 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
31800
31801         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
31802         resolve alias if codeset is empty.
31803         * lib/config.charset (BeOS): Use wildcard syntax.
31804
31805 2001-03-13  Jim Meyering  <meyering@lucent.com>
31806
31807         * lib/path-concat.c (path_concat)
31808         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
31809         concatenating e.g., `C:' and `foo'.
31810         From Bruno Haible.
31811
31812 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
31813
31814         * lib/localcharset.c (locale_charset): Don't use
31815         setlocale(LC_CTYPE,NULL). Don't return NULL.
31816         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
31817
31818 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
31819
31820         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
31821         support for DOS/DJGPP.
31822
31823 2001-03-01  Paul Eggert  <eggert@twinsun.com>
31824
31825         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
31826         lacks mkstemp.  Compile our own tempname.c if we compile our own
31827         mkstemp.c, as mkstemp relies on tempname.
31828
31829 2001-03-01  Jim Meyering  <meyering@lucent.com>
31830
31831         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
31832         AH_VERBATIM really does output its argument verbatim.
31833
31834 2001-02-28  Paul Eggert  <eggert@twinsun.com>
31835
31836         * lib/Makefile.am (libfetish_a_SOURCES):
31837         Add dup-safer.c, fopen-safer.c.
31838         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
31839
31840         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
31841         * lib/unistd-safer.h: New files.
31842
31843 2001-02-25  Paul Eggert  <eggert@twinsun.com>
31844
31845         The mkstemp replacement is taken from glibc 2.2.2, with some
31846         portability fixes for use outside glibc, as follows:
31847
31848         * lib/tempname.c (struct_stat64): New macro.
31849         (direxists, __gen_tempname): Use it.
31850         This avoids a portability problem with Solaris 8.
31851
31852         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
31853         (<stddef.h>, <stdint.h>, <string.h>):
31854         Include only if STDC_HEADERS || _LIBC.
31855         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
31856         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
31857         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
31858         (__set_errno): Define this macro if <errno.h> doesn't.
31859         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
31860         Define these macros if <stdio.h> doesn't.
31861         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
31862         Define these macros if <sys/stat.h>
31863         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
31864         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
31865         __xstat64): Define if not _LIBC.
31866         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
31867         (__gen_tempname): Invoke gettimeofday only if
31868         HAVE_GETTIMEOFDAY || _LIBC;
31869         otherwise, fall back on plain "time".
31870         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
31871
31872         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
31873
31874         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
31875
31876 2001-02-18  Paul Eggert  <eggert@twinsun.com>
31877
31878         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
31879
31880 2001-02-17  Paul Eggert  <eggert@twinsun.com>
31881
31882         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
31883         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
31884         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
31885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
31886
31887 2001-02-17  Paul Eggert  <eggert@twinsun.com>
31888
31889         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
31890         Remove workaround macros for hosts that have mbrtowc but not
31891         mbstate_t, as we now insist on proper declarations for both
31892         before using mbrtowc.
31893
31894 2001-02-17  Jim Meyering  <meyering@lucent.com>
31895
31896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
31897         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
31898         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
31899         UnixWare 7.1.1.
31900
31901         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
31902         rather than AC_CACHE_VAL.
31903
31904 2001-02-17  Jim Meyering  <meyering@lucent.com>
31905
31906         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
31907         around included file name.
31908
31909         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
31910
31911         * lib/strftime.c: Update from GNU libc (the only changes were to
31912         comments).
31913
31914 2001-02-17  Jim Meyering  <meyering@lucent.com>
31915
31916         * lib/regex.c: Update from libc.
31917
31918 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
31919
31920         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
31921         clash.
31922
31923 2001-02-16  Paul Eggert  <eggert@twinsun.com>
31924
31925         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
31926         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
31927         Reported by Mark Hounschell via Paul Eggert.
31928
31929 2001-02-07  Jim Meyering  <meyering@lucent.com>
31930
31931         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
31932
31933 2001-02-05  Jim Meyering  <meyering@lucent.com>
31934
31935         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
31936         it includes the patch required for `large file' support with at least
31937         HP-UX's 10.20 /bin/cc.
31938
31939 2001-02-03  Jim Meyering  <meyering@lucent.com>
31940
31941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
31942         AS_IF, now that it works once again (mysteriously).
31943         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
31944
31945 2001-01-30  Jim Meyering  <meyering@lucent.com>
31946
31947         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
31948         * m4/chown.m4: Rename conftestchown to conftest.chown.
31949         * m4/rename.m4: s/conftestdir/conftest.d1/ and
31950         s/conftestdir2/conftest.d2/.
31951         * m4/utimes.m4: s/conftestdata/conftest.data/
31952         Inspired by Pavel Roskin's change in autoconf.
31953
31954 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
31955
31956         * lib/config.charset: Update for FreeBSD 4.2.
31957
31958 2001-01-27  Jim Meyering  <meyering@lucent.com>
31959
31960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
31961         a use of AS_IF.
31962         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
31963
31964 2001-01-26  Jim Meyering  <meyering@lucent.com>
31965
31966         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
31967         quotearg.c includes it.
31968
31969 2001-01-26  Jim Meyering  <meyering@lucent.com>
31970
31971         * lib/quotearg.c: Include stddef.h.
31972         * lib/quote.c: Include stddef.h.
31973         Reported by Axel Kittenberger.
31974
31975         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
31976         line in double quotes so that it evokes a better diagnostic.
31977         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
31978         Reported by Axel Kittenberger.
31979
31980 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
31981
31982         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
31983         as if it was a `charset'.
31984
31985 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
31986
31987         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
31988         has const.
31989
31990 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
31991
31992         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
31993         to avoid a warning.  Add back 'const' to inptr.
31994
31995 2001-01-20  Jim Meyering  <meyering@lucent.com>
31996
31997         Be sure that headers are checked before used in code compiled
31998         for the type checks.
31999         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
32000         In place of that, invoke jm_CHECK_ALL_TYPES.
32001         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
32002         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
32003         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
32004         The check for ssize_t was mistakenly run before the test for unistd.h.
32005
32006         The configure-time check for stdbool.h was missing.
32007         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
32008         (jm_PREREQ_HASH): New function.
32009
32010 2001-01-17  Jim Meyering  <meyering@lucent.com>
32011
32012         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
32013         for autoconf-2.49c.
32014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
32015
32016 2001-01-16  Jim Meyering  <meyering@lucent.com>
32017
32018         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
32019         From Bruno Haible.
32020
32021 2001-01-14  Jim Meyering  <meyering@lucent.com>
32022
32023         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
32024         foo and bar.  Create conftestdir/ in the script, not in the C code.
32025         Remove directories in the script, not in the C code.
32026         Remove conftestdir{,2} before trying to create the directory.
32027         Make the entire configure script fail if the mkdir fails.
32028
32029 2001-01-14  Jim Meyering  <meyering@lucent.com>
32030
32031         * lib/rename.c: New file.  From Volker Borchert.
32032         Include stdlib.h, string.h or strings.h, and xalloc.h.
32033         Use strip_trailing_slashes rather than open-coding it.
32034
32035 2001-01-03  Paul Eggert  <eggert@twinsun.com>
32036
32037         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
32038
32039 2001-01-03  Jim Meyering  <meyering@lucent.com>
32040
32041         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
32042         of local `inptr' to avoid warning with some system declarations of
32043         iconv.
32044
32045 2001-01-02  Volker Borchert  <bt@teknon.de>
32046
32047         * m4/rename.m4: New file.
32048         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
32049
32050 2001-01-01  Jim Meyering  <meyering@lucent.com>
32051
32052         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
32053         even on systems with utmpx.h.  It's necessary for the declaration of
32054         utmp's ut_user member.  Reported by Andreas Jaeger.
32055
32056         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
32057         available. They are required for the declarations of getgrgid and
32058         getpwuid resp.
32059         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
32060         Reported by Andreas Jaeger.
32061
32062 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
32063
32064         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
32065         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
32066         so `make install' also works in VPATH builds.
32067
32068 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
32069
32070         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
32071         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
32072         can be used in subdirectories.
32073
32074 2000-12-29  Paul Eggert  <eggert@twinsun.com>
32075
32076         * lib/modechange.c: Do not assume that mode_t uses the
32077         traditional octal encoding.  E.g. "chmod 1 FOO" should set
32078         the other-execute bit of FOO even if S_IXOTH != 1.
32079
32080         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
32081         WOTH, XOTH, ALLM): New macros.
32082         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
32083          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
32084         Use them.
32085         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
32086         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
32087         (mode_compile):
32088         No need to use uintmax_t; unsigned long is long enough.
32089         Don't bother to get suffix since we don't use it.
32090
32091 2000-12-26  Jim Meyering  <meyering@lucent.com>
32092
32093         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
32094         better with autoheader.
32095
32096 2000-12-24  Jim Meyering  <meyering@lucent.com>
32097
32098         * lib/hash.c (is_prime): Return explicit boolean values.
32099         (hash_get_first): Return NULL to appease Irix5.6's 89.
32100         Reported by Nelson Beebe.
32101
32102 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
32103
32104         * lib/localcharset.c (locale_charset): Add support for Win32.
32105
32106 2000-12-18  Paul Eggert  <eggert@twinsun.com>
32107
32108         * lib/physmem.h, lib/physmem.c: New files.
32109
32110         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
32111         (noinst_HEADERS): Add physmem.h.
32112
32113         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
32114         't' for compatibility with Solaris 8 sort.
32115
32116 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
32117
32118         * lib/config.charset: Add support for BeOS.
32119
32120 2000-12-17  Jim Meyering  <meyering@lucent.com>
32121
32122         * m4/dos.m4 (jm_AC_DOS): New file and macro.
32123         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
32124
32125 2000-12-16  Jim Meyering  <meyering@lucent.com>
32126
32127         This bug had a serious impact on chown: `chown N:M FILE' (for integer
32128         N and M) would have treated it like `chown N:N FILE'.
32129
32130         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
32131
32132 2000-12-16  Jim Meyering  <meyering@lucent.com>
32133
32134         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
32135         SHELLS_FILE to a file name that's useful on djgpp systems.
32136         Include stdlib.h.
32137         (ADDITIONAL_DEFAULT_SHELLS): Define.
32138         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
32139         Based mostly on a patch from Prashant TR.
32140
32141 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
32142
32143         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
32144         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
32145         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
32146
32147 2000-12-08  Andreas Schwab  <schwab@suse.de>
32148
32149         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
32150         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
32151
32152 2000-12-07  Jim Meyering  <meyering@lucent.com>
32153
32154         * lib/stripslash.c (ISSLASH): Define.
32155         (strip_trailing_slashes): Use ISSLASH rather than comparing against
32156         `/'.
32157         From Prashant TR.
32158
32159         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
32160         (dir_name_r): Declare this function as static.
32161         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
32162         manifest itself on a name containing a mix of slashes and
32163         backslashes.
32164         Make this function work with names starting with a DOS-style
32165         drive letter and colon prefix.
32166         (dir_name): Append `.' if necessary.
32167         Based mostly on patches from Prashant TR and Eli Zaretskii.
32168
32169         * lib/dirname.h (dir_name_r): Remove prototype.
32170
32171 2000-12-06  Paul Eggert  <eggert@twinsun.com>
32172
32173         * m4/off_t-format.m4: Remove this file.
32174         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
32175
32176 2000-12-06  Jim Meyering  <meyering@lucent.com>
32177
32178         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
32179         replacement strtoull, we may well need the replacement strtoul, too.
32180         Check for declarations of strtoul and strtoull.
32181         Check for strtol.  Mainly as a cue to cause automake to include
32182         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
32183         Check for limits.h -- strtol.c needs it.
32184
32185 2000-12-05  Jim Meyering  <meyering@lucent.com>
32186
32187         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
32188
32189 2000-12-04  Jim Meyering  <meyering@lucent.com>
32190
32191         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
32192         Also include memory.h, stdlib.h, unistd.h if appropriate.
32193         Reported by Andreas Jaeger (conflicting declaration of malloc).
32194
32195 2000-12-02  Jim Meyering  <meyering@lucent.com>
32196
32197         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
32198         * m4/jm-macros.m4 (jm_MACROS): require it.
32199
32200 2000-12-02  Jim Meyering  <meyering@lucent.com>
32201
32202         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
32203
32204 2000-12-01  Paul Eggert  <eggert@twinsun.com>
32205
32206         * lib/memrchr.c: Include <config.h> before any system include file.
32207
32208 2000-11-30  Jim Meyering  <meyering@lucent.com>
32209
32210         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
32211
32212 2000-11-30  Jim Meyering  <meyering@lucent.com>
32213
32214         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
32215
32216 2000-11-29  Paul Eggert  <eggert@twinsun.com>
32217
32218         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
32219
32220 2000-11-26  Jim Meyering  <meyering@lucent.com>
32221
32222         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
32223
32224 2000-11-22  Paul Eggert  <eggert@twinsun.com>
32225
32226         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
32227         size of (size_t) -1; it's not portable.
32228
32229 2000-11-17  Jim Meyering  <meyering@lucent.com>
32230
32231         * lib/strstr.c: Update from GNU libc.
32232
32233 2000-11-17  Akim Demaille  <akim@epita.fr>
32234
32235         * lib/obstack.h: Formatting changes.
32236         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
32237         prevent type checking.
32238         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
32239         cast the value to (void *): assigning a `foo *' to a `void *'
32240         variable is valid.
32241         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
32242
32243 2000-11-16  Jim Meyering  <meyering@lucent.com>
32244
32245         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
32246
32247 2000-11-11  Jim Meyering  <meyering@lucent.com>
32248
32249         * lib/error.c: Add a couple #includes, merging from GNU libc version.
32250
32251 2000-11-10  Jim Meyering  <meyering@lucent.com>
32252
32253         * lib/obstack.h: Update from GNU libc.
32254         * lib/obstack.c: Likewise.
32255
32256 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
32257
32258         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
32259
32260 2000-11-06  Paul Eggert  <eggert@twinsun.com>
32261
32262         * lib/getusershell.c (setusershell): Use rewind rather than
32263         fseek/fseeko, to avoid configuration hassles with fseeko.
32264         Don't bother opening SHELLS_FILE if shellstream is NULL;
32265         it's not necessary.
32266
32267 2000-11-05  Jim Meyering  <meyering@lucent.com>
32268
32269         * lib/makepath.h (make_dir): Declare.
32270         * lib/makepath.c (make_dir): Remove `static' attribute.
32271         Tweak a comment.
32272
32273 2000-11-04  Jim Meyering  <meyering@lucent.com>
32274
32275         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
32276
32277 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
32278
32279         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
32280         last one in a bucket, advance to the next bucket.
32281
32282 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
32283
32284         * lib/fnmatch.c: Do not comment out all the code if we are using
32285         the GNU C library, because in some cases we are replacing buggy
32286         code in the GNU C library itself.
32287
32288 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
32289
32290         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
32291         (regex_compile): Catch bogus \(\1\).
32292
32293 2000-10-30  Paul Eggert  <eggert@twinsun.com>
32294
32295         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
32296         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
32297         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
32298
32299 2000-10-30  Paul Eggert  <eggert@twinsun.com>
32300
32301         * lib/error.h, getline.h, modechange.h:
32302         Remove "2000" from Copyright line, as the file hasn't been
32303         changed this year other than in the copyright notice.
32304
32305         * lib/xalloc.h: Add "2000" to Copyright line, as this file
32306         was changed this year.
32307
32308 2000-10-29  Jim Meyering  <meyering@lucent.com>
32309
32310         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
32311         renaming.
32312         * m4/ls-mntd-fs.m4: Likewise
32313
32314 2000-10-29  Jim Meyering  <meyering@lucent.com>
32315
32316         * lib/xstat.in: Fix grammar in comment.
32317
32318 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
32319
32320         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
32321         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
32322         doesn't define __restrict_arr.
32323
32324 2000-10-28  Jim Meyering  <meyering@lucent.com>
32325
32326         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
32327         (jm_PREREQ_MEMCHR): New function.
32328
32329 2000-10-28  Jim Meyering  <meyering@lucent.com>
32330
32331         * lib/memchr.c: Update from libc.
32332         Adjust for portability:
32333         [HAVE_STDLIB_H]: Include stdlib.h.
32334         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
32335         Undef __memchr, too.
32336         [!weak_alias]: Define __memchr to memchr.
32337
32338         * lib/regex.c: Update from libc.
32339         * lib/regex.h: Likewise.
32340         * lib/getopt1.c: Likewise.
32341         * lib/memcmp.c: Likewise.
32342
32343         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
32344         Avoid using fseek, when possible -- it's broken by design.
32345         Patch by Ulrich Drepper.
32346
32347 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
32348
32349         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
32350         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
32351         Giving in to popular pressure to shut up the compiler with casts.
32352
32353 2000-10-26  Jim Meyering  <meyering@lucent.com>
32354
32355         * lib/strftime.c: Update from libc.
32356
32357 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
32358
32359         * regex.c: More `unsigned char' -> `re_char' changes.
32360         Also change several `int' into `re_wchar_t'.
32361         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
32362         (PUSH_FAILURE_POINTER): Don't cast any more.
32363         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
32364         We want GCC to complain, since this piece of code makes
32365         re_match non-reentrant, which *should* be fixed.
32366         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
32367         (EXTEND_BUFFER): Use RETALLOC.
32368         (SET_LIST_BIT): Don't cast.
32369         (re_wchar_t): New type.
32370         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
32371         that those two functions will always properly return.
32372         (IMMEDIATE_QUIT_CHECK): Cast to void.
32373         (analyse_first): Use recursion rather than an explicit stack.
32374         (re_compile_fastmap): Can't fail anymore.
32375         (re_search_2): Don't check re_compile_fastmap for failure.
32376         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
32377         Now also sets the new value (passed in a new argument).
32378         (re_match_2_internal): Use it.
32379         Also, use a new var `reg' of type size_t when looping through regs
32380         rather than reuse the inappropriate `mcnt'.
32381
32382 2000-10-25  Jim Meyering  <meyering@lucent.com>
32383
32384         * lib/obstack.c: Update from libc.
32385
32386 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
32387
32388         * regex.c (regex_compile): Change the way of handling a range from
32389         a char less than 256 to a char not less than 256.
32390
32391 2000-10-24  Andrew Innes  <andrewi@gnu.org>
32392
32393         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
32394         NT-Emacs only.
32395         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
32396         so that re_search functions only quit when callers expect them to.
32397
32398 2000-10-23  Jim Meyering  <meyering@lucent.com>
32399
32400         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
32401         wrong.  That set_locale call must not have any side effects.
32402         From Paul Eggert.
32403
32404 2000-10-22  Jim Meyering  <meyering@lucent.com>
32405
32406         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
32407         [CYCLIC]: Remove now-unused definition.
32408
32409         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
32410         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
32411         Suggestion from Ulrich Drepper.
32412
32413 2000-10-21  Jim Meyering  <meyering@lucent.com>
32414
32415         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
32416         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
32417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
32418
32419 2000-10-21  Jim Meyering  <meyering@lucent.com>
32420
32421         * lib/dirname.c (memrchr): Declare if necessary.
32422         (dir_name): Remove the restriction that there be no
32423         trailing slashes.  Now, this code skips past them, effectively
32424         ignoring them.
32425         [TEST_DIRNAME] (main): New unit tests.
32426
32427         * lib/memrchr.c: New file from GNU libc.
32428         Undef __memrchr, too.
32429         [!weak_alias]: Define __memrchr to memrchr.
32430         Guard weak_alias use with `#ifdef weak_alias'.
32431
32432 2000-10-21  Jim Meyering  <meyering@lucent.com>
32433
32434         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
32435         (dir_name): Use dir_name_r.
32436         * lib/dirname.h (dir_name_r): Declare it.
32437
32438 2000-10-17  Jim Meyering  <meyering@lucent.com>
32439
32440         * lib/quote.h (PARAMS): Define and use.
32441         Reported by Akim Demaille.
32442
32443         * lib/getopt.c: Update from libc.
32444
32445 2000-10-16  Jim Meyering  <meyering@lucent.com>
32446
32447         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
32448         setlocale.
32449         From Jan Fedak.
32450
32451 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
32452
32453         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
32454
32455 2000-09-25  Jim Meyering  <meyering@lucent.com>
32456
32457         * lib/md5.h (rol): Define (from GnuPG).
32458
32459         * lib/sha.c: Give credit (GnuPG) where due.
32460         (M): Use rol rather than open-coding it.
32461         Add a FIXME comment.
32462
32463 2000-09-21  Jim Meyering  <meyering@lucent.com>
32464
32465         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
32466         Reported by Michael Stone.
32467
32468 2000-09-20  Jim Meyering  <meyering@lucent.com>
32469
32470         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
32471         (noinst_HEADERS): Add sha.h.
32472         Based on code from Scott G. Miller and from GnuPG.
32473
32474 2000-09-18  Jim Meyering  <meyering@lucent.com>
32475
32476         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
32477         LIBS. Otherwise, everyone ends up linking with -lelf for some
32478         configurations.
32479         Reported by Mike Stone.
32480
32481 2000-09-15  Jim Meyering  <meyering@lucent.com>
32482
32483         * lib/regex.c: Update from libc.
32484
32485 2000-09-10  Jim Meyering  <meyering@lucent.com>
32486
32487         * lib/getopt.c (_getopt_internal): Update from glibc.
32488
32489 2000-09-09  Jim Meyering  <meyering@lucent.com>
32490
32491         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
32492         think it should be used as a general replacement for isascii.
32493         * lib/fnmatch.c: Likewise.
32494         * lib/mbswidth.c: Likewise
32495         * lib/regex.c: Likewise.
32496
32497         Don't use atoi.
32498         * lib/userspec.c: Include sys/param.h and limits.h.
32499         Include xstrtol.h.
32500         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
32501         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
32502         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
32503         UID, GID.  Check range.
32504
32505 2000-09-06  Jim Meyering  <meyering@lucent.com>
32506
32507         * lib/getopt.c (_getopt_internal): Update from glibc.
32508
32509 2000-08-30  Jim Meyering  <meyering@lucent.com>
32510
32511         * lib/strftime.c: Merge in changes from GNU libc.
32512
32513 2000-08-26  Jim Meyering  <meyering@lucent.com>
32514
32515         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
32516         * m4/fpending.m4: New file.
32517
32518 2000-08-26  Jim Meyering  <meyering@lucent.com>
32519
32520         * lib/closeout.c: Include "__fpending.h".
32521         (close_stdout_status): Return right away if there's nothing to flush.
32522
32523         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
32524         * lib/__fpending.c: New file.
32525         * lib/__fpending.h: New file.
32526
32527 2000-08-20  Jim Meyering  <meyering@lucent.com>
32528
32529         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
32530         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
32531         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
32532
32533 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
32534
32535         Improve fileutils installation on systems where running
32536         programs (like install) can't be unlinked.
32537         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
32538         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
32539
32540 2000-08-07  Paul Eggert  <eggert@twinsun.com>
32541
32542         Standardize on "memory exhausted" instead of "Memory exhausted"
32543         or "virtual memory exhausted".
32544         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
32545         "virtual memory exhausted".
32546         * lib/same.c (same_name): Invoke xalloc_die instead of printing
32547         our own message.
32548         * lib/userspec.c (parse_user_spec): Likewise.
32549         * lib/bumpalloc.h: comment fix
32550         * lib/same.c, userspec.c: Include xalloc.h.
32551
32552         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
32553         not char *const and pointing to a constant array.
32554         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
32555         (xrealloc): Comment fix.
32556
32557         * lib/userspec.c (parse_user_spec):
32558         Don't translate a message until just before returning,
32559         to avoid unnecessary translation.
32560
32561 2000-08-07  Jim Meyering  <meyering@lucent.com>
32562
32563         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
32564         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
32565         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
32566         getgroups.c, gethostname.c, getopt.h, group-member.c,
32567         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
32568         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
32569         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
32570         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
32571         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
32572         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
32573         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
32574         yesno.c: Back out Copyright date changes for each file with no change
32575         this year.  This eases coordination with other programs using the same
32576         source code modules.  From Paul Eggert.
32577
32578 2000-08-06  Paul Eggert  <eggert@twinsun.com>
32579
32580         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
32581         not char, for compatibility with glibc 2.1.3 strftime.c.
32582
32583 2000-08-03  Greg McGary  <greg@mcgary.org>
32584
32585         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
32586         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
32587         (EXTEND_BUFFER): Use them.
32588
32589 2000-08-01  Jim Meyering  <meyering@lucent.com>
32590
32591         * lib/dirname.c (ISSLASH): Define.
32592         (BACKSLASH_IS_PATH_SEPARATOR): Define.
32593         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
32594         both `\' and `/' may be use as path separators.
32595         Based on a patch from Prashant TR.
32596
32597 2000-07-31  Paul Eggert  <eggert@twinsun.com>
32598
32599         * lib/quotearg.c (quotearg_n_options): Don't make the initial
32600         slot vector a constant, since it might get modified.
32601
32602 2000-07-31  Jim Meyering  <meyering@lucent.com>
32603
32604         * lib/xmalloc.c: Use `virtual memory exhausted', not
32605         `Memory exhausted'.
32606         * lib/obstack.c (print_and_abort): Likewise.
32607
32608 2000-07-30  Paul Eggert  <eggert@twinsun.com>
32609
32610         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
32611         buffer, so that the caller can always quote one small
32612         component of a "memory exhausted" message in slot 0.
32613         From a suggestion by Jim Meyering.
32614
32615 2000-07-30  Jim Meyering  <meyering@lucent.com>
32616
32617         * lib/makepath.c (make_path): Quote the other instance, too.
32618
32619         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
32620         (STATIC_BUF_SIZE): Define.
32621         (quotearg_n_options): Use only statically allocated storage when
32622         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
32623         than STATIC_BUF_SIZE.
32624
32625 2000-07-29  Jim Meyering  <meyering@lucent.com>
32626
32627         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
32628         * lib/dirname.c (dir_name): Likewise.
32629
32630         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
32631         `/'.
32632
32633         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
32634         (dir_name): Assert that there are no trailing slashes.
32635
32636 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
32637
32638         * lib/mbswidth.h (mbswidth): Add a flags argument.
32639         (mbswidth): New declaration.
32640         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
32641         * lib/mbswidth.c (mbswidth): Add a flags argument.
32642         (mbsnwidth): New function.
32643
32644 2000-07-24  Jim Meyering  <meyering@lucent.com>
32645
32646         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
32647
32648 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32649
32650         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
32651
32652 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32653
32654         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
32655         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
32656         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
32657         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
32658         invoke multibyte primitives.
32659
32660 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32661
32662         * lib/quotearg.c:
32663         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
32664         so that mbstate_t is always defined.
32665
32666         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
32667         be 1 in at least one GCC installation, and this configuration
32668         error is likely to be common.  Ignoring MB_LEN_MAX hurts
32669         performance on hosts that have mbrtowc but have only unibyte
32670         locales, but I assume these hosts are rare.
32671
32672 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32673
32674         * lib/mbswidth.c (_XOPEN_SOURCE):
32675         Don't define; this causes problems on Solaris 7.
32676         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
32677
32678 2000-07-23  Jim Meyering  <meyering@lucent.com>
32679
32680         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
32681         too: getgrgid, getpwuid, getuid.
32682
32683 2000-07-23  Jim Meyering  <meyering@lucent.com>
32684
32685         * lib/basename.c (base_name): Add an assertion.
32686
32687 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
32688
32689         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
32690         shadow its mbsinit function.
32691
32692 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
32693
32694         * lib/mbswidth.h: New file.
32695         * lib/mbswidth.c: New file.
32696         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
32697         (noinst_HEADERS): Add mbswidth.h.
32698
32699 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
32700
32701         * lib/config.charset: Add support for FreeBSD. Improve support for
32702         HP-UX and IRIX 6.
32703
32704 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
32705
32706         * m4/mbswidth.m4: New file.
32707         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
32708
32709 2000-07-15  Jim Meyering  <meyering@lucent.com>
32710
32711         * lib/makepath.c: Include quote.h.
32712         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
32713         corresponding argument in a `quote (...)' call.
32714         Give better diagnostics.
32715
32716         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
32717         (noinst_HEADERS): Add quote.h.
32718
32719         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
32720         from tar's src/misc.c.
32721         * lib/quote.h: New file.  Prototypes for same.
32722
32723 2000-07-14  Paul Eggert  <eggert@twinsun.com>
32724
32725         From a suggestion by Bruno Haible.
32726         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
32727         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
32728         to decide whether to define the BeOS workaround macro;
32729         this adjusts to the change to AC_MBSTATE_T.
32730
32731 2000-07-14  Jim Meyering  <meyering@lucent.com>
32732
32733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
32734         jm_AC_TYPE_UINTMAX_T.
32735
32736 2000-07-13  Paul Eggert  <eggert@twinsun.com>
32737
32738         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
32739
32740         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
32741         quotearg_buffer_restyled): Add support for
32742         clocale_quoting_style.  Undo previous change to
32743         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
32744         and "{RIGHT QUOTATION MARK}" msgids.
32745
32746 2000-07-10  Paul Eggert  <eggert@twinsun.com>
32747
32748         From a suggestion by Bruno Haible.
32749         * m4/mbstate_t.m4 (AC_MBSTATE_T):
32750         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
32751         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
32752         and mbstate_t, to a single-part test that simply defines mbstate_t.
32753         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
32754         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
32755
32756 2000-07-10  Jim Meyering  <meyering@lucent.com>
32757
32758         * m4/strerror_r.m4: Mirror the correction made in autoconf.
32759
32760         * m4/gnu-source.m4: Output to confdefs.h directly.
32761         Suggestion from Akim Demaille.
32762
32763 2000-07-09  Paul Eggert  <eggert@twinsun.com>
32764
32765         The old behavior of quoting `like this' doesn't look good with
32766         newer, ISO-style fonts.  See:
32767         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
32768
32769         Instead, quote "like this" by default.  Let the translator
32770         tailor the locale-specific quoting behavior by providing
32771         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
32772
32773         * lib/quotearg.c (N_): New macro.
32774         (gettext_default): New function.
32775         (quotearg_buffer_restyled): Use
32776         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
32777         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
32778
32779 2000-07-09  Jim Meyering  <meyering@lucent.com>
32780
32781         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
32782         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
32783
32784         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
32785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
32786
32787 2000-07-09  Jim Meyering  <meyering@lucent.com>
32788
32789         * lib/Most files: Update copyright dates to include 2000.
32790
32791 2000-07-08  Jim Meyering  <meyering@lucent.com>
32792
32793         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
32794         if not defined.
32795         (xgethostname): Remove now-unnecessary #ifdef.
32796         Move declaration of `err' into loop where it's used.
32797
32798 2000-07-05  Paul Eggert  <eggert@twinsun.com>
32799         and Bruno Haible  <haible@clisp.cons.org>
32800
32801         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
32802         only if the test for an object-type mbstate_t fails.  This
32803         prevents us from mistakenly reporting that mbstate_t is a
32804         system object type after we "#define mbstate_t int" to work
32805         around its lack.
32806
32807 2000-07-05  Paul Eggert  <eggert@twinsun.com>
32808         and Bruno Haible  <haible@clisp.cons.org>
32809
32810         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
32811
32812 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32813
32814         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
32815         to strerror_r.
32816         Include <ctype.h> for use of isalpha.
32817
32818 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32819
32820         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
32821         by allocating a larger buffer. Test the gethostname return value for
32822         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
32823         returns an error and ENAMETOOLONG isn't defined.
32824
32825 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32826
32827         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
32828         dimension.
32829
32830 2000-07-04  Jim Meyering  <meyering@lucent.com>
32831
32832         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
32833         of the deprecated AC_CHECKING.
32834
32835 2000-07-04  Jim Meyering  <meyering@lucent.com>
32836
32837         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
32838         Reported by Bruno Haible.
32839
32840 2000-07-04  Jim Meyering  <meyering@lucent.com>
32841
32842         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
32843         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
32844         lacks mbrtowc.
32845
32846 2000-07-03  Paul Eggert  <eggert@twinsun.com>
32847
32848         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
32849         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
32850
32851 2000-07-03  Paul Eggert  <eggert@twinsun.com>
32852         and Bruno Haible  <haible@clisp.cons.org>
32853
32854         * lib/quotearg.c (mbrtowc):
32855         Assign to *pwc, and return 1 only if result is nonzero.
32856         (iswprint): Use ISPRINT when substituting our own mbrtowc.
32857
32858 2000-07-03  Jim Meyering  <meyering@lucent.com>
32859
32860         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
32861
32862 2000-07-03  Jim Meyering  <meyering@lucent.com>
32863
32864         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
32865         This is necessary to get a definition of e.g., UTMP_FILE on
32866         HP-UX 10.20.
32867         From Bob Proulx.
32868
32869 2000-07-02  Jim Meyering  <meyering@lucent.com>
32870
32871         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
32872
32873         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
32874         AC_LIBOBJ(function_name).
32875         * m4/chown.m4: Likewise.
32876         * m4/fnmatch.m4: Likewise.
32877         * m4/ftruncate.m4: Likewise.
32878         * m4/getgroups.m4: Likewise.
32879         * m4/getline.m4: Likewise.
32880         * m4/group-member.m4: Likewise.
32881         * m4/jm-macros.m4: Likewise.
32882         * m4/lstat.m4: Likewise.
32883         * m4/malloc.m4: Likewise.
32884         * m4/memcmp.m4: Likewise.
32885         * m4/nanosleep.m4: Likewise.
32886         * m4/putenv.m4: Likewise.
32887         * m4/realloc.m4: Likewise.
32888         * m4/regex.m4: Likewise.
32889         * m4/stat.m4: Likewise.
32890         * m4/strftime.m4: Likewise.
32891
32892 2000-07-02  Jim Meyering  <meyering@lucent.com>
32893
32894         * lib/quotearg.c (mbstate_t): Don't define here.
32895
32896 2000-07-02  Jim Meyering  <meyering@lucent.com>
32897
32898         * lib/nanosleep.c (SIGCONT): Define if not already defined.
32899
32900 2000-07-01  Jim Meyering  <meyering@lucent.com>
32901
32902         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
32903
32904 2000-07-01  Jim Meyering  <meyering@lucent.com>
32905
32906         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
32907         problem.
32908
32909 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
32910
32911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
32912         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
32913
32914 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
32915
32916         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
32917         per change in ../m4/ls-mntd-fs.m4.
32918         (read_filesystem_list): Ignore symbolic links.
32919
32920 2000-06-29  Jim Meyering  <meyering@lucent.com>
32921
32922         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
32923         for declaration of strcmp.
32924
32925         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
32926
32927         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
32928         Avoid warning by casting result to `char *' to remove `const'.
32929
32930 2000-06-28  Jim Meyering  <meyering@lucent.com>
32931
32932         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
32933         included by quotearg.c, for which we perform this test.  From
32934         Bruno Haible.
32935
32936 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
32937
32938         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
32939         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
32940         <utmpx.h> exists, put readutmp.o into LIBOBJS.
32941
32942 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
32943
32944         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
32945
32946 2000-06-26  Paul Eggert  <eggert@twinsun.com>
32947
32948         savedir now sets errno on failure and invokes xmalloc to get memory.
32949         Fix a couple of other minor bugs while we're at it.
32950
32951         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
32952         (NAMLEN): Remove macro.
32953         (malloc, realloc): Remove decls.
32954         (stpcpy): Likewise.
32955         ("xalloc.h"): Include.
32956         (NAME_SIZE_DEFAULT): New macro.
32957         (savedir): Use xmalloc / xrealloc to allocate memory.
32958         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
32959         Skip "" directory entries.
32960         Use strlen to calculate directory entry length, since the old method
32961         is rarely used these days and isn't worth supporting.
32962         Don't use a pointer after freeing it.
32963         Check for integer overflow when calculating allocation size.
32964         Use memcpy to copy entries, instead of stpcpy.
32965         Set errno properly when returning NULL.
32966         Check for readdir error.
32967
32968 2000-06-26  Jim Meyering  <meyering@lucent.com>
32969
32970         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
32971
32972 2000-06-25  Jim Meyering  <meyering@lucent.com>
32973
32974         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
32975         Linux header bug when _XOPEN_SOURCE is defined to 500.
32976
32977 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
32978
32979         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
32980         deficiency.
32981
32982 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
32983
32984         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
32985         Include xalloc.h.
32986         Don't include <stdlib.h>.  Don't declare malloc, realloc.
32987
32988 2000-06-24  Jim Meyering  <meyering@lucent.com>
32989
32990         * m4/strerror_r.m4: Revive this file -- to try out an experimental
32991         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
32992         for which strerror does return char*, but which lacks a conveniently
32993         accessible declaration of the function.  If the compile-test says
32994         strerror_r doesn't work, then resort to a `run'-test that works on
32995         BeOS and segfaults on DEC Unix.
32996
32997 2000-06-24  Jim Meyering  <meyering@lucent.com>
32998
32999         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
33000
33001 2000-06-23  Paul Eggert  <eggert@twinsun.com>
33002
33003         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
33004         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
33005
33006 2000-06-23  Paul Eggert  <eggert@twinsun.com>
33007
33008         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
33009         (mbrtowc, mbstate_t): Define substitutes if
33010         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
33011         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
33012         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
33013
33014 2000-06-23  Jim Meyering  <meyering@lucent.com>
33015
33016         * m4/afs.m4: Add missing AC_MSG_RESULT.
33017         Reported by Bruno Haible.
33018
33019         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
33020         Suggestion from Bruno Haible.
33021
33022 2000-06-23  Jim Meyering  <meyering@lucent.com>
33023
33024         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
33025
33026 2000-06-21  Jim Meyering  <meyering@lucent.com>
33027
33028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
33029
33030 2000-06-21  Jim Meyering  <meyering@lucent.com>
33031
33032         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
33033         (noinst_HEADERS): Add getstr.h.
33034
33035         * lib/getline.c (getstr): Move into a separate file.
33036         * lib/getstr.c (getstr): New file, extracted from getline.c, with
33037         the following changes: new parameter, delim2; both delim[12]
33038         parameters have type `int', not `char'.  The latter would lose
33039         with 8-bit delimiters.
33040         * lib/getstr.h: New file.
33041
33042 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
33043
33044         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
33045         than 1024, return a memory chunk of least possible size, instead
33046         of size PATH_MAX + 2. In the loop, increment the size proportionally.
33047         Use free/xmalloc instead of xrealloc to avoid copying for very long
33048         paths.
33049
33050 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
33051
33052         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
33053         the empty string.
33054
33055 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
33056
33057         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
33058         address, not strdup.  Include <stdlib.h> and don't declare free().
33059
33060 2000-06-19  Jim Meyering  <meyering@lucent.com>
33061
33062         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
33063
33064 2000-06-18  Jim Meyering  <meyering@lucent.com>
33065
33066         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
33067
33068         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
33069         `checking whether...' message to be consistent with that of the
33070         lstat test.
33071
33072 2000-06-18  Jim Meyering  <meyering@lucent.com>
33073
33074         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
33075         Besides, these days every porting target provides a mkdir function.
33076
33077         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
33078         needed. (this snippet comes from src/system.h).
33079
33080 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
33081
33082         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
33083
33084 2000-06-15  Paul Eggert  <eggert@twinsun.com>
33085
33086         * lib/human.c (adjust_value): New function.
33087         (human_readable_inexact): Apply rounding style even when
33088         printing approximate values.
33089
33090 2000-06-14  Paul Eggert  <eggert@twinsun.com>
33091
33092         * lib/human.c (human_readable_inexact): Allow an input block
33093         size that is not a multiple of the output block size, and vice versa.
33094         Reported by Piergiorgio Sartor.
33095
33096 2000-06-14  Paul Eggert  <eggert@twinsun.com>
33097
33098         * lib/getdate.y (get_date): Apply relative times after time
33099         zone indicator, not before.  Reported by Todd A. Jacobs.
33100
33101 2000-06-13  Jim Meyering  <meyering@lucent.com>
33102
33103         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
33104
33105         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
33106
33107 2000-06-12  Paul Eggert  <eggert@twinsun.com>
33108
33109         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
33110
33111 2000-06-12  Jim Meyering  <meyering@lucent.com>
33112
33113         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
33114         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
33115         optional argument.
33116         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
33117         the optional argument, `lib'.
33118
33119 2000-06-08  Jim Meyering  <meyering@lucent.com>
33120
33121         * m4/largefile.m4: Remove file (now that it's part of autoconf).
33122
33123 2000-06-04  Paul Eggert  <eggert@twinsun.com>
33124
33125         Rewrite largefile configuration so that we don't need to run
33126         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
33127         AC_CANONICAL_HOST in configure.in -- jmm]
33128
33129         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
33130         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
33131         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
33132         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
33133         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
33134         All uses changed.
33135         Instead of inspecting the output of getconf, try to compile the
33136         test program without and with the macro definition.
33137         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
33138         for getconf.  Instead, check for the needed flags by compiling
33139         test programs.
33140
33141 2000-06-04  Paul Eggert  <eggert@twinsun.com>
33142
33143         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
33144
33145 2000-06-04  Jim Meyering  <meyering@lucent.com>
33146
33147         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
33148         SunOS 4.1.4 for which gid_t is an unsigned type.
33149
33150 2000-06-03  Jim Meyering  <meyering@lucent.com>
33151
33152         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
33153         now that autoconf requires that.
33154
33155         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
33156         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
33157         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
33158
33159 2000-06-03  Jim Meyering  <meyering@lucent.com>
33160
33161         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
33162
33163 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
33164
33165         * m4/glibc21.m4: New file.
33166         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
33167
33168 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
33169
33170         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
33171         newer, don't install charset.alias.
33172         * lib/config.charset: Change the Linux/glibc rules so they become empty
33173         on glibc-2.1 or newer.
33174
33175 2000-06-02  Jim Meyering  <meyering@lucent.com>
33176
33177         * lib/mountlist.c: Back out last change.  Instead, do this...
33178         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
33179         me_dummy member using the same `ignore'-testing code.
33180         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
33181         fs_type strings.
33182         From Mark D. Roth.
33183
33184 2000-05-29  Jim Meyering  <meyering@lucent.com>
33185
33186         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
33187         mounts with the `ignore' attribute.  Based on a patch from
33188         Mark D. Roth.
33189
33190 2000-05-28  Jim Meyering  <meyering@lucent.com>
33191
33192         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
33193         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33194         * m4/stat.m4: Likewise.
33195         * m4/lstat.m4: Likewise.
33196         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
33197
33198         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
33199         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
33200
33201 2000-05-26  Jim Meyering  <meyering@lucent.com>
33202
33203         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
33204
33205 2000-05-24  Jim Meyering  <meyering@lucent.com>
33206
33207         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
33208         autoconf requires that.
33209         * m4/lib-check.m4: Likewise.
33210         * m4/jm-macros.m4: Likewise.
33211         * m4/strftime.m4: Likewise.
33212
33213         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
33214         AC_CHECK_DECLS, now that autoconf requires that.
33215
33216 2000-05-22  Jim Meyering  <meyering@lucent.com>
33217
33218         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33219         * m4/lstat.m4: Likewise.
33220
33221 2000-05-22  Jim Meyering  <meyering@lucent.com>
33222
33223         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
33224
33225 2000-05-20  Jim Meyering  <meyering@lucent.com>
33226
33227         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
33228         (jm_PREREQ): Use it.
33229
33230 2000-05-18  Jim Meyering  <meyering@lucent.com>
33231
33232         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
33233         back, too, since it may have been modified by allocate_entry.
33234         (hash_delete): Rewrite to use neither the assignment operator
33235         nor the comma operator in an if-expression.
33236
33237 2000-05-15  Paul Eggert  <eggert@twinsun.com>
33238
33239         * lib/closeout.c:
33240         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
33241         Remove; no longer needed.
33242         "quotearg.h": Add include.
33243         (file_name): Do not bother to explicitly initialize to NULL; it's less
33244         efficient on some hosts.
33245         (close_stdout_status): Remove test as to whether stdout was already
33246         closed; it breaks for the case "echo x | sort >&-".
33247         Quote file name colons.
33248         Do not assume that _("write error") lacks format strings.
33249
33250 2000-05-15  Jim Meyering  <meyering@lucent.com>
33251
33252         * lib/version-etc.c (version_etc_copyright): Update the copyright
33253         string used in all --version output.
33254
33255 2000-05-14  Jim Meyering  <meyering@lucent.com>
33256
33257         * lib/closeout.c (close_stdout_set_file_name): New function.
33258         (close_stdout_status): Use new file-scoped global.
33259         Return right away if fstat says the stdout file descriptor is invalid.
33260         * lib/closeout.h (close_stdout_set_file_name): Declare.
33261
33262 2000-05-10  Jim Meyering  <meyering@lucent.com>
33263
33264         * lib/closeout.c [default_exit_status]: New file-scoped variable.
33265         (close_stdout_set_status): New function.
33266         * lib/closeout.h (close_stdout_set_status): Declare.
33267
33268 2000-05-09  Jim Meyering  <meyering@lucent.com>
33269
33270         * m4/gettext.m4: Rename this...
33271         * m4/libintl.m4: ...to this.
33272
33273 2000-05-08  Jim Meyering  <meyering@lucent.com>
33274
33275         * lib/long-options.c: Don't include closeout.h.
33276         (parse_long_options): Don't call close_stdout for --version.
33277
33278 2000-05-06  Paul Eggert  <eggert@twinsun.com>
33279
33280         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
33281         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
33282         2.1.3 bug.  This avoids a clash when files like regex.c define
33283         _GNU_SOURCE.
33284
33285 2000-05-06  Jim Meyering  <meyering@lucent.com>
33286
33287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
33288         (AC_REPLACE_FUNCS): Add strnlen.
33289
33290         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
33291         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
33292
33293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
33294         AC_SEARCH_LIBS call for nanosleep.
33295         (LIB_NANOSLEEP): Set and AC_SUBST.
33296
33297 2000-05-06  Jim Meyering  <meyering@lucent.com>
33298
33299         * lib/strnlen.c: Undefine __strnlen and strnlen.
33300         [!weak_alias]: Define __strnlen to strnlen.
33301
33302         * lib/atexit.c: New file, from libiberty.
33303
33304 2000-05-06  Jim Meyering  <meyering@lucent.com>
33305
33306         * lib/closeout.c (close_stdout_status): Also check for errors on the
33307         stderr stream.
33308
33309 2000-05-05  Jim Meyering  <meyering@lucent.com>
33310
33311         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
33312         AC_SEARCH_LIBS call for clock_gettime.
33313         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
33314
33315         * m4/search-libs.m4: Update from autoconf.
33316
33317         su doesn't work on Solaris 2.6.
33318         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
33319         <shadow.h>.  Reported by Dragos Harabor.
33320
33321 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
33322
33323         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
33324         memcpy instead of xmalloc, xrealloc, path_concat.
33325         (locale_charset): Treat empty environment variables as absent.
33326         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
33327
33328 2000-05-04  Jim Meyering  <meyering@lucent.com>
33329
33330         * lib/getopt.c: Update from glibc.
33331         * lib/obstack.c: Likewise.
33332         * lib/obstack.h: Likewise.
33333         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
33334         file
33335
33336         * lib/regex.h: Likewise.
33337         * lib/strndup.c: Likewise.
33338         * lib/strnlen.c: New file, from glibc.
33339
33340 2000-05-03  Jim Meyering  <meyering@lucent.com>
33341
33342         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
33343
33344 2000-05-02  Paul Eggert  <eggert@twinsun.com>
33345
33346         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
33347         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
33348         compile-time test, rather than inspecting host and OS, to
33349         decide whether to define _LARGEFILE_SOURCE.
33350
33351 2000-05-01  Jim Meyering  <meyering@lucent.com>
33352
33353         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
33354
33355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
33356         Based on a patch from Bruno Haible.
33357
33358 2000-05-01  Jim Meyering  <meyering@lucent.com>
33359
33360         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
33361
33362 2000-04-29  Jim Meyering  <meyering@lucent.com>
33363
33364         * lib/path-concat.c: Declare strdup only if it's not defined.
33365         * lib/canon-host.c: Likewise.
33366
33367 2000-04-28  Jim Meyering  <meyering@lucent.com>
33368
33369         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
33370         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
33371         is included first, then limits.h is included by locale.h by libintl.h.
33372         From John David Anglin.
33373
33374 2000-04-25  Jim Meyering  <meyering@lucent.com>
33375
33376         * lib/makepath.c (S_IRWXUGO): Define.
33377         (make_path): Always perform explicit chmod if MODE specifies any
33378         of the `special' permission bits.  Prompted by a bug report against
33379         install from Mate Wierdl and Joost van Baal.
33380
33381 2000-04-18  Jim Meyering  <meyering@lucent.com>
33382
33383         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
33384         (jm_PREREQ): Use it.
33385
33386 2000-04-18  Jim Meyering  <meyering@lucent.com>
33387
33388         * lib/README: New file.
33389
33390         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
33391         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
33392
33393 2000-04-17  Jim Meyering  <meyering@lucent.com>
33394
33395         Get it right :-)
33396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
33397         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
33398         Suggestion from Akim Demaille.
33399
33400 2000-04-17  Jim Meyering  <meyering@lucent.com>
33401
33402         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
33403         the definition of it to rpl_strftime also defined-away the system's
33404         declaration.
33405
33406 2000-04-15  Jim Meyering  <meyering@lucent.com>
33407
33408         Use `C' to denote so-called `contiguous' files, the same way
33409         that tar does.
33410         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
33411         (ftypelet): Use S_ISCTG.
33412         From Michael Deutschmann.
33413
33414 2000-04-14  Jim Meyering  <meyering@lucent.com>
33415
33416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
33417         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
33418         clobbered.
33419
33420 2000-04-14  Jim Meyering  <meyering@lucent.com>
33421
33422         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
33423
33424 2000-04-13  Jim Meyering  <meyering@lucent.com>
33425
33426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
33427         AH_VERBATIM to insert required #ifndef into config.h.in.
33428         Suggestion from Akim Demaille.
33429
33430 2000-04-12  Jim Meyering  <meyering@lucent.com>
33431
33432         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
33433         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
33434         Christian Krackowizer.
33435
33436         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
33437         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
33438         (AC_SYS_LARGEFILE): Require.
33439         (AM_C_PROTOTYPES): Require.
33440
33441 2000-04-08  Jim Meyering  <meyering@lucent.com>
33442
33443         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
33444         names don't conflict.  Reported by Eli Zaretskii.
33445
33446 2000-04-07  Jim Meyering  <meyering@lucent.com>
33447
33448         * lib/putenv.c: Move inclusion of errno.h so it follows that of
33449         sys/types.h, to work around system header problems on AIX 3.2.5.
33450         From Bruno Haible.
33451
33452 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
33453
33454         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
33455         bug.  Deal with the different error behavior of Irix iconv.
33456
33457 2000-04-05  Paul Eggert  <eggert@twinsun.com>
33458
33459         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
33460         IRIX if the installer said otherwise.
33461
33462 2000-04-05  Jim Meyering  <meyering@lucent.com>
33463
33464         Portability tweaks required for ultrix4.3.
33465         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
33466         (jm_CHECK_DECLS): Add getutent to the list of functions.
33467         (_jm_DECL_HEADERS): Add utmpx.h.
33468         From John David Anglin.
33469
33470         * m4/strftime.m4: Back out the 2000-04-02 change.
33471         Instead of that change, simply undefine putenv in the test program.
33472
33473 2000-04-05  Jim Meyering  <meyering@lucent.com>
33474
33475         Portability tweaks required for ultrix4.3.
33476         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
33477         getutent.
33478         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
33479         * lib/canon-host.c: Declare strdup.
33480         * lib/path-concat.c: Likewise.
33481         From John David Anglin.
33482
33483 2000-04-04  Jim Meyering  <meyering@lucent.com>
33484
33485         Be more DOS 8.3-friendly.
33486         * lib/ref-add.sin: Renamed from ref-add.sed.in.
33487         * lib/ref-del.sin: Renamed from ref-del.sed.in.
33488         * lib/Makefile.am: Reflect renaming.
33489         Reported by Eli Zaretskii.
33490
33491         Use a temporary file name that won't clash with `charset.alias'
33492         in the DOS 8.3 name space.
33493         * lib/Makefile.am (charset_tmp): Define.
33494         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
33495         (uninstall-local): Likewise.
33496         Reported by Eli Zaretskii.
33497
33498 2000-04-03  Jim Meyering  <meyering@lucent.com>
33499
33500         * m4/gettext.m4: Fix typo in comment.
33501
33502         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
33503         textutils/configure.in).  Suggestion from Paul Eggert.
33504         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
33505
33506 2000-04-02  Paul Eggert  <eggert@twinsun.com>
33507
33508         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
33509         variable in the shell rather than using putenv, which isn't
33510         portable.  This avoids the configure-time inter-test dependency
33511         on the potentially-renamed putenv function.
33512
33513 2000-03-30  Paul Eggert  <eggert@twinsun.com>
33514
33515         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
33516         before checking struct stat.st_blksize, so that
33517         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
33518
33519 2000-03-29  Paul Eggert  <eggert@twinsun.com>
33520
33521         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
33522         since strftime.c uses HAVE_STRFTIME to decide whether to use
33523         the underlying strftime.
33524
33525 2000-03-29  Paul Eggert  <eggert@twinsun.com>
33526
33527         * lib/time/strftime.c (my_strftime): Make sure we call the system
33528         strftime, not ourselves, when invoking the underlying strftime.
33529
33530 2000-03-24  Jim Meyering  <meyering@lucent.com>
33531
33532         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
33533         (charset_alias): Define.
33534         (install-exec-local): Factor out common code.
33535         (uninstall-local): Split lines longer than 80.
33536         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
33537         (SUFFIXES): Define.
33538         (.sed.in.sed): New rule.  Don't redirect directly to $@.
33539         (CLEANFILES): Add ref-add.sed and ref-del.sed.
33540
33541 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
33542
33543         * lib/config.charset: Output a line containing "Packages using this
33544         file".
33545         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
33546         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
33547         ref-del.sed): New rules.
33548
33549 2000-03-17  Jim Meyering  <meyering@lucent.com>
33550
33551         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
33552         Otherwise, include <strings.h>
33553
33554 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
33555
33556         * lib/unicodeio.c (utf8_wctomb): New function.
33557         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
33558         format instead of in UCS-4 with platform dependent endianness.
33559
33560 2000-03-10  Jim Meyering  <meyering@lucent.com>
33561
33562         * m4/lib-check.m4: Look for getspnam in -lgen, too.
33563         From Marco Franzen.
33564
33565 2000-03-07  Paul Eggert  <eggert@twinsun.com>
33566
33567         * lib/savedir.c (savedir): Work even if directory size is
33568         negative; this can happen with some screwy NFS configurations.
33569
33570 2000-03-06  Jim Meyering  <meyering@lucent.com>
33571
33572         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
33573         if it's NULL (because we ran out of memory).  From Bruno Haible.
33574
33575 2000-03-05  Jim Meyering  <meyering@lucent.com>
33576
33577         * lib/localcharset.c ("path-concat.h"): Include.
33578         (get_charset_aliases): Use path_concat instead of ANSI string
33579         concatenation.
33580
33581         * lib/unicodeio.h (PARAMS): Define.
33582         Use it to guard prototype.
33583
33584 2000-03-04  Jim Meyering  <meyering@lucent.com>
33585
33586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
33587         for lib/localcharset.c.
33588
33589 2000-03-04  Jim Meyering  <meyering@lucent.com>
33590
33591         * lib/Makefile.am (install-exec-local): Create $(libdir) before
33592         installing into it.
33593         (uninstall-local): Uncomment this rule so `make distcheck' works
33594         once again.
33595
33596         * lib/unicodeio.c (<errno.h>): Include it.
33597         (errno): Declare if not defined.
33598
33599         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
33600
33601         * lib/config.charset: New version, incorporating remarks from a linux
33602         i18n mailing list.  From Bruno Haible.
33603
33604 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
33605
33606         * m4/codeset.m4: New file.
33607         * m4/iconv.m4: New file.
33608         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
33609
33610 2000-03-03  Jim Meyering  <meyering@lucent.com>
33611
33612         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
33613
33614 2000-03-02  Jim Meyering  <meyering@lucent.com>
33615
33616         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
33617         the messages come out on separate lines.
33618
33619         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
33620         rather than jm_CHECK_DECLARATIONS.
33621         * m4/decl.m4: Remove now-unused file.
33622
33623         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
33624         geteuid.
33625
33626 2000-03-02  Jim Meyering  <meyering@lucent.com>
33627
33628         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
33629
33630 2000-03-01  Jim Meyering  <meyering@lucent.com>
33631
33632         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
33633         * lib/unicodeio.c: Likewise.
33634
33635 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
33636
33637         * lib/config.charset: New file.
33638         * lib/localcharset.c: New file.
33639         * lib/unicodeio.h, lib/unicodeio.c: New files.
33640         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
33641         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
33642         (noinst_HEADERS): Add unicodeio.h.
33643         (all-local, install-exec-local, charset.alias): New targets.
33644
33645 2000-02-28  Paul Eggert  <eggert@twinsun.com>
33646
33647         * lib/quotearg.c (ALERT_CHAR): New macro.
33648         (quotearg_buffer_restyled): Use it.
33649
33650 2000-02-27  Jim Meyering  <meyering@lucent.com>
33651
33652         * m4/check-decl.m4: Add getenv to the list.
33653
33654 2000-02-27  Jim Meyering  <meyering@lucent.com>
33655
33656         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
33657         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
33658
33659         * lib/backupfile.c: Guard inclusion of stdlib.h with
33660         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
33661         Declare malloc if needed.
33662
33663         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
33664         `#ifndef HAVE_DECL..'
33665         now that autoconf always defines the HAVE_DECL_ symbols.
33666         * lib/human.c: Likewise.
33667         * lib/same.c: Likewise.
33668         * lib/strtoumax.c: Likewise.
33669
33670         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
33671         declaration check was not run.
33672         * lib/hash.c: Likewise.
33673         * lib/human.c: Likewise.
33674         * lib/same.c: Likewise.
33675         * lib/strtoumax.c: Likewise.
33676
33677         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
33678         `.', then first look up the entire `.'-containing string as a login
33679         name.
33680
33681 2000-02-23  Jim Meyering  <meyering@lucent.com>
33682
33683         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
33684         in place of my hack.
33685
33686 2000-02-18  Paul Eggert  <eggert@twinsun.com>
33687
33688         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
33689         (textint): New typedef.
33690         (parser_control): Member year changed from int to textint.
33691         All uses changed.
33692         (YYSTYPE): Removed; replaced by %union with int and textint members.
33693         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
33694         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
33695         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
33696         (tSNUMBER, tUNUMBER): Now of type <textintval>.
33697         (date, number, to_year): Use width of number in digits, not its value,
33698         to determine whether it's a 2-digit year, or a 2-digit time.
33699         (yylex): Store number of digits of numeric tokens.
33700         Reported by John Kendall.
33701
33702         (parser_control): Changed from struct parser_control to typedef (for
33703         consistency).  All uses changed.
33704
33705         (tID): Removed; not used.
33706         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
33707
33708 2000-02-14  Paul Eggert  <eggert@twinsun.com>
33709
33710         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
33711         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
33712
33713 2000-02-12  Jim Meyering  <meyering@lucent.com>
33714
33715         * lib/userspec.c (ISDIGIT): Define it.
33716         (isdigit): Remove definition.
33717         (is_number): Use ISDIGIT, not isdigit.
33718         <libintl.h>: Include.
33719         (_ and N_): Define.
33720         (parse_user_spec): Mark translatable strings.
33721
33722 2000-02-10  Jim Meyering  <meyering@lucent.com>
33723
33724         With these changes, nanosleep.[ch] are finally enough like the other
33725         lib/* replacement files to compile on a few more losing systems.
33726
33727         * lib/nanosleep.h: Don't include config.h.
33728         Remove prototype from declaration of nanosleep.
33729         (PARAMS): Remove now-unneeded definition.
33730         * lib/nanosleep.c: #undef nanosleep.
33731         (rpl_nanosleep): Rename from nanosleep.
33732
33733 2000-02-10  Jim Meyering  <meyering@lucent.com>
33734
33735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
33736         gnu_nanosleep to rpl_nanosleep.
33737
33738 2000-02-09  Jim Meyering  <meyering@lucent.com>
33739
33740         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
33741         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
33742
33743 2000-02-08  Akim Demaille  <akim@epita.fr>
33744
33745         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
33746         `[' and `]' and remove uses of `changequote'.
33747         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
33748         (AC_SYS_LARGEFILE): Likewise.
33749         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33750         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
33751         of changequote.
33752         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
33753         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
33754         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
33755         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
33756
33757 2000-02-05  Jim Meyering  <meyering@lucent.com>
33758
33759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
33760         Remove explicit use of AC_HEADER_TIME.  It is required by
33761         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
33762         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
33763         in autoconf whereby the expansion of the latter ended up preceding
33764         the expansion of its prerequisite, AC_HEADER_TIME.
33765         Reported by Volker Borchert.
33766
33767 2000-02-03  Jim Meyering  <meyering@lucent.com>
33768
33769         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
33770
33771 2000-02-03  Jim Meyering  <meyering@lucent.com>
33772
33773         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
33774         rather than with `#if HAVE_UTMPNAME'.
33775
33776 2000-02-02  Jim Meyering  <meyering@lucent.com>
33777
33778         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
33779         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
33780         Reported by Eli Zaretskii.
33781
33782 2000-02-01  Jim Meyering  <meyering@lucent.com>
33783
33784         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
33785
33786 2000-01-31  Jim Meyering  <meyering@lucent.com>
33787
33788         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
33789         functions.  Add the time.h and sys/time.h headers along with the
33790         AC_REQUIRE'ment of AC_HEADER_TIME.
33791
33792 2000-01-31  Jim Meyering  <meyering@lucent.com>
33793
33794         * lib/nanosleep.h (nanosleep): Guard declaration with
33795         `#if ! HAVE_DECL_NANOSLEEP'.
33796         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
33797         the declaration in that vendor's sys/timers.h.
33798         Reported by Christian Krackowizer.
33799
33800         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
33801         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
33802         (ISPRINT): Likewise.
33803         Reported by Tom Tromey.
33804
33805 2000-01-30  Jim Meyering  <meyering@lucent.com>
33806
33807         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
33808
33809         * m4/prereq.m4 (utmp_includes): Define.
33810         Check for ut_user and ut_name members in both struct utmpx
33811         and struct utmp.
33812
33813 2000-01-30  Jim Meyering  <meyering@lucent.com>
33814
33815         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
33816         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
33817         header files where only utmpx.ut_user is declared.
33818
33819         * lib/readutmp.h (UT_USER): Define.
33820
33821 2000-01-29  Jim Meyering  <meyering@lucent.com>
33822
33823         * m4/lib-check.m4: New file containing library-related checks from
33824         fileutils and sh-utils (textutils had none).
33825
33826 2000-01-28  Jim Meyering  <meyering@lucent.com>
33827
33828         * m4/perl.m4: Change format of warning message to look more like that
33829         from the missing script.  Suggestion from François Pinard.
33830
33831 2000-01-25  Jim Meyering  <meyering@lucent.com>
33832
33833         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
33834         well as time.h in the compile check.
33835         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
33836         Fix typo in cross-compiling case: s/yes/no/.
33837
33838 2000-01-23  Jim Meyering  <meyering@lucent.com>
33839
33840         * m4/jm-macros.m4: Move df-related tests here from
33841         fileutils/configure.in
33842
33843         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
33844         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
33845
33846         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
33847         s/space/ac_fsusage_space/.
33848         (jm_FILE_SYSTEM_USAGE): Take two parameters.
33849
33850         * m4/ftruncate.m4: New file (derived from part of
33851         fileutils/configure.in).
33852         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
33853         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
33854
33855         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
33856         AC_SUBST these here, rather than just in sh-util/configure.in, so
33857         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
33858         all the same.
33859         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
33860         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
33861         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
33862         (AC_SUBST(POW_LIBM)): Likewise.
33863         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
33864
33865 2000-01-23  Jim Meyering  <meyering@lucent.com>
33866
33867         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
33868         obstack.c.
33869
33870 2000-01-22  Jim Meyering  <meyering@lucent.com>
33871
33872         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
33873
33874         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
33875
33876         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
33877         configure.in
33878         (AC_CHECK_HEADERS): Likewise for sh-utils.
33879         (AC_CHECK_HEADERS): Likewise for textutils.
33880         Merge the three lists of headers.
33881
33882         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
33883         from fileutils' configure.in.
33884
33885         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
33886         code. Moved tests into their own function (_jm_DECL_HEADERS) in
33887         check-decl.m4.
33888
33889         * m4/check-decl.m4: Use #if rather than #ifdef.
33890         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
33891         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
33892         (_jm_DECL_HEADERS): Define new function.
33893         (jm_CHECK_DECLARATIONS): Require it.
33894
33895 2000-01-22  Jim Meyering  <meyering@lucent.com>
33896
33897         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
33898         [! HAVE_DECL_STRTOULL]: Declare strtoull.
33899         Required for some AIX systems.  Reported by Christian Krackowizer.
33900         [TESTING] (main): New function.
33901
33902         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
33903         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
33904         letters.
33905
33906         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
33907         iswprint.
33908
33909         * lib/strverscmp.c (ISDIGIT): Define.
33910         (strverscmp): Use ISDIGIT, not isdigit.
33911
33912 2000-01-19  Jim Meyering  <meyering@lucent.com>
33913
33914         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
33915         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
33916         defines `struct timespec' in <sys/time.h>
33917
33918         * m4/c-bs-a.m4: Remove uses of changequote altogether.
33919         Thanks to Akim for explaining.
33920
33921 2000-01-17  Paul Eggert  <eggert@twinsun.com>
33922
33923         * lib/nanosleep.c (nanosleep):
33924         Don't use SA_INTERRUPT to decide whether to call sigaction, as
33925         POSIX.1 doesn't require SA_INTERRUPT and some systems
33926         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
33927         it's been part of POSIX.1 since day 1 (in 1988).
33928
33929 2000-01-17  Jim Meyering  <meyering@lucent.com>
33930
33931         * lib/interlock: Remove unused file.  Reported by François Pinard.
33932
33933 2000-01-16  Paul Eggert  <eggert@twinsun.com>
33934
33935         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
33936         alert, backslash, formfeed, and vertical tab unnecessarily in
33937         shell quoting style.
33938
33939 2000-01-16  Jim Meyering  <meyering@lucent.com>
33940
33941         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
33942         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
33943         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
33944         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
33945
33946 2000-01-16  Jim Meyering  <meyering@lucent.com>
33947
33948         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
33949         because the latter didn't work.
33950
33951 2000-01-15  Jim Meyering  <meyering@lucent.com>
33952
33953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
33954         (AC_REPLACE_FUNCS): Add memcpy and memset.
33955         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
33956         Add strpbrk.
33957         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
33958
33959 2000-01-12  Jim Meyering  <meyering@lucent.com>
33960
33961         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
33962         (jm_PREREQ): Use it.
33963         (jm_PREREQ_READUTMP): New macro.
33964         (jm_PREREQ): Use it.
33965
33966 2000-01-11  Paul Eggert  <eggert@twinsun.com>
33967
33968         Quote multibyte characters correctly.
33969         * m4/c-bs-a.m4: New file.
33970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
33971         (jm_PREREQ): Use it.
33972
33973 2000-01-11  Paul Eggert  <eggert@twinsun.com>
33974
33975         * m4/uintmax_t.m4: Port to autoconf 2.13.
33976
33977 2000-01-08  Jim Meyering  <meyering@ascend.com>
33978
33979         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
33980         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
33981
33982 2000-01-04  Jim Meyering  <meyering@ascend.com>
33983
33984         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
33985         jm_STRUCT_DIRENT_D_TYPE.
33986         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
33987         jm_STRUCT_DIRENT_D_INO.
33988         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
33989         jm_STRUCT_UTIMBUF.
33990         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
33991         renamings.
33992         * m4/utime.m4: Likewise.
33993
33994         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
33995         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
33996
33997 2000-01-03  Paul Eggert  <eggert@twinsun.com>
33998
33999         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
34000         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
34001
34002 2000-01-02  Jim Meyering  <meyering@ascend.com>
34003
34004         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
34005         remember if this is necessary.
34006
34007 1999-12-26  Jim Meyering  <meyering@ascend.com>
34008
34009         * m4/jm-macros.m4: Use it here.
34010         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
34011
34012 1999-12-23  Jim Meyering  <meyering@ascend.com>
34013
34014         * m4/jm-macros.m4: Check for clock_gettime (moved from
34015         fileutils/configure.in)
34016         Check for gettimeofday.
34017
34018 1999-12-20  Jim Meyering  <meyering@ascend.com>
34019
34020         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
34021         autoconf-2.14a-1999-12-20.
34022
34023 1999-12-19  Jim Meyering  <meyering@ascend.com>
34024
34025         * m4/lstat-slash.m4: New file.
34026         * m4/jm-macros.m4: Use the new macro:
34027         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34028
34029 1999-12-07  Jim Meyering  <meyering@ascend.com>
34030
34031         * m4/perl.m4: Require that File::Compare be available, too.
34032         Too many systems seem to lack it.
34033
34034         * m4/strftime.m4: Add checks for most of the cpp macros tested in
34035         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
34036
34037 1999-11-18  Paul Eggert  <eggert@twinsun.com>
34038
34039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
34040         problem with the QNX 4.25 shell, which doesn't propagate exit
34041         status of failed commands inside shell assignments.
34042
34043 1999-11-17  Jim Meyering  <meyering@ascend.com>
34044
34045         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
34046
34047 1999-11-07  Jim Meyering  <meyering@ascend.com>
34048
34049         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
34050
34051 1999-11-06  Jim Meyering  <meyering@ascend.com>
34052
34053         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
34054         * m4/jm-macros.m4 (jm_MACROS): Use it here.
34055
34056 1999-11-05  Jim Meyering  <meyering@ascend.com>
34057
34058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
34059         configure.in of textutils, fileutils, and sh-utils into this one
34060         (shared between those packages) file.
34061         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
34062         AC_STRUCT_ST_BLKSIZE.
34063
34064 1999-11-03  Jim Meyering  <meyering@ascend.com>
34065
34066         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
34067         of AC_CHECK_TYPE checks includes unistd.h.
34068         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
34069         Suggestion from Akim Demaille.
34070
34071 1999-10-30  Jim Meyering  <meyering@ascend.com>
34072
34073         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
34074         m4-quoted string.
34075         * m4/ls-mntd-fs.m4: Likewise.
34076         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
34077         * m4/jm-winsz1.m4: Likewise.
34078
34079         * m4/const.m4: Remove file, since the fix made it into the experimental
34080         version of autoconf.
34081         * m4/mktime.m4: Likewise.
34082
34083         * m4/check-type.m4: Remove file, now that the latest version of
34084         AC_CHECK_TYPE takes a third arg to specify additional #includes.
34085
34086         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
34087         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
34088         AC_CHECK_TYPE.
34089
34090 1999-10-04  Jim Meyering  <meyering@ascend.com>
34091
34092         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
34093
34094 1999-09-22  Paul Eggert  <eggert@twinsun.com>
34095
34096         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
34097         2.95.1 bug with HP-UX 10.20.
34098
34099 1999-09-17  Jim Meyering  <meyering@ascend.com>
34100
34101         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
34102         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
34103         due to missing strdup (against sh-utils-2.0).
34104
34105 1999-08-29  Jim Meyering  <meyering@ascend.com>
34106
34107         * m4/jm-macros.m4: Require jm_BISON.
34108         * m4/bison.m4: New file.
34109
34110 1999-08-17  Paul Eggert  <eggert@twinsun.com>
34111
34112         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
34113         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
34114
34115 1999-08-05  Jim Meyering  <meyering@ascend.com>
34116
34117         * m4/getline.m4: Rename test file from conftestdata to conftest.data
34118         to avoid conflicts with `conftest' on 8+3 filesystems.
34119         Suggestion from Eli Zaretskii.
34120
34121 1999-08-04  Jim Meyering  <meyering@ascend.com>
34122
34123         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
34124         fileutils and sh-utils (textutils's getline test was inadequate).
34125         (AM_FUNC_GETLINE): Run this test.
34126         (AC_CHECK_FUNCS): Check for getdelim.
34127         Reported by Bob Proulx.
34128
34129 1999-08-02  Jim Meyering  <meyering@ascend.com>
34130
34131         * m4/jm-macros.m4: Add a comment.
34132
34133 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34134
34135         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
34136         <inttypes.h> defines strtoumax as a macro (and not as a
34137         function).
34138
34139 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34140
34141         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
34142         that we can shift, multiply and divide unsigned long long
34143         values; Ultrix cc can't do it.
34144
34145 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34146
34147         * m4/mktime.m4: New file, which is a preview of what should appear
34148         in the next public autoconf release.
34149
34150 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34151
34152         * m4/lfs.m4: Remove this file.
34153         * m4/largefile.m4: New file.  It contains the old contents of
34154         lfs.m4, except that all names with prefix AC_LFS have been
34155         changed to use the prefix AC_SYS_LARGEFILE instead, to be
34156         compatible with future autoconf versions.  Also, some minor m4
34157         quoting problems have been fixed.
34158
34159 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34160
34161         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
34162         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
34163         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
34164         and simplify the shell code.
34165
34166 1999-08-01  Jim Meyering  <meyering@ascend.com>
34167
34168         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
34169         m4.
34170
34171 1999-07-20  Jim Meyering  <meyering@ascend.com>
34172
34173         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
34174
34175 1999-07-15  Jim Meyering  <meyering@ascend.com>
34176
34177         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
34178
34179 1999-05-22  Jim Meyering  <meyering@ascend.com>
34180
34181         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
34182
34183 1999-05-20  Jim Meyering  <meyering@ascend.com>
34184
34185         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
34186         Add a colon after each `then' in case $4 is empty.
34187
34188 1999-05-16  Jim Meyering  <meyering@ascend.com>
34189
34190         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
34191
34192 1999-05-10  Jim Meyering  <meyering@ascend.com>
34193
34194         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
34195
34196         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
34197         AC_FUNC_MKTIME.
34198
34199 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
34200
34201         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
34202
34203 1999-05-04  Paul Eggert  <eggert@twinsun.com>
34204
34205         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
34206         not CPPFLAGS, so that linking works correctly in IRIX.
34207
34208 1999-04-30  Paul Eggert  <eggert@twinsun.com>
34209
34210         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
34211
34212 1999-04-20  Paul Eggert  <eggert@twinsun.com>
34213
34214         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
34215         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
34216         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
34217         jm_AC_TYPE_UNSIGNED_LONG_LONG.
34218         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
34219
34220         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
34221
34222 1999-04-20  Jim Meyering  <meyering@ascend.com>
34223
34224         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
34225         AC_REPLACE xstroull if necessary.  From Paul Eggert.
34226         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
34227
34228 1999-04-18  Jim Meyering  <meyering@ascend.com>
34229
34230         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
34231         * m4/jm-macros.m4: Use it.
34232
34233 1999-04-06  Jim Meyering  <meyering@ascend.com>
34234
34235         * m4/strftime.m4: Remove test for %f.
34236
34237 1999-03-29  Jim Meyering  <meyering@ascend.com>
34238
34239         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
34240         superset of the AC_TYPE_* checks in the textutils, fileutils,
34241         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
34242         AC_TYPE_PID_T.
34243
34244 1999-03-28  Jim Meyering  <meyering@ascend.com>
34245
34246         * m4/jm-macros.m4: Define GNU_PACKAGE here.
34247         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
34248         replaced e.g., in the *.sh files of the sh-utils.
34249
34250 1999-03-20  Jim Meyering  <meyering@ascend.com>
34251
34252         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
34253         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
34254         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
34255
34256 1999-03-19  Jim Meyering  <meyering@ascend.com>
34257
34258         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
34259
34260 1999-03-12  Jim Meyering  <meyering@ascend.com>
34261
34262         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
34263
34264 1999-03-07  Jim Meyering  <meyering@ascend.com>
34265
34266         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
34267         declared.
34268
34269 1999-02-17  Jim Meyering  <meyering@ascend.com>
34270
34271         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
34272         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
34273
34274 1999-02-07  Jim Meyering  <meyering@ascend.com>
34275
34276         * m4/group-member.m4: New file -- extracted from sh-utils'
34277         configure.in.
34278
34279         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
34280         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
34281
34282 1999-02-06  Jim Meyering  <meyering@ascend.com>
34283
34284         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
34285         * m4/fnmatch.m4: Likewise.
34286         * m4/getgroups.m4: Likewise.
34287         * m4/lstat.m4: Likewise.
34288         * m4/malloc.m4: Likewise.
34289         * m4/putenv.m4: Likewise.
34290         * m4/realloc.m4: Likewise.
34291         * m4/regex.m4: Likewise.
34292         * m4/stat.m4: Likewise.
34293         * m4/strftime.m4: Likewise.
34294         Suggestion from Alain Magloire.
34295
34296         * m4/chown.m4: Use `.$ac_objext', not `.o'.
34297         * m4/fnmatch.m4: Likewise.
34298         * m4/getgroups.m4: Likewise.
34299         * m4/getline.m4: Likewise.
34300         * m4/lstat.m4: Likewise.
34301         * m4/malloc.m4: Likewise.
34302         * m4/memcmp.m4: Likewise.
34303         * m4/putenv.m4: Likewise.
34304         * m4/realloc.m4: Likewise.
34305         * m4/regex.m4: Likewise.
34306         * m4/stat.m4: Likewise.
34307         * m4/strftime.m4: Likewise.
34308         Suggestion from Alain Magloire.
34309
34310         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
34311         an argument.
34312
34313         * m4/regex.m4: Add a run-time Test for proper operation of
34314         re_compile_pattern.
34315
34316 1999-01-31  Jim Meyering  <meyering@ascend.com>
34317
34318         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
34319
34320 1999-01-30  Jim Meyering  <meyering@ascend.com>
34321
34322         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
34323
34324         * m4/jm-mktime.m4: Make this a wrapper around the official
34325         AM_FUNC_MKTIME rather than my private copy, now that the official one
34326         is up to date.
34327         * m4/mktime.m4: Remove file.
34328
34329         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
34330         * m4/uptime.m4: Likewise.
34331         * m4/uintmax_t.m4: Likewise.
34332
34333 1999-01-28  Jim Meyering  <meyering@ascend.com>
34334
34335         * m4/jm-macros.m4: Use jm_AFS.
34336         * m4/afs.m4: New file (from fileutils' configure.in).
34337
34338         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
34339         * m4/chown.m4: Likewise.
34340         * m4/d-ino.m4: Likewise.
34341         * m4/d-type.m4: Likewise.
34342         * m4/fnmatch.m4: Likewise.
34343         * m4/getgroups.m4: Likewise.
34344         * m4/gettext.m4: Likewise.
34345         * m4/jm-mktime.m4: Likewise.
34346         * m4/jm-winsz2.m4: Likewise.
34347         * m4/lcmessage.m4: Likewise.
34348         * m4/ls-mntd-fs.m4: Likewise.
34349         * m4/malloc.m4: Likewise.
34350         * m4/memcmp.m4: Likewise.
34351         * m4/putenv.m4: Likewise.
34352         * m4/realloc.m4: Likewise.
34353         * m4/st_mtim.m4: Likewise.
34354         * m4/strftime.m4: Likewise.
34355
34356 1999-01-16  Jim Meyering  <meyering@ascend.com>
34357
34358         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
34359         (ARGMATCH_DIE_DECL): Define.
34360
34361 1999-01-12  Jim Meyering  <meyering@ascend.com>
34362
34363         * m4/Makefile.am.in: Rewrite to avoid using fmt.
34364         Reported by Lars Hecking.
34365
34366 1999-01-10  Jim Meyering  <meyering@ascend.com>
34367
34368         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
34369         gross kludge.
34370         * m4/inttypes_h.m4: Likewise.
34371         * m4/lstat.m4: Likewise.
34372         * m4/malloc.m4: Likewise.
34373         * m4/readdir.m4: Likewise.
34374         * m4/realloc.m4: Likewise.
34375         * m4/st_dm_mode.m4: Likewise.
34376         * m4/stat.m4: Likewise.
34377         * m4/utimbuf.m4: Likewise.
34378         * m4/utimes.m4: Likewise.
34379
34380         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
34381         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
34382         comments in config.h.in are meaningful.
34383
34384         * m4/jm-macros.m4: Require autoconf-2.13 here.
34385
34386         * m4/regex.m4: By default, don't use the included regex.c on systems
34387         with glibc 2.  Suggestion from Uli Drepper.
34388
34389 1999-01-02  Jim Meyering  <meyering@ascend.com>
34390
34391         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
34392
34393 1998-12-18  Jim Meyering  <meyering@ascend.com>
34394
34395         * m4/Makefile.am.in (Makefile.am): Simplify rule.
34396         Based on a suggestion from Lars Hecking.
34397
34398 1998-11-16  Paul Eggert  <eggert@twinsun.com>
34399
34400         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
34401
34402 1998-11-16  Jim Meyering  <meyering@ascend.com>
34403
34404         * m4/lfs.m4: Double-quote the `uname...` expression.
34405
34406 1998-11-14  Jim Meyering  <meyering@ascend.com>
34407
34408         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
34409         * m4/stat.m4: Likewise.
34410
34411 1998-11-03  Jim Meyering  <meyering@ascend.com>
34412
34413         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
34414         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
34415
34416 1998-10-18  Jim Meyering  <meyering@ascend.com>
34417
34418         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
34419
34420 1998-10-17  Jim Meyering  <meyering@ascend.com>
34421
34422         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
34423         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
34424         calls for those previously hard-coded headers.  Instead, take a new
34425         parameter.
34426         (jm_CHECK_DECLARATIONS): Reflect interface change.
34427         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
34428         (jm_CHECK_DECL_LOCALTIME_R): New macro.
34429
34430         * m4/mktime.m4: Test for spring-forward gap before long-running test.
34431
34432 1998-10-14  Jim Meyering  <meyering@ascend.com>
34433
34434         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
34435         instead of "TZ=America/Vancouver".  From Paul Eggert.
34436
34437 1998-10-11  Jim Meyering  <meyering@ascend.com>
34438
34439         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
34440         This adds a test for a recently added compatibility fix for mktime.c.
34441         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
34442
34443 1998-09-27  Jim Meyering  <meyering@ascend.com>
34444
34445         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
34446
34447         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
34448         ../configure.in, including a change from Gordon Matzigkeit to allow
34449         cross-compiling for the Hurd.
34450
34451         * m4/glibc.m4: New file/macro to test for the GNU C Library
34452         versions 1 and 2.  From Gordon Matzigkeit.
34453         Indent.
34454
34455 1998-09-21  Jim Meyering  <meyering@ascend.com>
34456
34457         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
34458
34459 1998-08-18  Paul Eggert  <eggert@twinsun.com>
34460
34461         Port nanosecond-resolution times to UnixWare 2.1.2 and
34462         pedantic Solaris 2.6.
34463
34464         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
34465         AC_STRUCT_ST_MTIM.
34466         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
34467         Generate name of ns member, instead of just 1 or undef.
34468         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
34469
34470 1998-08-15  Jim Meyering  <meyering@ascend.com>
34471
34472         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
34473         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
34474         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
34475         instead of jm_TYPE_SSIZE_T.
34476
34477 1998-08-12  Jim Meyering  <meyering@ascend.com>
34478
34479         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
34480
34481 1998-08-02  Jim Meyering  <meyering@ascend.com>
34482
34483         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
34484         in acconfig.h manually.
34485
34486 1998-07-31  Paul Eggert  <eggert@twinsun.com>
34487
34488         * m4/st_mtim.m4: New file.
34489
34490 1998-07-28  Jim Meyering  <meyering@ascend.com>
34491
34492         * m4/utimes.m4: Undef stat.
34493
34494 1998-07-25  Jim Meyering  <meyering@ascend.com>
34495
34496         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
34497         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
34498
34499 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
34500
34501         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
34502         uid and gid actually remain unchanged.
34503
34504 1998-07-07  Jim Meyering  <meyering@ascend.com>
34505
34506         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
34507
34508 1998-07-04  Jim Meyering  <meyering@ascend.com>
34509
34510         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
34511         to prove that this macro can be used in packages without regex.c.
34512
34513 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
34514
34515         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
34516         is to be used.
34517
34518 1998-07-03  Jim Meyering  <meyering@ascend.com>
34519
34520         * m4/gettext.m4: Add -lintl if it's found to be necessary.
34521
34522         * m4/gettext.m4: New file -- from gettext-0.10.35.
34523         * m4/lcmessage.m4: Likewise.
34524         * m4/progtest.m4: Likewise.
34525
34526         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
34527         * m4/jm-macros.m4: Require the new macro.
34528
34529 1998-06-29  Jim Meyering  <meyering@ascend.com>
34530
34531         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
34532         for the definition of NGROUPS (used in a system header included
34533         by sys/mount.h).
34534
34535 1998-06-28  Jim Meyering  <meyering@ascend.com>
34536
34537         * m4/ls-mntd-fs.m4: New file.
34538         * m4/fstypename.m4: New file.
34539
34540         * m4/jm-macros.m4: Require the new macro.
34541         * m4/jm-glibc-io.m4: New file.
34542
34543 1998-05-19  Jim Meyering  <meyering@ascend.com>
34544
34545         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
34546         * m4/lchown.m4: New file.
34547
34548         * m4/Makefile.am.in: New file.
34549         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
34550
34551 1998-05-14  Jim Meyering  <meyering@ascend.com>
34552
34553         * m4/Makefile.am (EXTRA_DIST): Add them.
34554         * m4/jm-macros.m4: New file.
34555         * m4/utimbuf.m4: New file.
34556
34557 1998-05-12  Jim Meyering  <meyering@ascend.com>
34558
34559         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
34560
34561 1998-05-11  Jim Meyering  <meyering@ascend.com>
34562
34563         * m4/isc-posix.m4: New file.
34564
34565 1998-05-10  Jim Meyering  <meyering@ascend.com>
34566
34567         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
34568
34569 1998-05-09  Jim Meyering  <meyering@ascend.com>
34570
34571         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
34572         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
34573         with automake.
34574
34575         * m4/ssize_t.m4: New file.
34576         * m4/mktime.m4: Remove file -- the new automake has this now.
34577
34578 1998-04-26  Jim Meyering  <meyering@ascend.com>
34579
34580         * m4/assert.m4: New file.
34581         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
34582
34583 1998-04-05  Jim Meyering  <meyering@ascend.com>
34584
34585         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
34586         (jm_PREREQ): Use it here.
34587
34588 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
34589
34590         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
34591         in acconfig.h.
34592
34593 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
34594
34595         * m4/prereq.m4: New file.
34596         * m4/error.m4: New file.
34597         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
34598
34599 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
34600
34601         * m4/getline.m4: Don't set am_cv_func_working_getline before the
34602         cache-check for the same variable -- that defeated the purpose of
34603         the test; the test program was never run.  This was a problem only
34604         on systems with losing getline functions -- HP-UX 10.20 is one.
34605         Reported by Bjorn Helgaas.
34606
34607 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
34608
34609         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
34610
34611 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
34612
34613         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
34614
34615         * m4/const.m4: New file.  Use an initializer in this declaration
34616         typedef int charset[2]; const charset x;
34617         Reported by Bob Glickstein.
34618
34619 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
34620
34621         * m4/chown.m4: Fix reversed types on -1 args to chown.
34622         From Kaveh Ghazi.
34623
34624 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
34625
34626         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
34627         Add lseek and memchr.
34628
34629         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
34630         T.E.Dickey <dickey@clark.net> said that some older preprocessors
34631         have a 20-character limit on names.
34632
34633 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
34634
34635         * m4/inttypes_h.m4: New file.
34636         * m4/uintmax_t.m4: New file.
34637         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
34638
34639 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
34640   Free Software Foundation, Inc.
34641 Copying and distribution of this file, with or without modification,
34642 are permitted provided the copyright notice and this notice are preserved.