79ff08d64ccf8937b21000a379080b4d632773aa
[gnulib.git] / ChangeLog
1 2007-10-12  Bruno Haible  <bruno@clisp.org>
2
3         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
4         * modules/trunc-tests: Update.
5
6 2007-10-12  Bruno Haible  <bruno@clisp.org>
7
8         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9         of 2.
10         * tests/test-truncf2.c: New file.
11         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
12
13         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
14         * modules/truncf-tests: Update.
15
16 2007-10-11  Eric Blake  <ebb9@byu.net>
17
18         Don't claim strerror is broken on Interix.
19         * doc/functions/strerror.texi (strerror): Known broken systems are
20         now Solaris 8, and not Interix.
21         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
22         Interix on cross-compile.
23         Reported by Martin Koeppe in
24         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
25
26 2007-10-11  Bruno Haible  <bruno@clisp.org>
27
28         * modules/i-ring-tests: New file.
29         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30         instead of assert.
31
32 2007-10-11  Bruno Haible  <bruno@clisp.org>
33
34         * modules/filenamecat-tests: New file.
35         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36         * lib/filenamecat.c: Remove test code.
37
38 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39
40         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
41
42         * lib/strerror.c: Include <string.h> always, to test interface,
43         and to remove the need for the dummy.
44         Include intprops.h to compute width instead of doing it ourselves
45         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46         (strerror): Define it to return NULL if there's no system strerror.
47         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49         ancient pre-strerror Unix systems well any more.  Saying "unknown
50         system error" is enough.
51         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52         simpler strerror.c implementation.
53         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54         Simplify the tests to reflect the simpler strerror implementation.
55         * modules/strerror (Depends-on): Add intprops.
56
57 2007-10-09  Eric Blake  <ebb9@byu.net>
58
59         Silence test-fpending.
60         * modules/fpending-tests (Files): Add wrapper script.
61         * tests/test-fpending.sh: New file.
62
63 2007-10-09  Bruno Haible  <bruno@clisp.org>
64
65         * MODULES.html.sh (func_module): Don't create a hyperlink for
66         function names like 'printf_frexp'.
67         (Misc): Add crc, memxor.
68         (Characteristics of floating types): New section.
69         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
70         isnanf-nolibm, signbit, trunc, truncf, truncl.
71         (Enhancements for ISO C 99 functions): New subsection Input/output.
72         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
73         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
74         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
75         (Compatibility checks for POSIX:2001 functions): Add clock-time.
76         (Enhancements for POSIX:2001 functions): Add chdir-long.
77         (File system functions): Add areadlink, chdir-safer, read-file.
78         Remove cycle-check.
79         (File system as inode set): New section.
80         (Date and time): Add gethrxtime.
81         (Multithreading): Add openmp.
82         (Internationalization functions): Add localename.
83         (Unicode string functions): Add unistr/u*-mbsnlen.
84         (Support for maintaining and releasing projects): Add git-version-gen.
85         (Lone files): Remove directories.
86
87 2007-10-08  Ben Pfaff  <blp@gnu.org>
88
89         * lib/xmalloca.h: Fix typo in comment.
90
91 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92
93         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
94         when avoiding problems with integer overflow.  Use a portable test
95         instead.
96
97 2007-10-08  Simon Josefsson  <simon@josefsson.org>
98
99         * modules/dummy (License): Change to LGPLv2+.
100         * modules/float (License): Likewise
101         * modules/realloc (License): Likewise
102         * modules/stdlib (License): Likewise
103
104 2007-10-07  Bruno Haible  <bruno@clisp.org>
105
106         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
107         * floor.c (TWO_MANT_DIG): Likewise.
108         * ceil.c (TWO_MANT_DIG): Likewise.
109         Reported by Ben Pfaff.
110
111 2007-10-07  Bruno Haible  <bruno@clisp.org>
112
113         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
114         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
115         * lib/frexp.c (FUNC): Likewise.
116         * lib/printf-frexp.h (printf_frexp): Likewise.
117         * lib/printf-frexpl.h (printf_frexpl): Likewise.
118         * lib/printf-frexp.c (FUNC): Likewise.
119         Suggested by Jim Meyering.
120
121 2007-10-07  Jim Meyering  <meyering@redhat.com>
122
123         Make xnanosleep's integer overflow test more robust.
124         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
125         so that gcc-4.3.0 doesn't optimize away this test for overflow.
126
127 2007-10-07  Bruno Haible  <bruno@clisp.org>
128
129         * NEWS: Mention the license change.
130
131         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
132         abbreviations in the modules files.
133
134         Change copyright notice from GPLv2+ to GPLv3+.
135         * README: Change copyright notice.
136         * MODULES.html.sh: Likewise.
137         * build-aux/bootstrap.conf: Likewise.
138         * build-aux/config.libpath: Likewise.
139         * build-aux/csharpcomp.sh.in: Likewise.
140         * build-aux/csharpexec.sh.in: Likewise.
141         * build-aux/install-reloc: Likewise.
142         * build-aux/javacomp.sh.in: Likewise.
143         * build-aux/javaexec.sh.in: Likewise.
144         * build-aux/ldd.sh.in: Likewise.
145         * build-aux/reloc-ldflags: Likewise.
146         * build-aux/relocatable.sh.in: Likewise.
147         * build-aux/x-to-1.in: Likewise.
148         * check-module: Likewise.
149         * config/srclistvars.sh: Likewise.
150         * gnulib-tool: Likewise.
151         * lib/acl-internal.h: Likewise.
152         * lib/acl.c: Likewise.
153         * lib/acl.h: Likewise.
154         * lib/acl_entries.c: Likewise.
155         * lib/areadlink-with-size.c: Likewise.
156         * lib/areadlink.c: Likewise.
157         * lib/areadlink.h: Likewise.
158         * lib/argmatch.c: Likewise.
159         * lib/argmatch.h: Likewise.
160         * lib/argp-ba.c: Likewise.
161         * lib/argp-eexst.c: Likewise.
162         * lib/argp-fmtstream.c: Likewise.
163         * lib/argp-fmtstream.h: Likewise.
164         * lib/argp-fs-xinl.c: Likewise.
165         * lib/argp-help.c: Likewise.
166         * lib/argp-namefrob.h: Likewise.
167         * lib/argp-parse.c: Likewise.
168         * lib/argp-pin.c: Likewise.
169         * lib/argp-pv.c: Likewise.
170         * lib/argp-pvh.c: Likewise.
171         * lib/argp-xinl.c: Likewise.
172         * lib/argp.h: Likewise.
173         * lib/at-func.c: Likewise.
174         * lib/atanl.c: Likewise.
175         * lib/backupfile.c: Likewise.
176         * lib/backupfile.h: Likewise.
177         * lib/basename.c: Likewise.
178         * lib/binary-io.h: Likewise.
179         * lib/byteswap.in.h: Likewise.
180         * lib/c-stack.c: Likewise.
181         * lib/c-stack.h: Likewise.
182         * lib/c-strcasestr.c: Likewise.
183         * lib/c-strcasestr.h: Likewise.
184         * lib/c-strstr.c: Likewise.
185         * lib/c-strstr.h: Likewise.
186         * lib/c-strtod.c: Likewise.
187         * lib/calloc.c: Likewise.
188         * lib/canon-host.c: Likewise.
189         * lib/canon-host.h: Likewise.
190         * lib/canonicalize-lgpl.c: Likewise.
191         * lib/canonicalize.c: Likewise.
192         * lib/canonicalize.h: Likewise.
193         * lib/ceil.c: Likewise.
194         * lib/ceilf.c: Likewise.
195         * lib/ceill.c: Likewise.
196         * lib/chdir-long.c: Likewise.
197         * lib/chdir-long.h: Likewise.
198         * lib/chdir-safer.c: Likewise.
199         * lib/chdir-safer.h: Likewise.
200         * lib/chown.c: Likewise.
201         * lib/classpath.c: Likewise.
202         * lib/classpath.h: Likewise.
203         * lib/clean-temp.c: Likewise.
204         * lib/clean-temp.h: Likewise.
205         * lib/cloexec.c: Likewise.
206         * lib/close-stream.c: Likewise.
207         * lib/closein.c: Likewise.
208         * lib/closein.h: Likewise.
209         * lib/closeout.c: Likewise.
210         * lib/closeout.h: Likewise.
211         * lib/concat-filename.c: Likewise.
212         * lib/copy-file.c: Likewise.
213         * lib/copy-file.h: Likewise.
214         * lib/count-one-bits.h: Likewise.
215         * lib/crc.c: Likewise.
216         * lib/crc.h: Likewise.
217         * lib/creat-safer.c: Likewise.
218         * lib/csharpcomp.c: Likewise.
219         * lib/csharpcomp.h: Likewise.
220         * lib/csharpexec.c: Likewise.
221         * lib/csharpexec.h: Likewise.
222         * lib/cycle-check.c: Likewise.
223         * lib/cycle-check.h: Likewise.
224         * lib/diacrit.c: Likewise.
225         * lib/diacrit.h: Likewise.
226         * lib/diffseq.h: Likewise.
227         * lib/dirchownmod.c: Likewise.
228         * lib/dirent.in.h: Likewise.
229         * lib/dirfd.c: Likewise.
230         * lib/dirfd.h: Likewise.
231         * lib/dirname.c: Likewise.
232         * lib/dirname.h: Likewise.
233         * lib/dummy.c: Likewise.
234         * lib/dup-safer.c: Likewise.
235         * lib/dup2.c: Likewise.
236         * lib/eealloc.h: Likewise.
237         * lib/error.c: Likewise.
238         * lib/error.h: Likewise.
239         * lib/euidaccess.c: Likewise.
240         * lib/exclude.c: Likewise.
241         * lib/exclude.h: Likewise.
242         * lib/execute.c: Likewise.
243         * lib/execute.h: Likewise.
244         * lib/exitfail.c: Likewise.
245         * lib/exitfail.h: Likewise.
246         * lib/expl.c: Likewise.
247         * lib/fatal-signal.c: Likewise.
248         * lib/fatal-signal.h: Likewise.
249         * lib/fbufmode.c: Likewise.
250         * lib/fbufmode.h: Likewise.
251         * lib/fchdir.c: Likewise.
252         * lib/fchmodat.c: Likewise.
253         * lib/fchownat.c: Likewise.
254         * lib/fcntl--.h: Likewise.
255         * lib/fcntl-safer.h: Likewise.
256         * lib/fcntl.in.h: Likewise.
257         * lib/fd-safer.c: Likewise.
258         * lib/fflush.c: Likewise.
259         * lib/file-has-acl.c: Likewise.
260         * lib/file-set.c: Likewise.
261         * lib/file-type.c: Likewise.
262         * lib/file-type.h: Likewise.
263         * lib/fileblocks.c: Likewise.
264         * lib/filemode.c: Likewise.
265         * lib/filemode.h: Likewise.
266         * lib/filename.h: Likewise.
267         * lib/filenamecat.c: Likewise.
268         * lib/filenamecat.h: Likewise.
269         * lib/findprog.c: Likewise.
270         * lib/findprog.h: Likewise.
271         * lib/float.in.h: Likewise.
272         * lib/floor.c: Likewise.
273         * lib/floorf.c: Likewise.
274         * lib/floorl.c: Likewise.
275         * lib/fopen-safer.c: Likewise.
276         * lib/fopen.c: Likewise.
277         * lib/fpending.c: Likewise.
278         * lib/fpending.h: Likewise.
279         * lib/fprintf.c: Likewise.
280         * lib/fprintftime.h: Likewise.
281         * lib/fpucw.h: Likewise.
282         * lib/fpurge.c: Likewise.
283         * lib/fpurge.h: Likewise.
284         * lib/freadable.c: Likewise.
285         * lib/freadable.h: Likewise.
286         * lib/freadahead.c: Likewise.
287         * lib/freadahead.h: Likewise.
288         * lib/freading.c: Likewise.
289         * lib/freading.h: Likewise.
290         * lib/free.c: Likewise.
291         * lib/freopen.c: Likewise.
292         * lib/frexp.c: Likewise.
293         * lib/frexpl.c: Likewise.
294         * lib/fseek.c: Likewise.
295         * lib/fseterr.c: Likewise.
296         * lib/fseterr.h: Likewise.
297         * lib/fstatat.c: Likewise.
298         * lib/fstrcmp.c: Likewise.
299         * lib/fstrcmp.h: Likewise.
300         * lib/fsusage.c: Likewise.
301         * lib/fsusage.h: Likewise.
302         * lib/ftell.c: Likewise.
303         * lib/ftello.c: Likewise.
304         * lib/fts-cycle.c: Likewise.
305         * lib/fts.c: Likewise.
306         * lib/fts_.h: Likewise.
307         * lib/full-read.c: Likewise.
308         * lib/full-read.h: Likewise.
309         * lib/full-write.c: Likewise.
310         * lib/full-write.h: Likewise.
311         * lib/fwritable.c: Likewise.
312         * lib/fwritable.h: Likewise.
313         * lib/fwriteerror.c: Likewise.
314         * lib/fwriteerror.h: Likewise.
315         * lib/fwriting.c: Likewise.
316         * lib/fwriting.h: Likewise.
317         * lib/gcd.c: Likewise.
318         * lib/gcd.h: Likewise.
319         * lib/getcwd.c: Likewise.
320         * lib/getdate.h: Likewise.
321         * lib/getdate.y: Likewise.
322         * lib/getdomainname.c: Likewise.
323         * lib/getdomainname.h: Likewise.
324         * lib/getgroups.c: Likewise.
325         * lib/gethostname.c: Likewise.
326         * lib/gethrxtime.c: Likewise.
327         * lib/gethrxtime.h: Likewise.
328         * lib/getloadavg.c: Likewise.
329         * lib/getndelim2.c: Likewise.
330         * lib/getndelim2.h: Likewise.
331         * lib/getnline.c: Likewise.
332         * lib/getnline.h: Likewise.
333         * lib/getopt.c: Likewise.
334         * lib/getopt.in.h: Likewise.
335         * lib/getopt1.c: Likewise.
336         * lib/getopt_int.h: Likewise.
337         * lib/getpagesize.h: Likewise.
338         * lib/getsubopt.c: Likewise.
339         * lib/gettime.c: Likewise.
340         * lib/getugroups.c: Likewise.
341         * lib/getugroups.h: Likewise.
342         * lib/getusershell.c: Likewise.
343         * lib/gl_anyavltree_list1.h: Likewise.
344         * lib/gl_anyavltree_list2.h: Likewise.
345         * lib/gl_anyhash_list1.h: Likewise.
346         * lib/gl_anyhash_list2.h: Likewise.
347         * lib/gl_anylinked_list1.h: Likewise.
348         * lib/gl_anylinked_list2.h: Likewise.
349         * lib/gl_anyrbtree_list1.h: Likewise.
350         * lib/gl_anyrbtree_list2.h: Likewise.
351         * lib/gl_anytree_list1.h: Likewise.
352         * lib/gl_anytree_list2.h: Likewise.
353         * lib/gl_anytree_oset.h: Likewise.
354         * lib/gl_anytreehash_list1.h: Likewise.
355         * lib/gl_anytreehash_list2.h: Likewise.
356         * lib/gl_array_list.c: Likewise.
357         * lib/gl_array_list.h: Likewise.
358         * lib/gl_array_oset.c: Likewise.
359         * lib/gl_array_oset.h: Likewise.
360         * lib/gl_avltree_list.c: Likewise.
361         * lib/gl_avltree_list.h: Likewise.
362         * lib/gl_avltree_oset.c: Likewise.
363         * lib/gl_avltree_oset.h: Likewise.
364         * lib/gl_avltreehash_list.c: Likewise.
365         * lib/gl_avltreehash_list.h: Likewise.
366         * lib/gl_carray_list.c: Likewise.
367         * lib/gl_carray_list.h: Likewise.
368         * lib/gl_linked_list.c: Likewise.
369         * lib/gl_linked_list.h: Likewise.
370         * lib/gl_linkedhash_list.c: Likewise.
371         * lib/gl_linkedhash_list.h: Likewise.
372         * lib/gl_list.c: Likewise.
373         * lib/gl_list.h: Likewise.
374         * lib/gl_oset.c: Likewise.
375         * lib/gl_oset.h: Likewise.
376         * lib/gl_rbtree_list.c: Likewise.
377         * lib/gl_rbtree_list.h: Likewise.
378         * lib/gl_rbtree_oset.c: Likewise.
379         * lib/gl_rbtree_oset.h: Likewise.
380         * lib/gl_rbtreehash_list.c: Likewise.
381         * lib/gl_rbtreehash_list.h: Likewise.
382         * lib/gl_sublist.c: Likewise.
383         * lib/gl_sublist.h: Likewise.
384         * lib/group-member.c: Likewise.
385         * lib/group-member.h: Likewise.
386         * lib/hard-locale.c: Likewise.
387         * lib/hard-locale.h: Likewise.
388         * lib/hash-pjw.c: Likewise.
389         * lib/hash-pjw.h: Likewise.
390         * lib/hash-triple.c: Likewise.
391         * lib/hash.c: Likewise.
392         * lib/hash.h: Likewise.
393         * lib/human.c: Likewise.
394         * lib/human.h: Likewise.
395         * lib/i-ring.c: Likewise.
396         * lib/i-ring.h: Likewise.
397         * lib/idcache.c: Likewise.
398         * lib/imaxabs.c: Likewise.
399         * lib/imaxdiv.c: Likewise.
400         * lib/inet_pton.c: Likewise.
401         * lib/inet_pton.h: Likewise.
402         * lib/intprops.h: Likewise.
403         * lib/inttostr.c: Likewise.
404         * lib/inttostr.h: Likewise.
405         * lib/inttypes.in.h: Likewise.
406         * lib/isapipe.c: Likewise.
407         * lib/isdir.c: Likewise.
408         * lib/isnan.c: Likewise.
409         * lib/isnan.h: Likewise.
410         * lib/isnanf.c: Likewise.
411         * lib/isnanf.h: Likewise.
412         * lib/isnanl-nolibm.h: Likewise.
413         * lib/isnanl.c: Likewise.
414         * lib/isnanl.h: Likewise.
415         * lib/javacomp.c: Likewise.
416         * lib/javacomp.h: Likewise.
417         * lib/javaexec.c: Likewise.
418         * lib/javaexec.h: Likewise.
419         * lib/javaversion.c: Likewise.
420         * lib/javaversion.h: Likewise.
421         * lib/javaversion.java: Likewise.
422         * lib/lbrkprop.h: Likewise.
423         * lib/lchmod.h: Likewise.
424         * lib/lchown.c: Likewise.
425         * lib/ldexpl.c: Likewise.
426         * lib/linebreak.c: Likewise.
427         * lib/linebreak.h: Likewise.
428         * lib/linebuffer.c: Likewise.
429         * lib/linebuffer.h: Likewise.
430         * lib/locale.in.h: Likewise.
431         * lib/logl.c: Likewise.
432         * lib/long-options.c: Likewise.
433         * lib/long-options.h: Likewise.
434         * lib/lstat.c: Likewise.
435         * lib/lstat.h: Likewise.
436         * lib/math.in.h: Likewise.
437         * lib/mbchar.c: Likewise.
438         * lib/mbchar.h: Likewise.
439         * lib/mbfile.h: Likewise.
440         * lib/mbiter.h: Likewise.
441         * lib/mbscasecmp.c: Likewise.
442         * lib/mbscasestr.c: Likewise.
443         * lib/mbschr.c: Likewise.
444         * lib/mbscspn.c: Likewise.
445         * lib/mbslen.c: Likewise.
446         * lib/mbsncasecmp.c: Likewise.
447         * lib/mbsnlen.c: Likewise.
448         * lib/mbspbrk.c: Likewise.
449         * lib/mbspcasecmp.c: Likewise.
450         * lib/mbsrchr.c: Likewise.
451         * lib/mbssep.c: Likewise.
452         * lib/mbsspn.c: Likewise.
453         * lib/mbsstr.c: Likewise.
454         * lib/mbstok_r.c: Likewise.
455         * lib/mbswidth.c: Likewise.
456         * lib/mbswidth.h: Likewise.
457         * lib/mbuiter.h: Likewise.
458         * lib/memcasecmp.c: Likewise.
459         * lib/memcasecmp.h: Likewise.
460         * lib/memchr.c: Likewise.
461         * lib/memcmp.c: Likewise.
462         * lib/memcoll.c: Likewise.
463         * lib/memcoll.h: Likewise.
464         * lib/memcpy.c: Likewise.
465         * lib/memrchr.c: Likewise.
466         * lib/mkancesdirs.c: Likewise.
467         * lib/mkdir-p.c: Likewise.
468         * lib/mkdir-p.h: Likewise.
469         * lib/mkdir.c: Likewise.
470         * lib/mkdirat.c: Likewise.
471         * lib/mkdtemp.c: Likewise.
472         * lib/mkstemp-safer.c: Likewise.
473         * lib/mkstemp.c: Likewise.
474         * lib/modechange.c: Likewise.
475         * lib/modechange.h: Likewise.
476         * lib/mountlist.c: Likewise.
477         * lib/mountlist.h: Likewise.
478         * lib/mpsort.c: Likewise.
479         * lib/nanosleep.c: Likewise.
480         * lib/obstack.c: Likewise.
481         * lib/obstack.h: Likewise.
482         * lib/open-safer.c: Likewise.
483         * lib/open.c: Likewise.
484         * lib/openat-die.c: Likewise.
485         * lib/openat-priv.h: Likewise.
486         * lib/openat-proc.c: Likewise.
487         * lib/openat.c: Likewise.
488         * lib/openat.h: Likewise.
489         * lib/pagealign_alloc.c: Likewise.
490         * lib/pagealign_alloc.h: Likewise.
491         * lib/physmem.c: Likewise.
492         * lib/physmem.h: Likewise.
493         * lib/pipe-safer.c: Likewise.
494         * lib/pipe.c: Likewise.
495         * lib/pipe.h: Likewise.
496         * lib/posixtm.c: Likewise.
497         * lib/posixtm.h: Likewise.
498         * lib/posixver.c: Likewise.
499         * lib/printf-frexp.c: Likewise.
500         * lib/printf-frexp.h: Likewise.
501         * lib/printf-frexpl.c: Likewise.
502         * lib/printf-frexpl.h: Likewise.
503         * lib/printf.c: Likewise.
504         * lib/progname.c: Likewise.
505         * lib/progname.h: Likewise.
506         * lib/progreloc.c: Likewise.
507         * lib/putenv.c: Likewise.
508         * lib/quote.c: Likewise.
509         * lib/quote.h: Likewise.
510         * lib/quotearg.c: Likewise.
511         * lib/quotearg.h: Likewise.
512         * lib/raise.c: Likewise.
513         * lib/readline.c: Likewise.
514         * lib/readline.h: Likewise.
515         * lib/readlink.c: Likewise.
516         * lib/readtokens.c: Likewise.
517         * lib/readtokens.h: Likewise.
518         * lib/readtokens0.c: Likewise.
519         * lib/readtokens0.h: Likewise.
520         * lib/readutmp.c: Likewise.
521         * lib/readutmp.h: Likewise.
522         * lib/realloc.c: Likewise.
523         * lib/relocwrapper.c: Likewise.
524         * lib/rename-dest-slash.c: Likewise.
525         * lib/rename.c: Likewise.
526         * lib/rmdir.c: Likewise.
527         * lib/rpmatch.c: Likewise.
528         * lib/safe-read.c: Likewise.
529         * lib/safe-read.h: Likewise.
530         * lib/safe-write.c: Likewise.
531         * lib/safe-write.h: Likewise.
532         * lib/same-inode.h: Likewise.
533         * lib/same.c: Likewise.
534         * lib/same.h: Likewise.
535         * lib/save-cwd.c: Likewise.
536         * lib/save-cwd.h: Likewise.
537         * lib/savedir.c: Likewise.
538         * lib/savedir.h: Likewise.
539         * lib/savewd.c: Likewise.
540         * lib/savewd.h: Likewise.
541         * lib/search.in.h: Likewise.
542         * lib/setenv.c: Likewise.
543         * lib/setenv.h: Likewise.
544         * lib/settime.c: Likewise.
545         * lib/sh-quote.c: Likewise.
546         * lib/sh-quote.h: Likewise.
547         * lib/sig2str.c: Likewise.
548         * lib/sig2str.h: Likewise.
549         * lib/signal.in.h: Likewise.
550         * lib/signbitd.c: Likewise.
551         * lib/signbitf.c: Likewise.
552         * lib/signbitl.c: Likewise.
553         * lib/sigprocmask.c: Likewise.
554         * lib/sincosl.c: Likewise.
555         * lib/sleep.c: Likewise.
556         * lib/sprintf.c: Likewise.
557         * lib/sqrtl.c: Likewise.
558         * lib/stat-time.h: Likewise.
559         * lib/stdio--.h: Likewise.
560         * lib/stdio-safer.h: Likewise.
561         * lib/stdlib--.h: Likewise.
562         * lib/stdlib-safer.h: Likewise.
563         * lib/stdlib.in.h: Likewise.
564         * lib/stpcpy.c: Likewise.
565         * lib/stpncpy.c: Likewise.
566         * lib/strchrnul.c: Likewise.
567         * lib/strcspn.c: Likewise.
568         * lib/strerror.c: Likewise.
569         * lib/strftime.c: Likewise.
570         * lib/strftime.h: Likewise.
571         * lib/striconveh.c: Likewise.
572         * lib/striconveh.h: Likewise.
573         * lib/striconveha.c: Likewise.
574         * lib/striconveha.h: Likewise.
575         * lib/stripslash.c: Likewise.
576         * lib/strnlen1.c: Likewise.
577         * lib/strnlen1.h: Likewise.
578         * lib/strtod.c: Likewise.
579         * lib/strtoimax.c: Likewise.
580         * lib/strtok_r.c: Likewise.
581         * lib/strtol.c: Likewise.
582         * lib/strtoll.c: Likewise.
583         * lib/strtoul.c: Likewise.
584         * lib/strtoull.c: Likewise.
585         * lib/sysexits.in.h: Likewise.
586         * lib/tempname.c: Likewise.
587         * lib/tempname.h: Likewise.
588         * lib/timespec.h: Likewise.
589         * lib/tls.c: Likewise.
590         * lib/tls.h: Likewise.
591         * lib/tmpdir.c: Likewise.
592         * lib/tmpdir.h: Likewise.
593         * lib/tmpfile-safer.c: Likewise.
594         * lib/tmpfile.c: Likewise.
595         * lib/trigl.c: Likewise.
596         * lib/trigl.h: Likewise.
597         * lib/trim.c: Likewise.
598         * lib/trim.h: Likewise.
599         * lib/trunc.c: Likewise.
600         * lib/truncf.c: Likewise.
601         * lib/truncl.c: Likewise.
602         * lib/tsearch.c: Likewise.
603         * lib/unicodeio.c: Likewise.
604         * lib/unicodeio.h: Likewise.
605         * lib/unistd--.h: Likewise.
606         * lib/unistd-safer.h: Likewise.
607         * lib/unistdio/ulc-fprintf.c: Likewise.
608         * lib/unistdio/ulc-vfprintf.c: Likewise.
609         * lib/unlinkdir.c: Likewise.
610         * lib/unlinkdir.h: Likewise.
611         * lib/unlocked-io.h: Likewise.
612         * lib/unsetenv.c: Likewise.
613         * lib/userspec.c: Likewise.
614         * lib/utime.c: Likewise.
615         * lib/utimecmp.c: Likewise.
616         * lib/utimecmp.h: Likewise.
617         * lib/utimens.c: Likewise.
618         * lib/verify.h: Likewise.
619         * lib/verror.c: Likewise.
620         * lib/verror.h: Likewise.
621         * lib/version-etc-fsf.c: Likewise.
622         * lib/version-etc.c: Likewise.
623         * lib/version-etc.h: Likewise.
624         * lib/vfprintf.c: Likewise.
625         * lib/vprintf.c: Likewise.
626         * lib/vsprintf.c: Likewise.
627         * lib/w32spawn.h: Likewise.
628         * lib/wait-process.c: Likewise.
629         * lib/wait-process.h: Likewise.
630         * lib/wcwidth.c: Likewise.
631         * lib/write-any-file.c: Likewise.
632         * lib/xalloc-die.c: Likewise.
633         * lib/xalloc.h: Likewise.
634         * lib/xasprintf.c: Likewise.
635         * lib/xgetcwd.c: Likewise.
636         * lib/xgetcwd.h: Likewise.
637         * lib/xgetdomainname.c: Likewise.
638         * lib/xgetdomainname.h: Likewise.
639         * lib/xgethostname.c: Likewise.
640         * lib/xmalloc.c: Likewise.
641         * lib/xmalloca.c: Likewise.
642         * lib/xmalloca.h: Likewise.
643         * lib/xmemcoll.c: Likewise.
644         * lib/xnanosleep.c: Likewise.
645         * lib/xreadlink.c: Likewise.
646         * lib/xreadlink.h: Likewise.
647         * lib/xsetenv.c: Likewise.
648         * lib/xsetenv.h: Likewise.
649         * lib/xstriconv.c: Likewise.
650         * lib/xstriconv.h: Likewise.
651         * lib/xstrndup.c: Likewise.
652         * lib/xstrndup.h: Likewise.
653         * lib/xstrtod.c: Likewise.
654         * lib/xstrtod.h: Likewise.
655         * lib/xstrtol-error.c: Likewise.
656         * lib/xstrtol.c: Likewise.
657         * lib/xstrtol.h: Likewise.
658         * lib/xtime.h: Likewise.
659         * lib/xvasprintf.c: Likewise.
660         * lib/xvasprintf.h: Likewise.
661         * lib/yesno.c: Likewise.
662         * lib/yesno.h: Likewise.
663         * posix-modules: Likewise.
664         * tests/test-alloca-opt.c: Likewise.
665         * tests/test-arcfour.c: Likewise.
666         * tests/test-arctwo.c: Likewise.
667         * tests/test-argmatch.c: Likewise.
668         * tests/test-argp-2.sh: Likewise.
669         * tests/test-argp.c: Likewise.
670         * tests/test-arpa_inet.c: Likewise.
671         * tests/test-array_list.c: Likewise.
672         * tests/test-array_oset.c: Likewise.
673         * tests/test-atexit.c: Likewise.
674         * tests/test-avltree_list.c: Likewise.
675         * tests/test-avltree_oset.c: Likewise.
676         * tests/test-avltreehash_list.c: Likewise.
677         * tests/test-base64.c: Likewise.
678         * tests/test-binary-io.c: Likewise.
679         * tests/test-byteswap.c: Likewise.
680         * tests/test-c-ctype.c: Likewise.
681         * tests/test-c-strcasecmp.c: Likewise.
682         * tests/test-c-strcasestr.c: Likewise.
683         * tests/test-c-strncasecmp.c: Likewise.
684         * tests/test-c-strstr.c: Likewise.
685         * tests/test-canonicalize-lgpl.c: Likewise.
686         * tests/test-canonicalize.c: Likewise.
687         * tests/test-carray_list.c: Likewise.
688         * tests/test-ceilf.c: Likewise.
689         * tests/test-ceill.c: Likewise.
690         * tests/test-count-one-bits.c: Likewise.
691         * tests/test-crc.c: Likewise.
692         * tests/test-dirname.c: Likewise.
693         * tests/test-fbufmode.c: Likewise.
694         * tests/test-fcntl.c: Likewise.
695         * tests/test-fflush.c: Likewise.
696         * tests/test-floorf.c: Likewise.
697         * tests/test-floorl.c: Likewise.
698         * tests/test-fopen.c: Likewise.
699         * tests/test-fprintf-posix.c: Likewise.
700         * tests/test-fprintf-posix.h: Likewise.
701         * tests/test-fpurge.c: Likewise.
702         * tests/test-freadable.c: Likewise.
703         * tests/test-freadahead.c: Likewise.
704         * tests/test-freading.c: Likewise.
705         * tests/test-freopen.c: Likewise.
706         * tests/test-frexp.c: Likewise.
707         * tests/test-frexpl.c: Likewise.
708         * tests/test-fseek.c: Likewise.
709         * tests/test-fseeko.c: Likewise.
710         * tests/test-fseterr.c: Likewise.
711         * tests/test-fstrcmp.c: Likewise.
712         * tests/test-ftell.c: Likewise.
713         * tests/test-ftello.c: Likewise.
714         * tests/test-fwritable.c: Likewise.
715         * tests/test-fwriting.c: Likewise.
716         * tests/test-getaddrinfo.c: Likewise.
717         * tests/test-getpass.c: Likewise.
718         * tests/test-gettimeofday.c: Likewise.
719         * tests/test-hmac-md5.c: Likewise.
720         * tests/test-hmac-sha1.c: Likewise.
721         * tests/test-iconv.c: Likewise.
722         * tests/test-iconvme.c: Likewise.
723         * tests/test-inttypes.c: Likewise.
724         * tests/test-isnan.c: Likewise.
725         * tests/test-isnanf.c: Likewise.
726         * tests/test-isnanl-nolibm.c: Likewise.
727         * tests/test-isnanl.c: Likewise.
728         * tests/test-isnanl.h: Likewise.
729         * tests/test-ldexpl.c: Likewise.
730         * tests/test-linked_list.c: Likewise.
731         * tests/test-linkedhash_list.c: Likewise.
732         * tests/test-locale.c: Likewise.
733         * tests/test-localename.c: Likewise.
734         * tests/test-lock.c: Likewise.
735         * tests/test-lseek.c: Likewise.
736         * tests/test-malloca.c: Likewise.
737         * tests/test-math.c: Likewise.
738         * tests/test-mbscasecmp.c: Likewise.
739         * tests/test-mbscasestr1.c: Likewise.
740         * tests/test-mbscasestr2.c: Likewise.
741         * tests/test-mbscasestr3.c: Likewise.
742         * tests/test-mbscasestr4.c: Likewise.
743         * tests/test-mbschr.c: Likewise.
744         * tests/test-mbscspn.c: Likewise.
745         * tests/test-mbsncasecmp.c: Likewise.
746         * tests/test-mbspbrk.c: Likewise.
747         * tests/test-mbspcasecmp.c: Likewise.
748         * tests/test-mbsrchr.c: Likewise.
749         * tests/test-mbsspn.c: Likewise.
750         * tests/test-mbsstr1.c: Likewise.
751         * tests/test-mbsstr2.c: Likewise.
752         * tests/test-mbsstr3.c: Likewise.
753         * tests/test-md5.c: Likewise.
754         * tests/test-memmem.c: Likewise.
755         * tests/test-netinet_in.c: Likewise.
756         * tests/test-open.c: Likewise.
757         * tests/test-printf-frexp.c: Likewise.
758         * tests/test-printf-frexpl.c: Likewise.
759         * tests/test-printf-posix.c: Likewise.
760         * tests/test-printf-posix.h: Likewise.
761         * tests/test-rbtree_list.c: Likewise.
762         * tests/test-rbtree_oset.c: Likewise.
763         * tests/test-rbtreehash_list.c: Likewise.
764         * tests/test-read-file.c: Likewise.
765         * tests/test-rijndael.c: Likewise.
766         * tests/test-search.c: Likewise.
767         * tests/test-signbit.c: Likewise.
768         * tests/test-sleep.c: Likewise.
769         * tests/test-snprintf-posix.c: Likewise.
770         * tests/test-snprintf-posix.h: Likewise.
771         * tests/test-snprintf.c: Likewise.
772         * tests/test-sprintf-posix.c: Likewise.
773         * tests/test-sprintf-posix.h: Likewise.
774         * tests/test-stat-time.c: Likewise.
775         * tests/test-stdbool.c: Likewise.
776         * tests/test-stdint.c: Likewise.
777         * tests/test-stdio.c: Likewise.
778         * tests/test-stdlib.c: Likewise.
779         * tests/test-stpncpy.c: Likewise.
780         * tests/test-strcasestr.c: Likewise.
781         * tests/test-striconv.c: Likewise.
782         * tests/test-striconveh.c: Likewise.
783         * tests/test-striconveha.c: Likewise.
784         * tests/test-string.c: Likewise.
785         * tests/test-sys_select.c: Likewise.
786         * tests/test-sys_socket.c: Likewise.
787         * tests/test-sys_stat.c: Likewise.
788         * tests/test-sys_time.c: Likewise.
789         * tests/test-sysexits.c: Likewise.
790         * tests/test-time.c: Likewise.
791         * tests/test-tls.c: Likewise.
792         * tests/test-trunc.c: Likewise.
793         * tests/test-truncf.c: Likewise.
794         * tests/test-truncl.c: Likewise.
795         * tests/test-unistd.c: Likewise.
796         * tests/test-vasnprintf-posix.c: Likewise.
797         * tests/test-vasnprintf-posix2.c: Likewise.
798         * tests/test-vasnprintf.c: Likewise.
799         * tests/test-vasprintf-posix.c: Likewise.
800         * tests/test-vasprintf.c: Likewise.
801         * tests/test-verify.c: Likewise.
802         * tests/test-vfprintf-posix.c: Likewise.
803         * tests/test-vprintf-posix.c: Likewise.
804         * tests/test-vsnprintf-posix.c: Likewise.
805         * tests/test-vsnprintf.c: Likewise.
806         * tests/test-vsprintf-posix.c: Likewise.
807         * tests/test-wchar.c: Likewise.
808         * tests/test-wctype.c: Likewise.
809         * tests/test-wcwidth.c: Likewise.
810         * tests/test-xstrtol.c: Likewise.
811         * tests/test-xvasprintf.c: Likewise.
812         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
813         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
814         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
815         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
816         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
817         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
818         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
819         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
820         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
821         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
822         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
823         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
824         * tests/uniname/test-uninames.c: Likewise.
825         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
826         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
827         * tests/unistdio/test-u16-printf1.h: Likewise.
828         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
829         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
830         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
831         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
832         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
833         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
834         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
835         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
836         * tests/unistdio/test-u32-printf1.h: Likewise.
837         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
838         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
839         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
840         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
841         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
842         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
843         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
844         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
845         * tests/unistdio/test-u8-printf1.h: Likewise.
846         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
847         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
848         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
849         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
850         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
851         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
852         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
853         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
854         * tests/unistdio/test-ulc-printf1.h: Likewise.
855         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
856         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
857         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
858         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
859         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
860         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
861         * tests/uniwidth/test-u16-strwidth.c: Likewise.
862         * tests/uniwidth/test-u16-width.c: Likewise.
863         * tests/uniwidth/test-u32-strwidth.c: Likewise.
864         * tests/uniwidth/test-u32-width.c: Likewise.
865         * tests/uniwidth/test-u8-strwidth.c: Likewise.
866         * tests/uniwidth/test-u8-width.c: Likewise.
867         * tests/uniwidth/test-uc_width.c: Likewise.
868         * config/srclist-update: Likewise.
869         (fixlicense): Update to GPLv3+.
870
871         Change copyright notice from LGPLv2.1+ to LGPLv3+.
872         * tests/test-tsearch.c: Change copyright notice.
873
874         Change copyright notice from LGPLv2.0+ to LGPLv3+.
875         * lib/c-strcaseeq.h: Change copyright notice.
876         * lib/streq.h: Likewise.
877         * lib/uniconv.h: Likewise.
878         * lib/uniconv/u-conv-from-enc.h: Likewise.
879         * lib/uniconv/u-conv-to-enc.h: Likewise.
880         * lib/uniconv/u-strconv-from-enc.h: Likewise.
881         * lib/uniconv/u-strconv-to-enc.h: Likewise.
882         * lib/uniconv/u16-conv-from-enc.c: Likewise.
883         * lib/uniconv/u16-conv-to-enc.c: Likewise.
884         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
885         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
886         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
887         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
888         * lib/uniconv/u32-conv-from-enc.c: Likewise.
889         * lib/uniconv/u32-conv-to-enc.c: Likewise.
890         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
891         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
892         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
893         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
894         * lib/uniconv/u8-conv-from-enc.c: Likewise.
895         * lib/uniconv/u8-conv-to-enc.c: Likewise.
896         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
897         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
898         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
899         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
900         * lib/uniname.h: Likewise.
901         * lib/uniname/uniname.c: Likewise.
902         * lib/unistdio.h: Likewise.
903         * lib/unistdio/u-asnprintf.h: Likewise.
904         * lib/unistdio/u-asprintf.h: Likewise.
905         * lib/unistdio/u-printf-args.c: Likewise.
906         * lib/unistdio/u-printf-args.h: Likewise.
907         * lib/unistdio/u-printf-parse.h: Likewise.
908         * lib/unistdio/u-snprintf.h: Likewise.
909         * lib/unistdio/u-sprintf.h: Likewise.
910         * lib/unistdio/u-vasprintf.h: Likewise.
911         * lib/unistdio/u-vsnprintf.h: Likewise.
912         * lib/unistdio/u-vsprintf.h: Likewise.
913         * lib/unistdio/u16-asnprintf.c: Likewise.
914         * lib/unistdio/u16-asprintf.c: Likewise.
915         * lib/unistdio/u16-printf-parse.c: Likewise.
916         * lib/unistdio/u16-snprintf.c: Likewise.
917         * lib/unistdio/u16-sprintf.c: Likewise.
918         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
919         * lib/unistdio/u16-u16-asprintf.c: Likewise.
920         * lib/unistdio/u16-u16-snprintf.c: Likewise.
921         * lib/unistdio/u16-u16-sprintf.c: Likewise.
922         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
923         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
924         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
925         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
926         * lib/unistdio/u16-vasnprintf.c: Likewise.
927         * lib/unistdio/u16-vasprintf.c: Likewise.
928         * lib/unistdio/u16-vsnprintf.c: Likewise.
929         * lib/unistdio/u16-vsprintf.c: Likewise.
930         * lib/unistdio/u32-asnprintf.c: Likewise.
931         * lib/unistdio/u32-asprintf.c: Likewise.
932         * lib/unistdio/u32-printf-parse.c: Likewise.
933         * lib/unistdio/u32-snprintf.c: Likewise.
934         * lib/unistdio/u32-sprintf.c: Likewise.
935         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
936         * lib/unistdio/u32-u32-asprintf.c: Likewise.
937         * lib/unistdio/u32-u32-snprintf.c: Likewise.
938         * lib/unistdio/u32-u32-sprintf.c: Likewise.
939         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
940         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
941         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
942         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
943         * lib/unistdio/u32-vasnprintf.c: Likewise.
944         * lib/unistdio/u32-vasprintf.c: Likewise.
945         * lib/unistdio/u32-vsnprintf.c: Likewise.
946         * lib/unistdio/u32-vsprintf.c: Likewise.
947         * lib/unistdio/u8-asnprintf.c: Likewise.
948         * lib/unistdio/u8-asprintf.c: Likewise.
949         * lib/unistdio/u8-printf-parse.c: Likewise.
950         * lib/unistdio/u8-snprintf.c: Likewise.
951         * lib/unistdio/u8-sprintf.c: Likewise.
952         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
953         * lib/unistdio/u8-u8-asprintf.c: Likewise.
954         * lib/unistdio/u8-u8-snprintf.c: Likewise.
955         * lib/unistdio/u8-u8-sprintf.c: Likewise.
956         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
957         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
958         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
959         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
960         * lib/unistdio/u8-vasnprintf.c: Likewise.
961         * lib/unistdio/u8-vasprintf.c: Likewise.
962         * lib/unistdio/u8-vsnprintf.c: Likewise.
963         * lib/unistdio/u8-vsprintf.c: Likewise.
964         * lib/unistdio/ulc-asnprintf.c: Likewise.
965         * lib/unistdio/ulc-asprintf.c: Likewise.
966         * lib/unistdio/ulc-printf-parse.c: Likewise.
967         * lib/unistdio/ulc-snprintf.c: Likewise.
968         * lib/unistdio/ulc-sprintf.c: Likewise.
969         * lib/unistdio/ulc-vasnprintf.c: Likewise.
970         * lib/unistdio/ulc-vasprintf.c: Likewise.
971         * lib/unistdio/ulc-vsnprintf.c: Likewise.
972         * lib/unistdio/ulc-vsprintf.c: Likewise.
973         * lib/unistr.h: Likewise.
974         * lib/unistr/u-cpy-alloc.h: Likewise.
975         * lib/unistr/u-cpy.h: Likewise.
976         * lib/unistr/u-endswith.h: Likewise.
977         * lib/unistr/u-move.h: Likewise.
978         * lib/unistr/u-set.h: Likewise.
979         * lib/unistr/u-startswith.h: Likewise.
980         * lib/unistr/u-stpcpy.h: Likewise.
981         * lib/unistr/u-stpncpy.h: Likewise.
982         * lib/unistr/u-strcat.h: Likewise.
983         * lib/unistr/u-strcpy.h: Likewise.
984         * lib/unistr/u-strcspn.h: Likewise.
985         * lib/unistr/u-strdup.h: Likewise.
986         * lib/unistr/u-strlen.h: Likewise.
987         * lib/unistr/u-strncat.h: Likewise.
988         * lib/unistr/u-strncpy.h: Likewise.
989         * lib/unistr/u-strnlen.h: Likewise.
990         * lib/unistr/u-strpbrk.h: Likewise.
991         * lib/unistr/u-strspn.h: Likewise.
992         * lib/unistr/u-strstr.h: Likewise.
993         * lib/unistr/u-strtok.h: Likewise.
994         * lib/unistr/u16-check.c: Likewise.
995         * lib/unistr/u16-chr.c: Likewise.
996         * lib/unistr/u16-cmp.c: Likewise.
997         * lib/unistr/u16-cpy-alloc.c: Likewise.
998         * lib/unistr/u16-cpy.c: Likewise.
999         * lib/unistr/u16-endswith.c: Likewise.
1000         * lib/unistr/u16-mblen.c: Likewise.
1001         * lib/unistr/u16-mbsnlen.c: Likewise.
1002         * lib/unistr/u16-mbtouc-aux.c: Likewise.
1003         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
1004         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
1005         * lib/unistr/u16-mbtouc.c: Likewise.
1006         * lib/unistr/u16-mbtoucr.c: Likewise.
1007         * lib/unistr/u16-move.c: Likewise.
1008         * lib/unistr/u16-next.c: Likewise.
1009         * lib/unistr/u16-prev.c: Likewise.
1010         * lib/unistr/u16-set.c: Likewise.
1011         * lib/unistr/u16-startswith.c: Likewise.
1012         * lib/unistr/u16-stpcpy.c: Likewise.
1013         * lib/unistr/u16-stpncpy.c: Likewise.
1014         * lib/unistr/u16-strcat.c: Likewise.
1015         * lib/unistr/u16-strchr.c: Likewise.
1016         * lib/unistr/u16-strcmp.c: Likewise.
1017         * lib/unistr/u16-strcpy.c: Likewise.
1018         * lib/unistr/u16-strcspn.c: Likewise.
1019         * lib/unistr/u16-strdup.c: Likewise.
1020         * lib/unistr/u16-strlen.c: Likewise.
1021         * lib/unistr/u16-strmblen.c: Likewise.
1022         * lib/unistr/u16-strmbtouc.c: Likewise.
1023         * lib/unistr/u16-strncat.c: Likewise.
1024         * lib/unistr/u16-strncmp.c: Likewise.
1025         * lib/unistr/u16-strncpy.c: Likewise.
1026         * lib/unistr/u16-strnlen.c: Likewise.
1027         * lib/unistr/u16-strpbrk.c: Likewise.
1028         * lib/unistr/u16-strrchr.c: Likewise.
1029         * lib/unistr/u16-strspn.c: Likewise.
1030         * lib/unistr/u16-strstr.c: Likewise.
1031         * lib/unistr/u16-strtok.c: Likewise.
1032         * lib/unistr/u16-to-u32.c: Likewise.
1033         * lib/unistr/u16-to-u8.c: Likewise.
1034         * lib/unistr/u16-uctomb-aux.c: Likewise.
1035         * lib/unistr/u16-uctomb.c: Likewise.
1036         * lib/unistr/u32-check.c: Likewise.
1037         * lib/unistr/u32-chr.c: Likewise.
1038         * lib/unistr/u32-cmp.c: Likewise.
1039         * lib/unistr/u32-cpy-alloc.c: Likewise.
1040         * lib/unistr/u32-cpy.c: Likewise.
1041         * lib/unistr/u32-endswith.c: Likewise.
1042         * lib/unistr/u32-mblen.c: Likewise.
1043         * lib/unistr/u32-mbsnlen.c: Likewise.
1044         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
1045         * lib/unistr/u32-mbtouc.c: Likewise.
1046         * lib/unistr/u32-mbtoucr.c: Likewise.
1047         * lib/unistr/u32-move.c: Likewise.
1048         * lib/unistr/u32-next.c: Likewise.
1049         * lib/unistr/u32-prev.c: Likewise.
1050         * lib/unistr/u32-set.c: Likewise.
1051         * lib/unistr/u32-startswith.c: Likewise.
1052         * lib/unistr/u32-stpcpy.c: Likewise.
1053         * lib/unistr/u32-stpncpy.c: Likewise.
1054         * lib/unistr/u32-strcat.c: Likewise.
1055         * lib/unistr/u32-strchr.c: Likewise.
1056         * lib/unistr/u32-strcmp.c: Likewise.
1057         * lib/unistr/u32-strcpy.c: Likewise.
1058         * lib/unistr/u32-strcspn.c: Likewise.
1059         * lib/unistr/u32-strdup.c: Likewise.
1060         * lib/unistr/u32-strlen.c: Likewise.
1061         * lib/unistr/u32-strmblen.c: Likewise.
1062         * lib/unistr/u32-strmbtouc.c: Likewise.
1063         * lib/unistr/u32-strncat.c: Likewise.
1064         * lib/unistr/u32-strncmp.c: Likewise.
1065         * lib/unistr/u32-strncpy.c: Likewise.
1066         * lib/unistr/u32-strnlen.c: Likewise.
1067         * lib/unistr/u32-strpbrk.c: Likewise.
1068         * lib/unistr/u32-strrchr.c: Likewise.
1069         * lib/unistr/u32-strspn.c: Likewise.
1070         * lib/unistr/u32-strstr.c: Likewise.
1071         * lib/unistr/u32-strtok.c: Likewise.
1072         * lib/unistr/u32-to-u16.c: Likewise.
1073         * lib/unistr/u32-to-u8.c: Likewise.
1074         * lib/unistr/u32-uctomb.c: Likewise.
1075         * lib/unistr/u8-check.c: Likewise.
1076         * lib/unistr/u8-chr.c: Likewise.
1077         * lib/unistr/u8-cmp.c: Likewise.
1078         * lib/unistr/u8-cpy-alloc.c: Likewise.
1079         * lib/unistr/u8-cpy.c: Likewise.
1080         * lib/unistr/u8-endswith.c: Likewise.
1081         * lib/unistr/u8-mblen.c: Likewise.
1082         * lib/unistr/u8-mbsnlen.c: Likewise.
1083         * lib/unistr/u8-mbtouc-aux.c: Likewise.
1084         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
1085         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
1086         * lib/unistr/u8-mbtouc.c: Likewise.
1087         * lib/unistr/u8-mbtoucr.c: Likewise.
1088         * lib/unistr/u8-move.c: Likewise.
1089         * lib/unistr/u8-next.c: Likewise.
1090         * lib/unistr/u8-prev.c: Likewise.
1091         * lib/unistr/u8-set.c: Likewise.
1092         * lib/unistr/u8-startswith.c: Likewise.
1093         * lib/unistr/u8-stpcpy.c: Likewise.
1094         * lib/unistr/u8-stpncpy.c: Likewise.
1095         * lib/unistr/u8-strcat.c: Likewise.
1096         * lib/unistr/u8-strchr.c: Likewise.
1097         * lib/unistr/u8-strcmp.c: Likewise.
1098         * lib/unistr/u8-strcpy.c: Likewise.
1099         * lib/unistr/u8-strcspn.c: Likewise.
1100         * lib/unistr/u8-strdup.c: Likewise.
1101         * lib/unistr/u8-strlen.c: Likewise.
1102         * lib/unistr/u8-strmblen.c: Likewise.
1103         * lib/unistr/u8-strmbtouc.c: Likewise.
1104         * lib/unistr/u8-strncat.c: Likewise.
1105         * lib/unistr/u8-strncmp.c: Likewise.
1106         * lib/unistr/u8-strncpy.c: Likewise.
1107         * lib/unistr/u8-strnlen.c: Likewise.
1108         * lib/unistr/u8-strpbrk.c: Likewise.
1109         * lib/unistr/u8-strrchr.c: Likewise.
1110         * lib/unistr/u8-strspn.c: Likewise.
1111         * lib/unistr/u8-strstr.c: Likewise.
1112         * lib/unistr/u8-strtok.c: Likewise.
1113         * lib/unistr/u8-to-u16.c: Likewise.
1114         * lib/unistr/u8-to-u32.c: Likewise.
1115         * lib/unistr/u8-uctomb-aux.c: Likewise.
1116         * lib/unistr/u8-uctomb.c: Likewise.
1117         * lib/unitypes.h: Likewise.
1118         * lib/uniwidth.h: Likewise.
1119         * lib/uniwidth/cjk.h: Likewise.
1120         * lib/uniwidth/u16-strwidth.c: Likewise.
1121         * lib/uniwidth/u16-width.c: Likewise.
1122         * lib/uniwidth/u32-strwidth.c: Likewise.
1123         * lib/uniwidth/u32-width.c: Likewise.
1124         * lib/uniwidth/u8-strwidth.c: Likewise.
1125         * lib/uniwidth/u8-width.c: Likewise.
1126         * lib/uniwidth/width.c: Likewise.
1127
1128 2007-10-07  Bruno Haible  <bruno@clisp.org>
1129
1130         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
1131         The file is still under LGPL (see modules/inttypes).
1132
1133 2007-10-06  Bruno Haible  <bruno@clisp.org>
1134
1135         * modules/trunc (Dependencies): Add 'extensions'.
1136         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
1137         Reported by Ben Pfaff <blp@gnu.org>.
1138
1139 2007-10-06  Bruno Haible  <bruno@clisp.org>
1140
1141         * modules/freopen-tests: New file.
1142         * tests/test-freopen.c: New file.
1143
1144         * modules/fopen-tests: New file.
1145         * tests/test-fopen.c: New file.
1146
1147         * modules/fopen: New file.
1148         * lib/fopen.c: New file.
1149         * m4/fopen.m4: New file.
1150         * modules/freopen: New file.
1151         * lib/freopen.c: New file.
1152         * m4/freopen.m4: New file.
1153         * lib/stdio.in.h (fopen, freopen): New declarations.
1154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
1155         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
1156         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
1157         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
1158         * doc/functions/fopen.texi: Mention the 'fopen' module.
1159         * doc/functions/freopen.texi: Mention the 'freopen' module.
1160
1161 2007-10-06  Bruno Haible  <bruno@clisp.org>
1162
1163         * modules/open-tests: New file.
1164         * tests/test-open.c: New file.
1165
1166         * modules/open: New file.
1167         * lib/open.c: New file.
1168         * m4/open.m4: New file.
1169         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
1170         lib/open.c does.
1171         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
1172         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
1173         macros.
1174         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
1175         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
1176         REPLACE_OPEN.
1177         * doc/functions/open.texi: Mention the 'open' module.
1178
1179 2007-10-04  Bruno Haible  <bruno@clisp.org>
1180
1181         * modules/ceill-tests: New file.
1182         * tests/test-ceill.c: New file.
1183
1184         * modules/ceill: New file.
1185         * lib/ceill.c: Replace entire file.
1186         * m4/ceill.m4: New file.
1187         * lib/math.in.h (ceill): Replace declaration.
1188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
1189         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
1190         * doc/functions/ceill.texi: Mention the 'ceill' module.
1191         * modules/mathl (Files): Remove lib/ceill.c.
1192         (Depends-on): Add ceill.
1193
1194 2007-10-04  Bruno Haible  <bruno@clisp.org>
1195
1196         * modules/ceilf-tests: New file.
1197         * tests/test-ceilf.c: New file.
1198
1199         * modules/ceilf: New file.
1200         * lib/ceil.c: New file.
1201         * lib/ceilf.c: New file.
1202         * m4/ceilf.m4: New file.
1203         * lib/math.in.h (ceilf): New declaration.
1204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
1205         HAVE_DECL_CEILF.
1206         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
1207         HAVE_DECL_CEILF.
1208         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
1209
1210 2007-10-04  Bruno Haible  <bruno@clisp.org>
1211
1212         * modules/floorl-tests: New file.
1213         * tests/test-floorl.c: New file.
1214
1215         * modules/floorl: New file.
1216         * lib/floorl.c: Replace entire file.
1217         * m4/floorl.m4: New file.
1218         * lib/math.in.h (floorl): Replace declaration.
1219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
1220         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
1221         * doc/functions/floorl.texi: Mention the 'floorl' module.
1222         * modules/mathl (Files): Remove lib/floorl.c.
1223         (Depends-on): Add floorl.
1224
1225 2007-10-04  Bruno Haible  <bruno@clisp.org>
1226
1227         * modules/floorf-tests: New file.
1228         * tests/test-floorf.c: New file.
1229
1230         * modules/floorf: New file.
1231         * lib/floor.c: New file.
1232         * lib/floorf.c: New file.
1233         * m4/floorf.m4: New file.
1234         * lib/math.in.h (floorf): New declaration.
1235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
1236         HAVE_DECL_FLOORF.
1237         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
1238         HAVE_DECL_FLOORF.
1239         * doc/functions/floorf.texi: Mention the 'floorf' module.
1240
1241 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
1242             Bruno Haible  <bruno@clisp.org>
1243
1244         Advertise for the Git server instead of the CVS server.
1245         * doc/gnulib-intro.texi (Steady Development): Mention the Git
1246         repository instead of the CVS one.
1247         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
1248         about all VCS systems generically.
1249         * doc/gnulib.texi (Introduction): Capitalize `Git'.
1250
1251 2007-10-04  Bruno Haible  <bruno@clisp.org>
1252
1253         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
1254         means.
1255         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
1256
1257 2007-10-04  Bruno Haible  <bruno@clisp.org>
1258
1259         * modules/truncl-tests: New file.
1260         * tests/test-truncl.c: New file.
1261
1262         * modules/truncl: New file.
1263         * lib/truncl.c: New file.
1264         * m4/truncl.m4: New file.
1265         * lib/math.in.h (truncl): New declaration.
1266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
1267         HAVE_DECL_TRUNCL.
1268         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
1269         HAVE_DECL_TRUNCL.
1270         * doc/functions/truncl.texi: Mention the 'truncl' module.
1271
1272 2007-10-04  Bruno Haible  <bruno@clisp.org>
1273
1274         * modules/truncf-tests: New file.
1275         * tests/test-truncf.c: New file.
1276
1277         * modules/truncf: New file.
1278         * lib/trunc.c: Make paramerizable through USE_* macros.
1279         * lib/truncf.c: New file.
1280         * m4/truncf.m4: New file.
1281         * lib/math.in.h (truncf): New declaration.
1282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
1283         HAVE_DECL_TRUNCF.
1284         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
1285         HAVE_DECL_TRUNCF.
1286         * doc/functions/truncf.texi: Mention the 'truncf' module.
1287
1288 2007-10-03  Bruno Haible  <bruno@clisp.org>
1289
1290         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
1291         augmentation also for tests modules.
1292         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
1293         * modules/atexit-tests (Makefile.am): Likewise.
1294         * modules/binary-io-tests (Makefile.am): Likewise.
1295         * modules/c-strcase-tests (Makefile.am): Likewise.
1296         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
1297         * modules/canonicalize-tests (Makefile.am): Likewise.
1298         * modules/closein-tests (Makefile.am): Likewise.
1299         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1300         * modules/freadahead-tests (Makefile.am): Likewise.
1301         * modules/fseek-tests (Makefile.am): Likewise.
1302         * modules/fseeko-tests (Makefile.am): Likewise.
1303         * modules/ftell-tests (Makefile.am): Likewise.
1304         * modules/ftello-tests (Makefile.am): Likewise.
1305         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
1306         * modules/isnanl-tests (Makefile.am): Likewise.
1307         * modules/lseek-tests (Makefile.am): Likewise.
1308         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1309         * modules/mbscasestr-tests (Makefile.am): Likewise.
1310         * modules/mbschr-tests (Makefile.am): Likewise.
1311         * modules/mbscspn-tests (Makefile.am): Likewise.
1312         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1313         * modules/mbspbrk-tests (Makefile.am): Likewise.
1314         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1315         * modules/mbsrchr-tests (Makefile.am): Likewise.
1316         * modules/mbsspn-tests (Makefile.am): Likewise.
1317         * modules/mbsstr-tests (Makefile.am): Likewise.
1318         * modules/printf-posix-tests (Makefile.am): Likewise.
1319         * modules/snprintf-posix-tests (Makefile.am): Likewise.
1320         * modules/sprintf-posix-tests (Makefile.am): Likewise.
1321         * modules/tsearch-tests (Makefile.am): Likewise.
1322         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1323         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1324         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1325         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1326         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1327         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1328         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1329         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1330         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
1331         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
1332         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1333         * modules/xstrtol-tests (Makefile.am): Likewise.
1334         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1335         * modules/yesno-tests (Makefile.am): Likewise.
1336
1337 2007-10-03  Bruno Haible  <bruno@clisp.org>
1338
1339         * modules/trunc-tests: New file.
1340         * tests/test-trunc.c: New file.
1341
1342         * modules/trunc: New file.
1343         * lib/trunc.c: New file.
1344         * m4/trunc.m4: New file.
1345         * lib/math.in.h (trunc): New declaration.
1346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
1347         HAVE_DECL_TRUNC.
1348         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
1349         HAVE_DECL_TRUNC.
1350         * doc/functions/trunc.texi: Mention the 'trunc' module.
1351
1352 2007-10-03  Bruno Haible  <bruno@clisp.org>
1353
1354         * tests/test-fpending.c: New file, mostly copied
1355         from coreutils/lib/t-fpending.c.
1356         * modules/fpending-tests: New file.
1357
1358 2007-10-03  Bruno Haible  <bruno@clisp.org>
1359
1360         Port the stdio extensions to QNX (untested).
1361         * lib/fseterr.c (fseterr): Add support for QNX.
1362         * lib/fbufmode.c (fbufmode): Likewise.
1363         * lib/freadable.c (freadable): Likewise.
1364         * lib/fwritable.c (fwritable): Likewise.
1365         * lib/freading.c (freading): Likewise.
1366         * lib/fwriting.c (fwriting): Likewise.
1367         * lib/freadahead.c (freadahed): Likewise.
1368         * lib/fpurge.c (fpurge): Likewise.
1369         * lib/fseeko.c (rpl_fseeko): Likewise.
1370
1371 2007-10-03  Bruno Haible  <bruno@clisp.org>
1372             Jim Meyering  <jim@meyering.net>
1373             Eric Blake  <ebb9@byu.net>
1374
1375         * doc/relocatable.texi: Use @command instead of @program.
1376
1377 2007-10-02  Jim Meyering  <jim@meyering.net>
1378
1379         Perform one more "_.h" -> ".in.h" substitution.
1380         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
1381         instead of unistd_.h here, too.
1382
1383 2007-10-01  Bruno Haible  <bruno@clisp.org>
1384
1385         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
1386         Needed for the alloca-opt module.
1387
1388 2007-09-30  Bruno Haible  <bruno@clisp.org>
1389
1390         * lib/alloca.in.h: Renamed from lib/alloca_.h.
1391         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
1392         alloca_.h.
1393         * lib/argz.in.h: Renamed from lib/argz_.h.
1394         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
1395         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
1396         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
1397         byteswap_.h.
1398         * lib/dirent.in.h: Renamed from lib/dirent_.h.
1399         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
1400         dirent_.h.
1401         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
1402         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
1403         fcntl_.h.
1404         * lib/float.in.h: Renamed from lib/float_.h.
1405         * modules/float (Files, Makefile.am): Use float.in.h instead of
1406         float_.h.
1407         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
1408         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
1409         fnmatch_.h.
1410         * lib/getopt.in.h: Renamed from lib/getopt_.h.
1411         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
1412         getopt_.h.
1413         * lib/glob.in.h: Renamed from lib/glob_.h.
1414         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
1415         * lib/iconv.in.h: Renamed from lib/iconv_.h.
1416         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
1417         iconv_.h.
1418         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
1419         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
1420         inttypes_.h.
1421         * lib/locale.in.h: Renamed from lib/locale_.h.
1422         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
1423         locale_.h.
1424         * lib/math.in.h: Renamed from lib/math_.h.
1425         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
1426         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
1427         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
1428         of netinet_in_.h. Add dependency.
1429         * lib/poll.in.h: Renamed from lib/poll_.h.
1430         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
1431         * lib/search.in.h: Renamed from lib/search_.h.
1432         * modules/search (Files, Makefile.am): Use search.in.h instead of
1433         search_.h.
1434         * lib/signal.in.h: Renamed from lib/signal_.h.
1435         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
1436         _signal.h.
1437         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
1438         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
1439         stdbool_.h.
1440         * lib/stdint.in.h: Renamed from lib/stdint_.h.
1441         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
1442         stdint_.h.
1443         * lib/stdio.in.h: Renamed from lib/stdio_.h.
1444         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
1445         stdio_.h.
1446         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
1447         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
1448         stdlib_.h.
1449         * lib/string.in.h: Renamed from lib/string_.h.
1450         * modules/string (Files, Makefile.am): Use string.in.h instead of
1451         string_.h.
1452         * doc/gnulib-tool.texi (Initial import): Update.
1453         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
1454         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
1455         of sys_select_.h. Add dependency.
1456         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
1457         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
1458         of sys_socket_.h.
1459         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
1460         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
1461         sys_stat_.h.
1462         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
1463         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
1464         sys_time_.h.
1465         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
1466         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
1467         sysexits_.h.
1468         * lib/time.in.h: Renamed from lib/time_.h.
1469         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
1470         * lib/unistd.in.h: Renamed from lib/unistd_.h.
1471         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
1472         unistd_.h.
1473         * lib/wchar.in.h: Renamed from lib/wchar_.h.
1474         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
1475         wchar_.h.
1476         * lib/wctype.in.h: Renamed from lib/wctype_.h.
1477         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
1478         wctype_.h.
1479         * build-aux/bootstrap (slurp): Update.
1480         * lib/.cppi-disable: Update.
1481
1482 2007-09-30  Bruno Haible  <bruno@clisp.org>
1483
1484         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
1485         Needed on BeOS.
1486
1487 2007-09-30  Bruno Haible  <bruno@clisp.org>
1488
1489         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
1490
1491 2007-09-29  Bruno Haible  <bruno@clisp.org>
1492
1493         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
1494
1495 2007-09-29  Bruno Haible  <bruno@clisp.org>
1496
1497         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
1498         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
1499         * build-aux/install-reloc: Compile also areadlink.c.
1500         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
1501
1502 2007-09-29  Bruno Haible  <bruno@clisp.org>
1503
1504         * gnulib-tool (func_emit_initmacro_done): Indentation.
1505
1506 2007-09-29  Bruno Haible  <bruno@clisp.org>
1507
1508         * README: Add CVS checkout update instructions.
1509         Info from Bob Proulx <bob@proulx.com>.
1510
1511 2007-09-28  Eric Blake  <ebb9@byu.net>
1512
1513         Provide move-if-change.
1514         * build-aux/move-if-change: New file, based on best practice
1515         rather than any canonical upstream location.
1516
1517 2007-09-28  Jim Meyering  <jim@meyering.net>
1518
1519         Fix canonicalize loop-detection corner case.
1520         Do not attempt to stat the symlink values stored via seen_triple.
1521         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
1522         on linux-2.6.18, (but not 2.6.22).
1523         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
1524         triple_compare.  The former compares dev,ino,filename, while the latter
1525         would actually stat dirname(filename) when dev and ino were equal.
1526         * lib/hash-triple.c: Install <string.h>.
1527         (STREQ): Define.
1528         (triple_compare_ino_str): New function.
1529         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
1530
1531 2007-09-28  Eric Blake  <ebb9@byu.net>
1532
1533         Enforce that AC_REPLACE_FUNCS files exist.
1534         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
1535         override check for typos.
1536
1537         Fix test-closein on Solaris 10.
1538         * tests/test-closein.c (main): Don't assume stdin can be inherited
1539         closed on all systems.
1540         * tests/test-closein.sh: Likewise.
1541         Reported by Piotr Tarnowski.
1542
1543 2007-09-28  Jim Meyering  <jim@meyering.net>
1544
1545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
1546
1547 2007-09-27  Jim Meyering  <jim@meyering.net>
1548
1549         canonicalize: Avoid a false-positive cycle failure.
1550         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
1551         Sort.  Remove cycle-check.
1552         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
1553         not cycle-check.h.
1554         (seen_triple): New function.
1555         (canonicalize_filename_mode): Use it instead of cycle-check.
1556         * tests/test-canonicalize.c: Add a test for this bug.
1557         * tests/test-canonicalize.sh: Set up and run the test.
1558
1559         New module, file-set, from coreutils.
1560         * modules/file-set: Define it.
1561         * lib/file-set.c, lib/file-set.h: Implement.
1562
1563         New module, hash-triple, from coreutils.
1564         * modules/hash-triple: Define it.
1565         * lib/hash-triple.c, lib/hash-triple.h: Implement.
1566
1567 2007-09-25  Eric Blake  <ebb9@byu.net>
1568
1569         Fix strerror on Interix.
1570         * lib/string_.h (strerror): Declare replacement.
1571         * doc/functions/strerror.texi (strerror): Document the Interix
1572         shortcoming.
1573         * modules/string (Makefile.am): Support new hooks.
1574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
1575         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
1576         gl_FUNC_STRERROR_SEPARATE.
1577         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
1578         * lib/strerror.c (rpl_strerror): Provide replacement.
1579         * modules/strerror (Depends-on): Add string.
1580         (configure.ac): Detect use of module.
1581         * tests/test-strerror.c: New file.
1582         * modules/strerror-tests: New test module.
1583         * modules/argp (Depends-on): Add strerror.
1584         * modules/error (Depends-on): Likewise.
1585         Reported by Martin Koeppe.
1586
1587 2007-09-24  Bruno Haible  <bruno@clisp.org>
1588
1589         * README: Update git instructions.
1590
1591 2007-09-24  Eric Blake  <ebb9@byu.net>
1592
1593         Revert fpending breakage from 2007-09-08.
1594         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
1595         __fpending.c.
1596
1597 2007-09-24  Jim Meyering  <jim@meyering.net>
1598
1599         filenamecat.c: Add a test.
1600         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
1601         showing how the function works when DIR is the empty string.
1602
1603 2007-09-21  Simon Josefsson  <simon@josefsson.org>
1604
1605         * tests/test-canonicalize.sh: Turn on executable bit.
1606
1607 2007-09-19  Eric Blake  <ebb9@byu.net>
1608
1609         * README: Update CVS instructions.
1610
1611 2007-09-18  Bruno Haible  <bruno@clisp.org>
1612
1613         * modules/areadlink: New file.
1614         * lib/areadlink.h (areadlink): New declaration.
1615         * lib/areadlink.c: New file, based on lib/xreadlink.c.
1616
1617 2007-09-17  Jim Meyering  <jim@meyering.net>
1618
1619         * lib/savewd.c (ESTALE) [!defined]: Define.
1620         Reported to be required on Interix by Martin Koeppe.
1621
1622 2007-09-17  Bruno Haible  <bruno@clisp.org>
1623
1624         * gnulib-tool (func_version): Use $version.
1625
1626 2007-09-16  Bruno Haible  <bruno@clisp.org>
1627
1628         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
1629         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
1630         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
1631         Reported by Greg Schafer <gschafer@zip.com.au>.
1632
1633 2007-09-15  Bruno Haible  <bruno@clisp.org>
1634
1635         * gnulib-tool (sed): Try a little harder to make bash understand the
1636         alias.
1637         Reported by Bruce Korb <bruce.korb@gmail.com>.
1638
1639 2007-09-13  Eric Blake  <ebb9@byu.net>
1640
1641         * ChangeLog: Remove conflict markers.
1642
1643 2007-09-13  Simon Josefsson  <simon@josefsson.org>
1644
1645         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
1646         Reported by Bruno Haible <bruno@clisp.org>.
1647
1648 2007-09-12  Bruno Haible  <bruno@clisp.org>
1649
1650         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
1651         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
1652         is not defined.
1653
1654 2007-09-12  Eric Blake  <ebb9@byu.net>
1655
1656         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
1657         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
1658         Autoconf definition.
1659         * modules/euidaccess (Depends-on): Add extensions, for
1660         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
1661         * modules/fnmatch (Depends-on): Likewise.
1662         * modules/getaddrinfo (Depends-on): Likewise.
1663         * modules/getdelim (Depends-on): Likewise.
1664         * modules/getline (Depends-on): Likewise.
1665         * modules/getsubopt (Depends-on): Likewise.
1666         * modules/gettext (Depends-on): Likewise.
1667         * modules/group-member (Depends-on): Likewise.
1668         * modules/mbchar (Depends-on): Likewise.
1669         * modules/memmem (Depends-on): Likewise.
1670         * modules/mempcpy (Depends-on): Likewise.
1671         * modules/memrchr (Depends-on): Likewise.
1672         * modules/pagealign_alloc (Depends-on): Likewise.
1673         * modules/readutmp (Depends-on): Likewise.
1674         * modules/stpcpy (Depends-on): Likewise.
1675         * modules/stpncpy (Depends-on): Likewise.
1676         * modules/strchrnul (Depends-on): Likewise.
1677         * modules/strndup (Depends-on): Likewise.
1678         * modules/strsep (Depends-on): Likewise.
1679         * modules/strverscmp (Depends-on): Likewise.
1680         * modules/vasprintf (Depends-on): Likewise.
1681         * modules/wcwidth (Depends-on): Likewise.
1682         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
1683         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
1684         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
1685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
1686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1687         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1688         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
1689         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
1690         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
1691         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1693         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
1694         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
1695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1696         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
1697         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1699         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
1700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1701         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
1702         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1703         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
1704         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
1705         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
1706         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
1707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1708         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
1709         so that lock.m4 can be used in gettext without extensions module.
1710
1711 2007-09-11  Bruno Haible  <bruno@clisp.org>
1712
1713         * m4/isc-posix.m4: Remove file.
1714         Suggested by Eric Blake.
1715
1716 2007-09-11  Eric Blake  <ebb9@byu.net>
1717
1718         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
1719
1720 2007-09-10  Bruno Haible  <bruno@clisp.org>
1721
1722         * posix-modules: Fix typo in error message.
1723         Reported by Matt <mkraai@beckman.com>.
1724
1725 2007-09-09  Bruno Haible  <bruno@clisp.org>
1726
1727         * doc/functions/getdelim.texi: Update list of platforms lacking the
1728         function.
1729         * doc/functions/getline.texi: Likewise.
1730
1731 2007-09-09  Jim Meyering  <jim@meyering.net>
1732
1733         * lib/hash.c (hash_initialize): Detect calloc failure.
1734         Reported by Bruno Haible.
1735
1736 2007-09-09  Bruno Haible  <bruno@clisp.org>
1737
1738         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
1739         malloc or realloc fails.
1740
1741 2007-09-09  Bruno Haible  <bruno@clisp.org>
1742
1743         * modules/getcwd (Depends-on): Add malloc-posix.
1744         * modules/glob (Depends-on): Likewise.
1745         * modules/putenv (Depends-on): Likewise.
1746         * modules/strdup (Depends-on): Likewise.
1747         * modules/getdelim (Depends-on): Add realloc-posix.
1748         * modules/read-file (Depends-on): Likewise.
1749
1750 2007-09-09  Bruno Haible  <bruno@clisp.org>
1751
1752         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
1753         (gl_FUNC_MALLOC_POSIX): Require it.
1754         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
1755         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
1756         * modules/realloc (Files): Add m4/malloc.m4.
1757         * modules/calloc (Files): Likewise.
1758
1759 2007-09-09  Bruno Haible  <bruno@clisp.org>
1760
1761         * modules/malloc-posix: New file.
1762         * modules/malloc (Depends-on): Add malloc-posix.
1763         * lib/malloc.c: Include errno.h.
1764         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
1765         and a POSIX-compatible malloc into a single function. Set ENOMEM
1766         when returning NULL.
1767         * m4/malloc.m4: New file.
1768         * doc/functions/malloc.texi: Mention the malloc-posix module.
1769         * lib/stdlib_.h (malloc): New declaration.
1770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1771         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
1772         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
1773         and HAVE_MALLOC_POSIX.
1774
1775 2007-09-09  Bruno Haible  <bruno@clisp.org>
1776
1777         * modules/realloc-posix: New file.
1778         * modules/realloc (Depends-on): Add realloc-posix.
1779         * lib/realloc.c: Include errno.h.
1780         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
1781         and a POSIX-compatible realloc into a single function. Set ENOMEM
1782         when returning NULL.
1783         * m4/realloc.m4: New file.
1784         * doc/functions/realloc.texi: Mention the realloc-posix module.
1785         * lib/stdlib_.h (realloc): New declaration.
1786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1787         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
1788         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
1789         and HAVE_REALLOC_POSIX.
1790
1791 2007-09-09  Bruno Haible  <bruno@clisp.org>
1792
1793         * modules/calloc-posix: New file.
1794         * modules/calloc (Depends-on): Add calloc-posix.
1795         * lib/calloc.c: Include errno.h.
1796         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
1797         and a POSIX-compatible calloc into a single function. Set ENOMEM
1798         when returning NULL.
1799         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
1800         * doc/functions/calloc.texi: Mention the calloc-posix module.
1801         * lib/stdlib_.h (calloc): New declaration.
1802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1803         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
1804         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
1805         and HAVE_CALLOC_POSIX.
1806
1807 2007-09-09  Bruno Haible  <bruno@clisp.org>
1808
1809         Allow for modules to show an arbitrary notice.
1810         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
1811         * gnulib-tool: New option --extract-notice.
1812         (func_usage): Document it.
1813         (sed_extract_prog): Update.
1814         (func_get_notice): New function.
1815         (func_modules_notice): New function.
1816         (func_import, func_create_testdir): Invoke it.
1817         Suggested by Jim Meyering.
1818
1819 2007-09-09  Bruno Haible  <bruno@clisp.org>
1820
1821         * gnulib-tool: New options --verbose, --quiet.
1822         (func_usage): Document them.
1823         (verbose): New variable.
1824         (func_execute_command): New function.
1825         (func_import): Don't show the module list and the file list if
1826         $verbose < 0.
1827         (func_create_testdir): Likewise. Use func_execute_command.
1828         (func_create_megatestdir): Use func_execute_command.
1829
1830 2007-09-08  Bruno Haible  <bruno@clisp.org>
1831
1832         * gnulib-tool (func_import): Prefer rsync over wget when available,
1833         for fetching the PO files.
1834
1835 2007-09-08  Bruno Haible  <bruno@clisp.org>
1836
1837         * posix-modules: New file. Portions copied from gnulib-tool.
1838         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
1839
1840 2007-09-08  Jim Meyering  <jim@meyering.net>
1841
1842         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
1843         * lib/fpending.h: Rename from __fpending.h.
1844         * lib/fpending.c: Rename from __fpending.c.
1845         Include "fpending.h", not "__fpending.h".
1846         * lib/__fpending.h, lib/__fpending.c: Remove files.
1847         * modules/fpending (Files): Reflect new file names.
1848         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
1849
1850 2007-09-08  Bruno Haible  <bruno@clisp.org>
1851
1852         * m4/inttypes-h.m4: Remove stub file.
1853
1854 2007-09-07  Simon Josefsson  <simon@josefsson.org>
1855
1856         * doc/headers/stdint.texi: Discuss #include_next issue.
1857
1858 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1859
1860         * build-aux/bootstrap: Remove obsolete comment about wget --help.
1861
1862 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1863
1864         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
1865         in variable name.
1866
1867 2007-09-03  Jim Meyering  <jim@meyering.net>
1868
1869         New module: git-version-gen.
1870         * modules/git-version-gen: New file.
1871
1872         Import changes from coreutils for bootstrap script.
1873
1874         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
1875
1876         bootstrap: uses rsync to download the .po files
1877         * build-aux/bootstrap (po_download_command_format): New global.
1878         (download_po_files): Use rsync.
1879         (update_po_files): Don't remove .po files after download,
1880         so future rsync runs can take advantage of the copies.
1881
1882         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
1883
1884         Solve the unnecessary-.po-file-regeneration problem once and for all.
1885         * build-aux/bootstrap (download_po_files): New function, renamed from
1886         get_translations.  Now, downloads, but doesn't update LINGUAS.
1887         (update_po_files): New function.
1888
1889         bootstrap: Ignore more.
1890         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
1891         uniwidth to e.g., lib/.gitignore.
1892         (slurp): Handle the sys_stat_.h -> sys mapping, too.
1893
1894         * build-aux/bootstrap: New setting: vc_ignore.
1895         (insert_sorted_if_absent): Create $file if absent.
1896         Adapt to new, possibly empty, list: $vc_ignore.
1897
1898         bootstrap: generate more ignorable names
1899         * build-aux/bootstrap (slurp): When generating ignorable names,
1900         also map .sin to .sed, .gperf to .c, and .y to .c.
1901
1902 2007-09-03  Jim Meyering  <jim@meyering.net>
1903
1904         * build-aux/git-version-gen: New file, from coreutils.  For details, see
1905         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
1906
1907 2007-09-02  Bruno Haible  <bruno@clisp.org>
1908
1909         Fix mis-recognition of 'mcs' on QNX 6.
1910         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
1911         output contains the string "Mono".
1912         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
1913         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
1914
1915 2007-09-01  Bruno Haible  <bruno@clisp.org>
1916
1917         Fix collision between uniwidth/* and linebreak modules.
1918         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
1919         u32_width): Remove declarations.
1920         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
1921         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
1922         streq3, streq2, streq1, streq0): Remove functions.
1923         (STREQ): Remove macro.
1924         (is_cjk_encoding): Remove function.
1925         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
1926         (uc_width, u8_width, u16_width, u32_width): Remove functions.
1927         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
1928         * NEWS: Document the change.
1929
1930 2007-09-01  Bruno Haible  <bruno@clisp.org>
1931
1932         * lib/streq.h: Add double-inclusion guard.
1933
1934 2007-09-01  Karl Berry  <karl@gnu.org>
1935
1936         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
1937
1938 2007-08-28  Jim Meyering  <jim@meyering.net>
1939
1940         Rename mreadlink_with_size to areadlink_with_size.
1941         * NEWS: Document the change.
1942         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
1943         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
1944         * lib/mreadlink.h: Rename this to...
1945         * lib/areadlink.h: ...this.
1946         * modules/mreadlink-with-size: Rename this to...
1947         * modules/areadlink-with-size: ...this.
1948         * lib/canonicalize.c: Reflect the renaming.
1949         * modules/canonicalize: Likewise.
1950
1951 2007-08-26  Bruno Haible  <bruno@clisp.org>
1952
1953         * gnulib-tool (func_import): When deciding which files to remove,
1954         consider also dangling symbolic links.
1955         Reported by Eric Blake.
1956
1957 2007-08-26  Bruno Haible  <bruno@clisp.org>
1958
1959         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
1960
1961 2007-08-23  Simon Josefsson  <simon@josefsson.org>
1962
1963         * lib/readline.c: Don't include getline.h, the prototype is now
1964         found in stdio.h.
1965
1966 2007-08-23  Jim Meyering  <jim@meyering.net>
1967
1968         Getdelim touchup.
1969         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
1970         around the funlockfile call, since funlockfile never sets errno.
1971         Don't set errno upon failed realloc.
1972
1973 2007-08-22  Eric Blake  <ebb9@byu.net>
1974
1975         Getline touchups.
1976         * lib/getdelim.c (getdelim): Revert regression that required *n to
1977         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
1978         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
1979         getdelim, rather than whether implementation is missing.
1980         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
1981         * lib/stdio_.h (getline): Also declare if replacement is
1982         required.
1983         * doc/functions/getdelim.texi: New file.
1984         * doc/functions/getline.texi: Likewise.
1985         * doc/gnulib.texi (Function Substitutes): Add new files.
1986         Reported by Bruno Haible.
1987
1988 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
1989
1990         * users.txt: Add Guile.
1991
1992 2007-08-22  Eric Blake  <ebb9@byu.net>
1993
1994         * tests/test-getdelim.c (main): Use remove, not unlink.
1995         * tests/test-getline.c (main): Likewise.
1996
1997         Move getline and getdelim into stdio.h, per POSIX 200x.
1998         * modules/getline (Files): Remove getline.h.
1999         (Depends-on): Add stdio.
2000         (configure.ac): Add module indicator.
2001         * modules/getdelim (Files): Remove getdelim.h.
2002         (Depends-on): Add stdio.
2003         (configure.ac): Add module indicator.
2004         * modules/stdio (Makefile.am): Work with new indicators.
2005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
2006         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
2007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2008         * lib/getdelim.h: Delete.
2009         * lib/getline.h: Delete.
2010         * lib/stdio_.h (getdelim, getline): Declare.
2011         * modules/getdelim-tests: New module.
2012         * modules/getline-tests: Likewise.
2013         * tests/test-getdelim.c: New file.
2014         * tests/test-getline.c: Likewise.
2015         * NEWS: Document the change.
2016         * lib/getline.c: Update choice of header.
2017         * lib/csharpcomp.c: Likewise.
2018         * lib/getpass.c: Likewise.
2019         * lib/javacomp.c: Likewise.
2020         * lib/javaversion.c: Likewise.
2021         * lib/yesno.c: Likewise.
2022         * lib/getdelim.c: Likewise.
2023         (getdelim): Set errno on failure, and avoid memory leak.
2024
2025 2007-08-19  Bruno Haible  <bruno@clisp.org>
2026
2027         * modules/closein (Depends-on): Add freadahead.
2028         * lib/closein.c: Include freadahead.h.
2029         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
2030         is zero.
2031
2032 2007-08-19  Bruno Haible  <bruno@clisp.org>
2033
2034         * modules/freadahead-tests: New file.
2035         * tests/test-freadahead.sh: New file.
2036         * tests/test-freadahead.c: New file.
2037
2038         * modules/freadahead: New file.
2039         * lib/freadahead.h: New file.
2040         * lib/freadahead.c: New file.
2041         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
2042         fbufmode, fpurge, freadable, fwritable.
2043
2044 2007-08-19  Eric Blake  <ebb9@byu.net>
2045
2046         Test yesno in combination with closein.
2047         * lib/yesno.c (yesno): Document use of stdin.
2048         * modules/yesno-tests (Files): New module.
2049         * tests/test-yesno.c (main): New file.
2050         * tests/test-yesno.sh: Likewise.
2051
2052 2007-08-19  Bruno Haible  <bruno@clisp.org>
2053
2054         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
2055         * lib/fseeko.c (rpl_fseeko): Likewise.
2056         * lib/fseterr.c (fseterr): Likewise.
2057
2058 2007-08-19  Bruno Haible  <bruno@clisp.org>
2059
2060         * tests/test-lseek.c (main): Disable a test for BeOS.
2061         * doc/functions/lseek.texi: Document the BeOS bug.
2062
2063 2007-08-19  Bruno Haible  <bruno@clisp.org>
2064             Eric Blake  <ebb9@byu.net>
2065
2066         * lib/lseek.c: Include <sys/stat.h>.
2067         (rpl_lseek): Add workaround code also for Unix platforms.
2068         Needed for BeOS.
2069         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
2070         * doc/functions/lseek.texi: Document BeOS definiency.
2071
2072 2007-08-18  Bruno Haible  <bruno@clisp.org>
2073
2074         * modules/fstrcmp-tests: New file.
2075         * tests/test-fstrcmp.c: New file.
2076
2077 2007-08-18  Bruno Haible  <bruno@clisp.org>
2078
2079         * modules/fstrcmp: New file, from GNU gettext with modifications.
2080         * lib/fstrcmp.h: New file, from GNU gettext.
2081         * lib/fstrcmp.c: New file, from GNU gettext.
2082         * MODULES.html.sh (String handling): Add fstrcmp.
2083
2084 2007-08-18  Bruno Haible  <bruno@clisp.org>
2085
2086         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
2087         'bool'.
2088         (diag, compareseq): Remove const from the ctxt argument.
2089         (USE_HEURISTIC): Undefine at the end.
2090
2091 2007-08-18  Jim Meyering  <jim@meyering.net>
2092
2093         New file: lib/idcache.h
2094         * NEWS: Mention the addition.
2095         * modules/idcache (Files): Add lib/idcache.h
2096         * lib/idcache.c: Include "idcache.h".
2097         Don't include <sys/types.h>.
2098         Add a FIXME comment.
2099         Move file-scoped "static" declarations to the top.
2100         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
2101
2102 2007-08-17  Bruno Haible  <bruno@clisp.org>
2103         and Paul Eggert  <eggert@cs.ucla.edu>
2104
2105         * MODULES.html.sh: Add diffseq.
2106         * modules/diffseq: New file.
2107         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
2108         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
2109
2110 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2111
2112         Import changes from coreutils for bootstrap script.
2113
2114         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
2115
2116         * build-aux/bootstrap (slurp): Work even in environments where
2117         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
2118         current code does not slurp files whose names start with ".", and
2119         this looks like it might be a troublesome area.
2120
2121         2007-07-11  Jim Meyering  <jim@meyering.net>
2122
2123         If there's a GPL vN copyright comment, require that N == 3.
2124
2125         2007-07-08  Jim Meyering  <jim@meyering.net>
2126
2127         Run the coreutils-specific code only if tests/Makefile.am.in exists.
2128         * build-aux/bootstrap (mam_template): Move definition out of loop.
2129
2130         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
2131
2132         * build-aux/bootstrap (symlink_to_dir): Rename function from
2133         symlink_to_gnulib.  Add a directory parameter.  Update all
2134         callers.
2135         (cp_mark_as_generated): Also check for -- and link to -- files in
2136         gl/.
2137
2138         2007-07-08  Jim Meyering  <jim@meyering.net>
2139
2140         Adapt to deeper hierarchy in gnulib.
2141         * build-aux/bootstrap (symlink_to_dir): If the destination
2142         directory doesn't exist, create it. This is required at least for
2143         "lib/uniwidth/cjk.h".
2144
2145         2007-05-15  Jim Meyering  <jim@meyering.net>
2146
2147         * build-aux/bootstrap: Now that generated Makefile.am files
2148         are no longer under version control, they must be created at
2149         bootstrap time.
2150
2151 2007-08-14  Ben Pfaff  <blp@gnu.org>
2152
2153         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
2154
2155 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2156
2157         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
2158         given the changes below.
2159         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
2160         even on hosts that have padding bits beyond the supported 64.
2161
2162 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
2165         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
2166         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
2167         depends on it.
2168         (xstrtol_error): Remove.
2169         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
2170         but with a different signature.
2171         (ATTRIBUTE_NORETURN, __attribute__): New macros.
2172         * lib/xstrtol-error.c: Include exitfail.h.
2173         (xstrtol_fatal): New function, with a different signature from the
2174         old xstrtol_error, so that the caller need not worry about passing
2175         in an exit status, or about storage management of the option argument.
2176         (xstrtol_error): Now a static function.  Redo signature to
2177         implement xstrtol_fatal.  Output the correct number of hyphens in
2178         front of the option so that the caller need not worry about
2179         storage management.
2180         (N_): New macro.
2181         (_): Remove; not used now.
2182         * modules/xstrtol: Depend on getopt.
2183         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
2184         of old STRTOL_FATAL_ERROR macro.
2185         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
2186         of test program.
2187         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
2188         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
2189
2190 2007-08-08  Eric Blake  <ebb9@byu.net>
2191
2192         * lib/xstrtol-error.c: Add missing include.
2193
2194         Move xstrtol messages into gnulib domain, when --pobase is used.
2195         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
2196         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
2197         * modules/xstrtol (Files): Distribute new file.
2198         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
2199         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
2200         * tests/test-xstrtol.c: ...into new file.
2201         * tests/test-xstrtoul.c: Also test xstrtoul.
2202         * tests/test-xstrtoimax.c: Also test xstrtoimax.
2203         * tests/test-xstrtoumax.c: Also test xstrtoumax.
2204         * tests/test-xstrtol.sh: Drive the tests.
2205         * tests/test-xstrtoimax.sh: Likewise.
2206         * tests/test-xstrtoumax.sh: Likewise.
2207         * modules/xstrtol-tests: New module.
2208         * modules/xstrtoimax-tests: Likewise.
2209         * modules/xstrtoumax-tests: Likewise.
2210
2211 2007-08-08  Jim Meyering  <jim@meyering.net>
2212
2213         New function: mfile_name_concat.
2214         * lib/filenamecat.c (mfile_name_concat): New function, just like
2215         file_name_concat, but return NULL upon failure rather than exiting
2216         with a diagnostic.
2217         * lib/filenamecat.h: Declare it.
2218
2219 2007-08-07  Bruno Haible  <bruno@clisp.org>
2220
2221         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
2222         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
2223         warning from gcc.
2224         Reported by Eric Blake.
2225
2226 2007-08-07  Simon Josefsson  <simon@josefsson.org>
2227
2228         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
2229         * modules/crypto/arcfour (License): Likewise.
2230         * modules/crypto/des-tests (License): Likewise.
2231         * modules/crypto/gc-arctwo-tests (License): Likewise.
2232         * modules/crypto/gc-des-tests (License): Likewise.
2233         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
2234         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
2235         * modules/crypto/gc-md2-tests (License): Likewise.
2236         * modules/crypto/gc-md4-tests (License): Likewise.
2237         * modules/crypto/gc-md5-tests (License): Likewise.
2238         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
2239         * modules/crypto/gc-rijndael-tests (License): Likewise.
2240         * modules/crypto/gc-sha1-tests (License): Likewise.
2241         * modules/crypto/gc-tests (License): Likewise.
2242         * modules/crypto/hmac-md5 (License): Likewise.
2243         * modules/crypto/hmac-sha1 (License): Likewise.
2244         * modules/crypto/md2-tests (License): Likewise.
2245         * modules/crypto/md4-tests (License): Likewise.
2246         * modules/crypto/md5 (License): Likewise.
2247         * modules/crypto/rijndael (License): Likewise.
2248         * modules/crypto/sha1 (License): Likewise.
2249         * modules/memxor (License): Likewise.
2250
2251 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2252         and Bruno Haible  <bruno@clisp.org>
2253
2254         * NEWS: Describe interface changes to human, xstrtol.
2255         * lib/human.h: Include <xstrtol.h>.
2256         (human_options): Return enum strtol_error, not int.  Remove
2257         bool arg; take int * instead.
2258         * lib/human.c: Don't include "gettext.h".
2259         (_): Remove; no longer used.
2260         Don't include <xstrtol.h>, since human.h does it.
2261         (human_options): Adjust to abovementioned interface changes.
2262         Do not report error to stderr; that's now the caller's
2263         responsibility.
2264         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
2265         interface change.
2266         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
2267         Str, Argument_type_string.  All uses changed.  Put " argument"
2268         in diagnostics to make them clearer.  Change wording of suffix
2269         message for clarity.
2270         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
2271         Argument_type_string.
2272         (STRTOL_FATAL_WARN): Remove; no longer used.
2273         * modules/human (Depends-on): Remove gettext-h.
2274
2275 2007-08-06  Simon Josefsson  <simon@josefsson.org>
2276
2277         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
2278
2279 2007-07-31  Bruno Haible  <bruno@clisp.org>
2280
2281         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
2282         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
2283         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
2284
2285 2007-07-31  Bruno Haible  <bruno@clisp.org>
2286
2287         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
2288         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
2289
2290 2007-07-30  Bruno Haible  <bruno@clisp.org>
2291
2292         * modules/base64 (License): Use the synonymous term "LGPLv2+".
2293         * modules/c-ctype (License): Likewise.
2294         * modules/c-strcase (License): Likewise.
2295         * modules/check-version (License): Likewise.
2296         * modules/iconv (License): Likewise.
2297         * modules/iconv_open (License): Likewise.
2298         * modules/read-file (License): Likewise.
2299         * modules/striconv (License): Likewise.
2300         * modules/strverscmp (License): Likewise.
2301         * modules/vasprintf (License): Likewise.
2302         * modules/crypto/des (License): Likewise.
2303         * modules/crypto/gc (License): Likewise.
2304         * modules/crypto/gc-arcfour (License): Likewise.
2305         * modules/crypto/gc-arctwo (License): Likewise.
2306         * modules/crypto/gc-des (License): Likewise.
2307         * modules/crypto/gc-hmac-md5 (License): Likewise.
2308         * modules/crypto/gc-hmac-sha1 (License): Likewise.
2309         * modules/crypto/gc-md2 (License): Likewise.
2310         * modules/crypto/gc-md4 (License): Likewise.
2311         * modules/crypto/gc-md5 (License): Likewise.
2312         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
2313         * modules/crypto/gc-random (License): Likewise.
2314         * modules/crypto/gc-rijndael (License): Likewise.
2315         * modules/crypto/gc-sha1 (License): Likewise.
2316         * modules/crypto/md2 (License): Likewise.
2317         * modules/crypto/md4 (License): Likewise.
2318
2319 2007-07-30  Jim Meyering  <jim@meyering.net>
2320
2321         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
2322         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
2323         it has valid stat data.  This bug would cause du not to count the
2324         sizes of inaccessible directories.
2325         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
2326         in <http://bugzilla.redhat.com/250077>.
2327
2328 2007-07-25  Peter O'Gorman  <peter@pogma.com>
2329             Bruno Haible  <bruno@clisp.org>
2330
2331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
2332         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
2333         #include_next, gives a diagnostic about it, but reports no error in
2334         the exit code.
2335         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
2336
2337 2007-07-24  Ben Pfaff  <blp@gnu.org>
2338
2339         Improve name: "count-one-bits" is better than "popcount".
2340         * MODULES.html.sh: Update name.
2341         * lib/popcount.h: Renamed lib/count-one-bits.h.
2342         (popcount): Renamed count_one_bits.
2343         (popcountl): Renamed count_one_bits_l.
2344         (popcountll): Renamed count_one_bits_ll.
2345         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
2346         * modules/popcount: Renamed module/count-one-bits.
2347         * modules/popcount-tests: Renamed module/count-one-bits-tests.
2348         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
2349
2350 2007-07-23  Ben Pfaff  <blp@gnu.org>
2351
2352         * lib/popcount.h (popcount32): Reduce size of constants, to allow
2353         better code generation, and add U to large constants to avoid
2354         warnings, in non-GCC case.
2355         Suggested by Bruno Haible.
2356
2357 2007-07-23  Ben Pfaff  <blp@gnu.org>
2358
2359         * lib/popcount.h: Use verify_true instead of if...abort.
2360         * modules/popcount: Depend on verify module.
2361         Suggested by Jim Meyering.
2362
2363 2007-07-23  Bruno Haible  <bruno@clisp.org>
2364
2365         * gnulib-tool (func_import): Create a .cvsignore file also when the
2366         directory is not yet in CVS but the toplevel directory is. When
2367         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
2368         Reported by Karl Berry.
2369
2370 2007-07-22  Ben Pfaff  <blp@gnu.org>
2371
2372         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
2373         case.
2374         Suggested by Eric Blake.
2375
2376 2007-07-22  Ben Pfaff  <blp@gnu.org>
2377
2378         New module: popcount.
2379         * MODULES.html.sh: Add popcount.
2380         * modules/popcount: New file.
2381         * modules/popcount-tests: New file.
2382         * tests/test-popcount.c: New file.
2383         * lib/popcount.h: New file.
2384         * m4/popcount.m4: New file.
2385
2386 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2387
2388         * build-aux/announce-gen: Update to GPLv3.
2389
2390         * build-aux/config.guess: Update from config.
2391
2392 2007-07-21  Bruno Haible  <bruno@clisp.org>
2393
2394         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
2395         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
2396
2397 2007-07-20  Jim Meyering  <jim@meyering.net>
2398
2399         * check-module: Diagnose a self-dependency.
2400
2401 2007-07-19  Bruno Haible  <bruno@clisp.org>
2402
2403         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
2404         empty.
2405         Reported by Eric Blake.
2406
2407 2007-07-18  Bruno Haible  <bruno@clisp.org>
2408
2409         * gnulib-tool: New options --po-base, --po-domain.
2410         (func_usage): Document them.
2411         (pobase, po_domain): New variables.
2412         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
2413         DEFAULT_TEXT_DOMAIN.
2414         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
2415         (func_import): Consider pobase and po_domain. Create a po/ directory.
2416         (func_create_testdir): Set pobase and po_domain to empty.
2417         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
2418         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
2419
2420 2007-07-18  Bruno Haible  <bruno@clisp.org>
2421
2422         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2423         EXTRA_DIST augmentation for files in build-aux/.
2424
2425 2007-07-16  Bruno Haible  <bruno@clisp.org>
2426
2427         * modules/lseek (License): Use the synonymous term "LGPLv2+".
2428         * modules/getdelim (License): Likewise.
2429
2430 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2431
2432         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
2433         * modules/d-type (License): Likewise.
2434         * modules/extensions (License): Likewise.
2435         * modules/fnmatch (License): Likewise.
2436         * modules/fseeko (License): Likewise.
2437         * modules/getaddrinfo (License): Likewise.
2438         * modules/getline (License): Likewise.
2439         * modules/getlogin_r (License): Likewise.
2440         * modules/getpass (License): Likewise.
2441         * modules/gettimeofday (License): Likewise.
2442         * modules/glob (License): Likewise.
2443         * modules/inet_ntop (License): Likewise.
2444         * modules/malloc (License): Likewise.
2445         * modules/malloca (License): Likewise.
2446         * modules/memmem (License): Likewise.
2447         * modules/mempcpy (License): Likewise.
2448         * modules/memset (License): Likewise.
2449         * modules/minmax (License): Likewise.
2450         * modules/mktime (License): Likewise.
2451         * modules/netinet_in (License): Likewise.
2452         * modules/pathmax (License): Likewise.
2453         * modules/poll (License): Likewise.
2454         * modules/regex (License): Likewise.
2455         * modules/snprintf (License): Likewise.
2456         * modules/stdbool (License): Likewise.
2457         * modules/stdint (License): Likewise.
2458         * modules/stdio (License): Likewise.
2459         * modules/strcase (License): Likewise.
2460         * modules/strcasestr (License): Likewise.
2461         * modules/strdup (License): Likewise.
2462         * modules/string (License): Likewise.
2463         * modules/strndup (License): Likewise.
2464         * modules/strnlen (License): Likewise.
2465         * modules/strpbrk (License): Likewise.
2466         * modules/strptime (License): Likewise.
2467         * modules/strsep (License): Likewise.
2468         * modules/sys_select (License): Likewise.
2469         * modules/sys_socket (License): Likewise.
2470         * modules/sys_stat (License): Likewise.
2471         * modules/sys_time (License): Likewise.
2472         * modules/time (License): Likewise.
2473         * modules/time_r (License): Likewise.
2474         * modules/timegm (License): Likewise.
2475         * modules/unistd (License): Likewise.
2476         * modules/vsnprintf (License): Likewise.
2477         * modules/wctype (License): Likewise.
2478
2479 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2480
2481         * modules/argz (License): LGPLv2+.
2482
2483 2007-07-15  Karl Berry  <karl@gnu.org>
2484
2485         * doc/gnulib.texi: revise node structure per new fdl.texi.
2486
2487 2007-07-14  Bruno Haible  <bruno@clisp.org>
2488
2489         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
2490         the output file.
2491         * lib/uniname/uninames.h: Regenerated.
2492
2493 2007-07-14  Karl Berry  <karl@gnu.org>
2494
2495         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
2496         omitting sectioning and index commands.
2497
2498 2007-07-13  Bruno Haible  <bruno@clisp.org>
2499
2500         New gnulib-tool option --more-symlinks.
2501         * gnulib-tool (func_usage): Document --more-symlinks.
2502         (do_copyrights): New variable.
2503         Recognize option --more-symlinks.
2504         (func_import): Don't add a copyright notice transform to
2505         sed_transform_lib_file if do_copyrights is empty.
2506
2507 2007-07-13  Bruno Haible  <bruno@clisp.org>
2508
2509         * lib/vasnprintf.c (decimal_point_char): Define also if
2510         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
2511         && !NEED_PRINTF_DIRECTIVE_A.
2512         Reported by Clemens Koller <clemens.koller@anagramm.de> via
2513         Gary V. Vaughan <gary@gnu.org>.
2514
2515 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2516
2517         * lib/inttypes_.h: Undo previous change, since it was fixed
2518         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
2519
2520 2007-07-13  Bruno Haible  <bruno@clisp.org>
2521
2522         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
2523         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
2524
2525 2007-07-13  Jim Meyering  <jim@meyering.net>
2526
2527         df: Don't fail for Tru64's "file-on-file mount".
2528         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
2529         so we fall through and use statfs instead.  Details here:
2530         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
2531         Reported by Albert Chin.
2532
2533 2007-07-13  Bruno Haible  <bruno@clisp.org>
2534
2535         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
2536         * modules/configmake (License): Likewise.
2537         * modules/gettext (License): Likewise.
2538         * modules/gettext-h (License): Likewise.
2539         * modules/include_next (License): Likewise.
2540         * modules/link-warning (License): Likewise.
2541         * modules/localcharset (License): Likewise.
2542         * modules/localename (License): Likewise.
2543         * modules/lock (License): Likewise.
2544         * modules/relocatable-lib-lgpl (License): Likewise.
2545         * modules/size_max (License): Likewise.
2546         * modules/vasnprintf (License): Likewise.
2547         * modules/wchar (License): Likewise.
2548         * modules/xsize (License): Likewise.
2549
2550 2007-07-13  Bruno Haible  <bruno@clisp.org>
2551
2552         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
2553         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
2554
2555 2007-07-12  Bruno Haible  <bruno@clisp.org>
2556
2557         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
2558         in the modules files.
2559
2560 2007-07-11  Karl Berry  <karl@gnu.org>
2561
2562         * MODULES.html.sh (func_module): use
2563          sed -e '\|^'"${includefile}"'$|d'
2564          instead of /.../d, to avoid errors on $includefile's containing /.
2565
2566 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
2567
2568         * gnulib-tool (func_import): Avoid duplication of --avoid
2569         statements
2570         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
2571         names to `_' in variable names.
2572
2573 2007-07-10  Eric Blake  <ebb9@byu.net>
2574
2575         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
2576         * NEWS: Document this change.
2577
2578 2007-07-08  Bruno Haible  <bruno@clisp.org>
2579
2580         Update to Unicode 5.0.
2581         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
2582         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
2583         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
2584         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
2585         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
2586         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
2587         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
2588         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
2589         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
2590         U+10A3F, U+1D242..U+1D244.
2591         (nonspacing_table_ind): Update.
2592         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
2593         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
2594
2595 2007-07-08  Bruno Haible  <bruno@clisp.org>
2596
2597         Update to Unicode 5.0.
2598         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
2599         code transform. Extend the name index field of unicode_name_to_code and
2600         unicode_code_to_name from 16 to 24 bits.
2601         * lib/uniname/uniname.c (unicode_character_name,
2602         unicode_name_character): Add the range 0x12xxx to the code transform.
2603         * lib/uniname/uninames.h: Regenerated.
2604         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
2605
2606 2007-07-07  Bruno Haible  <bruno@clisp.org>
2607
2608         * modules/wcwidth-tests: New file.
2609         * tests/test-wcwidth.c: New file.
2610
2611         Work around MacOS X wcwidth() bug.
2612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
2613         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
2614         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
2615         original wcwidth in non-UTF-8 locales.
2616         * modules/wcwidth (Depends-on): Add localcharset, streq,
2617         uniwidth/width.
2618         * doc/functions/wcwidth.texi: Update.
2619
2620 2007-07-07  Bruno Haible  <bruno@clisp.org>
2621
2622         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
2623         (wcwidth): New declaration.
2624         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
2625         macros.
2626         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
2627         here. Prepare for creating <wchar.h> unconditionally.
2628         * modules/wchar (Depends-on): Add link-warning.
2629         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
2630         REPLACE_WCWIDTH, and GL_LINK_WARNING.
2631         * lib/wcwidth.h: Remove file.
2632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
2633         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
2634         * modules/wcwidth (Files): Remove lib/wcwidth.h.
2635         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
2636         (Include): Replace wcwidth.h with <wchar.h>.
2637         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
2638         * lib/mbchar.h: Don't include wcwidth.h.
2639         * lib/mbswidth.c: Likewise.
2640         * NEWS: Mention the change.
2641
2642 2007-07-07  Bruno Haible  <bruno@clisp.org>
2643
2644         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
2645         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
2646         definition with an external declaration.
2647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
2648         defined as a function. Remove AC_C_INLINE requirement.
2649         * modules/wcwidth (Files): Add lib/wcwidth.c.
2650         (Makefile.am): Remove redundant statement.
2651
2652 2007-07-07  Bruno Haible  <bruno@clisp.org>
2653
2654         * MODULES.html.sh (Unicode string functions): Add the new modules.
2655
2656         * tests/uniwidth/test-u32-strwidth.c: New file.
2657         * modules/uniwidth/u32-strwidth-tests: New file.
2658
2659         * lib/uniwidth/u32-strwidth.c: New file.
2660         * modules/uniwidth/u32-strwidth: New file.
2661
2662         * tests/uniwidth/test-u16-strwidth.c: New file.
2663         * modules/uniwidth/u16-strwidth-tests: New file.
2664
2665         * lib/uniwidth/u16-strwidth.c: New file.
2666         * modules/uniwidth/u16-strwidth: New file.
2667
2668         * tests/uniwidth/test-u8-strwidth.c: New file.
2669         * modules/uniwidth/u8-strwidth-tests: New file.
2670
2671         * lib/uniwidth/u8-strwidth.c: New file.
2672         * modules/uniwidth/u8-strwidth: New file.
2673
2674         * tests/uniwidth/test-u32-width.c: New file.
2675         * modules/uniwidth/u32-width-tests: New file.
2676
2677         * lib/uniwidth/u32-width.c: New file.
2678         * modules/uniwidth/u32-width: New file.
2679
2680         * tests/uniwidth/test-u16-width.c: New file.
2681         * modules/uniwidth/u16-width-tests: New file.
2682
2683         * lib/uniwidth/u16-width.c: New file.
2684         * modules/uniwidth/u16-width: New file.
2685
2686         * tests/uniwidth/test-u8-width.c: New file.
2687         * modules/uniwidth/u8-width-tests: New file.
2688
2689         * lib/uniwidth/u8-width.c: New file.
2690         * modules/uniwidth/u8-width: New file.
2691
2692         * tests/uniwidth/test-uc_width.c: New file.
2693         * modules/uniwidth/width-tests: New file.
2694
2695         * lib/uniwidth/width.c: New file, from GNU libiconv.
2696         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
2697         * modules/uniwidth/width: New file.
2698
2699         * lib/uniwidth.h: New file, from GNU libiconv.
2700         * modules/uniwidth/base: New file.
2701
2702 2007-07-07  Bruno Haible  <bruno@clisp.org>
2703
2704         * lib/uniname.h: New file, from GNU gettext.
2705         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
2706         * lib/uniname/uninames.h: New file, from GNU gettext.
2707         * lib/uniname/uniname.c: New file, from GNU gettext.
2708         * tests/uniname/test-uninames.sh: New file.
2709         * tests/uniname/test-uninames.c: New file, from GNU gettext.
2710         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
2711         * modules/uniname/base: New file.
2712         * modules/uniname/uniname: New file.
2713         * modules/uniname/uniname-tests: New file.
2714         * MODULES.html.sh (Unicode string functions): Add the new modules.
2715
2716 2007-07-06  Bruno Haible  <bruno@clisp.org>
2717
2718         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
2719
2720 2007-07-06  Bruno Haible  <bruno@clisp.org>
2721
2722         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
2723         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
2724         includes <cygwin/sys_time.h> which includes <sys/select.h> which
2725         include <sys/time.h>.
2726         Reported by Eric Blake.
2727
2728 2007-07-06  Eric Blake  <ebb9@byu.net>
2729
2730         Fix testing canonicalize on cygwin.
2731         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
2732         Revert patch from 2007-06-19.
2733         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
2734         canonicalize module is also in use.
2735         * tests/test-canonicalize.c: New file.
2736         * tests/test-canonicalize.sh: Likewise.
2737         * modules/canonicalize-tests: Likewise.
2738
2739 2007-07-06  Jim Meyering  <jim@meyering.net>
2740
2741         * lib/getugroups.c (getugroups): Detect getgrent failure.
2742         Adjust comment to reflect reality: this function may return -1.
2743
2744 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2745
2746         * build-aux/bootstrap (TP_URL,get_translations): Update to use
2747         the new TP address.
2748         (usage): Fix typo
2749         (gnulib_mk): New variable.
2750
2751 2007-07-05  Jim Meyering  <jim@meyering.net>
2752
2753         Don't let endgrent clobber errno, no matter how improbable.
2754         * lib/getugroups.c (getugroups): Save and restore errno around
2755         endgrent call.
2756
2757         Close the group DB even when failing with 2^31 or more members.
2758         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
2759
2760 2007-07-04  Jim Meyering  <jim@meyering.net>
2761
2762         * lib/getugroups.h: New file.
2763         * lib/getugroups.c: Include "getugroups.h".
2764         Remove uses of "register" keyword.
2765         Move local variable, "cp", down into scope where used.
2766         Give "username" parameter the "const" attribute.
2767         * modules/getugroups (Files): Add lib/getugroups.h
2768
2769 2007-07-04  Karl Berry  <karl@gnu.org>
2770
2771         * MODULES.html.sh (func_all_modules): Complete rename of
2772         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
2773
2774 2007-07-02  Bruno Haible  <bruno@clisp.org>
2775
2776         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
2777         mode, when inttypes.h comes from gnulib.
2778         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
2779
2780 2007-07-02  Simon Josefsson  <simon@josefsson.org>
2781
2782         * NEWS: Mention lgpl module name change.
2783
2784         * modules/lgpl-2.1: Renamed from lgpl.
2785
2786         * NEWS: Mention gpl module name change.
2787
2788         * modules/gpl-3.0: New file, based on gpl-2.0.
2789
2790         * modules/gpl-2.0: Renamed from gpl.
2791
2792         * modules/gpl: Fix filename, doc/gpl.texi is now found at
2793         doc/gpl-2.0.texi.
2794
2795 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2796
2797         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
2798         #define __STDC_LIMIT_MACROS temporarily while including
2799         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
2800         Problem reported by Joel E. Denny in
2801         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
2802
2803 2007-07-01  Bruno Haible  <bruno@clisp.org>
2804
2805         * lib/unistdio.h: New file.
2806         * lib/unistdio/u-asnprintf.h: New file.
2807         * lib/unistdio/u-asprintf.h: New file.
2808         * lib/unistdio/u-printf-args.c: New file.
2809         * lib/unistdio/u-printf-args.h: New file.
2810         * lib/unistdio/u-printf-parse.h: New file.
2811         * lib/unistdio/u-snprintf.h: New file.
2812         * lib/unistdio/u-sprintf.h: New file.
2813         * lib/unistdio/u-vasprintf.h: New file.
2814         * lib/unistdio/u-vsnprintf.h: New file.
2815         * lib/unistdio/u-vsprintf.h: New file.
2816         * lib/unistdio/ulc-asnprintf.c: New file.
2817         * lib/unistdio/ulc-asprintf.c: New file.
2818         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
2819         * lib/unistdio/ulc-printf-parse.c: New file.
2820         * lib/unistdio/ulc-snprintf.c: New file.
2821         * lib/unistdio/ulc-sprintf.c: New file.
2822         * lib/unistdio/ulc-vasnprintf.c: New file.
2823         * lib/unistdio/ulc-vasprintf.c: New file.
2824         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
2825         * lib/unistdio/ulc-vsnprintf.c: New file.
2826         * lib/unistdio/ulc-vsprintf.c: New file.
2827         * lib/unistdio/u8-asnprintf.c: New file.
2828         * lib/unistdio/u8-asprintf.c: New file.
2829         * lib/unistdio/u8-printf-parse.c: New file.
2830         * lib/unistdio/u8-snprintf.c: New file.
2831         * lib/unistdio/u8-sprintf.c: New file.
2832         * lib/unistdio/u8-vasnprintf.c: New file.
2833         * lib/unistdio/u8-vasprintf.c: New file.
2834         * lib/unistdio/u8-vsnprintf.c: New file.
2835         * lib/unistdio/u8-vsprintf.c: New file.
2836         * lib/unistdio/u8-u8-asnprintf.c: New file.
2837         * lib/unistdio/u8-u8-asprintf.c: New file.
2838         * lib/unistdio/u8-u8-snprintf.c: New file.
2839         * lib/unistdio/u8-u8-sprintf.c: New file.
2840         * lib/unistdio/u8-u8-vasnprintf.c: New file.
2841         * lib/unistdio/u8-u8-vasprintf.c: New file.
2842         * lib/unistdio/u8-u8-vsnprintf.c: New file.
2843         * lib/unistdio/u8-u8-vsprintf.c: New file.
2844         * lib/unistdio/u16-asnprintf.c: New file.
2845         * lib/unistdio/u16-asprintf.c: New file.
2846         * lib/unistdio/u16-printf-parse.c: New file.
2847         * lib/unistdio/u16-snprintf.c: New file.
2848         * lib/unistdio/u16-sprintf.c: New file.
2849         * lib/unistdio/u16-vasnprintf.c: New file.
2850         * lib/unistdio/u16-vasprintf.c: New file.
2851         * lib/unistdio/u16-vsnprintf.c: New file.
2852         * lib/unistdio/u16-vsprintf.c: New file.
2853         * lib/unistdio/u16-u16-asnprintf.c: New file.
2854         * lib/unistdio/u16-u16-asprintf.c: New file.
2855         * lib/unistdio/u16-u16-snprintf.c: New file.
2856         * lib/unistdio/u16-u16-sprintf.c: New file.
2857         * lib/unistdio/u16-u16-vasnprintf.c: New file.
2858         * lib/unistdio/u16-u16-vasprintf.c: New file.
2859         * lib/unistdio/u16-u16-vsnprintf.c: New file.
2860         * lib/unistdio/u16-u16-vsprintf.c: New file.
2861         * lib/unistdio/u32-asnprintf.c: New file.
2862         * lib/unistdio/u32-asprintf.c: New file.
2863         * lib/unistdio/u32-printf-parse.c: New file.
2864         * lib/unistdio/u32-snprintf.c: New file.
2865         * lib/unistdio/u32-sprintf.c: New file.
2866         * lib/unistdio/u32-vasnprintf.c: New file.
2867         * lib/unistdio/u32-vasprintf.c: New file.
2868         * lib/unistdio/u32-vsnprintf.c: New file.
2869         * lib/unistdio/u32-vsprintf.c: New file.
2870         * lib/unistdio/u32-u32-asnprintf.c: New file.
2871         * lib/unistdio/u32-u32-asprintf.c: New file.
2872         * lib/unistdio/u32-u32-snprintf.c: New file.
2873         * lib/unistdio/u32-u32-sprintf.c: New file.
2874         * lib/unistdio/u32-u32-vasnprintf.c: New file.
2875         * lib/unistdio/u32-u32-vasprintf.c: New file.
2876         * lib/unistdio/u32-u32-vsnprintf.c: New file.
2877         * lib/unistdio/u32-u32-vsprintf.c: New file.
2878         * tests/unistdio/test-ulc-asnprintf1.c: New file.
2879         * tests/unistdio/test-ulc-asnprintf1.h: New file.
2880         * tests/unistdio/test-ulc-printf1.h: New file.
2881         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
2882         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
2883         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
2884         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
2885         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
2886         * tests/unistdio/test-ulc-vasprintf1.c: New file.
2887         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
2888         * tests/unistdio/test-ulc-vsprintf1.c: New file.
2889         * tests/unistdio/test-u8-asnprintf1.c: New file.
2890         * tests/unistdio/test-u8-asnprintf1.h: New file.
2891         * tests/unistdio/test-u8-printf1.h: New file.
2892         * tests/unistdio/test-u8-vasnprintf1.c: New file.
2893         * tests/unistdio/test-u8-vasnprintf2.c: New file.
2894         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
2895         * tests/unistdio/test-u8-vasnprintf3.c: New file.
2896         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
2897         * tests/unistdio/test-u8-vasprintf1.c: New file.
2898         * tests/unistdio/test-u8-vsnprintf1.c: New file.
2899         * tests/unistdio/test-u8-vsprintf1.c: New file.
2900         * tests/unistdio/test-u16-asnprintf1.c: New file.
2901         * tests/unistdio/test-u16-asnprintf1.h: New file.
2902         * tests/unistdio/test-u16-printf1.h: New file.
2903         * tests/unistdio/test-u16-vasnprintf1.c: New file.
2904         * tests/unistdio/test-u16-vasnprintf2.c: New file.
2905         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
2906         * tests/unistdio/test-u16-vasnprintf3.c: New file.
2907         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
2908         * tests/unistdio/test-u16-vasprintf1.c: New file.
2909         * tests/unistdio/test-u16-vsnprintf1.c: New file.
2910         * tests/unistdio/test-u16-vsprintf1.c: New file.
2911         * tests/unistdio/test-u32-asnprintf1.c: New file.
2912         * tests/unistdio/test-u32-asnprintf1.h: New file.
2913         * tests/unistdio/test-u32-printf1.h: New file.
2914         * tests/unistdio/test-u32-vasnprintf1.c: New file.
2915         * tests/unistdio/test-u32-vasnprintf2.c: New file.
2916         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
2917         * tests/unistdio/test-u32-vasnprintf3.c: New file.
2918         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
2919         * tests/unistdio/test-u32-vasprintf1.c: New file.
2920         * tests/unistdio/test-u32-vsnprintf1.c: New file.
2921         * tests/unistdio/test-u32-vsprintf1.c: New file.
2922         * modules/unistdio/base: New file.
2923         * modules/unistdio/u-printf-args: New file.
2924         * modules/unistdio/ulc-asnprintf: New file.
2925         * modules/unistdio/ulc-asprintf: New file.
2926         * modules/unistdio/ulc-fprintf: New file.
2927         * modules/unistdio/ulc-printf-parse: New file.
2928         * modules/unistdio/ulc-snprintf: New file.
2929         * modules/unistdio/ulc-sprintf: New file.
2930         * modules/unistdio/ulc-vasnprintf: New file.
2931         * modules/unistdio/ulc-vasprintf: New file.
2932         * modules/unistdio/ulc-vfprintf: New file.
2933         * modules/unistdio/ulc-vsnprintf: New file.
2934         * modules/unistdio/ulc-vsprintf: New file.
2935         * modules/unistdio/u8-asnprintf: New file.
2936         * modules/unistdio/u8-asprintf: New file.
2937         * modules/unistdio/u8-printf-parse: New file.
2938         * modules/unistdio/u8-snprintf: New file.
2939         * modules/unistdio/u8-sprintf: New file.
2940         * modules/unistdio/u8-vasnprintf: New file.
2941         * modules/unistdio/u8-vasprintf: New file.
2942         * modules/unistdio/u8-vsnprintf: New file.
2943         * modules/unistdio/u8-vsprintf: New file.
2944         * modules/unistdio/u8-u8-asnprintf: New file.
2945         * modules/unistdio/u8-u8-asprintf: New file.
2946         * modules/unistdio/u8-u8-snprintf: New file.
2947         * modules/unistdio/u8-u8-sprintf: New file.
2948         * modules/unistdio/u8-u8-vasnprintf: New file.
2949         * modules/unistdio/u8-u8-vasprintf: New file.
2950         * modules/unistdio/u8-u8-vsnprintf: New file.
2951         * modules/unistdio/u8-u8-vsprintf: New file.
2952         * modules/unistdio/u16-asnprintf: New file.
2953         * modules/unistdio/u16-asprintf: New file.
2954         * modules/unistdio/u16-printf-parse: New file.
2955         * modules/unistdio/u16-snprintf: New file.
2956         * modules/unistdio/u16-sprintf: New file.
2957         * modules/unistdio/u16-vasnprintf: New file.
2958         * modules/unistdio/u16-vasprintf: New file.
2959         * modules/unistdio/u16-vsnprintf: New file.
2960         * modules/unistdio/u16-vsprintf: New file.
2961         * modules/unistdio/u16-u16-asnprintf: New file.
2962         * modules/unistdio/u16-u16-asprintf: New file.
2963         * modules/unistdio/u16-u16-snprintf: New file.
2964         * modules/unistdio/u16-u16-sprintf: New file.
2965         * modules/unistdio/u16-u16-vasnprintf: New file.
2966         * modules/unistdio/u16-u16-vasprintf: New file.
2967         * modules/unistdio/u16-u16-vsnprintf: New file.
2968         * modules/unistdio/u16-u16-vsprintf: New file.
2969         * modules/unistdio/u32-asnprintf: New file.
2970         * modules/unistdio/u32-asprintf: New file.
2971         * modules/unistdio/u32-printf-parse: New file.
2972         * modules/unistdio/u32-snprintf: New file.
2973         * modules/unistdio/u32-sprintf: New file.
2974         * modules/unistdio/u32-vasnprintf: New file.
2975         * modules/unistdio/u32-vasprintf: New file.
2976         * modules/unistdio/u32-vsnprintf: New file.
2977         * modules/unistdio/u32-vsprintf: New file.
2978         * modules/unistdio/u32-u32-asnprintf: New file.
2979         * modules/unistdio/u32-u32-asprintf: New file.
2980         * modules/unistdio/u32-u32-snprintf: New file.
2981         * modules/unistdio/u32-u32-sprintf: New file.
2982         * modules/unistdio/u32-u32-vasnprintf: New file.
2983         * modules/unistdio/u32-u32-vasprintf: New file.
2984         * modules/unistdio/u32-u32-vsnprintf: New file.
2985         * modules/unistdio/u32-u32-vsprintf: New file.
2986         * modules/unistdio/ulc-asnprintf-tests: New file.
2987         * modules/unistdio/ulc-vasnprintf-tests: New file.
2988         * modules/unistdio/ulc-vasprintf-tests: New file.
2989         * modules/unistdio/ulc-vsnprintf-tests: New file.
2990         * modules/unistdio/ulc-vsprintf-tests: New file.
2991         * modules/unistdio/u8-asnprintf-tests: New file.
2992         * modules/unistdio/u8-vasnprintf-tests: New file.
2993         * modules/unistdio/u8-vasprintf-tests: New file.
2994         * modules/unistdio/u8-vsnprintf-tests: New file.
2995         * modules/unistdio/u8-vsprintf-tests: New file.
2996         * modules/unistdio/u16-asnprintf-tests: New file.
2997         * modules/unistdio/u16-vasnprintf-tests: New file.
2998         * modules/unistdio/u16-vasprintf-tests: New file.
2999         * modules/unistdio/u16-vsnprintf-tests: New file.
3000         * modules/unistdio/u16-vsprintf-tests: New file.
3001         * modules/unistdio/u32-asnprintf-tests: New file.
3002         * modules/unistdio/u32-vasnprintf-tests: New file.
3003         * modules/unistdio/u32-vasprintf-tests: New file.
3004         * modules/unistdio/u32-vsnprintf-tests: New file.
3005         * modules/unistdio/u32-vsprintf-tests: New file.
3006         * MODULES.html.sh (Unicode string functions): Add the new modules.
3007
3008 2007-07-01  Bruno Haible  <bruno@clisp.org>
3009
3010         * lib/sprintf.c (sprintf): Limit the available length estimation,
3011         to avoid address wraparound.
3012         * lib/vsprintf.c (vsprintf): Likewise.
3013         * modules/sprintf-posix (Dependencies): Add stdint.
3014         * modules/vsprintf-posix (Dependencies): Likewise.
3015
3016 2007-07-01  Bruno Haible  <bruno@clisp.org>
3017
3018         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
3019         Windows PATH as well. Conservative double-quoting. Comments.
3020
3021 2007-07-01  Bruno Haible  <bruno@clisp.org>
3022             Eric Blake  <ebb9@byu.net>
3023             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3024
3025         * gnulib-tool (self_abspathname): Fix algorithm to cope with
3026         empty components in $PATH, denoting '.'.
3027
3028 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3029
3030         * gnulib-tool: Fix indentation.
3031         (func_create_megatestdir): Likewise.
3032         Report by Bruno Haible.
3033
3034 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3035
3036         Sync from Automake.
3037         * build-aux/gnupload: Fix shell portability issues with for loops.
3038         Report by Karl Berry.
3039
3040 2007-06-29  Simon Josefsson  <simon@josefsson.org>
3041
3042         * build-aux/maint.mk (POURL): Use translationproject.org.
3043
3044 2007-06-27  Simon Josefsson  <simon@josefsson.org>
3045             Bruno Haible  <bruno@clisp.org>
3046
3047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
3048         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
3049         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
3050         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
3051         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
3052
3053 2007-06-27  Bruno Haible  <bruno@clisp.org>
3054
3055         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
3056         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
3057
3058 2007-06-26  Karl Berry  <karl@gnu.org>
3059
3060         * MODULES.html.sh: remove xreadlink-with-size.
3061
3062 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
3065         method that I hope also handles the double-include problem noted
3066         by Bruno Haible in
3067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
3068
3069 2007-06-23  Bruno Haible  <bruno@clisp.org>
3070
3071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3072         Don't let the 'mostlyclean' target fail if the last subdirectory could
3073         not be removed.
3074         Reported by Karl Berry.
3075
3076 2007-06-23  Bruno Haible  <bruno@clisp.org>
3077
3078         * gnulib-tool (echo): Add a speedier workaround for ksh.
3079         * tests/test-echo.sh: Likewise.
3080
3081 2007-06-23  Bruno Haible  <bruno@clisp.org>
3082
3083         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
3084         * tests/test-echo.sh: Likewise.
3085
3086 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3087
3088         * gnulib-tool (IFS): Initialize early, so we don't set it to
3089         empty later.
3090         (self_abspathname): Rewrite algorithm to set it, reindent.
3091         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
3092         (func_create_megatestdir): Merge some sed scripts.
3093
3094 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3095
3096         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
3097         exposed by Sun Studio 11 cc on Solaris 8.
3098
3099 2007-06-22  Bruno Haible  <bruno@clisp.org>
3100
3101         * gnulib-tool (echo): Ensure the echo primitive does not interpret
3102         backslashes.
3103         * tests/test-echo.sh: New file.
3104
3105 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3106
3107         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
3108         simplify `sed_replace_build_aux' scripts, they are portable but
3109         echoing them with `echo' is not.
3110         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
3111
3112 2007-06-21  Karl Berry  <karl@gnu.org>
3113
3114         * config/srclist.txt: guess we can't handle the licenses via
3115         srclist at the moment.
3116
3117 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3118
3119         * MODULES.html.sh: Add include_next.
3120         * modules/include_next: New file.
3121
3122 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3123
3124         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
3125         INCLUDE_NEXT.
3126         (gl_CHECK_NEXT_HEADERS): New macro.
3127         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
3128         the obsolescent gl_ABSOLUTE_HEADER.
3129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3130         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3131         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
3132         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3133         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3134         * m4/math_h.m4 (gl_MATH_H): Likewise.
3135         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3136         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3137         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3138         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3139         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3140         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3141         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3145         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3146         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
3147         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3148         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3149         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3150         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3151         * m4/inttypes.m4 (gl_INTTYPES_H): Define
3152         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
3153         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
3154         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
3155         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
3156         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
3157         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
3158         * lib/float_.h: Likewise.
3159         * lib/inttypes_.h: Likewise.
3160         * lib/math_.h: Likewise.
3161         * lib/search_.h: Likewise.
3162         * lib/signal_.h: Likewise.
3163         * lib/stdint_.h: Likewise.
3164         * lib/stdio_.h: Likewise.
3165         * lib/stdlib_.h: Likewise.
3166         * lib/string_.h: Likewise.
3167         * lib/sys_stat_.h: Likewise.
3168         * lib/sys_time_.h: Likewise.
3169         * lib/time_.h: Likewise.
3170         * lib/unistd_.h: Likewise.
3171         * lib/wchar_.h: Likewise.
3172         * lib/wctype_.h: Likewise.
3173         * lib/dirent_.h: Likewise.
3174         * lib/iconv_.h: Likewise.
3175         * lib/locale_.h: Likewise.
3176         * lib/netinet_in_.h: Likewise.
3177         * lib/sys_select_.h: Likewise.
3178         * lib/sys_socket_.h: Likewise.
3179         * lib/sysexits_.h: Likewise.
3180         * modules/fcntl (Depends-on): Depend on include_next, not
3181         absolute_header.
3182         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
3183         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
3184         * modules/fchdir: Likewise.
3185         * modules/float: Likewise.
3186         * modules/iconv_open: Likewise.
3187         * modules/inttypes: Likewise.
3188         * modules/locale: Likewise.
3189         * modules/math: Likewise.
3190         * modules/netinet_in: Likewise.
3191         * modules/search: Likewise.
3192         * modules/signal: Likewise.
3193         * modules/stdint: Likewise.
3194         * modules/stdio: Likewise.
3195         * modules/stdlib: Likewise.
3196         * modules/string: Likewise.
3197         * modules/sys_select: Likewise.
3198         * modules/sys_socket: Likewise.
3199         * modules/sys_stat: Likewise.
3200         * modules/sys_time: Likewise.
3201         * modules/sysexits: Likewise.
3202         * modules/time: Likewise.
3203         * modules/unistd: Likewise.
3204         * modules/wchar: Likewise.
3205         * modules/wctype: Likewise.
3206         * modules/sys_stat: Change maintainer to "all".
3207         * modules/unistd: Likewise.
3208
3209 2007-06-20  Karl Berry  <karl@gnu.org>
3210
3211         * config/srclist.txt: track www changes in license files.
3212
3213 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
3214
3215         * build-aux/bootstrap: Remove stray dot.
3216         Make sure build_aux settings are honored when linking
3217         gnulib_extra_files.
3218
3219 2007-06-19  Eric Blake  <ebb9@byu.net>
3220
3221         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
3222         Allow compilation on cygwin.
3223
3224 2007-06-19  Jim Meyering  <jim@meyering.net>
3225
3226         xreadlink-with-size: Remove module.  No longer used.
3227         Ex-callers now use xreadlink or mreadlink-with-size.
3228         * modules/xreadlink-with-size: Remove module.
3229         * lib/xreadlink-with-size.c: Remove file.
3230         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
3231         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
3232         just before the function definition *is* accurate.
3233
3234         Eliminate one way canonicalize_filename_mode could exit.
3235         * lib/canonicalize.c (canonicalize_filename_mode):
3236         Use mreadlink_with_size, not xreadlink_with_size.
3237
3238 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
3239
3240         Detect porting problems to FreeBSD/arm, which has time_t wider than
3241         long int.  Original problem reported for GNU diff by Xin Li in
3242         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
3243         * modules/getdate (Depends-on): Add intprops, verify.
3244         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
3245         is an integer type no wider than long int.
3246
3247 2007-06-18  Jim Meyering  <jim@meyering.net>
3248
3249         New module: mreadlink-with-size.
3250         * MODULES.html.sh: Add mreadlink-with-size.
3251         * modules/mreadlink-with-size: New module
3252         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
3253         not xreadlink-with-size.
3254         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
3255
3256 2007-06-16  Bruno Haible  <bruno@clisp.org>
3257
3258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
3259         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
3260         Reported by Gary V. Vaughan <gary@gnu.org>.
3261
3262 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         Revamp lchown so that it lives in unistd.h where it belongs.
3265         * lib/lchown.h: Remove.
3266         * lib/dirchownmod.c: Don't include lib/lchown.h.
3267         * lib/fchownat.c: Likewise.
3268         * lib/openat.c: Likewise.
3269         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
3270         does not follow symlinks.
3271         (EOPNOTSUPP): Define if not defined.
3272         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
3273         is defined to 0.
3274         (lchown): New decl.
3275         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
3276         Do not check for lchown decl.
3277         Set REPLACE_LCHOWN.
3278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
3279         REPLACE_LCHOWN.
3280         * modules/chown: Make it clear it follows symlinks.
3281         * modules/lchown: Make it clear it doesn't follow symlinks.
3282         (Files): Remove lib/lchown.h
3283         (Depends-on): Add unistd.
3284         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
3285         (Include): Include <unistd.h>, not "lchown.h".
3286         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
3287         REPLACE_LCHOWN.
3288
3289 2007-06-15  Jim Meyering  <jim@meyering.net>
3290
3291         Change license (GPL to LGPL) of fsusage and dependents.
3292         * modules/fsusage (License): Change to LGPL.
3293         * modules/full-read (License): Likewise.
3294         * modules/full-write (License): Likewise.
3295         * modules/safe-read (License): Likewise.
3296         * modules/safe-write (License): Likewise.
3297
3298 2007-06-14  Ben Pfaff  <blp@gnu.org>
3299
3300         Missing part of allocsa -> malloca transition.
3301         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
3302         gl_MALLOCA.
3303
3304 2007-06-12  Bruno Haible  <bruno@clisp.org>
3305
3306         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
3307         to ia64, x86_64, i386.
3308         Reported by Eric Blake.
3309
3310 2007-06-12  Bruno Haible  <bruno@clisp.org>
3311
3312         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
3313         cross-compiling to x86_64.
3314
3315 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
3316
3317         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
3318         glitch reported by Ralf Wildenhues in
3319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
3320
3321         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
3322         Vin Shelton.
3323
3324 2007-06-11  Bruno Haible  <bruno@clisp.org>
3325
3326         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
3327         replacement string.
3328         Reported by Eric Blake.
3329
3330 2007-06-10  Bruno Haible  <bruno@clisp.org>
3331
3332         Prepare vasnprintf code for use with Unicode strings.
3333         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
3334         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
3335         TYPE_U32_STRING.
3336         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
3337         a_u32_string variants.
3338         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
3339         * lib/printf-args.c: Don't include config.h and the specification
3340         header if PRINTF_FETCHARGS is already defined.
3341         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
3342         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
3343         TYPE_U16_STRING, TYPE_U32_STRING.
3344         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
3345         u16_directive, u16_directives, u32_directive, u32_directives): New
3346         types.
3347         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
3348         New declarations.
3349         * lib/printf-parse.c: Don't include config.h and the specification
3350         header if PRINTF_PARSE is already defined. Eliminate the set of
3351         parameters for WIDE_CHAR_VERSION; the user of this file must provide
3352         them now. Include c-ctype.h.
3353         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
3354         directive and CHAR_T_ONLY_ASCII.
3355         * lib/vasnprintf.c: Don't include config.h and the specification header
3356         if VASNPRINTF is already defined.
3357         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
3358         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
3359         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
3360         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
3361         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
3362         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
3363         code accordingly.
3364         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
3365         pad_ourselves also in this case, with the 'c' and 's' directives, and
3366         with a different notion of "width".
3367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
3368
3369 2007-06-10  Bruno Haible  <bruno@clisp.org>
3370
3371         * modules/unistr/u32-mbsnlen: New file.
3372         * lib/unistr/u32-mbsnlen.c: New file.
3373
3374         * modules/unistr/u16-mbsnlen: New file.
3375         * lib/unistr/u16-mbsnlen.c: New file.
3376
3377         * modules/unistr/u8-mbsnlen: New file.
3378         * lib/unistr/u8-mbsnlen.c: New file.
3379
3380         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
3381         declarations.
3382
3383 2007-06-10  Bruno Haible  <bruno@clisp.org>
3384
3385         * lib/string_.h (mbsnlen): New declaration.
3386         * lib/mbsnlen.c: New file.
3387         * m4/mbsnlen.m4: New file.
3388         * modules/mbsnlen: New file.
3389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
3390         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
3391         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
3392
3393 2007-06-10  Bruno Haible  <bruno@clisp.org>
3394
3395         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
3396
3397 2007-06-10  Bruno Haible  <bruno@clisp.org>
3398
3399         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
3400         * lib/mbuiter.h: Likewise.
3401
3402 2007-06-10  Bruno Haible  <bruno@clisp.org>
3403
3404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
3405         declaration.
3406
3407 2007-06-10  Karl Berry  <karl@gnu.org>
3408
3409         * config/srclist.txt: remove gettext entries, Bruno prefers
3410         to update individually.
3411
3412 2007-06-10  Bruno Haible  <bruno@clisp.org>
3413
3414         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
3415         'maxlen'. Ensure only length + width bytes are allocated, not
3416         length + 1 + width.
3417
3418 2007-06-09  Bruno Haible  <bruno@clisp.org>
3419
3420         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
3421         (CHAR_T): Remove macro.
3422         (VASNPRINTF): Update.
3423
3424 2007-06-09  Bruno Haible  <bruno@clisp.org>
3425
3426         * MODULES.html.sh (Unicode string functions): Add the new modules.
3427
3428         * modules/uniconv/u32-conv-to-enc: New file.
3429         * lib/uniconv/u32-conv-to-enc.c: New file.
3430         * modules/uniconv/u32-conv-to-enc-tests: New file.
3431         * tests/uniconv/test-u32-conv-to-enc.c: New file.
3432
3433         * modules/uniconv/u16-conv-to-enc: New file.
3434         * lib/uniconv/u16-conv-to-enc.c: New file.
3435         * lib/uniconv/u-conv-to-enc.h: New file.
3436         * modules/uniconv/u16-conv-to-enc-tests: New file.
3437         * tests/uniconv/test-u16-conv-to-enc.c: New file.
3438
3439         * modules/uniconv/u8-conv-to-enc: New file.
3440         * lib/uniconv/u8-conv-to-enc.c: New file.
3441         * modules/uniconv/u8-conv-to-enc-tests: New file.
3442         * tests/uniconv/test-u8-conv-to-enc.c: New file.
3443
3444         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
3445         u32_conv_to_encoding): New declarations.
3446
3447 2007-06-09  Bruno Haible  <bruno@clisp.org>
3448
3449         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
3450
3451 2007-06-09  Bruno Haible  <bruno@clisp.org>
3452
3453         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
3454         * modules/malloca: Renamed from modules/allocsa, updated.
3455         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
3456         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
3457         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
3458         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
3459         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
3460         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
3461         * modules/xmalloca: Renamed from modules/xallocsa, updated.
3462         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
3463         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
3464         * modules/c-strcasestr (Depends-on): Update.
3465         * lib/c-strcasestr.c: Update.
3466         * modules/c-strstr (Depends-on): Update.
3467         * lib/c-strstr.c: Update.
3468         * modules/canonicalize-lgpl (Depends-on): Update.
3469         * lib/canonicalize-lgpl.c: Update.
3470         * modules/clean-temp (Depends-on): Update.
3471         * lib/clean-temp.c: Update.
3472         * modules/csharpcomp (Depends-on): Update.
3473         * lib/csharpcomp.c: Update.
3474         * modules/csharpexec (Depends-on): Update.
3475         * lib/csharpexec.c: Update.
3476         * modules/javacomp (Depends-on): Update.
3477         * lib/javacomp.c: Update.
3478         * modules/javaexec (Depends-on): Update.
3479         * lib/javaexec.c: Update.
3480         * modules/mbscasestr (Depends-on): Update.
3481         * lib/mbscasestr.c: Update.
3482         * modules/mbsstr (Depends-on): Update.
3483         * lib/mbsstr.c: Update.
3484         * modules/setenv (Depends-on): Update.
3485         * lib/setenv.c: Update.
3486         * modules/strcasestr (Depends-on): Update.
3487         * lib/strcasestr.c: Update.
3488         * modules/striconveha (Depends-on): Update.
3489         * lib/striconveha.c: Update.
3490         * modules/relocatable-prog-wrapper (Files): Update.
3491         * lib/relocwrapper.c: Update.
3492         * build-aux/install-reloc: Update.
3493         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
3494
3495 2007-06-08  Bruno Haible  <bruno@clisp.org>
3496
3497         Port to uClibc.
3498         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
3499         * lib/fpurge.c (fpurge): Likewise.
3500         * lib/freading.c (freading): Likewise.
3501         * lib/fseeko.c (rpl_fseeko): Likewise.
3502         * lib/fseterr.c (fseterr): Likewise.
3503         * lib/fwriting.c (fwriting): Likewise.
3504         * tests/test-fflush.c (main): Avoid a failure on uClibc.
3505
3506 2007-06-08  Bruno Haible  <bruno@clisp.org>
3507
3508         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
3509         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
3510         * modules/gettext (Files): Add m4/intlmacosx.m4.
3511
3512 2007-06-07  Bruno Haible  <bruno@clisp.org>
3513
3514         * modules/localename-tests: New file.
3515         * tests/test-localename.c: New file.
3516
3517         New module 'localename'.
3518         * lib/localename.h: New file.
3519         * lib/localename.c: New file, from GNU gettext.
3520         * m4/localename.m4: New file.
3521         * modules/localename: New file.
3522
3523 2007-06-07  Bruno Haible  <bruno@clisp.org>
3524
3525         Work around the lack of <wchar.h> on some builds of uClibc.
3526         * doc/headers/wchar.texi: Update.
3527         * lib/wchar_.h: Include <wchar.h> only if it exists.
3528         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
3529         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
3530         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
3531         doesn't exist.
3532         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
3533         * modules/mbfile (Depends-on): Add wchar.
3534         * modules/mbiter (Depends-on): Likewise.
3535         * modules/mbuiter (Depends-on): Likewise.
3536         Reported by Simon Josefsson.
3537
3538 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
3539
3540         Work around problem reported by Steven M. Schweda in
3541         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
3542         Tru64 5.1B with the Compaq compiler environment installed declares
3543         an 'isblank' function but does not define it in the C library.
3544         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
3545         * lib/regex_internal.h (isblank): Likewise.
3546         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
3547         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3548
3549 2007-06-05  Bruno Haible  <bruno@clisp.org>
3550
3551         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
3552         ia64.
3553         * modules/printf-safe: New file.
3554         * modules/fprintf-posix (Depends-on): Add printf-safe.
3555         * modules/printf-posix (Depends-on): Likewise.
3556         * modules/snprintf-posix (Depends-on): Likewise.
3557         * modules/sprintf-posix (Depends-on): Likewise.
3558         * modules/vasnprintf-posix (Depends-on): Likewise.
3559         * modules/vasprintf-posix (Depends-on): Likewise.
3560         * modules/vfprintf-posix (Depends-on): Likewise.
3561         * modules/vprintf-posix (Depends-on): Likewise.
3562         * modules/vsnprintf-posix (Depends-on): Likewise.
3563         * modules/vsprintf-posix (Depends-on): Likewise.
3564         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3565         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
3566         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
3567         "no" on i386, x86_64, ia64.
3568         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
3569         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3570         on i386, x86_64, ia64.
3571         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
3572         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3573         on i386, x86_64, ia64.
3574         * tests/test-vasnprintf-posix.c: Include float.h.
3575         (LDBL80_WORDS): New macro.
3576         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3577         on i386, x86_64, ia64.
3578         * tests/test-vasprintf-posix.c: Include float.h.
3579         (LDBL80_WORDS): New macro.
3580         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
3581         on i386, x86_64, ia64.
3582         * tests/test-snprintf-posix.c: Include float.h.
3583         * tests/test-sprintf-posix.c: Likewise.
3584         * tests/test-vsnprintf-posix.c: Likewise.
3585         * tests/test-vsprintf-posix.c: Likewise.
3586
3587 2007-06-05  Bruno Haible  <bruno@clisp.org>
3588
3589         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
3590         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
3591         non-IEEE numbers on i386, x86_64, ia64.
3592         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
3593         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
3594         * tests/test-isnanl.h: Include float.h.
3595         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
3596
3597 2007-06-05  Bruno Haible  <bruno@clisp.org>
3598
3599         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
3600         also the %a / %A. Handle the %a / %A code before this extra handling.
3601
3602 2007-06-05  Bruno Haible  <bruno@clisp.org>
3603
3604         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
3605         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
3606
3607 2007-06-05  Bruno Haible  <bruno@clisp.org>
3608
3609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
3610         typo in variable name.
3611
3612 2007-06-05  Eric Blake  <ebb9@byu.net>
3613
3614         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
3615         Reported by Simon Josefsson.
3616
3617 2007-06-04  Bruno Haible  <bruno@clisp.org>
3618
3619         Avoid test failures on some PowerPC platforms.
3620         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
3621         Define differently for PowerPC.
3622         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
3623         Reported by Gary V. Vaughan <gary@gnu.org>.
3624
3625 2007-06-02  Bruno Haible  <bruno@clisp.org>
3626
3627         Fix test-stdint failure on FreeBSD/ia64.
3628         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
3629         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
3630         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
3631         * doc/headers/stdint.texi: Update.
3632
3633 2007-06-01  Bruno Haible  <bruno@clisp.org>
3634
3635         * tests/test-binary-io.c (main): Pass a third argument to open().
3636         Reported by Gary V. Vaughan <gary@gnu.org>.
3637
3638 2007-06-01  Bruno Haible  <bruno@clisp.org>
3639
3640         * doc/functions/frexpl.texi: Update for mingw.
3641
3642 2007-06-01  Bruno Haible  <bruno@clisp.org>
3643
3644         * tests/test-lseek.c (main): Disable test of errno for invalid third
3645         argument.
3646         * doc/functions/lseek.texi: Update.
3647         Reported by Gary V. Vaughan <gary@gnu.org>.
3648
3649 2007-05-28  Bruno Haible  <bruno@clisp.org>
3650
3651         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
3652
3653 2007-05-31  Eric Blake  <ebb9@byu.net>
3654
3655         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
3656         cross compiling.
3657
3658 2007-05-30  Eric Blake  <ebb9@byu.net>
3659         and Bruno Haible  <bruno@clisp.org>
3660
3661         Work around mingw test failures exposed by m4-1.4.9b.
3662         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
3663         * tests/test-unistd.c: Disable uid_t and git_t tests for the
3664         moment.
3665
3666 2007-05-30  Bruno Haible  <bruno@clisp.org>
3667
3668         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
3669         assuming that they are closed. Needed on HP-UX 11.
3670
3671 2007-05-29  Bruno Haible  <bruno@clisp.org>
3672
3673         Fix a problem with #include_next.
3674         * lib/dirent_.h: Split the double-inclusion guard.
3675         * lib/fcntl_.h: Likewise.
3676         * lib/float_.h: Likewise.
3677         * lib/iconv_.h: Likewise.
3678         * lib/inttypes_.h: Likewise.
3679         * lib/locale_.h: Likewise.
3680         * lib/math_.h: Likewise.
3681         * lib/netinet_in_.h: Likewise.
3682         * lib/search_.h: Likewise.
3683         * lib/signal_.h: Likewise.
3684         * lib/stdint_.h: Likewise.
3685         * lib/stdio_.h: Likewise.
3686         * lib/stdlib_.h: Likewise.
3687         * lib/string_.h: Likewise.
3688         * lib/sys_select_.h: Likewise.
3689         * lib/sys_socket_.h: Likewise.
3690         * lib/sys_stat_.h: Likewise.
3691         * lib/sys_time_.h: Likewise.
3692         * lib/sysexits_.h: Likewise.
3693         * lib/time_.h: Likewise.
3694         * lib/unistd_.h: Likewise.
3695         * lib/wchar_.h: Likewise.
3696         * lib/wctype_.h: Likewise.
3697
3698 2007-05-29  Bruno Haible  <bruno@clisp.org>
3699
3700         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
3701         for the moment.
3702
3703 2007-05-29  Bruno Haible  <bruno@clisp.org>
3704
3705         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
3706         invocation.
3707         Reported by Eric Blake.
3708
3709 2007-05-29  Bruno Haible  <bruno@clisp.org>
3710
3711         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
3712         compiling case.
3713
3714 2007-05-29  Eric Blake  <ebb9@byu.net>
3715             Bruno Haible  <bruno@clisp.org>
3716
3717         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
3718         cross compiles.
3719
3720 2007-05-28  Eric Blake  <ebb9@byu.net>
3721
3722         * modules/closein-tests (test_closein_LDADD): Support test on
3723         cygwin with libtool.
3724
3725 2007-05-28  Bruno Haible  <bruno@clisp.org>
3726
3727         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
3728         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3729         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3730         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3731         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3732         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3733         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3734         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3735         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3736
3737 2007-05-28  Eric Blake  <ebb9@byu.net>
3738
3739         Unconditionally include <config.h> in unit tests.
3740         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
3741         * tests/test-allocsa.c, tests/test-arcfour.c,
3742         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
3743         tests/test-array_list.c, tests/test-array_oset.c,
3744         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
3745         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
3746         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
3747         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
3748         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
3749         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
3750         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
3751         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
3752         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
3753         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
3754         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
3755         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
3756         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
3757         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
3758         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
3759         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
3760         test-md5.c, test-memmem.c, test-printf-posix.c,
3761         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
3762         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
3763         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
3764         test-strcasestr.c, test-striconv.c, test-striconveh.c,
3765         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
3766         test-vasnprintf-posix2.c, test-vasnprintf.c,
3767         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
3768         test-vfprintf-posix.c, test-vprintf-posix.c,
3769         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
3770         test-xvasprintf.c: Likewise.
3771
3772 2007-05-28  Bruno Haible  <bruno@clisp.org>
3773
3774         * gnulib-tool (func_import): Remember the --with-tests command-line
3775         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
3776         Reported by Eric Blake.
3777
3778 2007-05-28  Bruno Haible  <bruno@clisp.org>
3779
3780         * modules/ftell-tests: New file.
3781         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
3782         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
3783
3784         * lib/ftell.c: New file.
3785         * modules/ftell: New file.
3786         * m4/ftell.m4: New file.
3787         * doc/functions/ftell.texi: Update.
3788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
3789         REPLACE_FTELL.
3790         * lib/stdio_.h (rpl_ftell): New declaration.
3791         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
3792         REPLACE_FTELL.
3793
3794 2007-05-28  Eric Blake  <ebb9@byu.net>
3795
3796         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
3797
3798 2007-05-28  Bruno Haible  <bruno@clisp.org>
3799
3800         * modules/fseek-tests: New file.
3801         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
3802         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
3803
3804         * lib/fseek.c: New file.
3805         * modules/fseek: New file.
3806         * m4/fseek.m4: New file.
3807         * doc/functions/fseek.texi: Update.
3808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
3809         REPLACE_FSEEK.
3810         * lib/stdio_.h (rpl_fseek): New declaration.
3811         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
3812         REPLACE_FSEEK.
3813
3814 2007-05-28  Bruno Haible  <bruno@clisp.org>
3815
3816         * lib/stdio_.h (fflush): More comments.
3817
3818 2007-05-28  Bruno Haible  <bruno@clisp.org>
3819
3820         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
3821         runtime test.
3822
3823 2007-05-28  Eric Blake  <ebb9@byu.net>
3824
3825         Improve lseek module.
3826         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
3827         * lib/unistd_.h (lseek): Scale back link warning message.
3828         * tests/test-lseek.c: Beef up test.
3829         * tests/test-lseek.sh: Exercise more facets of lseek.
3830         Reported by Bruno Haible.
3831
3832 2007-05-28  Bruno Haible  <bruno@clisp.org>
3833
3834         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
3835         to define.
3836
3837 2007-05-27  Bruno Haible  <bruno@clisp.org>
3838
3839         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
3840
3841 2007-05-27  Bruno Haible  <bruno@clisp.org>
3842
3843         * modules/openmp: New file.
3844         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
3845         Noah Misch.
3846
3847 2007-05-26  Bruno Haible  <bruno@clisp.org>
3848
3849         * modules/chdir-long (Depends-on): Add fchdir.
3850         * modules/chdir-safer (Depends-on): Likewise.
3851         * modules/fts (Depends-on): Likewise.
3852         * modules/fts-lgpl (Depends-on): Likewise.
3853         * modules/openat (Depends-on): Likewise.
3854         * modules/savewd (Depends-on): Likewise.
3855
3856 2007-05-24  Eric Blake  <ebb9@byu.net>
3857
3858         Fix lseek on mingw.
3859         * modules/lseek: New module.
3860         * m4/lseek.m4: New file.
3861         * lib/lseek.c: New file.
3862         * modules/lseek-tests: New file.
3863         * tests/test-lseek.c: New file.
3864         * tests/test-lseek.sh: New file.
3865         * MODULES.html.sh: Document lseek module.
3866         * modules/fflush (Depends-on): Add lseek, fseeko.
3867         * modules/fseeko (Depends-on): Likewise.
3868         * modules/ftello (Depends-on): Likewise.
3869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
3870         broken.
3871         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
3872         broken.
3873         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
3874         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
3875         * lib/ftello.c (rpl_ftello): Likewise.
3876         * tests/test-fseeko.c (main): Test this.
3877         * tests/test-fseeko.sh: Likewise.
3878         * tests/test-ftello.c (main): Likewise.
3879         * tests/test-ftello.sh: Likewise.
3880         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
3881         implies replacing fseek.
3882         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
3883         HAVE_FTELLO.
3884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
3885         * modules/unistd (Makefile.am): Likewise.
3886         * lib/unistd_.h (lseek): Declare a replacement.
3887         * doc/functions/lseek.texi (lseek): Document this fix.
3888         * doc/functions/fseek.texi (fseek): Likewise.
3889         * doc/functions/ftell.texi (ftell): Likewise.
3890
3891 2007-05-24  Bruno Haible  <bruno@clisp.org>
3892
3893         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
3894         in the printed representation of a NaN.
3895         * tests/test-vasprintf-posix.c (test_function): Likewise.
3896         * tests/test-snprintf-posix.h (test_function): Likewise.
3897         * tests/test-sprintf-posix.h (test_function): Likewise.
3898         Reported by Eric Blake.
3899
3900 2007-05-23  Eric Blake  <ebb9@byu.net>
3901
3902         Fix fseeko/ftello on cygwin 1.5.24.
3903         * doc/functions/fseeko.texi (fseeko): Document the fix.
3904         * doc/functions/ftello.texi (ftello): Document the fix.
3905         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
3906         * doc/functions/stdout.text (stdout): New file.
3907         * doc/functions/stderr.text (stderr): New file.
3908         * doc/gnulib.texi (Function Substitutes): Use new files.
3909         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
3910         prior to 1.7.0.
3911         * tests/test-ftello.c (main): Likewise for ftello.
3912         * tests/test-fseeko.sh: New file.
3913         * tests/test-ftello.sh: New file.
3914         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
3915         with seekable stdin.
3916         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
3917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
3918         (gl_REPLACE_FSEEKO): New macro.
3919         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
3920         * modules/fseeko (Files): Distribute fseeko.c.
3921         * modules/ftello (Files): Distribute ftello.c.
3922         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
3923         mode.
3924         * lib/ftello.c (rpl_ftello): New file.
3925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
3926         fseeko, ftello.
3927         (gl_STDIN_LARGE_OFFSET): New macro.
3928         * modules/stdio (Makefile.am): Perform the replacement.
3929         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
3930
3931 2007-05-23  Bruno Haible  <bruno@clisp.org>
3932
3933         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
3934         GNULIB_POSIXCHECK is defined.
3935
3936 2007-05-21  Bruno Haible  <bruno@clisp.org>
3937
3938         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
3939         Check also the output for NaN arguments. When cross-compiling, guess
3940         no on IRIX.
3941         * lib/vasnprintf.c: Update comments.
3942         * tests/test-vasnprintf-posix.c (strisnan): New function.
3943         (test_function): Use it.
3944         * tests/test-vasprintf-posix.c (strisnan): New function.
3945         (test_function): Use it.
3946         * tests/test-snprintf-posix.h (strisnan): New function.
3947         (test_function): Use it.
3948         * tests/test-sprintf-posix.h (strisnan): New function.
3949         (test_function): Use it.
3950         Reported by Eric Blake.
3951
3952 2007-05-20  Bruno Haible  <bruno@clisp.org>
3953
3954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
3955         numbers that fails on BeOS.
3956         * doc/functions/frexpl.texi: Update.
3957
3958 2007-05-20  Jim Meyering  <jim@meyering.net>
3959
3960         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
3961         forced upon us by glibc-2.6.
3962
3963 2007-05-20  Bruno Haible  <bruno@clisp.org>
3964
3965         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
3966         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
3967         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
3968         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
3969         NEED_PRINTF_INFINITE.
3970         (is_infinitel): New function.
3971         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
3972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
3973         gl_PREREQ_VASNPRINTF_INFINITE.
3974         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
3975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3976         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
3977         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
3978         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
3979         gl_PREREQ_VASNPRINTF_INFINITE.
3980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3987         * doc/functions/fprintf.texi: Update.
3988         * doc/functions/printf.texi: Update.
3989         * doc/functions/snprintf.texi: Update.
3990         * doc/functions/sprintf.texi: Update.
3991         * doc/functions/vfprintf.texi: Update.
3992         * doc/functions/vprintf.texi: Update.
3993         * doc/functions/vsnprintf.texi: Update.
3994         * doc/functions/vsprintf.texi: Update.
3995
3996 2007-05-20  Bruno Haible  <bruno@clisp.org>
3997
3998         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
3999         was not found in libc.
4000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4001
4002 2007-05-20  Bruno Haible  <bruno@clisp.org>
4003
4004         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
4005         printed as "-nan" instead of "nan".
4006         * tests/test-vasprintf-posix.c (test_function): Likewise.
4007         * tests/test-snprintf-posix.h (test_function): Likewise.
4008         * tests/test-sprintf-posix.h (test_function): Likewise.
4009         Needed for HP-UX 11.
4010
4011 2007-05-20  Jim Meyering  <jim@meyering.net>
4012
4013         Fix buggy test for the fchownat-deref bug.
4014         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
4015         symlink required for the run-test.  Without it, this test would
4016         always declare that fchownat doesn't work, and client code would
4017         unnecessarily use the replacement function with fixed libc.
4018         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
4019         Reported by Greg Schafer.
4020
4021 2007-05-19  Bruno Haible  <bruno@clisp.org>
4022
4023         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
4024         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
4025         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
4026         Needed for IRIX 6.5 and Solaris 2.5.1.
4027
4028 2007-05-19  Bruno Haible  <bruno@clisp.org>
4029
4030         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
4031         (test_function): Skip tests involving -0.0 on platforms where
4032         -0.0 = 0.0.
4033         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
4034         (test_function): Skip tests involving -0.0 on platforms where
4035         -0.0 = 0.0.
4036         * tests/test-snprintf-posix.h (have_minus_zero): New function.
4037         (test_function): Skip tests involving -0.0 on platforms where
4038         -0.0 = 0.0.
4039         * tests/test-sprintf-posix.h (have_minus_zero): New function.
4040         (test_function): Skip tests involving -0.0 on platforms where
4041         -0.0 = 0.0.
4042         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
4043         tests.
4044         * tests/test-printf-posix.h (test_function): Likewise.
4045         * tests/test-printf-posix.output: Remove all -0.0 related results.
4046         Needed for IRIX 6.5.
4047
4048 2007-05-19  Bruno Haible  <bruno@clisp.org>
4049
4050         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
4051         printed as "nan0x7fffffff" instead of "nan".
4052         * tests/test-vasprintf-posix.c (test_function): Likewise.
4053         * tests/test-snprintf-posix.h (test_function): Likewise.
4054         * tests/test-sprintf-posix.h (test_function): Likewise.
4055         * tests/test-fprintf-posix.h (NaN): Remove macro.
4056         (test_function): Remove all NaN related tests.
4057         * tests/test-printf-posix.h (NaN): Remove macro.
4058         (test_function): Remove all NaN related tests.
4059         * tests/test-printf-posix.output: Remove all NaN related results.
4060         Needed for IRIX 6.5.
4061
4062 2007-05-19  Bruno Haible  <bruno@clisp.org>
4063
4064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
4065         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4066
4067 2007-05-19  Bruno Haible  <bruno@clisp.org>
4068
4069         * lib/float_.h: New file.
4070         * m4/float_h.m4: New file.
4071         * modules/float: New file.
4072         * modules/isnanl (Dependencies): Add float.
4073         * modules/isnanl-nolibm (Dependencies): Likewise.
4074         * modules/mathl (Dependencies): Likewise.
4075         * modules/printf-frexpl (Dependencies): Likewise.
4076         * modules/signbit (Dependencies): Likewise.
4077         * modules/vasnprintf (Dependencies): Likewise.
4078         * doc/headers/float.texi: Update.
4079
4080 2007-05-19  Jim Meyering  <jim@meyering.net>
4081
4082         * lib/utimens.c (gl_futimens): Rename from futimens,
4083         now that glibc-2.6 declares futimens.
4084         * lib/utimens.h: Likewise.
4085
4086 2007-05-19  Bruno Haible  <bruno@clisp.org>
4087
4088         Avoid test failures on mingw.
4089         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
4090         * tests/test-printf-posix.sh: Likewise.
4091         * tests/test-vfprintf-posix.sh: Likewise.
4092         * tests/test-vprintf-posix.sh: Likewise.
4093
4094 2007-05-19  Bruno Haible  <bruno@clisp.org>
4095
4096         Fix *printf result for NaN, Inf, -0.0 on mingw.
4097         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
4098         * lib/vasnprintf.c: Include math.h and isnan.h.
4099         (is_infinite_or_zero): New function.
4100         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
4101         values in the %f, %F, %e, %E, %g, %G directives.
4102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
4103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4104         gl_PRINTF_INFINITE and test its result. Invoke
4105         gl_PREREQ_VASNPRINTF_INFINITE.
4106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4113         * doc/functions/fprintf.texi: Update.
4114         * doc/functions/printf.texi: Update.
4115         * doc/functions/snprintf.texi: Update.
4116         * doc/functions/sprintf.texi: Update.
4117         * doc/functions/vfprintf.texi: Update.
4118         * doc/functions/vprintf.texi: Update.
4119         * doc/functions/vsnprintf.texi: Update.
4120         * doc/functions/vsprintf.texi: Update.
4121
4122 2007-05-19  Bruno Haible  <bruno@clisp.org>
4123
4124         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
4125         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
4126         Instead of multiplying with 10^k, set extra_zeroes to k.
4127         (scale10_round_long_double): Remove function.
4128
4129 2007-05-18  Bruno Haible  <bruno@clisp.org>
4130
4131         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
4132         introduced on 2007-05-06.
4133
4134 2007-05-18  Bruno Haible  <bruno@clisp.org>
4135
4136         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
4137         %g directives.
4138         * tests/test-vasprintf-posix.c (test_function): Likewise.
4139         * tests/test-snprintf-posix.h (test_function): Likewise.
4140         * tests/test-sprintf-posix.h (test_function): Likewise.
4141
4142 2007-05-18  Bruno Haible  <bruno@clisp.org>
4143
4144         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
4145         (strmatch): New function.
4146         (test_function): Test the %f directive on numbers of various exponents.
4147         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
4148         (strmatch): New function.
4149         (test_function): Test the %f directive on numbers of various exponents.
4150         * tests/test-snprintf-posix.h (strmatch): New function.
4151         (test_function): Test the %f directive on numbers of various exponents.
4152         * tests/test-sprintf-posix.h (strmatch): New function.
4153         (test_function): Test the %f directive on numbers of various exponents.
4154         * tests/test-snprintf-posix.c (SIZEOF): New macro.
4155         * tests/test-sprintf-posix.c (SIZEOF): New macro.
4156         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
4157         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
4158
4159 2007-05-18  Bruno Haible  <bruno@clisp.org>
4160
4161         Add support for 'long double' number output.
4162         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
4163         * lib/vasnprintf.c: Include math.h and float+.h.
4164         (mp_limb_t): New type.
4165         (GMP_LIMB_BITS): New macro.
4166         (mp_twolimb_t): New type.
4167         (GMP_TWOLIMB_BITS): New macro.
4168         (mpn_t): New type.
4169         (multiply, divide, convert_to_decimal, decode_long_double,
4170         scale10_round_long_double, scale10_round_decimal_long_double,
4171         floorlog10l): New functions.
4172         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
4173         for the %f, %F, %e, %E, %g, %G directives.
4174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
4175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4176         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
4177         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
4178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4185         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
4186         * modules/snprintf-posix (Depends-on): Likewise.
4187         * modules/sprintf-posix (Depends-on): Likewise.
4188         * modules/vasnprintf-posix (Depends-on): Likewise.
4189         * modules/vasprintf-posix (Depends-on): Likewise.
4190         * modules/vfprintf-posix (Depends-on): Likewise.
4191         * modules/vsnprintf-posix (Depends-on): Likewise.
4192         * modules/vsprintf-posix (Depends-on): Likewise.
4193         * modules/vasnprintf (Files): Add lib/float+.h.
4194         * doc/functions/fprintf.texi: Update.
4195         * doc/functions/printf.texi: Update.
4196         * doc/functions/snprintf.texi: Update.
4197         * doc/functions/sprintf.texi: Update.
4198         * doc/functions/vfprintf.texi: Update.
4199         * doc/functions/vprintf.texi: Update.
4200         * doc/functions/vsnprintf.texi: Update.
4201         * doc/functions/vsprintf.texi: Update.
4202
4203 2007-05-18  Bruno Haible  <bruno@clisp.org>
4204
4205         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
4206
4207 2007-05-18  Bruno Haible  <bruno@clisp.org>
4208
4209         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
4210         for printing 64-bit integers. Needed for mingw.
4211
4212 2007-05-18  Bruno Haible  <bruno@clisp.org>
4213
4214         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4215         gl_FUNC_FREXPL_WORKS.
4216         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
4217
4218 2007-05-18  Bruno Haible  <bruno@clisp.org>
4219
4220         * modules/frexpl-nolibm-tests: New file.
4221
4222         * modules/frexpl-nolibm: New file.
4223         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
4224
4225 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4226
4227         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
4228         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
4229         GCC 4.2, which otherwise issues a lot of warnings.
4230         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
4231         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
4232         Likewise.
4233         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
4234         * modules/iconv_open (iconv.h): Likewise.
4235         * modules/locale (locale.h): Likewise.
4236         * modules/netinet_in (netinet/in.h): Likewise.
4237         * modules/sys_select (sys_select.h): Likewise.
4238         * modules/sys_socket (sys/socket.h): Likewise.
4239         * modules/sys_stat (sys/stat.h): Likewise.
4240         * modules/sysexits (sysexits.h): Likewise.
4241         * modules/unistd (unistd.h): Likewise.
4242
4243 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4244
4245         * modules/closein-tests (Makefile.am): Distribute
4246         `test-closein.sh'.
4247
4248 2007-05-17  Bruno Haible  <bruno@clisp.org>
4249
4250         * tests/test-printf-posix.output: Renamed from
4251         tests/test-fprintf-posix.out.
4252         * modules/fprintf-posix-tests: Update.
4253         * modules/printf-posix-tests: Update.
4254         * modules/vfprintf-posix-tests: Update.
4255         * modules/vprintf-posix-tests: Update.
4256         * tests/test-fprintf-posix.sh: Update.
4257         * tests/test-printf-posix.sh: Update.
4258         * tests/test-vfprintf-posix.sh: Update.
4259         * tests/test-vprintf-posix.sh: Update.
4260         Reported by Ralf Wildenhues.
4261
4262 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4263
4264         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
4265         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
4266         GCC 4.2, which otherwise issues a lot of warnings.
4267         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
4268         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
4269         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
4270         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
4271         it should no longer be needed.
4272         * lib/string_.h: Likewise.
4273         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
4274         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
4275         * modules/inttypes (inttypes.h): Likewise.
4276         * modules/math (math.h): Likewise.
4277         * modules/search (search.h): Likewise.
4278         * modules/signal (signal.h): Likewise.
4279         * modules/stdint (stdint.h): Likewise.
4280         * modules/stdio (stdio.h): Likewise.
4281         * modules/stdlib (stdlib.h): Likewise.
4282         * modules/string (string.h): Likewise.
4283         * modules/sys_time (sys/time.h): Likewise.
4284         * modules/time (time.h): Likewise.
4285         * modules/wchar (wchar.h): Likewise.
4286         * modules/wctype (wtype.h): Likewise.
4287
4288 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4289
4290         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
4291
4292 2007-05-13  Bruno Haible  <bruno@clisp.org>
4293
4294         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
4295         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4296         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
4297         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4298         (gl_PREREQ_STRTOK_R): Don't require it here.
4299
4300 2007-05-13  Bruno Haible  <bruno@clisp.org>
4301
4302         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
4303         when used in C++ mode.
4304
4305 2007-05-12  Bruno Haible  <bruno@clisp.org>
4306
4307         * lib/linebuffer.h: Tweak doc.
4308         * lib/linebuffer.c: Likewise.
4309
4310 2007-05-12  James Youngman  <jay@gnu.org>
4311
4312         * lib/linebuffer.c (readlinebuffer_delim): New function,
4313         like readlinebuffer, but use a caller-specified delimiter.
4314         (readlinebuffer): Just call readlinebuffer_delim with '\n'
4315         as the delimiter.
4316         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
4317
4318 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4319
4320         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
4321         * modules/openat (Files): Remove openat-die.c.
4322         (Depends-on): Add openat-die.
4323         * modules/openat-die: New module.
4324
4325 2007-05-06  Bruno Haible  <bruno@clisp.org>
4326
4327         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
4328         Update with info about Cygwin.
4329         * doc/functions/fprintf.texi: Update.
4330         * doc/functions/printf.texi: Update.
4331         * doc/functions/snprintf.texi: Update.
4332         * doc/functions/sprintf.texi: Update.
4333         * doc/functions/vfprintf.texi: Update.
4334         * doc/functions/vprintf.texi: Update.
4335         * doc/functions/vsnprintf.texi: Update.
4336         * doc/functions/vsprintf.texi: Update.
4337         Reported by Eric Blake.
4338
4339 2007-05-06  Bruno Haible  <bruno@clisp.org>
4340
4341         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
4342         padding ourselves for the floating-point directives.
4343         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
4344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
4345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4346         gl_PRINTF_FLAG_ZERO and test its result. Invoke
4347         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
4348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
4350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4355         * tests/test-snprintf-posix.h (test_function): Also check the width
4356         and some flags in the %f directive.
4357         * tests/test-sprintf-posix.h (test_function): Likewise.
4358         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4359         * tests/test-vasprintf-posix.c (test_function): Likewise.
4360         * doc/functions/fprintf.texi: Update.
4361         * doc/functions/printf.texi: Update.
4362         * doc/functions/snprintf.texi: Update.
4363         * doc/functions/sprintf.texi: Update.
4364         * doc/functions/vfprintf.texi: Update.
4365         * doc/functions/vprintf.texi: Update.
4366         * doc/functions/vsnprintf.texi: Update.
4367         * doc/functions/vsprintf.texi: Update.
4368
4369 2007-05-06  Bruno Haible  <bruno@clisp.org>
4370
4371         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
4372         pass the ' flag character to sprintf or snprintf.
4373         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
4374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
4375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4376         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
4377         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
4378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4379         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
4380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4385         * tests/test-snprintf-posix.h (test_function): Also check the grouping
4386         flag.
4387         * tests/test-sprintf-posix.h (test_function): Likewise.
4388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4389         * tests/test-vasprintf-posix.c (test_function): Likewise.
4390         * doc/functions/fprintf.texi: Update.
4391         * doc/functions/printf.texi: Update.
4392         * doc/functions/snprintf.texi: Update.
4393         * doc/functions/sprintf.texi: Update.
4394         * doc/functions/vfprintf.texi: Update.
4395         * doc/functions/vprintf.texi: Update.
4396         * doc/functions/vsnprintf.texi: Update.
4397         * doc/functions/vsprintf.texi: Update.
4398
4399 2007-05-01  Bruno Haible  <bruno@clisp.org>
4400
4401         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
4402
4403 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4404
4405         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
4406         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
4407
4408 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4409
4410         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
4411         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
4412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
4413
4414 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
4415
4416         * lib/argp-help.c (struct hol_entry): New member `ord'.
4417         (HOL_ENTRY_PTRCMP): Use ord for comparison
4418         (hol_sort): Initialize ord.
4419
4420 2007-05-01  Bruno Haible  <bruno@clisp.org>
4421
4422         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
4423         Reported by Eric Blake.
4424         * doc/gnulib.texi (Function Substitutes): Update.
4425
4426 2007-05-01  Bruno Haible  <bruno@clisp.org>
4427
4428         * doc/functions.texi: Remove file, now redundant through
4429         doc/functions/*.texi.
4430
4431 2007-05-01  Bruno Haible  <bruno@clisp.org>
4432
4433         * modules/argp (Depends-on): Add sleep.
4434
4435 2007-05-01  Bruno Haible  <bruno@clisp.org>
4436
4437         * modules/sleep-tests: New file.
4438         * tests/test-sleep.c: New file.
4439
4440         * modules/sleep: New file.
4441         * lib/sleep.c: New file.
4442         * m4/sleep.m4: New file.
4443         * lib/unistd_.h (sleep): New declaration.
4444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
4445         HAVE_SLEEP.
4446         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
4447         * doc/functions/sleep.texi: Document the sleep module.
4448
4449 2007-05-01  Bruno Haible  <bruno@clisp.org>
4450
4451         * lib/sigprocmask.h: Remove file.
4452         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
4453         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
4454         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
4455         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
4456         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4457         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
4458         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
4459         HAVE_SIGSET_T as a shell variable.
4460         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
4461         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
4462         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
4463         (Depends-on): Add signal. Remove verify.
4464         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
4465         (Include): Mention <signal.h> instead of sigprocmask.h.
4466         * NEWS: Mention the change.
4467         * lib/fatal-signal.c: Don't include sigprocmask.h.
4468
4469 2007-05-01  Bruno Haible  <bruno@clisp.org>
4470
4471         * modules/signal: New file.
4472         * lib/signal_.h: New file.
4473         * m4/signal_h.m4: New file.
4474
4475 2007-05-01  Bruno Haible  <bruno@clisp.org>
4476
4477         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
4478         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
4479         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
4480         HAVE_WCTYPE_CTMP_BUG into wctype.h.
4481
4482 2007-05-01  Bruno Haible  <bruno@clisp.org>
4483
4484         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
4485         configure time.
4486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
4487         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
4488         * modules/sys_stat (Makefile.am): Substitute their values into
4489         sys/stat.h.
4490
4491 2007-05-01  Bruno Haible  <bruno@clisp.org>
4492
4493         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
4494         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
4495         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
4496
4497 2007-05-01  Bruno Haible  <bruno@clisp.org>
4498
4499         * doc/header/assert.texi: Undo last change: don't mention the gnulib
4500         'assert' module here.
4501
4502 2007-05-01  Bruno Haible  <bruno@clisp.org>
4503
4504         * doc/functions/*.texi: New files.
4505         * doc/functions/google-ranking.txt: New file.
4506         * doc/gnulib.texi (Function Substitutes): New chapter.
4507         (ctime, inet_ntoa): Remove sections.
4508         * doc/ctime.texi: Remove file.
4509         * doc/inet_ntoa.texi: Remove file.
4510         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
4511         dependencies.
4512         (%.info): New rule, specifying a --reference-limit.
4513
4514 2007-05-01  Bruno Haible  <bruno@clisp.org>
4515
4516         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
4517
4518 2007-05-01  Bruno Haible  <bruno@clisp.org>
4519
4520         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
4521         the portability of 'mkdir' to mingw systems.
4522
4523 2007-05-01  Bruno Haible  <bruno@clisp.org>
4524
4525         * doc/headers/google-ranking.txt: New file.
4526
4527 2007-04-30  Eric Blake  <ebb9@byu.net>
4528
4529         Prefer fseeko to fseek.
4530         * modules/getpass (Depends-on): Add fseeko.
4531         * lib/getpass.c (getpass): Use fseeko, not fseek.
4532
4533 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
4534
4535         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
4536         assumes the sorting is stable, while most qsort implementations
4537         are not.  Use argument addresses to ensure they never compare as
4538         equal.
4539
4540         * tests/test-argp-2.sh (usage-indent test): Fix output
4541         (func_compare): Restore diff options
4542         * tests/test-argp.c: Restore #include "progname.h"
4543
4544 2007-04-29  Bruno Haible  <bruno@clisp.org>
4545
4546         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
4547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4548         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
4549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4550         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
4551         (configure.ac): Define CHECK_SNPRINTF_POSIX.
4552         (TESTS, check_PROGRAMS): Add test-snprintf.
4553         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
4554         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
4555         (TESTS, check_PROGRAMS): Add test-vsnprintf.
4556         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
4557         assertions that fail on HP-UX, OSF/1, or IRIX.
4558         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
4559
4560 2007-04-29  Bruno Haible  <bruno@clisp.org>
4561
4562         * MODULES.html.sh (posix_functions): Remove 'contents'.
4563
4564 2007-04-29  Karl Berry  <karl@gnu.org>
4565
4566         * config/srclist.txt (gendocs_template_min): new entry.
4567
4568 2007-04-29  Bruno Haible  <bruno@clisp.org>
4569
4570         Work around fpurge bug on BSD systems.
4571         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
4572         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
4573         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
4574         fpurge to rpl_fpurge if the system already has this function.
4575         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
4576         the case where the system already has this function. Correct invariants
4577         on BSD systems.
4578         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
4579         BSD systems.
4580
4581 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4582
4583         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
4584         proposed by Sven Verdoolaege.
4585
4586         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
4587         options.
4588         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
4589         (usage and help tests): Update
4590
4591 2007-04-29  Bruno Haible  <bruno@clisp.org>
4592
4593         * tests/test-fflush.c (main): Use a file of size 17, not 10.
4594         Print more information in case of failure. Disable a test on BeOS.
4595
4596 2007-04-29  Bruno Haible  <bruno@clisp.org>
4597
4598         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
4599         This helps debugging on systems on which no gdb is available.
4600
4601 2007-04-29  Bruno Haible  <bruno@clisp.org>
4602
4603         * lib/freading.h: Improve comments.
4604         * lib/fwriting.h: Likewise.
4605         * tests/test-freading.c (main): Don't check freading immediately after
4606         repositioning. Needed for glibc.
4607
4608 2007-04-29  Bruno Haible  <bruno@clisp.org>
4609
4610         * lib/freading.c (freading): Trivial simplification.
4611
4612 2007-04-28  Bruno Haible  <bruno@clisp.org>
4613
4614         * tests/test-fwriting.c (main): Also test the interaction between
4615         fflush and fwriting.
4616         * modules/fwriting-tests (Depends-on): Add fflush.
4617
4618         * tests/test-freading.c (main): Also test the interaction between
4619         fflush and freading.
4620         * modules/freading-tests (Depends-on): Add fflush.
4621
4622 2007-04-28  Bruno Haible  <bruno@clisp.org>
4623
4624         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
4625         fseeko and ftello.
4626         Suggested by Eric Blake.
4627
4628 2007-04-28  Jim Meyering  <jim@meyering.net>
4629
4630         Avoid false-negative in gl_STDINT_H's C99 conformance test.
4631         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
4632         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
4633
4634 2007-04-27  Eric Blake  <ebb9@byu.net>
4635
4636         * doc/headers/assert.texi (assert.h): Document assert module use.
4637
4638 2007-04-27  Bruno Haible  <bruno@clisp.org>
4639
4640         * doc/headers/*.texi: New files.
4641         * doc/gnulib.texi (Header File Substitutes): New chapter.
4642         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
4643         dependencies.
4644         (standards.info ,standards.html, standards.dvi): Update dependencies.
4645         (mostlyclean, clean): New targets.
4646
4647 2007-04-27  Bruno Haible  <bruno@clisp.org>
4648
4649         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
4650         * modules/sysexits (Files, Makefile.am): Update.
4651
4652         * lib/sys_socket_.h: Renamed from lib/socket_.h.
4653         * modules/sys_socket (Files, Makefile.am): Update.
4654
4655         * lib/sys_stat_.h: Renamed from lib/stat_.h.
4656         * modules/sys_stat (Files, Makefile.am): Update.
4657
4658 2007-04-27  Eric Blake  <ebb9@byu.net>
4659
4660         * lib/freading.h: Improve comments.
4661         * lib/fwriting.h: Likewise.
4662         * lib/fflush.c: Likewise.
4663
4664         Fix closein for mingw.
4665         * modules/closein-tests: Add tests for closein.
4666         * tests/test-closein.c: New file.
4667         * tests/test-closein.sh: Likewise.
4668         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
4669         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
4670
4671 2007-04-27  Bruno Haible  <bruno@clisp.org>
4672
4673         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
4674         version is < 6.
4675         * lib/math_.h [__DECC]: Likewise.
4676         * lib/stdio_.h [__DECC]: Likewise.
4677         * lib/stdlib_.h [__DECC]: Likewise.
4678         * lib/string_.h [__DECC]: Likewise.
4679         * lib/time_.h [__DECC]: Likewise.
4680         * lib/wchar_.h [__DECC]: Likewise.
4681         * lib/wctype_.h [__DECC]: Likewise.
4682
4683 2007-04-27  Bruno Haible  <bruno@clisp.org>
4684
4685         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
4686
4687 2007-04-27  Bruno Haible  <bruno@clisp.org>
4688
4689         * lib/fflush.c: Add comments.
4690         * modules/fpurge-tests (Depends-on): Add fflush.
4691         * modules/freadable-tests (Depends-on): Likewise.
4692         * modules/fwritable-tests (Depends-on): Likewise.
4693
4694 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
4695
4696         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
4697         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
4698         Report by Bruno Haible <bruno@clisp.org>.
4699
4700 2007-04-26  Eric Blake  <ebb9@byu.net>
4701
4702         Fix fflush on mingw.
4703         * modules/fflush (Depends-on): Add freading.
4704         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
4705         but unread data.
4706
4707 2007-04-26  Eric Blake  <ebb9@byu.net>
4708         and Bruno Haible  <bruno@clisp.org>
4709
4710         Implement freading and fwriting.
4711         * lib/freading.c: New file.
4712         * lib/freading.h: Likewise.
4713         * m4/freading.m4: Likewise.
4714         * modules/freading: Likewise.
4715         * modules/freading-tests: Likewise.
4716         * tests/test-freading.c: Likewise.
4717         * lib/fwriting.c: New file.
4718         * lib/fwriting.h: Likewise.
4719         * m4/fwriting.m4: Likewise.
4720         * modules/fwriting: Likewise.
4721         * modules/fwriting-tests: Likewise.
4722         * tests/test-fwriting.c: Likewise.
4723         * MODULES.html.sh (File stream based Input/Output): Mention them.
4724
4725 2007-04-26  Bruno Haible  <bruno@clisp.org>
4726
4727         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
4728         'long' when we assume it.
4729         Suggested by Eric Blake.
4730
4731 2007-04-26  Bruno Haible  <bruno@clisp.org>
4732
4733         Ensure fseeko, ftello are declared on glibc systems.
4734         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
4735         * modules/fseeko (configure.ac-early): Likewise.
4736         * modules/ftello (configure.ac-early): Likewise.
4737         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
4738         AC_FUNC_FSEEKO for this.
4739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
4740         (gl_CHECK_FSEEKO): Remove macro.
4741
4742 2007-04-26  Bruno Haible  <bruno@clisp.org>
4743
4744         * tests/test-fflush.c (main): Also check the ftell result after
4745         fflush and fseek/fseeko.
4746         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
4747         file descriptor position cache in the stream.
4748         * lib/fseeko.c (rpl_fseeko): Likewise.
4749
4750 2007-04-26  Bruno Haible  <bruno@clisp.org>
4751
4752         * modules/fflush-tests (Depends-on): Add fseeko.
4753
4754 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
4755             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4756
4757         * lib/argz_.h: ensure error_t definition is obtained in same
4758         mechanism system argz.h would have.
4759         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
4760         argz facilities are known bad.  Err on the side of caution if
4761         cross-compiling.
4762
4763 2007-04-25  Eric Blake  <ebb9@byu.net>
4764
4765         * lib/fpurge.c (includes): Use stdlib.h for free.
4766         * tests/test-fflush.c (main): Also test fflush-fseeko.
4767
4768 2007-04-25  Bruno Haible  <bruno@clisp.org>
4769
4770         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
4771         * lib/fseeko.c: New file.
4772         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
4773         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
4774         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
4775         gl_FUNC_FSEEKO.
4776         (gl_FUNC_FSEEKO): Invoke it.
4777         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
4778         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
4779         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
4780
4781 2007-04-25  Bruno Haible  <bruno@clisp.org>
4782
4783         * modules/fflush (Depends-on): Add ftello.
4784
4785 2007-04-25  Bruno Haible  <bruno@clisp.org>
4786
4787         * modules/ftello-tests: New file.
4788         * tests/test-ftello.c: New file.
4789
4790         * modules/ftello: New file.
4791         * m4/ftello.m4: New file.
4792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
4793         HAVE_FTELLO.
4794         * lib/stdio_.h (ftello): New declaration.
4795         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
4796         HAVE_FTELLO.
4797
4798 2007-04-25  Bruno Haible  <bruno@clisp.org>
4799
4800         * modules/fseeko-tests: New file.
4801         * tests/test-fseeko.c: New file.
4802
4803         * modules/fseeko: New file.
4804         * m4/fseeko.m4: New file.
4805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
4806         HAVE_FSEEKO.
4807         * lib/stdio_.h (fseeko): New declaration.
4808         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
4809         HAVE_FSEEKO.
4810
4811 2007-04-25  Bruno Haible  <bruno@clisp.org>
4812
4813         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
4814
4815 2007-04-25  Bruno Haible  <bruno@clisp.org>
4816
4817         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
4818         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
4819         * tests/test-unistd.c: Likewise.
4820         * tests/test-fcntl.c: Likewise.
4821
4822 2007-04-23  Eric Blake  <ebb9@byu.net>
4823
4824         * lib/fflush.c: Fix missing include.
4825         Reported by Bruno Haible.
4826
4827 2007-04-23  Bruno Haible  <bruno@clisp.org>
4828
4829         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
4830         Reported by Eric Blake.
4831
4832 2007-04-23  Bruno Haible  <bruno@clisp.org>
4833
4834         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
4835
4836 2007-04-23  Bruno Haible  <bruno@clisp.org>
4837
4838         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
4839
4840 2007-04-23  Bruno Haible  <bruno@clisp.org>
4841
4842         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
4843         Needed on HP-UX 11.
4844
4845 2007-04-16  Eric Blake  <ebb9@byu.net>
4846
4847         Make fflush rely on fpurge.
4848         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
4849         open coding all variants.
4850         * modules/fflush (Depends-on): Add fpurge and unistd.
4851         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
4852         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
4853
4854         Fix --with-tests compilation on cygwin.
4855         * modules/argmatch-tests (Makefile.am): List gnulib library first
4856         in LDADD.
4857         * modules/argp-tests (Makefile.am): Likewise.
4858         * modules/array-list-tests (Makefile.am): Likewise.
4859         * modules/array-oset-tests (Makefile.am): Likewise.
4860         * modules/avltree-list-tests (Makefile.am): Likewise.
4861         * modules/avltree-oset-tests (Makefile.am): Likewise.
4862         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4863         * modules/carray-list-tests (Makefile.am): Likewise.
4864         * modules/dirname-tests (Makefile.am): Likewise.
4865         * modules/frexp-tests (Makefile.am): Likewise.
4866         * modules/isnanl-tests (Makefile.am): Likewise.
4867         * modules/linked-list-tests (Makefile.am): Likewise.
4868         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4869         * modules/lock-tests (Makefile.am): Likewise.
4870         * modules/rbtree-list-tests (Makefile.am): Likewise.
4871         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4872         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4873         * modules/tls-tests (Makefile.am): Likewise.
4874         * modules/tsearch-tests (Makefile.am): Likewise.
4875         * modules/xvasprintf-tests (Makefile.am): Likewise.
4876
4877         Fix fpurge for cygwin.
4878         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
4879         value.
4880         * modules/fpurge-tests (Depends-on): Clean up trash.
4881
4882 2007-04-16  Simon Josefsson  <simon@josefsson.org>
4883
4884         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
4885
4886         * m4/autobuild.m4: Re-indent.
4887
4888 2007-04-13  Bruno Haible  <bruno@clisp.org>
4889
4890         * modules/fpurge-tests: New file.
4891         * tests/test-fpurge.c: New file.
4892
4893         * modules/fpurge: New file.
4894         * lib/fpurge.h: New file.
4895         * lib/fpurge.c: New file.
4896         * m4/fpurge.m4: New file.
4897
4898 2007-04-13  Bruno Haible  <bruno@clisp.org>
4899
4900         * modules/fbufmode-tests: New file.
4901         * tests/test-fbufmode.c: New file.
4902
4903         * modules/fbufmode: New file.
4904         * lib/fbufmode.h: New file.
4905         * lib/fbufmode.c: New file.
4906         * m4/fbufmode.m4: New file.
4907
4908 2007-04-13  Bruno Haible  <bruno@clisp.org>
4909
4910         * modules/fwritable-tests: New file.
4911         * tests/test-fwritable.c: New file.
4912
4913         * modules/fwritable: New file.
4914         * lib/fwritable.h: New file.
4915         * lib/fwritable.c: New file.
4916         * m4/fwritable.m4: New file.
4917
4918 2007-04-13  Bruno Haible  <bruno@clisp.org>
4919
4920         * modules/freadable-tests: New file.
4921         * tests/test-freadable.c: New file.
4922
4923         * modules/freadable: New file.
4924         * lib/freadable.h: New file.
4925         * lib/freadable.c: New file.
4926         * m4/freadable.m4: New file.
4927
4928 2007-04-13  Bruno Haible  <bruno@clisp.org>
4929
4930         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
4931         MOSTLYCLEANFILES.
4932
4933 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
4934
4935         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
4936         gzip bootstrap.conf to avoid dragging in i18n machinery.
4937         (gnulib_tool_option): Use it.
4938
4939 2007-04-13  Bruno Haible  <bruno@clisp.org>
4940
4941         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
4942         %F directives.
4943         * tests/test-vasprintf-posix.c (test_function): Likewise.
4944         * tests/test-snprintf-posix.h (test_function): Likewise.
4945         * tests/test-sprintf-posix.h (test_function): Likewise.
4946         * tests/test-fprintf-posix.h (test_function): Likewise.
4947         * tests/test-printf-posix.h (test_function): Likewise.
4948         * tests/test-fprintf-posix.out: Likewise.
4949
4950 2007-04-13  Bruno Haible  <bruno@clisp.org>
4951
4952         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
4953         * modules/tls-tests (configure.ac): Likewise.
4954         Reported by Arto C. Nirkko <anirkko@insel.ch>.
4955
4956 2007-04-13  Bruno Haible  <bruno@clisp.org>
4957
4958         * lib/tls.c (glthread_tls_get): Fix return type.
4959         Patch by Arto C. Nirkko <anirkko@insel.ch>.
4960
4961 2007-04-12  Eric Blake  <ebb9@byu.net>
4962
4963         * modules/gettime (Depends-on): Remove gettime.
4964         Reported by Dmitry V. Levin.
4965
4966 2007-04-12  Bruno Haible  <bruno@clisp.org>
4967
4968         * modules/fflush (Include): Mention <stdio.h>.
4969         * modules/strtoimax (Include): Mention <inttypes.h>.
4970         * modules/strtoumax (Include): Likewise.
4971
4972 2007-04-12  Eric Blake  <ebb9@byu.net>
4973
4974         * .cvsignore: New file.
4975         * .gitignore: Likewise.
4976
4977 2007-04-12  Bruno Haible  <bruno@clisp.org>
4978
4979         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
4980         not before, since $(LDADD) often contains libgnu.a.
4981         * modules/striconv-tests (test_striconv_LDADD): Likewise.
4982         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
4983         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
4984         Needed on Cygwin.
4985
4986 2007-04-12  Eric Blake  <ebb9@byu.net>
4987
4988         Work around glibc's failure to flush stdin on fclose.
4989         * lib/closein.c (close_stdin): Flush stdin before closing.
4990
4991         Work around glibc's failure to reset seekable stdin on exit.
4992         * modules/closein: New module.
4993         * lib/closein.c: New file.
4994         * lib/closein.h: Likewise.
4995         * m4/closein.m4: Likewise.
4996         * MODULES.html.sh (File stream based Input/Output): Document it.
4997
4998 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4999
5000         * gnulib-tool: Rename generated 'autobuild' script to
5001         'do-autobuild' in --create-megatestdir output.
5002
5003         * doc/gnulib.texi (Build robot for gnulib): Fix.
5004
5005 2007-04-12  Simon Josefsson  <simon@josefsson.org>
5006
5007         * modules/sysexits (Depends-on): Add absolute-header.
5008
5009 2007-04-12  Eric Blake  <ebb9@byu.net>
5010
5011         No need to preserve errno on success.
5012         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
5013         Reported by Bruno Haible.
5014
5015 2007-04-12  Simon Josefsson  <simon@josefsson.org>
5016
5017         * MODULES.html.sh (Support for maintaining and releasing
5018         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
5019
5020 2007-04-12  Simon Josefsson  <simon@josefsson.org>
5021
5022         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
5023
5024 2007-04-12  Simon Josefsson  <simon@josefsson.org>
5025
5026         * modules/autobuild: New module.
5027
5028         * m4/autobuild.m4: New file.
5029
5030 2007-04-11  Bruno Haible  <bruno@clisp.org>
5031
5032         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
5033         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
5034         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
5035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
5036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5037         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5038         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5040         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5041         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5042         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
5043         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5044         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
5046         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5047         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
5049         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5050         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
5052         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5053         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
5055         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5056         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
5058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
5059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
5060         Reported by Eric Blake.
5061
5062 2007-04-11  Bruno Haible  <bruno@clisp.org>
5063
5064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
5065
5066 2007-04-10  Bruno Haible  <bruno@clisp.org>
5067
5068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
5069         for NaN and Infinity. Needed on FreeBSD 6.1.
5070         * tests/test-vasnprintf-posix.c (test_function): Undo last change
5071         regarding results for "%010a" of Infinity and NaN.
5072         * tests/test-vasprintf-posix.c (test_function): Likewise.
5073         * tests/test-snprintf-posix.h (test_function): Likewise.
5074         * tests/test-sprintf-posix.h (test_function): Likewise.
5075         * tests/test-fprintf-posix.h (test_function): Likewise.
5076         * tests/test-printf-posix.h (test_function): Likewise.
5077         * tests/test-fprintf-posix.out: Likewise.
5078
5079 2007-04-10  Bruno Haible  <bruno@clisp.org>
5080
5081         * modules/locale-tests: New file.
5082         * tests/test-locale.c: New file.
5083
5084         * modules/locale: New file.
5085         * lib/locale_.h: New file.
5086         * m4/locale_h.m4: New file.
5087
5088 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
5089             Bruno Haible  <bruno@clisp.org>
5090
5091         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
5092         be determined, test for availability of the copysignf, copysign,
5093         copysignl functions.
5094         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
5095         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
5096         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
5097
5098 2007-04-09  Eric Blake  <ebb9@byu.net>
5099
5100         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
5101         * modules/stdio (Makefile.am): Support fflush.
5102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
5103         * modules/fflush: New file.
5104         * lib/fflush.c: Likewise.
5105         * m4/fflush.m4: Likewise.
5106         * modules/fflush-tests: New test.
5107         * tests/test-fflush.c: Likewise.
5108         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
5109
5110 2007-04-06  Bruno Haible  <bruno@clisp.org>
5111
5112         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
5113         (VASNPRINTF): Use signbit for faster determination whether to print a
5114         minus sign.
5115         * modules/vasnprintf (Files): Remove lib/float+.h.
5116         * modules/fprintf-posix (Depends-on): Add signbit.
5117         * modules/snprintf-posix (Depends-on): Likewise.
5118         * modules/sprintf-posix (Depends-on): Likewise.
5119         * modules/vasnprintf-posix (Depends-on): Likewise.
5120         * modules/vasprintf-posix (Depends-on): Likewise.
5121         * modules/vfprintf-posix (Depends-on): Likewise.
5122         * modules/vsnprintf-posix (Depends-on): Likewise.
5123         * modules/vsprintf-posix (Depends-on): Likewise.
5124
5125 2007-04-06  Bruno Haible  <bruno@clisp.org>
5126
5127         * tests/test-frexp.c (main): Test also the sign bit of zero results.
5128         * tests/test-frexpl.c (main): Likewise.
5129         * tests/test-ldexpl.c (main): Likewise.
5130         * modules/frexp-tests (Depends-on): Add signbit.
5131         * modules/frexpl-tests (Depdends-on): Likewise.
5132         * modules/ldexpl-tests (Depdends-on): Likewise.
5133
5134 2007-04-06  Bruno Haible  <bruno@clisp.org>
5135
5136         * modules/signbit-tests: New file.
5137         * tests/test-signbit.c: New file.
5138
5139         * modules/signbit: New file.
5140         * lib/signbitf.c: New file.
5141         * lib/signbitd.c: New file.
5142         * lib/signbitl.c: New file.
5143         * m4/signbit.m4: New file.
5144         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
5145         (signbit): New macro.
5146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
5147         REPLACE_SIGNBIT.
5148         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
5149         REPLACE_FREXPL into math.h.
5150
5151 2007-04-06  Bruno Haible  <bruno@clisp.org>
5152
5153         * modules/isnanf-nolibm-tests: New file.
5154         * tests/test-isnanf.c: New file.
5155
5156         * modules/isnanf-nolibm: New file.
5157         * lib/isnanf.h: New file.
5158         * lib/isnanf.c: New file.
5159         * lib/isnan.c: Consider the USE_FLOAT macro.
5160         * m4/isnanf.m4: New file.
5161
5162 2007-04-06  Bruno Haible  <bruno@clisp.org>
5163
5164         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
5165         (Link): New section.
5166
5167         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
5168
5169 2007-04-06  Bruno Haible  <bruno@clisp.org>
5170
5171         Assume the 'long double' type.
5172         * m4/longdouble.m4: Remove file.
5173         * config/srclist.txt: Don't mention longdouble.m4.
5174         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
5175         * lib/float+.h: Likewise.
5176         * lib/frexp.c: Likewise.
5177         * lib/printf-args.h: Likewise.
5178         * lib/printf-args.c: Likewise.
5179         * lib/printf-frexp.c: Likewise.
5180         * lib/printf-parse.c: Likewise.
5181         * lib/vasnprintf.c: Likewise.
5182         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
5183         * m4/intl.m4: Likewise.
5184         * m4/isnanl.m4: Likewise.
5185         * m4/printf.m4: Likewise.
5186         * m4/printf-frexpl.m4: Likewise.
5187         * m4/vasnprintf.m4: Likewise.
5188         * modules/allocsa (Files): Remove m4/longdouble.m4.
5189         * modules/gettext (Files): Likewise.
5190         * modules/relocatable-prog-wrapper (Files): Likewise.
5191         * modules/vasnprintf (Files): Likewise.
5192         * modules/isnanl (Files): Likewise.
5193         (Include): Simplify.
5194         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
5195         (Include): Simplify.
5196         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
5197         (Include): Simplify.
5198         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
5199         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5200         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
5201         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5202         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
5203         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5204         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
5205         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5206         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
5207         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5208         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
5209         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
5210         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
5211         * tests/test-isnanl.c: Likewise.
5212         * tests/test-snprintf-posix.h: Likewise.
5213         * tests/test-sprintf-posix.h: Likewise.
5214         * tests/test-vasnprintf-posix.c: Likewise.
5215         * tests/test-vasnprintf-posix2.c: Likewise.
5216         * tests/test-vasprintf-posix.c: Likewise.
5217
5218 2007-04-06  Bruno Haible  <bruno@clisp.org>
5219
5220         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
5221         * lib/math_.h [__DECC]: Include the overridden include file through
5222         #include_next, outside the double-inclusion guard.
5223         * lib/stdio_.h [__DECC]: Likewise.
5224         * lib/stdlib_.h [__DECC]: Likewise.
5225         * lib/string_.h [__DECC]: Likewise.
5226         * lib/time_.h [__DECC]: Likewise.
5227         * lib/wchar_.h [__DECC]: Likewise.
5228         * lib/wctype_.h [__DECC]: Likewise.
5229         * lib/inttypes_.h [__DECC]: Likewise.
5230         Reported by Albert Chin <china@thewrittenword.com> in
5231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
5232
5233 2007-04-04  Eric Blake  <ebb9@byu.net>
5234
5235         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
5236         1.5.x.
5237
5238 2007-04-04  Bruno Haible  <bruno@clisp.org>
5239
5240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
5241         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
5242
5243 2007-04-04  Bruno Haible  <bruno@clisp.org>
5244
5245         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
5246         results for "%010a" of Infinity and NaN.
5247         * tests/test-vasprintf-posix.c (test_function): Likewise.
5248         * tests/test-snprintf-posix.h (test_function): Likewise.
5249         * tests/test-sprintf-posix.h (test_function): Likewise.
5250         * tests/test-fprintf-posix.h (test_function): Remove these tests.
5251         * tests/test-printf-posix.h (test_function): Likewise.
5252         * tests/test-fprintf-posix.out: Update.
5253         Needed for FreeBSD 6.1.
5254
5255 2007-04-04  Bruno Haible  <bruno@clisp.org>
5256
5257         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
5258         directly used by the gnulib modules nor by gnulib-tool.
5259
5260 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         * DEPENDENCIES: Give overall description of version dependency
5263         desirability.  Use more-typical names for apps.
5264         Add shell, coreutils, diffutils, grep, tar, gzip.
5265
5266 2007-04-04  Simon Josefsson  <simon@josefsson.org>
5267
5268         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
5269
5270 2007-04-04  Karl Berry  <karl@gnu.org>
5271
5272         * MODULES.html.sh (func_module): missing '.
5273
5274 2007-04-03  Bruno Haible  <bruno@clisp.org>
5275
5276         * modules/argmatch-tests (Makefile.am): New variable
5277         test_argmatch_LDADD.
5278         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
5279         * modules/array-list-tests (Makefile.am): New variable
5280         test_array_list_LDADD.
5281         * modules/array-oset-tests (Makefile.am): New variable
5282         test_array_oset_LDADD.
5283         * modules/avltree-list-tests (Makefile.am): New variable
5284         test_avltree_list_LDADD.
5285         * modules/avltree-oset-tests (Makefile.am): New variable
5286         test_avltree_oset_LDADD.
5287         * modules/avltreehash-list-tests (Makefile.am): New variable
5288         test_avltreehash_list_LDADD.
5289         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
5290         test_canonicalize_lgpl_LDADD.
5291         * modules/carray-list-tests (Makefile.am): New variable
5292         test_carray_list_LDADD.
5293         * modules/dirname-tests (Makefile.am): New variable
5294         test_dirname_LDADD.
5295         * modules/linked-list-tests (Makefile.am): New variable
5296         test_linked_list_LDADD.
5297         * modules/linkedhash-list-tests (Makefile.am): New variable
5298         test_linkedhash_list_LDADD.
5299         * modules/rbtree-list-tests (Makefile.am): New variable
5300         test_rbtree_list_LDADD.
5301         * modules/rbtree-oset-tests (Makefile.am): New variable
5302         test_rbtree_oset_LDADD.
5303         * modules/rbtreehash-list-tests (Makefile.am): New variable
5304         test_rbtreehash_list_LDADD.
5305         * modules/xvasprintf-tests (Makefile.am): New variable
5306         test_xvasprintf_LDADD.
5307         Reported by Eric Blake.
5308
5309 2007-04-03  Eric Blake  <ebb9@byu.net>
5310
5311         * DEPENDENCIES: Weaken m4 requirements.
5312
5313 2007-04-03  Bruno Haible  <bruno@clisp.org>
5314
5315         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
5316         * modules/isnanl-tests (configure.ac): Likewise.
5317
5318 2007-04-03  Ben Pfaff  <blp@gnu.org>
5319
5320         * modules/iconv_open: Add $(srcdir)/ to source directory
5321         references in Makefile fragments that call gperf, to fix VPATH
5322         builds.
5323
5324 2007-04-03  Bruno Haible  <bruno@clisp.org>
5325
5326         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
5327         * lib/ldexpl.c: Undo last change.
5328
5329 2007-04-03  Bruno Haible  <bruno@clisp.org>
5330
5331         * modules/printf-frexpl (Depends-on): Undo last change.
5332         (Files): Add m4/ldexpl.m4.
5333
5334 2007-04-03  Bruno Haible  <bruno@clisp.org>
5335
5336         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
5337         * modules/isnanl (Link): New section.
5338
5339         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
5340         * modules/frexp (Link): New section.
5341
5342         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
5343         * modules/frexpl (Link): New section.
5344
5345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
5346         * modules/ldexpl (Link): New section.
5347
5348 2007-04-03  Bruno Haible  <bruno@clisp.org>
5349
5350         * modules/TEMPLATE-EXTENDED: New file.
5351         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
5352
5353 2007-04-03  Bruno Haible  <bruno@clisp.org>
5354
5355         * DEPENDENCIES: New file.
5356         Suggested by Simon Josefsson.
5357
5358 2007-04-03  Bruno Haible  <bruno@clisp.org>
5359
5360         * doc/gnulib.texi: Escape @.
5361
5362 2007-04-03  James Youngman  <jay@gnu.org>
5363         and Paul Eggert  <eggert@cs.ucla.edu>
5364
5365         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
5366         birthtime on all systems that have birthtime, not just those which
5367         use st_birthtimensec rather than st_birthtim.  Putting zero in
5368         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
5369         that the birth time is not available for files on an NFS mount.
5370
5371 2007-04-03  Simon Josefsson  <simon@josefsson.org>
5372
5373         * modules/memxor: Move back from crypto/, suggested by Bruno.
5374         * modules/crypto/hmac-sha1: Fix memxor dependency.
5375
5376         * modules/crypto/gc: Moved from ../.
5377
5378 2007-04-02  Eric Blake  <ebb9@byu.net>
5379
5380         * lib/ldexpl.c (includes): Avoid libm.
5381
5382         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
5383
5384 2007-04-02  Bruno Haible  <bruno@clisp.org>
5385
5386         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
5387         on IRIX.
5388
5389 2007-04-02  Bruno Haible  <bruno@clisp.org>
5390
5391         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
5392         x86 or x86_64 platforms running MacOS X.
5393         Reported by Ryan Schmidt <@ryandesign.com>.
5394
5395 2007-04-02  Bruno Haible  <bruno@clisp.org>
5396
5397         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
5398         i386.
5399
5400 2007-04-01  Simon Josefsson  <simon@josefsson.org>
5401
5402         * modules/crypto/arcfour: Moved from ../.
5403         * modules/crypto/arcfour-tests: Moved from ../.
5404         * modules/crypto/arctwo: Moved from ../.
5405         * modules/crypto/arctwo-tests: Moved from ../.
5406         * modules/crypto/des: Moved from ../.
5407         * modules/crypto/des-tests: Moved from ../.
5408         * modules/crypto/gc-arcfour: Moved from ../.
5409         * modules/crypto/gc-arcfour-tests: Moved from ../.
5410         * modules/crypto/gc-arctwo: Moved from ../.
5411         * modules/crypto/gc-arctwo-tests: Moved from ../.
5412         * modules/crypto/gc-des: Moved from ../.
5413         * modules/crypto/gc-des-tests: Moved from ../.
5414         * modules/crypto/gc-hmac-md5: Moved from ../.
5415         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
5416         * modules/crypto/gc-hmac-sha1: Moved from ../.
5417         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
5418         * modules/crypto/gc-md2: Moved from ../.
5419         * modules/crypto/gc-md2-tests: Moved from ../.
5420         * modules/crypto/gc-md4: Moved from ../.
5421         * modules/crypto/gc-md4-tests: Moved from ../.
5422         * modules/crypto/gc-md5: Moved from ../.
5423         * modules/crypto/gc-md5-tests: Moved from ../.
5424         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
5425         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
5426         * modules/crypto/gc-random: Moved from ../.
5427         * modules/crypto/gc-rijndael: Moved from ../.
5428         * modules/crypto/gc-rijndael-tests: Moved from ../.
5429         * modules/crypto/gc-sha1: Moved from ../.
5430         * modules/crypto/gc-sha1-tests: Moved from ../.
5431         * modules/crypto/gc-tests: Moved from ../.
5432         * modules/crypto/hmac-md5: Moved from ../.
5433         * modules/crypto/hmac-md5-tests: Moved from ../.
5434         * modules/crypto/hmac-sha1: Moved from ../.
5435         * modules/crypto/hmac-sha1-tests: Moved from ../.
5436         * modules/crypto/md2: Moved from ../.
5437         * modules/crypto/md2-tests: Moved from ../.
5438         * modules/crypto/md4: Moved from ../.
5439         * modules/crypto/md4-tests: Moved from ../.
5440         * modules/crypto/md5: Moved from ../.
5441         * modules/crypto/md5-tests: Moved from ../.
5442         * modules/crypto/memxor: Moved from ../.
5443         * modules/crypto/rijndael: Moved from ../.
5444         * modules/crypto/rijndael-tests: Moved from ../.
5445         * modules/crypto/sha1: Moved from ../.
5446
5447 2007-03-30  James Youngman  <jay@gnu.org>
5448
5449         * tests/test-stat-time.c (prepare_test): use chmod() rather than
5450         rename() to change the ctime of a file (because ctime is unaffected
5451         by rename on jfs2 on AIX 5.1).
5452         (main): Start by doing cleanup, in case a previous run failed leaving
5453         test files behind.
5454
5455 2007-03-31  Bruno Haible  <bruno@clisp.org>
5456
5457         Support old proprietary implementations of iconv.
5458         * modules/iconv_open: New file.
5459         * lib/iconv_.h: New file.
5460         * m4/iconv_h.m4: New file.
5461         * lib/iconv_open.c: New file.
5462         * lib/iconv_open-aix.gperf: New file.
5463         * lib/iconv_open-hpux.gperf: New file.
5464         * lib/iconv_open-irix.gperf: New file.
5465         * lib/iconv_open-osf.gperf: New file.
5466         * m4/iconv_open.m4: New file.
5467         * modules/linebreak (Depends-on): Add iconv_open.
5468         * modules/striconv (Depends-on): Likewise.
5469         * modules/striconveh (Depends-on): Likewise.
5470         * modules/unicodeio (Depends-on): Likewise.
5471         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
5472         (iconv_t)(-1).
5473         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
5474         conversion if cd is (iconv_t)(-1).
5475         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
5476         is not possible.
5477
5478 2007-03-31  Bruno Haible  <bruno@clisp.org>
5479
5480         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
5481         work on Solaris either. Protect also second use of "autodetect_jp".
5482
5483 2007-03-31  Bruno Haible  <bruno@clisp.org>
5484
5485         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
5486         the function is not present.
5487
5488 2007-03-31  Bruno Haible  <bruno@clisp.org>
5489
5490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
5491         the function is not present.
5492
5493 2007-03-31  Bruno Haible  <bruno@clisp.org>
5494
5495         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
5496         a bug in HP-UX iconv_open().
5497
5498 2007-03-31  Bruno Haible  <bruno@clisp.org>
5499
5500         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
5501         (Mathematics <math.h>): New section, add fpieee.
5502         (Input/output <stdio.h>): Add fseterr.
5503         (Mathematics <math.h>): New section, add printf-frexp.
5504         (Container data structures): Add sublist.
5505         (Core language properties): Add fpucw, inline.
5506         (Functions for greatest-width integer types <inttypes.h>): Add
5507         imaxabs, imaxdiv, inttypes.
5508         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
5509         isnanl-nolibm, ldexp.
5510         (Mathematics <math.h>): New section, add printf-frexpl.
5511         (Support for systems lacking POSIX:2001): Add fprintf-posix,
5512         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
5513         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
5514         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
5515         (Unicode string functions): Add unistr/u*-mbtoucr.
5516         (Java): Add javacomp-script, javaexec-script.
5517         (C#): Add csharpcomp-script, csharpexec-script.
5518         (Support for building libraries and executables): Add havelib,
5519         relocatable-*.
5520         (Support for maintaining and releasing projects): Renamed from
5521         'Support for maintaining and release projects'. Add announce-gen.
5522
5523 2007-03-31  Bruno Haible  <bruno@clisp.org>
5524
5525         * README: Talk primarily about git.
5526         (git and CVS): Renamed from CVS.
5527         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
5528         gnulib is available through git.
5529         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
5530
5531 2007-03-30  Bruno Haible  <bruno@clisp.org>
5532
5533         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
5534         * lib/poll_.h: Likewise.
5535         * lib/stat_.h: Likewise.
5536         * lib/sys_time_.h: Likewise.
5537         * lib/sysexit_.h: Likewise.
5538         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
5539         * lib/stdbool_.h: Likewise.
5540         * lib/byteswap_.h: Add double-inclusion guard.
5541
5542 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
5543
5544         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
5545
5546 2007-03-30  Karl Berry  <karl@gnu.org>
5547
5548         * config/srclist-update: double space after USA in the license
5549         substitution, since that's how it's usually (?) written.
5550
5551 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5552
5553         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
5554         reported by Bruno Haible.
5555
5556 2007-03-29  Bruno Haible  <bruno@clisp.org>
5557
5558         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
5559         a bug in AIX iconv().
5560
5561 2007-03-29  Bruno Haible  <bruno@clisp.org>
5562
5563         * modules/ldexpl-tests: New file.
5564         * tests/test-ldexpl.c: New file.
5565
5566 2007-03-29  Bruno Haible  <bruno@clisp.org>
5567
5568         * lib/ldexpl.c: Include fpucw.h.
5569         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
5570         multiplication.
5571         * modules/ldexpl (Depends-on): Add fpucw.
5572
5573 2007-03-29  Bruno Haible  <bruno@clisp.org>
5574
5575         * modules/ldexpl: New file.
5576         * m4/ldexpl.m4: New file.
5577         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
5578         set.
5579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
5580         REPLACE_LDEXPL.
5581         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
5582         REPLACE_LDEXPL.
5583         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
5584         gl_FUNC_LDEXPL_WORKS.
5585         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
5586         * modules/mathl (Files): Remove lib/ldexpl.c.
5587         (Depends-on): Add ldexpl.
5588
5589 2007-03-29  Bruno Haible  <bruno@clisp.org>
5590
5591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
5592
5593 2007-03-29  Bruno Haible  <bruno@clisp.org>
5594
5595         * tests/test-striconveh.c (main): Don't assume that a direct conversion
5596         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
5597         and possibly also HP-UX.
5598         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
5599         work on AIX, IRIX, HP-UX, OSF/1.
5600         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5601         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5602         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5603         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5604         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
5605         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5606
5607 2007-03-29  Bruno Haible  <bruno@clisp.org>
5608
5609         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
5610
5611 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5612
5613         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
5614         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
5615
5616 2007-03-29  Eric Blake  <ebb9@byu.net>
5617
5618         * lib/acl-internal.h: Remove redundant include.
5619         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
5620         Cygwin when a file is locked.
5621
5622 2007-03-29  Bruno Haible  <bruno@clisp.org>
5623
5624         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
5625         file.
5626         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
5627
5628 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
5629
5630         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
5631         try to remove a parent directory if the child couldn't be removed
5632         (except for the first rmdir, which could fail because the child
5633         doesn't exist).  Problem reported by Jeff Blaine in
5634         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
5635
5636 2007-03-28  Bruno Haible  <bruno@clisp.org>
5637
5638         * lib/striconveh.c (utf8conv_carefully): New function.
5639         (mem_cd_iconveh_internal): Invoke it.
5640
5641 2007-03-28  Bruno Haible  <bruno@clisp.org>
5642
5643         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
5644         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
5645         input.
5646         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
5647         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
5648         unistr/u8-uctomb.
5649
5650 2007-03-28  Bruno Haible  <bruno@clisp.org>
5651
5652         * modules/unistr/u8-mbtoucr: New file.
5653         * lib/unistr/u8-mbtoucr.c: New file.
5654         * modules/unistr/u16-mbtoucr: New file.
5655         * lib/unistr/u16-mbtoucr.c: New file.
5656         * modules/unistr/u16-mbtoucr: New file.
5657         * lib/unistr/u16-mbtoucr.c: New file.
5658         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
5659
5660 2007-03-27  Simon Josefsson  <simon@josefsson.org>
5661             Bruno Haible  <bruno@clisp.org>
5662
5663         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
5664         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
5665         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
5666
5667         * m4/stdio_h.m4: Add stubs for vasprintf too.
5668
5669         * modules/stdio: Support vasprintf in sed command.
5670
5671         * modules/vasprintf: Depend on stdio for prototypes.  Remove
5672         vasprintf.h.  Add stdio module indicator.
5673
5674         * lib/stdio_.h: Declare asprintf and vasprintf, based on
5675         vasprintf.h.
5676
5677         * lib/vasprintf.h: File removed.
5678
5679         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
5680         * lib/vasprintf.c: Ditto.
5681         * lib/xvasprintf.c: Ditto.
5682         * tests/test-vasprintf-posix.c: Ditto.
5683         * tests/test-vasprintf.c: Ditto.
5684
5685 2007-03-27  Bruno Haible  <bruno@clisp.org>
5686
5687         Make vasnprintf multithread-safe.
5688         * lib/vasnprintf.c (decimal_point_char): New function.
5689         (VASNPRINTF): Use it.
5690         Suggested by Simon Josefsson.
5691
5692 2007-03-27  Eric Blake  <ebb9@byu.net>
5693
5694         Support sub-second birthtime on cygwin.
5695         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
5696         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
5697         (get_stat_birthtime): Also work with st_birthtim.
5698
5699 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
5700
5701         * lib/stat-time.h (USE_BIRTHTIME): Remove.
5702         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
5703         (get_stat_birthtime_ns): Do not try to use "spare" fields.
5704         (get_stat_birthtime_ns): Simplify compile-time tests.
5705         (get_stat_birthtime): Change the API to look like
5706         get_stat_mtime etc., except return a negative tv_nsec on error.
5707         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
5708         Don't check for "spare" fields.
5709         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
5710         or for struct stat.st_birthtime, as these tests aren't used.
5711         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
5712
5713 2007-03-27  Bruno Haible  <bruno@clisp.org>
5714
5715         * lib/stat-time.h: Include <sys/stat.h>.
5716
5717 2007-03-27  James Youngman  <jay@gnu.org>
5718
5719         * lib/stat-time.h (get_stat_birthtime): New function for
5720           retrieving st_birthtime as provided by UFS2 (hence *BSD).
5721         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
5722           and its variants.
5723         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
5724         * modules/stat-time-test: New file.
5725         * tests/test-stat-time.c: New test, devised by Bruno Haible.
5726
5727 2007-03-26  Bruno Haible  <bruno@clisp.org>
5728
5729         Better support of signalling NaNs.
5730         * lib/atanl.c: Include isnanl.h.
5731         (atanl): Perform test for NaN at the beginning of the function and
5732         through a call to isnanl.
5733         * lib/cosl.c: Include isnanl.h.
5734         (cosl): Perform test for NaN at the beginning of the function and
5735         through a call to isnanl.
5736         * lib/ldexpl.c: Include isnanl.h.
5737         (ldexpl): Perform test for NaN through a call to isnanl.
5738         * lib/logl.c: Include isnanl.h.
5739         (logl): Perform test for NaN at the beginning of the function and
5740         through a call to isnanl.
5741         * lib/sinl.c: Include isnanl.h.
5742         (sinl): Perform test for NaN at the beginning of the function and
5743         through a call to isnanl.
5744         * lib/sqrtl.c: Include isnanl.h.
5745         (sqrtl): Perform test for NaN at the beginning of the function and
5746         through a call to isnanl.
5747         * lib/tanl.c: Include isnanl.h.
5748         (tanl): Perform test for NaN at the beginning of the function and
5749         through a call to isnanl.
5750         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
5751         * modules/mathl (Depends-on): Add isnanl.
5752
5753 2007-03-26  Eric Blake  <ebb9@byu.net>
5754
5755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
5756         regression in logic sense of previous patch.
5757
5758 2007-03-26  Bruno Haible  <bruno@clisp.org>
5759
5760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
5761         unportable shell command "if ! ...".
5762         Reported by Ralf Wildenhues.
5763
5764 2007-03-25  Bruno Haible  <bruno@clisp.org>
5765
5766         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
5767         <sysexits.h> file, and only add EX_CONFIG.
5768         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
5769         absolute file name and whether it is sufficient. Substitute also
5770         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
5771         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
5772         ABSOLUTE_SYSEXITS_H into sysexits.h.
5773
5774 2007-03-25  Bruno Haible  <bruno@clisp.org>
5775
5776         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
5777         hints is NULL.
5778
5779 2007-03-25  Bruno Haible  <bruno@clisp.org>
5780
5781         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
5782         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
5783
5784 2007-03-25  Bruno Haible  <bruno@clisp.org>
5785
5786         * lib/vasnprintf.c: Include langinfo.h.
5787         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
5788         multithread-safe.
5789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
5790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
5791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
5797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5798         Reported by Simon Josefsson.
5799
5800 2007-03-25  Bruno Haible  <bruno@clisp.org>
5801
5802         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
5803         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
5804         * modules/vasnprintf (Depends-on): Add stdint.
5805
5806 2007-03-25  Bruno Haible  <bruno@clisp.org>
5807
5808         * modules/fpieee: New file.
5809         * m4/fpieee.m4: New file.
5810         * modules/isnan-nolibm (Depends-on): Add fpieee.
5811         * modules/isnanl-nolibm (Depends-on): Add fpieee.
5812         * modules/isnanl (Depends-on): Add fpieee.
5813
5814 2007-03-25  Bruno Haible  <bruno@clisp.org>
5815
5816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
5817
5818 2007-03-25  Bruno Haible  <bruno@clisp.org>
5819
5820         Avoid test failures on IRIX 6.5.
5821         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
5822         (main): Use it.
5823         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
5824         macros.
5825         (main): Use them.
5826
5827 2007-03-25  Bruno Haible  <bruno@clisp.org>
5828
5829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
5830         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
5831         exists but doesn't work.
5832         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
5833         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
5834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
5835         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
5836
5837 2007-03-25  Bruno Haible  <bruno@clisp.org>
5838
5839         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
5840         returns inf. Needed on IRIX 6.5.
5841
5842 2007-03-25  Bruno Haible  <bruno@clisp.org>
5843
5844         * tests/test-frexpl.c: Include isnanl-nolibm.h.
5845         (main): Use isnanl instead of x != x idiom.
5846         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
5847
5848         * tests/test-frexp.c: Include isnan.h.
5849         (main): Use isnan instead of x != x idiom.
5850         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
5851
5852 2007-03-25  Bruno Haible  <bruno@clisp.org>
5853
5854         * tests/test-frexp.c (NaN): New function/macro.
5855         (main): Use it instead of 0.0 / 0.0.
5856         * tests/test-isnan.c (NaN): New function/macro.
5857         (main): Use it instead of 0.0 / 0.0.
5858         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
5859         (test_function): Use it instead of 0.0 / 0.0.
5860         * tests/test-vasprintf-posix.c (NaN): New function/macro.
5861         (test_function): Use it instead of 0.0 / 0.0.
5862         * tests/test-snprintf-posix.h (NaN): New function/macro.
5863         (test_function): Use it instead of 0.0 / 0.0.
5864         * tests/test-sprintf-posix.h (NaN): New function/macro.
5865         (test_function): Use it instead of 0.0 / 0.0.
5866         * tests/test-fprintf-posix.h (NaN): New function/macro.
5867         (test_function): Use it instead of 0.0 / 0.0.
5868         * tests/test-printf-posix.h (NaN): New function/macro.
5869         (test_function): Use it instead of 0.0 / 0.0.
5870
5871         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
5872
5873 2007-03-25  Bruno Haible  <bruno@clisp.org>
5874
5875         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
5876
5877 2007-03-25  Bruno Haible  <bruno@clisp.org>
5878
5879         * lib/regexec.c (merge_state_with_log): Make static.
5880
5881 2007-03-25  Bruno Haible  <bruno@clisp.org>
5882
5883         * lib/trigl.c (kernel_rem_pio2): Make static.
5884
5885 2007-03-25  Bruno Haible  <bruno@clisp.org>
5886
5887         * lib/sincosl.c (sincosl_table): Make static.
5888
5889 2007-03-25  Bruno Haible  <bruno@clisp.org>
5890
5891         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
5892         if the compiler does not support C99.
5893
5894 2007-03-25  Bruno Haible  <bruno@clisp.org>
5895
5896         * modules/time (Makefile.am): Ensure all rule action lines start with a
5897         tab.
5898
5899 2007-03-24  Bruno Haible  <bruno@clisp.org>
5900
5901         * modules/tsearch-tests: New file.
5902         * tests/test-tsearch.sh: New file.
5903         * tests/test-tsearch.c: New file, mostly copied from glibc.
5904
5905         * modules/search-tests: New file.
5906         * tests/test-search.c: New file.
5907
5908         * modules/search: New file.
5909         * lib/search_.h: New file, incorporating lib/tsearch.h.
5910         * m4/search_h.m4: New file.
5911         * lib/tsearch.h: Remove file.
5912         * lib/tsearch.c: Include search.h instead of tsearch.h.
5913         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
5914         HAVE_TSEARCH.
5915         * modules/tsearch (Files): Remove lib/tsearch.h.
5916         (Depends-on): Add search.
5917         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
5918         (Include): Change tsearch.h into search.h.
5919
5920 2007-03-24  Bruno Haible  <bruno@clisp.org>
5921
5922         * modules/fpucw: New file.
5923         * lib/fpucw.h: New file.
5924         * lib/frexp.c: Include fpucw.h.
5925         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
5926         (FUNC): Use them.
5927         * lib/printf-frexp.c: Include fpucw.h.
5928         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
5929         (FUNC): Use them.
5930         * lib/vasnprintf.c: Include fpucw.h.
5931         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
5932         'long double' calculations.
5933         * tests/test-frexpl.c: Include fpucw.h.
5934         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
5935         * tests/test-printf-frexpl.c: Include fpucw.h.
5936         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
5937         * modules/frexpl (Depends-on): Add fpucw.
5938         * modules/printf-frexpl (Depends-on): Likewise.
5939         * modules/fprintf-posix (Depends-on): Likewise.
5940         * modules/snprintf-posix (Depends-on): Likewise.
5941         * modules/sprintf-posix (Depends-on): Likewise.
5942         * modules/vasnprintf-posix (Depends-on): Likewise.
5943         * modules/vasprintf-posix (Depends-on): Likewise.
5944         * modules/vfprintf-posix (Depends-on): Likewise.
5945         * modules/vsnprintf-posix (Depends-on): Likewise.
5946         * modules/vsprintf-posix (Depends-on): Likewise.
5947         * modules/frexpl-tests (Depends-on): Likewise.
5948         * modules/printf-frexpl-tests (Depends-on): Likewise.
5949
5950 2007-03-24  Bruno Haible  <bruno@clisp.org>
5951
5952         * lib/float+.h: New file.
5953         * lib/isnan.c: Include float+.h.
5954         (SIZE): New macro.
5955         (FUNC): Compare only SIZE bytes of the value.
5956         * lib/vasnprintf.c: Include float+.h.
5957         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
5958         SIZEOF_LDBL or SIZEOF_DBL bytes.
5959         * modules/isnan-nolibm (Files): Add lib/float+.h.
5960         * modules/isnanl-nolibm (Files): Add lib/float+.h.
5961         * modules/isnanl (Files): Add lib/float+.h.
5962         * modules/vasnprintf (Files): Add lib/float+.h.
5963
5964 2007-03-24  Bruno Haible  <bruno@clisp.org>
5965
5966         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
5967         include isnanl-nolibm.h.
5968
5969 2007-03-24  Bruno Haible  <bruno@clisp.org>
5970
5971         * tests/test-read-file.c (main): Don't produce spurious output for
5972         expected situations. Make the test fail if it encountered unexpected
5973         results.
5974
5975 2007-03-24  Bruno Haible  <bruno@clisp.org>
5976
5977         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
5978         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
5979
5980 2007-03-24  Bruno Haible  <bruno@clisp.org>
5981
5982         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
5983
5984 2007-03-24  Bruno Haible  <bruno@clisp.org>
5985
5986         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
5987         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
5988
5989         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
5990         * modules/utf8-ucs4: Turn into a symbolic link to module
5991         unistr/u8-mbtouc.
5992
5993         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
5994         utf8-ucs4-unsafe.
5995         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
5996         unistr/u8-mbtouc-unsafe.
5997
5998         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
5999         * modules/utf16-ucs4: Turn into a symbolic link to module
6000         unistr/u16-mbtouc.
6001
6002         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
6003         utf16-ucs4-unsafe.
6004         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
6005         unistr/u16-mbtouc-unsafe.
6006
6007         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
6008         * modules/ucs4-utf8: Turn into a symbolic link to module
6009         unistr/u8-ubtomb.
6010
6011         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
6012         * modules/ucs4-utf16: Turn into a symbolic link to module
6013         unistr/u16-ubtomb.
6014
6015 2007-03-24  Bruno Haible  <bruno@clisp.org>
6016
6017         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
6018         Enable the function only if HAVE_INLINE.
6019         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
6020         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
6021         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
6022         Enable the function only if HAVE_INLINE.
6023         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
6024         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
6025         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
6026         Enable the function only if HAVE_INLINE.
6027         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
6028         Enable the function only if HAVE_INLINE.
6029         * modules/utf8-ucs4: Update.
6030         * modules/utf8-ucs4-unsafe: Update.
6031         * modules/utf16-ucs4: Update.
6032         * modules/utf16-ucs4-unsafe: Update.
6033         * modules/ucs4-utf8: Update.
6034         * modules/ucs4-utf16: Update.
6035
6036 2007-03-24  Bruno Haible  <bruno@clisp.org>
6037
6038         * lib/utf8-ucs4.h: Remove file.
6039         * lib/utf8-ucs4-unsafe.h: Remove file.
6040         * lib/utf16-ucs4.h: Remove file.
6041         * lib/utf16-ucs4-unsafe.h: Remove file.
6042         * lib/ucs4-utf8.h: Remove file.
6043         * lib/ucs4-utf16.h: Remove file.
6044         * lib/unistr.h: Include their previous contents.
6045         * m4/utf-ucs4.m4: Remove file.
6046         * m4/ucs4-utf.m4: Remove file.
6047         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
6048         (Depends-on): Add unistr/base.
6049         (configure.ac): Remove gl_UTF_UCS4.
6050         (Makefile.am): Update.
6051         (Include): Change to unistr.h.
6052         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
6053         (Depends-on): Add unistr/base.
6054         (configure.ac): Remove gl_UTF_UCS4.
6055         (Makefile.am): Update.
6056         (Include): Change to unistr.h.
6057         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
6058         (Depends-on): Add unistr/base.
6059         (configure.ac): Remove gl_UTF_UCS4.
6060         (Makefile.am): Update.
6061         (Include): Change to unistr.h.
6062         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
6063         (Depends-on): Add unistr/base.
6064         (configure.ac): Remove gl_UTF_UCS4.
6065         (Makefile.am): Update.
6066         (Include): Change to unistr.h.
6067         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
6068         (Depends-on): Add unistr/base.
6069         (configure.ac): Remove gl_UCS4_UTF.
6070         (Makefile.am): Update.
6071         (Include): Change to unistr.h.
6072         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
6073         (Depends-on): Add unistr/base.
6074         (configure.ac): Remove gl_UCS4_UTF.
6075         (Makefile.am): Update.
6076         (Include): Change to unistr.h.
6077         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
6078         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
6079         utf8-ucs4-unsafe.h.
6080         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
6081         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
6082         utf16-ucs4-unsafe.h.
6083         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
6084         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
6085         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
6086         * lib/unistr/u8-strchr.c: Likewise.
6087         * lib/unistr/u8-strrchr.c: Likewise.
6088         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
6089         * lib/unistr/u16-strchr.c: Likewise.
6090         * lib/unistr/u16-strrchr.c: Likewise.
6091         * lib/striconveh.c: Update.
6092         * lib/linebreak.c: Update.
6093
6094 2007-03-24  Bruno Haible  <bruno@clisp.org>
6095
6096         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
6097         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
6098
6099 2007-03-22  Bruno Haible  <bruno@clisp.org>
6100
6101         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
6102
6103 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
6104
6105         * MODULES.html.sh (File system functions): New module write-any-file.
6106         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
6107         * m4/write-any-file.m4: New files.
6108
6109 2007-03-23  Eric Blake  <ebb9@byu.net>
6110
6111         * gnulib-tool: Rearrange space-tab sequences, since some editors
6112         like to eat them.
6113
6114 2007-03-23  Eric Blake  <ebb9@byu.net>
6115
6116         * lib/version-etc.c (version_etc_va): Update license wording to
6117         be more concise.  Recommended by Richard Stallman.
6118
6119 2007-03-22  Bruno Haible  <bruno@clisp.org>
6120
6121         * lib/poll.c (MSG_PEEK): New fallback definition.
6122
6123 2007-03-22  Bruno Haible  <bruno@clisp.org>
6124
6125         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
6126         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
6127         (main): Update.
6128         Fixes a compilation error on BeOS.
6129
6130 2007-03-22  Bruno Haible  <bruno@clisp.org>
6131
6132         * modules/frexpl-tests: New file.
6133         * tests/test-frexpl.c: New file.
6134
6135         * modules/frexpl: New file.
6136         * m4/frexpl.m4: New file.
6137         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
6138         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
6139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
6140         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
6141         (Depends-on): Add frexpl. Remove isnanl-nolibm.
6142         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
6143
6144 2007-03-22  Bruno Haible  <bruno@clisp.org>
6145
6146         * lib/frexpl.c: Share code with lib/frexp.c.
6147         * modules/mathl (Files): Add lib/frexp.c.
6148         (Depends-on): Add isnanl-nolibm.
6149
6150 2007-03-22  Bruno Haible  <bruno@clisp.org>
6151
6152         * modules/printf-frexp (Files): Add m4/frexp.m4.
6153         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
6154         only if the found frexp function actually works.
6155
6156 2007-03-22  Bruno Haible  <bruno@clisp.org>
6157
6158         * lib/frexp.c: Remove older implementation that uses divisions.
6159
6160 2007-03-21  Bruno Haible  <bruno@clisp.org>
6161
6162         * modules/frexp-tests: New file.
6163         * tests/test-frexp.c: New file.
6164
6165         * modules/frexp: New file.
6166         * lib/frexp.c: New file.
6167         * m4/frexp.m4: New file.
6168         * lib/math_.h (frexp): New declaration.
6169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
6170         REPLACE_FREXP.
6171         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
6172
6173 2007-03-21  Bruno Haible  <bruno@clisp.org>
6174
6175         * modules/isnanl-tests: New file.
6176         * tests/test-isnanl.c: New file.
6177
6178         * modules/isnanl: New file.
6179         * lib/isnanl.h: New file.
6180         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
6181         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
6182         gl_FUNC_ISNANL_WORKS.
6183         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
6184         New macros.
6185
6186 2007-03-21  Bruno Haible  <bruno@clisp.org>
6187
6188         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
6189         lib/isnanl.h.
6190         (Include): Update.
6191         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
6192         * lib/vasnprintf.c: Update.
6193         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
6194         tests/test-isnanl.h, remove tests/test-isnanl.c.
6195         (Makefile.am): Update.
6196         * tests/test-isnanl-nolibm.c: New file.
6197         * tests/test-isnanl.h: New file.
6198         * tests/test-isnanl.c: Remove file.
6199
6200 2007-03-21  Jim Meyering  <jim@meyering.net>
6201
6202         When trying to open ".", treat ESTALE like EACCES.
6203         * lib/savewd.c (savewd_save): Resort to forking not just upon
6204         failure with EACCES, but also when errno is ESTALE.
6205
6206 2007-03-20  Bruno Haible  <bruno@clisp.org>
6207
6208         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
6209         Needed on AIX 5.1. Reported by Matthew Woehlke.
6210
6211 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6212
6213         Suggestions by Bruno Haible:
6214         * lib/acl-internal.h: Include "gettext.h" rather than rolling
6215         our own.
6216         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
6217         * modules/acl (Depends-on): Add gettext.
6218
6219 2007-03-19  Bruno Haible  <bruno@clisp.org>
6220
6221         * modules/iconvme: Remove file.
6222         * lib/iconvme.h: Remove file.
6223         * lib/iconvme.c: Remove file.
6224         * m4/iconvme.m4: Remove file.
6225
6226 2007-03-19  Bruno Haible  <bruno@clisp.org>
6227
6228         * doc/relocatable-maint.texi: Break long shell script line.
6229         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
6230
6231 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6232
6233         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
6234         handle file_has_acl.
6235         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
6236         * lib/acl.c: Move header inclusions and related macro defns into
6237         lib/acl-internal.h.
6238         (S_ISLNK): Remove defn, since that's now done for us.
6239         (file_has_acl): Move to lib/file-has-acl.c.
6240         Call acl_trivial if available.  This is the crucial part of the fix.
6241         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
6242         shared within the library.  Rewrite a bit, partly to make it compatible
6243         with the GNU coding style.
6244         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
6245         Remove unnecessary double-quotes.
6246         Don't test for acl_to_text; the build will catch that.
6247         Replace acl_entries if it doesn't exist and it is needed.
6248         Check for -lsec and acl_trivial (as used on Solaris 10).
6249         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
6250         lib/file-has-acl.c.
6251         (Depends-on): Add sys_stat, for S_ISLNK.
6252
6253 2007-03-19  Ben Pfaff  <blp@gnu.org>
6254
6255         * doc/gnulib.texi: Fix typos.
6256         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
6257
6258 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
6261         If size is zero here, buf must be zero.
6262
6263 2007-03-19  Simon Josefsson  <simon@josefsson.org>
6264
6265         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
6266         <bruno@clisp.org>.
6267
6268 2007-03-18  Bruno Haible  <bruno@clisp.org>
6269
6270         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
6271         Suggested by Eric Blake.
6272
6273 2007-03-18  Ben Pfaff  <blp@gnu.org>
6274
6275         * doc/relocatable.texi: Recommend using as prefix a directory
6276         that does not exist and will never be created.  Based on
6277         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
6278         and others.
6279
6280 2007-03-17  Bruno Haible  <bruno@clisp.org>
6281
6282         * lib/fchownat.c: Include lchown.h.
6283
6284 2007-03-17  Bruno Haible  <bruno@clisp.org>
6285
6286         Fix endless loop when the given allocated size was > INT_MAX.
6287         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
6288         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
6289         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
6290         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
6291         * lib/sprintf.c (sprintf): Likewise.
6292
6293 2007-03-17  Bruno Haible  <bruno@clisp.org>
6294
6295         * tests/test-argp-2.sh (func_compare): Output a context diff.
6296
6297 2007-03-17  Bruno Haible  <bruno@clisp.org>
6298
6299         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
6300         locale's decimal-point character.
6301
6302 2007-03-17  Bruno Haible  <bruno@clisp.org>
6303
6304         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
6305         before comparing it. Needed because on some platforms (e.g. x86) a
6306         'long double' occupies less bytes than sizeof (long double).
6307
6308 2007-03-17  Bruno Haible  <bruno@clisp.org>
6309
6310         * tests/test-crc.c (main): Make printf statements 64-bit clean.
6311         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
6312         * tests/test-getaddrinfo.c (simple): Likewise.
6313         * tests/test-read-file.c (main): Likewise.
6314
6315 2007-03-17  Bruno Haible  <bruno@clisp.org>
6316
6317         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
6318
6319 2007-03-17  Bruno Haible  <bruno@clisp.org>
6320
6321         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
6322         unused variable.
6323
6324 2007-03-17  Bruno Haible  <bruno@clisp.org>
6325
6326         * tests/test-c-strcasecmp.c: Include c-strcase.h.
6327         * tests/test-c-strncasecmp.c: Likewise.
6328
6329 2007-03-17  Bruno Haible  <bruno@clisp.org>
6330
6331         * modules/stdlib (Depends-on): Add unistd.
6332         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
6333         Needed for MacOS X 10.3.
6334
6335 2007-03-17  Bruno Haible  <bruno@clisp.org>
6336
6337         * lib/unistr/u-strdup.h: Include <stdlib.h>.
6338
6339 2007-03-17  Bruno Haible  <bruno@clisp.org>
6340
6341         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
6342
6343 2007-03-17  Bruno Haible  <bruno@clisp.org>
6344
6345         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
6346         to reflect files copied from gnulib (with or without modifications).
6347         Suggested by Jim Meyering.
6348
6349 2007-03-17  Eric Blake  <ebb9@byu.net>
6350
6351         * NEWS: Document stdlib change from 2007-02-18.
6352
6353 2007-03-17  Jim Meyering  <jim@meyering.net>
6354
6355         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
6356         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
6357         someone uses a name containing shell meta-characters.
6358         Reported by Alfred M. Szmidt.
6359
6360         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
6361
6362 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
6363
6364         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
6365         and copy gettext configuration files only if configure.ac contains
6366         a use of AM_GNU_GETTEXT_VERSION.
6367
6368 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
6369
6370         * build-aux/bootstrap (gnulib_name): New variable.
6371         (gnulib_tool_options): Use it.
6372
6373 2007-03-13  Simon Josefsson  <simon@josefsson.org>
6374
6375         * tests/test-des.c: Use new namespace.
6376
6377 2007-03-15  Bruno Haible  <bruno@clisp.org>
6378
6379         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
6380         Reported by James Youngman <jay@gnu.org>.
6381
6382 2007-03-15  Bruno Haible  <bruno@clisp.org>
6383
6384         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
6385         declared prototype. Needed with cc on OSF/1 5.1.
6386
6387 2007-03-15  Bruno Haible  <bruno@clisp.org>
6388
6389         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
6390         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
6391         (struct gl_list_implementation): Add dispose_fn argument to the
6392         'create_empty', 'create' methods.
6393         (struct gl_list_impl_base): Add field 'dispose_fn'.
6394         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
6395         argument.
6396         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
6397         dispose_fn argument.
6398         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
6399         dispose_fn on the dropped values.
6400         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
6401         dispose_fn argument.
6402         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
6403         dropped values.
6404         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
6405         (gl_tree_remove_node): Call dispose_fn on the dropped value.
6406         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
6407         (gl_tree_remove_node): Call dispose_fn on the dropped value.
6408         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
6409         argument.
6410         (gl_tree_list_free): Call dispose_fn on the dropped values.
6411         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
6412         the dropped values.
6413         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
6414         Add dispose_fn argument.
6415         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
6416         Call dispose_fn on the dropped values.
6417         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
6418         Add dispose_fn argument.
6419         (gl_sublist_create): Initialize the 'dispose_fn' field.
6420         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
6421         * tests/test-array_list.c (main): Update.
6422         * tests/test-carray_list.c (main): Update.
6423         * tests/test-avltree_list.c (main): Update.
6424         * tests/test-rbtree_list.c (main): Update.
6425         * tests/test-avltreehash_list.c (main): Update.
6426         * tests/test-rbtreehash_list.c (main): Update.
6427         * tests/test-linked_list.c (main): Update.
6428         * tests/test-linkedhash_list.c (main): Update.
6429         * tests/test-array_oset.c (main): Update.
6430
6431 2007-03-15  Bruno Haible  <bruno@clisp.org>
6432
6433         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
6434         (gl_oset_create_empty): Add dispose_fn argument.
6435         (struct gl_oset_implementation): Add dispose_fn argument to
6436         'create_empty' method.
6437         (struct gl_oset_impl_base): Add dispose_fn field.
6438         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
6439         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
6440         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
6441         values.
6442         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
6443         (gl_tree_oset_free): Call dispose_fn on the dropped values.
6444         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
6445         dropped value.
6446         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
6447         dropped value.
6448         * tests/test-array_oset.c (main): Update.
6449         * tests/test-avltree_oset.c (main): Update.
6450         * tests/test-rbtree_oset.c (main): Update.
6451         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
6452
6453 2007-03-13  Bruno Haible  <bruno@clisp.org>
6454
6455         * tests/test-stdbool.c (i): Update after last patch.
6456
6457 2007-03-12  Bruno Haible  <bruno@clisp.org>
6458
6459         * lib/quotearg.c: Include <wctype.h> early, before the definition of
6460         the iswprint macro. Needed on Solaris 2.5.1.
6461
6462 2007-03-12  Bruno Haible  <bruno@clisp.org>
6463
6464         * tests/test-printf-frexp.c (main): Declare x as volatile.
6465
6466 2007-03-12  Simon Josefsson  <simon@josefsson.org>
6467
6468         * doc/gnulib.texi (Build robot for gnulib): New section.
6469
6470 2007-03-12  Jim Meyering  <jim@meyering.net>
6471
6472         * build-aux/bootstrap: New file.
6473         * build-aux/bootstrap.conf: New file, from coreutils.
6474
6475 2007-03-11  Bruno Haible  <bruno@clisp.org>
6476
6477         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
6478
6479 2007-03-12  Simon Josefsson  <simon@josefsson.org>
6480
6481         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
6482         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
6483         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
6484
6485 2007-03-11  Bruno Haible  <bruno@clisp.org>
6486
6487         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
6488         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
6489
6490 2007-03-11  Bruno Haible  <bruno@clisp.org>
6491
6492         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
6493         formula. Needed for SunPRO C 5.0.
6494
6495 2007-03-11  Bruno Haible  <bruno@clisp.org>
6496
6497         * modules/long-options (Depends-on): Add getopt.
6498
6499 2007-03-11  Bruno Haible  <bruno@clisp.org>
6500
6501         * modules/modechange (Depends-on): Add stdbool.
6502
6503 2007-03-11  Bruno Haible  <bruno@clisp.org>
6504
6505         * modules/i-ring (Depends-on): Add stdbool.
6506
6507 2007-03-11  Bruno Haible  <bruno@clisp.org>
6508
6509         * modules/gc-des (Depends-on): Add stdbool.
6510
6511 2007-03-11  Bruno Haible  <bruno@clisp.org>
6512
6513         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
6514
6515 2007-03-11  Bruno Haible  <bruno@clisp.org>
6516
6517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
6518
6519 2007-03-11  Bruno Haible  <bruno@clisp.org>
6520
6521         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
6522
6523 2007-03-11  Bruno Haible  <bruno@clisp.org>
6524
6525         * lib/vasnprintf.c (sprintf): Undefine.
6526
6527 2007-03-11  Bruno Haible  <bruno@clisp.org>
6528
6529         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
6530         initializers in SunPRO C and Compaq C compilers.
6531
6532 2007-03-11  Bruno Haible  <bruno@clisp.org>
6533
6534         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
6535         decrementing code ANSI C compliant.
6536
6537 2007-03-11  Bruno Haible  <bruno@clisp.org>
6538
6539         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
6540         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
6541
6542 2007-03-11  Bruno Haible  <bruno@clisp.org>
6543
6544         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
6545         <stdbool.h> substitute doesn't pass.
6546
6547 2007-03-11  Bruno Haible  <bruno@clisp.org>
6548
6549         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
6550
6551 2007-03-11  Bruno Haible  <bruno@clisp.org>
6552
6553         * gnulib-tool (func_create_megatestdir): Create also an autobuild
6554         script, for submission to autobuild.josefsson.org.
6555
6556 2007-03-10  Bruno Haible  <bruno@clisp.org>
6557
6558         * modules/canonicalize-lgpl-tests: New file.
6559         * tests/test-canonicalize-lgpl.sh: New file.
6560         * tests/test-canonicalize-lgpl.c: New file.
6561
6562         * modules/c-strcase-tests: New file.
6563         * tests/test-c-strcase.sh: New file.
6564         * tests/test-c-strcasecmp.c: New file.
6565         * tests/test-c-strncasecmp.c: New file.
6566
6567         * modules/atexit-tests: New file.
6568         * tests/test-atexit.sh: New file.
6569         * tests/test-atexit.c: New file.
6570
6571 2007-03-10  Bruno Haible  <bruno@clisp.org>
6572
6573         * tests/test-binary-io.sh: Use temporary filenames that are not so
6574         likely to clash with those of other tests (in a parallel make).
6575         * tests/test-binary-io.c: Likewise.
6576
6577 2007-03-10  Bruno Haible  <bruno@clisp.org>
6578
6579         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
6580         fallback; use #error instead.
6581         Suggested by Simon Josefsson.
6582
6583 2007-03-10  Bruno Haible  <bruno@clisp.org>
6584
6585         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
6586         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
6587         first and the last.
6588
6589 2007-03-10  Bruno Haible  <bruno@clisp.org>
6590
6591         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
6592
6593 2007-03-10  Bruno Haible  <bruno@clisp.org>
6594
6595         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
6596         "make distcheck".
6597         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
6598         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
6599         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
6600
6601 2007-03-10  Bruno Haible  <bruno@clisp.org>
6602
6603         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
6604         variable.
6605         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
6606         variable.
6607
6608 2007-03-09  Eric Blake  <ebb9@byu.net>
6609         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
6610
6611         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
6612         types are not being provided by gnulib.
6613         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
6614         types are supported.
6615
6616 2007-03-10  Bruno Haible  <bruno@clisp.org>
6617
6618         * lib/stdio_.h (__attribute__): New macro.
6619         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
6620         vsprintf): Specify __attribute__ __format__ for GCC.
6621         Suggested by Eric Blake.
6622
6623 2007-03-09  Bruno Haible  <bruno@clisp.org>
6624
6625         * modules/printf-posix-tests: New file.
6626         * tests/test-printf-posix.sh: New file.
6627         * tests/test-printf-posix.c: New file.
6628
6629         * modules/printf-posix: New file.
6630         * lib/printf.c: New file.
6631         * m4/printf-posix-rpl.m4: New file.
6632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
6633         REPLACE_PRINTF.
6634         * lib/stdio_.h (printf): New declaration.
6635         (format, __format__, ____printf____, ____scanf____, ____strftime____,
6636         ____strfmon____): New macros.
6637         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
6638         REPLACE_PRINTF.
6639
6640 2007-03-09  Bruno Haible  <bruno@clisp.org>
6641
6642         * tests/test-vasnprintf-posix2.sh: New file.
6643         * tests/test-vasnprintf-posix2.c: New file.
6644         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
6645         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
6646         (Makefile.am): Activate test-vasnprintf-posix2.sh.
6647
6648         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
6649         a locale dependent decimal point, rather than always '.'.
6650
6651 2007-03-09  Eric Blake  <ebb9@byu.net>
6652
6653         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
6654         spite of platforms like Tandem/NSK that define it to -1.
6655
6656 2007-03-08  Bruno Haible  <bruno@clisp.org>
6657
6658         * modules/vprintf-posix-tests: New file.
6659         * tests/test-vprintf-posix.sh: New file.
6660         * tests/test-vprintf-posix.c: New file.
6661         * tests/test-printf-posix.h: New file.
6662
6663         * modules/vprintf-posix: New file.
6664         * lib/vprintf.c: New file.
6665         * m4/vprintf-posix.m4: New file.
6666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
6667         REPLACE_VPRINTF.
6668         * lib/stdio_.h (vprintf): New declaration.
6669         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
6670         REPLACE_VPRINTF.
6671
6672 2007-03-08  Bruno Haible  <bruno@clisp.org>
6673
6674         * modules/fprintf-posix-tests: New file.
6675         * tests/test-fprintf-posix.sh: New file.
6676         * tests/test-fprintf-posix.c: New file.
6677
6678         * modules/fprintf-posix: New file.
6679         * lib/fprintf.c: New file.
6680         * m4/fprintf-posix.m4: New file.
6681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
6682         REPLACE_FPRINTF.
6683         * lib/stdio_.h (fprintf): New declaration.
6684         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
6685         REPLACE_FPRINTF.
6686
6687 2007-03-08  Bruno Haible  <bruno@clisp.org>
6688
6689         * modules/vfprintf-posix-tests: New file.
6690         * tests/test-vfprintf-posix.sh: New file.
6691         * tests/test-vfprintf-posix.c: New file.
6692         * tests/test-fprintf-posix.h: New file.
6693         * tests/test-fprintf-posix.out: New file.
6694
6695         * modules/vfprintf-posix: New file.
6696         * lib/vfprintf.c: New file.
6697         * m4/vfprintf-posix.m4: New file.
6698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
6699         REPLACE_VFPRINTF.
6700         * lib/stdio_.h (vfprintf): New declaration.
6701         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
6702         REPLACE_VFPRINTF.
6703
6704 2007-03-08  Bruno Haible  <bruno@clisp.org>
6705
6706         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
6707
6708 2007-03-08  Bruno Haible  <bruno@clisp.org>
6709
6710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
6711         instead of 'expr' invocations.
6712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6717         Suggested by Paul Eggert.
6718
6719 2007-03-08  Bruno Haible  <bruno@clisp.org>
6720
6721         * modules/fseterr-tests: New file.
6722         * tests/test-fseterr.c: New file.
6723
6724         * modules/fseterr: New file.
6725         * lib/fseterr.h: New file.
6726         * lib/fseterr.c: New file.
6727
6728 2007-03-08  Bruno Haible  <bruno@clisp.org>
6729
6730         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
6731         * lib/getopt_.h: Likewise.
6732         * lib/mbswidth.h: Likewise.
6733         * lib/setenv.h: Likewise.
6734         * lib/vasnprintf.h: Likewise.
6735         * lib/vasprintf.h: Likewise.
6736         * lib/verror.h: Likewise.
6737         * lib/xsetenv.h: Likewise.
6738         * lib/xvasprintf.h: Likewise.
6739
6740 2007-03-08  Jim Meyering  <jim@meyering.net>
6741
6742         * users.txt: Add parted.
6743
6744         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
6745
6746 2007-03-07  Bruno Haible  <bruno@clisp.org>
6747
6748         * m4/printf.m4: Make the shell script snippets copy&pastable.
6749
6750 2007-03-02  Bruno Haible  <bruno@clisp.org>
6751
6752         * lib/netinet_in_.h: New file.
6753         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
6754         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
6755         * modules/netinet_in (Files): Add lib/netinet_in_.h.
6756         (Depends-on): Add absolute-header.
6757         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
6758         into netinet/in.h.
6759
6760 2007-03-03  Bruno Haible  <bruno@clisp.org>
6761
6762         * lib/sys_select_.h: New file.
6763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
6764         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
6765         * modules/sys_select (Files): Add lib/sys_select_.h.
6766         (Depends-on): Add absolute-header.
6767         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
6768         into sys/select.h.
6769
6770 2007-03-02  Bruno Haible  <bruno@clisp.org>
6771
6772         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
6773         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
6774         values.
6775         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
6776         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
6777         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
6778         * modules/sys_socket (Depends-on): Add absolute-header.
6779         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
6780         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
6781         (Include): Remove requirement of inclusion of <sys/types.h>.
6782
6783 2007-03-02  Bruno Haible  <bruno@clisp.org>
6784
6785         * lib/byteswap_.h (bswap_32): Fix formula.
6786
6787 2007-03-06  Bruno Haible  <bruno@clisp.org>
6788
6789         * modules/sprintf-posix-tests: New file.
6790         * tests/test-sprintf-posix.c: New file.
6791
6792         * modules/sprintf-posix: New file.
6793         * lib/sprintf.c: New file.
6794         * m4/sprintf-posix.m4: New file.
6795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
6796         REPLACE_SPRINTF.
6797         * lib/stdio_.h (sprintf): New declaration.
6798         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
6799         REPLACE_SPRINTF.
6800
6801 2007-03-06  Bruno Haible  <bruno@clisp.org>
6802
6803         * modules/vsprintf-posix-tests: New file.
6804         * tests/test-vsprintf-posix.c: New file.
6805         * tests/test-sprintf-posix.h: New file.
6806
6807         * modules/vsprintf-posix: New file.
6808         * lib/vsprintf.c: New file.
6809         * m4/vsprintf-posix.m4: New file.
6810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
6811         REPLACE_VSPRINTF.
6812         * lib/stdio_.h (vsprintf): New declaration.
6813         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
6814         REPLACE_VSPRINTF.
6815
6816 2007-03-06  Bruno Haible  <bruno@clisp.org>
6817
6818         * modules/vsnprintf (Depend-on): Remove minmax.
6819
6820 2007-03-06  Bruno Haible  <bruno@clisp.org>
6821
6822         * modules/snprintf-posix-tests: New file.
6823         * tests/test-snprintf-posix.c: New file.
6824
6825         * modules/snprintf-posix: New file.
6826         * m4/snprintf-posix.m4: New file.
6827         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
6828         gl_FUNC_SNPRINTF.
6829         (gl_FUNC_SNPRINTF): Invoke it.
6830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
6831         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
6832         is set.
6833         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
6834
6835 2007-03-06  Bruno Haible  <bruno@clisp.org>
6836
6837         * modules/vsnprintf-posix-tests: New file.
6838         * tests/test-vsnprintf-posix.c: New file.
6839         * tests/test-snprintf-posix.h: New file.
6840
6841         * modules/vsnprintf-posix: New file.
6842         * m4/vsnprintf-posix.m4: New file.
6843         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
6844         gl_FUNC_VSNPRINTF.
6845         (gl_FUNC_VSNPRINTF): Invoke it.
6846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
6847         * lib/stdio_.h (vsnprintf): Define as a replacement if
6848         REPLACE_VSNPRINTF is set.
6849         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
6850
6851 2007-03-06  Bruno Haible  <bruno@clisp.org>
6852
6853         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
6854         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
6855
6856 2007-03-06  Bruno Haible  <bruno@clisp.org>
6857
6858         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
6859         (asinl): Declare also if HAVE_DECL_ASINL is set.
6860         (atanl): Declare also if HAVE_DECL_ATANL is set.
6861         (ceill): Declare also if HAVE_DECL_CEILL is set.
6862         (cosl): Declare also if HAVE_DECL_COSL is set.
6863         (expl): Declare also if HAVE_DECL_EXPL is set.
6864         (floorl): Declare also if HAVE_DECL_FLOORL is set.
6865         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
6866         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
6867         (logl): Declare also if HAVE_DECL_LOGL is set.
6868         (sinl): Declare also if HAVE_DECL_SINL is set.
6869         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
6870         (tanl): Declare also if HAVE_DECL_TANL is set.
6871         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
6872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
6873         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
6874         declaration of frexpl, ldexpl.
6875         * modules/printf-frexpl (Depends-on): Add math.
6876         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
6877
6878 2007-03-05  Bruno Haible  <bruno@clisp.org>
6879
6880         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
6881         frexpl and ldexpl are declared.
6882         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
6883
6884 2007-03-05  Bruno Haible  <bruno@clisp.org>
6885
6886         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
6887         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
6888
6889 2007-03-05  Bruno Haible  <bruno@clisp.org>
6890
6891         * lib/stdio_.h: Include <stddef.h>.
6892
6893 2007-03-05  Bruno Haible  <bruno@clisp.org>
6894
6895         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
6896
6897 2007-03-05  Bruno Haible  <bruno@clisp.org>
6898
6899         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
6900         NetBSD 4, from Ralf Wildenhues.
6901
6902 2007-03-04  Bruno Haible  <bruno@clisp.org>
6903
6904         * lib/vasprintf.h: Update #if logic for the case when the functions
6905         exist but are overridden.
6906
6907 2007-03-04  Bruno Haible  <bruno@clisp.org>
6908
6909         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
6910         implementations: glibc-2.4 and MacOS X 10.3.
6911         * tests/test-vasnprintf-posix.c (test_function): Test also the case
6912         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
6913         * tests/test-vasprintf-posix.c (test_function): Likewise.
6914
6915 2007-03-04  Bruno Haible  <bruno@clisp.org>
6916
6917         * modules/vasprintf-posix-tests: New file.
6918         * tests/test-vasprintf-posix.c: New file.
6919
6920         * modules/vasprintf-posix: New file.
6921         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
6922         defined.
6923         * m4/vasprintf-posix.m4: New file.
6924         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
6925         gl_FUNC_VASPRINTF.
6926         (gl_FUNC_VASPRINTF): Invoke it.
6927         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
6928         here.
6929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
6930
6931 2007-03-04  Bruno Haible  <bruno@clisp.org>
6932
6933         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
6934         REPLACE_GETTIMEOFDAY.
6935         * modules/sys_time (Makefile.am): Likewise.
6936         * m4/sys_time_h.m4: Likewise.
6937         * m4/gettimeofday.m4: Likewise.
6938
6939 2007-03-04  Bruno Haible  <bruno@clisp.org>
6940
6941         * modules/vasnprintf-posix-tests: New file.
6942         * tests/test-vasnprintf-posix.c: New file.
6943
6944         * modules/vasnprintf-posix: New file.
6945         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
6946         printf-frexpl.h.
6947         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
6948         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
6949         REPLACE_VASNPRINTF is defined.
6950         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
6951         gl_FUNC_VASNPRINTF.
6952         (gl_FUNC_VASNPRINTF): Invoke it.
6953         * m4/vasnprintf-posix.m4: New file.
6954         * m4/printf.m4: New file.
6955
6956 2007-03-04  Bruno Haible  <bruno@clisp.org>
6957
6958         Compile progreloc.c only if --enable-relocatable is specified.
6959         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
6960         if --enable-relocatable was specified.
6961         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
6962         lib_SOURCES.
6963
6964 2007-03-04  Jim Meyering  <jim@meyering.net>
6965
6966         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
6967         Use it consistently, rather than enumerating errno constants.
6968
6969 2007-03-04  Bruno Haible  <bruno@clisp.org>
6970
6971         * modules/xvasprintf-tests: New file.
6972         * tests/test-xvasprintf.c: New file.
6973
6974         * modules/vasprintf-tests: New file.
6975         * tests/test-vasprintf.c: New file.
6976
6977         * modules/vasnprintf-tests: New file.
6978         * tests/test-vasnprintf.c: New file.
6979
6980         * modules/vsnprintf-tests: New file.
6981         * tests/test-vsnprintf.c: New file.
6982
6983         * modules/snprintf-tests: New file.
6984         * tests/test-snprintf.c: New file.
6985
6986 2007-03-04  Bruno Haible  <bruno@clisp.org>
6987
6988         Compile relocatable.c only if --enable-relocatable is specified.
6989         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
6990         gl_RELOCATABLE_LIBRARY.
6991         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
6992         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
6993         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
6994         gl_RELOCATABLE_LIBRARY.
6995         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
6996         (Makefile.am): Remove lib_SOURCES.
6997         * modules/relocatable-lib-lgpl (configure.ac): Invoke
6998         gl_RELOCATABLE_LIBRARY.
6999         (Makefile.am): Remove lib_SOURCES.
7000         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
7001         always.
7002         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7003         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
7004
7005 2007-03-04  Bruno Haible  <bruno@clisp.org>
7006
7007         * modules/argmatch-tests: New file.
7008         * tests/test-argmatch.c: New file.
7009
7010         * tests/test-allocsa.c (main): Halve the number of loop runs.
7011
7012         * modules/alloca-opt-tests: New file.
7013         * tests/test-alloca-opt.c: New file.
7014
7015 2007-03-04  Jim Meyering  <jim@meyering.net>
7016
7017         Work around difference between Linux ACLs and Solaris 10 ZFS.
7018         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
7019         for EINVAL.
7020
7021 2007-03-03  Bruno Haible  <bruno@clisp.org>
7022
7023         * modules/relocatable-prog (Depends-on): Add back progreloc's
7024         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
7025
7026 2007-03-03  Bruno Haible  <bruno@clisp.org>
7027
7028         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
7029         * modules/relocatable-lib: New file.
7030
7031 2007-03-03  Bruno Haible  <bruno@clisp.org>
7032
7033         * modules/relocatable-prog: Renamed from modules/relocatable.
7034         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
7035
7036 2007-03-03  Bruno Haible  <bruno@clisp.org>
7037
7038         * modules/relocatable-script (Files): Add doc/relocatable.texi,
7039         m4/relocatable-lib.m4.
7040         (Depends-on): Remove 'relocatable'.
7041         (configure.ac): Add gl_RELOCATABLE_NOP.
7042
7043 2007-03-03  Bruno Haible  <bruno@clisp.org>
7044
7045         * modules/relocatable-prog-wrapper: New file.
7046         * modules/relocatable (Depends-on): Add it. Remove all other
7047         dependencies except progname.
7048         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
7049
7050         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
7051         (gl_FUNC_STRERROR): Nop.
7052         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
7053
7054         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
7055         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
7056
7057         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
7058         (gl_FUNC_READLINK): Update.
7059
7060         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
7061
7062 2007-03-03  Bruno Haible  <bruno@clisp.org>
7063
7064         * lib/xreadlink.c: Include <unistd.h> unconditionally.
7065         * modules/xreadlink (Depends-on): Add unistd.
7066         * modules/xreadlink-with-size (Depends-on): Likewise.
7067
7068 2007-03-03  Bruno Haible  <bruno@clisp.org>
7069
7070         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
7071         extracted from gt_FUNC_SETENV.
7072         (gt_FUNC_SETENV): Remove macro.
7073         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
7074         remove gt_FUNC_SETENV.
7075
7076 2007-03-03  Bruno Haible  <bruno@clisp.org>
7077
7078         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
7079         ENABLE_RELOCATABLE here.
7080         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
7081
7082 2007-03-03  Bruno Haible  <bruno@clisp.org>
7083
7084         * modules/rbtreehash-list-tests (Depends-on): Add progname.
7085         * tests/test-rbtreehash_list.c: Include progname.h.
7086         (main): Call set_program_name.
7087
7088         * modules/rbtree-oset-tests (Depends-on): Add progname.
7089         * tests/test-rbtree_oset.c: Include progname.h.
7090         (main): Call set_program_name.
7091
7092         * modules/rbtree-list-tests (Depends-on): Add progname.
7093         * tests/test-rbtree_list.c: Include progname.h.
7094         (main): Call set_program_name.
7095
7096         * modules/linked-list-tests (Depends-on): Add progname.
7097         * tests/test-linked_list.c: Include progname.h.
7098         (main): Call set_program_name.
7099
7100 2007-03-03  Bruno Haible  <bruno@clisp.org>
7101
7102         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
7103         All uses of __restrict changed to _Restrict_.
7104         * lib/glob_.h (__restrict): Remove macro.
7105
7106 2007-03-02  Bruno Haible  <bruno@clisp.org>
7107
7108         * modules/gettext (configure.ac): Require gettext infrastructure
7109         from version 0.16.1.
7110
7111 2007-03-02  Bruno Haible  <bruno@clisp.org>
7112
7113         * modules/linkedhash-list-tests (Depends-on): Add progname.
7114         * tests/test-linkedhash_list.c: Include progname.h.
7115         (main): Call set_program_name.
7116
7117         * modules/carray-list-tests (Depends-on): Add progname.
7118         * tests/test-carray_list.c: Include progname.h.
7119         (main): Call set_program_name.
7120
7121         * modules/avltreehash-list-tests (Depends-on): Add progname.
7122         * tests/test-avltreehash_list.c: Include progname.h.
7123         (main): Call set_program_name.
7124
7125         * modules/avltree-oset-tests (Depends-on): Add progname.
7126         * tests/test-avltree_oset.c: Include progname.h.
7127         (main): Call set_program_name.
7128
7129         * modules/avltree-list-tests (Depends-on): Add progname.
7130         * tests/test-avltree_list.c: Include progname.h.
7131         (main): Call set_program_name.
7132
7133         * modules/array-oset-tests (Depends-on): Add progname.
7134         * tests/test-array_oset.c: Include progname.h.
7135         (main): Call set_program_name.
7136
7137         * modules/array-list-tests (Depends-on): Add progname.
7138         * tests/test-array_list.c: Include progname.h.
7139         (main): Call set_program_name.
7140
7141         * modules/argp-tests (Depends-on): Add progname.
7142         * tests/test-argp.c: Include argp.h first. Include progname.h.
7143         (main): Call set_program_name.
7144
7145 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
7146
7147         * doc/gnulib-tool.texi (Initial import): Reword description of
7148         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
7149         limited effect even if defined after the first system include.
7150
7151 2007-03-01  Bruno Haible  <bruno@clisp.org>
7152
7153         * build-aux/config.libpath: Update to libtool-1.5.22.
7154         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7155
7156 2007-03-01  Bruno Haible  <bruno@clisp.org>
7157
7158         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
7159         foo_CFLAGS.
7160         Reported by Ralf Wildenhues.
7161
7162 2007-03-01  Bruno Haible  <bruno@clisp.org>
7163
7164         * build-aux/install-reloc: Remove object files left over by some
7165         compilers.
7166         Reported by Ralf Wildenhues.
7167
7168 2007-03-01  Bruno Haible  <bruno@clisp.org>
7169
7170         * build-aux/install-reloc: Break long lines.
7171
7172 2007-03-01  Bruno Haible  <bruno@clisp.org>
7173
7174         * doc/relocatable.texi: Document that it may not work on OpenBSD.
7175         Reported by Ralf Wildenhues.
7176
7177 2007-03-01  Bruno Haible  <bruno@clisp.org>
7178
7179         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
7180         include ordering constraints.
7181
7182 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7183
7184         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
7185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
7186         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
7187         as another example.
7188         * lib/time_.h: Fix misspelling.
7189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7190         Require gl_HEADER_TIME_H_DEFAULTS.
7191         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
7192         * m4/time_r.m4 (gl_TIME_R): Likewise.
7193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
7194
7195 2007-03-01  Bruno Haible  <bruno@clisp.org>
7196
7197         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
7198         * m4/utimens.m4 (gl_UTIMENS): Likewise.
7199
7200 2007-03-01  Jim Meyering  <jim@meyering.net>
7201
7202         * modules/xreadlink (Maintainer): Add my name.
7203         * modules/xreadlink-with-size (Depends-on): Alphabetize.
7204
7205 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
7206             Bruno Haible  <bruno@clisp.org>
7207
7208         * build-aux/install-reloc: Compile also c-ctype.c.
7209         * build-aux/relocatable.sh.in: New file.
7210         * doc/relocatable.texi: New file.
7211         * doc/relocatable-maint.texi: New file.
7212         * doc/gnulib.texi: Include relocatable-maint.texi.
7213         * lib/progreloc.c: Include unistd.h unconditionally.
7214         * lib/relocwrapper.c: Include unistd.h unconditionally.
7215         Include c-ctype.h.
7216         (add_dotbin): Use c_tolower.
7217         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
7218         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
7219         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
7220         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
7221         to m4/relocatable-lib.m4.
7222         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
7223         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
7224         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
7225         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
7226         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
7227         * modules/relocatable: New file.
7228         * modules/relocatable-lib: New file.
7229         * modules/relocatable-script: New file.
7230
7231 2007-02-28  Bruno Haible  <bruno@clisp.org>
7232
7233         Import --enable-relocatable infrastructure.
7234         * build-aux/config.libpath: New file, from GNU gettext.
7235         * build-aux/install-reloc: New file, from GNU gettext.
7236         * build-aux/reloc-ldflags: New file, from GNU gettext.
7237         * lib/relocatable.h: New file, from GNU gettext.
7238         * lib/relocatable.c: New file, from GNU gettext.
7239         * lib/relocwrapper.c: New file, from GNU gettext.
7240         * m4/relocatable.m4: New file, from GNU gettext.
7241
7242 2007-02-28  Bruno Haible  <bruno@clisp.org>
7243
7244         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
7245
7246         * modules/xreadlink: New file, from GNU gettext with modifications.
7247         * lib/xreadlink.c: New file, from GNU gettext.
7248         * lib/xreadlink.h: Add comments.
7249         (xreadlink): New declaration.
7250
7251         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
7252         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
7253         lib/xreadlink-with-size.c.
7254         (configure.ac): Remove gl_XREADLINK invocation.
7255         (Makefile.am): Augment lib_SOURCES.
7256         * m4/xreadlink.m4: Remove file.
7257         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
7258         (xreadlink_with_size): Renamed from xreadink.
7259         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
7260         * modules/canonicalize (Depends-on): Replace xreadlink with
7261         xreadlink-with-size.
7262         * lib/canonicalize.c (canonicalize_filename_mode): Update.
7263
7264 2007-02-25  Jim Meyering  <jim@meyering.net>
7265
7266         * build-aux/announce-gen: When complaining about excess arguments,
7267         list them.
7268
7269 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7270
7271         * README: Document signed integer overflow situation more
7272         accurately.
7273
7274 2007-02-25  Bruno Haible  <bruno@clisp.org>
7275
7276         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
7277         'a' or 'A' conversion.
7278
7279 2007-02-25  Bruno Haible  <bruno@clisp.org>
7280
7281         * modules/filename: Renamed from modules/pathname.
7282         (Files): Replace lib/pathname.h with lib/filename.h. Replace
7283         lib/concatpath.c with lib/concat-filename.c.
7284         (Makefile.am): Update.
7285         (Include): Replace pathname.h with filename.h.
7286         * lib/filename.h: Renamed from lib/pathname.h.
7287         (concatenated_filename): Renamed from concatenated_pathname.
7288         * lib/concat-filename.c: Renamed from lib/concatpath.c.
7289         (concatenated_filename): Renamed from concatenated_pathname.
7290         * lib/findprog.c: Include filename.h instead of pathname.h.
7291         (find_in_path): Update.
7292         * lib/javacomp.c: Include filename.h instead of pathname.h.
7293         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7294         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7295         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7296         is_oldgcj_14_13_usable, is_javac_usable): Update.
7297         * lib/javaexec.c: Include filename.h instead of pathname.h.
7298         (execute_java_class): Update.
7299         * modules/findprog: Update.
7300         * modules/javacomp: Update.
7301         * modules/javaexec: Update.
7302         * MODULES.html.sh (File system functions): Add 'filename', remove
7303         'pathname'.
7304
7305 2007-02-25  Bruno Haible  <bruno@clisp.org>
7306
7307         * modules/printf-frexpl-tests: New file.
7308         * tests/test-printf-frexpl.c: New file.
7309
7310         * modules/printf-frexpl: New file.
7311         * lib/printf-frexpl.h: New file.
7312         * lib/printf-frexpl.c: New file.
7313         * m4/printf-frexpl.m4: New file.
7314
7315 2007-02-25  Bruno Haible  <bruno@clisp.org>
7316
7317         * modules/printf-frexp-tests: New file.
7318         * tests/test-printf-frexp.c: New file.
7319
7320         * modules/printf-frexp: New file.
7321         * lib/printf-frexp.h: New file.
7322         * lib/printf-frexp.c: New file.
7323         * m4/printf-frexp.m4: New file.
7324
7325 2007-02-25  Bruno Haible  <bruno@clisp.org>
7326
7327         Assume automake >= 1.10 for the tests.
7328         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
7329         * modules/arctwo-tests: Likewise.
7330         * modules/argp-tests: Likewise.
7331         * modules/avltree-list-tests: Likewise.
7332         * modules/avltree-oset-tests: Likewise.
7333         * modules/avltreehash-list-tests: Likewise.
7334         * modules/carray-list-tests: Likewise.
7335         * modules/crc-tests: Likewise.
7336         * modules/des-tests: Likewise.
7337         * modules/gc-arcfour-tests: Likewise.
7338         * modules/gc-arctwo-tests: Likewise.
7339         * modules/gc-des-tests: Likewise.
7340         * modules/gc-hmac-md5-tests: Likewise.
7341         * modules/gc-hmac-sha1-tests: Likewise.
7342         * modules/gc-md2-tests: Likewise.
7343         * modules/gc-md4-tests: Likewise.
7344         * modules/gc-md5-tests: Likewise.
7345         * modules/gc-pbkdf2-sha1-tests: Likewise.
7346         * modules/gc-rijndael-tests: Likewise.
7347         * modules/gc-sha1-tests: Likewise.
7348         * modules/gc-tests: Likewise.
7349         * modules/getaddrinfo-tests: Likewise.
7350         * modules/hmac-md5-tests: Likewise.
7351         * modules/hmac-sha1-tests: Likewise.
7352         * modules/linked-list-tests: Likewise.
7353         * modules/linkedhash-list-tests: Likewise.
7354         * modules/lock-tests: Likewise.
7355         * modules/md2-tests: Likewise.
7356         * modules/md4-tests: Likewise.
7357         * modules/md5-tests: Likewise.
7358         * modules/rbtree-list-tests: Likewise.
7359         * modules/rbtree-oset-tests: Likewise.
7360         * modules/rbtreehash-list-tests: Likewise.
7361         * modules/read-file-tests: Likewise.
7362         * modules/rijndael-tests: Likewise.
7363         * modules/stdint-tests: Likewise.
7364         * modules/tls-tests: Likewise.
7365
7366 2007-02-24  Bruno Haible  <bruno@clisp.org>
7367
7368         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
7369         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
7370         function; instead check whether isnan with a double argument links.
7371         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
7372         function; instead check whether isnan with a 'long double' argument
7373         links.
7374         Reported by Eric Blake <ebb9@byu.net>.
7375
7376 2007-02-24  Bruno Haible  <bruno@clisp.org>
7377
7378         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
7379         defined.
7380         * lib/isnanl.c: Remove all code. Just include isnan.c.
7381         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
7382
7383 2007-02-25  Jim Meyering  <jim@meyering.net>
7384
7385         Avoid conflicting types for 'unsetenv' on FreeBSD.
7386         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
7387         conflicting with FreeBSD's (5.0 and 6.1) function declaration
7388         in stdlib.h.
7389
7390 2007-02-24  Bruno Haible  <bruno@clisp.org>
7391
7392         * modules/isnanl-nolibm-tests: New file.
7393         * tests/test-isnanl.c: New file.
7394
7395         * modules/isnanl-nolibm: New file.
7396         * lib/isnanl.h: New file.
7397         * lib/isnanl.c: New file.
7398         * m4/isnanl.m4: New file.
7399
7400 2007-02-24  Bruno Haible  <bruno@clisp.org>
7401
7402         * modules/isnan-nolibm-tests: New file.
7403         * tests/test-isnan.c: New file.
7404
7405         * modules/isnan-nolibm: New file.
7406         * lib/isnan.h: New file.
7407         * lib/isnan.c: New file.
7408         * m4/isnan.m4: New file.
7409
7410 2007-02-24  Bruno Haible  <bruno@clisp.org>
7411
7412         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
7413         assume that an exponent fits in 20 bits.
7414
7415 2007-02-24  Jim Meyering  <jim@meyering.net>
7416
7417         * m4/regex.m4: Update the description of the configure-time option,
7418         --without-included-regex, to state accurately what the defaults are,
7419         and perhaps to give people an idea why using this option is risky.
7420
7421 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7422
7423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
7424         loops on small arguments.  This attempts to avoid the problem
7425         Bruno Haible reported for AIX 4.3.2 in
7426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
7427
7428 2007-02-23  Bruno Haible  <bruno@clisp.org>
7429
7430         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
7431         Needed for help2man.
7432
7433 2007-02-23  Karl Berry  <karl@gnu.org>
7434
7435         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
7436         exists, foo.h should be cvs-ignored, not committed.
7437
7438 2007-02-23  Eric Blake  <ebb9@byu.net>
7439
7440         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
7441         * lib/stat-time.h (includes): Likewise.
7442         * lib/utimecmp.c (includes): Likewise.
7443         * lib/utimens.h (includes): Likewise.
7444         * lib/getdate.y (includes): Also include "timespec.h" for use
7445         internal to the module.
7446         * modules/utimens (Depends-on): Revert yesterday's patch.
7447         * modules/nanosleep (Depends-on): Add missing dependency.
7448
7449 2007-02-22  Bruno Haible  <bruno@clisp.org>
7450
7451         * lib/glob.c: Don't include getlogin_r.h.
7452
7453 2007-02-22  Jim Meyering  <jim@meyering.net>
7454
7455         * modules/utimens (Depends-on): Add timespec, required for
7456         utimens.h's inclusion of timespec.h.
7457
7458 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7459
7460         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
7461         long unreadable paths in GNU/Linux.  Problem reported by Andreas
7462         Schwab in
7463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
7464         I'll try to think of a better way to fix the Solaris problem.
7465
7466         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
7467         like glibc; on Solaris 10, it fails with errno == EINVAL.
7468         POSIX says the behavior is unspecified if the first argument is NULL,
7469         so play it safe and never pass NULL to the system getcwd.
7470
7471 2007-02-21  Jim Meyering  <jim@meyering.net>
7472
7473         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
7474         of gettimeofday.  It would conflict with the one now always
7475         provided via sys_time_.h.  Reported by Matthew Woehlke, as
7476         an IRIX 6.5 build failure.
7477
7478 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7479
7480         Minor fixups to port to Solaris 10 with Sun C 5.8.
7481         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
7482         * modules/getcwd (Depends-on): Add dirfd.
7483         * lib/putenv.c (putenv): #undef it.
7484         (rpl_putenv): New decl.
7485         (malloc, free): Include <stdlib.h> rather than prototyping separately.
7486
7487 2007-02-20  Bruno Haible  <bruno@clisp.org>
7488
7489         * modules/stdio-tests: New file.
7490         * tests/test-stdio.c: New file.
7491
7492         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
7493         (Depends-on): Add stdio.
7494         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7495         (Include): Use <stdio.h> instead of vsnprintf.h.
7496         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
7497         HAVE_DECL_VSNPRINTF.
7498         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
7499
7500         * modules/snprintf (Files): Remove lib/snprintf.h.
7501         (Depends-on): Add stdio.
7502         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7503         (Include): Use <stdio.h> instead of snprintf.h.
7504         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
7505         HAVE_DECL_SNPRINTF.
7506         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
7507         * lib/getaddrinfo.c: Likewise.
7508
7509         * modules/stdio: New file.
7510         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
7511         * lib/snprintf.h: Remove file.
7512         * lib/vsnprintf.h: Remove file.
7513         * lib/.cppi-disable: Remove snprintf.h.
7514         * m4/stdio_h.m4: New file.
7515         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
7516
7517 2007-02-20  Jim Meyering  <jim@meyering.net>
7518
7519         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
7520         used by e.g., mingw.  From Bruno Haible.
7521
7522 2007-02-19  Bruno Haible  <bruno@clisp.org>
7523
7524         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
7525         warnings.
7526         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7527
7528 2007-02-19  Bruno Haible  <bruno@clisp.org>
7529
7530         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
7531         from mingw users.
7532
7533 2007-02-19  Bruno Haible  <bruno@clisp.org>
7534
7535         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
7536         warnings.
7537         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
7538
7539 2007-02-19  Jim Meyering  <jim@meyering.net>
7540
7541         Don't use FD after a successful "fdopendir (fd)".
7542         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
7543         Reset it by calling dirfd on the just-obtained DIR*.
7544
7545         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
7546         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
7547
7548 2007-02-18  Bruno Haible  <bruno@clisp.org>
7549
7550         * lib/readlink.c: Include <unistd.h>.
7551         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
7552         HAVE_READLINK.
7553         * modules/readlink (Depends-on): Add unistd.
7554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7555         (Include): Add <unistd.h>.
7556
7557         * lib/getlogin_r.h: Remove file.
7558         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
7559         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
7560         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
7561         HAVE_DECL_GETLOGIN_R.
7562         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
7563         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7564         (Include): Use <unistd.h> instead of getlogin_r.h.
7565
7566         * lib/getcwd.h: Remove file.
7567         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
7568         * lib/xgetcwd.c: Likewise.
7569         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
7570         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
7571         * modules/getcwd (Files): Remove lib/getcwd.h.
7572         (Depends-on): Add unistd.
7573         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7574         (Include): Use <unistd.h> instad of getcwd.h.
7575
7576         * lib/ftruncate.c: Include <unistd.h> first.
7577         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
7578         Set HAVE_FTRUNCATE.
7579         * modules/ftruncate (Depends-on): Add unistd.
7580         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7581
7582         * lib/fchdir.c: Include <unistd.h> first.
7583         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
7584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
7585         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
7586         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7587         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
7588
7589         * lib/dup2.c: Include <unistd.h> first.
7590         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
7591         HAVE_DUP2.
7592         * modules/dup2 (Depends-on): Add unistd.
7593         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7594
7595         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
7596         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
7597         REPLACE_CHOWN. Don't define chown as a macro here.
7598         * modules/chown (Depends-on): Add unistd.
7599         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7600
7601         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
7602         Add definition for GL_LINK_WARNING.
7603         (chown, dup2): New declarations.
7604         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
7605         link warning.
7606         (ftruncate): New declaration.
7607         (getcwd): New declaration, taken from old getcwd.h.
7608         (getlogin_r): New declaration, taken from old getlogin_r.h.
7609         (readlink): New declaration.
7610         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
7611         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
7612         (gl_PREREQ_UNISTD): Remove macro.
7613         (gl_UNISTD_MODULE_INDICATOR): New macro.
7614         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
7615         many new variables. Don't set UNISTD_H.
7616         * modules/unistd (Description): Change.
7617         (Depends-on): Add link-warning.
7618         (configure.ac): Update.
7619         (Makefile.am): Create unistd.h always. Substitute many new variables
7620         into it.
7621
7622 2007-02-18  Bruno Haible  <bruno@clisp.org>
7623
7624         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
7625         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
7626         HAVE_GETSUBOPT.
7627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
7628         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
7629         * lib/getsubopt.h: Remove file.
7630         * modules/getsubopt (Files): Remove lib/getsubopt.h.
7631         (Depends-on): Add stdlib.
7632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7633         (Includes): Use <stdlib.h> instead of getsubopt.h.
7634         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
7635         Set HAVE_GETSUBOPT.
7636         * lib/getsubopt.c: Don't include getsubopt.h.
7637
7638 2007-02-18  Bruno Haible  <bruno@clisp.org>
7639
7640         * modules/fchdir (Depends-on): Add dup2.
7641
7642 2007-02-18  Bruno Haible  <bruno@clisp.org>
7643
7644         * lib/stdlib_.h: Handle glibc's special invocation convention
7645         specially.
7646
7647 2007-02-18  Bruno Haible  <bruno@clisp.org>
7648
7649         * modules/stdlib-tests: New file.
7650         * tests/test-stdlib.c: New file.
7651
7652         * modules/mkstemp (Files): Remove lib/mkstemp.h.
7653         (Depends-on): Add stdlib.
7654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7655         (Includes): Use <stdlib.h> instead of mkstemp.h.
7656         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
7657         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
7658         * lib/mkstemp.c: Don't include mkstemp.h.
7659         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
7660         * lib/stdlib--.h: Don't include mkstemp.h.
7661
7662         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
7663         (Depends-on): Add stdlib.
7664         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7665         (Includes): Use <stdlib.h> instead of mkdtemp.h.
7666         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
7667         HAVE_MKDTEMP.
7668         * lib/mkdtemp.c: Don't include mkdtemp.h.
7669         * lib/clean-temp.c: Don't include mkdtemp.h.
7670
7671         * modules/exit (Files): Remove lib/exit.h.
7672         (Depends-on): Add stdlib.
7673         (Makefile.am): Remove lib_SOURCES.
7674         (Include): Use <stdlib.h> instead of exit.h.
7675         * lib/argmatch.c: Don't include exit.h.
7676         * lib/execute.c: Likewise.
7677         * lib/pagealign_alloc.c: Likewise.
7678         * lib/pipe.c: Likewise.
7679         * lib/wait-process.c: Likewise.
7680         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
7681         * lib/exitfail.c: Likewise.
7682         * lib/savewd.c: Likewise.
7683         * lib/xsetenv.c: Likewise.
7684
7685         * modules/stdlib: New file.
7686         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
7687         and extra comments about mkstemp().
7688         * lib/exit.h: Remove file.
7689         * lib/mkdtemp.h: Remove file.
7690         * lib/mkstemp.h: Remove file.
7691         * m4/stdlib_h.m4: New file.
7692         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
7693
7694 2007-02-18  Bruno Haible  <bruno@clisp.org>
7695
7696         * modules/math-tests: New file.
7697         * tests/test-math.c: New file.
7698
7699         * modules/math: New file.
7700         * modules/mathl (Files): Remove lib/mathl.h.
7701         (Depends-on): Add math.
7702         (Makefile.am): Don't mention mathl.h.
7703         (Include): Use <math.h> instead of mathl.h.
7704         * lib/math_.h: New file.
7705         * lib/mathl.h: Remove file.
7706         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
7707         mathl.h.
7708         * lib/asinl.c: Likewise.
7709         * lib/atanl.c: Likewise.
7710         * lib/ceill.c: Likewise.
7711         * lib/cosl.c: Likewise.
7712         * lib/expl.c: Likewise.
7713         * lib/floorl.c: Likewise.
7714         * lib/frexpl.c: Likewise.
7715         * lib/ldexpl.c: Likewise.
7716         * lib/logl.c: Likewise.
7717         * lib/sincosl.c: Likewise.
7718         * lib/sinl.c: Likewise.
7719         * lib/sqrtl.c: Likewise.
7720         * lib/tanl.c: Likewise.
7721         * lib/trigl.c: Likewise.
7722         * m4/math_h.m4: New file.
7723         * MODULES.html.sh (Mathematics): Add math.
7724
7725 2007-02-17  Bruno Haible  <bruno@clisp.org>
7726
7727         * modules/wctype-tests: New file.
7728         * tests/test-wctype.c: New file.
7729
7730         * modules/wchar-tests: New file.
7731         * tests/test-wchar.c: New file.
7732
7733         * modules/unistd-tests: New file.
7734         * tests/test-unistd.c: New file.
7735
7736         * modules/time-tests: New file.
7737         * tests/test-time.c: New file.
7738
7739         * modules/sysexits-tests: New file.
7740         * tests/test-sysexits.c: New file.
7741
7742         * modules/sys_time-tests: New file.
7743         * tests/test-sys_time.c: New file.
7744
7745         * modules/sys_stat-tests: New file.
7746         * tests/test-sys_stat.c: New file.
7747
7748         * modules/sys_socket-tests: New file.
7749         * tests/test-sys_socket.c: New file.
7750
7751         * modules/sys_select-tests: New file.
7752         * tests/test-sys_select.c: New file.
7753
7754         * modules/string-tests: New file.
7755         * tests/test-string.c: New file.
7756
7757         * modules/stdbool-tests: New file.
7758         * tests/test-stdbool.c: New file.
7759
7760         * modules/netinet_in-tests: New file.
7761         * tests/test-netinet_in.c: New file.
7762
7763         * modules/inttypes-tests: New file.
7764         * tests/test-inttypes.c: New file.
7765
7766         * modules/fcntl-tests: New file.
7767         * tests/test-fcntl.c: New file.
7768
7769         * modules/byteswap-tests: New file.
7770         * tests/test-byteswap.c: New file.
7771
7772         * modules/arpa_inet-tests: New file.
7773         * tests/test-arpa_inet.c: New file.
7774
7775 2007-02-17  Bruno Haible  <bruno@clisp.org>
7776
7777         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
7778         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
7779         if the corresponding module is not enabled. Emit link warnings if
7780         the function is used nevertheless.
7781         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
7782         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
7783         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
7784         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
7785         * modules/inttypes (Depends-on): Add link-warning.
7786         (Makefile.am): Copy the contents of build-aux/link-warning.h into
7787         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
7788         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
7789         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
7790         * modules/imaxdiv (configure.ac): Likewise.
7791         * modules/strtoimax (configure.ac): Likewise.
7792         * modules/strtoumax (configure.ac): Likewise.
7793
7794 2007-02-17  Bruno Haible  <bruno@clisp.org>
7795
7796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
7797         gl_STRING_MODULE_INDICATOR_DEFAULTS.
7798         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
7799         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
7800
7801 2007-02-17  Bruno Haible  <bruno@clisp.org>
7802
7803         * modules/link-warning: New file.
7804         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
7805         * lib/string_.h (GL_LINK_WARNING): Remove definition.
7806         * modules/string (Depends-on): Add link-warning.
7807         (Makefile.am): Copy the contents of build-aux/link-warning.h into
7808         string.h.
7809         * MODULES.html.sh (Support for building libraries and executables): Add
7810         link-warning.
7811
7812 2007-02-17  Bruno Haible  <bruno@clisp.org>
7813
7814         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
7815         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
7816         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
7817         long lines.
7818
7819 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
7820             Bruno Haible  <bruno@clisp.org>
7821
7822         * modules/tmpfile: New file.
7823         * lib/tmpfile.c: New file.
7824         * m4/tmpfile.m4: New file.
7825         * MODULES.html.sh (func_all_modules): New section "Input/output".
7826
7827 2007-02-15  Bruno Haible  <bruno@clisp.org>
7828
7829         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
7830         (supports_delete_on_close): New function.
7831         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
7832
7833 2007-02-14  Bruno Haible  <bruno@clisp.org>
7834
7835         * modules/mbspcasecmp-tests: New file.
7836         * tests/test-mbspcasecmp.sh: New file.
7837         * tests/test-mbspcasecmp.c: New file.
7838
7839         New module mbspcasecmp.
7840         * modules/mbspcasecmp: New file.
7841         * lib/mbspcasecmp.c: New file.
7842         * lib/string_.h (strncasecmp): Change warning message.
7843         (mbspcasecmp): New declaration.
7844         * m4/mbspcasecmp.m4: New file.
7845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7846         GNULIB_MBSPCASECMP.
7847         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
7848         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
7849
7850 2007-02-14  Bruno Haible  <bruno@clisp.org>
7851
7852         * modules/mbsncasecmp-tests: New file.
7853         * tests/test-mbsncasecmp.sh: New file.
7854         * tests/test-mbsncasecmp.c: New file.
7855
7856         New module mbsncasecmp.
7857         * modules/mbsncasecmp: New file.
7858         * lib/mbsncasecmp.c: New file.
7859         * lib/string_.h (mbsncasecmp): New declaration.
7860         * m4/mbsncasecmp.m4: New file.
7861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7862         GNULIB_MBSNCASECMP.
7863         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
7864         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
7865
7866 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
7869         Verify that it doesn't overlap with our flags.
7870         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
7871         do not have the desired effect in multibyte locales; instead, use
7872         mbscasecmp.
7873         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
7874         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
7875         we don't require GNU fnmatch ourselves (if our users require it, they
7876         should do so explicitly).
7877
7878         Fix regex code so it doesn't rely on strcasecmp.
7879         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
7880         Otherwise, include gnulib's langinfo.h.
7881         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
7882         undesirable behavior in non-C locales.  Instead, rely on localecharset.
7883         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
7884         * modules/regex (FILES): Remove m4/codeset.m4.
7885         (Depends-on): Add localcharset.  Remove strcase.
7886
7887 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7888
7889         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
7890         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7891
7892 2007-02-13  Bruno Haible  <bruno@clisp.org>
7893
7894         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
7895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7896
7897 2007-02-12  Bruno Haible  <bruno@clisp.org>
7898
7899         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
7900         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
7901         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
7902         time warning rather than a link error.
7903
7904 2007-02-12  Bruno Haible  <bruno@clisp.org>
7905
7906         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
7907         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7909
7910 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7911
7912         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
7913         args, not 2.
7914
7915 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7916
7917         New module 'time', so that apps can include <time.h> as per
7918         POSIX and GNU instead of separate include files like time_r.h
7919         and timegm.h.  This implementation tries out a simpler approach
7920         for replacing decls in standard include files (as compared to
7921         the string module), somewhat as an experiment.
7922
7923         * config/srclist.txt: Comment out mktime.c for now.
7924         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
7925         since it doesn't apply any more.  Use generic wording instead.
7926         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
7927         'time'.
7928         * lib/time_.h, m4/time_h.m4, modules/time: New files.
7929         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
7930         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
7931         Don't include <sys/types.h>; no longer needed since we assume C89.
7932         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
7933         * lib/strftime.c: Likewise.
7934         * lib/time_r.c: Likewise.
7935         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
7936         * lib/nanosleep.c: Include <time.h> first, to check interface.
7937         * lib/strptime.c: Likewise.
7938         * lib/time_r.c: Likewise.
7939         * lib/timegm.c: Likewise.
7940         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
7941         needed.
7942         * lib/timegm.c: Don't include timegm.h; no longer needed.
7943         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
7944         time.h now handles any problems in that area.
7945         (struct timespec, nanosleep): Remove; time.h now arranges for these.
7946         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
7947         that time.h defines struct timespec.
7948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
7949         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
7950         handles that.
7951         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
7952         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
7953         needed.  Set REPLACE_LOCALTIME.
7954         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
7955         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
7956         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
7957         nanosleep; time_h.m4 now does that.  Don't require
7958         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
7959         module handles this now.
7960         * modules/getdate (Depends-on): Remove timespec.  Add time.
7961         * modules/nanosleep (Depends-on): Likewise.
7962         * modules/stat-time (Depends-on): Likewise.
7963         * modules/nanosleep (Include): Include time.h, not timespec.h.
7964         * modules/strptime (Files): Remove lib/strptime.h.
7965         (Depends-on): Add extensions, time.
7966         (Include): Include time.h, not strptime.h.
7967         * modules/time_r (Files): Remove lib/time_r.h.
7968         (Depends-on): Add time.
7969         (Include): Include time.h, not time_r.h.
7970         * modules/timegm: Likewise.
7971         * modules/timespec (Description): Now does timespec-related decls
7972         of our own, instead of struct timespec itself.
7973         (Depends-on): Add time; remove extensions.
7974         (Maintainer): Add self.
7975         * modules/utimecmp (Depends-on): Add time; remove timespec.
7976         * modules/utimens (Depends-on): Likewise.
7977         * modules/xnanosleep (Depends-on): Likewise.
7978
7979 2007-02-11  Bruno Haible  <bruno@clisp.org>
7980
7981         * lib/c-strstr.c: Include allocsa.h.
7982         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7983         * lib/c-strcasestr.c: Include allocsa.h.
7984         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7985         * lib/strcasestr.c: Include allocsa.h.
7986         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7987         * lib/mbsstr.c: Include allocsa.h.
7988         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
7989         allocsa/freesa instead of malloc/free.
7990         * lib/mbscasestr.c: Include allocsa.h.
7991         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
7992         allocsa/freesa instead of malloc/free.
7993         * modules/c-strstr (Depends-on): Add allocsa.
7994         * modules/c-strcasestr (Depends-on): Likewise.
7995         * modules/strcasestr (Depends-on): Likewise.
7996         * modules/mbsstr (Depends-on): Likewise.
7997         * modules/mbscasestr (Depends-on): Likewise.
7998
7999 2007-02-11  Bruno Haible  <bruno@clisp.org>
8000
8001         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
8002
8003         * modules/mbsspn-tests: New file.
8004         * tests/test-mbsspn.sh: New file.
8005         * tests/test-mbsspn.c: New file.
8006
8007 2007-02-11  Bruno Haible  <bruno@clisp.org>
8008
8009         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
8010
8011         * modules/mbspbrk-tests: New file.
8012         * tests/test-mbspbrk.sh: New file.
8013         * tests/test-mbspbrk.c: New file.
8014
8015 2007-02-11  Bruno Haible  <bruno@clisp.org>
8016
8017         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
8018         unneeded cast.
8019
8020         * modules/mbscspn-tests: New file.
8021         * tests/test-mbscspn.sh: New file.
8022         * tests/test-mbscspn.c: New file.
8023
8024 2007-02-11  Bruno Haible  <bruno@clisp.org>
8025
8026         * modules/mbscasecmp-tests: New file.
8027         * tests/test-mbscasecmp.sh: New file.
8028         * tests/test-mbscasecmp.c: New file.
8029
8030 2007-02-11  Bruno Haible  <bruno@clisp.org>
8031
8032         Ensure O(n) worst-case complexity of mbscasestr.
8033         * lib/mbscasestr.c: Include stdbool.h.
8034         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
8035         functions.
8036         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
8037         the bookkeeping indicates that it's worth it.
8038         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
8039
8040         * modules/mbscasestr-tests: New file.
8041         * tests/test-mbscasestr1.c: New file.
8042         * tests/test-mbscasestr2.sh: New file.
8043         * tests/test-mbscasestr2.c: New file.
8044         * tests/test-mbscasestr3.sh: New file.
8045         * tests/test-mbscasestr3.c: New file.
8046         * tests/test-mbscasestr4.sh: New file.
8047         * tests/test-mbscasestr4.c: New file.
8048         * m4/locale-tr.m4: New file.
8049
8050 2007-02-11  Bruno Haible  <bruno@clisp.org>
8051
8052         Ensure O(n) worst-case complexity of mbsstr.
8053         * lib/mbsstr.c: Include stdbool.h.
8054         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
8055         functions.
8056         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
8057         bookkeeping indicates that it's worth it.
8058         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
8059
8060         * modules/mbsstr-tests: New file.
8061         * tests/test-mbsstr1.c: New file.
8062         * tests/test-mbsstr2.sh: New file.
8063         * tests/test-mbsstr2.c: New file.
8064         * tests/test-mbsstr3.sh: New file.
8065         * tests/test-mbsstr3.c: New file.
8066         * m4/locale-fr.m4: New file.
8067
8068 2007-02-11  Bruno Haible  <bruno@clisp.org>
8069
8070         * lib/mbsrchr.c (mbsrchr): Fix bug.
8071
8072         * modules/mbsrchr-tests: New file.
8073         * tests/test-mbsrchr.sh: New file.
8074         * tests/test-mbsrchr.c: New file.
8075
8076 2007-02-11  Bruno Haible  <bruno@clisp.org>
8077
8078         * lib/mbschr.c (mbschr): Fix bug.
8079
8080         * modules/mbschr-tests: New file.
8081         * tests/test-mbschr.sh: New file.
8082         * tests/test-mbschr.c: New file.
8083         * m4/locale-zh.m4: New file.
8084
8085 2007-02-11  Bruno Haible  <bruno@clisp.org>
8086
8087         Support for copying multibyte string iterators.
8088         * lib/mbiter.h: Include <string.h>.
8089         (mbiter_multi_copy): New function.
8090         (mbi_copy): New macro.
8091         * lib/mbuiter.h: Include <string.h>.
8092         (mbuiter_multi_copy): New function.
8093         (mbui_copy): New macro.
8094
8095 2007-02-11  Bruno Haible  <bruno@clisp.org>
8096
8097         New module mbslen.
8098         * modules/mbslen: New file.
8099         * lib/mbslen.c: New file.
8100         * lib/string_.h (mbslen): New declaration.
8101         * m4/mbslen.m4: New file.
8102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8103         GNULIB_MBSLEN.
8104         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
8105         * MODULES.html.sh (Internationalization functions): Add mbslen.
8106
8107 2007-02-11  Bruno Haible  <bruno@clisp.org>
8108
8109         Ensure O(n) worst-case complexity of strcasestr substitute.
8110         * lib/strcasestr.c: Include stdbool.h.
8111         (knuth_morris_pratt): New function.
8112         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
8113         bookkeeping indicates that it's worth it.
8114         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
8115
8116         * modules/strcasestr-tests: New file.
8117         * tests/test-strcasestr.c: New file.
8118
8119 2007-02-11  Bruno Haible  <bruno@clisp.org>
8120
8121         Ensure O(n) worst-case complexity of c_strcasestr.
8122         * lib/c-strcasestr.c: Include stdbool.h, string.h.
8123         (knuth_morris_pratt): New function.
8124         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
8125         the bookkeeping indicates that it's worth it.
8126         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
8127
8128         * modules/c-strcasestr-tests: New file.
8129         * tests/test-c-strcasestr.c: New file.
8130
8131 2007-02-11  Bruno Haible  <bruno@clisp.org>
8132
8133         Ensure O(n) worst-case complexity of c_strstr.
8134         * lib/c-strstr.c: Include stdbool.h, string.h.
8135         (knuth_morris_pratt): New function.
8136         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
8137         bookkeeping indicates that it's worth it.
8138         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
8139
8140         * lib/c-strstr.c: Complete rewrite for maintainability.
8141
8142         * modules/c-strstr-tests: New file.
8143         * tests/test-c-strstr.c: New file.
8144
8145 2007-02-11  Bruno Haible  <bruno@clisp.org>
8146
8147         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
8148         5.2.1 and earlier, whereby \055 was treated just like the range
8149         delimiter '-'.
8150         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8151
8152 2007-02-08  Bruno Haible  <bruno@clisp.org>
8153
8154         * modules/regex (Depends-on): Add stdbool.
8155         Reported by Dalibor Topic <robilad@kaffe.org>.
8156
8157 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8158
8159         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
8160         Prefer returning from main to exiting from it.
8161         Remove unnecessary parens after sizeof.
8162
8163 2007-02-05  Bruno Haible  <bruno@clisp.org>
8164
8165         New module mbssep.
8166         * modules/mbssep: New file.
8167         * lib/mbssep.c: New file.
8168         * lib/string_.h (strsep): Add a conditional link warning.
8169         (mbssep): New declaration.
8170         * m4/mbssep.m4: New file.
8171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8172         GNULIB_MBSSEP.
8173         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
8174         * MODULES.html.sh (Internationalization functions): Add mbssep.
8175
8176 2007-02-05  Bruno Haible  <bruno@clisp.org>
8177
8178         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
8179         Optimize search in case of 1 delimiter.
8180
8181 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
8182
8183         * lib/acl.h: Include sys/types.h before sys/acl.h.
8184
8185 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
8186
8187         Merge upstream fix for glibc bugzilla #3957:
8188
8189         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8190
8191         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8192         bit for RE_HAT_LISTS_NOT_NEWLINE.
8193         (build_charclass_op): Remove bogus comment.
8194
8195 2007-02-05  Simon Josefsson  <simon@josefsson.org>
8196
8197         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
8198
8199 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8200
8201         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
8202         * lib/memmem.c [!defined _LIBC]: Include config.h.
8203
8204 2007-02-04  Bruno Haible  <bruno@clisp.org>
8205
8206         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
8207         warning message.
8208
8209 2007-02-04  Bruno Haible  <bruno@clisp.org>
8210
8211         New module mbstok_r.
8212         * modules/mbstok_r: New file.
8213         * lib/mbstok_r.c: New file.
8214         * lib/string_.h (strtok_r): Change argument names to match the
8215         comments. Add a conditional link warning.
8216         (mbstok_r): New declaration.
8217         * m4/mbstok_r.m4: New file.
8218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8219         GNULIB_MBSTOK_R.
8220         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
8221         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
8222
8223 2007-02-04  Bruno Haible  <bruno@clisp.org>
8224
8225         New module mbsspn.
8226         * modules/mbsspn: New file.
8227         * lib/mbsspn.c: New file.
8228         * lib/string_.h (strspn): Add a conditional link warning.
8229         (mbsspn): New declaration.
8230         * m4/mbsspn.m4: New file.
8231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8232         GNULIB_MBSSPN.
8233         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
8234         * MODULES.html.sh (Internationalization functions): Add mbsspn.
8235
8236 2007-02-04  Bruno Haible  <bruno@clisp.org>
8237
8238         New module mbspbrk.
8239         * modules/mbspbrk: New file.
8240         * lib/mbspbrk.c: New file.
8241         * lib/string_.h (strpbrk): Add a conditional link warning.
8242         (mbspbrk): New declaration.
8243         * m4/mbspbrk.m4: New file.
8244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8245         GNULIB_MBSPBRK.
8246         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
8247         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
8248
8249 2007-02-04  Bruno Haible  <bruno@clisp.org>
8250
8251         New module mbscspn.
8252         * modules/mbscspn: New file.
8253         * lib/mbscspn.c: New file.
8254         * lib/string_.h (strcspn): Add a conditional link warning.
8255         (mbscspn): New declaration.
8256         * m4/mbscspn.m4: New file.
8257         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8258         GNULIB_MBSCSPN.
8259         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
8260         * MODULES.html.sh (Internationalization functions): Add mbscspn.
8261
8262 2007-02-04  Bruno Haible  <bruno@clisp.org>
8263
8264         New module mbscasestr, reduced goal of strcasestr.
8265         * modules/mbscasestr: New file.
8266         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
8267         (mbscasestr): Renamed from strcasestr.
8268         * lib/strcasestr.c: Don't include mbuiter.h.
8269         (strcasestr): Remove support for multibyte locales.
8270         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
8271         Change the conditional link warning.
8272         (mbscasestr): New declaration.
8273         * m4/mbscasestr.m4: New file.
8274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
8275         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
8276         REPLACE_STRCASESTR.
8277         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
8278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8279         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
8280         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
8281         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
8282         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
8283         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
8284         (Depends-on): Remove mbuiter.
8285         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
8286
8287 2007-02-04  Bruno Haible  <bruno@clisp.org>
8288
8289         Simplify handling of strncasecmp.
8290         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
8291         the conditional link warning.
8292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8293         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
8294         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
8295         * modules/strcase (configure.ac): Don't invoke
8296         gl_STRING_MODULE_INDICATOR.
8297         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
8298
8299 2007-02-04  Bruno Haible  <bruno@clisp.org>
8300
8301         New module mbscasecmp, reduced goal of strcasecmp.
8302         * modules/mbscasecmp: New file.
8303         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
8304         (mbscasecmp): Renamed from strcasecmp.
8305         * lib/strcasecmp.c: Don't include mbuiter.h.
8306         (strcasecmp): Remove support for multibyte locales.
8307         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
8308         Change the conditional link warning.
8309         (mbscasecmp): New declaration.
8310         * m4/mbscasecmp.m4: New file.
8311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
8312         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
8313         REPLACE_STRCASECMP.
8314         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
8315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8316         GNULIB_MBSCASECMP.
8317         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
8318         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
8319         * modules/strcase (Files): Remove m4/mbrtowc.m4.
8320         (Depends-on): Remove mbuiter.
8321         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
8322
8323 2007-02-04  Bruno Haible  <bruno@clisp.org>
8324
8325         New module mbsstr. Remove module strstr.
8326         * modules/mbsstr: New file.
8327         * modules/strstr: Remove file.
8328         * lib/mbsstr.c: Renamed from lib/strstr.c.
8329         (mbsstr): Renamed from strstr.
8330         * lib/string_.h (strstr): Remove declaration. Change the conditional
8331         link warning.
8332         (mbsstr): New declaration.
8333         * m4/mbsstr.m4: New file.
8334         * m4/strstr.m4: Remove file.
8335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
8336         REPLACE_STRSTR.
8337         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
8338         Don't initialize GNULIB_STRSTR.
8339         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
8340         substitute GNULIB_STRSTR and REPLACE_STRSTR.
8341         * MODULES.html.sh (Internationalization functions): Add mbsstr.
8342         (Support for systems lacking ANSI C 89): Remove strstr.
8343
8344 2007-02-04  Bruno Haible  <bruno@clisp.org>
8345
8346         New module mbsrchr.
8347         * modules/mbsrchr: New file.
8348         * lib/mbsrchr.c: New file.
8349         * lib/string_.h (strrchr): Add a conditional link warning.
8350         (mbsrchr): New declaration.
8351         * m4/mbsrchr.m4: New file.
8352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8353         GNULIB_MBSRCHR.
8354         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
8355         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
8356
8357 2007-02-04  Bruno Haible  <bruno@clisp.org>
8358
8359         New module mbschr.
8360         * modules/mbschr: New file.
8361         * lib/mbschr.c: New file.
8362         * lib/string_.h (strchr): Add a conditional link warning.
8363         (mbschr): New declaration.
8364         * m4/mbschr.m4: New file.
8365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8366         GNULIB_MBSCHR.
8367         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
8368         * MODULES.html.sh (Internationalization functions): Add mbschr.
8369
8370 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8371
8372         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
8373
8374         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
8375
8376 2007-02-04  Bruno Haible  <bruno@clisp.org>
8377
8378         New module description section 'configure.ac-early'.
8379         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
8380         (func_get_autoconf_early_snippet): New function.
8381         (func_import, func_create_testdir): Use it. Remove special cases for
8382         modules 'extensions' and 'lock'.
8383         * modules/extensions (configure.ac-early): Require
8384         gl_USE_SYSTEM_EXTENSIONS.
8385         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
8386
8387 2007-02-04  Bruno Haible  <bruno@clisp.org>
8388
8389         Make use of gcj-4.3's -fsource and -ftarget option.
8390         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
8391         and if so try the options -fsource and -ftarget.
8392         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
8393         source_version, ftarget_option, target_version arguments.
8394         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
8395         (is_envjavac_oldgcj_14_14_usable): Renamed from
8396         is_envjavac_gcj_14_14_usable.
8397         (is_envjavac_oldgcj_14_13_usable): Renamed from
8398         is_envjavac_gcj_14_13_usable.
8399         (is_gcj_present): Update.
8400         (is_gcj_43, is_gcj43_usable): New functions.
8401         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
8402         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
8403         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
8404         try the options -fsource and -ftarget.
8405
8406 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8407
8408         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
8409         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
8410         larger value.
8411
8412 2007-02-03  Jim Meyering  <jim@meyering.net>
8413
8414         Give tools a better chance to allocate space for very large buffers.
8415         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
8416
8417         Make pwd and readlink work also when run with an unreadable parent dir
8418         on systems with openat support.
8419         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
8420         provided getcwd function, even when we have openat support.
8421         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
8422
8423 2007-02-02  Bruno Haible  <bruno@clisp.org>
8424
8425         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
8426         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
8427         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
8428         portability problems if one of these functions is only used on specific
8429         platforms.
8430         Reported by Paul Eggert.
8431
8432 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8433
8434         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
8435         is causing more trouble than it's curing.
8436         * lib/regex_internal.h (__mempcpy): Remove.
8437         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
8438         (and make the code a tad smaller to boot).
8439         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
8440
8441 2007-02-02  Jim Meyering  <jim@meyering.net>
8442
8443         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
8444         section, not in the Makefile.am: one.
8445
8446 2007-02-02  Eric Blake  <ebb9@byu.net>
8447
8448         * lib/strchrnul.c: Always include config.h first.
8449
8450         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
8451         gnulib strstr is not necessary here.
8452
8453 2007-02-02  Simon Josefsson  <simon@josefsson.org>
8454
8455         * m4/socklen.m4: Fix typo.
8456
8457 2007-02-02  Eric Blake  <ebb9@byu.net>
8458
8459         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
8460         * modules/netinet_in (Makefile.am): Likewise.
8461
8462 2007-02-01  Bruno Haible  <bruno@clisp.org>
8463
8464         * lib/string_.h (GL_LINK_WARNING): New macro.
8465         (strcasecmp, strstr, strcasestr): If provided by the system,
8466         conditionally define as a macro that leads to a warning instead of to
8467         an error.
8468         (strncasecmp): Conditionally define as a macro that leads to a warning.
8469
8470 2007-02-01  Karl Berry  <karl@gnu.org>
8471
8472         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
8473
8474 2007-02-01  Bruno Haible  <bruno@clisp.org>
8475
8476         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
8477         renamings.
8478
8479 2007-02-01  Eric Blake  <ebb9@byu.net>
8480
8481         * modules/regex (Depends-on): Revert dependence on mempcpy.
8482         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
8483         module's definition of mempcpy.
8484         Reported by Paul Eggert.
8485
8486 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
8487
8488         * lib/string_.h: If the gnulib module XYZ is not present, undefine
8489         the symbol XYZ before redefining it.  This fixes a problem with
8490         programs that don't use XYZ, when compiled on systems that define
8491         XYZ to something else.
8492
8493 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
8494
8495         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
8496         occurs when "mkdir -m foo" creates a setgid directory that is (1)
8497         writeable to group or other and (2) is intended to have a special
8498         mode bit that is set or cleared.  In such a case, the directory
8499         should be neither group- nor other-writeable until the special
8500         mode bits are right.
8501
8502 2007-01-31  Eric Blake  <ebb9@byu.net>
8503
8504         * modules/mountlist (Depends-on): Add strstr.
8505
8506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
8507         bug.
8508         * modules/string (Makefile.am): Remove redundant replacement.
8509         * modules/regex (Depends-on): Add mempcpy.
8510
8511 2007-01-31  Bruno Haible  <bruno@clisp.org>
8512
8513         New module description field 'Link'.
8514         * gnulib-tool (func_usage): Document --extract-link-directive.
8515         (sed_extract_prog): Recognize 'Link' directive.
8516         (func_get_link_directive): New function.
8517         (func_import): Show summary of link directives.
8518         Handle --extract-link-directive option.
8519         * modules/acl (Link): New section.
8520         * modules/clock-time (Link): New section.
8521         * modules/euidaccess (Link): New section.
8522         * modules/gettext (Link): New section.
8523         * modules/iconv (Link): New section.
8524         * modules/lock (Link): New section.
8525         * modules/nanosleep (Link): New section.
8526         * modules/readline (Link): New section.
8527
8528 2007-01-27  Bruno Haible  <bruno@clisp.org>
8529
8530         Enforce the use of gnulib modules for unportable <string.h> functions.
8531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
8532         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
8533         (gl_HEADER_STRING_H_BODY): Require it.
8534         * lib/string_.h: If the gnulib module XYZ is not present, redefine
8535         the symbol XYZ to one that gives a link error.
8536         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
8537         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
8538         * modules/mempcpy (configure.ac): Likewise.
8539         * modules/memrchr (configure.ac): Likewise.
8540         * modules/stpcpy (configure.ac): Likewise.
8541         * modules/stpncpy (configure.ac): Likewise.
8542         * modules/strcase (configure.ac): Likewise.
8543         * modules/strcasestr (configure.ac): Likewise.
8544         * modules/strchrnul (configure.ac): Likewise.
8545         * modules/strdup (configure.ac): Likewise.
8546         * modules/strndup (configure.ac): Likewise.
8547         * modules/strnlen (configure.ac): Likewise.
8548         * modules/strpbrk (configure.ac): Likewise.
8549         * modules/strsep (configure.ac): Likewise.
8550         * modules/strstr (configure.ac): Likewise.
8551         * modules/strtok_r (configure.ac): Likewise.
8552
8553 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
8554
8555         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
8556
8557 2007-01-30  Jim Meyering  <jim@meyering.net>
8558
8559         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
8560
8561 2007-01-29  Bruno Haible  <bruno@clisp.org>
8562
8563         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
8564         * lib/execute.c: Likewise.
8565         * lib/pipe.c: Likewise.
8566         * lib/printf-args.h: Likewise.
8567         * lib/printf-args.c: Likewise.
8568         * lib/printf-parse.c: Likewise.
8569         * lib/vasnprintf.c: Likewise.
8570
8571 2007-01-29  Eric Blake  <ebb9@byu.net>
8572
8573         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
8574         declaration.
8575
8576 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8577
8578         * lib/strptime.h (strptime): Use 'restrict' for args where
8579         POSIX requires this.
8580         * lib/strptime.c (strptime): Likewise.
8581         Change license notice from LGPL to GPL, since gnulib-tool will
8582         change this as needed.
8583         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
8584         defined.
8585         Include "strptime.h" first, to check interface.
8586         Do not #undef _LIBC and _NL_CURRENT.
8587         Do not include <stdlib.h>; no longer needed.
8588         Include "time_r.h" and declare ptime_locale_status
8589         only if _LIBC is not defined.
8590         (__P): Remove unused macro.
8591         (match_string): Bring back glibc version, but use it only if _LIBC
8592         is defined.
8593         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
8594         Remove unnecessary assertion and abort() call.
8595         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
8596         * m4/strptime.m4: Fix serial number comment.
8597         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
8598         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
8599         (Depends-on): Add time_r.
8600
8601 2007-01-29  Bruno Haible  <bruno@clisp.org>
8602
8603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8604         strptime.
8605         * modules/strptime (Depends-on): Add stdbool.
8606         * lib/strptime.h: Include <time.h> always. Add comments.
8607
8608 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8609
8610         * modules/strptime: New file.
8611         * lib/strptime.h: New file.
8612         * lib/strptime.c: New file.
8613         * m4/strptime.m4: New file.
8614
8615 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         * MODULES.html.sh: New module mpsort.
8618         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
8619
8620         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
8621         a circularity problem with HP-UX ia64 reported by Bob Proulx in
8622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
8623         All uses changed.
8624         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
8625         All uses changed.
8626         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
8627         to _Restrict_.
8628         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
8629         the parameter matches the prototype.
8630
8631 2007-01-28  Jim Meyering  <jim@meyering.net>
8632
8633         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
8634         sys/time.h here, reverting that part of the previous patch:
8635         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
8636
8637 2007-01-28  Bruno Haible  <bruno@clisp.org>
8638
8639         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
8640         value of $(SYS_TIME_H).
8641         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
8642         remove it conditionally, too. [added by Jim Meyering]
8643         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
8644         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
8645         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
8646         GETTIMEOFDAY_REPLACEMENT to 1.
8647
8648 2007-01-28  Bruno Haible  <bruno@clisp.org>
8649
8650         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
8651         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
8652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
8653         Set UNISTD_H instead of UNISTD_H2.
8654         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
8655
8656 2007-01-28  Bruno Haible  <bruno@clisp.org>
8657
8658         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
8659         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
8660
8661 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8662
8663         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
8664         (func_create_testdir): Ensure C locale for `grep' and `tr'
8665         character ranges.
8666         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
8667         ACLOCAL_AMFLAGS parsing state machine.
8668
8669 2007-01-27  Bruno Haible  <bruno@clisp.org>
8670
8671         * modules/unistr/base: Update.
8672
8673 2007-01-27  Bruno Haible  <bruno@clisp.org>
8674
8675         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
8676         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
8677         * modules/unistr/u32-mbtouc-unsafe: Renamed from
8678         modules/unistr/u32-mbtouc.
8679         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
8680         * lib/unistr.h: Update.
8681         * lib/linebreak.c: Update.
8682         * modules/unistr/u32-mbtouc: Renamed from
8683         modules/unistr/u32-mbtouc-safe.
8684         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
8685         * lib/unistr.h: Update.
8686         * lib/unistr/u32-to-u8.c: Update.
8687         * lib/unistr/u32-to-u16.c: Update.
8688
8689 2007-01-27  Bruno Haible  <bruno@clisp.org>
8690
8691         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
8692         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
8693         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
8694         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
8695         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
8696         * modules/unistr/u16-mbtouc-unsafe: Renamed from
8697         modules/unistr/u16-mbtouc.
8698         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
8699         * lib/unistr.h: Update.
8700         * lib/linebreak.c: Update.
8701         * modules/linebreak: Update.
8702         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
8703         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
8704         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
8705         * modules/unistr/u16-mbtouc: Renamed from
8706         modules/unistr/u16-mbtouc-safe.
8707         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
8708         * lib/unistr.h: Update.
8709         * lib/unistr/u16-to-u8.c: Update.
8710         * modules/unistr/u16-to-u8: Update.
8711         * lib/unistr/u16-to-u32.c: Update.
8712         * modules/unistr/u16-to-u32: Update.
8713
8714 2007-01-27  Bruno Haible  <bruno@clisp.org>
8715
8716         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
8717         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
8718         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
8719         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
8720         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
8721         * modules/unistr/u8-mbtouc-unsafe: Renamed from
8722         modules/unistr/u8-mbtouc.
8723         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
8724         * lib/unistr.h: Update.
8725         * lib/striconveh.c: Update.
8726         * modules/striconveh: Update.
8727         * lib/linebreak.c: Update.
8728         * modules/linebreak: Update.
8729         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
8730         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
8731         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
8732         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
8733         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
8734         * lib/unistr.h: Update.
8735         * lib/striconveh.c: Update.
8736         * modules/striconveh: Update.
8737         * lib/unistr/u8-to-u16.c: Update.
8738         * modules/unistr/u8-to-u16: Update.
8739         * lib/unistr/u8-to-u32.c: Update.
8740         * modules/unistr/u8-to-u32: Update.
8741
8742 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8743
8744         Sync from Libtool.
8745         * lib/argz.c: Do not include strings.h nor memory.h, include
8746         string.h unconditionally.  Patch by Simon Josefsson.
8747
8748 2007-01-27  Bruno Haible  <bruno@clisp.org>
8749
8750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
8751         from gl_HEADER_STRING_H_BODY.
8752         (gl_HEADER_STRING_H_BODY): Require it.
8753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
8754         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8755         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8756         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8757         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8758         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
8759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8760         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8761         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
8762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8763         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8764         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
8765         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8766         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8768
8769 2007-01-27  Bruno Haible  <bruno@clisp.org>
8770
8771         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
8772         check_PROGRAMS into noinst_PROGRAMS.
8773         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
8774         check_PROGRAMS in this case.
8775         (func_import): Set for_test to false.
8776         (func_create_testdir): Set for_test to true.
8777
8778 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8779             Bruno Haible  <bruno@clisp.org>
8780
8781         * modules/strcasestr (Files): Remove lib/strcasestr.h.
8782         (Depends-on): Add string.
8783         (Includes): Use <string.h> instead of strcasestr.h.
8784         * modules/string (Makefile.am): Also substitute the value of
8785         REPLACE_STRCASESTR.
8786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
8787         assume strcasestr is declared in <string.h> not <strings.h>. Also
8788         set REPLACE_STRCASESTR.
8789         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
8790         REPLACE_STRCASESTR.
8791         * lib/strcasestr.h: Remove file.
8792         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
8793         * lib/string_.h (strcasestr): New declaration.
8794
8795 2007-01-27  Bruno Haible  <bruno@clisp.org>
8796
8797         * lib/string_.h: Use 'extern'.
8798
8799 2007-01-27  Jim Meyering  <jim@meyering.net>
8800
8801         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
8802         of set-but-not-used local, "q".
8803
8804         * lib/mempcpy.c: Include <config.h> before <string.h>.
8805         This fixes a compilation error on HP-UX, due to the system's
8806         "restrict"-using mempcpy prototype.
8807
8808 2007-01-26  Bruno Haible  <bruno@clisp.org>
8809
8810         Small optimization.
8811         * lib/javacomp.c: Include c-strstr.h.
8812          (is_envjavac_gcj): Use c_strstr instead of strstr.
8813         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
8814
8815 2007-01-26  Bruno Haible  <bruno@clisp.org>
8816
8817         * MODULES.html.sh (Unicode string functions): Add the new modules.
8818
8819         * modules/uniconv/u32-strconv-to-locale: New file.
8820         * lib/uniconv/u32-strconv-to-locale.c: New file.
8821
8822         * modules/uniconv/u16-strconv-to-locale: New file.
8823         * lib/uniconv/u16-strconv-to-locale.c: New file.
8824
8825         * modules/uniconv/u8-strconv-to-locale: New file.
8826         * lib/uniconv/u8-strconv-to-locale.c: New file.
8827
8828         * modules/uniconv/u32-strconv-from-locale: New file.
8829         * lib/uniconv/u32-strconv-from-locale.c: New file.
8830
8831         * modules/uniconv/u16-strconv-from-locale: New file.
8832         * lib/uniconv/u16-strconv-from-locale.c: New file.
8833
8834         * modules/uniconv/u8-strconv-from-locale: New file.
8835         * lib/uniconv/u8-strconv-from-locale.c: New file.
8836
8837         * modules/uniconv/u32-strconv-to-enc: New file.
8838         * lib/uniconv/u32-strconv-to-enc.c: New file.
8839         * modules/uniconv/u32-strconv-to-enc-tests: New file.
8840         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
8841
8842         * modules/uniconv/u16-strconv-to-enc: New file.
8843         * lib/uniconv/u16-strconv-to-enc.c: New file.
8844         * lib/uniconv/u-strconv-to-enc.h: New file.
8845         * modules/uniconv/u16-strconv-to-enc-tests: New file.
8846         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
8847
8848         * modules/uniconv/u8-strconv-to-enc: New file.
8849         * lib/uniconv/u8-strconv-to-enc.c: New file.
8850         * modules/uniconv/u8-strconv-to-enc-tests: New file.
8851         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
8852
8853         * modules/uniconv/u32-strconv-from-enc: New file.
8854         * lib/uniconv/u32-strconv-from-enc.c: New file.
8855         * modules/uniconv/u32-strconv-from-enc-tests: New file.
8856         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
8857
8858         * modules/uniconv/u16-strconv-from-enc: New file.
8859         * lib/uniconv/u16-strconv-from-enc.c: New file.
8860         * modules/uniconv/u16-strconv-from-enc-tests: New file.
8861         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
8862
8863         * modules/uniconv/u8-strconv-from-enc: New file.
8864         * lib/uniconv/u8-strconv-from-enc.c: New file.
8865         * lib/uniconv/u-strconv-from-enc.h: New file.
8866         * modules/uniconv/u8-strconv-from-enc-tests: New file.
8867         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
8868
8869         * modules/uniconv/u32-conv-from-enc: New file.
8870         * lib/uniconv/u32-conv-from-enc.c: New file.
8871         * modules/uniconv/u32-conv-from-enc-tests: New file.
8872         * tests/uniconv/test-u32-conv-from-enc.c: New file.
8873
8874         * modules/uniconv/u16-conv-from-enc: New file.
8875         * lib/uniconv/u16-conv-from-enc.c: New file.
8876         * lib/uniconv/u-conv-from-enc.h: New file.
8877         * modules/uniconv/u16-conv-from-enc-tests: New file.
8878         * tests/uniconv/test-u16-conv-from-enc.c: New file.
8879
8880         * modules/uniconv/u8-conv-from-enc: New file.
8881         * lib/uniconv/u8-conv-from-enc.c: New file.
8882         * modules/uniconv/u8-conv-from-enc-tests: New file.
8883         * tests/uniconv/test-u8-conv-from-enc.c: New file.
8884
8885         * modules/uniconv/base: New file.
8886         * lib/uniconv.h: New file.
8887
8888 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8889
8890         * doc/gnulib-tool.texi (Initial import): Update to match current
8891         behavior with strdup module.
8892         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
8893         * lib/memmem.h: Remove; all uses removed.  This is now done
8894         by <string.h>.
8895         * lib/mempcpy.h: Likewise.
8896         * lib/memrchr.h: Likewise.
8897         * lib/stpcpy.h: Likewise.
8898         * lib/stpncpy.h: Likewise.
8899         * lib/strcase.h: Likewise.
8900         * lib/strchrnul.h: Likewise.
8901         * lib/strdup.h: Likewise.
8902         * lib/strndup.h: Likewise.
8903         * lib/strnlen.h: Likewise.
8904         * lib/strpbrk.h: Likewise.
8905         * lib/strsep.h: Likewise.
8906         * lib/strstr.h: Likewise.
8907         * lib/strtok_r.h: Likewise.
8908         * lib/string_.h: New file.
8909         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
8910         Rely on <string.h> instead.
8911         * lib/canon-host.c: Likewise.
8912         * lib/chdir-long.c: Likewise.
8913         * lib/concatpath.c: Likewise.
8914         * lib/exclude.c: Likewise.
8915         * lib/fchdir.c: Likewise.
8916         * lib/getaddrinfo.c: Likewise.
8917         * lib/getcwd.c: Likewise.
8918         * lib/getsubopt.c: Likewise.
8919         * lib/glob.c: Likewise.
8920         * lib/hard-locale.c: Likewise.
8921         * lib/iconvme.c: Likewise.
8922         * lib/javacomp.c: Likewise.
8923         * lib/mempcpy.c: Likewise.
8924         * lib/memrchr.c: Likewise.
8925         * lib/regex_internal.h: Likewise.
8926         * lib/stpncpy.c: Likewise.
8927         * lib/strcasecmp.c: Likewise.
8928         * lib/strchrnul.c: Likewise.
8929         * lib/strdup.c: Likewise.
8930         * lib/striconv.c: Likewise.
8931         * lib/striconveh.c: Likewise.
8932         * lib/striconveha.c: Likewise.
8933         * lib/strncasecmp.c: Likewise.
8934         * lib/strndup.c: Likewise.
8935         * lib/strnlen.c: Likewise.
8936         * lib/strsep.c: Likewise.
8937         * lib/strstr.c: Likewise.
8938         * lib/strtok_r.c: Likewise.
8939         * lib/userspec.c: Likewise.
8940         * lib/w32spawn.h: Likewise.
8941         * lib/xstrndup.c: Likewise.
8942         * lib/mountlist.c (strstr): Remove decl.
8943         * m4/string_h.m4: New file.
8944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
8945         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
8946         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
8947         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
8948         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
8949         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
8950         Set REPLACE_STRCASECMP if necessary.
8951         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
8952         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
8953         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
8954         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
8955         HAVE_DECL_STRDUP if necessary.
8956         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
8957         since gl_FUNC_STRNDUP does that now.
8958         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
8959         Check for decl here...
8960         (gl_PREREQ_STRNLEN): ... not here.
8961         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
8962         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
8963         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
8964         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
8965         necessary.
8966         * modules/string: New file.
8967         * modules/memmem (Files): Remove special-purpose include file.
8968         (Depends-on): Add string.
8969         (Include): Include <string.h>, not the removed file.
8970         * modules/mempcpy: Likewise.
8971         * modules/memrchr: Likewise.
8972         * modules/stpcpy: Likewise.
8973         * modules/stpncpy: Likewise.
8974         * modules/strcase: Likewise.
8975         * modules/strchrnul: Likewise.
8976         * modules/strdup: Likewise.
8977         * modules/strndup: Likewise.
8978         * modules/strnlen: Likewise.
8979         * modules/strpbrk: Likewise.
8980         * modules/strsep: Likewise.
8981         * modules/strstr: Likewise.
8982         * modules/strtok_r: Likewise.
8983         * tests/test-dirname.c: Don't include "strdup.h", since
8984         <string.h> now suffices.
8985         * tests/test-memmem.c: Don't include "memmem.h", since
8986         <string.h> now suffices.
8987
8988 2007-01-25  Bruno Haible  <bruno@clisp.org>
8989
8990         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
8991         *resultp is 0.
8992
8993         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
8994         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
8995         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
8996         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
8997
8998         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
8999         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
9000         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
9001         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
9002         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
9003         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
9004
9005 2007-01-24  Bruno Haible  <bruno@clisp.org>
9006
9007         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
9008         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
9009         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
9010         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
9011         gl_FUNC_FTS_CORE.
9012         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
9013         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
9014         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9015         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
9016         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
9017         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
9018         gl_FUNC_FCHOWNAT.
9019         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
9020         gl_FUNC_STRFTIME.
9021         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
9022         Reported by Ralf Wildenhues.
9023
9024 2007-01-24  Bruno Haible  <bruno@clisp.org>
9025
9026         Drop AC_REQUIRE calls that are redundant with the module dependencies.
9027         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
9028         gl_GETADDRINFO.
9029         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
9030         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
9031         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
9032
9033 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9034
9035         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
9036         Don't use 'exit'; just return from 'main'.
9037         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
9038
9039         * lib/fnmatch_.h: Readjust white space and comments to match
9040         glibc, to avoid spurious diffs.
9041
9042 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9043
9044         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
9045         2004-12-01 change by Jakub Jelinek, since this code won't compile
9046         if !LIBC.  Problem reported by Bob Proulx.
9047
9048 2007-01-23  Bruno Haible  <bruno@clisp.org>
9049
9050         * lib/striconveh.c: Include c-strcaseeq.h.
9051         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
9052         * modules/striconveh (Depends-on): Add c-strcaseeq.
9053
9054 2007-01-23  Bruno Haible  <bruno@clisp.org>
9055
9056         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
9057
9058         * modules/c-strcaseeq: New file.
9059         * lib/c-strcaseeq.h: New file.
9060
9061         * modules/streq: New file.
9062         * lib/streq.h: New file.
9063
9064 2007-01-23  Bruno Haible  <bruno@clisp.org>
9065
9066         * modules/striconveha-tests: New file.
9067         * tests/test-striconveha.c: New file.
9068
9069         * lib/striconveha.h: Include <stdbool.h>.
9070         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
9071         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
9072         (mem_iconveha_notranslit): Renamed from mem_iconveha.
9073         (mem_iconveha): New function.
9074         (str_iconveha_notranslit): Renamed from str_iconveha.
9075         (str_iconveha): New function.
9076         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
9077         c-strcase.
9078
9079 2007-01-23  Bruno Haible  <bruno@clisp.org>
9080
9081         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
9082         encodings without forgiving before trying any encoding with handler.
9083         (str_iconveha): Try all encodings without forgiving before trying any
9084         encoding with handler.
9085
9086 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9087
9088         Import the following changes from libc.
9089
9090         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
9091
9092         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
9093
9094         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
9095
9096         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
9097         normal_bracket label.
9098
9099         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
9100
9101         [BZ #361]
9102         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
9103         to normal_bracket after fetching the next character.
9104
9105 2007-01-22  Bruno Haible  <bruno@clisp.org>
9106
9107         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
9108         argument.
9109         * lib/striconveh.c (iconv_carefully_1): New function.
9110         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
9111         argument.
9112         (str_cd_iconveh): Update.
9113         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
9114         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
9115         * tests/test-striconveh.c (MAGIC): New macro.
9116         (new_offsets): New function.
9117         (main): Test call with and without offsets.
9118
9119 2007-01-22  Bruno Haible  <bruno@clisp.org>
9120
9121         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
9122         * modules/sys_select (Makefile.am): Likewise.
9123         * modules/sys_socket (Makefile.am): Likewise.
9124         * modules/sys_time (Makefile.am): Likewise.
9125
9126 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9127
9128         * modules/gettimeofday (License): Change from GPL to LGPL, since
9129         gettimeofday is a library function.
9130
9131 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9132
9133         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
9134
9135 2007-01-21  Bruno Haible  <bruno@clisp.org>
9136
9137         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
9138
9139 2007-01-21  Bruno Haible  <bruno@clisp.org>
9140
9141         * modules/striconveha: New file.
9142         * lib/striconveha.h: New file.
9143         * lib/striconveha.c: New file.
9144         * MODULES.html.sh (Internationalization functions): Add striconveha.
9145         * lib/striconv.c (str_iconv): Optimize the case of an empty input
9146         string.
9147         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
9148
9149 2007-01-21  Bruno Haible  <bruno@clisp.org>
9150
9151         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
9152         * lib/striconveh.c (str_iconveh): Likewise.
9153
9154 2007-01-21  Bruno Haible  <bruno@clisp.org>
9155
9156         * lib/striconveh.h (mem_iconveh): New declaration.
9157         * lib/striconveh.c (mem_iconveh): New function.
9158         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
9159
9160 2007-01-21  Bruno Haible  <bruno@clisp.org>
9161
9162         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
9163
9164         * lib/striconveh.h (mem_cd_iconveh): Change specification.
9165         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
9166         original result buffer.
9167         (str_cd_iconveh): Update.
9168         * tests/test-striconveh.c (main): Update.
9169
9170         * lib/striconv.h (mem_cd_iconv): Change specification.
9171         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
9172         result buffer.
9173         (str_cd_iconv): Update.
9174         * tests/test-striconv.c (main): Update.
9175
9176 2007-01-21  Bruno Haible  <bruno@clisp.org>
9177
9178         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
9179
9180 2007-01-20  Jim Meyering  <jim@meyering.net>
9181
9182         * lib/userspec.c (parse_with_separator): If a user or group string
9183         starts with "+", skip the corresponding name-to-ID look-up, since
9184         such a look-up must fail: user and group names may not include "+".
9185
9186 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9187
9188         * lib/poll.c: Include sys/time.h and time.h unconditionally,
9189         since we now assume the sys_time module.
9190         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
9191         check for sys/time.h; no longer needed.
9192         * modules/poll (Depends-on): Depend on sys_time.
9193
9194 2007-01-18  Bruno Haible  <bruno@clisp.org>
9195
9196         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
9197         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
9198
9199         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
9200         gettimeofday.
9201
9202         * tests/test-gettimeofday.c: Include <time.h>.
9203         (dummy): Remove variable.
9204
9205         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
9206         gl_HEADER_SYS_TIME_H.
9207         (gl_HEADER_SYS_TIME_H): New macro.
9208
9209         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
9210         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9211         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9212         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
9213         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9214         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
9215         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
9216         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9217         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
9218         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
9219         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9220
9221         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
9222         last change; it caused a compilation error when cross-compiling to
9223         Cygwin.
9224
9225 2007-01-18  Jim Meyering  <jim@meyering.net>
9226
9227         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
9228         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
9229         than the race-prone "test -d sys || mkdir sys".
9230         (configure.ac): Use AC_PROG_MKDIR_P.
9231         * modules/sys_select: Likewise.
9232         * modules/sys_socket: Likewise.
9233         * modules/sys_time: Likewise.
9234
9235 2007-01-18  Eric Blake  <ebb9@byu.net>
9236
9237         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
9238         replace gettimeofday.
9239         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
9240         name, to avoid infinite recursion.
9241
9242 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
9243
9244         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
9245         module sys_time.
9246         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
9247         assume timespec.h defines struct timeval.
9248         * lib/settime.c: Likewise.
9249         * lib/utimens.c: Likewise.
9250         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
9251         since we now assume the gettimeofday module.
9252         * lib/tempname.c (__gen_tempname): Likewise.
9253         * lib/gettimeofday.h: Remove.
9254         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
9255         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
9256         Include <time.h>, for 'time()'.
9257         (localtime_buffer_addr): Also use this workaround if
9258         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
9259         to simplify the uses.  All uses changed.
9260         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
9261         that #undef is inside {}, and 'const' follows type name consistently.
9262         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
9263         (gettimeofday): Do not use the maximum possible value for
9264         tv->tv_usec, since that might break usages other than ls.c.
9265         Instead, we'll leave ls.c alone.  This undoes today's patch
9266         by Bruno.  Add a compile-time warning for 1s-clock resolution;
9267         we've never observed the problem but might as well keep the
9268         canary.
9269         * lib/nanosleep.c: Include timespec.h first, for interface check.
9270         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
9271         now assume the sys_time module.
9272         * lib/tempname.c: Likewise.
9273         * lib/timespec.h: Likewise.
9274         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
9275         needed.
9276         * lib/strftime.c: Likewise.
9277         * lib/timespec.h: Likewise.
9278         * lib/posixtm.c: Include posixtm.h first, for interface check.
9279         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
9280         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
9281         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
9282         * lib/sys_time_.h: New file.
9283         * lib/timespec.h (struct timespec): Use long int, not long.
9284         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
9285         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
9286         Remove obsolescent call to AC_HEADER_TIME.
9287         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9289         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
9290         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
9291         Likewise.
9292         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
9293         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
9294         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
9295         into the sys_time module.  Check for gettimeofday just once.
9296         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
9297         for gettimeofday signature to just check the signature.  Merely
9298         compile it, since linking doesn't test signature.  Improve test for
9299         whether gettimeofday.o is actually needed.
9300         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
9301         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
9302         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
9303         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9304         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
9305         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
9306         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
9307         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
9308         than worrying about sys/time.h.
9309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9310         Don't bother worrying about TIME_WITH_SYS_TIME.
9311         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9312         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
9313         * m4/sys_time_h.m4: New file.
9314         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
9315         Don't include sys/time.h.  Return from main rather than exiting.
9316         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
9317         all uses changed.
9318         * modules/gethrxtime (Depends-on): Add sys_time.
9319         * modules/gettime (Depends-on): Likewise.
9320         * modules/gettimeofday (Depends-on): Likewise.
9321         * modules/nanosleep (Depends-on): Likewise.
9322         * modules/settime (Depends-on): Likewise.
9323         * modules/tempname (Depends-on): Likewise.
9324         * modules/utimens (Depends-on): Likewise.
9325         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
9326         (Include:) Change back to <sys/time.h>.
9327         (Maintainer:) Add self.
9328         * modules/sys_time: New file.
9329         * modules/tempname (Depends-on): Add gettimeofday.
9330         * tests/test-gettimeofday.c: Include <sys/time.h>
9331         rather than gettimeofday.h.
9332
9333 2007-01-17  Bruno Haible  <bruno@clisp.org>
9334
9335         * gnulib-tool (func_get_license): Revert last patch. Instead, let
9336         the license default to GPL.
9337         (func_create_testdir): Don't complain if a module is LGPL and its
9338         tests module depends on GPLed modules.
9339
9340 2007-01-17  Bruno Haible  <bruno@clisp.org>
9341
9342         * lib/gettimeofday.c (gettimeofday): Add code for the case
9343         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
9344         maximum possible value for tv->tv_usec, rather than the minimum one.
9345
9346 2005-10-08  Martin Lambers  <marlam@marlam.de>
9347 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9348 2007-01-16  Bruno Haible  <bruno@clisp.org>
9349
9350         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
9351         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
9352         gl_FUNC_GETTIMEOFDAY.
9353         (Include): Add gettimeofday.h.
9354         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
9355         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
9356         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
9357         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
9358         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
9359         * lib/gettimeofday.h: New file.
9360         * lib/gettimeofday.c: Include <sys/timeb.h>.
9361         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
9362         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
9363         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
9364         fall back on time().
9365
9366         * tests/test-gettimeofday.c: New file.
9367         * modules/gettimeofday-tests: New file.
9368
9369 2007-01-16  Eric Blake  <ebb9@byu.net>
9370
9371         * modules/fnmatch (Depends-on): Depend on wchar.
9372         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
9373         * m4/fnmatch.m4: Likewise.
9374         * modules/mbchar (Makefile.am): Assume <wchar.h>.
9375         * m4/mbchar.m4: Likewise.
9376         * modules/mbswidth (Depends-on): Depend on wchar.
9377         * lib/mbswidth.c: Assume <wchar.h>.
9378         * m4/mbswidth.m4: Likewise.
9379         * modules/quotearg (Depends-on): Depend on wchar.
9380         * lib/quotearg.c: Assume <wchar.h>.
9381         * m4/quotearg.m4: Likewise.
9382         * modules/regex (Depends-on): Depend on wchar.
9383         * lib/regex_internal.h: Assume <wchar.h>.
9384         * m4/regex.m4: Likewise.
9385         * modules/stdint (Depends-on): Depend on wchar.
9386         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
9387         * m4/stdint.m4: Likewise.
9388         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
9389         * modules/strftime (Depends-on): Depend on wchar.
9390         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
9391         * modules/strtol (Depends-on): Depend on wchar.
9392         * lib/strtol.c: Assume <wchar.h>.
9393         * modules/wcwidth (Depends-on): Depend on wchar.
9394         * lib/wcwidth.h: Assume <wchar.h>.
9395         * m4/wcwidth.m4: Likewise.
9396
9397 2007-01-16  Bruno Haible  <bruno@clisp.org>
9398
9399         * modules/csharpexec-script: New, created from...
9400         * modules/csharpexec: ... this.
9401
9402 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
9403
9404         * modules/javaexec-script: New, created from...
9405         * modules/javaexec: ... this.
9406
9407 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9408
9409         * modules/poll (Dependencies): Add sys_select.
9410
9411 2007-01-15  Jim Meyering  <jim@meyering.net>
9412
9413         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
9414         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
9415         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
9416         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
9417
9418 2007-01-15  Bruno Haible  <bruno@clisp.org>
9419
9420         * modules/striconveh: New file.
9421         * lib/striconveh.h: New file.
9422         * lib/striconveh.c: New file.
9423         * MODULES.html.sh (Internationalization functions): Add striconveh.
9424
9425         * modules/striconveh-tests: New file.
9426         * tests/test-striconveh.c: New file.
9427
9428 2007-01-15  Bruno Haible  <bruno@clisp.org>
9429
9430         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
9431         not from GNU libiconv or GNU libc.
9432
9433 2007-01-15  Bruno Haible  <bruno@clisp.org>
9434
9435         * doc/gnulib-intro.texi (Copyright): Explain the different license
9436         terms for module descriptions, autoconf macros, tests, documentation.
9437
9438 2007-01-14  Bruno Haible  <bruno@clisp.org>
9439
9440         * modules/striconv-tests: New file.
9441         * tests/test-striconv.c: New file.
9442
9443 2007-01-14  Bruno Haible  <bruno@clisp.org>
9444
9445         * modules/iconv-tests: New file.
9446         * tests/test-iconv.c: New file.
9447
9448 2007-01-14  Bruno Haible  <bruno@clisp.org>
9449
9450         * gnulib-tool (func_get_license): For test modules, use the license of
9451         the main module.
9452
9453 2007-01-14  Bruno Haible  <bruno@clisp.org>
9454
9455         * modules/iconv (Include): Clarify that <iconv.h> can only be included
9456         if iconv is found to exist.
9457
9458 2007-01-14  Bruno Haible  <bruno@clisp.org>
9459
9460         * modules/c-ctype-tests: New file.
9461         * tests/test-c-ctype.c: New file.
9462
9463 2007-01-14  Bruno Haible  <bruno@clisp.org>
9464
9465         * modules/binary-io-tests: New file.
9466         * tests/test-binary-io.sh: New file.
9467         * tests/test-binary-io.c: New file.
9468
9469 2007-01-14  Bruno Haible  <bruno@clisp.org>
9470
9471         * modules/array-oset-tests: New file.
9472         * tests/test-array_oset.c: New file.
9473
9474 2007-01-14  Bruno Haible  <bruno@clisp.org>
9475
9476         * modules/array-list-tests: New file.
9477         * tests/test-array_list.c: New file.
9478
9479 2007-01-14  Bruno Haible  <bruno@clisp.org>
9480
9481         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
9482         and make.
9483         Reported by Simon Josefsson in
9484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
9485
9486 2007-01-14  Bruno Haible  <bruno@clisp.org>
9487
9488         * modules/allocsa-tests: New file.
9489         * tests/test-allocsa.c: New file.
9490
9491 2007-01-14  Bruno Haible  <bruno@clisp.org>
9492
9493         * modules/fchdir (Depends-on): Add absolute-header.
9494         * modules/unistd (Depends-on): Likewise.
9495
9496 2006-12-30  Bruno Haible  <bruno@clisp.org>
9497
9498         * modules/fchdir: New file.
9499         * modules/unistd (Files): Add lib/unistd_.h.
9500         (Makefile.am): Generate unistd.h from unistd_.h.
9501         * lib/fchdir.c: New file.
9502         * lib/dirent_.h: New file.
9503         * lib/unistd_.h: New file.
9504         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
9505         * m4/fchdir.m4: New file.
9506         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
9507         (gl_HEADER_UNISTD): Invoke it.
9508         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
9509         function.
9510         * lib/backupfile.c (opendir, closedir): Undefine.
9511         * lib/chown.c (open, close): Undefine.
9512         * lib/clean-temp.c (open, close): Undefine.
9513         * lib/copy-file.c (open, close): Undefine.
9514         * lib/execute.c (open, close): Undefine.
9515         * lib/fsusage.c (open, close): Undefine.
9516         * lib/gc-gnulib.c (open, close): Undefine.
9517         * lib/getcwd.c (opendir, closedir): Undefine.
9518         * lib/glob.c (opendir, closedir): Undefine.
9519         * lib/javacomp.c (open, close): Undefine.
9520         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
9521         * lib/openat-proc.c (open, close): Undefine.
9522         * lib/pagealign_alloc.c (open, close): Undefine.
9523         * lib/pipe.c (open, close): Undefine.
9524         * lib/progreloc.c (open, close): Undefine.
9525         * lib/savedir.c (opendir, closedir): Undefine.
9526         * lib/utime.c (open, close): Undefine.
9527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
9528
9529 2007-01-10  Bruno Haible  <bruno@clisp.org>
9530
9531         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
9532
9533 2007-01-12  Eric Blake  <ebb9@byu.net>
9534
9535         Provide a robust <wchar.h>.  Further simplifications are now
9536         possible in other modules, but not included here.
9537         * modules/wchar: New module.
9538         * m4/wchar.m4: New file.
9539         * lib/wchar_.h: Likewise.
9540         * modules/mbchar (Depends-on): Depend on wchar, as the first use
9541         of the new module.
9542         * MODULES.html.sh (Extended multibyte and wide character utilities):
9543         New section.
9544
9545 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
9546
9547         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
9548         to a reasonable default for memory allocation.
9549         (xreadlink): Don't allocate a huge buffer, to work around a buggy
9550         file system that reports garbage st_size values for symlinks.
9551         Problem reported by Liyang Hu.
9552
9553 2007-01-11  Simon Josefsson  <simon@josefsson.org>
9554
9555         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
9556         Emacs .#* auto-save files).
9557
9558 2007-01-11  Bruno Haible  <bruno@clisp.org>
9559
9560         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
9561         directory.
9562
9563 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9564
9565         Use @...@ consistently in lib/wctype_.h.
9566         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
9567         on it being set to 1 or 0.
9568         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
9569         go back to AC_SUBSTing it.
9570         * modules/wctype (Makefile.am): Undo previous change.
9571
9572 2007-01-10  Eric Blake  <ebb9@byu.net>
9573
9574         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
9575         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
9576         * modules/wctype (Makefile.am): Likewise.
9577         Reported by Chris McGuire.
9578
9579 2007-01-10  Jim Meyering  <jim@meyering.net>
9580
9581         fts.c: a small readability/maintainability improvement
9582         * lib/fts.c (fts_read): Make this code slightly more readable and
9583         maintainable by hoisting the "sp->fts_cur = p" assignments to
9584         immediately follow the statements that set P.  Derived from
9585         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
9586
9587 2007-01-10  Eric Blake  <ebb9@byu.net>
9588
9589         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
9590         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
9591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9592         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9593         Reported by Chris McGuire.
9594
9595 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9596
9597         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
9598         in sed script.
9599
9600 2007-01-09  Bruno Haible  <bruno@clisp.org>
9601
9602         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
9603         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
9604         variables.
9605         (func_module): Use them.
9606
9607 2007-01-09  Bruno Haible  <bruno@clisp.org>
9608
9609         * modules/unistr/base: New file.
9610         * lib/unistr.h: New file.
9611
9612         * modules/unistr/u8-to-u16: New file.
9613         * lib/unistr/u8-to-u16.c: New file.
9614
9615         * modules/unistr/u8-to-u32: New file.
9616         * lib/unistr/u8-to-u32.c: New file.
9617
9618         * modules/unistr/u16-to-u8: New file.
9619         * lib/unistr/u16-to-u8.c: New file.
9620
9621         * modules/unistr/u16-to-u32: New file.
9622         * lib/unistr/u16-to-u32.c: New file.
9623
9624         * modules/unistr/u32-to-u8: New file.
9625         * lib/unistr/u32-to-u8.c: New file.
9626
9627         * modules/unistr/u32-to-u16: New file.
9628         * lib/unistr/u32-to-u16.c: New file.
9629
9630         * modules/unistr/u8-check: New file.
9631         * modules/unistr/u16-check: New file.
9632         * modules/unistr/u32-check: New file.
9633         * lib/unistr/u8-check.c: New file.
9634         * lib/unistr/u16-check.c: New file.
9635         * lib/unistr/u32-check.c: New file.
9636
9637         * modules/unistr/u8-chr: New file.
9638         * modules/unistr/u16-chr: New file.
9639         * modules/unistr/u32-chr: New file.
9640         * lib/unistr/u8-chr.c: New file.
9641         * lib/unistr/u16-chr.c: New file.
9642         * lib/unistr/u32-chr.c: New file.
9643
9644         * modules/unistr/u8-cmp: New file.
9645         * modules/unistr/u16-cmp: New file.
9646         * modules/unistr/u32-cmp: New file.
9647         * lib/unistr/u8-cmp.c: New file.
9648         * lib/unistr/u16-cmp.c: New file.
9649         * lib/unistr/u32-cmp.c: New file.
9650
9651         * modules/unistr/u8-cpy: New file.
9652         * modules/unistr/u16-cpy: New file.
9653         * modules/unistr/u32-cpy: New file.
9654         * lib/unistr/u8-cpy.c: New file.
9655         * lib/unistr/u16-cpy.c: New file.
9656         * lib/unistr/u32-cpy.c: New file.
9657         * lib/unistr/u-cpy.h: New file.
9658
9659         * modules/unistr/u8-cpy-alloc: New file.
9660         * modules/unistr/u16-cpy-alloc: New file.
9661         * modules/unistr/u32-cpy-alloc: New file.
9662         * lib/unistr/u8-cpy-alloc.c: New file.
9663         * lib/unistr/u16-cpy-alloc.c: New file.
9664         * lib/unistr/u32-cpy-alloc.c: New file.
9665         * lib/unistr/u-cpy-alloc.h: New file.
9666
9667         * modules/unistr/u8-endswith: New file.
9668         * modules/unistr/u16-endswith: New file.
9669         * modules/unistr/u32-endswith: New file.
9670         * lib/unistr/u8-endswith.c: New file.
9671         * lib/unistr/u16-endswith.c: New file.
9672         * lib/unistr/u32-endswith.c: New file.
9673         * lib/unistr/u-endswith.h: New file.
9674
9675         * modules/unistr/u8-mblen: New file.
9676         * modules/unistr/u16-mblen: New file.
9677         * modules/unistr/u32-mblen: New file.
9678         * lib/unistr/u8-mblen.c: New file.
9679         * lib/unistr/u16-mblen.c: New file.
9680         * lib/unistr/u32-mblen.c: New file.
9681
9682         * modules/unistr/u8-mbtouc: New file.
9683         * modules/unistr/u16-mbtouc: New file.
9684         * modules/unistr/u32-mbtouc: New file.
9685         * lib/unistr/u8-mbtouc.c: New file.
9686         * lib/unistr/u16-mbtouc.c: New file.
9687         * lib/unistr/u32-mbtouc.c: New file.
9688
9689         * modules/unistr/u8-mbtouc-safe: New file.
9690         * modules/unistr/u16-mbtouc-safe: New file.
9691         * modules/unistr/u32-mbtouc-safe: New file.
9692         * lib/unistr/u8-mbtouc-safe.c: New file.
9693         * lib/unistr/u16-mbtouc-safe.c: New file.
9694         * lib/unistr/u32-mbtouc-safe.c: New file.
9695
9696         * modules/unistr/u8-move: New file.
9697         * modules/unistr/u16-move: New file.
9698         * modules/unistr/u32-move: New file.
9699         * lib/unistr/u8-move.c: New file.
9700         * lib/unistr/u16-move.c: New file.
9701         * lib/unistr/u32-move.c: New file.
9702         * lib/unistr/u-move.h: New file.
9703
9704         * modules/unistr/u8-next: New file.
9705         * modules/unistr/u16-next: New file.
9706         * modules/unistr/u32-next: New file.
9707         * lib/unistr/u8-next.c: New file.
9708         * lib/unistr/u16-next.c: New file.
9709         * lib/unistr/u32-next.c: New file.
9710
9711         * modules/unistr/u8-prev: New file.
9712         * modules/unistr/u16-prev: New file.
9713         * modules/unistr/u32-prev: New file.
9714         * lib/unistr/u8-prev.c: New file.
9715         * lib/unistr/u16-prev.c: New file.
9716         * lib/unistr/u32-prev.c: New file.
9717
9718         * modules/unistr/u8-set: New file.
9719         * modules/unistr/u16-set: New file.
9720         * modules/unistr/u32-set: New file.
9721         * lib/unistr/u8-set.c: New file.
9722         * lib/unistr/u16-set.c: New file.
9723         * lib/unistr/u32-set.c: New file.
9724         * lib/unistr/u-set.h: New file.
9725
9726         * modules/unistr/u8-startswith: New file.
9727         * modules/unistr/u16-startswith: New file.
9728         * modules/unistr/u32-startswith: New file.
9729         * lib/unistr/u8-startswith.c: New file.
9730         * lib/unistr/u16-startswith.c: New file.
9731         * lib/unistr/u32-startswith.c: New file.
9732         * lib/unistr/u-startswith.h: New file.
9733
9734         * modules/unistr/u8-stpcpy: New file.
9735         * modules/unistr/u16-stpcpy: New file.
9736         * modules/unistr/u32-stpcpy: New file.
9737         * lib/unistr/u8-stpcpy.c: New file.
9738         * lib/unistr/u16-stpcpy.c: New file.
9739         * lib/unistr/u32-stpcpy.c: New file.
9740         * lib/unistr/u-stpcpy.h: New file.
9741
9742         * modules/unistr/u8-stpncpy: New file.
9743         * modules/unistr/u16-stpncpy: New file.
9744         * modules/unistr/u32-stpncpy: New file.
9745         * lib/unistr/u8-stpncpy.c: New file.
9746         * lib/unistr/u16-stpncpy.c: New file.
9747         * lib/unistr/u32-stpncpy.c: New file.
9748         * lib/unistr/u-stpncpy.h: New file.
9749
9750         * modules/unistr/u8-strcat: New file.
9751         * modules/unistr/u16-strcat: New file.
9752         * modules/unistr/u32-strcat: New file.
9753         * lib/unistr/u8-strcat.c: New file.
9754         * lib/unistr/u16-strcat.c: New file.
9755         * lib/unistr/u32-strcat.c: New file.
9756         * lib/unistr/u-strcat.h: New file.
9757
9758         * modules/unistr/u8-strchr: New file.
9759         * modules/unistr/u16-strchr: New file.
9760         * modules/unistr/u32-strchr: New file.
9761         * lib/unistr/u8-strchr.c: New file.
9762         * lib/unistr/u16-strchr.c: New file.
9763         * lib/unistr/u32-strchr.c: New file.
9764
9765         * modules/unistr/u8-strcmp: New file.
9766         * modules/unistr/u16-strcmp: New file.
9767         * modules/unistr/u32-strcmp: New file.
9768         * lib/unistr/u8-strcmp.c: New file.
9769         * lib/unistr/u16-strcmp.c: New file.
9770         * lib/unistr/u32-strcmp.c: New file.
9771
9772         * modules/unistr/u8-strcpy: New file.
9773         * modules/unistr/u16-strcpy: New file.
9774         * modules/unistr/u32-strcpy: New file.
9775         * lib/unistr/u8-strcpy.c: New file.
9776         * lib/unistr/u16-strcpy.c: New file.
9777         * lib/unistr/u32-strcpy.c: New file.
9778         * lib/unistr/u-strcpy.h: New file.
9779
9780         * modules/unistr/u8-strcspn: New file.
9781         * modules/unistr/u16-strcspn: New file.
9782         * modules/unistr/u32-strcspn: New file.
9783         * lib/unistr/u8-strcspn.c: New file.
9784         * lib/unistr/u16-strcspn.c: New file.
9785         * lib/unistr/u32-strcspn.c: New file.
9786         * lib/unistr/u-strcspn.h: New file.
9787
9788         * modules/unistr/u8-strdup: New file.
9789         * modules/unistr/u16-strdup: New file.
9790         * modules/unistr/u32-strdup: New file.
9791         * lib/unistr/u8-strdup.c: New file.
9792         * lib/unistr/u16-strdup.c: New file.
9793         * lib/unistr/u32-strdup.c: New file.
9794         * lib/unistr/u-strdup.h: New file.
9795
9796         * modules/unistr/u8-strlen: New file.
9797         * modules/unistr/u16-strlen: New file.
9798         * modules/unistr/u32-strlen: New file.
9799         * lib/unistr/u8-strlen.c: New file.
9800         * lib/unistr/u16-strlen.c: New file.
9801         * lib/unistr/u32-strlen.c: New file.
9802         * lib/unistr/u-strlen.h: New file.
9803
9804         * modules/unistr/u8-strmblen: New file.
9805         * modules/unistr/u16-strmblen: New file.
9806         * modules/unistr/u32-strmblen: New file.
9807         * lib/unistr/u8-strmblen.c: New file.
9808         * lib/unistr/u16-strmblen.c: New file.
9809         * lib/unistr/u32-strmblen.c: New file.
9810
9811         * modules/unistr/u8-strmbtouc: New file.
9812         * modules/unistr/u16-strmbtouc: New file.
9813         * modules/unistr/u32-strmbtouc: New file.
9814         * lib/unistr/u8-strmbtouc.c: New file.
9815         * lib/unistr/u16-strmbtouc.c: New file.
9816         * lib/unistr/u32-strmbtouc.c: New file.
9817
9818         * modules/unistr/u8-strncat: New file.
9819         * modules/unistr/u16-strncat: New file.
9820         * modules/unistr/u32-strncat: New file.
9821         * lib/unistr/u8-strncat.c: New file.
9822         * lib/unistr/u16-strncat.c: New file.
9823         * lib/unistr/u32-strncat.c: New file.
9824         * lib/unistr/u-strncat.h: New file.
9825
9826         * modules/unistr/u8-strncmp: New file.
9827         * modules/unistr/u16-strncmp: New file.
9828         * modules/unistr/u32-strncmp: New file.
9829         * lib/unistr/u8-strncmp.c: New file.
9830         * lib/unistr/u16-strncmp.c: New file.
9831         * lib/unistr/u32-strncmp.c: New file.
9832
9833         * modules/unistr/u8-strncpy: New file.
9834         * modules/unistr/u16-strncpy: New file.
9835         * modules/unistr/u32-strncpy: New file.
9836         * lib/unistr/u8-strncpy.c: New file.
9837         * lib/unistr/u16-strncpy.c: New file.
9838         * lib/unistr/u32-strncpy.c: New file.
9839         * lib/unistr/u-strncpy.h: New file.
9840
9841         * modules/unistr/u8-strnlen: New file.
9842         * modules/unistr/u16-strnlen: New file.
9843         * modules/unistr/u32-strnlen: New file.
9844         * lib/unistr/u8-strnlen.c: New file.
9845         * lib/unistr/u16-strnlen.c: New file.
9846         * lib/unistr/u32-strnlen.c: New file.
9847         * lib/unistr/u-strnlen.h: New file.
9848
9849         * modules/unistr/u8-strpbrk: New file.
9850         * modules/unistr/u16-strpbrk: New file.
9851         * modules/unistr/u32-strpbrk: New file.
9852         * lib/unistr/u8-strpbrk.c: New file.
9853         * lib/unistr/u16-strpbrk.c: New file.
9854         * lib/unistr/u32-strpbrk.c: New file.
9855         * lib/unistr/u-strpbrk.h: New file.
9856
9857         * modules/unistr/u8-strrchr: New file.
9858         * modules/unistr/u16-strrchr: New file.
9859         * modules/unistr/u32-strrchr: New file.
9860         * lib/unistr/u8-strrchr.c: New file.
9861         * lib/unistr/u16-strrchr.c: New file.
9862         * lib/unistr/u32-strrchr.c: New file.
9863
9864         * modules/unistr/u8-strspn: New file.
9865         * modules/unistr/u16-strspn: New file.
9866         * modules/unistr/u32-strspn: New file.
9867         * lib/unistr/u8-strspn.c: New file.
9868         * lib/unistr/u16-strspn.c: New file.
9869         * lib/unistr/u32-strspn.c: New file.
9870         * lib/unistr/u-strspn.h: New file.
9871
9872         * modules/unistr/u8-strstr: New file.
9873         * modules/unistr/u16-strstr: New file.
9874         * modules/unistr/u32-strstr: New file.
9875         * lib/unistr/u8-strstr.c: New file.
9876         * lib/unistr/u16-strstr.c: New file.
9877         * lib/unistr/u32-strstr.c: New file.
9878         * lib/unistr/u-strstr.h: New file.
9879
9880         * modules/unistr/u8-strtok: New file.
9881         * modules/unistr/u16-strtok: New file.
9882         * modules/unistr/u32-strtok: New file.
9883         * lib/unistr/u8-strtok.c: New file.
9884         * lib/unistr/u16-strtok.c: New file.
9885         * lib/unistr/u32-strtok.c: New file.
9886         * lib/unistr/u-strtok.h: New file.
9887
9888         * modules/unistr/u8-uctomb: New file.
9889         * modules/unistr/u16-uctomb: New file.
9890         * modules/unistr/u32-uctomb: New file.
9891         * lib/unistr/u8-uctomb.c: New file.
9892         * lib/unistr/u16-uctomb.c: New file.
9893         * lib/unistr/u32-uctomb.c: New file.
9894
9895         * MODULES.html.sh (Unicode string functions): Add the new modules.
9896
9897 2007-01-08  Bruno Haible  <bruno@clisp.org>
9898
9899         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
9900         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
9901         subdirectories.
9902
9903 2007-01-08  Karl Berry  <karl@gnu.org>
9904
9905         * doc/error.texi: mention that main() fns must set program_name
9906         when progname is used.
9907
9908 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9909
9910         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
9911         WCTYPE_H is empty, for the benefit of builds from non-distclean
9912         directories.  Problem reported by Eric Blake in
9913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
9914
9915 2007-01-08  Bruno Haible  <bruno@clisp.org>
9916
9917         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
9918         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
9919         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
9920         PROVIDE_CANONICALIZE_FILENAME_MODE.
9921         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
9922
9923 2007-01-08  Bruno Haible  <bruno@clisp.org>
9924
9925         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
9926         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
9927         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
9928         * lib/fts.c: Likewise.
9929         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
9930
9931 2006-12-25  Bruno Haible  <bruno@clisp.org>
9932
9933         * modules/utf8-ucs4-safe: New file.
9934         * lib/utf8-ucs4-safe.h: New file.
9935         * lib/unistr/utf8-ucs4-safe.c: New file.
9936
9937         * modules/utf16-ucs4-safe: New file.
9938         * lib/utf16-ucs4-safe.h: New file.
9939         * lib/unistr/utf16-ucs4-safe.c: New file.
9940
9941         * MODULES.html.sh (Unicode string functions): Add the new modules.
9942
9943 2007-01-08  Bruno Haible  <bruno@clisp.org>
9944
9945         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
9946         (Depends-on): Add unitypes.
9947         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
9948         (u8_mbtouc_aux): Move out to separate file.
9949         (u8_mbtouc): Use ucs4_t, uint8_t types.
9950         * lib/unistr/utf8-ucs4.c: New file.
9951
9952         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
9953         (Depends-on): Add unitypes.
9954         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
9955         (u16_mbtouc_aux): Move out to separate file.
9956         (u16_mbtouc): Use ucs4_t, uint16_t types.
9957         * lib/unistr/utf16-ucs4.c: New file.
9958
9959         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
9960         (Depends-on): Add unitypes.
9961         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
9962         (u8_uctomb_aux): Move out to separate file.
9963         (u8_uctomb): Use ucs4_t, uint8_t types.
9964         * lib/unistr/ucs4-utf8.c: New file.
9965
9966         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
9967         (Depends-on): Add unitypes.
9968         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
9969         (u16_uctomb_aux): Move out to separate file.
9970         (u16_uctomb): Use ucs4_t, uint16_t types.
9971         * lib/unistr/ucs4-utf16.c: New file.
9972
9973 2006-12-25  Bruno Haible  <bruno@clisp.org>
9974
9975         * modules/unitypes: New file.
9976         * lib/unitypes.h: New file.
9977         * MODULES.html.sh (func_all_modules): New section "Unicode string
9978         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
9979         this section. Add unitypes.
9980
9981 2007-01-08  Bruno Haible  <bruno@clisp.org>
9982
9983         Avoid variable names that conflict with those from libtool.
9984         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
9985         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
9986         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
9987         library_names_spec to acl_library_names_spec, hardcode_* to
9988         acl_hardcode_*.
9989         Reported by Ralf Wildenhues.
9990
9991 2007-01-08  Bruno Haible  <bruno@clisp.org>
9992
9993         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
9994         definition.
9995         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
9996         definition.
9997         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
9998         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
9999         definition.
10000         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
10001         definition.
10002         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
10003         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
10004         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
10005         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
10006         definition.
10007         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
10008         definition.
10009         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
10010         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
10011         GC_USE_<algorithm>.
10012         * lib/gc-libgcrypt.c: Likewise.
10013         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
10014         * modules/gc-arctwo (configure.ac): Likewise.
10015         * modules/gc-des (configure.ac): Likewise.
10016         * modules/gc-hmac-md5 (configure.ac): Likewise.
10017         * modules/gc-hmac-sha1 (configure.ac): Likewise.
10018         * modules/gc-md2 (configure.ac): Likewise.
10019         * modules/gc-md4 (configure.ac): Likewise.
10020         * modules/gc-md5 (configure.ac): Likewise.
10021         * modules/gc-random (configure.ac): Likewise.
10022         * modules/gc-rijndael (configure.ac): Likewise.
10023         * modules/gc-sha1 (configure.ac): Likewise.
10024
10025 2007-01-08  Bruno Haible  <bruno@clisp.org>
10026
10027         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
10028         macro definition.
10029         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
10030         definition.
10031         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
10032         definition.
10033         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
10034         * modules/fcntl-safer (configure.ac): Likewise.
10035         * modules/fopen-safer (configure.ac): Likewise.
10036         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
10037         GNULIB_FWRITEERROR macro definition.
10038
10039 2007-01-08  Bruno Haible  <bruno@clisp.org>
10040
10041         * m4/gnulib-common.m4: New file.
10042         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
10043         (func_get_filelist): Add m4/gnulib-common.m4.
10044
10045 2007-01-08  Bruno Haible  <bruno@clisp.org>
10046
10047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
10048         command.
10049
10050 2007-01-08  Jim Meyering  <jim@meyering.net>
10051
10052         Use a more robust test for a "can't happen" condition.
10053         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
10054         narrowed the st_size value.  Presuming the "can't happen" condition
10055         is true, that narrowing could conceivably convert an invalid st_size
10056         value into a valid one.  Instead, use a change based on Matthew
10057         Woehlke's original patch.
10058
10059         Slight readability improvement: use an assert-like macro
10060         in place of literal "abort ()" uses.
10061         * lib/fts.c (fts_assert): Define.
10062         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
10063         Use this macro instead of a bare 'abort'.
10064
10065 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10066
10067         Don't worry about using IRIX 5.3's wctype.h broken definitions;
10068         simply work around them.
10069         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
10070         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
10071         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
10072         declaring.
10073         Don't bother to define as macros, since the standard doesn't require it.
10074         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
10075         longer worry about IRIX 5.3.
10076         (HAVE_WCTYPE_CTMP_BUG): Remove.
10077
10078 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10079
10080         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
10081         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
10082         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10083         Problems reported by Georg Schwarz for IRIX 5.3.
10084
10085         * gnulib-tool (autoconf_minversion): Take the maximum version number
10086         found, not the minimum.  Problem reported by James Youngman.
10087
10088 2007-01-03  Karl Berry  <karl@gnu.org>
10089
10090         * doc/error.texi: new file, explaining interaction with progname.
10091         * doc/gnulib.texi: include it.  Update copyright.
10092
10093 2007-01-03  Simon Josefsson  <simon@josefsson.org>
10094
10095         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
10096         AC_CANONICAL_HOST, to improve autobuild outputs.
10097
10098 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
10099             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10100
10101         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
10102         sockets, server sockets, and other file descriptors.  Count errors
10103         to compute the return value.  Reorder the code a bit to be easier
10104         to follow.  Don't set event bits that were not requested (except
10105         POLLERR and POLLHUP).
10106
10107 2007-01-01  Bruno Haible  <bruno@clisp.org>
10108
10109         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
10110
10111 2007-01-03  Jim Meyering  <jim@meyering.net>
10112
10113         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
10114
10115 2007-01-02  Bruno Haible  <bruno@clisp.org>
10116
10117         * modules/settime (Include): Require timespec.h.
10118         * modules/nanosleep (Include): Likewise.
10119
10120 2007-01-01  Bruno Haible  <bruno@clisp.org>
10121
10122         * gnulib-tool (func_emit_copyright_notice): Bump year.
10123         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
10124
10125 2007-01-01  Bruno Haible  <bruno@clisp.org>
10126
10127         Improve support for OpenBSD.
10128         * build-aux/config.rpath (libname_spec): Export.
10129         (library_names_spec): New variable. Export.
10130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
10131         library_names_spec from the config.rpath output. Locate shared library
10132         through the name pattern in library_names_spec.
10133
10134 2007-01-01  Eric Blake  <ebb9@byu.net>
10135
10136         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
10137
10138 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10139
10140         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
10141         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
10142         assume the C locale, and avoid an "eval" that could cause trouble.
10143         Problem with SORT reported by Bob Proulx.
10144
10145         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
10146         Define.  Trivial patch from Henning Nielsen Lund, originally
10147         sent to bug-grep@gnu.org today.
10148
10149 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10150
10151         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
10152         struct stat.  Problem reported by Henning Nielsen Lund.
10153         * lib/acl.c: Include acl.h first, to check interface.  Don't
10154         bother to include sys/types.h and sys/stat.h again.
10155
10156 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10157
10158         Import the following change from libc; problem reported by
10159         Sven Verdoolaege.
10160
10161         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
10162
10163         [BZ #1373]
10164         * lib/argp.h: Remove __NTH for __argp_usage inline function.
10165
10166 2006-12-28  Jim Meyering  <jim@meyering.net>
10167
10168         * build-aux/announce-gen: Do not assume that the package
10169         builds any of tar.gz, tar.bz2, and .xdelta files.
10170         Suggestion from Simon Josefsson.
10171
10172 2006-12-28  Simon Josefsson  <simon@josefsson.org>
10173
10174         * modules/announce-gen: New file.
10175
10176 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10177
10178         * lib/mbchar.h: Just include <wctype.h>; the wctype module
10179         handles its gotchas now.
10180         * lib/mbswidth.c: Likewise.
10181         * lib/wcwidth.h: Likewise.
10182         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
10183         and iswcntrl; the wctype module does this stuff now.
10184         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10186         * modules/mbchar (Depends-on): Add wctype.
10187         * modules/mbswidth (Depends-on): Likewise.
10188         * modules/wcwidth (Depends-on): Likewise.
10189
10190 2006-12-27  Eric Blake  <ebb9@byu.net>
10191
10192         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
10193         module uses more than what <wctype.h> is required to provide.
10194
10195 2006-12-26  Eric Blake  <ebb9@byu.net>
10196
10197         * gnulib-tool (sed_extract_prog): Avoid space-tab.
10198
10199 2006-12-26  Eric Blake  <ebb9@byu.net>
10200
10201         * modules/absolute-header: New module.
10202         * modules/fcntl (Depends-on): Depend on it.
10203         * modules/inttypes (Depends-on): Likewise.
10204         * modules/stdint (Depends-on): Likewise.
10205         * modules/sys_stat (Depends-on): Likewise.
10206         * modules/wctype (Depends-on): Likewise.
10207         * MODULES.html.sh (Support for building libraries and
10208         executables): Document it.
10209
10210 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10211
10212         * gnulib-tool (SED): Remove, undoing previous change.
10213         The problem was that it broke coreutils on Solaris, because
10214         "sed --posix" leaked into a makefile.
10215         (sed): New alias, if 'alias' and GNU sed.
10216
10217 2006-12-24  Jim Meyering  <jim@meyering.net>
10218
10219         Work around an fchownat bug in glibc-2.4:
10220         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
10221         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
10222         in spite of the -P option.
10223         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
10224         New macros.
10225         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
10226         * modules/openat (Files): Add lib/fchownat.c.
10227         * lib/openat.c (fchownat): Don't define here.  Move to...
10228         * lib/fchownat.c: ...this new file.
10229
10230 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10231
10232         Fix bug reported by Bruno Haible in
10233         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
10234         where quotearg.c didn't compile on Mac OS X 10.2 because it
10235         lacks <wchar.h> and wint_t.
10236         * lib/wctype_.h (__wctype_wint_t): New type.
10237         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
10238         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
10239         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
10240         Arg is now of type __wctype_wint_t, not wint_t.
10241         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
10242         substitute HAVE_WINT_T.
10243         * modules/wctype (Files): Add m4/wint_t.m4.
10244         (wctype.h): Substitute HAVE_WINT_T.
10245
10246 2006-12-23  Bruno Haible  <bruno@clisp.org>
10247
10248         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
10249
10250 2006-12-23  Bruno Haible  <bruno@clisp.org>
10251
10252         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
10253         S_ISLNK.
10254         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
10255         mingw.
10256
10257 2006-12-22  Bruno Haible  <bruno@clisp.org>
10258
10259         * lib/copy-file.c: Include acl.h.
10260         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
10261         Close the file descriptors only after being done with copy_acl.
10262         * modules/copy-file (Depends-on): Add acl.
10263
10264 2006-12-22  Bruno Haible  <bruno@clisp.org>
10265
10266         * gnulib-tool (SED): New variable.
10267         Use $SED instead of sed everywhere.
10268
10269 2006-12-22  Bruno Haible  <bruno@clisp.org>
10270
10271         * modules/no-c++: New file.
10272         * m4/no-c++.m4: New file.
10273         * MODULES.html.sh (Support for building libraries and executables):
10274         Add no-c++.
10275
10276 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10277
10278         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
10279         Include <limits.h>, and use its INT_MAX to rewrite the
10280         j loop so that it does not overflow 'int'.  Problem reported by
10281         Ralf Wildenhues in
10282         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
10283         Play it safe by shifting left by 1 rather than multiplying by 2,
10284         as GCC is less likely to optimize this away when the value
10285         is signed (when it assumes overflow leads to undefined behavior).
10286         Also, don't assume time_t uses two's complement.
10287
10288 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10289
10290         * MODULES.html.sh: New module wctype.
10291         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
10292         * lib/fnmatch.c: Don't bother to include <wchar.h> before
10293         <wctype.h>, since the new wctype module should fix this.
10294         * lib/quotearg.c: Include <wctype.h> unconditionally, since
10295         the wctype module should arrange for it.
10296         * lib/regex_internal.h: Likewise.
10297         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
10298         since the wctype module should handle this now.
10299         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
10300         * modules/fnmatch (Depends-on): Add wctype.
10301         * modules/quotearg (Depends-on): Likewise.
10302         * modules/regex (Depends-on): Likewise.
10303
10304 2006-12-19  Bruno Haible  <bruno@clisp.org>
10305
10306         * lib/strdup.h [C++]: Wrap definitions in extern "C".
10307         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
10308
10309 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10310
10311         * modules/savewd (Depends-on): Fix dependency on fcntl.
10312
10313 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10314
10315         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
10316         conforms to C99, rather than relying on the user's environment
10317         setting of STDINT_H.
10318
10319 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10320         and Eric Blake  <ebb9@byu.net>
10321
10322         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
10323         This is more consistent with the other defines here.
10324         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
10325         Port to z/OS.  Problem reported by Paul Gilmartin.
10326         Change local vars to use gl_ prefix rather than ac_.
10327         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
10328         with other defines.
10329         * modules/double-slash-root: New module.
10330         * modules/dirname (Files): Remove m4/double-slash-root.m4.
10331         (Depends-on): Add double-slash-root.
10332         * MODULES.html.sh (File system functions): Mention new module.
10333
10334 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10335
10336         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
10337         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
10338         This is for the benefit of gzip, which doesn't do i18n.
10339
10340 2006-12-12  Jim Meyering  <jim@meyering.net>
10341
10342         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
10343         Reported by Andreas Schwab <schwab@suse.de>.
10344
10345 2006-12-12  Bruno Haible  <bruno@clisp.org>
10346
10347         Merge these changes.
10348         2006-09-05  Bruno Haible  <bruno@clisp.org>
10349         * lib/iconvme.c (iconv_string): No need to save and restore errno when
10350         iconv_alloc succeeded.
10351         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
10352         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
10353         test for " && dest " at the end - dest is always != NULL there. Call
10354         iconv with 4xNULL arguments initially, to reset the state. Call iconv
10355         with 2xNULL arguments, also to flush the state storage. Handle the
10356         IRIX iconv behaviour. Realloc the final result, to throw away unused
10357         memory.
10358
10359 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10360
10361         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
10362         and fchmodat unconditionally, since glibc 2.4 has them.
10363         Problem reported by Arkadiusz Miskiewicz.
10364
10365 2006-12-10  Bruno Haible  <bruno@clisp.org>
10366
10367         * gnulib-tool (func_import): Show the include files only for those
10368         modules that are copied and specified.
10369         Reported by Karl Berry.
10370
10371 2006-12-08  Jim Meyering  <jim@meyering.net>
10372
10373         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
10374         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
10375
10376         * build-aux/announce-gen: Add two new options, both optional:
10377         --bootstrap-tools=TOOL_LIST
10378               a comma-separated list of tools, e.g.,
10379               autoconf,automake,bison,gnulib
10380         --gnulib-snapshot-date=DATE
10381               if gnulib is in the bootstrap tool list,
10382               then report this as the snapshot date.
10383               If not specified, use the current date/time.
10384               If you specify a date here, be sure it's UTC.
10385
10386 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10387
10388         * tests/test-argp-2.sh: Fix test to match actual output.
10389         (func_compare): Fix sed script to be portable.
10390
10391 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
10392
10393         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
10394         workaround for this case.  It is not autoconfigured now; offhand
10395         it's hard to see how to autoconfigure it.
10396
10397 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
10400         a directory that is about to be chowned.  Such a directory's
10401         initial file permissions should permit the owner only and this
10402         should not be changed until after the chown, since the group and
10403         other bits would be incorrect if they granted permission before
10404         the chown.
10405
10406         Fix porting problem for iswctype reported by Georg Schwarz in:
10407         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
10408         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
10409         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
10410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
10411         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10412
10413 2006-12-03  Jim Meyering  <jim@meyering.net>
10414
10415         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
10416         p->fts_statp may not yet be defined.
10417         (fts_read): Instead, set it in the caller, once p->fts_statp is
10418         sure to be defined, and corresponds to a top-level directory.
10419         This bug made du -x fail.  Here's the coreutils test case:
10420         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
10421         Reported by Mike Frysinger.
10422
10423 2006-12-01  Jim Meyering  <jim@meyering.net>
10424
10425         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
10426         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
10427         Reported by Simon Josefsson.
10428
10429 2006-11-30  Jim Meyering  <jim@meyering.net>
10430
10431         * m4/warning.m4: Use the all-permissive copyright notice
10432         recommended by RMS (rather than LGPL).
10433         * m4/vararrays.m4: Likewise.
10434         * m4/flexmember.m4: Likewise.
10435
10436 2006-11-29  Bruno Haible  <bruno@clisp.org>
10437
10438         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10439         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
10440         using +=.
10441         Reported by Simon Josefsson <simon@josefsson.org>.
10442
10443 2006-11-28  James Youngman <jay@gnu.org>
10444
10445         * README: Advise users that they might find the bug-gnulib@gnu.org
10446         and autotools-announce@gnu.org mailing lists useful.
10447
10448 2006-11-28  Bruno Haible  <bruno@clisp.org>
10449
10450         * m4/ptrdiff_max.m4: Remove file.
10451
10452 2006-11-21  Bruno Haible  <bruno@clisp.org>
10453
10454         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
10455         _AC_COMPUTE_INT.
10456         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10457         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
10458         _AC_COMPUTE_INT.
10459         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10460         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
10461         _AC_COMPUTE_INT.
10462         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10463
10464 2006-11-28  Jim Meyering  <jim@meyering.net>
10465
10466         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
10467         warning from "gcc -Wshadow" about shadowing the builtin.
10468
10469 2006-11-27  Bruno Haible  <bruno@clisp.org>
10470
10471         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
10472         _AC_COMPUTE_INT.
10473         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
10474
10475 2006-11-27  Bruno Haible  <bruno@clisp.org>
10476             Paul Eggert  <eggert@cs.ucla.edu>
10477
10478         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
10479
10480 2006-11-26  Bruno Haible  <bruno@clisp.org>
10481
10482         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10483         noinst_LTLIBRARIES.
10484
10485 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
10486             Bruno Haible  <bruno@clisp.org>
10487
10488         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
10489         if compiling with "gcc -ansi".
10490
10491 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10492
10493         Fix some incompatibilities with gcc -ansi -pedantic.
10494         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
10495         if compiling pedantically with GCC, unless it's C99 or later.
10496         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
10497         it mishandles gcc -ansi -pedantic as well.
10498         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
10499         if gcc -pedantic.
10500         * lib/regexec.c (check_node_accept_bytes): Don't use auto
10501         initializers for struct if -pedantic, unless it's C99 or later.
10502
10503 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
10504
10505         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
10506         Don't close an fd more than once. Identical atimes indicate
10507         success, not failure.
10508
10509 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
10510
10511         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
10512
10513 2006-11-23  Jim Meyering  <jim@meyering.net>
10514
10515         * build-aux/announce-gen: New file.  From coreutils.
10516
10517 2006-11-22  Jim Meyering  <jim@meyering.net>
10518
10519         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
10520         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
10521         (fts_read): Use a temporary to narrow the overused st_size member
10522         before using it in a switch statement.  Reported by Matthew Woehlke.
10523
10524         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
10525         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10526
10527 2006-11-20  Bruno Haible  <bruno@clisp.org>
10528
10529         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
10530         changequote instead of pairs of brackets.
10531         Reported by Andreas Schwab <schwab@suse.de>.
10532
10533 2006-11-21  Jim Meyering  <jim@meyering.net>
10534
10535         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
10536         so as to remain compatible with older compilers.
10537         Patch from Michael Deutschmann.
10538
10539 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10540
10541         * MODULES.html.sh (File system functions): Add openat.
10542
10543         * lib/openat.h (rpl_fstatat): New macro, if
10544         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
10545         (fstatat): Define to rpl_fstatat under the same conditions,
10546         unless COMPILING_FSTATAT.
10547         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
10548         seems to have the bug.
10549         * lib/fstatat.c: New file.
10550         * modules/openat (Files): Add it.
10551
10552 2006-11-20  Bruno Haible  <bruno@clisp.org>
10553
10554         * Makefile: New file.
10555
10556 2006-11-20  Jim Meyering  <jim@meyering.net>
10557
10558         The beginnings of syntax-related checks for gnulib.
10559         * lib/Makefile: New file.
10560         * lib/t-idcache: New script.  Ensure that the two halves of
10561         idcache.c stay in sync.
10562
10563         * lib/idcache.c: Adjust comments in user- and group- portions to
10564         be more accurate, and to be consistent with one another.
10565
10566 2006-11-20  Jim Meyering  <jim@meyering.net>
10567
10568         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
10569         continue using the flexible array member (thus, this module performs
10570         half as many malloc calls), with the addition that...
10571         (getgroup, getuser): Consistently record a non-match via an empty
10572         "name" string, and map an empty string match to a NULL return value.
10573         * modules/idcache (Depends-on): Re-add flexmember.
10574
10575         * lib/idcache.c (getuser): Remove all uses of the register keyword.
10576         (getuidbyname, getgroup, getgidbyname): Likewise.
10577
10578         Use cleaner syntax: NULL rather than 0.
10579         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
10580
10581 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10582
10583         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
10584         It mishandled the case where the group was missing.
10585         Problem reported by Greg Schafer.
10586         * modules/idcache: Likewise.
10587
10588 2006-11-18  Jim Meyering  <jim@meyering.net>
10589
10590         * check-module (%exempt_header): Add exception for some
10591         conditionally-included headers.
10592
10593         * modules/i-ring (Depends-on): Add verify.
10594         (License): Change to LGPL.
10595
10596 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
10597
10598         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
10599         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
10600         and inttostr.h.  Use snprintf rather than uinttostr, so that
10601         LGPLed code doesn't depend on GPLed.
10602
10603 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10604
10605         * modules/inline (License): Change from GPL to LGPL.
10606
10607 2006-11-17  Jim Meyering  <jim@meyering.net>
10608
10609         * modules/d-type (License): Switch to LGPL.
10610
10611 2006-11-15  Bruno Haible  <bruno@clisp.org>
10612
10613         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
10614
10615 2006-11-15  Eric Blake  <ebb9@byu.net>
10616
10617         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
10618         the module dependency.
10619
10620 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10621             Bruno Haible  <bruno@clisp.org>
10622
10623         * gnulib-tool (func_create_testdir): Add license consistency check.
10624
10625 2006-11-15  Eric Blake  <ebb9@byu.net>
10626
10627         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
10628         random "(cached)" in configure output.
10629
10630 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10631
10632         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
10633         test for conforming inttypes.h is both announced and cached.
10634
10635         * MODULES.html.sh (seen_modules, seen_files): New variables.
10636         (func_module): Rewrite to use a few less gnulib-tool and sed
10637         invocations.  Avoid a couple of quadratic algorithms for ...
10638         (missed_modules, missed_files): ... these, with ...
10639         (func_append, func_tmpdir): ... these new functions, from
10640         gnulib-tool.  Analogously, install traps for cleanup.
10641
10642         * tests/test-gc.c (main): Remove unused variables.
10643         * tests/test-read-file.c: Include stdlib.h, for 'free'.
10644
10645 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
10646
10647         * modules/inttostr (License): Change to LGPL.
10648
10649 2006-11-14  Eric Blake  <ebb9@byu.net>
10650
10651         * modules/tempname (License): Change to LGPL.
10652
10653 2006-11-14  Eric Blake  <ebb9@byu.net>
10654
10655         * doc/functions.texi (Function Portability): *printf functions on
10656         Cygwin now understand all POSIX size specifiers.
10657
10658 2006-11-14  Bruno Haible  <bruno@clisp.org>
10659
10660         * modules/c-ctype (License): Change to LGPL.
10661
10662 2006-11-12  Bruno Haible  <bruno@clisp.org>
10663
10664         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10665         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
10666         for GNOME libraries, for which the include files are installed in
10667         subdirectories of $prefix/include.
10668
10669 2006-11-12  Bruno Haible  <bruno@clisp.org>
10670
10671         * m4/lib-link.m4: Require at least autoconf-2.54.
10672         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
10673         name to underscores for the --with option.
10674
10675 2006-11-13  Bruno Haible  <bruno@clisp.org>
10676
10677         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
10678         the tests directory.
10679         Reported by Ralf Wildenhues.
10680
10681 2006-11-13  Bruno Haible  <bruno@clisp.org>
10682
10683         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
10684         (func_emit_initmacro_end): Undo the override here.
10685         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
10686         Works around the famous automake error in coreutils.
10687
10688 2006-11-13  Eric Blake  <ebb9@byu.net>
10689
10690         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
10691         element, not its node.
10692
10693 2006-11-12  Bruno Haible  <bruno@clisp.org>
10694
10695         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
10696         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
10697
10698 2006-11-12  Bruno Haible  <bruno@clisp.org>
10699
10700         * gnulib-tool: New option --local-symlink.
10701         (func_usage): Document it.
10702         (lsymbolic): New variable.
10703         (func_import, func_create_testdir): If --symlink was not specified,
10704         test whether --local-symlink was specified and the file comes from
10705         the local_gnulib_dir.
10706
10707 2006-11-12  Bruno Haible  <bruno@clisp.org>
10708
10709         * gnulib-tool (func_ln): New function.
10710         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
10711
10712 2006-11-12  Bruno Haible  <bruno@clisp.org>
10713
10714         Finish support for source files in subdirectories.
10715         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
10716         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
10717         AUTOMAKE_OPTIONS.
10718         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
10719
10720 2006-11-12  Bruno Haible  <bruno@clisp.org>
10721
10722         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10723         EXTRA_lib_SOURCES augmentation.
10724         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
10725
10726 2006-11-12  Jim Meyering  <jim@meyering.net>
10727
10728         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
10729         file descriptors.  This also averts a failure on systems with
10730         native openat support when a traversed directory lacks "x" access.
10731         * lib/fts_.h: Include "i-ring.h"
10732         (struct FTS) [fts_fd_ring]: New member.
10733         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
10734         (FCHDIR): Add parentheses.
10735         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
10736         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
10737         When descending, rather than simply closing the previous
10738         fts_cwd_fd value, push that file descriptor onto the ring.
10739         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
10740         (fts_open): Initialize the new fd_ring member.
10741         (fts_close): Clear the ring.
10742         (fts_safe_changedir): When possible, use our new fd_ring to skip
10743         the diropen and fstat and dev/ino comparison that would normally
10744         accompany a virtual `chdir ("..")'.
10745
10746         * modules/fts (Depends-on): Add i-ring.
10747         * modules/i-ring: New module.
10748         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
10749         * m4/i-ring.m4: New file.
10750
10751 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10752
10753         * gnulib-tool (func_create_testdir): Fix replacement of
10754         `build-aux' in configure.ac.  Run autotools in gltests
10755         subdirectory.
10756         (func_create_testdir, func_create_megatestdir, test): There is
10757         no need for '--force' in most autotool invocations in a new
10758         tree.  Actually fail the whole test if any of the tools, or the
10759         configure or make stages fail.
10760
10761         Sync from Automake.
10762         * build-aux/gnupload: Revert last change.  Add pointer to upload
10763         instructions of the GNU Maintenance Instructions.
10764         Suggestion by Karl Berry.
10765
10766 2006-11-10  Jim Meyering  <jim@meyering.net>
10767
10768         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
10769
10770 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10771
10772         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
10773         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
10774         (bind_textdomain_codeset) [! ENABLE_NLS]:
10775         Evaluate all the arguments.  That way, callers get compatible behavior
10776         if the arguments have side effects.  Also, it avoids some GCC
10777         diagnostics in some cases; Joel E. Denny reported problems when Bison
10778         was configured with --enable-gcc-warnigs.
10779
10780 2006-11-10  Jim Meyering  <jim@meyering.net>
10781
10782         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
10783         relevant options in CFLAGS (like -O, -fno-inline) are taken into
10784         account.
10785
10786 2006-11-10  Jim Meyering  <jim@meyering.net>
10787
10788         * modules/inline: New file/module.
10789         * modules/xalloc (Files): Remove m4/inline.m4.
10790         (Depends-on): Add inline, instead.
10791         * modules/oset: Likewise.
10792         * modules/list: Likewise.
10793
10794 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10795
10796         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
10797         Problem reported by Matthew Woehlke.
10798
10799 2006-11-09  Bruno Haible  <bruno@clisp.org>
10800
10801         * lib/tempname.c (gen_tempname): Remove variant that invokes
10802         __gen_tempname.
10803         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
10804         __gen_tempname.
10805
10806 2006-11-08  Bruno Haible  <bruno@clisp.org>
10807
10808         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
10809         to 'yes' instead of 'cross-compiling'.
10810
10811 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
10812
10813         * lib/quotearg.h (quotearg_free): New decl.
10814         * lib/quotearg.c (quotearg_free): New function.
10815         (slot0, nslots, slotvec0, slotvec):
10816         Now file-scope so that quotearg_free can get at them.
10817
10818 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10819
10820         Sync from Automake.
10821         * build-aux/gnupload: Add missing 'gnu' to example URL.
10822         Report by Karl Berry.
10823
10824 2006-11-08  Bruno Haible  <bruno@clisp.org>
10825
10826         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
10827         Suggested by Paul Eggert.
10828
10829 2006-11-08  Jim Meyering  <jim@meyering.net>
10830
10831         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
10832         It's already included if !_LIBC.
10833         (fts_safe_changedir): Add a comment.
10834
10835 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10836
10837         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
10838         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
10839         Matthew Woehlke.
10840
10841         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
10842         definitions up, to avoid colliding with change below.
10843         (static_inline) [HAVE_INLINE]: New macro.
10844         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
10845         Provide extern decls when !HAVE_INLINE.  Do not define unless
10846         static_inline is defined, either by us or by xmalloc.c.  Use
10847         static_inline rather than static inline.
10848         (XCALLOC): Optimize sizeof(T) = 1 case.
10849         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
10850
10851 2006-11-07  Bruno Haible  <bruno@clisp.org>
10852
10853         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
10854         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
10855         AC_C_INLINE.
10856         * modules/xalloc (Files): Add m4/inline.m4.
10857
10858 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10859
10860         * README: Fix typo.
10861         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
10862         (Miscellanous Notes): ...from this.
10863
10864 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10865
10866         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10867         Mention that offsetof should be used instead of sizeof.
10868         From Bruno Haible.
10869
10870 2006-11-07  Bruno Haible  <bruno@clisp.org>
10871
10872         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
10873
10874 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10875
10876         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
10877         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
10878         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
10879         (gl_tree_add_before, gl_tree_add_after):
10880         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
10881         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
10882         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
10883         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
10884         (gl_linked_add_after, gl_linked_add_at): Likewise.
10885         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
10886         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
10887         (gl_tree_add_before, gl_tree_add_after): Likewise.
10888         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
10889         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
10890         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10891
10892 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10893
10894         * lib/gl_oset.h: Use C comment style, not C++ comment style.
10895
10896 2006-11-06  Bruno Haible  <bruno@clisp.org>
10897
10898         * m4/inline.m4: New file.
10899         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
10900         * modules/list (Files): Add m4/inline.m4.
10901         * modules/oset (Files): Likewise.
10902
10903 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10904
10905         * lib/idcache.c: Include <stddef.h>, for offsetof.
10906         (struct userid.name): Change from char * to a flexible array member.
10907         All uses changed.
10908         * modules/idcache (Depends-on): Add flexmember.
10909
10910         * MODULES.html.sh (Core language properties): New module flexmember.
10911         * modules/flexmember, m4/flexmember.m4: New files.
10912
10913         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
10914         inline functions that are identical with the old xnmalloc_inline,
10915         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
10916         that we can avoid some unnecessary integer multiplications and
10917         divisions in the common case where the element size is known at
10918         compile time.
10919         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
10920         needed.
10921         (xnboundedmalloc): Remove.
10922         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
10923         arguments, for consistency with rest of this header.
10924         (xcharalloc): Rewrite using XNMALLOC.
10925         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
10926         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
10927         versions have been moved to lib/xalloc.h and renamed to be the
10928         non-*_inline versions.
10929         (xmalloc, xrealloc): Implement without reference to the xnmalloc
10930         and xnrealloc functions, since those functions are now inline and
10931         now call us.
10932         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
10933         renaming described above.
10934         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
10935         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
10936         captures the dependency in AC_C_INLINE.
10937
10938         New module canonicalize-lgpl, proposed by Charles Wilson in
10939         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
10940         with a few small changes afterwards.
10941         * MODULES.html.sh (File system functions): New module
10942         canonicalize-lgpl.
10943         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
10944         and canonicalize_file_name.
10945         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
10946         * modules/canonicalize-lgpl: New files.
10947
10948 2006-11-05  Bruno Haible  <bruno@clisp.org>
10949
10950         * gnulib-tool (func_import, func_create_testdir): Create directories
10951         also for files in subdirectories of lib/.
10952
10953 2006-11-05  Bruno Haible  <bruno@clisp.org>
10954
10955         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
10956         ANSI C compliant.
10957
10958 2006-11-03  Bruno Haible  <bruno@clisp.org>
10959
10960         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
10961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
10962         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
10963         (xnboundedmalloc): New inline function.
10964         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
10965         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
10966         xmalloc.
10967         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
10968         xmalloc.
10969         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
10970         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
10971         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
10972         xmalloc.
10973         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
10974         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
10975         xmalloc.
10976         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
10977         gl_tree_add_after): Use XMALLOC instead of xmalloc.
10978         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
10979         xmalloc.
10980         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
10981         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
10982         gl_tree_add_after): Use XMALLOC instead of xmalloc.
10983         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
10984         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
10985         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
10986         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
10987
10988 2006-11-03  Bruno Haible  <bruno@clisp.org>
10989
10990         * lib/c-ctype.h [C++]: Define functions without name mangling.
10991         * lib/fwriteerror.h [C++]: Likewise.
10992         * lib/gcd.h [C++]: Likewise.
10993         * lib/linebreak.h [C++]: Likewise.
10994
10995 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10996
10997         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
10998         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
10999         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
11000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
11001         Check for functions and headers just once.
11002         Check for declaration of canonicalize_file_name.
11003         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
11004
11005 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
11006
11007         * gnulib-tool (func_import): Fix typo in actioncmd.
11008
11009 2006-11-02  Bruno Haible  <bruno@clisp.org>
11010
11011         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
11012         newline sequence in the Makefile.am snippet as a space, like "make"
11013         does.
11014         Reported by Roger Persson <perrog@gmail.com>.
11015
11016 2006-11-01  Bruno Haible  <bruno@clisp.org>
11017
11018         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
11019         already declared in <string.h>.
11020         * lib/strcase.h (strncasecmp): Don't declare it if yes.
11021
11022 2006-11-01  Bruno Haible  <bruno@clisp.org>
11023
11024         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
11025         * lib/strcase.h: Include <string.h>.
11026         (strcasecmp): Define to rpl_strcasecmp here.
11027
11028 2006-11-01  Bruno Haible  <bruno@clisp.org>
11029
11030         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
11031
11032 2006-11-01  Eric Blake  <ebb9@byu.net>
11033
11034         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
11035
11036         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
11037
11038 2006-10-29  Bruno Haible  <bruno@clisp.org>
11039
11040         Make it compile in C++ mode.
11041         * lib/full-write.c (full_rw): Add a cast.
11042
11043 2006-11-01  Bruno Haible  <bruno@clisp.org>
11044
11045         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
11046         be POSIX compliant.
11047         Reported by Roger Persson <perrog@gmail.com>.
11048
11049 2006-11-01  Eric Blake  <ebb9@byu.net>
11050
11051         * lib/getopt_.h: Fix comments.
11052
11053 2006-10-31  Eric Blake  <ebb9@byu.net>
11054
11055         * modules/tmpdir (Depends-on): Add sys_stat.
11056         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
11057         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
11058         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
11059         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
11060         tempname.
11061
11062 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         Avoid some C++ diagnostics reported by Bruno Haible.
11065         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
11066         xmalloc.
11067         (quotearg_alloc): Use xcharalloc rather than xmalloc.
11068         (struct slotvec): Move to top level.
11069         (quotearg_n_options): Rewrite to avoid xmalloc.
11070         * lib/xalloc.h (xcharalloc): New function.
11071         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
11072         [defined __cplusplus]: Add function template that provides result
11073         type propagation.  This part of the change is from Bruno Haible.
11074
11075 2006-10-29  Bruno Haible  <bruno@clisp.org>
11076
11077         Make it compile in C++ mode.
11078         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
11079         * lib/strnlen1.c (strnlen1): Cast memchr result.
11080         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
11081         * lib/clean-temp.c (string_equals, string_hash): Add casts.
11082         (create_temp_dir): Rename local variable 'template'.
11083         (compile_csharp_using_sscli): Add cast.
11084         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
11085         * lib/findprog.c (find_in_path): Likewise.
11086         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
11087         * lib/wait-process.c (register_slave_subprocess): Likewise.
11088
11089 2006-10-22  Bruno Haible  <bruno@clisp.org>
11090
11091         * modules/tsearch: New file.
11092         * lib/tsearch.h: New file.
11093         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
11094         * m4/tsearch.m4: New file.
11095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
11096
11097 2006-10-29  Eric Blake  <ebb9@byu.net>
11098
11099         * lib/arcfour.c: Assume config.h.
11100         * lib/arctwo.c: Likewise.
11101         * lib/base64.c: Likewise.
11102         * lib/check-version.c: Likewise.
11103         * lib/crc.c: Likewise.
11104         * lib/des.c: Likewise.
11105         * lib/gc-gnulib.c: Likewise.
11106         * lib/gc-libgcrypt.c: Likewise.
11107         * lib/gc-pbkdf2-sha1.c: Likewise.
11108         * lib/getaddrinfo.c: Likewise.
11109         * lib/getdelim.c: Likewise.
11110         * lib/getline.c: Likewise.
11111         * lib/hmac-md5.c: Likewise.
11112         * lib/hmac-sha1.c: Likewise.
11113         * lib/iconvme.c: Likewise.
11114         * lib/md2.c: Likewise.
11115         * lib/md4.c: Likewise.
11116         * lib/memxor.c: Likewise.
11117         * lib/read-file.c: Likewise.
11118         * lib/readline.c: Likewise.
11119         * lib/rijndael-alg-fst.c: Likewise.
11120         * lib/rijndael-api-fst.c: Likewise.
11121         * lib/xgetdomainname.c: Likewise.
11122
11123 2006-10-28  Eric Blake  <ebb9@byu.net>
11124
11125         * lib/xstrndup.c: Assume config.h.
11126
11127 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
11130         stat-macros.h is now for our own macros, whereas stat_h is for
11131         macros in the <sys/stat.h> name space.
11132         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
11133         (STAT_MACROS_H): Remove.
11134         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
11135         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
11136         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
11137         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
11138         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
11139         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
11140         Move these macros to ...
11141         * lib/stat_.h: here.  Don't include stat-macros.h.
11142         * lib/canonicalize.c: Don't include stat-macros.h.
11143         * lib/chown.c: Likewise.
11144         * lib/euidaccess.c: Likewise.
11145         * lib/file-type.c: Likewise.
11146         * lib/filemode.c: Likewise.
11147         * lib/glob.c: Likewise.
11148         * lib/isapipe.c: Likewise.
11149         * lib/lchown.c: Likewise.
11150         * lib/lstat.c: Likewise.
11151         * lib/mkdir-p.c: Likewise.
11152         * lib/rmdir.c: Likewise.
11153         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
11154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
11155         unless mkdir isn't declared, to speed up 'configure'.
11156         Always create sys/stat.h, since it's unlikely any real sys/stat.h
11157         would define all the S_* symbols.
11158         * modules/canonicalize (Depends-on):
11159         Depend on sys_stat, not stat-macros.
11160         * modules/chown: Likewise.
11161         * modules/euidaccess: Likewise.
11162         * modules/filemode: Likewise.
11163         * modules/file-type: Likewise.
11164         * modules/glob: Likewise.
11165         * modules/isapipe: Likewise.
11166         * modules/lchown: Likewise.
11167         * modules/lstat: Likewise.
11168         * modules/mkancesdirs: Likewise.
11169         * modules/rmdir: Likewise.
11170         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
11171         * modules/modechange: Likewise.
11172         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
11173         (configure.ac): Remove gl_STAT_MACROS.
11174         * modules/sys_stat (Depends-on): Remove stat-macros.
11175
11176 2006-10-27  Bruno Haible  <bruno@clisp.org>
11177
11178         * m4/signed.m4: Remove file.
11179         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
11180         invocation.
11181         * modules/vasnprintf (Files): Remove m4/signed.m4.
11182
11183 2006-10-27  Bruno Haible  <bruno@clisp.org>
11184
11185         Update to GNU gettext 0.16.
11186         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
11187         m4/inttypes-h.m4, m4/signed.m4.
11188         * m4/gettext.m4: Update to GNU gettext 0.16.
11189         * m4/intl.m4: New file, from GNU gettext.
11190         * m4/intldir.m4: New file, from GNU gettext.
11191         * config/srclist.txt: Update
11192
11193 2006-10-27  Eric Blake  <ebb9@byu.net>
11194
11195         * MODULES.html.sh: Document tempname.
11196         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
11197         dependencies.
11198         (Files): Move lib/tempname.c...
11199         * modules/tempname: ...to this new module.
11200         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
11201         (gl_PREREQ_TEMPNAME): Move...
11202         * m4/tempname.m4: ...to this new file.
11203         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
11204         * modules/sys_stat (Depends-on): Add stat-macros.
11205         * lib/stat_.h (includes): Pick up stat macros.
11206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
11207         if stat macros are broken.
11208         * lib/tempname.c (includes): No need to include "stat-macros.h".
11209         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
11210         (direxists, __path_search) [!_LIBC]: Don't compile these in
11211         gnulib; the tmpdir module covers that.
11212         * lib/tempname.h: New file.
11213
11214 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11215
11216         * COPYING: Explain how gnulib-tool converts licence headers.
11217         Almost all wording by Eric Blake.
11218
11219 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11220
11221         * lib/mbchar.h (is_basic_table): Make read-only.
11222         * lib/mbchar.c (is_basic_table): Likewise.
11223         Reported by John Darrington.
11224
11225 2006-10-25  Bruno Haible  <bruno@clisp.org>
11226
11227         * lib/progname.h (set_program_name): Undefine before defining.
11228
11229 2006-10-25  Bruno Haible  <bruno@clisp.org>
11230
11231         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
11232         false for non-gcc C++ compilers.
11233         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11234
11235 2006-10-24  Bruno Haible  <bruno@clisp.org>
11236
11237         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
11238         iconv implementations like Irix iconv.
11239
11240 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11241
11242         * modules/vararrays: New file.
11243         * m4/vararrays.m4: New file, taken from diffutils.
11244         * MODULES.html.sh: New module vararrays.
11245
11246 2006-10-24  Karl Berry  <karl@gnu.org>
11247
11248         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
11249         Don't call GNU Unix.
11250
11251 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11252
11253         * users.txt: Add Libtool.
11254
11255         Sync from Libtool:
11256
11257         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11258
11259         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
11260         to gnulib's policy of including config.h unconditionally.
11261
11262 2006-10-24  Bruno Haible  <bruno@clisp.org>
11263
11264         * modules/wcwidth (Files): Add m4/wint_t.m4.
11265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
11266         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
11267
11268 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11269
11270         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
11271         to pacify GCC with some -W flags enabled.  Problem reported by
11272         Bruno Haible.
11273
11274 2006-10-24  Jim Meyering  <jim@meyering.net>
11275
11276         * MODULES.html.sh: Remove uinttostr.  It's not a module.
11277         Reported by Karl Berry.
11278
11279 2006-10-23  Bruno Haible  <bruno@clisp.org>
11280
11281         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
11282
11283 2006-10-24  Bruno Haible  <bruno@clisp.org>
11284
11285         * lib/gl_list.h: Use C comment style, not C++ comment style.
11286
11287 2006-10-23  Eric Blake  <ebb9@byu.net>
11288
11289         * lib/getaddrinfo.c (includes): Add missing include.
11290
11291 2006-10-23  Bruno Haible  <bruno@clisp.org>
11292             Paul Eggert  <eggert@cs.ucla.edu>
11293
11294         Ability to rename obstack_free.
11295         * lib/obstack.h (__obstack_free): New macro. Declare instead of
11296         obstack_free.
11297         (obstack_free): Invoke the __obstack_free macro.
11298         * lib/obstack.c (obstack_free): Use __obstack_free macro.
11299
11300 2006-10-23  Bruno Haible  <bruno@clisp.org>
11301             Paul Eggert  <eggert@cs.ucla.edu>
11302
11303         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
11304         __argc, __argv from the declaration. (They are defined as macros on
11305         mingw.)
11306
11307 2006-10-22  Bruno Haible  <bruno@clisp.org>
11308
11309         * doc/gnulib-intro.texi: New file.
11310         * doc/gnulib.texi: Include it.
11311
11312 2006-10-21  Bruno Haible  <bruno@clisp.org>
11313
11314         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
11315         "Introduction", "Miscellanous Notes", "Particular Modules".
11316
11317 2006-10-21  Bruno Haible  <bruno@clisp.org>
11318
11319         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11320         Change mostlyclean-local rule to avoid sh syntax error from bash
11321         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
11322
11323 2006-10-23  Jim Meyering  <jim@meyering.net>
11324
11325         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
11326         in place of snprintf.
11327
11328         * modules/inttostr (Files): Add lib/uinttostr.c.
11329         * lib/uinttostr.c (inttostr): New file/function.
11330         * lib/inttostr.h (uinttostr): Declare.
11331         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
11332         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
11333         Add uinttostr.
11334         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
11335
11336 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
11337
11338         * lib/canonicalize.c (ELOOP): Define if not already defined.
11339         Problem reported by Bruno Haible in
11340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
11341
11342 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
11343
11344         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
11345         Problem reported by Perry Smith and Ville Laurikari.
11346
11347         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
11348         uses.
11349
11350 2006-10-19  Bruno Haible  <bruno@clisp.org>
11351
11352         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
11353         for mingw.
11354
11355 2006-10-19  Bruno Haible  <bruno@clisp.org>
11356
11357         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
11358         Needed for mingw.
11359
11360 2006-10-19  Bruno Haible  <bruno@clisp.org>
11361
11362         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
11363
11364 2006-10-19  Bruno Haible  <bruno@clisp.org>
11365
11366         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
11367         it.
11368
11369 2006-10-19  Bruno Haible  <bruno@clisp.org>
11370
11371         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
11372         invocation.
11373
11374 2006-10-19  Bruno Haible  <bruno@clisp.org>
11375
11376         * gnulib-tool (func_create_testdir): Don't include ftruncate and
11377         mountlist by default.
11378
11379 2006-10-16  Bruno Haible  <bruno@clisp.org>
11380
11381         * lib/c-strstr.c: Include c-strstr.h.
11382
11383 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
11384
11385         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
11386         in a slash.
11387
11388 2006-10-18  Bruno Haible  <bruno@clisp.org>
11389
11390         * lib/lock.h [C++]: Wrap definitions in extern "C".
11391
11392 2006-10-18  Bruno Haible  <bruno@clisp.org>
11393
11394         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
11395         gl_LIBOBJS list.
11396
11397 2006-10-18  Bruno Haible  <bruno@clisp.org>
11398
11399         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
11400
11401 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * lib/xstrtol.h: Include gettext.h.
11404         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
11405         Problem reported by Eric Blake.
11406         * modules/xstrtol (Depends-on): Add gettext-h.
11407
11408 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
11409
11410         * lib/strftime.c (advance): New macro.
11411         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
11412         incomplete type, so you can't add 0 to it.  Problem and patch
11413         reported by Eelco Dolstra for dietlibc.
11414
11415 2006-10-18  Jim Meyering  <jim@meyering.net>
11416
11417         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
11418         type for a local, and rename it: s/up/user_proc/.
11419
11420 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
11421
11422         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
11423         READ_UTMP_USER_PROCESS.
11424         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
11425
11426 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
11429         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
11430
11431 2006-10-17  Eric Blake  <ebb9@byu.net>
11432
11433         * lib/sigprocmask.c (sigprocmask): Fix typo.
11434
11435         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
11436
11437         * modules/clean-temp (Makefile.am): Don't add to make output...
11438         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
11439         config.h.
11440
11441 2006-10-17  Bruno Haible  <bruno@clisp.org>
11442
11443         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
11444         differently if DEFAULT_TEXT_DOMAIN is set.
11445
11446 2006-10-16  Bruno Haible  <bruno@clisp.org>
11447
11448         * lib/clean-temp.c: Include fwriteerror.h.
11449
11450 2006-10-16  Bruno Haible  <bruno@clisp.org>
11451
11452         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
11453
11454 2006-10-16  Bruno Haible  <bruno@clisp.org>
11455
11456         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
11457         * lib/sigprocmask.h: Include <sys/types.h>.
11458         (sigset_t): Use the system's definition if present.
11459
11460 2006-10-17  Eric Blake  <ebb9@byu.net>
11461
11462         * lib/xvasprintf.c (includes): Assume config.h.
11463         * lib/xasprintf.c (includes): Likewise.
11464
11465 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11466
11467         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
11468         at least as wide as intmax_t.
11469
11470 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
11471
11472         (Imported from Automake.)
11473         * build-aux/gnupload: Update to version 1.1 of directive file.
11474
11475 2006-10-16  Eric Blake  <ebb9@byu.net>
11476
11477         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
11478         match Automake 1.10a.
11479
11480 2006-10-14  Bruno Haible  <bruno@clisp.org>
11481
11482         * modules/sigprocmask: New file.
11483         * lib/sigprocmask.h: New file.
11484         * lib/sigprocmask.c: New file.
11485         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
11486         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
11487         request sigprocmask.o.
11488         (gl_PREREQ_SIGPROCMASK): New macro.
11489         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
11490         (Depends-on): Add sigprocmask.
11491         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
11492         gt_SIGNALBLOCKING. Test for 'raise' only once.
11493         * lib/fatal-signal.c: Include sigprocmask.h.
11494         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
11495         unblock_fatal_signals): Define always.
11496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11497         sigprocmask.
11498
11499 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11500
11501         Sync from Automake.
11502         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
11503         which incorrectly sets the mode of an existing destination
11504         directory.  In some cases the unpatched install-sh could do the
11505         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
11506         system.  We hope this is rare in practice, but it's clearly worth
11507         fixing.  Problem reported by Alex Unleashed in
11508         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
11509         Also, don't bother to check for -m bugs unless we're using -m;
11510         suggested by Stepan Kasal.
11511
11512 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11513
11514         Sync from Automake.
11515         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
11516         `-c' flag, so they appear at the same position as in %FASTDEP%
11517         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
11518         which ignores unknown options only after the first non-option.
11519         Bug report against M4 by Nelson H. F. Beebe.
11520
11521 2006-10-13  Jim Meyering  <jim@meyering.net>
11522
11523         Fix a bug in yesterday's change.
11524         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
11525         p->fts_statp->st_dev would be used uninitialized.
11526         Ensures that we always call fts_stat on the very first entry.
11527         Miklos Szeredi reported that find -xdev stopped working.
11528
11529 2006-10-12  Bruno Haible  <bruno@clisp.org>
11530
11531         * gnulib-tool (func_get_automake_snippet): Append an automatically
11532         computed EXTRA_DIST augmentation.
11533         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
11534         * modules/alloca-opt (Makefile.am): Likewise.
11535         * modules/allocsa (Makefile.am): Likewise.
11536         * modules/arcfour (Makefile.am): Likewise.
11537         * modules/arctwo (Makefile.am): Likewise.
11538         * modules/argmatch (Makefile.am): Likewise.
11539         * modules/argz (Makefile.am): Likewise.
11540         * modules/atexit (Makefile.am): Likewise.
11541         * modules/backupfile (Makefile.am): Likewise.
11542         * modules/byteswap (Makefile.am): Likewise.
11543         * modules/c-strtod (Makefile.am): Likewise.
11544         * modules/c-strtold (Makefile.am): Likewise.
11545         * modules/calloc (Makefile.am): Likewise.
11546         * modules/canon-host (Makefile.am): Likewise.
11547         * modules/canonicalize (Makefile.am): Likewise.
11548         * modules/chdir-long (Makefile.am): Likewise.
11549         * modules/chdir-safer (Makefile.am): Likewise.
11550         * modules/check-version (Makefile.am): Likewise.
11551         * modules/chown (Makefile.am): Likewise.
11552         * modules/cloexec (Makefile.am): Likewise.
11553         * modules/close-stream (Makefile.am): Likewise.
11554         * modules/closeout (Makefile.am): Likewise.
11555         * modules/crc (Makefile.am): Likewise.
11556         * modules/csharpexec (Makefile.am): Likewise.
11557         * modules/cycle-check (Makefile.am): Likewise.
11558         * modules/des (Makefile.am): Likewise.
11559         * modules/dev-ino (Makefile.am): Likewise.
11560         * modules/dirfd (Makefile.am): Likewise.
11561         * modules/dirname (Makefile.am): Likewise.
11562         * modules/dup2 (Makefile.am): Likewise.
11563         * modules/eealloc (Makefile.am): Likewise.
11564         * modules/error (Makefile.am): Likewise.
11565         * modules/euidaccess (Makefile.am): Likewise.
11566         * modules/exclude (Makefile.am): Likewise.
11567         * modules/exitfail (Makefile.am): Likewise.
11568         * modules/fcntl-safer (Makefile.am): Likewise.
11569         * modules/fcntl (Makefile.am): Likewise.
11570         * modules/file-type (Makefile.am): Likewise.
11571         * modules/fileblocks (Makefile.am): Likewise.
11572         * modules/filemode (Makefile.am): Likewise.
11573         * modules/filenamecat (Makefile.am): Likewise.
11574         * modules/fnmatch (Makefile.am): Likewise.
11575         * modules/fopen-safer (Makefile.am): Likewise.
11576         * modules/fpending (Makefile.am): Likewise.
11577         * modules/fprintftime (Makefile.am): Likewise.
11578         * modules/free (Makefile.am): Likewise.
11579         * modules/fsusage (Makefile.am): Likewise.
11580         * modules/ftruncate (Makefile.am): Likewise.
11581         * modules/fts (Makefile.am): Likewise.
11582         * modules/gc-arcfour (Makefile.am): Likewise.
11583         * modules/gc-des (Makefile.am): Likewise.
11584         * modules/gc-hmac-md5 (Makefile.am): Likewise.
11585         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
11586         * modules/gc-md4 (Makefile.am): Likewise.
11587         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
11588         * modules/gc-sha1 (Makefile.am): Likewise.
11589         * modules/gc (Makefile.am): Likewise.
11590         * modules/getaddrinfo (Makefile.am): Likewise.
11591         * modules/getcwd (Makefile.am): Likewise.
11592         * modules/getdelim (Makefile.am): Likewise.
11593         * modules/getdomainname (Makefile.am): Likewise.
11594         * modules/getgroups (Makefile.am): Likewise.
11595         * modules/gethostname (Makefile.am): Likewise.
11596         * modules/gethrxtime (Makefile.am): Likewise.
11597         * modules/getline (Makefile.am): Likewise.
11598         * modules/getloadavg (Makefile.am): Likewise.
11599         * modules/getlogin_r (Makefile.am): Likewise.
11600         * modules/getndelim2 (Makefile.am): Likewise.
11601         * modules/getopt (Makefile.am): Likewise.
11602         * modules/getpagesize (Makefile.am): Likewise.
11603         * modules/getpass-gnu (Makefile.am): Likewise.
11604         * modules/getpass (Makefile.am): Likewise.
11605         * modules/getsubopt (Makefile.am): Likewise.
11606         * modules/gettime (Makefile.am): Likewise.
11607         * modules/gettimeofday (Makefile.am): Likewise.
11608         * modules/getugroups (Makefile.am): Likewise.
11609         * modules/getusershell (Makefile.am): Likewise.
11610         * modules/glob (Makefile.am): Likewise.
11611         * modules/group-member (Makefile.am): Likewise.
11612         * modules/hard-locale (Makefile.am): Likewise.
11613         * modules/hash (Makefile.am): Likewise.
11614         * modules/hmac-md5 (Makefile.am): Likewise.
11615         * modules/hmac-sha1 (Makefile.am): Likewise.
11616         * modules/human (Makefile.am): Likewise.
11617         * modules/idcache (Makefile.am): Likewise.
11618         * modules/imaxabs (Makefile.am): Likewise.
11619         * modules/imaxdiv (Makefile.am): Likewise.
11620         * modules/inet_ntop (Makefile.am): Likewise.
11621         * modules/inet_pton (Makefile.am): Likewise.
11622         * modules/intprops (Makefile.am): Likewise.
11623         * modules/inttostr (Makefile.am): Likewise.
11624         * modules/inttypes (Makefile.am): Likewise.
11625         * modules/isapipe (Makefile.am): Likewise.
11626         * modules/javaversion (Makefile.am): Likewise.
11627         * modules/lchmod (Makefile.am): Likewise.
11628         * modules/lchown (Makefile.am): Likewise.
11629         * modules/localcharset (Makefile.am): Likewise.
11630         * modules/long-options (Makefile.am): Likewise.
11631         * modules/lstat (Makefile.am): Likewise.
11632         * modules/malloc (Makefile.am): Likewise.
11633         * modules/mathl (Makefile.am): Likewise.
11634         * modules/mbchar (Makefile.am): Likewise.
11635         * modules/md2 (Makefile.am): Likewise.
11636         * modules/md4 (Makefile.am): Likewise.
11637         * modules/md5 (Makefile.am): Likewise.
11638         * modules/memcasecmp (Makefile.am): Likewise.
11639         * modules/memchr (Makefile.am): Likewise.
11640         * modules/memcmp (Makefile.am): Likewise.
11641         * modules/memcoll (Makefile.am): Likewise.
11642         * modules/memcpy (Makefile.am): Likewise.
11643         * modules/memmem (Makefile.am): Likewise.
11644         * modules/memmove (Makefile.am): Likewise.
11645         * modules/mempcpy (Makefile.am): Likewise.
11646         * modules/memrchr (Makefile.am): Likewise.
11647         * modules/memset (Makefile.am): Likewise.
11648         * modules/memxor (Makefile.am): Likewise.
11649         * modules/mkancesdirs (Makefile.am): Likewise.
11650         * modules/mkdir-p (Makefile.am): Likewise.
11651         * modules/mkdir (Makefile.am): Likewise.
11652         * modules/mkdtemp (Makefile.am): Likewise.
11653         * modules/mkstemp (Makefile.am): Likewise.
11654         * modules/mktime (Makefile.am): Likewise.
11655         * modules/modechange (Makefile.am): Likewise.
11656         * modules/mountlist (Makefile.am): Likewise.
11657         * modules/nanosleep (Makefile.am): Likewise.
11658         * modules/obstack (Makefile.am): Likewise.
11659         * modules/openat (Makefile.am): Likewise.
11660         * modules/pagealign_alloc (Makefile.am): Likewise.
11661         * modules/pathmax (Makefile.am): Likewise.
11662         * modules/physmem (Makefile.am): Likewise.
11663         * modules/poll (Makefile.am): Likewise.
11664         * modules/posixtm (Makefile.am): Likewise.
11665         * modules/posixver (Makefile.am): Likewise.
11666         * modules/putenv (Makefile.am): Likewise.
11667         * modules/quote (Makefile.am): Likewise.
11668         * modules/quotearg (Makefile.am): Likewise.
11669         * modules/raise (Makefile.am): Likewise.
11670         * modules/read-file (Makefile.am): Likewise.
11671         * modules/readline (Makefile.am): Likewise.
11672         * modules/readlink (Makefile.am): Likewise.
11673         * modules/readtokens (Makefile.am): Likewise.
11674         * modules/readutmp (Makefile.am): Likewise.
11675         * modules/realloc (Makefile.am): Likewise.
11676         * modules/regex (Makefile.am): Likewise.
11677         * modules/rename-dest-slash (Makefile.am): Likewise.
11678         * modules/rename (Makefile.am): Likewise.
11679         * modules/rijndael (Makefile.am): Likewise.
11680         * modules/rmdir (Makefile.am): Likewise.
11681         * modules/rpmatch (Makefile.am): Likewise.
11682         * modules/safe-read (Makefile.am): Likewise.
11683         * modules/safe-write (Makefile.am): Likewise.
11684         * modules/same-inode (Makefile.am): Likewise.
11685         * modules/same (Makefile.am): Likewise.
11686         * modules/save-cwd (Makefile.am): Likewise.
11687         * modules/savedir (Makefile.am): Likewise.
11688         * modules/setenv (Makefile.am): Likewise.
11689         * modules/settime (Makefile.am): Likewise.
11690         * modules/sha1 (Makefile.am): Likewise.
11691         * modules/sig2str (Makefile.am): Likewise.
11692         * modules/snprintf (Makefile.am): Likewise.
11693         * modules/stat-macros (Makefile.am): Likewise.
11694         * modules/stat-time (Makefile.am): Likewise.
11695         * modules/stdbool (Makefile.am): Likewise.
11696         * modules/stdint (Makefile.am): Likewise.
11697         * modules/stdlib-safer (Makefile.am): Likewise.
11698         * modules/stpcpy (Makefile.am): Likewise.
11699         * modules/stpncpy (Makefile.am): Likewise.
11700         * modules/strcase (Makefile.am): Likewise.
11701         * modules/strcasestr (Makefile.am): Likewise.
11702         * modules/strchrnul (Makefile.am): Likewise.
11703         * modules/strcspn (Makefile.am): Likewise.
11704         * modules/strdup (Makefile.am): Likewise.
11705         * modules/strerror (Makefile.am): Likewise.
11706         * modules/strftime (Makefile.am): Likewise.
11707         * modules/strndup (Makefile.am): Likewise.
11708         * modules/strnlen (Makefile.am): Likewise.
11709         * modules/strpbrk (Makefile.am): Likewise.
11710         * modules/strsep (Makefile.am): Likewise.
11711         * modules/strstr (Makefile.am): Likewise.
11712         * modules/strtod (Makefile.am): Likewise.
11713         * modules/strtoimax (Makefile.am): Likewise.
11714         * modules/strtok_r (Makefile.am): Likewise.
11715         * modules/strtol (Makefile.am): Likewise.
11716         * modules/strtoll (Makefile.am): Likewise.
11717         * modules/strtoul (Makefile.am): Likewise.
11718         * modules/strtoull (Makefile.am): Likewise.
11719         * modules/strtoumax (Makefile.am): Likewise.
11720         * modules/strverscmp (Makefile.am): Likewise.
11721         * modules/sys_socket (Makefile.am): Likewise.
11722         * modules/sys_stat (Makefile.am): Likewise.
11723         * modules/sysexits (Makefile.am): Likewise.
11724         * modules/time_r (Makefile.am): Likewise.
11725         * modules/timegm (Makefile.am): Likewise.
11726         * modules/timespec (Makefile.am): Likewise.
11727         * modules/tmpfile-safer (Makefile.am): Likewise.
11728         * modules/trim (Makefile.am): Likewise.
11729         * modules/unistd-safer (Makefile.am): Likewise.
11730         * modules/unlinkdir (Makefile.am): Likewise.
11731         * modules/unlocked-io (Makefile.am): Likewise.
11732         * modules/userspec (Makefile.am): Likewise.
11733         * modules/utime (Makefile.am): Likewise.
11734         * modules/utimecmp (Makefile.am): Likewise.
11735         * modules/utimens (Makefile.am): Likewise.
11736         * modules/vasnprintf (Makefile.am): Likewise.
11737         * modules/vasprintf (Makefile.am): Likewise.
11738         * modules/vsnprintf (Makefile.am): Likewise.
11739         * modules/xalloc (Makefile.am): Likewise.
11740         * modules/xgetcwd (Makefile.am): Likewise.
11741         * modules/xnanosleep (Makefile.am): Likewise.
11742         * modules/xreadlink (Makefile.am): Likewise.
11743         * modules/xstrtod (Makefile.am): Likewise.
11744         * modules/xstrtol (Makefile.am): Likewise.
11745         * modules/xstrtold (Makefile.am): Likewise.
11746         * modules/yesno (Makefile.am): Likewise.
11747         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
11748
11749 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11750
11751         * modules/error (Makefile.am): Distribute files through
11752         EXTRA_DIST, not lib_SOURCES.
11753
11754 2006-10-12  Eric Blake  <ebb9@byu.net>
11755
11756         * modules/error (Makefile.am): Distribute files in /lib.
11757         * modules/obstack (Makefile.am): Likewise.
11758
11759 2006-10-12  Bruno Haible  <bruno@clisp.org>
11760
11761         * modules/acl (Makefile.am): Distribute all files in lib/ through
11762         EXTRA_DIST.
11763         * modules/arcfour (Makefile.am): Likewise.
11764         * modules/arctwo (Makefile.am): Likewise.
11765         * modules/argmatch (Makefile.am): Likewise.
11766         * modules/argz (Makefile.am): Likewise.
11767         * modules/atexit (Makefile.am): Likewise.
11768         * modules/backupfile (Makefile.am): Likewise.
11769         * modules/c-strtod (Makefile.am): Likewise.
11770         * modules/c-strtold (Makefile.am): Likewise.
11771         * modules/calloc (Makefile.am): Likewise.
11772         * modules/canon-host (Makefile.am): Likewise.
11773         * modules/canonicalize (Makefile.am): Likewise.
11774         * modules/chdir-long (Makefile.am): Likewise.
11775         * modules/chdir-safer (Makefile.am): Likewise.
11776         * modules/check-version (Makefile.am): Likewise.
11777         * modules/chown (Makefile.am): Likewise.
11778         * modules/cloexec (Makefile.am): Likewise.
11779         * modules/close-stream (Makefile.am): Likewise.
11780         * modules/closeout (Makefile.am): Likewise.
11781         * modules/crc (Makefile.am): Likewise.
11782         * modules/cycle-check (Makefile.am): Likewise.
11783         * modules/des (Makefile.am): Likewise.
11784         * modules/dirfd (Makefile.am): Likewise.
11785         * modules/dirname (Makefile.am): Likewise.
11786         * modules/dup2 (Makefile.am): Likewise.
11787         * modules/euidaccess (Makefile.am): Likewise.
11788         * modules/exclude (Makefile.am): Likewise.
11789         * modules/exitfail (Makefile.am): Likewise.
11790         * modules/fcntl-safer (Makefile.am): Likewise.
11791         * modules/file-type (Makefile.am): Likewise.
11792         * modules/fileblocks (Makefile.am): Likewise.
11793         * modules/filemode (Makefile.am): Likewise.
11794         * modules/filenamecat (Makefile.am): Likewise.
11795         * modules/fnmatch (Makefile.am): Likewise.
11796         * modules/fopen-safer (Makefile.am): Likewise.
11797         * modules/fpending (Makefile.am): Likewise.
11798         * modules/fprintftime (Makefile.am): Likewise.
11799         * modules/free (Makefile.am): Likewise.
11800         * modules/fsusage (Makefile.am): Likewise.
11801         * modules/ftruncate (Makefile.am): Likewise.
11802         * modules/fts (Makefile.am): Likewise.
11803         * modules/gc (Makefile.am): Likewise.
11804         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
11805         * modules/getaddrinfo (Makefile.am): Likewise.
11806         * modules/getcwd (Makefile.am): Likewise.
11807         * modules/getdelim (Makefile.am): Likewise.
11808         * modules/getdomainname (Makefile.am): Likewise.
11809         * modules/getgroups (Makefile.am): Likewise.
11810         * modules/gethostname (Makefile.am): Likewise.
11811         * modules/gethrxtime (Makefile.am): Likewise.
11812         * modules/getline (Makefile.am): Likewise.
11813         * modules/getloadavg (Makefile.am): Likewise.
11814         * modules/getlogin_r (Makefile.am): Likewise.
11815         * modules/getopt (Makefile.am): Likewise.
11816         * modules/getpass (Makefile.am): Likewise.
11817         * modules/getpass-gnu (Makefile.am): Likewise.
11818         * modules/getsubopt (Makefile.am): Likewise.
11819         * modules/gettime (Makefile.am): Likewise.
11820         * modules/gettimeofday (Makefile.am): Likewise.
11821         * modules/getugroups (Makefile.am): Likewise.
11822         * modules/getusershell (Makefile.am): Likewise.
11823         * modules/glob (Makefile.am): Likewise.
11824         * modules/group-member (Makefile.am): Likewise.
11825         * modules/hard-locale (Makefile.am): Likewise.
11826         * modules/hash (Makefile.am): Likewise.
11827         * modules/hmac-md5 (Makefile.am): Likewise.
11828         * modules/hmac-sha1 (Makefile.am): Likewise.
11829         * modules/human (Makefile.am): Likewise.
11830         * modules/idcache (Makefile.am): Likewise.
11831         * modules/imaxabs (Makefile.am): Likewise.
11832         * modules/imaxdiv (Makefile.am): Likewise.
11833         * modules/inet_ntop (Makefile.am): Likewise.
11834         * modules/inet_pton (Makefile.am): Likewise.
11835         * modules/inttostr (Makefile.am): Likewise.
11836         * modules/isapipe (Makefile.am): Likewise.
11837         * modules/lchown (Makefile.am): Likewise.
11838         * modules/long-options (Makefile.am): Likewise.
11839         * modules/lstat (Makefile.am): Likewise.
11840         * modules/malloc (Makefile.am): Likewise.
11841         * modules/mathl (Makefile.am): Likewise.
11842         * modules/mbchar (Makefile.am): Likewise.
11843         * modules/md2 (Makefile.am): Likewise.
11844         * modules/md4 (Makefile.am): Likewise.
11845         * modules/md5 (Makefile.am): Likewise.
11846         * modules/memcasecmp (Makefile.am): Likewise.
11847         * modules/memchr (Makefile.am): Likewise.
11848         * modules/memcmp (Makefile.am): Likewise.
11849         * modules/memcoll (Makefile.am): Likewise.
11850         * modules/memcpy (Makefile.am): Likewise.
11851         * modules/memmem (Makefile.am): Likewise.
11852         * modules/memmove (Makefile.am): Likewise.
11853         * modules/mempcpy (Makefile.am): Likewise.
11854         * modules/memrchr (Makefile.am): Likewise.
11855         * modules/memset (Makefile.am): Likewise.
11856         * modules/memxor (Makefile.am): Likewise.
11857         * modules/mkancesdirs (Makefile.am): Likewise.
11858         * modules/mkdir (Makefile.am): Likewise.
11859         * modules/mkdir-p (Makefile.am): Likewise.
11860         * modules/mkdtemp (Makefile.am): Likewise.
11861         * modules/mkstemp (Makefile.am): Likewise.
11862         * modules/mktime (Makefile.am): Likewise.
11863         * modules/modechange (Makefile.am): Likewise.
11864         * modules/mountlist (Makefile.am): Likewise.
11865         * modules/nanosleep (Makefile.am): Likewise.
11866         * modules/openat (Makefile.am): Likewise.
11867         * modules/pagealign_alloc (Makefile.am): Likewise.
11868         * modules/physmem (Makefile.am): Likewise.
11869         * modules/poll (Makefile.am): Likewise.
11870         * modules/posixtm (Makefile.am): Likewise.
11871         * modules/posixver (Makefile.am): Likewise.
11872         * modules/putenv (Makefile.am): Likewise.
11873         * modules/quote (Makefile.am): Likewise.
11874         * modules/quotearg (Makefile.am): Likewise.
11875         * modules/raise (Makefile.am): Likewise.
11876         * modules/read-file (Makefile.am): Likewise.
11877         * modules/readline (Makefile.am): Likewise.
11878         * modules/readlink (Makefile.am): Likewise.
11879         * modules/readtokens (Makefile.am): Likewise.
11880         * modules/readutmp (Makefile.am): Likewise.
11881         * modules/realloc (Makefile.am): Likewise.
11882         * modules/regex (Makefile.am): Likewise.
11883         * modules/rename (Makefile.am): Likewise.
11884         * modules/rename-dest-slash (Makefile.am): Likewise.
11885         * modules/rijndael (Makefile.am): Likewise.
11886         * modules/rmdir (Makefile.am): Likewise.
11887         * modules/rpmatch (Makefile.am): Likewise.
11888         * modules/safe-read (Makefile.am): Likewise.
11889         * modules/safe-write (Makefile.am): Likewise.
11890         * modules/same (Makefile.am): Likewise.
11891         * modules/save-cwd (Makefile.am): Likewise.
11892         * modules/savedir (Makefile.am): Likewise.
11893         * modules/setenv (Makefile.am): Likewise.
11894         * modules/settime (Makefile.am): Likewise.
11895         * modules/sha1 (Makefile.am): Likewise.
11896         * modules/sig2str (Makefile.am): Likewise.
11897         * modules/snprintf (Makefile.am): Likewise.
11898         * modules/stdlib-safer (Makefile.am): Likewise.
11899         * modules/stpcpy (Makefile.am): Likewise.
11900         * modules/stpncpy (Makefile.am): Likewise.
11901         * modules/strcase (Makefile.am): Likewise.
11902         * modules/strcasestr (Makefile.am): Likewise.
11903         * modules/strchrnul (Makefile.am): Likewise.
11904         * modules/strcspn (Makefile.am): Likewise.
11905         * modules/strdup (Makefile.am): Likewise.
11906         * modules/strerror (Makefile.am): Likewise.
11907         * modules/strftime (Makefile.am): Likewise.
11908         * modules/strndup (Makefile.am): Likewise.
11909         * modules/strnlen (Makefile.am): Likewise.
11910         * modules/strpbrk (Makefile.am): Likewise.
11911         * modules/strsep (Makefile.am): Likewise.
11912         * modules/strstr (Makefile.am): Likewise.
11913         * modules/strtod (Makefile.am): Likewise.
11914         * modules/strtoimax (Makefile.am): Likewise.
11915         * modules/strtok_r (Makefile.am): Likewise.
11916         * modules/strtol (Makefile.am): Likewise.
11917         * modules/strtoll (Makefile.am): Likewise.
11918         * modules/strtoul (Makefile.am): Likewise.
11919         * modules/strtoull (Makefile.am): Likewise.
11920         * modules/strtoumax (Makefile.am): Likewise.
11921         * modules/strverscmp (Makefile.am): Likewise.
11922         * modules/time_r (Makefile.am): Likewise.
11923         * modules/timegm (Makefile.am): Likewise.
11924         * modules/tmpfile-safer (Makefile.am): Likewise.
11925         * modules/unistd-safer (Makefile.am): Likewise.
11926         * modules/unlinkdir (Makefile.am): Likewise.
11927         * modules/userspec (Makefile.am): Likewise.
11928         * modules/utime (Makefile.am): Likewise.
11929         * modules/utimecmp (Makefile.am): Likewise.
11930         * modules/utimens (Makefile.am): Likewise.
11931         * modules/vasnprintf (Makefile.am): Likewise.
11932         * modules/vasprintf (Makefile.am): Likewise.
11933         * modules/vsnprintf (Makefile.am): Likewise.
11934         * modules/xalloc (Makefile.am): Likewise.
11935         * modules/xgetcwd (Makefile.am): Likewise.
11936         * modules/xnanosleep (Makefile.am): Likewise.
11937         * modules/xreadlink (Makefile.am): Likewise.
11938         * modules/xstrtod (Makefile.am): Likewise.
11939         * modules/xstrtol (Makefile.am): Likewise.
11940         * modules/xstrtold (Makefile.am): Likewise.
11941         * modules/yesno (Makefile.am): Likewise.
11942
11943 2006-10-12  Jim Meyering  <jim@meyering.net>
11944
11945         * m4/getloadavg.m4: Revert the change below.
11946
11947         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
11948         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
11949         fail with a symlink, which is what coreutils' ./bootstrap now
11950         creates by default.
11951
11952 2006-10-12  Bruno Haible  <bruno@clisp.org>
11953
11954         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
11955         mingw.
11956         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
11957         MSVC and mingw explicitly.
11958
11959 2006-10-11  Simon Josefsson  <jas@extundo.com>
11960             Bruno Haible  <bruno@clisp.org>
11961
11962         Add support for multiple gnulib-tool invocations in the scope of a
11963         single configure.ac file.
11964         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
11965         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
11966         with the same contents as the _LIBADD variable.
11967         (func_emit_initmacro_start, func_emit_initmacro_end,
11968         func_emit_initmacro_done): New functions.
11969         (func_import, func_create_testdir): Invoke them. Allow the identifiers
11970         gl_LIBOBJS and gl_LTLIBOBJS.
11971
11972 2006-10-11  Bruno Haible  <bruno@clisp.org>
11973
11974         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
11975         (func_create_testdir): Don't create po/Makefile.am, don't invoke
11976         autoreconf. Instead, invoke autopoint explicitly but move back the
11977         *.m4 files from gnulib.
11978
11979 2006-10-11  Bruno Haible  <bruno@clisp.org>
11980
11981         * gnulib-tool (func_usage): Make module names after --create-testdir
11982         optional.
11983         (func_create_testdir): If no module was specified, use nearly all
11984         modules.
11985
11986 2006-10-12  Jim Meyering  <jim@meyering.net>
11987
11988         Big performance improvement for fts-based tools that use FTS_NOSTAT.
11989         Avoid spurious inode-mismatch problems on non-POSIX file systems.
11990         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
11991         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
11992         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
11993         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
11994         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
11995         (fts_set_stat_required): New function.
11996         (fts_open): Defer the calls to fts_stat, if possible or requested.
11997         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
11998         into fts_stat itself.
11999         (fts_read): Perform any required (deferred) fts_stat call.
12000         (fts_build): Likewise, for the directory we're about to open and read.
12001         In the readdir loop, carefully decide whether each entry will require
12002         an eventual call to fts_stat, using dirent.d_type info if available.
12003         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
12004         a command line argument into this function.  Update all callers.
12005         Map a return value of FTS_DOT to FTS_D for a command line argument.
12006         * modules/fts (Depends-on): Add d-type.  Alphabetize.
12007         Thanks to Miklos Szeredi for his tenacity and for the initial
12008         bug report about "find" failing on a FUSE-based file system.
12009
12010         * lib/fts.c (fts_open): Use consistent indentation.
12011
12012 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12013
12014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
12015         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
12016         reported by Jim Meyering.  All uses of cache variables renamed
12017         to match Autoconf's.
12018         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
12019         the other one.
12020
12021         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
12022         Fix misspelling in diagnostic.
12023
12024 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12025
12026         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
12027         defined.  Problem reported by Matthew Woehlke.
12028
12029         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
12030         Add support for Tandem NonStop R series.
12031         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
12032         Use new macro.
12033
12034         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
12035         (has_trailing_slash): Omit size arg; all callers changed.
12036         Omit 'inline', since it doesn't help performance and we'd
12037         need to configure it.
12038         Don't count //, ///, etc. as having a trailing slash.
12039         As a side effect, this removes a C99ism reported by Matthew Woehlke.
12040         (rpl_rename_dest_slash): On failure, use rename's errno rather
12041         than (in some cases) an incorrect or junk errno.
12042         Simplify code by removing need to compute length; this does
12043         cause it to make two passes instead of one over the file name,
12044         but it's worth it.
12045
12046         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
12047         change, since Autoconf's version may no longer be appropriate now
12048         that we are using CVS Autoconf's version.  Add support for Tandem.
12049
12050 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12051             Bruno Haible  <bruno@clisp.org>
12052
12053         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
12054         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
12055         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
12056         gl_AC_TYPE_LONG_LONG.
12057
12058         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
12059         instead of HAVE_LONG_LONG.
12060         * lib/printf-args.c (printf_fetchargs): Likewise.
12061         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12062         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12063         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
12064         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
12065         gl_AC_TYPE_LONG_LONG.
12066
12067 2006-10-11  Bruno Haible  <bruno@clisp.org>
12068
12069         * m4/longlong.m4: Add comments.
12070         * m4/ulonglong.m4: Likewise.
12071
12072 2006-10-10  Bruno Haible  <bruno@clisp.org>
12073
12074         Make it possible to #define stpcpy, strdup to aliases.
12075         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
12076         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
12077
12078 2006-10-10  Bruno Haible  <bruno@clisp.org>
12079
12080         Make it possible to #define gcd to an alias.
12081         * lib/gcd.c: Include config.h.
12082
12083 2006-10-10  Bruno Haible  <bruno@clisp.org>
12084
12085         Make it possible to #define c_isascii to an alias.
12086         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
12087         defined. Undefine the macros before defining them, to avoid gcc
12088         warnings.
12089         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
12090         define NO_C_CTYPE_MACROS early.
12091
12092 2006-10-10  Bruno Haible  <bruno@clisp.org>
12093
12094         Make it possible to #define set_program_name to an alias.
12095         * lib/progname.c: Don't undefine set_program_name; instead, undefine
12096         ENABLE_RELOCATABLE early.
12097
12098 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12099
12100         Port to Tandem NSK OSS, which has 64-bit signed int but at most
12101         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
12102         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
12103         More generally, don't assume that 64-bit signed int is available
12104         if unsigned int is, and vice versa.
12105         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
12106         unsigned symbols, not on their signed counterparts.
12107         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
12108         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
12109         (UINT64_C, UINTMAX_C):
12110         Likewise.
12111         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
12112         unsigned counterparts.
12113         (Have_long_long, Unsigned): New macros.
12114         (Int): Renamed from INT.
12115         (strtoimax): Use the new macros.
12116         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
12117         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
12118         * modules/inttypes (inttypes.h): Substitute
12119         HAVE_UNSIGNED_LONG_LONG_INT.
12120         * modules/stdint (stdint.h): Likewise.
12121         (Files): Add m4/ulonglong.m4.
12122
12123 2006-10-10  Bruno Haible  <bruno@clisp.org>
12124
12125         Fix a gcc -Wshadow warning.
12126         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
12127         to 'bucket'.
12128         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
12129         gl_linked_indexof_from_to): Likewise.
12130         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
12131         Likewise.
12132         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
12133         Likewise.
12134         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
12135         Reported by Eric Blake.
12136
12137 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12138
12139         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
12140         for NetBSD.  Problem reported by Bruno Haible.
12141
12142 2006-10-09  Jim Meyering  <jim@meyering.net>
12143
12144         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
12145         Patch from Bruno Haible.
12146
12147 2006-10-09  Jim Meyering  <jim@meyering.net>
12148
12149         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
12150         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
12151         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
12152
12153 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12154
12155         Don't include <config.h> twice; this doesn't work in some cases,
12156         e.g., when config.h has "#define intmax_t long long int" and
12157         we include <config.h>, <inttypes.h>, <config.h> in that order.
12158         Problem reported by Matthew Woehlke in:
12159         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
12160         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
12161         * lib/fts-cycle.c: Don't include config.h.
12162         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
12163         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
12164         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
12165         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
12166         inttypes.h.
12167         * lib/xstrtoumax.c: Likewise.
12168         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
12169         __strtol and the like, so that this module is more like its siblings.
12170         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
12171         Remove; no longer needed now that we assume gnulib inttypes.h.
12172
12173 2006-10-08  Bruno Haible  <bruno@clisp.org>
12174
12175         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
12176         option.
12177
12178 2006-10-07  Jim Meyering  <jim@meyering.net>
12179
12180         * modules/inttypes (inttypes.h): Revert what seems to have been
12181         an inadvertent part of today's change: use "|", not "/" in the
12182         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
12183
12184 2006-10-07  Bruno Haible  <bruno@clisp.org>
12185
12186         * modules/sublist: New file.
12187
12188 2006-10-07  Bruno Haible  <bruno@clisp.org>
12189
12190         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
12191         * modules/argz (argz.h): Likewise.
12192         * modules/arpa_inet (arpa/inet.h): Likewise.
12193         * modules/byteswap (byteswap.h): Likewise.
12194         * modules/configmake (configmake.h): Likewise.
12195         * modules/fcntl (fcntl.h): Likewise.
12196         * modules/fnmatch (fnmatch.h): Likewise.
12197         * modules/getopt (getopt.h): Likewise.
12198         * modules/glob (glob.h): Likewise.
12199         * modules/inttypes (inttypes.h): Likewise.
12200         * modules/netinet_in (netinet/in.h): Likewise.
12201         * modules/poll (poll.h): Likewise.
12202         * modules/stdbool (stdbool.h): Likewise.
12203         * modules/stdint (stdint.h): Likewise.
12204         * modules/sys_select (sys/select.h): Likewise.
12205         * modules/sys_socket (sys/socket.h): Likewise.
12206         * modules/sys_stat (sys/stat.h): Likewise.
12207         * modules/sysexits (sysexits.h): Likewise.
12208         * modules/unistd (unistd.h): Likewise.
12209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12210         Add a "DO NOT EDIT" comment to the generated file.
12211         (func_import): Likewise for gnulib-comp.m4.
12212
12213 2006-10-07  Bruno Haible  <bruno@clisp.org>
12214
12215         * lib/gl_sublist.h: New file.
12216         * lib/gl_sublist.c: New file.
12217
12218 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12219
12220         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
12221         name (relative to the original working directory) and the file
12222         name component (relative to the temporary working directory).  All
12223         callers changed.
12224         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
12225         * lib/mkdir-p.c (make_dir_parents): Likewise.
12226         * lib/mkdir-p.h (make_dir_parents): Likewise.
12227
12228 2006-10-06  Eric Blake  <ebb9@byu.net>
12229
12230         Define several macros for use by the clean-temp module.
12231         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
12232         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
12233         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
12234
12235         * lib/clean-temp.h (close_stream_temp): New declaration.
12236         * lib/clean-temp.c (includes): Pull in headers according to what
12237         other modules are in use.
12238         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
12239
12240 2006-10-06  Bruno Haible  <bruno@clisp.org>
12241
12242         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
12243         instead of fopen, fwriteerror.
12244
12245 2006-10-06  Bruno Haible  <bruno@clisp.org>
12246
12247         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
12248         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
12249         int.
12250         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
12251         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
12252         Return an error indicator.
12253         Suggested by Eric Blake.
12254
12255 2006-10-06  Bruno Haible  <bruno@clisp.org>
12256
12257         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
12258         Reported by Eric Blake.
12259
12260 2006-10-06  Bruno Haible  <bruno@clisp.org>
12261
12262         * modules/closeout (Description): Mention stderr too.
12263
12264 2006-10-06  Bruno Haible  <bruno@clisp.org>
12265         and Paul Eggert  <eggert@cs.ucla.edu>
12266
12267         * lib/closeout.c (close_stdout): Also close stderr.
12268         * lib/closeout.h: Update comment.
12269
12270 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12271
12272         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
12273         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
12274         * lib/dirchownmod.c: Include lchown.h.
12275         * lib/lchown.c: Don't include files that lchown.h now includes.
12276         Don't declare chown, since lchown.h now does that.
12277         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
12278         (lchown): Define to rpl_chown if lchown is declared but
12279         does not exist.  Declare using a prototype if lchown is not
12280         declared.  Add a copyright notice.
12281         * lib/mkstemp.h: Include <unistd.h>.
12282         * lib/openat.c: Include lchown.h.
12283
12284         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
12285         we now test for that separately.
12286         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
12287         rather than O_NOFOLLOW, when testing whether it's possible to
12288         avoid a race condition reliably.
12289         * lib/savewd.c (savewd_chdir): Likewise.
12290
12291         Remove macros that are no longer needed now that stdint.h is
12292         reliable.
12293         * lib/fsusage.c (UINTMAX_MAX): Remove.
12294         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
12295         * lib/utimecmp.c (SIZE_MAX): Remove.
12296
12297         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
12298
12299         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
12300         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
12301         O_NOATIME works.
12302
12303 2006-10-05  Bruno Haible  <bruno@clisp.org>
12304
12305         * lib/gl_list.h (gl_sortedlist_search_from_to,
12306         gl_sortedlist_indexof_from_to): New declarations.
12307         (gl_list_implementation): New fields sortedlist_search_from_to,
12308         sortedlist_indexof_from_to.
12309         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
12310         inline functions.
12311         * lib/gl_list.c (gl_sortedlist_search_from_to,
12312         gl_sortedlist_indexof_from_to): New functions.
12313         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
12314         function.
12315         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
12316         (gl_array_sortedlist_search_from_to): New function.
12317         (gl_array_list_implementation): Update.
12318         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
12319         function.
12320         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
12321         (gl_carray_sortedlist_search_from_to): New function.
12322         (gl_carray_list_implementation): Update.
12323         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
12324         gl_linked_sortedlist_indexof_from_to): New functions.
12325         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12326         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12327         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
12328         gl_tree_sortedlist_indexof_from_to): New functions.
12329         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12330         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12331         Update.
12332         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12333         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
12334         Update.
12335
12336 2006-10-05  Bruno Haible  <bruno@clisp.org>
12337
12338         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
12339         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
12340         (struct gl_list_implementation): Add fields search_from_to,
12341         indexof_from_to. Remove fields search, indexof.
12342         (gl_list_search): Use the search_from_to method.
12343         (gl_list_search_from, gl_list_search_from_to): New functions.
12344         (gl_list_indexof): Use the indexof_from_to method.
12345         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
12346         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
12347         (gl_list_search_from, gl_list_search_from_to): New functions.
12348         (gl_list_indexof): Use the indexof_from_to method.
12349         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
12350         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
12351         gl_array_indexof. Add start_index, end_index arguments.
12352         (gl_array_search_from_to): Renamed from gl_array_search. Add
12353         start_index, end_index arguments.
12354         (gl_array_remove, gl_array_list_implementation): Update.
12355         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
12356         gl_carray_indexof. Add start_index, end_index arguments.
12357         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
12358         start_index, end_index arguments.
12359         (gl_carray_remove, gl_carray_list_implementation): Update.
12360         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
12361         gl_linked_search. Add start_index, end_index arguments.
12362         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
12363         start_index, end_index arguments.
12364         (gl_linked_remove): Update.
12365         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12366         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12367         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
12368         field to 'size_t'.
12369         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
12370         gl_tree_search. Add start_index, end_index arguments.
12371         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
12372         start_index, end_index arguments.
12373         (gl_tree_remove): Update.
12374         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12375         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12376         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
12377         function.
12378         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
12379         gl_tree_search. Add start_index, end_index arguments.
12380         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
12381         start_index, end_index arguments.
12382         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12383         Update.
12384         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12385
12386 2006-10-05  Bruno Haible  <bruno@clisp.org>
12387
12388         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
12389
12390         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
12391         fwriteerror_temp): New declarations.
12392         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
12393         (descriptors): New variable.
12394         (cleanup): First, close the descriptors.
12395         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
12396         fclose_temp, fwriteerror_temp): New functions.
12397
12398 2006-10-04  Jim Meyering  <jim@meyering.net>
12399
12400         * lib/fts.c (fts_open): Tiny comment change.
12401
12402 2006-10-04  Bruno Haible  <bruno@clisp.org>
12403
12404         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
12405         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
12406         gl_LOCK_BODY.
12407         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
12408         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
12409         gl_LOCK_EARLY_BODY.
12410         (gl_LOCK): Require gl_LOCK_BODY.
12411
12412 2006-10-04  Bruno Haible  <bruno@clisp.org>
12413
12414         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
12415         (gl_oset_search_atleast): New declaration.
12416         (struct gl_oset_implementation): Add field 'search_atleast'.
12417         (gl_oset_search_atleast): New inline function.
12418         * lib/gl_oset.c (gl_oset_search_atleast): New function.
12419         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
12420         (gl_array_oset_implementation): Update.
12421         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
12422         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
12423         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
12424
12425 2006-10-04  Bruno Haible  <bruno@clisp.org>
12426
12427         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
12428
12429 2006-10-03  Bruno Haible  <bruno@clisp.org>
12430
12431         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
12432         from gl_avltreehash_list_implementation.
12433
12434 2006-10-03  Bruno Haible  <bruno@clisp.org>
12435
12436         * lib/gl_oset.c (gl_oset_add): Fix return type.
12437
12438 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
12439
12440         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
12441
12442 2006-10-02  Eric Blake  <ebb9@byu.net>
12443
12444         * modules/strnlen (Depends-on): Add extensions.
12445
12446 2006-10-02  Eric Blake  <ebb9@byu.net>
12447
12448         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
12449         definition in 2.60+.
12450
12451 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12452
12453         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
12454         checks.
12455
12456 2006-10-02  Bruno Haible  <bruno@clisp.org>
12457
12458         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
12459         to the AUTOMAKE_OPTIONS.
12460         Reported by Jim Meyering.
12461
12462 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
12463
12464         Work around bug in Solaris 10 /proc file system:
12465         /proc/self/fd/NNN/.. isn't the parent directory of
12466         the directory whose file descriptor is NNN.  This needs to
12467         be worked around at run time, not compile time, since a
12468         program might be built on Solaris 8, where things work, and
12469         run on Solaris 10.
12470         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
12471         to use the following interface instead:
12472         (OPENAT_BUFFER_SIZE): New macro.
12473         (openat_proc_name): New function.
12474         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
12475         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
12476         Likewise.
12477         * lib/openat-proc.c: New file.
12478         * modules/openat (Files): Add lib/openat-proc.c.
12479         (Depends-on): Add same-inode, stdbool.
12480         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
12481
12482 2006-09-29  Bruno Haible  <bruno@clisp.org>
12483
12484         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
12485         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
12486         argument. Set stdout_closed before testing for ferror, not after.
12487         (fwriteerror, fwriteerror_no_ebadf): New functions.
12488
12489 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12490
12491         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
12492
12493 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
12494
12495         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
12496         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
12497
12498 2006-09-28  Jim Meyering  <jim@meyering.net>
12499
12500         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
12501         Include <unistd.h>.
12502
12503 2006-09-28  Bruno Haible  <bruno@clisp.org>
12504
12505         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
12506         * modules/linkedhash-list (Depends-on): Likewise.
12507         * modules/rbtreehash-list (Depends-on): Likewise.
12508
12509 2006-09-28  Bruno Haible  <bruno@clisp.org>
12510
12511         * lib/strndup.h: Simplify the redefinition of strndup.
12512         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
12513         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
12514
12515 2006-09-28  Bruno Haible  <bruno@clisp.org>
12516
12517         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
12518         * lib/gl_linkedhash_list.c: Likewise.
12519         * lib/gl_rbtreehash_list.c: Likewise.
12520
12521 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
12522
12523         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
12524         getaddrinfo.
12525
12526         * lib/__fpending.h: Don't include <stdio_ext.h> unless
12527         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
12528         it causes <stdio_ext.h> to cause a compile-time error.
12529         Problem reported by Nelson H. F. Beebe.
12530         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
12531         of HAVE_DECL___PENDING.
12532
12533         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
12534         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
12535         declaration.
12536
12537 2006-09-27  Jim Meyering  <jim@meyering.net>
12538
12539         This file could end up with a definition for a function
12540         named __strndup, rather than rpl_strndup on a system with
12541         incomplete weak_alias support.
12542         * lib/strndup.c (strndup): Rename from __strndup.
12543         Remove #defines that used to map __strndup to strndup.
12544         Don't use K&R prototypes.
12545         Remove LIBC-related code, since this file is not sync'd with glibc.
12546         * lib/strndup.h: Revamp, accordingly.
12547         * m4/strndup.m4: Modernize.
12548
12549 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12550
12551         * modules/savewd (Depends-on): Add 'raise'.
12552         * lib/savewd.c: Include <signal.h>, for 'raise'.
12553
12554 2006-09-26  Jim Meyering  <jim@meyering.net>
12555
12556         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
12557         when we detect Darwin 8.7.0's acl_get_file bug.
12558         Rearrange to perform the new (below) run-test while $LIBS
12559         contains any acl-related library.  Set USE_ACL at the end.
12560         (gl_ACL_GET_FILE): New function.
12561
12562 2006-09-26  Eric Blake  <ebb9@byu.net>
12563
12564         * lib/verror.c: Include <config.h> unconditionally.
12565
12566 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
12567
12568         * modules/clock-time (Maintainer): Add self.
12569         * modules/getlogin_r (Depends-on): Add extensions.
12570
12571 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12572
12573         * modules/clock-time: New module.
12574         * modules/nanosleep (Depends-on): Add clock-time.
12575         * modules/gethrxtime (Depends-on): Likewise.
12576         * modules/gettime (Depends-on): Likewise.
12577         * modules/settime (Depends-on): Likewise.
12578
12579         * modules/fts-lgpl: Depend on openat.
12580         * modules/mkancesdirs: Depend on savewd.
12581         * modules/mkdir-p: Likewise.
12582
12583 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12584
12585         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
12586
12587         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
12588         `gl_have_arbitrary_file_name_length_limit' to
12589         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
12590         actually works between configure runs.
12591
12592 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12593             Bruno Haible  <bruno@clisp.org>
12594
12595         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
12596
12597 2006-09-25  Jim Meyering  <jim@meyering.net>
12598
12599         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
12600         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
12601
12602 2006-09-25  Eric Blake  <ebb9@byu.net>
12603
12604         * gnulib-tool (func_import, func_create_testdir): Fix typos in
12605         exec's in 2006-09-18 patch when shuffling fds.
12606
12607 2006-09-25  Bruno Haible  <bruno@clisp.org>
12608
12609         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
12610         Reported by Jim Meyering.
12611
12612 2006-09-24  Jim Meyering  <jim@meyering.net>
12613
12614         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
12615         compare a pointer against a literal "0".  That caused failures with
12616         at least HP-UX's hpcc.
12617
12618 2006-09-22  Simon Josefsson  <jas@extundo.com>
12619
12620         * modules/gc-sha1:
12621         * modules/gc-md4:
12622         * modules/gc-hmac-sha1:
12623         * modules/gc-hmac-md5:
12624         * modules/gc-des:
12625         * modules/gc-arcfour: Distribute more files.
12626
12627 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12628
12629         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
12630         (gl_linked_iterator_from_to): Initialize struct completely.
12631         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
12632         (gl_tree_iterator_from_to): Likewise
12633         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
12634         * lib/gl_array_list.c [lint] (gl_array_iterator)
12635         (gl_array_iterator_from_to): Likewise.
12636         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
12637         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
12638         (gl_carray_iterator_from_to): Likewise.
12639
12640         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
12641         * lib/md4.c (md4_process_block): Remove unused variable.
12642         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
12643         parentheses for clarity.
12644
12645 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12646
12647         * modules/bison-i18n (Depends-on): Add gettext.
12648
12649 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12650
12651         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
12652         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
12653         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
12654         also add missing comma that caused broken test.
12655         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
12656         stdlib.h, for `abort'.
12657         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
12658         variables.
12659         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
12660         include unistd.h if present, for `rmdir'.
12661         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
12662         variables.
12663         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
12664         in the process include standard headers for prototypes.
12665         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
12666         gets declared on GNU/Linux.
12667         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
12668         unistd.h, for `rmdir'.
12669         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
12670
12671         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
12672         always true.
12673         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
12674
12675         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
12676
12677 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12678
12679         * gnulib-tool (func_version): Create output all at once.  This
12680         may help avoid triggering unnecessary SIGPIPEs, and at any
12681         rate it doesn't hurt.
12682
12683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12684             Bruno Haible  <bruno@clisp.org>
12685
12686         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
12687         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12688         * m4/signed.m4 (bh_C_SIGNED): Likewise.
12689
12690         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
12691         (gl_FUNC_VASPRINTF): Invoke it.
12692
12693 2006-09-22  Bruno Haible  <bruno@clisp.org>
12694
12695         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
12696         getloadavg.c as first argument.
12697
12698 2006-09-22  Bruno Haible  <bruno@clisp.org>
12699
12700         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
12701         at the beginning of the gl_INIT macro.
12702         * modules/getloadavg (configure.ac): Pass $gl_source_base to
12703         gl_GETLOADAVG.
12704
12705 2006-09-22  Bruno Haible  <bruno@clisp.org>
12706
12707         * gnulib-tool (func_create_megatestdir): Don't include the config-h
12708         module.
12709         Suggested by Ralf Wildenhues.
12710
12711 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12712
12713         Import this patch from libc:
12714
12715         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12716
12717         * lib/regex_internal.c (re_string_reconstruct): Handle
12718         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12719         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12720         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12721         re_string_context_at.
12722
12723         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
12724         now requires it.
12725         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
12726         gl_REGEX now does it for us.
12727         (gl_REGEX): Add test taken from
12728         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
12729
12730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
12731         Check that large offsets work.  Modernize Autoconf usages.
12732         Prefer "yes" to mean a good thing rather than a bad.
12733         Don't put "#define mkstemp" in config.h, as this might interfere
12734         with standard system headers that "#define mkstemp mkstemp64".
12735
12736         * modules/mkstemp (Depends-on): Add extensions, so that
12737         mkstemp is visible on some platforms.
12738         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
12739         (Include): Change to "mkstemp.h" from <stdlib.h>.
12740         (Files): Add mkstemp.h.
12741
12742         * lib/mkstemp.h: New file, since some standard headers
12743         #define mkstemp.
12744         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
12745         Include "mkstemp.h".
12746         Make the _LIBC code resemble glibc original more,
12747         e.g., use K&R style.
12748         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
12749         (mkstemp): Remove, since mkstemp.h does this for us.
12750         * lib/stdlib--.h: Include mkstemp.h.
12751
12752         Import this patch from libc:
12753
12754         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
12755
12756         * lib/tempname.c (__gen_tempname): Change attempts_min
12757         into a macro.  Use preprocessor to decide how to initialize
12758         attempts [Coverity CID 67].
12759
12760 2006-09-20  Bruno Haible  <bruno@clisp.org>
12761
12762         * lib/mkdtemp.c: Import from libc.
12763         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
12764                 * sysdeps/posix/tempname.c (__gen_tempname): Change
12765                 attempts_min into a macro.  Use preprocessor to decide how to
12766                 initialize attempts [Coverity CID 67].
12767         2001-11-27  Paul Eggert  <eggert@twinsun.com>
12768                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
12769                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
12770
12771 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12772
12773         * gnulib-tool (func_exit): New function, to allow to pass the
12774         exit status portably through the trap.  Use everywhere.
12775         (--help, --version): Signal a write error.
12776         (trap): catch SIGPIPE, for write errors.
12777         Exit at the end of the trap, with the correct exit status.
12778
12779 2006-09-19  Karl Berry  <karl@gnu.org>
12780
12781         * doc/gnulib.texi: note about the license texinfo files.
12782
12783 2006-09-19  Eric Blake  <ebb9@byu.net>
12784
12785         * gnulib-tool: Avoid space-tab.
12786
12787 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12788
12789         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
12790         that prevented coreutils 6.1 from building.  Problem reported
12791         by Petter Reinholdtsen.
12792
12793 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12794
12795         * gnulib-tool (avoidlist): Fix typo that broke options like
12796         --avoid=lock that are used by coreutils bootstrap.
12797
12798 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
12799
12800         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
12801         more systematically.
12802
12803 2006-09-18  Jim Meyering  <jim@meyering.net>
12804
12805         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
12806
12807 2006-09-18  Bruno Haible  <bruno@clisp.org>
12808
12809         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
12810
12811 2006-09-18  Bruno Haible  <bruno@clisp.org>
12812
12813         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
12814         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
12815         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
12816         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
12817         * m4/gettext.m4: Require autoconf >= 2.52.
12818         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
12819         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
12820         of gl_cv_header_inttypes_h.
12821
12822 2006-09-18  Bruno Haible  <bruno@clisp.org>
12823
12824         * lib/javaversion.c: Include configmake.h.
12825
12826 2006-09-18  Bruno Haible  <bruno@clisp.org>
12827
12828         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
12829         avoid that the while loops be executed in a subshell.
12830
12831 2006-09-18  Bruno Haible  <bruno@clisp.org>
12832
12833         * MODULES.html.sh (func_module): Break long lines.
12834         Suggested by Bruce Korb <bkorb@gnu.org>.
12835
12836 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12837
12838         Speed up by a factor of 1.12.
12839         * gnulib-tool (nl): New variable.
12840         (func_import): Rewrite include directive extraction to only read each
12841         directive once.
12842
12843 2006-09-17  Bruno Haible  <bruno@clisp.org>
12844
12845         * modules/javaversion (Makefile.am): Remove DEFS setting.
12846         (Depends-on): Add configmake, for PKGDATADIR definition.
12847
12848 2006-09-17  Bruno Haible  <bruno@clisp.org>
12849
12850         * gnulib-tool (func_create_testdir): Rewrite all files at once.
12851
12852 2006-09-17  Bruno Haible  <bruno@clisp.org>
12853
12854         * gnulib-tool (func_append): New function, stolen from libtool.m4.
12855         (func_modules_transitive_closure, func_modules_add_dummy,
12856         func_modules_to_filelist, func_import, func_create_testdir,
12857         func_create_megatestdir, ...): Use it wherever possible.
12858         Suggested by Ralf Wildenhues.
12859
12860 2006-09-16  Karl Berry  <karl@gnu.org>
12861
12862         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
12863         to avoid sectioning errors.
12864         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
12865         [ifinfo]: blank line after @center-ed titles.
12866         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
12867         Spell FSF address consistently with others.
12868         (These changes approved by rms.)
12869
12870 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12871
12872         Speed up by a factor of 1.61.
12873         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
12874         already checked module names again.
12875
12876 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12877
12878         Speed up by a factor of 1.13.
12879         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
12880         for new_files, and the input to func_add_or_update.
12881
12882 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12883
12884         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
12885         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
12886
12887 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12888
12889         * modules/mkancesdirs (Depends-on): Add fcntl.
12890         * modules/savewd: New file.
12891         * MODULES.html.sh (File system functions): Add savewd.
12892
12893         * modules/configmake (Makefile.am): Add support for the
12894         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
12895
12896 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12897
12898         * m4/savewd.m4: New file.
12899
12900 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12901
12902         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
12903         (dirchownmod): New arg FD.  All callers changed.
12904         Use FD rather than opening the directory ourself, as opening is
12905         now the caller's responsibility.
12906         * lib/dirchownmod.h: Likewise.
12907         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
12908         hosts that require <sys/types.h> before <sys/stat.h>.  Include
12909         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
12910         (test_dir): Remove.
12911         (mkancesdirs): Return length of prefix of FILE that has already
12912         been made, or -2 if there is a child doing the work.  Redo
12913         algorithm so that it is O(N) rather than O(N**2).  Optimize away
12914         ".", and treat ".." specially since it might stray back into
12915         already-created areas.  Use a subprocess if necessary.  New arg
12916         WD; all users changed.  MAKE_DIR function should now return 1
12917         if it creates a directory that is not readable.  Return -2 if
12918         a child process is spun off.
12919         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
12920         Adjust signature to match code.
12921         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
12922         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
12923         all users changed.
12924         * lib/savewd.c, lib/savewd.h: New files.
12925
12926 2006-09-15  Jim Meyering  <jim@meyering.net>
12927
12928         * modules/rename-dest-slash: New module.
12929         * MODULES.html.sh (posix_compat): Add it here.
12930
12931         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
12932
12933 2006-09-15  Jim Meyering  <jim@meyering.net>
12934
12935         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
12936         file.
12937
12938         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
12939
12940 2006-09-15  Jim Meyering  <jim@meyering.net>
12941
12942         * lib/rename-dest-slash.c (has_trailing_slash): Use
12943         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
12944         (rpl_rename_dest_slash): Perform the cheaper trailing slash
12945         test before testing whether SRC is a directory.
12946         Suggestions from Bruno Haible.
12947
12948         Avoid a warning about an unused variable.
12949         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
12950         into the #ifdef block where it's used.
12951
12952         * lib/rename-dest-slash.c: New file.
12953
12954 2006-09-14  Bruno Haible  <bruno@clisp.org>
12955
12956         * lib/allocsa.c: Include <config.h> unconditionally.
12957         * lib/asnprintf.c: Likewise.
12958         * lib/asprintf.c: Likewise.
12959         * lib/c-strcasecmp.c: Likewise.
12960         * lib/c-strcasestr.c: Likewise.
12961         * lib/c-strncasecmp.c: Likewise.
12962         * lib/c-strstr.c: Likewise.
12963         * lib/classpath.c: Likewise.
12964         * lib/clean-temp.c: Likewise.
12965         * lib/concatpath.c: Likewise.
12966         * lib/copy-file.c: Likewise.
12967         * lib/csharpcomp.c: Likewise.
12968         * lib/csharpexec.c: Likewise.
12969         * lib/execute.c: Likewise.
12970         * lib/fatal-signal.c: Likewise.
12971         * lib/findprog.c: Likewise.
12972         * lib/fwriteerror.c: Likewise.
12973         * lib/gl_array_list.c: Likewise.
12974         * lib/gl_array_oset.c: Likewise.
12975         * lib/gl_avltree_list.c: Likewise.
12976         * lib/gl_avltree_oset.c: Likewise.
12977         * lib/gl_avltreehash_list.c: Likewise.
12978         * lib/gl_carray_list.c: Likewise.
12979         * lib/gl_linked_list.c: Likewise.
12980         * lib/gl_linkedhash_list.c: Likewise.
12981         * lib/gl_list.c: Likewise.
12982         * lib/gl_oset.c: Likewise.
12983         * lib/gl_rbtree_list.c: Likewise.
12984         * lib/gl_rbtree_oset.c: Likewise.
12985         * lib/gl_rbtreehash_list.c: Likewise.
12986         * lib/imaxabs.c: Likewise.
12987         * lib/imaxdiv.c: Likewise.
12988         * lib/javacomp.c: Likewise.
12989         * lib/javaexec.c: Likewise.
12990         * lib/javaversion.c: Likewise.
12991         * lib/linebreak.c: Likewise.
12992         * lib/localcharset.c: Likewise.
12993         * lib/lock.c: Likewise.
12994         * lib/mbchar.c: Likewise.
12995         * lib/mbswidth.c: Likewise.
12996         * lib/mkdtemp.c: Likewise.
12997         * lib/pipe.c: Likewise.
12998         * lib/printf-args.c: Likewise.
12999         * lib/printf-parse.c: Likewise.
13000         * lib/progname.c: Likewise.
13001         * lib/progreloc.c: Likewise.
13002         * lib/readlink.c: Likewise.
13003         * lib/sh-quote.c: Likewise.
13004         * lib/stpcpy.c: Likewise.
13005         * lib/stpncpy.c: Likewise.
13006         * lib/strcasecmp.c: Likewise.
13007         * lib/strcasestr.c: Likewise.
13008         * lib/strcspn.c: Likewise.
13009         * lib/striconv.c: Likewise.
13010         * lib/strncasecmp.c: Likewise.
13011         * lib/strnlen1.c: Likewise.
13012         * lib/strstr.c: Likewise.
13013         * lib/strtok_r.c: Likewise.
13014         * lib/tls.c: Likewise.
13015         * lib/tmpdir.c: Likewise.
13016         * lib/unicodeio.c: Likewise.
13017         * lib/unsetenv.c: Likewise.
13018         * lib/vasnprintf.c: Likewise.
13019         * lib/vasprintf.c: Likewise.
13020         * lib/wait-process.c: Likewise.
13021         * lib/xallocsa.c: Likewise.
13022         * lib/xsetenv.c: Likewise.
13023         * lib/xstriconv.c: Likewise.
13024
13025 2006-09-13  Simon Josefsson  <jas@extundo.com>
13026
13027         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
13028         that internally, suggested by Ralf Wildenhues
13029         <Ralf.Wildenhues@gmx.de>.
13030
13031 2006-09-13  Simon Josefsson  <jas@extundo.com>
13032
13033         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
13034         @LIBOBJS@.
13035         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13036
13037 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13038
13039         * lib/_fpending.c: Include <config.h> unconditionally, since we no
13040         longer worry about uses that don't define HAVE_CONFIG_H.
13041         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
13042         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
13043         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
13044         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
13045         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
13046         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
13047         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
13048         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
13049         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
13050         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
13051         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
13052         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
13053         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
13054         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
13055         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
13056         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
13057         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
13058         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
13059         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
13060         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
13061         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
13062         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
13063         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
13064         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
13065         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
13066         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
13067         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
13068         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
13069         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
13070         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
13071         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
13072         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
13073         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
13074         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
13075         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
13076         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
13077         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
13078         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
13079         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
13080         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
13081         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
13082         Likewise.
13083
13084 2006-09-13  Eric Blake  <ebb9@byu.net>
13085
13086         * lib/getopt.c: Fix typo in last commit.
13087
13088 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13089
13090         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
13091         dgettext.
13092
13093 2006-09-12  Jim Meyering  <jim@meyering.net>
13094
13095         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
13096         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
13097         Reported by Nelson H. F. Beebe.
13098
13099 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13100
13101         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
13102         program_invocation_name and program_invocation_short_name are
13103         initialized.
13104         * lib/argp-namefrob.h: Move declarations of program_invocation_name
13105         and program_invocation_short_name to argp.h, so they are visible
13106         to user programs.
13107         * lib/argp.h: Likewise
13108
13109 2006-09-10  Bruno Haible  <bruno@clisp.org>
13110
13111         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
13112         m4/inttypes_h.m4, m4/uintmax_t.m4.
13113
13114 2006-09-10  Bruno Haible  <bruno@clisp.org>
13115
13116         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
13117         gl_AC_TYPE_UINTMAX_T.
13118
13119 2006-09-10  Bruno Haible  <bruno@clisp.org>
13120
13121         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
13122
13123 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13124
13125         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
13126         convention.  Text proposed by Bruno Haible.
13127         (struct argp_option): Document the use of N_() wrappers.
13128
13129         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
13130         '\v', and translate the two parts separately, instead of feeding
13131         the whole string to gettext.  This allows to exclude
13132         '\v' from the strings visible to the translator by writing doc
13133         strings as N_("..") "\v" N_("..").
13134
13135 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13136
13137         * config/srclist.txt: Undo latest change; the bug was fixed.
13138
13139 2006-09-09  Bruno Haible  <bruno@clisp.org>
13140
13141         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
13142         assignments if building a library without libtool.
13143         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
13144         in func_emit_lib_Makefile_am.
13145         (func_import): When building a static library libfoo.a, arrange to
13146         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
13147         (func_create_testdir): Likewise.
13148         * modules/gc (configure.ac, Makefile.am): If building statically,
13149         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
13150         * modules/iconvme (configure.ac, Makefile.am): Likewise.
13151         * modules/striconv (configure.ac, Makefile.am): Likewise.
13152         Based on a suggestion by Ralf Wildenhues.
13153
13154 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13155
13156         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
13157         Check for unistd.h too, since Autoconf doesn't assume POSIX.
13158         Also:
13159
13160         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13161         Add year_2050_test to catch glibc bug 2821
13162         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
13163
13164         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13165         Prefer #ifdef to #if.
13166
13167         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
13168         Return from 'main' instead of calling 'exit'.
13169
13170 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13171
13172         * lib/mktime.c (guess_time_tm): Fix bug where mktime
13173         returned the maximum time_t value rather than (time_t) -1.
13174         Problem originally reported by William Bardwell
13175         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
13176
13177         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
13178         Moved to here ...
13179         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
13180         ... from here.
13181
13182 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
13185         2821 is fixed.
13186
13187 2006-09-08  Jim Meyering  <jim@meyering.net>
13188
13189         Don't make generated files read-only.  That would bother too many
13190         people.  However, do retain the ability to work when targets are
13191         read-only: remove the destination and temporary files before writing
13192         them (when generated via sed or echo), or by using the -f option for
13193         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
13194         * modules/alloca-opt, modules/argz, modules/arpa_inet:
13195         * modules/byteswap, modules/configmake, modules/fcntl:
13196         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
13197         * modules/localcharset, modules/netinet_in, modules/poll:
13198         * modules/stdbool, modules/stdint, modules/sys_select:
13199         * modules/sys_socket, modules/sys_stat, modules/sysexits:
13200
13201 2006-09-08  Jim Meyering  <jim@meyering.net>
13202
13203         Avoid new build failure on FreeBSD 6.0.
13204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
13205         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
13206         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
13207
13208 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13209
13210         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
13211
13212 2006-09-07  Jim Meyering  <jim@meyering.net>
13213
13214         Fix global typo in last change: use chmod u-w, not chmod u-x.
13215         Spotted by Paul Eggert and Bruce Korb.
13216         * modules/alloca-opt, modules/argz, modules/arpa_inet:
13217         * modules/byteswap, modules/configmake, modules/fcntl:
13218         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
13219         * modules/localcharset, modules/netinet_in, modules/poll:
13220         * modules/stdbool, modules/stdint, modules/sys_select:
13221         * modules/sys_socket, modules/sys_stat, modules/sysexits:
13222
13223 2006-09-06  Jim Meyering  <jim@meyering.net>
13224
13225         Make generated files be read-only.
13226         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
13227         Ensure that each generated file is now read-only.
13228         * modules/argz: Likewise.
13229         * modules/arpa_inet: Likewise.
13230         * modules/byteswap: Likewise.
13231         * modules/configmake: Likewise.
13232         * modules/fcntl: Likewise.
13233         * modules/fnmatch: Likewise.
13234         * modules/getopt: Likewise.
13235         * modules/glob: Likewise.
13236         * modules/inttypes: Likewise.
13237         * modules/netinet_in: Likewise.
13238         * modules/poll: Likewise.
13239         * modules/stdbool: Likewise.
13240         * modules/stdint: Likewise.
13241         * modules/sys_select: Likewise.
13242         * modules/sys_socket: Likewise.
13243         * modules/sys_stat: Likewise.
13244         * modules/sysexits: Likewise.
13245         * modules/localcharset: Same as above, but continue using temporary
13246         file named "t-$@" (why different?) rather than the "$@-t" used
13247         everywhere else.
13248
13249         * modules/sysexits (Makefile.am): Replace literal occurrences
13250         of "sysexit.h" more readable, and more consistent, "$@".
13251
13252 2006-09-06  Bruno Haible  <bruno@clisp.org>
13253
13254         * modules/striconv: New file.
13255         * modules/xstriconv: New file.
13256         * MODULES.html.sh (Internationalization functions): Add striconv,
13257         xstriconv.
13258
13259 2006-09-06  Bruno Haible  <bruno@clisp.org>
13260
13261         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
13262         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
13263         not using libtool correctly.
13264
13265 2006-09-06  Bruno Haible  <bruno@clisp.org>
13266
13267         * lib/striconv.h: New file.
13268         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
13269         iconvstring.c.
13270         * lib/xstriconv.h: New file.
13271         * lib/xstriconv.c: New file.
13272
13273 2006-09-06  Bruno Haible  <bruno@clisp.org>
13274
13275         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13276         lib_..._LDFLAGS.
13277
13278 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13279
13280         * lib/argz_.h: Sync from Libtool.
13281
13282         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
13283                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13284
13285         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
13286
13287 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
13288
13289         * modules/trim: New file.
13290
13291 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
13292
13293         * lib/trim.h: New file.
13294         * lib/trim.c: New file.
13295
13296 2006-09-05  Bruno Haible  <bruno@clisp.org>
13297
13298         * MODULES.html.sh (String handling): Add trim.
13299
13300 2006-09-04  Karl Berry  <karl@gnu.org>
13301
13302         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
13303         until next release.
13304
13305 2006-09-03  Bruno Haible  <bruno@clisp.org>
13306
13307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
13308         correctly.
13309
13310 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13311
13312         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
13313         not gl_GETLOADAVG.  Omit unneeded semicolons.
13314         Problems reported by Ralf Wildenhues in
13315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
13316         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
13317         at the end, which is the usual gnulib style.
13318
13319         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
13320         of doing all the work ourselves.
13321         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
13322         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
13323
13324 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13325
13326         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
13327         Problem reported by Ralf Wildenhues in
13328         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
13329
13330         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
13331         HAVE_STRUCT_STATFS_F_FSTYPENAME.
13332
13333 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13334
13335         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
13336         yesterday's patch by changing test -n to test -z.
13337
13338 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13339
13340         * modules/getloadavg (Files): Add m4/getloadavg.m4.
13341         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
13342         the former is now obsolescent.
13343
13344         * modules/chdir-long (Depends-on): Add fcntl.
13345
13346 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13347
13348         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
13349         obsolescent, and programs should use gnulib instead.
13350         * m4/getloadavg.m4: New file, with contents taken from Autoconf
13351         but with prefixes changed.
13352
13353 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13354
13355         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
13356         or stdbool.h, because they might not exist while configuring.
13357
13358         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
13359         Don't include unistd.h or limits.h; not needed, since chdir-long.h
13360         does that for us.
13361         (O_DIRECTORY): Remove.
13362
13363 2006-08-31  Eric Blake  <ebb9@byu.net>
13364
13365         * gnulib-tool: Don't let emacs change spaces to TAB.
13366
13367 2006-08-31  Bruno Haible  <bruno@clisp.org>
13368
13369         * gnulib-tool: When calling func_import more than once, do it in a
13370         subshell.
13371         Reported by Eric Blake <ebb9@byu.net>.
13372
13373 2006-08-31  Bruno Haible  <bruno@clisp.org>
13374
13375         * gnulib-tool (nl): Remove variable.
13376         (sed_transform_lib_file): Use more robust test for config-h module.
13377         (func_import): Fix typo in 2006-08-25 patch.
13378
13379 2006-08-31  Bruno Haible  <bruno@clisp.org>
13380
13381         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
13382         specified, augment Makefile.am variables instead of assigning them.
13383
13384 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13385
13386         Work around a bug in both the Linux and SunOS 64-bit kernels:
13387         nanosleep mishandles sleeps for longer than 2**31 seconds.
13388         Problem reported by Frank v Waveren in
13389         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
13390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
13391         Check for nanosleep bug.
13392         (LIB_NANOSLEEP): Append clock_gettime library if needed.
13393
13394 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13395
13396         Work around a bug in both the Linux and SunOS 64-bit kernels:
13397         nanosleep mishandles sleeps for longer than 2**31 seconds.
13398         Problem reported by Frank v Waveren in
13399         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
13400         * lib/nanosleep.c (BILLION): New constant.
13401         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
13402         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
13403         implementation.
13404
13405 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13406
13407         * modules/nanosleep (Depends-on): Add gettime.
13408
13409 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13410         and Simon Josefsson  <jas@extundo.com>
13411         and Oskar Liljeblad  <oskar@osk.mine.nu>
13412
13413         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
13414         * gnulib-tool (func_import): New license type 'unmodifiable license
13415         text'.
13416         * modules/fdl: Use it.  Longer description.
13417         * module/gpl, module/lgpl: New files.
13418
13419 2006-08-30  Jim Meyering  <jim@meyering.net>
13420
13421         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
13422         shadowing the parameter.
13423
13424 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13425
13426         Sync from Libtool:
13427
13428         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13429
13430         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
13431         sharing with gnulib.  Report by Eric Blake.
13432
13433 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13434
13435         * modules/isapipe: New file.
13436         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
13437
13438 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13439
13440         * modules/configmake (Makefile.am): Add a comment, and omit
13441         the CONFIGMAKE_ prefix from generated macro names.  Suggested
13442         by Bruno Haible.
13443
13444 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         * m4/isapipe.m4: New file.
13447
13448 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13449
13450         * lib/isapipe.c, lib/isapipe.h: New files.
13451
13452 2006-08-29  Jim Meyering  <jim@meyering.net>
13453
13454         * modules/configmake (Makefile.am): Make configmake.h depend on
13455         Makefile.  Otherwise, a stale configmake.h could hang around.
13456
13457 2006-08-29  Eric Blake  <ebb9@byu.net>
13458
13459         * lib/error.c (error_at_line, print_errno_message): Match libc, after
13460         resolution of upstream bug 3044.
13461
13462 2006-08-29  Bruno Haible  <bruno@clisp.org>
13463
13464         * modules/localcharset (Depends-on): Add configmake.
13465         (Makefile.am): Remove setting of LIBDIR through DEFS.
13466
13467 2006-08-29  Bruno Haible  <bruno@clisp.org>
13468
13469         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
13470         defined.
13471
13472 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13473
13474         * modules/fcntl: New file.
13475         * modules/chdir-safer (Depends-on): Add fcntl.
13476         * modules/fts: Likewise.
13477         * modules/mkdir-p: Likewise.
13478
13479         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
13480         This undoes the most recent change, since we're now addressing the
13481         problem in a different way.
13482
13483         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
13484         into output, since the output might be called Makefile.am even
13485         if $makefile_name is something different.
13486         (func_import): Use $makefile_am rather than
13487         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
13488         empty.
13489
13490         * modules/inttypes (Files): Add m4/inttypes-h.m4.
13491
13492 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13493
13494         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
13495         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
13496         recent change to stdint.m4, since we're now addressing the problem in a
13497         different way.
13498
13499 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13500
13501         * m4/fcntl_h.m4: New file.
13502
13503 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13504
13505         * lib/fcntl_.h: New file.
13506         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
13507         the fcntl module.
13508         * lib/dirchownmod.c: Likewise.
13509         * lib/fts.c: Likewise.
13510
13511         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
13512         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
13513         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
13514         just before including <inttypes.h>, to avoid circular inclusion.
13515
13516 2006-08-28  Jim Meyering  <jim@meyering.net>
13517
13518         * doc/visibility.texi: Actually read and correct the grammar of the
13519         sentence affected by yesterday's change.
13520
13521 2006-08-28  Eric Blake  <ebb9@byu.net>
13522
13523         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
13524         needs wrapper.
13525
13526 2006-08-28  Eric Blake  <ebb9@byu.net>
13527
13528         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
13529
13530 2006-08-28  Eric Blake  <ebb9@byu.net>
13531
13532         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
13533
13534 2006-08-28  Bruno Haible  <bruno@clisp.org>
13535
13536         * modules/c-strstr: New file, from GNU gettext.
13537         * MODULES.html.sh (String handling): Add c-strstr.
13538
13539 2006-08-28  Bruno Haible  <bruno@clisp.org>
13540
13541         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
13542         macros.
13543         Reported by Eric Blake.
13544
13545 2006-08-28  Bruno Haible  <bruno@clisp.org>
13546
13547         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
13548         (VASNPRINTF): Return a string of length > INT_MAX without failing.
13549         * lib/vasprintf.c: Include errno.h, limits.h.
13550         (EOVERFLOW): New fallback definition.
13551         (vasprintf): Test here whether the string length is > INT_MAX.
13552         * lib/vsnprintf.c: Include errno.h, limits.h.
13553         (EOVERFLOW): New fallback definition.
13554         (vsnprintf): Fix bug when generated string was too long for the buffer.
13555         Test here whether the string length is > INT_MAX.
13556
13557 2006-08-28  Bruno Haible  <bruno@clisp.org>
13558
13559         * lib/inttypes_.h (SCNX*): Remove definitions.
13560         Reported by Eric Blake.
13561
13562 2006-08-28  Bruno Haible  <bruno@clisp.org>
13563
13564         * lib/c-strstr.h: New file, from GNU gettext.
13565         * lib/c-strstr.c: New file, from GNU gettext.
13566
13567 2006-08-28  Bruno Haible  <bruno@clisp.org>
13568
13569         * gnulib-tool: Reorder some statements.
13570
13571 2006-08-28  Bruno Haible  <bruno@clisp.org>
13572
13573         * gnulib-tool: New option --makefile-name.
13574         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
13575         $makefile_name.
13576         (func_import): Write $makefile_name to the cache file, and read it from
13577         there unless explicitly specified. Use $makefile_name as file name
13578         instead of Makefile.am. Adjust the recommendations accordingly.
13579
13580 2006-08-28  Bruno Haible  <bruno@clisp.org>
13581
13582         * gnulib-tool (func_verify_module): Check against misapplying patch.
13583
13584 2006-08-28  Bruno Haible  <bruno@clisp.org>
13585
13586         * gnulib-tool (func_relativize, func_relconcat): New functions.
13587         Give an error if --local-dir is given with --update.
13588         Remove trailing slashes from $local_gnulib_dir.
13589         (func_import): Store the relativized $local_gnulib_dir in
13590         gnulib-cache.m4, and read it from there if not specified explicitly.
13591
13592 2006-08-28  Bruno Haible  <bruno@clisp.org>
13593
13594         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
13595         is the current directory. Respect also $local_gnulib_dir.
13596
13597 2006-08-28  Bruno Haible  <bruno@clisp.org>
13598             Simon Josefsson  <jas@extundo.com>
13599
13600         BeOS portability.
13601         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
13602
13603 2006-08-27  Jim Meyering  <jim@meyering.net>
13604
13605         * doc/visibility.texi: Remove duplicate word: "pointer".
13606
13607 2006-08-26  Bruno Haible  <bruno@clisp.org>
13608
13609         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
13610         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
13611         (Makefile.am): Create inttypes.h from inttypes_.h.
13612         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
13613
13614         * modules/imaxabs: New file.
13615
13616         * modules/imaxdiv: New file.
13617
13618 2006-08-26  Bruno Haible  <bruno@clisp.org>
13619
13620         * m4/inttypes.m4: New file.
13621         * m4/_inttypes_h.m4: Remove file.
13622         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
13623         PRI_MACROS_BROKEN.
13624         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
13625
13626         * m4/imaxabs.m4: New file.
13627
13628         * m4/imaxdiv.m4: New file.
13629
13630 2006-08-26  Bruno Haible  <bruno@clisp.org>
13631
13632         * lib/inttypes_.h: New file.
13633         * lib/inttypes.h: Remove file.
13634         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
13635
13636         * lib/imaxabs.c: New file.
13637
13638         * lib/imaxdiv.c: New file.
13639
13640 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         New config-h module, so that "make" output needn't be cluttered
13643         by -DHAVE_CONFIG_H.
13644         * MODULES.html.sh (Support for building libraries and executables):
13645         Add config-h.
13646         * modules/config-h: New file.
13647         * gnulib-tool (nl, sed_transform_lib_file): New vars.
13648         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
13649         the config-h module is used.
13650
13651         New configmake module, so that "make" output needn't be cluttered
13652         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
13653         * MODULES.html.sh (Support for building libraries and executables):
13654         Add configmake.
13655         * modules/configmake: New file.
13656
13657 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13658
13659         * m4/config-h.m4: New file.
13660
13661 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13662
13663         * config/srclist.txt: Add elisp-comp.
13664
13665 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13666
13667         * MODULES.html.sh (Support for building libraries and executables):
13668         Add elisp-comp.
13669         * build-aux/elisp-comp: New file.
13670         * modules/elisp-comp: New file.
13671
13672 2006-08-24  Bruno Haible  <bruno@clisp.org>
13673
13674         * gnulib-tool (func_create_testdir): Use non-default values of
13675         sourcebase and m4base.
13676
13677 2006-08-24  Bruno Haible  <bruno@clisp.org>
13678
13679         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
13680         HTML structure.
13681
13682 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13683
13684         * modules/openat (Depends-on): Add lchown.
13685
13686 2006-08-23  Bruno Haible  <bruno@clisp.org>
13687
13688         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
13689         of gl_LOCK_EARLY instead of gl_LOCK.
13690
13691 2006-08-23  Bruno Haible  <bruno@clisp.org>
13692
13693         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
13694         on OSF/1 to no.
13695         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
13696
13697 2006-08-23  Bruno Haible  <bruno@clisp.org>
13698
13699         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
13700         as unusable.
13701
13702         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
13703         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
13704         (gl_LOCK): New macro.
13705
13706 2006-08-22  Simon Josefsson  <jas@extundo.com>
13707
13708         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
13709         to md5 module.
13710
13711 2006-08-22  Simon Josefsson  <jas@extundo.com>
13712
13713         * MODULES.html.sh: Add "Support for maintaining and release
13714         projects".
13715
13716         * build-aux/gnupload: New file, from coreutils.
13717
13718 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         Avoid the need for AC_LIBSOURCES in m4 macros.
13721         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
13722         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
13723         * modules/check-version (EXTRA_DIST): Add check-version.h.
13724         * modules/crc (EXTRA_DIST): Add crc.h.
13725         * modules/des (EXTRA_DIST): Add des.h.
13726         * modules/gc (EXTRA_DIST): Add gc.h.
13727         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
13728         * modules/getline (EXTRA_DIST): Add getline.h.
13729         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
13730         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
13731         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
13732         * modules/md2 (EXTRA_DIST): Add md2.h.
13733         * modules/md4 (EXTRA_DIST): Add md4.h.
13734         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
13735         * modules/read-file (EXTRA_DIST): Add read-file.h.
13736         * modules/readline (EXTRA_DIST): Add readline.h.
13737         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
13738         rijndael-api-fst.h.
13739
13740 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13741
13742         * m4/rijndael.m4 (gl_ARCFOUR):
13743         * m4/arctwo.m4 (gl_ARCTWO):
13744         * m4/check-version.m4 (gl_CHECK_VERSION):
13745         * m4/crc.m4 (gl_CRC):
13746         * m4/des.m4 (gl_DES):
13747         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
13748         * m4/gc.m4 (gl_GC):
13749         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
13750         * m4/getline.m4 (gl_FUNC_GETLINE):
13751         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
13752         * m4/hmac-md5.m4 (gl_HMAC_MD5):
13753         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
13754         * m4/md2.m4 (gl_MD2):
13755         * m4/md4.m4 (gl_MD4):
13756         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
13757         * m4/read-file.m4 (gl_FUNC_READ_FILE):
13758         * m4/readline.m4 (gl_FUNC_READLINE):
13759         * m4/rijndael.m4 (gl_RIJNDAEL):
13760         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
13761         to get the necessary .h files and whatnot.
13762
13763 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13764
13765         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
13766         gnulib rather than the other way around.
13767         * config/srclistvars.sh (COREUTILS): Remove.
13768
13769 2006-08-22  Jim Meyering  <jim@meyering.net>
13770
13771         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
13772
13773         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
13774
13775 2006-08-22  Eric Blake  <ebb9@byu.net>
13776
13777         * modules/regexprops-generic: New file.
13778         * MODULES.html.sh (Support for building documentation): List it.
13779
13780 2006-08-22  Eric Blake  <ebb9@byu.net>
13781
13782         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
13783         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13784         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
13785         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13786
13787 2006-08-22  Bruno Haible  <bruno@clisp.org>
13788
13789         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
13790         and lib_LTLIBRARIES like the other lib_* variables.
13791
13792 2006-08-22  Bruno Haible  <bruno@clisp.org>
13793
13794         * build-aux/x-to-1.in: New file, from GNU gettext.
13795
13796 2006-08-22  Bruno Haible  <bruno@clisp.org>
13797
13798         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
13799         <utmpx.h> exists.
13800
13801 2006-08-22  Bruno Haible  <bruno@clisp.org>
13802
13803         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
13804         <utmpx.h> exists.
13805
13806 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13807
13808         BeOS portability.
13809         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
13810         exist.
13811         Problem reported by Bruno Haible.
13812
13813 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13814
13815         Avoid the need for AC_LIBSOURCES in m4 macros.
13816         * modules/acl (EXTRA_DIST): Add acl.h.
13817         * modules/argmatch (Files): Add m4/argmatch.m4.
13818         (configure.ac): Add gl_ARGMATCH.
13819         (EXTRA_DIST): Renamed from lib_SOURCES, for
13820         consistency with the other modules.  Remove argmatch.c.
13821         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
13822         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
13823         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
13824         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
13825         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
13826         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
13827         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
13828         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
13829         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
13830         * modules/closeout (EXTRA_DIST): Add closeout.h.
13831         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
13832         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
13833         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
13834         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
13835         dirname.h; remove basename.c and stripslash.c.
13836         * modules/exclude (EXTRA_DIST): Add exclude.h.
13837         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
13838         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
13839         * modules/file-type (EXTRA_DIST): Add file-type.h.
13840         * modules/filemode (EXTRA_DIST): Add filemode.h.
13841         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
13842         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
13843         * modules/fpending (EXTRA_DIST): Add __fpending.h.
13844         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
13845         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
13846         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
13847         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
13848         * modules/getdate (EXTRA_DIST): Add getdate.c.
13849         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
13850         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
13851         * modules/getpass (EXTRA_DIST): Add getpass.h.
13852         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
13853         * modules/group-member (EXTRA_DIST): Add group-member.h.
13854         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
13855         * modules/hash (EXTRA_DIST): Add hash.h.
13856         * modules/human (EXTRA_DIST): Add human.h.
13857         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
13858         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
13859         * modules/lchown (EXTRA_DIST): Add lchown.h.
13860         * modules/long-options (EXTRA_DIST): Add long-options.h.
13861         * modules/lstat (EXTRA_DIST): Add lstat.h.
13862         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
13863         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
13864         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
13865         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
13866         * modules/memxor (EXTRA_DIST): Add memxor.h.
13867         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
13868         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
13869         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
13870         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
13871         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
13872         * modules/physmem (EXTRA_DIST): Add physmem.h.
13873         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
13874         * modules/posixver (EXTRA_DIST): Add posixver.h.
13875         * modules/quote (EXTRA_DIST): Add quote.h.
13876         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
13877         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
13878         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
13879         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
13880         regex_internal.h regexec.c.
13881         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
13882         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
13883         * modules/same (EXTRA_DIST): Add same.h.
13884         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
13885         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
13886         * modules/savedir (EXTRA_DIST): Add savedir.h.
13887         * modules/sha1 (EXTRA_DIST): Add sha1.h.
13888         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
13889         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
13890         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
13891         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
13892         * modules/strdup (EXTRA_DIST): Add strdup.h.
13893         * modules/strftime (EXTRA_DIST): Add strftime.h.
13894         * modules/strndup (EXTRA_DIST): Add strndup.h.
13895         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
13896         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
13897         * modules/time_r (EXTRA_DIST): Add time_r.h.
13898         * modules/timespec (EXTRA_DIST): Add timespec.h.
13899         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
13900         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
13901         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
13902         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
13903         * modules/userspec (EXTRA_DIST): Add userspec.h.
13904         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
13905         * modules/utimens (EXTRA_DIST): Add utimens.h.
13906         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
13907         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
13908         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
13909         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
13910         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
13911         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
13912         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
13913         * modules/yesno (EXTRA_DIST): Add yesno.h.
13914
13915 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13916
13917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
13918
13919         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
13920         * m4/dev-ino.m4, same-inode.m4: Remove.
13921
13922         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
13923         * m4/acl.m4 (AC_FUNC_ACL):
13924         * m4/backupfile.m4 (gl_BACKUPFILE):
13925         * m4/c-strtod.m4 (gl_C99_STRTOLD):
13926         * m4/canon-host.m4 (gl_CANON_HOST):
13927         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
13928         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
13929         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
13930         * m4/cloexec.m4 (gl_CLOEXEC):
13931         * m4/close-stream.m4 (gl_CLOSE_STREAM):
13932         * m4/closeout.m4 (gl_CLOSEOUT):
13933         * m4/dirfd.m4 (gl_FUNC_DIRFD):
13934         * m4/dirname.m4 (gl_DIRNAME):
13935         * m4/exclude.m4 (gl_EXCLUDE):
13936         * m4/exitfail.m4 (gl_EXITFAIL):
13937         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
13938         * m4/file-type.m4 (gl_FILE_TYPE):
13939         * m4/filemode.m4 (gl_FILEMODE):
13940         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
13941         * m4/fpending.m4 (gl_FUNC_FPENDING):
13942         * m4/fprintftime.m4 (gl_FPRINTFTIME):
13943         * m4/fts.m4 (gl_FUNC_FTS):
13944         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
13945         * m4/getdate.m4 (gl_GETDATE):
13946         * m4/gethrxtime.m4 (gl_GETHRXTIME):
13947         * m4/getpagesize.m4 (gl_GETPAGESIZE):
13948         * m4/getpass.m4 (gl_FUNC_GETPASS):
13949         * m4/gettime.m4 (gl_GETTIME):
13950         * m4/getugroups.m4 (gl_GETUGROUPS):
13951         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
13952         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
13953         * m4/hard-locale.m4 (gl_HARD_LOCALE):
13954         * m4/hash.m4 (gl_HASH):
13955         * m4/idcache.m4 (gl_IDCACHE):
13956         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
13957         * m4/lchown.m4 (gl_FUNC_LCHOWN):
13958         * m4/long-options.m4 (gl_LONG_OPTIONS):
13959         * m4/lstat.m4 (gl_FUNC_LSTAT):
13960         * m4/md5.m4 (gl_MD5):
13961         * m4/memcasecmp.m4 (gl_MEMCASECMP):
13962         * m4/memcoll.m4 (gl_MEMCOLL):
13963         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
13964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
13965         * m4/memxor.m4 (gl_MEMXOR):
13966         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
13967         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
13968         * m4/modechange.m4 (gl_MODECHANGE):
13969         * m4/mountlist.m4 (gl_MOUNTLIST):
13970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13971         * m4/openat.m4 (gl_FUNC_OPENAT):
13972         * m4/pathmax.m4 (gl_PATHMAX):
13973         * m4/physmem.m4 (gl_PHYSMEM):
13974         * m4/posixtm.m4 (gl_POSIXTM):
13975         * m4/posixver.m4 (gl_POSIXVER):
13976         * m4/quote.m4 (gl_QUOTE):
13977         * m4/quotearg.m4 (gl_QUOTEARG):
13978         * m4/readtokens.m4 (gl_READTOKENS):
13979         * m4/readutmp.m4 (gl_READUTMP):
13980         * m4/regex.m4 (gl_REGEX):
13981         * m4/safe-read.m4 (gl_SAFE_READ):
13982         * m4/safe-write.m4 (gl_SAFE_WRITE):
13983         * m4/same.m4 (gl_SAME):
13984         * m4/save-cwd.m4 (gl_SAVE_CWD):
13985         * m4/savedir.m4 (gl_SAVEDIR):
13986         * m4/settime.m4 (gl_SETTIME):
13987         * m4/sha1.m4 (gl_SHA1):
13988         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
13989         * m4/stat-macros.m4 (gl_STAT_MACROS):
13990         * m4/stat-time.m4 (gl_STAT_TIME):
13991         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
13992         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
13993         * m4/strdup.m4 (gl_FUNC_STRDUP):
13994         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
13995         * m4/strndup.m4 (gl_FUNC_STRNDUP):
13996         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
13997         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
13998         * m4/time_r.m4 (gl_TIME_R):
13999         * m4/timespec.m4 (gl_TIMESPEC):
14000         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
14001         * m4/unlinkdir.m4 (gl_UNLINKDIR):
14002         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
14003         * m4/userspec.m4 (gl_USERSPEC):
14004         * m4/utimecmp.m4 (gl_UTIMECMP):
14005         * m4/utimens.m4 (gl_UTIMENS):
14006         * m4/xalloc.m4 (gl_XALLOC):
14007         * m4/xgetcwd.m4 (gl_XGETCWD):
14008         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
14009         * m4/xreadlink.m4 (gl_XREADLINK):
14010         * m4/xstrtod.m4 (gl_XSTRTOD):
14011         * m4/yesno.m4 (gl_YESNO):
14012         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
14013         to get the necessary .h files and whatnot.
14014
14015 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
14016             Bruno Haible  <bruno@clisp.org>
14017
14018         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
14019         /bin/sh understanding of '!' conditional negation.
14020
14021 2006-08-21  Jim Meyering  <jim@meyering.net>
14022
14023         * modules/openat (Depends-on): Really alphabetize.
14024
14025         * modules/acl (Depends-on): Add error and quote.
14026
14027         * check-module (find_included_lib_files): Add at-func.c to the
14028         ok-to-include-more-than-once white list.
14029
14030         * modules/openat (Depends-on): Add lstat.  Alphabetize.
14031
14032 2006-08-21  Bruno Haible  <bruno@clisp.org>
14033
14034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14035         Emit a pkgdata_DATA variable only if some snippets add contents to it.
14036         Reported by Martin Lambers <marlam@marlam.de>.
14037
14038 2006-08-21  Bruno Haible  <bruno@clisp.org>
14039
14040         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
14041         specify an installation location, don't emit a noinst_LIBRARIES or
14042         noinst_LTLIBRARIES assignment.
14043
14044 2006-08-21  Bruno Haible  <bruno@clisp.org>
14045
14046         BeOS portability.
14047         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
14048         BeOS has mbrtowc() but no <wctype.h>.
14049
14050 2006-08-21  Bruno Haible  <bruno@clisp.org>
14051
14052         BeOS portability.
14053         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
14054         exist.
14055
14056 2006-08-21  Bruno Haible  <bruno@clisp.org>
14057
14058         BeOS portability.
14059         * lib/mbchar.h: Include <wctype.h> only if it exists.
14060
14061 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14062
14063         Remove files that are no longer needed by their respective modules.
14064         * m4/obstack.m4: Remove.
14065         * m4/strerror_r.m4: Remove.
14066         * m4/uint32_t.m4: Remove.
14067         * m4/uintptr_t.m4: Remove.
14068         * m4/ullong_max.m4: Remove.
14069         * m4/xstrtoimax.m4: Remove.
14070         * m4/xstrtoumax.m4: Remove.
14071
14072         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
14073         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
14074         dependencies now capture this.
14075
14076         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
14077         Do not use AC_LIBSOURCES, since gnulib modules now do this.
14078         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
14079         * m4/human.m4 (gl_HUMAN): Likewise.
14080         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
14081         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
14082
14083         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
14084
14085         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
14086         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
14087         stdint.
14088         * m4/human.m4 (gl_HUMAN): Likewise.
14089         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
14090         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
14091         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
14092         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
14093         * m4/xstrtol (gl_XSTRTOL): Likewise.
14094
14095         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
14096         AC_TYPE_LONG_LONG_INT.
14097         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
14098         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
14099         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
14100         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
14101
14102         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
14103         on stdbool.
14104
14105         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
14106         (gl_PREREQ_XSTRTOUL): Remove.
14107
14108         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
14109
14110         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
14111         mode.
14112
14113 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14114
14115         Add and change modules to make it easier for coreutils to use
14116         gnulib-tool.
14117         * modules/backupfile (Files): Remove m4/d-ino.m4.
14118         (Depends-on): Add d-ino.
14119         * modules/cycle-check (Depends-on): Add stdint.
14120         (lib_SOURCES): Add cycle-check.h.
14121         * modules/d-ino: New module.
14122         * modules/d-type: New module.
14123         * modules/error (Files): Remove m4/strerror_r.m4.
14124         * modules/filemode (Files): Add m4/st_dm_mode.m4.
14125         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
14126         m4/inttypes_h.m4, m4/uintmax_t.m4.
14127         (Depends-on): Add stdint.
14128         (lib_SOURCES): Add fsusage.h.
14129         * modules/getcwd (Files): Remove d-ino.m4.
14130         (Depends-on): Add d-ino.
14131         * modules/getndelim2 (Depends-on): Add stdint.
14132         * modules/glob (Files): Remove m4/d-type.m4.
14133         (Depends-on): Add d-type.
14134         * modules/host-os: New module.
14135         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
14136         m4/inttypes_h.m4, m4/uintmax_t.m4.
14137         * Depends-on: Add stdint.
14138         (lib_SOURCES): Add human.h.
14139         * modules/inttostr (Files): Remove m4/intmax_t.m4,
14140         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
14141         m4/uintmax_t.m4, m4/ulonglong.m4.
14142         (Depends-on): Add stdint.
14143         (EXTRA_DIST): Add inttostr.h.
14144         * modules/lchmod: New module.
14145         * modules/link-follow: New module.
14146         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
14147         (Depends-on): Add lchmod.
14148         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
14149         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
14150         (Depends-on): Add stdint.
14151         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
14152         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
14153         (Depends-on): Add stdint.
14154         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
14155         * modules/perl: New module.
14156         * modules/regex (Depends-on): Add stdint.
14157         * modules/rmdir-errno: New module.
14158         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
14159         m4/intmax_t.m4.
14160         (Depends-on): Add stdint.
14161         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
14162         m4/uintmax_t.m4.
14163         (Depends-on): Add stdint.
14164         * modules/unlink-busy: New module.
14165         * modules/utimecmp (Depends-on): Add stdint.
14166         * modules/uptime: New module.
14167         * modules/winsz-ioctl: New module.
14168         * modules/winsz-termios: New module.
14169         * modules/xnanosleep (Depends-on): Add nanosleep.
14170         * modules/ullong_max: Remove.
14171         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
14172         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
14173         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
14174         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
14175         (Depends-on): Add inttypes.
14176         (lib_SOURCES): Add xstrtol.h.
14177         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
14178         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
14179         * MODULES.html.sh: Move 'assert' into the assert section.
14180         Move 'dummy' into the linking section.
14181         Remove ullong_max.
14182         Add section for compatibility checks for POSIX:2001 functions,
14183         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
14184         winsz-ioctl, and winsz-termios into it.
14185         Add lchmod.
14186         Add top-level Misc section and put host-os, perl, and uptime
14187         into it.
14188
14189 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
14190
14191         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
14192         now assume the stdint module.  Do not include inttypes.h.
14193         * lib/fsusage.h: Likewise.
14194         * lib/getndelim2.c: Likewise.
14195         * lib/human.h: Likewise.
14196         * lib/inttostr.h: Likewise.
14197         * lib/obstack.c: Likewise.
14198         * lib/regex_internal.h: Likewise.
14199         * lib/tempname.c: Likewise.
14200         * lib/utimecmp.c: Likewise.
14201         * lib/xstrtol.h: Likewise.
14202
14203         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
14204
14205         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
14206         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
14207         * lib/xtime.h: Likewise.
14208
14209 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14210
14211         * modules/openat (Files): Add lib/fchmodat.c.
14212         Fixes problem reported by Jay Youngman.
14213
14214 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
14217         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
14218
14219 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14220             Bruno Haible  <bruno@clisp.org>
14221
14222         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
14223         and is a script that invokes bison. Tighten the code. Add comments.
14224
14225 2006-08-18  Jim Meyering  <jim@meyering.net>
14226
14227         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
14228         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
14229         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
14230         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
14231
14232 2006-08-18  Bruno Haible  <bruno@clisp.org>
14233
14234         * modules/bison-i18n: New file.
14235         * MODULES.html.sh (Internationalization functions): Add it.
14236
14237 2006-08-18  Bruno Haible  <bruno@clisp.org>
14238
14239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
14240         sys/statvfs.h. When getmntinfo was found, check its declaration and
14241         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
14242
14243 2006-08-18  Bruno Haible  <bruno@clisp.org>
14244
14245         * m4/bison-i18n.m4: New file, from bison.
14246
14247 2006-08-18  Bruno Haible  <bruno@clisp.org>
14248
14249         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
14250         (ME_DUMMY): Treat "kernfs" as a dummy.
14251         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
14252
14253 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14254
14255         Update from coreutils.
14256
14257         2006-08-15  Jim Meyering  <jim@meyering.net>
14258
14259         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
14260
14261         2006-01-17  Jim Meyering  <jim@meyering.net>
14262
14263         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
14264
14265         2006-01-11  Jim Meyering  <jim@meyering.net>
14266
14267         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
14268         Check for the lchmod function.
14269
14270 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14271
14272         Update from coreutils.
14273
14274         * lib/__fpending.h: Add copyright notice.
14275         * lib/fprintftime.h: Likewise.
14276         * lib/savedir.c: Use (C) in copyright notice.
14277         * lib/savedir.h: Likewise.
14278
14279         2006-08-15  Jim Meyering  <jim@meyering.net>
14280
14281         * lib/at-func.c: New file, with the logic of all emulated at-functions.
14282         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
14283         in support of the EXPECTED_ERRNO macro.
14284         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
14285         definitions.  Instead, define the appropriate symbols and include
14286         "at-func.c".
14287         * lib/mkdirat.c (mkdirat): Likewise.
14288         * lib/fchmodat.c (fchmodat): Likewise.
14289         (ENOSYS): Remove definition.
14290         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
14291         it.  Don't include "unistd--.h" -- it wasn't ever used.
14292
14293         2006-01-17  Jim Meyering  <jim@meyering.net>
14294
14295         Rewrite fts.c not to change the current working directory,
14296         by using openat, fstatat, fdopendir, etc..
14297
14298         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
14299         (HAVE_OPENAT_SUPPORT): Define.
14300         [_LIBC] (fchdir): Don't undef or define; no longer used.
14301         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
14302         Now, this `function' always succeeds, and consumes its file descriptor
14303         parameter -- so callers must not close such FDs.  Update callers.
14304         (diropen_fd, opendirat, cwd_advance_fd): New functions.
14305         (diropen): Add parameter, SP.  Adjust all callers.
14306         Implement using diropen_fd, rather than open.
14307         (fts_open): Initialize new member, fts_cwd_fd.
14308         Remove fts_rft-setting code.
14309         (fts_close): Close fts_cwd_fd, if necessary.
14310         (__opendir2): Define in terms of opendir or opendirat,
14311         depending on whether the FST_NOCHDIR flag is set.
14312         (fts_build): Since fts_safe_changedir consumes its FD, and since
14313         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
14314         and close the dup'd file descriptor upon failure.
14315         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
14316         (fts_safe_changedir): Tweak semantics to reflect that this function
14317         now calls cwd_advance_fd and hence consumes its FD argument.
14318         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
14319         [struct FTS] (fts_rft): Remove now-unused member.
14320         [struct FTS] (fts_cycle.state): Improve comment.
14321
14322         * lib/openat.c (openat_needs_fchdir): New function.
14323         * lib/openat.h (openat_needs_fchdir): Declare it.
14324
14325 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
14326
14327         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
14328         Problem and fix reported by Pádraig Brady in
14329         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
14330
14331 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14332
14333         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
14334
14335 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14336
14337         * lib/memcoll.c (memcoll): Optimize for the common case where the
14338         arguments are bytewise equal.
14339
14340 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14341
14342         * doc/regexprops-generic.texi: Add a copyright notice.
14343
14344 2006-08-15  Bruno Haible  <bruno@clisp.org>
14345
14346         * modules/tmpdir (License): Change to LGPL.
14347
14348 2006-08-15  Bruno Haible  <bruno@clisp.org>
14349
14350         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
14351         module.
14352
14353 2006-08-14  Simon Josefsson  <jas@extundo.com>
14354
14355         * config/srclist.txt: Add gnupload.
14356
14357 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14358
14359         Change copyright notice from LGPL 2 to GPL 2, since that's the
14360         standard form used in the gnulib repository.
14361         * tests/test-lock.c: Likewise.
14362         * tests/test-stdint.c: Likewise.
14363         * tests/test-tls.c: Likewise.
14364
14365         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
14366         prelude-manager.  User shorter URLs for GNU projects, without '?'.
14367         Add copyright notice.
14368
14369         * check-module: Add copyright notice.  Output a copyright
14370         notice if "--version" is specified.
14371         * modules/COPYING: New file.
14372         * tests/test-getaddrinfo.c: Add copyright notice.
14373         * tests/test-verify.c: Likewise.
14374
14375 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14376
14377         Change copyright notice from LGPL 2 to GPL 2, since that's the
14378         standard form used in the gnulib repository.
14379         * lib/lock.c: LGPL -> GPL.
14380         * lib/lock.h: Likewise.
14381         * lib/strnlen1.c: Likewise.
14382         * lib/strnlen1.h: Likewise.
14383         * lib/tls.c: Likewise.
14384         * lib/tls.h: Likewise.
14385         * lib/tmpdir.c: Likewise.
14386
14387         * lib/TODO: Remove; this belongs only in coreutils.
14388
14389 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14390
14391         Add copyright notices to long-enough files that lack them, since
14392         otherwise the files aren't clearly free.  Use the same notice that
14393         getdate.texi already uses.
14394         * doc/alloca-opt.texi: Add copyright notice.
14395         * doc/alloca.texi: Likewise.
14396         * doc/ctime.texi: Likewise.
14397         * doc/functions.texi: Likewise.
14398         * doc/gcd.texi: Likewise.
14399         * doc/gnulib-tool.texi: Likewise.
14400         * doc/inet_ntoa.texi: Likewise.
14401         * doc/visibility.texi: Likewise.
14402
14403         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
14404         * doc/quote.texi: Add copyright notice.
14405
14406         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
14407         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
14408         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
14409         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
14410         is now obsolete, and give a pointer to the Sun list.
14411         Add copyright notice.
14412
14413 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
14414
14415         * config/srclistvars.sh: Add copyright notice.
14416
14417 2006-08-14  Eric Blake  <ebb9@byu.net>
14418
14419         Import the following change from libc:
14420
14421         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
14422
14423         Upstream bug 2997.
14424         * lib/misc/error.c: Add space between program name and message if file
14425         name is missing.
14426
14427 2006-08-12  Karl Berry  <karl@gnu.org>
14428
14429         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
14430         remove, these originate in gnulib now.
14431
14432 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14433
14434         * doc/Makefile (standards.info standards.html standards.dvi):
14435         Also depend on make-stds.texi.
14436
14437 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14438
14439         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
14440         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
14441
14442         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
14443         in wchar_t.  Problem reported by Eric Blake.
14444
14445         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
14446         LEN is smaller than SIZE.  Suggested by Bruno Haible.
14447         Also, help the compiler to keep LEN in a register.
14448
14449 2006-08-11  Eric Blake  <ebb9@byu.net>
14450
14451         * users.txt: Sort.  Add tar.
14452
14453 2006-08-11  Bruno Haible  <bruno@clisp.org>
14454
14455         * users.txt: New file.
14456
14457 2006-08-11  Bruno Haible  <bruno@clisp.org>
14458
14459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
14460         before <wchar.h>. Needed for OSF/1 and BSD/OS.
14461
14462 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14463
14464         * modules/snprintf (Depends-on): Remove minmax.
14465         (Maintainer): Add self and Bruno.
14466
14467 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14468
14469         * lib/.cppi-disable: Add snprintf.h, socket_.h.
14470         * lib/snprintf.c: Include <errno.h> and <limits.h>.
14471         (EOVERFLOW): Define if the system does not.
14472         Do not include "minmax.h"; it wasn't used.
14473         (snprintf): Don't assume size_t promotes to an unsigned type.
14474         Fix bug when generated string was too long for the buffer: the
14475         buffer's contents are supposed to be the initial prefix of the
14476         output.  Don't assume vasnprintf returns EOVERFLOW if the size
14477         exceeds INT_MAX; do the check ourselves.
14478
14479         Import the following changes from libc:
14480
14481         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14482
14483         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
14484         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
14485         set wc to the byte which couldn't be converted.
14486         (re_string_reconstruct): Don't clear valid_raw_len before calling
14487         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14488         tip_context using re_string_context_at.
14489
14490         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
14491
14492         * lib/posix/regex.h: g++ still cannot handled [restrict].
14493
14494         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
14495
14496         * lib/posix/regex.h: Remove special handling for VMS.
14497
14498 2006-08-10  Jim Meyering  <jim@meyering.net>
14499
14500         * modules/same-inode: New module.
14501         * modules/dev-ino: New module.
14502         * modules/cycle-check: Depend on these modules, rather than simply
14503         including their .h files.
14504         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
14505         required via m4/cycle-check.m4.
14506         * modules/same: Depend on new same-inode module, rather than
14507         including same-inode.h.
14508         * modules/chdir-safer: New file.
14509
14510         * modules/chown (Depends-on): Add stat-macros.
14511
14512 2006-08-10  Jim Meyering  <jim@meyering.net>
14513
14514         * m4/cycle-check.m4: New file.
14515         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
14516         * m4/dev-ino.m4, m4/same-inode.m4: New files.
14517
14518 2006-08-10  Eric Blake  <ebb9@byu.net>
14519
14520         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
14521         in from original proposal.
14522
14523 2006-08-10  Eric Blake  <ebb9@byu.net>
14524         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14525
14526         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
14527         namespace.
14528
14529 2006-08-10  Bruno Haible  <bruno@clisp.org>
14530
14531         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
14532         as well.
14533
14534 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14535
14536         Sync from coreutils.
14537
14538         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
14539
14540         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
14541         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
14542
14543 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14544
14545         * modules/restrict: Remove; no longer needed now that we assume
14546         Autoconf 2.59 or later.
14547         * MODULES.html.sh: Remove 'restrict'.
14548         * modules/argp (Depends-on): Remove 'restrict'.
14549         * modules/base64 (Depends-on): Likewise.
14550         * modules/gc (Depends-on): Likewise.
14551         * modules/getaddrinfo (Depends-on): Likewise.
14552         * modules/glob (Depends-on): Likewise.
14553         * modules/inet_ntop (Depends-on): Likewise.
14554         * modules/inet_pton (Depends-on): Likewise.
14555         * modules/memxor (Depends-on): Likewise.
14556         * modules/regex (Depends-on): Likewise.
14557         * modules/strtok_r (Depends-on): Likewise.
14558         * modules/time_r (Depends-on): Likewise.
14559
14560 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
14563         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
14564         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14565         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
14566         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14567         * m4/memxor.m4 (gl_MEMXOR): Likewise.
14568         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
14569         gl_C_RESTRICT replaced by AC_C_RESTRICT.
14570
14571         Merge from coreutils.
14572         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
14573         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
14574         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14575         * m4/time_r.m4 (gl_TIME_R): Likewise.
14576
14577 2006-08-09  Karl Berry  <karl@gnu.org>
14578
14579         * config/srclist.txt: no more gettext-tools, per Bruno.
14580
14581 2006-08-08  Eric Blake  <ebb9@byu.net>
14582
14583         * modules/verror: New module.
14584         * MODULES.html.sh: Document it.
14585
14586 2006-08-08  Eric Blake  <ebb9@byu.net>
14587
14588         * lib/verror.h, lib/verror.c: New files.
14589
14590 2006-08-08  Eric Blake  <ebb9@byu.net>
14591
14592         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
14593         verror_at_line output complies with GNU Coding Standards even when
14594         file is NULL.
14595
14596 2006-08-07  Bruno Haible  <bruno@clisp.org>
14597
14598         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
14599         versions of AIX.
14600         Reported by Ralf Wildenhues.
14601
14602 2006-08-07  Bruno Haible  <bruno@clisp.org>
14603
14604         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
14605         in an AC_DEFUN. Needed so that the autoconf snippets can use
14606         AC_REQUIRE.
14607
14608 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14609
14610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14611         Initialize pkgdata_DATA.
14612         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
14613         overriding it.
14614
14615 2006-08-06  Eric Blake  <ebb9@byu.net>
14616
14617         * lib/error.h: Fold in some upstream changes from glibc.
14618         * lib/error.c: Likewise.
14619
14620 2006-08-04  Bruno Haible  <bruno@clisp.org>
14621
14622         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14623         Make the mostlyclean-local rule depend on mostlyclean-generic.
14624         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
14625
14626 2006-07-31  Bruno Haible  <bruno@clisp.org>
14627
14628         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
14629         <stdlib.h>, <string.h>.
14630
14631 2006-07-30  Bruno Haible  <bruno@clisp.org>
14632
14633         * modules/readlink (License): Change to LGPL.
14634
14635 2006-07-30  Bruno Haible  <bruno@clisp.org>
14636
14637         * modules/javaversion (Makefile.am): Distribute javaversion.java and
14638         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
14639         set PKGDATADIR to point to it.
14640
14641 2006-07-30  Bruno Haible  <bruno@clisp.org>
14642
14643         * modules/csharpexec (configure.ac): Comment out macro invocation.
14644         * modules/javaexec (configure.ac): Likewise.
14645         * modules/javacomp-script (configure.ac): Likewise.
14646
14647         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
14648
14649 2006-07-30  Bruno Haible  <bruno@clisp.org>
14650
14651         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
14652         linked-list.
14653
14654 2006-07-30  Bruno Haible  <bruno@clisp.org>
14655
14656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
14657
14658 2006-07-30  Bruno Haible  <bruno@clisp.org>
14659
14660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14661         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
14662         get removed.
14663
14664 2006-07-29  Bruno Haible  <bruno@clisp.org>
14665
14666         Make it possible for gnulib-tool to work with locally modified or
14667         augmented gnulib repositories.
14668         * gnulib-tool (func_usage): Document --local-dir option.
14669         (local_gnulib_dir): New variable.
14670         Handle --local-dir option.
14671         (func_lookup_file): New function.
14672         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
14673         (func_get_description, func_get_filelist, func_get_description,
14674         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
14675         func_get_automake_snippet, func_get_include_directive,
14676         func_get_license, func_get_maintainer): Use func_lookup_file.
14677         (func_import, func_create_testdir): Use func_lookup_file.
14678
14679 2006-07-29  Bruno Haible  <bruno@clisp.org>
14680
14681         * modules/setenv (Depends-on): Add unistd.
14682
14683 2006-07-29  Bruno Haible  <bruno@clisp.org>
14684
14685         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
14686
14687 2006-07-29  Bruno Haible  <bruno@clisp.org>
14688
14689         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
14690
14691 2006-07-29  Bruno Haible  <bruno@clisp.org>
14692
14693         * gnulib-tool (import, update): If there is no Makefile.am, look at
14694         aclocal.m4, instead of bailing out.
14695
14696 2006-07-29  Bruno Haible  <bruno@clisp.org>
14697
14698         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
14699         Categorize the options by when they are useful.
14700
14701 2006-07-29  Bruno Haible  <bruno@clisp.org>
14702
14703         * gnulib-tool (func_usage): Document option --no-libtool.
14704         Handle option --no-libtool.
14705         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
14706         for changed semantics of $libtool variable.
14707         (func_import): Likewise. If libtool is not used, show this through
14708         an option --no-libtool.
14709         (func_create_testdir): Update.
14710
14711 2006-07-29  Bruno Haible  <bruno@clisp.org>
14712
14713         * gnulib-tool (func_import): Extend error message about missing
14714         --doc-base.
14715
14716 2006-07-29  Bruno Haible  <bruno@clisp.org>
14717
14718         * gnulib-tool (func_import): Don't create the $docbase directory if
14719         there is no file to store there.
14720
14721 2006-07-29  Bruno Haible  <bruno@clisp.org>
14722
14723         * gnulib-tool (autoconf_minversion): If a --dir option is given and
14724         relevant, look for configure.ac there, not in the current directory.
14725         Also use a simple search for AC_PREREQ, not "autoconf --trace".
14726
14727 2006-07-29  Bruno Haible  <bruno@clisp.org>
14728
14729         * gnulib-tool (SORT): New variable.
14730         (func_usage): Undocument --assume-autoconf option.
14731         Remove --assume-autoconf option handling.
14732         (autoconf_minversion): Determine from the contents of configure.ac.
14733         (func_import): Remove autoconf_minversion handling.
14734         Suggested by Eric Blake.
14735
14736 2006-07-29  Bruno Haible  <bruno@clisp.org>
14737
14738         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
14739
14740 2006-07-29  Bruno Haible  <bruno@clisp.org>
14741
14742         * config/srclist.txt (*setenv.[ch]): Remove rules.
14743
14744 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14745
14746         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
14747
14748 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14749
14750         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
14751         arpa/inet.h.
14752
14753 2006-07-28  Simon Josefsson  <jas@extundo.com>
14754
14755         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
14756         * modules/inet_pton (Depends-on): Likewise.
14757
14758 2006-07-28  Simon Josefsson  <jas@extundo.com>
14759
14760         * m4/netinet_in_h.m4: New file.
14761
14762 2006-07-28  Simon Josefsson  <jas@extundo.com>
14763
14764         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
14765         #include's.
14766
14767 2006-07-28  Simon Josefsson  <jas@extundo.com>
14768
14769         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
14770         #include's.
14771
14772 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
14773
14774         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
14775         setgid on directories only if they set these bits.
14776         * lib/modechange.h: Remove obsolete comment about masks.
14777
14778 2006-07-28  Eric Blake  <ebb9@byu.net>
14779
14780         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
14781         macro expansion.
14782
14783 2006-07-28  Bruno Haible  <bruno@clisp.org>
14784
14785         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
14786
14787 2006-07-28  Bruno Haible  <bruno@clisp.org>
14788
14789         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
14790
14791 2006-07-28  Bruno Haible  <bruno@clisp.org>
14792
14793         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14794         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14795         Define fallbacks.
14796         Avoids link error on FreeBSD 4.x.
14797         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14798
14799         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
14800         encoding.
14801         * lib/mbswidth.c (iswcntrl): Likewise.
14802
14803 2006-07-27  Bruno Haible  <bruno@clisp.org>
14804
14805         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
14806         test.
14807
14808 2006-07-27  Bruno Haible  <bruno@clisp.org>
14809
14810         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
14811         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
14812         defined.
14813
14814 2006-07-26  Eric Blake  <ebb9@byu.net>
14815
14816         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
14817
14818 2006-07-26  Eric Blake  <ebb9@byu.net>
14819
14820         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
14821         like mingw that lack mkstemp.
14822         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
14823         avoid compilation warning on mingw.
14824
14825 2006-07-26  Bruno Haible  <bruno@clisp.org>
14826
14827         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
14828         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
14829         INT_FAST*_MIN, INTPTR_MIN.
14830
14831 2006-07-25  Bruno Haible  <bruno@clisp.org>
14832
14833         * modules/version-etc (Depends-on): Add stdarg.
14834
14835 2006-07-25  Bruno Haible  <bruno@clisp.org>
14836
14837         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
14838         complex commands.
14839
14840 2006-07-25  Bruno Haible  <bruno@clisp.org>
14841
14842         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
14843         defined in <stdarg.h> or config.h.
14844
14845 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14846
14847         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
14848         (gl_STDIO_SAFER): Remove.
14849
14850 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14851
14852         * MODULES.html.sh (File stream based Input/Output):
14853         Add fopen-safer, tmpfile-safer; remove stdio-safer.
14854         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
14855         * modules/fopen-safer, modules/tmpfile-safer: New files.
14856         * modules/stdio-safer: Remove.
14857
14858 2006-07-24  Bruno Haible  <bruno@clisp.org>
14859
14860         * modules/tmpdir: New file.
14861         * MODULES.html.sh (File system functions): Add it.
14862
14863 2006-07-24  Bruno Haible  <bruno@clisp.org>
14864
14865         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
14866         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
14867
14868 2006-07-24  Bruno Haible  <bruno@clisp.org>
14869
14870         * modules/clean-temp: New file.
14871
14872 2006-07-24  Bruno Haible  <bruno@clisp.org>
14873
14874         * m4/tmpdir.m4: New file, from GNU gettext.
14875
14876 2006-07-24  Bruno Haible  <bruno@clisp.org>
14877
14878         * lib/tmpdir.h: New file, from GNU gettext.
14879         * lib/tmpdir.c: New file, from GNU gettext.
14880
14881 2006-07-24  Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/clean-temp.h: New file, from GNU gettext.
14884         * lib/clean-temp.c: New file, from GNU gettext.
14885
14886 2006-07-23  Eric Blake  <ebb9@byu.net>
14887
14888         * modules/stdio-safer (Files): Add tmpfile-safer.c.
14889         (Depends-on): Add binary-io.
14890
14891 2006-07-23  Eric Blake  <ebb9@byu.net>
14892
14893         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
14894
14895 2006-07-23  Eric Blake  <ebb9@byu.net>
14896
14897         * lib/tmpfile-safer.c: New file.
14898         * lib/stdio-safer.h (fopen_safer): Add prototype.
14899         * lib/stdio--.h (tmpfile): Make safer.
14900
14901 2006-07-23  Bruno Haible  <bruno@clisp.org>
14902
14903         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
14904         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
14905         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
14906         gl_linked_remove_at): Use it.
14907
14908 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14909         and Simon Josefsson <jas@extundo.com>
14910
14911         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
14912
14913         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
14914
14915 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         * modules/close-stream: New file.
14918         * modules/closeout (Description): Make it clear that it exits
14919         with a diagnostic on error.
14920         (Depends-on): Add close-stream.  Remove fpending, stdbool.
14921         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
14922
14923 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14924
14925         * m4/close-stream.m4: New file.
14926
14927 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14928
14929         * lib/close-stream.c, lib/close-stream.h: New files.
14930
14931 2006-07-22  Bruno Haible  <bruno@clisp.org>
14932
14933         Merge from GNU gettext 0.15.
14934
14935         2006-05-01  Bruno Haible  <bruno@clisp.org>
14936
14937                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
14938
14939         2006-07-22  Bruno Haible  <bruno@clisp.org>
14940
14941                 * modules/javaversion: New file.
14942                 * MODULES.html.sh (Java): Add javaversion.
14943
14944         2006-03-12  Bruno Haible  <bruno@clisp.org>
14945
14946                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
14947
14948         2005-12-04  Bruno Haible  <bruno@clisp.org>
14949
14950                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
14951                 (untested).
14952
14953         2006-06-21  Bruno Haible  <bruno@clisp.org>
14954
14955                 Avoid warnings from recent versions of mcs.
14956                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
14957                 -o, -L, -r any more. Use options documented since mcs-1.0
14958                 instead. Similarly for -g.
14959
14960         2005-12-04  Bruno Haible  <bruno@clisp.org>
14961
14962                 * build-aux/csharpcomp.sh.in: Suffix for resources is
14963                 .resources, not .resource.
14964
14965         2005-07-09  Bruno Haible  <bruno@clisp.org>
14966
14967                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
14968                 add a .dll suffix.
14969                 Reported by Mark Junker <mjscod@gmx.de>.
14970
14971         2006-07-22  Bruno Haible  <bruno@clisp.org>
14972
14973                 * modules/gettext: Upgrade to gettext-0.15.
14974                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
14975                 m4/visibility.m4.
14976                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
14977
14978 2006-07-22  Bruno Haible  <bruno@clisp.org>
14979
14980         Merge from GNU gettext 0.15.
14981
14982         2006-03-25  Bruno Haible  <bruno@clisp.org>
14983
14984                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
14985
14986         2006-07-21  Bruno Haible  <bruno@clisp.org>
14987
14988                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
14989                 "1.1".
14990
14991         2006-05-09  Bruno Haible  <bruno@clisp.org>
14992
14993                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
14994                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
14995                 for the conftestver execution.
14996
14997         2006-05-01  Bruno Haible  <bruno@clisp.org>
14998
14999                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
15000                 optional target-version argument. Verify that the compiler
15001                 groks source of the specified source-version, or add -source
15002                 option as necessary. Verify that the compiler produces
15003                 bytecode in the specified target-version, or add -target and
15004                 -source options as necessary. Make the result of the test
15005                 available as variable CONF_JAVAC. Also log error output in
15006                 config.log.
15007
15008         2006-03-11  Bruno Haible  <bruno@clisp.org>
15009
15010                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
15011
15012         2006-05-09  Bruno Haible  <bruno@clisp.org>
15013
15014                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
15015                 CLASSPATH_SEPARATOR to a semicolon.
15016
15017         2006-03-12  Bruno Haible  <bruno@clisp.org>
15018
15019                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
15020                 available as variable CONF_JAVA, for subsequent autoconf
15021                 tests. Also log error output in config.log.
15022
15023         2006-07-19  Bruno Haible  <bruno@clisp.org>
15024
15025                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
15026                 that getline works on glibc2 systems. Needed to avoid trouble
15027                 in relocatable.c.
15028                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
15029
15030         2005-12-04  Bruno Haible  <bruno@clisp.org>
15031
15032                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
15033                 launcher (untested).
15034
15035         2005-12-04  Bruno Haible  <bruno@clisp.org>
15036
15037                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
15038
15039         2006-07-22  Bruno Haible  <bruno@clisp.org>
15040
15041                 * gettext.m4: Update from GNU gettext-0.15.
15042                 * nls.m4: Likewise.
15043                 * po.m4: Likewise.
15044                 * inttypes-pri.m4: Likewise.
15045                 * inttypes-h.m4: Renamed from inttypes.m4.
15046                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
15047
15048 2006-07-22  Bruno Haible  <bruno@clisp.org>
15049
15050         Merge from GNU gettext 0.15.
15051
15052         2005-07-05  Bruno Haible  <bruno@clisp.org>
15053
15054                 * printf-args.c (printf_fetchargs): Work around broken
15055                 definition of wint_t on mingw.
15056
15057         2005-02-12  Bruno Haible  <bruno@clisp.org>
15058
15059                 * xallocsa.h: Add extern "C" for C++.
15060
15061         2006-05-17  Bruno Haible  <bruno@clisp.org>
15062
15063                 Cygwin portability.
15064                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
15065
15066         2006-04-30  Bruno Haible  <bruno@clisp.org>
15067
15068                 * progreloc.c: Include <mach-o/dyld.h> if available.
15069                 (find_executable): Use _NSGetExecutablePath when possible.
15070
15071         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
15072
15073                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
15074                 function.
15075
15076         2005-12-29  Bruno Haible  <bruno@clisp.org>
15077
15078                 * progreloc.c (set_program_name_and_installdir): Fix
15079                 compilation error.
15080
15081         2005-12-04  Bruno Haible  <bruno@clisp.org>
15082
15083                 Cygwin portability.
15084                 * progreloc.c: Include <windows.h> also on Cygwin.
15085                 (find_executable): Add support for Cygwin.
15086                 (set_program_name_and_installdir): Handle also platforms with
15087                 nonempty EXEEXT.
15088
15089         2006-07-11  Bruno Haible  <bruno@clisp.org>
15090
15091                 * javacomp.c: Fix a comment.
15092                 Reported by Jim Meyering.
15093
15094         2006-04-30  Bruno Haible  <bruno@clisp.org>
15095
15096                 * javacomp.h (compile_java_class): Add source_version,
15097                 target_version arguments.
15098                 * javacomp.c: Rewritten to choose only a compiler that
15099                 respects the specified source_version and target_version.
15100
15101         2006-06-27  Bruno Haible  <bruno@clisp.org>
15102
15103                 Assume correct S_ISDIR macro.
15104                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
15105
15106         2006-07-22  Bruno Haible  <bruno@clisp.org>
15107
15108                 * javaversion.h: New file, from GNU gettext.
15109                 * javaversion.c: New file, from GNU gettext.
15110                 * javaversion.java: New file, from GNU gettext.
15111                 * javaversion.class: New file, from GNU gettext.
15112
15113         2006-05-17  Bruno Haible  <bruno@clisp.org>
15114
15115                 Cygwin portability.
15116                 * javaexec.c (execute_java_class): Test for jview program
15117                 also on Cygwin.
15118
15119         2006-04-09  Bruno Haible  <bruno@clisp.org>
15120
15121                 * fatal-signal.c: Don't include string.h.
15122                 (at_fatal_signal): Use a copying loop instead of memcpy.
15123
15124         2005-12-04  Bruno Haible  <bruno@clisp.org>
15125
15126                 * csharpexec.c: Add support for 'clix' launcher (untested).
15127                 (execute_csharp_using_sscli): New function.
15128                 (execute_csharp_program): Call it.
15129
15130         2006-06-21  Bruno Haible  <bruno@clisp.org>
15131
15132                 Avoid warnings from recent versions of mcs.
15133                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
15134                 -o, -L, -r any more. Use options documented since mcs-1.0
15135                 instead. Similarly for -g.
15136
15137         2005-07-09  Bruno Haible  <bruno@clisp.org>
15138
15139                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
15140                 add a .dll suffix.
15141                 Reported by Mark Junker <mjscod@gmx.de>.
15142
15143         2006-06-17  Bruno Haible  <bruno@clisp.org>
15144
15145                 * config.charset: Update for NetBSD 3.0.
15146
15147         2006-05-17  Bruno Haible  <bruno@clisp.org>
15148
15149                 Cygwin portability.
15150                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
15151
15152         2006-05-16  Bruno Haible  <bruno@clisp.org>
15153
15154                 * localcharset.c [CYGWIN]: Include <windows.h>.
15155                 (get_charset_aliases): For Cygwin, return the same CPxxx
15156                 aliases list as under WIN32.
15157                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
15158                 the environment variables. Fall back to GetACP().
15159
15160         2006-04-05  Bruno Haible  <bruno@clisp.org>
15161
15162                 * config.charset: Update Juan Manuel Guerrero's address.
15163
15164         2005-02-12  Bruno Haible  <bruno@clisp.org>
15165
15166                 * allocsa.h: Add extern "C" for C++.
15167
15168         2005-02-10  Bruno Haible  <bruno@clisp.org>
15169
15170                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
15171                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
15172
15173         2006-07-22  Bruno Haible  <bruno@clisp.org>
15174
15175                 * gettext.h: Update to GNU gettext-0.15.
15176
15177 2006-07-22  Bruno Haible  <bruno@clisp.org>
15178
15179         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
15180         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
15181         lib-prefix.m4, longdouble.m4, ssize_t.m4.
15182
15183 2006-07-21  Eric Blake  <ebb9@byu.net>
15184
15185         * modules/stdlib-safer: New file.
15186         * MODULES.html.sh (File stream based Input/Output): Add
15187         stdlib-safer.
15188
15189 2006-07-21  Eric Blake  <ebb9@byu.net>
15190
15191         * lib/stdlib-safer.h: New file from coreutils, required by
15192         stdlib--.h.
15193
15194 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
15195
15196         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
15197
15198 2006-07-20  Bruno Haible  <bruno@clisp.org>
15199
15200         * gnulib-tool: Recognize new option --assume-autoconf.
15201         (autoconf_minversion): New variable.
15202         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
15203
15204 2006-07-20  Bruno Haible  <bruno@clisp.org>
15205
15206         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
15207
15208 2006-07-19  Derek R. Price  <derek@ximbiot.com>
15209
15210         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
15211         Reindent and repaginate.
15212
15213 2006-07-19  Derek Price  <derek@ximbiot.com>
15214
15215         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
15216         Correct grammar.
15217
15218 2006-07-17  Bruno Haible  <bruno@clisp.org>
15219
15220         * modules/list: New file.
15221         * modules/array-list: New file.
15222         * modules/carray-list, modules/carray-list-tests: New files.
15223         * modules/linked-list, modules/linked-list-tests: New files.
15224         * modules/avltree-list, modules/avltree-list-tests: New files.
15225         * modules/rbtree-list, modules/rbtree-list-tests: New files.
15226         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
15227         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
15228         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
15229         * modules/oset: New file.
15230         * modules/array-oset: New file.
15231         * modules/avltree-oset, modules/avltree-oset-tests: New files.
15232         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
15233         * tests/test-carray_list.c: New file.
15234         * tests/test-linked_list.c: New file.
15235         * tests/test-avltree_list.c: New file.
15236         * tests/test-rbtree_list.c: New file.
15237         * tests/test-linkedhash_list.c: New file.
15238         * tests/test-avltreehash_list.c: New file.
15239         * tests/test-rbtreehash_list.c: New file.
15240         * tests/test-avltree_oset.c: New file.
15241         * tests/test-rbtree_oset.c: New file.
15242         * MODULES.html.sh (Container data structures): New section.
15243
15244 2006-07-17  Bruno Haible  <bruno@clisp.org>
15245
15246         * m4/gl_list.m4: New file.
15247
15248 2006-07-17  Bruno Haible  <bruno@clisp.org>
15249
15250         * lib/gl_list.h: New file.
15251         * lib/gl_list.c: New file.
15252         * lib/gl_array_list.h: New file.
15253         * lib/gl_array_list.c: New file.
15254         * lib/gl_carray_list.h: New file.
15255         * lib/gl_carray_list.c: New file.
15256         * lib/gl_linked_list.h: New file.
15257         * lib/gl_linked_list.c: New file.
15258         * lib/gl_anylinked_list1.h: New file.
15259         * lib/gl_anylinked_list2.h: New file.
15260         * lib/gl_avltree_list.h: New file.
15261         * lib/gl_avltree_list.c: New file.
15262         * lib/gl_anyavltree_list1.h: New file.
15263         * lib/gl_anyavltree_list2.h: New file.
15264         * lib/gl_rbtree_list.h: New file.
15265         * lib/gl_rbtree_list.c: New file.
15266         * lib/gl_anyrbtree_list1.h: New file.
15267         * lib/gl_anyrbtree_list2.h: New file.
15268         * lib/gl_anytree_list1.h: New file.
15269         * lib/gl_anytree_list2.h: New file.
15270         * lib/gl_linkedhash_list.h: New file.
15271         * lib/gl_linkedhash_list.c: New file.
15272         * lib/gl_anyhash_list1.h: New file.
15273         * lib/gl_anyhash_list2.h: New file.
15274         * lib/gl_avltreehash_list.h: New file.
15275         * lib/gl_avltreehash_list.c: New file.
15276         * lib/gl_rbtreehash_list.h: New file.
15277         * lib/gl_rbtreehash_list.c: New file.
15278         * lib/gl_anytreehash_list1.h: New file.
15279         * lib/gl_anytreehash_list2.h: New file.
15280
15281         * lib/gl_oset.h: New file.
15282         * lib/gl_oset.c: New file.
15283         * lib/gl_array_oset.h: New file.
15284         * lib/gl_array_oset.c: New file.
15285         * lib/gl_avltree_oset.h: New file.
15286         * lib/gl_avltree_oset.c: New file.
15287         * lib/gl_rbtree_oset.h: New file.
15288         * lib/gl_rbtree_oset.c: New file.
15289         * lib/gl_anytree_oset.h: New file.
15290
15291 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15292
15293         * m4/mkancesdirs.m4: New file.
15294         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
15295         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
15296         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
15297         it.
15298
15299 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15300
15301         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
15302         * lib/mkancesdirs.h: New files.
15303         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
15304         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
15305         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
15306         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
15307         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
15308         callers changed.  Revamp internals significantly, by not
15309         attempting to create directories that are temporarily more
15310         permissive than the final results.  Do not attempt to use
15311         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
15312         This removes some race conditions, fixes some bugs, and simplifies
15313         things.  Use new dirchownmod function to do owner and mode changes.
15314         * lib/mkdir-p.h: Likewise.
15315         * lib/modechange.c (octal_to_mode): New function.
15316         (struct mode_change): New member mentioned.
15317         (make_node_op_equals): New arg mentioned.  All callers changed.
15318         (mode_compile): Keep track of which mode bits the user has explicitly
15319         mentioned.
15320         (mode_adjust): New arg DIR, so that we implement the X op correctly.
15321         New arg PMODE_BITS, to keep track of which mode bits the user
15322         mentioned; it treats S_ISUID and S_ISGID speciall.
15323         All callers changed.
15324         * lib/modechange.h: Likewise.
15325
15326 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15327
15328         * MODULES.html.sh: Add mkancestors.
15329         * modules/mkancesdirs: New module.
15330         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
15331         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
15332         The chdir-safer and afs files are now orphans; I'll remove them
15333         unless someone speaks up.
15334         Add lib/dirchownmod.c, lib/dirchownmod.h.
15335         (Depends-on): Remove alloca, chown, save-cwd, dirname.
15336         Add lchown, mkancesdirs.
15337         (Maintainer): Add self.
15338
15339 2006-07-15  Karl Berry  <karl@gnu.org>
15340
15341         * gnulib-tool: help message wording/arrangement.
15342
15343 2006-07-14  Simon Josefsson  <jas@extundo.com>
15344
15345         * doc/gnulib.texi (Libtool and Windows): New section.
15346
15347 2006-07-12  Simon Josefsson  <jas@extundo.com>
15348
15349         * modules/gendocs (License): Fix license, approved by Karl.
15350
15351 2006-07-12  Eric Blake  <ebb9@byu.net>
15352
15353         * MODULES.html.sh: Add gendocs.
15354
15355 2006-07-11  Eric Blake  <ebb9@byu.net>
15356
15357         * modules/fdl: New module, to install doc/fdl.texi.
15358         * MODULES.html.sh: Add new section for documentation modules.
15359         * gnulib-tool: Avoid space-tab.
15360         (--doc-base): New option, to manage files from doc.
15361
15362 2006-07-11  Eric Blake  <ebb9@byu.net>
15363
15364         * m4/absolute-header.m4: Fix comments to match recent change.
15365
15366 2006-07-11  Eric Blake  <ebb9@byu.net>
15367
15368         * gnulib-tool: List --doc-base before --tests-base.
15369
15370 2006-07-11  Derek R. Price  <derek@ximbiot.com>
15371
15372         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
15373
15374 2006-07-11  Bruno Haible  <bruno@clisp.org>
15375
15376         * README: Mention where to put documentation.
15377
15378 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15379
15380         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
15381
15382 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
15385         to stdint.m4.
15386
15387 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
15388
15389         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
15390         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
15391         "no/such/file/stdint.h" when there is no such file, so that
15392         the resulting C code can be parsed by dodgy compilers.
15393         Problems reported by Bob Proulx.
15394
15395 2006-07-10  Derek R. Price  <derek@ximbiot.com>
15396
15397         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
15398         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
15399         macros into the GNU _D_EXACT_NAMLEN.
15400         * lib/savedir.c:  Likewise.
15401         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
15402
15403 2006-07-10  Derek R. Price  <derek@ximbiot.com>
15404         and Paul Eggert  <eggert@cs.ucla.edu>
15405
15406         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
15407         * m4/savedir.m4:
15408         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
15409         macros into the GNU _D_EXACT_NAMLEN.
15410
15411 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15412
15413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
15414         around the absolute name, to work around a problem with the HP-UX
15415         11.23 native C compiler, reported by Bob Proulx.
15416
15417 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         * doc/maintain.texi, make-stds.texi: Sync from
15420         <http://savannah.gnu.org/projects/gnustandards>.
15421
15422 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
15425
15426 2006-07-09  Jim Meyering  <jim@meyering.net>
15427
15428         * m4/glob.m4: Remove a doubled word in a comment.
15429
15430 2006-07-09  Jim Meyering  <jim@meyering.net>
15431
15432         * lib/argp-pv.c: Remove a doubled word in a comment.
15433         * lib/check-version.c (check_version): Likewise.
15434         * lib/javacomp.c (compile_java_class): Likewise.
15435
15436 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15437
15438         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
15439         for the benefit of people using Autoconf 2.60.  If you want to
15440         support older Autoconf versions you can copy m4/onceonly_2_57.m4
15441         (or m4/onceonly.m4, if pre-2.57) manually.
15442
15443 2006-07-08  Jim Meyering  <jim@meyering.net>
15444
15445         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
15446         comment.
15447         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
15448         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
15449         comment.
15450
15451 2006-07-08  Jim Meyering  <jim@meyering.net>
15452
15453         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
15454
15455 2006-07-07  Simon Josefsson  <jas@extundo.com>
15456
15457         * tests/test-crc.c: Change expected crc value, the test vector
15458         were probably computed using the old broken crc.c?
15459
15460 2006-07-06  Simon Josefsson  <jas@extundo.com>
15461
15462         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
15463         now the canonical place for the M4 file).
15464
15465         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
15466         from the sys_socket dependency now.
15467
15468         * modules/inet_pton (Files): Ditto.
15469
15470         * modules/inet_ntop (Files): Ditto.
15471
15472 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
15473
15474         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
15475         not gl_PREREQ_GETUSERSHELL.
15476
15477 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15478
15479         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
15480         with only one argument, for Autoconf 2.60.
15481         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
15482         expand to nothing, so add a shell command to avoid syntax error.
15483         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15484
15485 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15486
15487         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
15488
15489 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15490
15491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
15492         no longer needed.  Check for isblank decl.
15493         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
15494         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
15495         of existence.
15496
15497 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15498
15499         * lib/getloadavg.c: Use __VMS, not VMS.
15500         * lib/getopt.c: Likewise.
15501         * lib/getpagesize.h: Likewise.
15502         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
15503         and probably does not work.
15504
15505 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15506
15507         * lib/.cppi-disable: Add wcwidth.
15508         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
15509         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
15510         (ISGRAPH): Remove.  All uses changed to isgraph.
15511         (FOLD) [!defined _LIBC]: Remove special case.
15512         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
15513         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
15514         HAVE_ISBLANK.
15515         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
15516         case.
15517
15518 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
15519
15520         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
15521         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
15522         brackets.  Other minor changes to suppress some compiler
15523         warnings.
15524
15525 2006-07-06  Derek R. Price  <derek@ximbiot.com>
15526         and Paul Eggert  <eggert@cs.ucla.edu>
15527
15528         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
15529         of invoking obsolescent AC_HEADER_DIRENT macro.
15530         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15531         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
15532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15534         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
15535         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
15536         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
15537         * m4/readdir.m4: Remove; no longer needed.
15538
15539 2006-07-06  Derek R. Price  <derek@ximbiot.com>
15540         and Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
15543         Don't worry about this obsolete case any more.
15544         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
15545         directories.
15546         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
15547         worry about this obsolete case any more.
15548         * lib/fts.c: Likewise.
15549         * lib/getcwd.c: Likewise.
15550         * lib/glob.h: Likewise.
15551         * lib/savedir.c: Likewise.
15552
15553 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15554
15555         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
15556         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
15557         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
15558         needed.
15559         All uses removed.
15560         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
15561         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
15562         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
15563         needed.
15564         * m4/getdate.m4 (gl_GETDATE): Likewise.
15565         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
15566         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
15567         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15568         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
15569         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
15570         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15571         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
15572         needed.
15573
15574 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15575
15576         * lib/memcasecmp.c: Include <limits.h>.
15577         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
15578         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
15579         Don't assume isdigit succeeds only on '0' through '9'.
15580
15581 2006-07-05  Eric Blake  <ebb9@byu.net>
15582
15583         * modules/getaddrinfo (Depends-on): Add snprintf.
15584
15585 2006-07-05  Eric Blake  <ebb9@byu.net>
15586
15587         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
15588         to avoid 'header present but could not be compiled' on cygwin.
15589
15590 2006-07-05  Eric Blake  <ebb9@byu.net>
15591
15592         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
15593         missing from netdb.h.
15594         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
15595
15596 2006-07-05  Derek R. Price  <derek@ximbiot.com>
15597
15598         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
15599         no longer needed.
15600         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
15601         * m4/getdate.m4 (gl_GETDATE): Likewise.
15602         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
15603         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
15604         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15605         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
15606         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
15607
15608 2006-07-05  Derek R. Price  <derek@ximbiot.com>
15609
15610         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
15611         All uses of is_space replaced by isspace.
15612         * lib/exit.h: Don't talk about STDC_HEADERS.
15613         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
15614         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
15615         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
15616         replaced by isprint etc.
15617         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
15618         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
15619         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
15620         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
15621         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
15622         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
15623
15624 2006-07-05  Bruno Haible  <bruno@clisp.org>
15625
15626         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
15627         the function exists, before testing against AIX.
15628         Reported by Martin Lambers <marlam@marlam.de>.
15629
15630 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15631
15632         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
15633         From Mark D. Baushke.
15634
15635 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
15638         to the absolute name, not just one, to bypass Sun C 5.8's
15639         "warning: #include of /usr/include/... may be non-portable".
15640
15641 2006-07-04  Eric Blake  <ebb9@byu.net>
15642
15643         * modules/dirname-tests: New test module.
15644         * tests/test-dirname.c: New file, replacing dirname.c
15645         TEST_DIRNAME section that was recently deleted.
15646
15647 2006-07-04  Bruno Haible  <bruno@clisp.org>
15648
15649         Assume ANSI C header files and <ctype.h> functions.
15650         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
15651         (mbsnwidth): Use isprint, iscntrl instead.
15652
15653 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15654
15655         Merge from coreutils.
15656         * MODULES.html.sh: Add xstrtold.
15657         * modules/xstrtold: New file.
15658         * modules/cycle-check (Files): Add lib/same-inode.h.
15659         * modules/dirname (Files): Add m4/double-slash-root.m4.
15660         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
15661         * modules/mkdir-p (Files): Add lib/same-inode.h.
15662         * modules/same (Files): Add lib/same-inode.h.
15663
15664 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         * m4/absolute-header.m4: Renamed from full-header-path.m4.
15667         This is to keep the terminology clean; POSIX talks about
15668         "absolute pathnames", not "full pathnames", but the GNU
15669         Coding Standards say to use "path" for something else;
15670         so use "absolute" to keep both sides happy.
15671         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
15672         Set gl_absolute_header, not gl_full_header_path.
15673         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
15674         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
15675         All uses changed.
15676
15677         Merge from coreutils.
15678
15679         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15680
15681         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
15682         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
15683         want to require the building of c-strtod.o.
15684         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
15685         needs -lm directly.
15686         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
15687
15688         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
15689
15690         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
15691         --as-needed option if available.  Problem reported by Albert Chin in
15692         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
15693         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
15694         cc merely issues a bunch of annoying warnings for --as-needed
15695         (this problem was reported by Bob Proulx).  Also, try linking with
15696         -lm to detect a bug in binutils 2.16 (this problem was reported
15697         by Ralf Wildenhues).
15698
15699         2006-06-18  Jim Meyering  <jim@meyering.net>
15700
15701         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
15702         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
15703         macro.
15704         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
15705         also check for glibc-2.4's abort-inducing bug.
15706
15707         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
15708         Low-probability clean-up should be to use rmdir to get rid of
15709         the just-created directory, not unlink.
15710
15711         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
15712         configure fail, and request a bug report to inform us about it.
15713         Add a comment that, barring reports to the contrary, in 2007 we'll
15714         assume ftruncate is universally available.
15715
15716         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
15719
15720         2006-03-12  Jim Meyering  <jim@meyering.net>
15721
15722         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
15723         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
15724         * m4/same.m4 (gl_SAME): Likewise.
15725         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
15726
15727         2006-03-11  Eric Blake  <ebb9@byu.net>
15728
15729         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
15730         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
15731         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
15732         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
15733
15734 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
15735
15736         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
15737         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
15738         reported by Mark D. Baushke, one in
15739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
15740
15741         Merge from coreutils.
15742
15743         * lib/.cppi-disable: Add stdint_.h.
15744         * lib/.cvsignore: Add stdint.h.
15745
15746         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15747
15748         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
15749         both double and long double versions.
15750         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
15751         * lib/xstrtold.c: New file.
15752         * lib/xstrtod.h (xstrtold): New decl.
15753
15754         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15755
15756         * lib/filemode.c (setst): Remove.
15757         (strmode): Rewrite to avoid setst.  This makes the code shorter,
15758         (arguably) clearer, and the generated code is a bit smaller on my
15759         Debian GNU/Linux stable x86 host.
15760
15761         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * lib/filemode.c: Include "filemode.h" first, to test the interface.
15764         Assume that filemode.h includes sys/types.h and sys/stat.h.
15765         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
15766         (ftypelet): Reorder to put common cases first, for efficiency.
15767         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
15768         to do 'M'.
15769         (strmode): Renamed from mode_string, and now stores 12 bytes instead
15770         of 10, for compatibility with FreeBSD.  All callers changed.
15771         (filemodestring): Now stores 12 bytes instead of 10, and sets file
15772         types that can't be deduced solely from st_mode.  First arg is now a
15773         const pointer.
15774         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
15775         (strmode): Renamed from mode_string.
15776         (filemodestring): New decl.
15777         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
15778         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
15779         needed.
15780         (S_ISPORT, S_ISWHT): New macros, if not already defined.
15781
15782         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15783
15784         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
15785         fsusage.h now does that.  Include fsusage.h first, to test interface.
15786         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
15787         at most one method (the old code could have generated decls that
15788         didn't conform to C89, not that this was ever exercised).
15789         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
15790
15791         2006-03-19  Jim Meyering  <jim@meyering.net>
15792
15793         Work even in a chroot where d_ino values for entries in "/"
15794         don't match the stat.st_ino values for the same names.
15795         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
15796         number, iterate through all entries again, using lstat instead.
15797         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
15798         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
15799
15800         * lib/getcwd.c (__getcwd): Clarify a comment.
15801         Use memcpy in place of a call to strcpy.
15802
15803         2006-03-12  Jim Meyering  <jim@meyering.net>
15804
15805         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
15806         matches that of the current directory (which we're about to chdir ".."
15807         out of), then save the dev-ino of the parent, instead.
15808
15809         * lib/same-inode.h (SAME_INODE): New file/macro.
15810         * lib/chdir-safer.c (SAME_INODE): Remove definition.
15811         Include "same-inode.h", instead.
15812         * lib/same.c: Likewise.
15813         * lib/cycle-check.h: Include "same-inode.h".
15814         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
15815         * lib/cycle-check.c (SAME_INODE): Remove definition.
15816         * lib/root-dev-ino.h: Include "same-inode.h".
15817
15818         2006-03-11  Eric Blake  <ebb9@byu.net>
15819
15820         * lib/same.c (same_name): s/base_name/last_component/
15821         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
15822         * lib/filenamecat.c (file_name_concat): Likewise.
15823
15824         2006-03-11  Eric Blake  <ebb9@byu.net>,
15825                     Paul Eggert  <eggert@cs.ucla.edu>
15826
15827         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
15828         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
15829         drive prefix.
15830         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
15831         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
15832         (last_component): New method.
15833         * lib/dirname.c (dir_len): Determine when drive letters need a
15834         subsequent slash.  Preserve // when it is special.
15835         (dir_name): Don't append dot when drive letter is absolute.
15836         [TEST_DIRNAME]: Move into a full-blown gnulib test.
15837         * lib/basename.c (base_name): New semantics - malloc the result.
15838         Preserve // when it is special.  Preserve relative files that look
15839         like drive letters.
15840         (base_len): Preserve // when it is special.
15841         (last_component): New method, similar to old base_name semantics.
15842         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
15843         base_name.  Strip redundant slashes from ///.
15844
15845 2006-07-03  Jim Meyering  <jim@meyering.net>
15846
15847         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
15848         macro is used before the first cycle_check call.
15849
15850 2006-07-03  Eric Blake  <ebb9@byu.net>
15851
15852         * modules/dirname (Depends-on): Add xstrndup.
15853
15854 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
15857         test cases, so that config.log is a bit easier to follow.
15858
15859 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
15860
15861         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
15862         both are 64 bits, since this seems to be the tradition, and this
15863         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
15864         we ever run into a host that prefers long long to long in this
15865         case, we'll need another configure-time test.  Problem reported by
15866         Jim Meyering.
15867
15868 2006-07-02  Eric Blake  <ebb9@byu.net>
15869
15870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
15871
15872 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15873
15874         * modules/inttypes (Depends-on): No longer depends on stdint.
15875         * modules/stdint (Description): Say more about assumptions.
15876         Say that the fast types might differ.  Say macros are used.
15877         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
15878         (Makefile.am): Revise list of substituted symbols to match
15879         new stdint.m4.
15880         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
15881         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
15882         * tests/test-stdint.c (verify_same_types)
15883         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
15884         the code conforms to C99/C89.
15885         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
15886         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
15887
15888 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15889
15890         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
15891         but fix a bug, by requiring at least 64 bits.
15892         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15893         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
15894         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
15895         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
15896
15897         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
15898         changes.  Make 2.59 a prerequisite.  Check and substitute for
15899         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
15900         inttypes.h.  Do not use special include files; just use the
15901         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
15902         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
15903         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
15904         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
15905         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
15906         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
15907         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
15908         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
15909         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
15910         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
15911         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
15912         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
15913         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
15914         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
15915         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
15916         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
15917         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
15918         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
15919         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
15920         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
15921         WINT_MAX.  Check for C99 conformance more strictly, by detecting
15922         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
15923         not check for things that C99 does not require, e.g., int8_t.  If
15924         a test isn't needed unless <stdint.h> isn't working, and is
15925         unlikely to be needed for any other reason, then don't do it
15926         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
15927         size_t, since we assume C89 freestanding at least.  Do not check
15928         for sig_atomic_t, wchar_t, or wint_t, since the code now does
15929         the right thing even if the types are not defined.  Instead use:
15930         (gl_STDINT_TYPE_PROPERTIES): New macro.
15931         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
15932         testing whether <sys/types.h> clashes, as Autoconf does this for
15933         us now.  All uses removed.
15934         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
15935         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
15936         (gl_CHECK_TYPE_SAME):
15937         Remove; no longer needed.
15938         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
15939         exists, since we'll return 0 anyway in that case.
15940         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
15941
15942 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15943
15944         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
15945         possible collision with system files.
15946         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
15947         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
15948         WCHAR_MIN and WCHAR_MAX in this case.
15949         (<stddef.h>): Do not include; no longer needed.
15950         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
15951         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
15952         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
15953         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
15954         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
15955         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
15956         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
15957         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
15958         !defined(__c99))]: Include in this case too, since it's harmless
15959         now.
15960         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
15961         dangerous to do so.
15962         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
15963         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
15964         (_STDINT_MIN, _STDINT_MAX): New macros.
15965         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
15966         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
15967         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
15968         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
15969         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
15970         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
15971         macros, not typedefs; this simplifies things quite a bit.
15972         Use long int for all types narrower than int64_t.
15973         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
15974         Define in terms of long long int or int64_t or long int,
15975         not int64_t or int32_t.  This saves some compile-time testing.
15976         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
15977         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
15978         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
15979         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
15980         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
15981         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
15982         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
15983         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
15984         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
15985         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
15986         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
15987         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
15988         undef any previous version and define our own version, for
15989         simplicity and consistency with the new macros for types.
15990         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
15991         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
15992         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
15993         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
15994         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
15995         @WINT_T_SUFFIX@ to keep things simple here.
15996         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
15997         Simplify by assuming typical 8/16/32/64 host, since we're
15998         already doing that elsewhere anyway.
15999         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
16000         and assume long long int is 64 bits if available.  This
16001         speeds up 'configure'.
16002
16003 2006-07-01  Eric Blake  <ebb9@byu.net>
16004
16005         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
16006         Reported by Andreas Buening.
16007
16008 2006-07-01  Eric Blake  <ebb9@byu.net>
16009
16010         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
16011
16012 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
16013
16014         * lib/getaddrinfo.c: fixed typo
16015
16016 2006-06-29  Jim Meyering  <jim@meyering.net>
16017
16018         * modules/strftime (Maintainer): Add my name, since with the
16019         FPRINTFTIME changes strftime.c has forked from glibc.
16020
16021 2006-06-29  Eric Blake  <ebb9@byu.net>
16022
16023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
16024
16025 2006-06-29  Eric Blake  <ebb9@byu.net>
16026
16027         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
16028
16029 2006-06-29  Eric Blake  <ebb9@byu.net>
16030
16031         * lib/stat_.h: New file.
16032
16033 2006-06-29  Eric Blake  <ebb9@byu.net>
16034
16035         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
16036         unused static function.
16037
16038 2006-06-29  Eric Blake  <ebb9@byu.net>
16039
16040         * doc/functions.texi (Function Portability): Document missing lstat
16041         on mingw.
16042
16043 2006-06-29  Eric Blake  <ebb9@byu.net>
16044
16045         * MODULES.html.sh: Add sys_stat.
16046         * modules/sys_stat: New module.
16047         * modules/mkstemp (Depends-on): Add sys_stat.
16048
16049 2006-06-29  Derek R. Price  <derek@ximbiot.com>
16050
16051         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
16052
16053 2006-06-29  Derek R. Price  <derek@ximbiot.com>
16054
16055         * m4/c-bs-a.m4: Removed.
16056
16057 2006-06-29  Derek R. Price  <derek@ximbiot.com>
16058
16059         * lib/strftime.c: Assume strftime() exists.
16060
16061 2006-06-29  Derek Price  <derek@ximbiot.com>
16062
16063         * modules/c-bs-a: Removed - \a is C89.
16064         * MODULES.html.sh: Remove c-bs-a.
16065
16066 2006-06-29  Bruno Haible  <bruno@clisp.org>
16067
16068         * modules/wcwidth (License): Change to LGPL.
16069
16070 2006-06-28  Simon Josefsson  <jas@extundo.com>
16071
16072         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
16073         on _WIN32.
16074
16075         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
16076         getnameinfo.
16077
16078 2006-06-28  Simon Josefsson  <jas@extundo.com>
16079
16080         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
16081
16082 2006-06-28  Simon Josefsson  <jas@extundo.com>
16083
16084         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
16085         functions there.  It will succeed on Windows XP, but on Windows
16086         2000 and (presumably) earlier, it will fail, and use the internal
16087         re-implementation.
16088         (use_win32_p): New function.
16089         (getaddrinfo): Use strtoul on servname, to support numeric ports.
16090         Support AI_NUMERICSERV to disable getservbyname.
16091         (getnameinfo): New function, only supports
16092         NI_NUMERICHOST|NI_NUMERICSERV for now.
16093
16094         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
16095         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
16096         getnameinfo.
16097
16098 2006-06-28  Eric Blake  <ebb9@byu.net>
16099
16100         * modules/wcwidth: New file.
16101         * modules/mbchar (Depends-on): Add wcwidth.
16102         * modules/mbswidth (Depends-on): Add wcwidth.
16103         * MODULES.html.sh: Add wcwidth.
16104
16105 2006-06-28  Eric Blake  <ebb9@byu.net>
16106
16107         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
16108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
16109
16110 2006-06-28  Eric Blake  <ebb9@byu.net>
16111
16112         * lib/xvasprintf.h: Fix comments.
16113
16114 2006-06-28  Eric Blake  <ebb9@byu.net>
16115
16116         * lib/mbchar.h (wcwidth): Include wcwidth.h.
16117         * lib/mbswidth.c (wcwidth): Move from here...
16118         * lib/wcwidth.h: ...to this new file.
16119
16120 2006-06-28  Derek R. Price  <derek@ximbiot.com>
16121
16122         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
16123
16124         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
16125         it's obsolete.
16126         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
16127
16128 2006-06-28  Derek R. Price  <derek@ximbiot.com>
16129
16130         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
16131         Autoconf 2.60 says this stuff was obsolete.
16132
16133 2006-06-28  Bruno Haible  <bruno@clisp.org>
16134
16135         * modules/wcwidth (Files): Add m4/wchar_t.m4.
16136
16137 2006-06-28  Bruno Haible  <bruno@clisp.org>
16138
16139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
16140         gt_TYPE_WCHAR_T.
16141
16142 2006-06-28  Bruno Haible  <bruno@clisp.org>
16143
16144         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
16145         declaration for wcwidth.
16146         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
16147
16148 2006-06-28  Bruno Haible  <bruno@clisp.org>
16149
16150         * lib/mkdtemp.c [MINGW]: Include <io.h>.
16151         (mkdir): Define using _mkdir.
16152
16153 2006-06-28  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/getaddrinfo.h: Fix POSIX URL.
16156         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
16157         _WIN32.
16158         (use_win32_p): Make static.
16159         (getaddrinfo): Reject service name if it is empty or does not consist
16160         solely of decimal digits, or if its value is > 65535.
16161         (getnameinfo): Remove useless casts.
16162
16163 2006-06-27  Simon Josefsson  <jas@extundo.com>
16164
16165         * modules/sys_select: New file, suggested by Bruno Haible, Paul
16166         Eggert and Martin Lambers.
16167
16168 2006-06-27  Simon Josefsson  <jas@extundo.com>
16169
16170         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
16171         Eggert and Martin Lambers.
16172
16173 2006-06-27  Bruno Haible  <bruno@clisp.org>
16174
16175         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
16176         result to 0, not to empty.
16177         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
16178
16179 2006-06-27  Bruno Haible  <bruno@clisp.org>
16180
16181         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
16182
16183 2006-06-26  Simon Josefsson  <jas@extundo.com>
16184
16185         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
16186         present.
16187
16188 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
16189
16190         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
16191         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
16192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
16193
16194 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
16195
16196         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
16197
16198 2006-06-26  Bruno Haible  <bruno@clisp.org>
16199
16200         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
16201
16202 2006-06-26  Bruno Haible  <bruno@clisp.org>
16203
16204         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
16205
16206 2006-06-26  Bruno Haible  <bruno@clisp.org>
16207
16208         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
16209         SGI C compiler in pre-C99 mode.
16210         Suggested by Mark D. Baushke and Larry Jones.
16211
16212 2006-06-26  Bruno Haible  <bruno@clisp.org>
16213
16214         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
16215         WCHAR_MAX.
16216         Reported by Mark D. Baushke and Larry Jones.
16217
16218 2006-06-26  Bruno Haible  <bruno@clisp.org>
16219
16220         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
16221         in pre-C99 mode.
16222         Suggested by Mark D. Baushke and Larry Jones.
16223
16224 2006-06-23  Simon Josefsson  <jas@extundo.com>
16225             Bruno Haible  <bruno@clisp.org>
16226
16227         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
16228         Emit mostlyclean-local rule.
16229         (func_emit_tests_Makefile_am): Likewise.
16230         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
16231
16232 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
16233
16234         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
16235
16236 2006-06-23  Bruno Haible  <bruno@clisp.org>
16237
16238         * tests/test-stdint.c: Update to match ISO C 99 Technical
16239         Corrigendum 1.
16240
16241 2006-06-23  Bruno Haible  <bruno@clisp.org>
16242
16243         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
16244
16245 2006-06-23  Bruno Haible  <bruno@clisp.org>
16246
16247         * lib/stdint_.h: Treat IRIX like OpenBSD.
16248
16249 2006-06-23  Bruno Haible  <bruno@clisp.org>
16250
16251         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
16252         ISO C 99 Technical Corrigendum 1.
16253
16254 2006-06-22  Simon Josefsson  <jas@extundo.com>
16255
16256         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
16257         MinGW.
16258
16259 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16260
16261         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
16262         needed.  Some compiler complained about some of them.  Problem reported
16263         by Larry Jones in
16264         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
16265
16266 2006-06-21  Simon Josefsson  <jas@extundo.com>
16267
16268         * tests/test-getaddrinfo.c: New file.
16269
16270         * modules/getaddrinfo-tests: New file.
16271
16272         * MODULES.html.sh: Add inet_pton.
16273
16274         * modules/inet_pton: New file.
16275
16276 2006-06-21  Simon Josefsson  <jas@extundo.com>
16277
16278         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
16279         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
16280         of using the (limited) gnulib implementation on Windows XP.
16281
16282         * m4/inet_pton.m4: New file.
16283
16284 2006-06-21  Simon Josefsson  <jas@extundo.com>
16285
16286         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
16287         variable.
16288
16289         * lib/socket_.h: Don't define WINVER.
16290
16291         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
16292         slightly modified to work in gnulib.
16293
16294 2006-06-21  Simon Josefsson  <jas@extundo.com>
16295
16296         * doc/gnulib.texi (Windows sockets): Add.
16297
16298 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16299
16300         * lib/read-file.c (fread_file): Start with buffer allocation of
16301         0 bytes rather than 1 byte; this simplifies the code.
16302         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
16303         code to free buffer and save/restore errno.
16304         (internal_read_file): Remove unused local.
16305
16306 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16307
16308         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
16309         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
16310         Problem reported by Denis Excoffier in
16311         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
16312
16313 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16314
16315         * modules/sys_socket, modules/socklen: Include sys/types since
16316         FreeBSD 4.x's sys/socket.h needs it.
16317
16318 2006-06-19  Simon Josefsson  <jas@extundo.com>
16319
16320         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
16321
16322 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
16323
16324         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
16325
16326 2006-06-19  Bruno Haible  <bruno@clisp.org>
16327
16328         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
16329         and FULL_PATH_INTTYPES_H in angle brackets.
16330         Reported by Mark D. Baushke <mdb@gnu.org>.
16331
16332 2006-06-17  Eric Blake  <ebb9@byu.net>
16333
16334         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
16335         errno.
16336
16337 2006-06-17  Bruno Haible  <bruno@clisp.org>
16338
16339         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
16340         <sys/inttypes.h>.
16341
16342 2006-06-17  Bruno Haible  <bruno@clisp.org>
16343
16344         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
16345         whether errno is declared. Assume <errno.h> declares errno.
16346
16347 2006-06-17  Bruno Haible  <bruno@clisp.org>
16348
16349         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
16350
16351 2006-06-17  Bruno Haible  <bruno@clisp.org>
16352
16353         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
16354         problem on Solaris 2.5.1.
16355
16356 2006-06-16  Eric Blake  <ebb9@byu.net>
16357
16358         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
16359         * lib/unicodeio.c [!defined errno]: Likewise.
16360         * lib/strtol.c [!defined errno]: Likewise.
16361         * lib/strtod.c [!defined errno]: Likewise.
16362
16363 2006-06-15  Eric Blake  <ebb9@byu.net>
16364
16365         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
16366
16367 2006-06-15  Eric Blake  <ebb9@byu.net>
16368
16369         * config/srclist.txt (ssize_t.m4): Lose sync.
16370
16371 2006-06-15  Bruno Haible  <bruno@clisp.org>
16372
16373         * modules/stdint (Files): Include m4/full-header-path.m4,
16374         m4/size_max.m4, m4/wchar_t.m4.
16375         (Makefile.am): Many more substitutions.
16376         * modules/stdint-tests: New file.
16377         * tests/test-stdint.c: New file.
16378
16379 2006-06-15  Bruno Haible  <bruno@clisp.org>
16380
16381         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
16382         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
16383         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
16384         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
16385         gl_CHECK_TYPE_SAME): New macros.
16386
16387 2006-06-15  Bruno Haible  <bruno@clisp.org>
16388
16389         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
16390
16391 2006-06-15  Bruno Haible  <bruno@clisp.org>
16392
16393         * lib/stdint_.h: Rewritten to be fully auto-configured.
16394         Fixes bug on HP-UX/IA64.
16395
16396 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16397
16398         * lib/getdate.y (__attribute__): Don't define if already defined.
16399         Problem reported by Larry Jones.
16400         * lib/utimens.c (__attribute__): Likewise.
16401
16402 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
16403
16404         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
16405         reported by Andreas Schwab.
16406
16407 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16408             Bruno Haible  <bruno@clisp.org>
16409
16410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
16411         check for the declaration of strnlen and a run test that exposes the
16412         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
16413         rpl_strndup.
16414
16415 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16416             Bruno Haible  <bruno@clisp.org>
16417
16418         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
16419
16420 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16421
16422         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
16423         compile test, for Tru64 4.0D.
16424
16425 2006-05-28  Karl Berry  <karl@gnu.org>
16426
16427         * config/srclist.txt (printf-args.c): lose sync.
16428
16429 2006-05-26  Martin Lambers  <marlam@marlam.de>
16430
16431         * lib/getpass.c: Updates the test for the native W32 API, and adds
16432         missing includes, thus fixing compilation warnings.
16433
16434 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16435
16436         * lib/exclude.c (exclude_fnmatch): New function.
16437         (excluded_file_name): Call exclude_fnmatch.
16438         * lib/exclude.h (excluded_file_name): New prototype
16439
16440 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
16441
16442         * lib/tempname.c (small_open, large_open): New macros.
16443         (__open, __open64) [!_LIBC]: Remove.
16444         (__gen_tempname): Use small_open and large_open instead of __open
16445         and __open64.  This fixes a portability bug on HP-UX 11.11i
16446         reported by Simon Wing-Tang in
16447         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
16448
16449 2006-05-24  Bruno Haible  <bruno@clisp.org>
16450
16451         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
16452         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
16453         Reported by Thorsten Maerz <torte@netztorte.de> via
16454         Aaron Stone <aaron@serendipity.cx>.
16455
16456 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
16459         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
16460         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
16461         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
16462         not really conditional on the cache.
16463         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
16464
16465 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16466
16467         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
16468         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
16469         (my_usleep): Don't mishandle maximum value.
16470
16471 2006-05-19  Jim Meyering  <jim@meyering.net>
16472
16473         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
16474
16475 2006-05-17  Bruno Haible  <bruno@clisp.org>
16476
16477         Cygwin portability.
16478         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
16479
16480 2006-05-17  Bruno Haible  <bruno@clisp.org>
16481
16482         * lib/stdint_.h: Fix recognition of Cygwin.
16483
16484 2006-05-15  Bruno Haible  <bruno@clisp.org>
16485
16486         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
16487         on libtool patch by Ralf Wildenhues.
16488
16489 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
16490
16491         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
16492         test for C99 conformance; (bool) 0.5 is an integer constant
16493         expression, but (bool) -0.5 is not.  Problem reported by Fedor
16494         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
16495
16496 2006-05-11  Simon Josefsson  <jas@extundo.com>
16497
16498         * m4/xvasprintf.m4: Fix obvious typo.
16499
16500 2006-05-11  Jim Meyering  <jim@meyering.net>
16501
16502         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
16503         James Lemley.
16504
16505 2006-05-10  Simon Josefsson  <jas@extundo.com>
16506
16507         * lib/md4.c: Typo fix, update copyright years.
16508         (K1, K2): Don't use L because it turn computations into 64-bit on
16509         64-bit platforms.
16510
16511 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16512
16513         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
16514         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
16515         unwanted sign propagation, e.g., on hosts with 64-bit int.
16516         There still are some problems with reeelly weird theoretical hosts
16517         (e.g., 33-bit int) but it's not worth worrying about now.
16518         * lib/sha1.c (rol): Likewise.
16519         (K1, K2, K3, K4): Remove unnecessary L suffix.
16520
16521 2006-05-10  Bruno Haible  <bruno@clisp.org>
16522
16523         * lib/des.c: Cast to avoid warnings.
16524
16525 2006-05-09  Bruno Haible  <bruno@clisp.org>
16526
16527         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
16528         (Depends-on): Depend also on xsize, stdarg.
16529         (configure.ac): Add gl_XVASPRINTF.
16530
16531 2006-05-09  Bruno Haible  <bruno@clisp.org>
16532
16533         * m4/xvasprintf.m4: New file.
16534
16535 2006-05-09  Bruno Haible  <bruno@clisp.org>
16536
16537         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
16538         (EOVERFLOW): Define fallback value.
16539         (xstrcat): New function.
16540         (xvasprintf): Recognize the special case of a string concatenation.
16541
16542 2006-05-08  Eric Blake  <ebb9@byu.net>
16543
16544         * gnulib-tool (func_version): Base copyright year on CVS date.
16545         (func_emit_copyright_notice): New function.
16546         (func_emit_lib_Makefile_am): Use it.
16547         (func_emit_tests_Makefile_am): Likewise.
16548         (func_import): Likewise.
16549
16550 2006-05-08  Bruno Haible  <bruno@clisp.org>
16551
16552         * modules/stdarg: New file.
16553         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
16554
16555 2006-05-08  Bruno Haible  <bruno@clisp.org>
16556
16557         * m4/stdarg.m4: New file, from GNU gettext.
16558
16559 2006-05-08  Bruno Haible  <bruno@clisp.org>
16560
16561         * config/srclist.txt (build-aux/config.rpath): different from latest
16562         release.
16563
16564 2006-05-08  Bruno Haible  <bruno@clisp.org>
16565
16566         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
16567
16568 2006-05-05  Jim Meyering  <jim@meyering.net>
16569
16570         * m4/warning.m4: New file, derived from bison's file by the same name.
16571
16572 2006-05-03  Bruno Haible  <bruno@clisp.org>
16573
16574         * lib/stdint_.h: Shorter URL.
16575         * lib/inttypes.h: Likewise.
16576
16577 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
16578
16579         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
16580
16581 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
16582
16583         * lib/verify.h: Document the internals better.  Most of this change
16584         was written by Bruno Haible.
16585
16586 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
16587
16588         * doc/verify.texi: New file, partly based on a proposal by
16589         Bruno Haible.
16590
16591 2006-05-02  Bruno Haible  <bruno@clisp.org>
16592
16593         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
16594         test from here...
16595         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
16596
16597 2006-04-29  Bruno Haible  <bruno@clisp.org>
16598
16599         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
16600         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
16601
16602 2006-04-29  Bruno Haible  <bruno@clisp.org>
16603
16604         * gnulib-tool: Make --update option actually work.
16605
16606 2006-04-29  Bruno Haible  <bruno@clisp.org>
16607
16608         * doc/gcd.texi: New file.
16609         * doc/gnulib.texi: Include it.
16610
16611 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16612
16613         * lib/getdate.y (get_date): When adding relative date, start with the
16614         initial time, not with the result of the first mktime call.
16615
16616 2006-04-25  Bruno Haible  <bruno@clisp.org>
16617
16618         * gnulib-tool (func_import): Output the include directives in three
16619         blocks, sorted separately.
16620         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16621
16622 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16623
16624         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
16625         to define main with arguments, for C++.  Reported by Eric Blake.
16626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16627         Prefer 'int main ()' to 'int main (void)', for C++.
16628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16629         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
16630         for 'main', for C99 and C++.
16631
16632 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16633
16634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
16635         Don't assume that exit status -1 is valid.
16636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16637         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16638         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16639         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
16640         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
16641         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
16642         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
16643         functions can be used without declaring them, or that you can
16644         exit with status -1.
16645         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16646
16647 2006-04-24  Karl Berry  <karl@gnu.org>
16648
16649         * config/srclist.txt (longdouble.m4): sync lost.
16650
16651 2006-04-24  Eric Blake  <ebb9@byu.net>
16652
16653         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
16654
16655 2006-04-24  Bruno Haible  <bruno@clisp.org>
16656
16657         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
16658         poll() implementation in AIX.
16659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16660
16661 2006-04-24  Bruno Haible  <bruno@clisp.org>
16662
16663         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
16664         assigned exactly once.
16665
16666 2006-04-23  Claudio Fontana  <claudio@gnu.org>
16667             Bruno Haible  <bruno@clisp.org>
16668
16669         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
16670         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
16671         for AM_CPPFLAGS.
16672
16673 2006-04-23  Bruno Haible  <bruno@clisp.org>
16674
16675         * modules/copy-file: Depend on unistd.
16676         * modules/execute: Likewise.
16677         * modules/fatal-signal: Likewise.
16678         * modules/findprog: Likewise.
16679         * modules/mkdtemp : Likewise.
16680         * modules/pipe: Likewise.
16681         * modules/wait-process: Likewise.
16682
16683 2006-04-23  Bruno Haible  <bruno@clisp.org>
16684
16685         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
16686         condition was already detected.
16687         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16688
16689 2006-04-23  Bruno Haible  <bruno@clisp.org>
16690
16691         * lib/copy-file.c: Include <unistd.h> unconditionally.
16692         * lib/execute.c: Likewise.
16693         * lib/fatal-signal.c: Likewise.
16694         * lib/findprog.c: Likewise.
16695         * lib/mkdtemp.c: Likewise.
16696         * lib/pipe.h: Likewise.
16697         * lib/pipe.c: Likewise.
16698         * lib/wait-process.h: Likewise.
16699
16700 2006-04-23  Bruno Haible  <bruno@clisp.org>
16701
16702         * gnulib-tool (func_usage): Fix --import description. Document
16703         --update.
16704         (func_import): Create temporary file in a temporary directory, if
16705         --dry-run is specified. Silence errors from 'grep' when there are no
16706         m4 files in $m4dir.
16707         (func_create_testdir): Silence errors from 'grep' when there are no
16708         m4 files in $m4dir.
16709         Reported by Karl Berry <karl@freefriends.org>.
16710
16711 2006-04-20  Bruno Haible  <bruno@clisp.org>
16712
16713         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
16714         one argument, so that the code will be portable to Autoconf 2.60.
16715         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
16716         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
16717         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
16718
16719 2006-04-19  Derek Price  <derek@ximbiot.com>
16720             Eric Blake  <ebb9@byu.net>
16721
16722         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
16723         rather than "/full/path.h".  Update comment to match.  Shorten &
16724         generalize m4_translit call via AS_TR_CPP.
16725
16726 2006-04-19  Derek Price  <derek@ximbiot.com>
16727             Eric Blake  <ebb9@byu.net>
16728
16729         * lib/inttypes.h: Correct grammar in comment.
16730
16731 2006-04-18  Derek Price  <derek@ximbiot.com>
16732             Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         * modules/inttypes: New file.
16735         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
16736
16737 2006-04-18  Derek Price  <derek@ximbiot.com>
16738             Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
16741         New files.
16742
16743 2006-04-18  Derek Price  <derek@ximbiot.com>
16744             Paul Eggert  <eggert@cs.ucla.edu>
16745
16746         * lib/inttypes.h: New file.
16747         * lib/strtoimax.c: Assume <inttypes.h>.
16748
16749 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
16750
16751         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
16752         isn't mounted.  Problem reported by Kir Kolyshkin.
16753
16754 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
16755
16756         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
16757         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
16758         Derek R. Price.
16759         * lib/regex.h (RE_DUP_MAX): Update comment to match current
16760         implementation.
16761
16762 2006-04-12  Eric Blake  <ebb9@byu.net>
16763
16764         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
16765         is now done automatically by the corresponding Autoconf macro.
16766
16767 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16768
16769         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
16770         time_r.h.
16771
16772 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16773
16774         Merge regex changes from libc, removing some of our
16775         POSIX-conformance changes that were rejected and redoing them in a
16776         less-intrusive way.
16777
16778         * lib/regcomp.c (re_compile_internal, init_dfa):
16779         Length arg is now size_t, not Idx.  All uses changed.
16780         (peek_token): Forward decl now says internal_function.
16781         (__re_error_msgid, __re_error_msgid_idx):
16782         Now static rather than extern with attribute_hidden.
16783         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
16784         For some reason libc prefers K&R style defns for external functions.
16785         (regerror) [!defined _LIBC]: Likewise.
16786         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
16787         (seek_collating_symbol_entry, lookup_collation_sequence_value):
16788         (build_range_exp, build_collating_symbol):
16789         Use K&R-style defn.
16790         (re_compile_fastmap): Use '\0' to memset, not 0.
16791         (utf8_sb_map): Make the calculations more obvious.
16792         (init_dfa, parse_bracket_exp, build_charclass_op):
16793         Call calloc and cast result, as glibc does.
16794         (init_word_char, fetch_token, peek_token, peek_token_bracket):
16795         (build_range_exp, build_collating_symbol):
16796         Now internal functions.
16797
16798         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
16799
16800         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
16801         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
16802         Don't depend on VMS; depend on __VMS instead, for POSIX
16803         namespace cleanness.
16804         (regoff_t): Define to ssize_t, not long int.
16805
16806         Remove the REG_ macros named below.  Instead, make the old names
16807         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
16808         __USE_GNU_REGEX.
16809         (REG_BACKSLASH_ESCAPE_IN_LISTS):
16810         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
16811         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
16812         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
16813         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
16814         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
16815         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
16816         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
16817         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
16818         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
16819         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
16820         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
16821         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
16822         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
16823         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
16824         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
16825         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
16826         (REG_NREGS):
16827         Remove.  All uses replaced by the old RE_* names.
16828         (RE_BACKSLASH_ESCAPE_IN_LISTS):
16829         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
16830         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
16831         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
16832         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
16833         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
16834         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
16835         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
16836         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
16837         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
16838         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
16839         Don't bother having these macros be independent of each others'
16840         values, since they no longer exist in the POSIX name space.
16841
16842         Rename the following member names back to their old names,
16843         unless !__USE_GNU_REGEX.  All uses changed back.
16844         (buffer): Renamed from re_buffer.
16845         (allocated): Renamed from re_allocated.
16846         (used): Renamed from re_used.
16847         (syntax): Renamed from re_syntax.
16848         (fastmap): Renamed from re_fastmap.
16849         (translate): Renamed from re_translate.
16850         (can_be_null): Renamed from re_can_be_null.
16851         (regs_allocated): Renamed from re_regs_allocated.
16852         (fastmap_accurate): Renamed from re_fastmap_accurate.
16853         (no_sub): Renamed from re_no_sub.
16854         (not_bol): Renamed from re_not_bol.
16855         (not_eol): Renamed from re_not_eol.
16856         (newline_anchor): Renamed from re_newline_anchor.
16857         (num_regs): Renamed from rm_num_regs.
16858         (start): Renamed from rm_start.
16859         (end): Renamed from rm_end.
16860
16861         (free_state): Move up a bit.
16862
16863         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
16864         #define to be empty.
16865         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
16866         when that is what is intended.
16867         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
16868         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
16869         (MAX): New macro.
16870         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
16871         All uses changed back to re_malloc, etc.  It's now the caller's
16872         responsibility to check for overflow; all callers changed.
16873         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
16874         (re_x2nrealloc): Remove.
16875         (free_state): Remove decl.
16876
16877         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
16878         (re_set_registers, re_exec):
16879         Use K&R-style defn.
16880
16881         2006-01-31  Roland McGrath  <roland@redhat.com>
16882
16883         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
16884         Reported by Mike Frysinger <vapier@gentoo.org>.
16885
16886         2006-01-15  Andreas Jaeger  <aj@suse.de>
16887
16888         [BZ #1950]
16889         * lib/regex_internal.c (re_string_reconstruct): Adjust for
16890         build_wcs_upper_buffer change.
16891         (build_wcs_upper_buffer): Change return type.
16892
16893         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
16894
16895         * lib/regex_internal.h: Include <stdint.h> if available.
16896
16897         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
16898
16899         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
16900
16901         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
16902
16903         * lib/regcomp.c: Adjust for changed secondary hash function.
16904
16905         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
16906
16907         * lib/regex.h: Pretty printing.
16908         Clean up namespace a bit.
16909
16910         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
16911
16912         * lib/regexec.c (update_cur_sifted_state, check_arrival,
16913         check_arrival_add_next_nodes): Avoid using uninitialized variable.
16914
16915         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16916                     Ulrich Drepper  <drepper@redhat.com>
16917
16918         [BZ #1302]
16919         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
16920         changed.
16921         (bitset_word_t): Renamed from bitset_word.  All uses changed.
16922
16923         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
16924
16925         [BZ #281]
16926         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
16927         * lib/regcomp.c: Remove unnecessary uses of
16928         unsigned RE_TRANSLATE_TYPE.
16929         * lib/regex_internal.h: Likewise.
16930         * lib/regex_internal.c: Likewise.
16931         * lib/regexec.c: Likewise.
16932         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
16933
16934         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
16935
16936         * lib/regexec.c (find_recover_state): Remove unnecessary
16937         initialization.
16938         (transit_state_bkref): Make DFA a const pointer.
16939         (get_subexp): Likewise.
16940         (check_arrival): Likewise.
16941         (update_cur_sifted_state): Likewise.
16942         (re_search_internal): Likewise.
16943         (prune_impossible_nodes): Likewise.
16944         (acquire_init_state_context): Likewise.
16945         (proceed_next_node): Likewise.
16946         (set_regs): Likewise.
16947         (free_fail_stack_return): Likewise.
16948         (check_arrival_expand_ecl): Mark DFA parameter as const.
16949         (check_arrival_expand_ecl_sub): Likewise.
16950         (check_subexp_limits): Likewise.
16951         (sub_epsilon_src_nodes):  Likewise.
16952         (add_epsilon_src_nodes):  Likewise.
16953         (merge_state_array): Likewise.
16954         (update_regs): Likewise.
16955         (build_trtable): Likewise.
16956         (sift_states_backward): Mark MCTX parameter as const.
16957         (build_sifted_states): Likewise.
16958         (update_cur_sifted_state): Likewise.
16959         (sift_states_mkref): Likewise.
16960         (check_arrival_expand_ecl): Mark eclosure as const.
16961         (check_dst_limits_calc_pos_1): Likewise.
16962         * lib/regex_internal.h (re_match_context_t): Make dfa a const
16963         pointer.
16964
16965         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
16966
16967         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
16968         (transit_state_sb): Likewise.
16969         (transit_state_mb): Likewise.
16970         (sift_states_iter_mb): Likewise.
16971         (check_arrival_add_next_nodes): Likewise.
16972         (check_node_accept_bytes): Change first parameter to pointer-to-const.
16973         [_LIBC] (re_search_2_stub): Use mempcpy.
16974
16975         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
16976         mbrtowc for very simple UTF-8 case.
16977
16978         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
16979         a pointer-to-const.
16980         (re_acquire_state_context): Likewise.
16981         * lib/regex_internal.h: Adjust prototypes.
16982
16983         * lib/regex.c: Prevent using C++ compilers.
16984
16985         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
16986         (re_acquire_state_context): Likewise.
16987
16988 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16989
16990         * modules/regex (Depends-on): Add ssize_t.
16991
16992 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16993
16994         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
16995         translation table.
16996
16997 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
17000
17001 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
17002             Bruno Haible  <bruno@clisp.org>
17003
17004         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
17005         <sys/types.h> and <inttypes.h>.
17006
17007 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17008
17009         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
17010         `__error_t_defined', so argp.h will not typedef the former.
17011
17012 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17013
17014         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
17015         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
17016         glibc names.  Even if glibc is changed to conform to POSIX, the
17017         traditional names will be available anyway, since regex depends on
17018         the extensions module.  Also, fix a longstanding typo in the
17019         implementation of Spencer ERE test #75 from grep 2.3.  Problems
17020         reported by Emanuele Giaquinta.  Also, change sense of cached
17021         variable, so that the message makes sense.
17022
17023 2006-03-24  Simon Josefsson  <jas@extundo.com>
17024
17025         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
17026         including some doc fixes.
17027         (base64_encode_alloc): Fix +1 bug on allocation failures.
17028
17029 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17030
17031         * lib/base64.c (base64_encode): Do not read past end of array with
17032         unsanitized input on systems with CHAR_BIT > 8.
17033
17034 2006-03-24  Eric Blake  <ebb9@byu.net>
17035
17036         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
17037
17038 2006-03-22  Karl Berry  <karl@gnu.org>
17039
17040         * config/srclist.txt (*setenv.[ch]): get from coreutils.
17041         * config/srclistvars.sh (COREUTILS): new var.
17042
17043 2006-03-17  Jim Meyering  <jim@meyering.net>
17044
17045         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
17046         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
17047
17048 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
17049
17050         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
17051         no longer needs it.  Instead, check that regoff_t is as least
17052         as wide as ptrdiff_t.
17053
17054         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
17055         so that our regex.h stays compatible with the installed regex.
17056         This is helpful for installers who configure --without-included-regex.
17057         Problem reported by Emanuele Giaquinta.
17058
17059 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
17060
17061         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
17062         Typedef to long int, not to off_, as POSIX will likely change
17063         in that direction.
17064
17065 2006-03-15  Eric Blake  <ebb9@byu.net>
17066
17067         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
17068
17069 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
17070
17071         * lib/argp-help.c (validate_uparams): Fix typo
17072         * lib/argp-parse.c (argp_default_options): Consistently begin help
17073         messages with a lowercase letter.
17074
17075 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
17076
17077         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
17078         overrun buffers and shouldn't be used (much as gets shouldn't be
17079         used).
17080         * lib/time_r.c (asctime_r, ctime_r): Likewise.
17081
17082 2006-03-08  Simon Josefsson  <jas@extundo.com>
17083
17084         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
17085         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17086
17087 2006-03-08  Simon Josefsson  <jas@extundo.com>
17088
17089         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
17090         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17091
17092 2006-03-08  Simon Josefsson  <jas@extundo.com>
17093
17094         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
17095         signal that configure disabled the device.
17096
17097 2006-03-08  Simon Josefsson  <jas@extundo.com>
17098
17099         * build-aux/maint.mk: Fix refresh-po, to handle no translated
17100         languages.
17101
17102 2006-03-07  Simon Josefsson  <jas@extundo.com>
17103
17104         * modules/getopt (Depends-on): Add unistd.
17105
17106         * modules/unistd: New file.
17107
17108 2006-03-07  Simon Josefsson  <jas@extundo.com>
17109
17110         * modules/gc-random: New file.
17111
17112 2006-03-07  Simon Josefsson  <jas@extundo.com>
17113
17114         * m4/unistd_h.m4: New file.
17115
17116 2006-03-07  Simon Josefsson  <jas@extundo.com>
17117
17118         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
17119         test to be side-effect free by storing the result in the cache
17120         variable gl_cv_lib_readline, and moving the assignment of
17121         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
17122         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17123
17124 2006-03-07  Simon Josefsson  <jas@extundo.com>
17125
17126         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
17127         error on missing devices (the functions will return an error).
17128
17129         * m4/gc.m4: Move random stuff to gc-random.m4
17130
17131 2006-03-07  Simon Josefsson  <jas@extundo.com>
17132
17133         * lib/unistd_.h: New file.
17134
17135 2006-03-07  Simon Josefsson  <jas@extundo.com>
17136
17137         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
17138
17139 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17140
17141         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
17142         Problem reported by Juan Manuel Guerrero.
17143
17144 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17145
17146         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
17147         the unistd module.
17148         * lib/getlogin_r.c: Likewise.
17149         * lib/getlogin_r.h: Likewise.
17150         * lib/glob.c: Likewise.
17151         * lib/pagealign_alloc.c: Likewise.
17152         * lib/unistd_.h: Remove; no longer needed.
17153
17154 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17155
17156         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17157         Add unistd.
17158         * modules/c-stack (Depends-on): Add unistd.
17159         * modules/getlogin_r: Likewise.
17160         * modules/glob: Likewise.
17161         * modules/pagealign_alloc: Likewise.
17162         * modules/unistd (Files): Remove lib/unistd_.h.
17163         (EXTRA_DIST): Remove.
17164         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
17165         need unistd_.h.
17166         (MOSTLYCLEANFILES): Remove unistd.h-t.
17167
17168 2006-03-03  Simon Josefsson  <jas@extundo.com>
17169
17170         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
17171
17172 2006-03-03  Simon Josefsson  <jas@extundo.com>
17173
17174         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
17175         libidn and bison.
17176
17177 2006-03-03  Simon Josefsson  <jas@extundo.com>
17178
17179         * build-aux/maint.mk: Add indent target.
17180
17181 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
17182
17183         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
17184         our replacement poll.h in any case, to avoid a differing
17185         declaration from a system header.  Seen on AIX.
17186
17187 2006-03-01  Simon Josefsson  <jas@extundo.com>
17188
17189         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
17190         <kasal@ucw.cz>.
17191
17192 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17193
17194         * modules/gettime (Depends-on): Add extensions module.
17195         * modules/nanosleep (Depends-on): Likewise.
17196         * modules/settime (Depends-on): Likewise.
17197
17198 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
17201         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
17202         pedantically.
17203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17204         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
17205
17206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
17207         not "==".  Reported by Ralf Wildenhues.
17208
17209 2006-03-01  Karl Berry  <karl@gnu.org>
17210
17211         * doc/Copyright/request-*: new files, synced from gnuorg.
17212
17213 2006-03-01  Karl Berry  <karl@gnu.org>
17214
17215         * config/srclist.txt (Copyright/*): new entries.
17216
17217 2006-02-28  Simon Josefsson  <jas@extundo.com>
17218
17219         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
17220
17221 2006-02-27  Simon Josefsson  <jas@extundo.com>
17222
17223         * lib/base64.h: Indent #define's.  From Jim Meyering
17224         <jim@meyering.net>.
17225
17226 2006-02-27  Jim Meyering  <jim@meyering.net>
17227
17228         Revert the change of 2006-02-24, so these files can continue
17229         to be sync'd from gettext.
17230         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
17231         of `config.h'.
17232
17233 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17234
17235         * modules/intprops: New file.
17236         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17237         Add intprops.
17238         * modules/getloadavg (Files): Remove lib/intprops.h.
17239         (Depends-on): Add intprops.
17240         * modules/human: Likewise.
17241         * modules/inttostr: Likewise.
17242         * modules/openat: Likewise.
17243         * modules/sig2str: Likewise.
17244         * modules/userspec: Likewise.
17245         * modules/utimecmp: Likewise.
17246         * modules/xnanosleep: Likewise.
17247         * modules/xstrtol: Likewise.
17248
17249 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
17250
17251         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
17252         * modules/lock-tests (TESTS): Use $(EXEEXT).
17253         * modules/tls-tests: Likewise.
17254         * modules/argp-tests: Likewise.
17255         (check_PROGRAMS): New var, replacing...
17256         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
17257
17258 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17259
17260         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
17261         `config.h'.
17262
17263 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17264
17265         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
17266
17267 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17268
17269         Sync from coreutils.
17270         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
17271         gl_CHDIR_SAFER.
17272
17273 2006-02-22  Jim Meyering  <jim@meyering.net>
17274
17275         Sync from coreutils.
17276         * m4/chdir-safer.m4: New file.
17277
17278 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17279
17280         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
17281         AT_FDCWD exceeds INT_MAX.
17282         * lib/openat.h (AT_FDCWD): Likewise.
17283
17284 2006-02-17  Eric Blake  <address@hidden>
17285
17286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
17287
17288 2006-02-16  Simon Josefsson  <jas@extundo.com>
17289
17290         * modules/getaddrinfo (Depends-on): Add sys_socket.
17291
17292 2006-02-15  Simon Josefsson  <jas@extundo.com>
17293
17294         * build-aux/maint.mk: Add dsyntax-check rule.
17295
17296 2006-02-15  Eric Blake  <ebb9@byu.net>
17297
17298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
17299         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
17300         'present but cannot compile' warnings on cygwin.
17301         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
17302         use ws2tcpip.h if sys/socket.h works.
17303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
17304         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
17305
17306 2006-02-14  Simon Josefsson  <jas@extundo.com>
17307
17308         * modules/maintainer-makefile (Files): Rename.
17309
17310         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
17311         and (the local) Makefile.cfg to maint-cfg.mk.
17312
17313         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
17314         to the latter.
17315
17316         * modules/maintainer-makefile: New module.
17317
17318         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
17319         severaly stripped to make it possible to build it up from scratch
17320         with reliable tests.
17321
17322         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
17323         fixes to permit overriding the default actions when configure and
17324         makefile are not available.
17325
17326 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17327
17328         Sync from coreutils.
17329         * modules/lstat (Depends-on): Don't depend on xalloc.
17330         (License): Change from GPL to LGPL, since this is now simply a
17331         replacement for a libc function.
17332
17333 2006-02-14  Jim Meyering  <jim@meyering.net>
17334
17335         Sync from coreutils.
17336
17337         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
17338         failure on deficient systems, and simplify gnulib lgpl dependencies.
17339         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
17340         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
17341
17342         * lib/xalloc-die.c: Remove unused definition of N_.
17343
17344 2006-02-14  Jim Meyering  <jim@meyering.net>
17345
17346         Sync from coreutils.
17347         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
17348         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
17349         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
17350         double-quote uses of that variable, to accommodate the rare case in
17351         which getmntent is available in none of the libraries checked.  This
17352         happens at least on FreeBSD 5.0.
17353
17354 2006-02-13  Simon Josefsson  <jas@extundo.com>
17355
17356         * gnulib-tool (Usage): Fix --import, from
17357         karl@freefriends.org (Karl Berry).
17358
17359 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
17360
17361         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
17362
17363 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
17364
17365         * lib/argp-namefrob.h: Restore changes accidentally lost during the
17366         "autoupdate" on 2005-12-12.
17367
17368 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         * modules/closeout (Depends-on): Remove atexit.
17371
17372 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17373
17374         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
17375         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
17376
17377 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17378
17379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
17380         __EXTENSIONS__ if this causes compilation to fail.  Problem
17381         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
17382         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
17383
17384 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17385
17386         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
17387         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
17388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
17389         All uses changed.
17390
17391 2006-01-26  Simon Josefsson  <jas@extundo.com>
17392
17393         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
17394         prototype is visible on mingw32.
17395
17396         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
17397         for mingw32.
17398
17399         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
17400         mingw32).
17401
17402 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17403
17404         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
17405         attempt to open for write; this always fails, at least on POSIX
17406         hosts.  This reinstates the 2006-01-09 change, which was
17407         inadvertently removed.
17408
17409 2006-01-26  Bruno Haible  <bruno@clisp.org>
17410
17411         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
17412         Reported by Paul Eggert.
17413
17414 2006-01-26  Bruno Haible  <bruno@clisp.org>
17415             Paul Eggert  <eggert@cs.ucla.edu>
17416
17417         * lib/stdbool_.h (_Bool)
17418         [(! (defined __cplusplus || defined __BEOS__)
17419           && !defined __GNUC__
17420           && !(defined __HP_cc || defined __xlc__
17421                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
17422                || defined __sgi))]:
17423         #define to signed char in these cases too; this simplifies
17424         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
17425         etc., separately) and makes it more conservative.
17426
17427 2006-01-25  Simon Josefsson  <jas@extundo.com>
17428
17429         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
17430         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
17431         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
17432
17433 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17434
17435         * lib/argp-namefrob.h: Bugfix. Remove stray #
17436
17437 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
17438
17439         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
17440         so that we test the test.
17441         Check for yet another HP-UX cc bug involving *bool |= bool.
17442
17443 2006-01-25  Karl Berry  <karl@gnu.org>
17444
17445         * config/srclist.txt (vasnprintf.c): sync lost.
17446
17447 2006-01-25  Jim Meyering  <jim@meyering.net>
17448
17449         Sync from the stable (b5) branch of coreutils:
17450
17451         * lib/fts.c (fts_children): Don't let close() clobber errno from
17452         failed fchdir().
17453
17454         * lib/fts.c (fts_stat): When following a symlink-to-directory,
17455         don't necessarily interpret stat-fails+lstat-succeeds as indicating
17456         a dangling symlink.  That can also happen at least for ELOOP.
17457         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
17458         FYI, this bug predates the inclusion of fts.c in coreutils.
17459
17460         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
17461         in their own block, so pre-c99 compilers don't object.
17462
17463         Avoid the double-free (first in fts_read, second in fts_close) that
17464         would occur when an `active' directory is made inaccessible (e.g.,
17465         via chmod a-x) during a traversal.
17466         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
17467         before returning.  Reproduce this failure by
17468         mkdir -p a/b; cd a; chmod a-x . b
17469         Reported by Stavros Passas.
17470
17471 2006-01-25  Jim Meyering  <jim@meyering.net>
17472
17473         * lib/fileblocks.c: Remove more useless parentheses.
17474         * lib/readutmp.h: Likewise.
17475
17476 2006-01-25  Bruno Haible  <bruno@clisp.org>
17477
17478         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
17479         warnings.
17480         Reported by Paul Eggert.
17481
17482 2006-01-25  Bruno Haible  <bruno@clisp.org>
17483
17484         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
17485         rid of a trap command. For Solaris sh.
17486         Reported by Mark D. Baushke <mdb@gnu.org>.
17487
17488 2006-01-24  Simon Josefsson  <jas@extundo.com>
17489
17490         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
17491         Bruno.
17492
17493 2006-01-24  Karl Berry  <karl@gnu.org>
17494
17495         * config/srclist.txt (argp-namefrob.h): sync lost.
17496
17497 2006-01-24  Jim Meyering  <jim@meyering.net>
17498
17499         * modules/openat (Files): Add lib/intprops.h.
17500         From Mark D. Baushke.
17501
17502 2006-01-24  Jim Meyering  <jim@meyering.net>
17503
17504         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
17505         Reported by Mark D. Baushke.
17506
17507 2006-01-24  Jim Meyering  <jim@meyering.net>
17508
17509         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
17510
17511 2006-01-24  Bruno Haible  <bruno@clisp.org>
17512
17513         * modules/strnlen (Maintainer): Change from glibc to all.
17514
17515 2006-01-24  Bruno Haible  <bruno@clisp.org>
17516
17517         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
17518         Patch by Paul Eggert.
17519
17520 2006-01-24  Bruno Haible  <bruno@clisp.org>
17521
17522         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
17523         already has it.
17524         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
17525         2005-11-26.
17526
17527         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
17528         'signed char' to avoid problems with the built-in _Bool type.
17529         Reported by Paul Eggert on 2005-11-26.
17530
17531 2006-01-24  Bruno Haible  <bruno@clisp.org>
17532
17533         * gnulib-tool (func_import): Avoid constructing complicated sed
17534         expressions inside backquote.
17535         Report and solution by Mark D. Baushke <mdb@gnu.org>.
17536
17537 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
17538
17539         These changes imported from libc.
17540         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
17541         test and two separate function calls.
17542         * lib/strndup.c (__strndup): Add libc_hidden_def.
17543
17544 2006-01-23  Simon Josefsson  <jas@extundo.com>
17545
17546         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
17547         Remove the test_*_SOURCES variable: automake infers it by default.
17548         * modules/tls-tests: Likewise.
17549
17550 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         Work around porting bugs reported by Dieter in
17553         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
17554         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
17555         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
17556         Include "getopt.h" first, to check interface.
17557         (getenv): Declare only if defined HAVE_DECL_GETENV &&
17558         !HAVE_DECL_GETENV.
17559         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
17560         (__strndup): Revert to K&R-style function dfns, the glibc style.
17561         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
17562         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
17563         Include strnlen.h first, to get prototype properly.
17564         (strnlen): Renamed from __strnlen.
17565         Remove weak alias.
17566
17567 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
17570
17571 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17572
17573         * config/srclist.txt: Adjust to reflect glibc reorganization.
17574         This affects only comments.
17575
17576 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17577
17578          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
17579          Reported by Bruce Korb <bkorb@gnu.org>.
17580
17581 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17582
17583         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
17584         to pacify gcc -Wswitch-default.
17585
17586 2006-01-22  Bruno Haible  <bruno@clisp.org>
17587
17588         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
17589         temporary buffer for sprintf, take into account the precision also
17590         for 'd', 'i', 'u', 'o', 'x', 'X'.
17591
17592 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17593
17594         * modules/argp-tests: New module
17595         * tests/test-argp.c: New file
17596         * tests/test-argp-2.sh: New file
17597
17598 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17599
17600         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
17601         (__argp_base_name): Removed
17602         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
17603         typo.
17604         (__argp_base_name): Provide macro definition or extern declaration
17605         depending on the configuration
17606
17607 2006-01-20  Simon Josefsson  <jas@extundo.com>
17608
17609         * modules/inet_ntop (Depends-on): Depend on sys_socket.
17610
17611 2006-01-20  Simon Josefsson  <jas@extundo.com>
17612
17613         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
17614
17615 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17616
17617         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
17618         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
17619         Suggested by Bruno Haible.
17620
17621 2006-01-20  Karl Berry  <karl@gnu.org>
17622
17623         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
17624         until changes propagate, I guess.
17625
17626 2006-01-19  Simon Josefsson  <jas@extundo.com>
17627
17628         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
17629
17630 2006-01-19  Simon Josefsson  <jas@extundo.com>
17631
17632         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
17633
17634 2006-01-19  Simon Josefsson  <jas@extundo.com>
17635
17636         * gnulib-tool: Set check_PROGRAMS.
17637
17638         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
17639         modules/des-tests, modules/gc-arcfour-tests,
17640         modules/gc-arctwo-tests, modules/gc-des-tests,
17641         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
17642         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
17643         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
17644         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
17645         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
17646         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
17647         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
17648         test_*_SOURCES.
17649
17650 2006-01-18  Simon Josefsson  <jas@extundo.com>
17651
17652         * modules/socklen (Depends-on): Depend on sys_socket.
17653
17654 2006-01-18  Simon Josefsson  <jas@extundo.com>
17655
17656         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
17657         modules/des-tests, modules/gc-arcfour-tests,
17658         modules/gc-arctwo-tests, modules/gc-des-tests,
17659         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
17660         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
17661         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
17662         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
17663         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
17664         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
17665         $(EXEEXT) to automake TESTS variable, for mingw32.
17666
17667 2006-01-17  Simon Josefsson  <jas@extundo.com>
17668
17669         * modules/socklen (Include): Need sys/socket.h.
17670
17671 2006-01-17  Bruno Haible  <bruno@clisp.org>
17672
17673         * modules/ssize_t (Include): Add <sys/types.h>.
17674
17675 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17676
17677         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
17678         it's not portable and it doesn't work with cross-compiles.
17679         Problem reported by Bruno Haible.  Fix missing-$ typo in
17680         'test "gl_cv_ignore_unused_libraries" ...' that prevented
17681         -zignore from being used with Sun's C compiler.
17682
17683 2006-01-12  Simon Josefsson  <jas@extundo.com>
17684
17685         * lib/base64.c: Fix warning, reported by Bruno Haible
17686         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
17687
17688 2006-01-12  Bruno Haible  <bruno@clisp.org>
17689
17690         * modules/ldd: New file.
17691         * build-aux/ldd.sh.in: New file.
17692         * MODULES.html.sh (Support for building libraries and executables): Add
17693         ldd.
17694
17695 2006-01-12  Bruno Haible  <bruno@clisp.org>
17696
17697         * m4/ldd.m4: New file.
17698
17699 2006-01-12  Bruno Haible  <bruno@clisp.org>
17700
17701         * gnulib-tool (func_import, func_create_testdir): Don't go into an
17702         endless loop while replacing $auxdir with build-aux.
17703
17704 2006-01-11  Simon Josefsson  <jas@extundo.com>
17705
17706         * lib/stdint_.h (SIZE_MAX): Add missing (.
17707
17708 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17709
17710         Sync from coreutils.
17711         * lib/md5.c: Fix commentary typos.
17712         (alignof, UNALIGNED_P): No need for a GCC-specific version.
17713         * lib/md5.h (__attribute__): Remove; unused.
17714         * lib/sha1.c: Fix commentary to match md5 better.
17715         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
17716         so that we don't need to worry about alignment.  All uses changed.
17717         This merges the 2005-10-28 md5 change into sha1.
17718
17719 2006-01-11  Jim Meyering  <jim@meyering.net>
17720
17721         Sync from coreutils.
17722         * lib/md5.c (OP): Fix spacing.
17723
17724 2006-01-11  Bruno Haible  <bruno@clisp.org>
17725
17726         Ensure automatic ordering between gl_LOCK and gl_ARGP.
17727         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
17728         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
17729
17730 2006-01-11  Bruno Haible  <bruno@clisp.org>
17731
17732         Ensure automatic ordering between gl_LOCK and gl_ARGP.
17733         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
17734         the "early" section as well.
17735
17736 2006-01-11  Bruno Haible  <bruno@clisp.org>
17737
17738         Avoid "ar: no archive members specified" error on MacOS X.
17739         * gnulib-tool (func_modules_add_dummy): New function.
17740         (func_import, func_create_testdir): Invoke it.
17741
17742 2006-01-11  Bruno Haible  <bruno@clisp.org>
17743
17744         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
17745         with $auxdir in AC_CONFIG_FILES statements.
17746
17747 2006-01-11  Bruno Haible  <bruno@clisp.org>
17748
17749         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17750         Initialize also noinst_HEADERS to empty.
17751
17752 2006-01-11  Bruno Haible  <bruno@clisp.org>
17753
17754         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
17755         variables.
17756         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
17757         autoreconf.
17758
17759 2006-01-11  Bruno Haible  <bruno@clisp.org>
17760
17761         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
17762         overridable by the user.
17763         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17764
17765 2006-01-10  Simon Josefsson  <jas@extundo.com>
17766
17767         * modules/sys_socket: New file.
17768
17769 2006-01-10  Simon Josefsson  <jas@extundo.com>
17770
17771         * m4/sys_socket_h.m4: New file.
17772
17773 2006-01-10  Simon Josefsson  <jas@extundo.com>
17774
17775         * lib/socket_.h: New file.
17776
17777 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17778
17779         * modules/readutmp (Maintainer): Add myself.
17780
17781 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17782
17783         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
17784         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
17785         People who are still concerned with buggy memcmp implementations
17786         can invoke gl_FUNC_MEMCMP themselves.
17787
17788 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17789
17790         * lib/regex_internal.h (BITSET_WORD_BITS):
17791         Work around a bug in 64-bit PGC (before version 6.1-2), where the
17792         preprocessor mishandles large unsigned values as if they were signed.
17793         Problem reported by Claudio Fontana in
17794         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
17795
17796 2006-01-10  Jim Meyering  <jim@meyering.net>
17797
17798         Avoid the double-free (first in fts_read, second in fts_close) that
17799         would occur when an `active' directory is made inaccessible (e.g.,
17800         via chmod a-x) during a traversal.
17801         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
17802         before returning.  Reproduce this failure by
17803         mkdir -p a/b; cd a; chmod a-x . b
17804         Reported by Stavros Passas.
17805
17806         Sync from coreutils.
17807         * lib/sha1.c: Tweak grammar in a comment.
17808
17809 2006-01-10  Jim Meyering  <jim@meyering.net>
17810
17811         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
17812         Patch by Joerg Sonnenberger.
17813
17814 2006-01-10  Bruno Haible  <bruno@clisp.org>
17815
17816         * modules/readutmp: Depend on module free.
17817         * modules/strtok_r: Depend on module restrict.
17818
17819 2006-01-10  Bruno Haible  <bruno@clisp.org>
17820
17821         * modules/gettext (configure.ac): Add an invocation of
17822         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
17823
17824 2006-01-10  Bruno Haible  <bruno@clisp.org>
17825
17826         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
17827         Reported by Werner Lemberg <wl@gnu.org>.
17828
17829 2006-01-10  Bruno Haible  <bruno@clisp.org>
17830
17831         * lib/localcharset.c: Update from GNU gettext.
17832
17833 2006-01-10  Bruno Haible  <bruno@clisp.org>
17834
17835         * lib/argp.h (__const): Remove macro. Use const instead.
17836         * lib/argp-fmtstream.h (__const): Likewise.
17837         * lib/glob_.h (__const): Remove macro.
17838         * lib/glob-libc.h: Use const instead of __const.
17839
17840 2006-01-10  Bruno Haible  <bruno@clisp.org>
17841
17842         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
17843         variable.
17844         Needed to avoid an automake error regarding the 'gettext' module.
17845
17846 2006-01-09  Simon Josefsson  <jas@extundo.com>
17847
17848         * modules/inet_ntop (Depends-on): Add restrict.
17849
17850 2006-01-09  Simon Josefsson  <jas@extundo.com>
17851
17852         * modules/gc-rijndael-tests (License): Put under LGPL.
17853
17854         * modules/gc-des-tests (License): Likewise.
17855
17856         * modules/gc-arcfour-tests (License): Likewise.
17857
17858         * modules/gc-arctwo-tests (License): Likewise.
17859
17860         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
17861
17862         * modules/gc-hmac-sha1-tests (Files): Likewise.
17863
17864         * modules/gc-hmac-md5-tests (License): Likewise.
17865
17866         * modules/gc-sha1-tests (License): Likewise.
17867
17868         * modules/gc-md5-tests (License): Likewise.
17869
17870         * modules/gc-md4-tests (License): Likewise.
17871
17872         * modules/gc-md2-tests (License): Likewise.
17873
17874         * modules/gc-tests (License): Likewise.
17875
17876         * modules/des-tests (License): Likewise.
17877
17878         * modules/md4-tests (License): Likewise.
17879
17880         * modules/md2-tests (License): Likewise.
17881
17882 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17883
17884         Sync from coreutils:
17885
17886         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
17887         * modules/lib-ignore: New file.
17888         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
17889         chdir-safer.m4, lchmod.m4.
17890         * modules/openat: Add mkdirat.c, openat-priv.h.
17891
17892 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17893
17894         Sync from coreutils.
17895         * m4/lib-ignore.m4: New file.
17896         * m4/lchmod.m4: New file.
17897
17898 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17899
17900         Sync from coreutils.
17901         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
17902         for write access: POSIX says that must fail.
17903         * lib/fts.c (diropen): Likewise.
17904         * lib/save-cwd.c (save_cwd): Likewise.
17905         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
17906         well, for minor improvements on hosts that lack O_DIRECTORY.
17907         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
17908         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
17909         Fall back on chown if open failed with EACCES.
17910
17911         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
17912         Report an error at compile-time if only a 1-second nominal clock
17913         resolution is found.
17914
17915         * lib/lchmod.h: New file.
17916         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
17917         (make_dir_parents): Use lchown rather than chown, and
17918         lchmod rather than chmod.
17919
17920         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
17921         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
17922         "proc" reported by n0dalus.
17923
17924         * lib/mountlist.c: Include <limits.h>.
17925         (dev_from_mount_options)
17926         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
17927         New function.  It no longer assumes "dev=" has the System V meaning
17928         on Linux (since it doesn't).  It also parses "dev=" more carefully.
17929         (read_file_system_list)
17930         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
17931         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
17932         dev= in that case.
17933
17934         * lib/posixtm.h (PDS_PRE_2000): New macro.
17935         * lib/posixtm.c (year): Arg is now syntax_bits rather than
17936         allow_century.  All usages changed.  Reject dates outside the range
17937         1969-1999 if PDS_PRE_2000 is used.
17938
17939 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17940
17941         Sync from coreutils.
17942         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
17943         (Time of day items): Mention the possibility of leap seconds.
17944         Problem reported by Dr. David Alan Gilbert.
17945
17946 2006-01-09  Jim Meyering  <jim@meyering.net>
17947
17948         Sync from coreutils.
17949
17950         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
17951
17952         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
17953
17954         * lib/modechange.c (mode_compile): Reject an invalid mode string
17955         that starts with an octal digit.  From Andreas Gruenbacher.
17956
17957         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
17958         and dup to open_safer and dup_safer, respectively.
17959         (openat_permissive): Fix typo in comment.
17960
17961         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
17962         "gettext.h"; either no longer needed or are guaranteed by openat.h.
17963         (_): Remove; no longer needed.
17964         (openat): Renamed from rpl_openat; no need for rpl_openat
17965         since openat.h renames openat for us.
17966         Replace most of the body with a call to openat_permissive,
17967         to avoid duplicate code.
17968         Port to (probably hypothetical) environments were mode_t is
17969         wider than int.
17970         (openat_permissive): Require mode arg, so that we can check
17971         types better.  Put it just after flags.  Change cwd failure
17972         indicator from pointer-to-bool to pointer-to-errno-value.
17973         All callers changed.
17974         Invoke openat_save_fail and/or openat_restore_fail if
17975         cwd_errno is null, so that openat can call us.
17976         (openat_permissive, fdopendir, fstatat, unlinkat):
17977         Simplify errno handling to avoid some duplicate code,
17978         as it's OK to set errno on success.
17979         * lib/openat.h: Revamp code so that function macros depend on
17980         __OPENAT_PREFIX only, not also on AT_FDCWD.
17981         (openat_ro): Remove.  Caller changed to use openat_permissive.
17982         (openat_permissive): Now a macro, if not a function.
17983         (openat_restore_fail, openat_save_fail): Now always functions,
17984         since mkdirat needs them even if __OPENAT_PREFIX is defined.
17985
17986         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
17987         and openat.c.
17988         * lib/mkdirat.c: Include openat-priv.h.
17989         Remove definitions of macros defined therein.
17990         * lib/openat.c: Likewise.
17991
17992         * lib/mkdirat.c (mkdirat): New file and function.
17993         * lib/openat.h (mkdirat): Declare.
17994
17995         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
17996
17997         * lib/openat.h (openat_permissive): Declare.
17998         (openat_ro): Define.
17999
18000         * lib/openat.c (EXPECTED_ERRNO): New macro.
18001         (openat_permissive): New function -- used in remove.c rewrite.
18002         (all functions): Set errno just before returning, only if there
18003         was an actual failure.
18004         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
18005
18006         Emulate openat-family functions using Linux's procfs, if possible.
18007         Idea and some code based on Ulrich Drepper's glibc changes.
18008
18009         * lib/openat.c: (BUILD_PROC_NAME): New macro.
18010         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
18011         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
18012         before falling back on save_cwd and restore_cwd.
18013         (fdopendir, fstatat, unlinkat): Likewise.
18014
18015         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
18016         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
18017
18018         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
18019         as second argument to va_arg.  Otherwise, some versions of gcc
18020         warn that `if this code is reached, the program will abort'.
18021
18022 2006-01-09  Jim Meyering  <jim@meyering.net>
18023
18024         Sync from coreutils.
18025         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
18026         Require openat-priv.h.
18027
18028 2006-01-09  Bruno Haible  <bruno@clisp.org>
18029
18030         * modules/strnlen (Include): Use strnlen.h.
18031
18032 2006-01-09  Bruno Haible  <bruno@clisp.org>
18033
18034         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
18035
18036 2006-01-09  Bruno Haible  <bruno@clisp.org>
18037
18038         * lib/sysexit_.h (EX_OK): New macro.
18039         Suggested by Martin Lambers <marlam@marlam.de>.
18040
18041 2006-01-09  Bruno Haible  <bruno@clisp.org>
18042
18043         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
18044         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
18045
18046 2006-01-09  Bruno Haible  <bruno@clisp.org>
18047
18048         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
18049         numbers.
18050
18051 2006-01-09  Bruno Haible  <bruno@clisp.org>
18052
18053         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
18054         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
18055         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
18056         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
18057
18058 2006-01-09  Bruno Haible  <bruno@clisp.org>
18059
18060         * build-aux/javacomp.sh.in: New file, moved from lib/.
18061         * modules/javacomp-script (Files): Update.
18062         (configure.ac): Add AC_CONFIG_FILES invocation.
18063         (EXTRA_DIST): Remove variable.
18064
18065         * build-aux/javaexec.sh.in: New file, moved from lib/.
18066         * modules/javaexec (Files): Update.
18067         (configure.ac): Add AC_CONFIG_FILES invocation.
18068         (EXTRA_DIST): Remove javaexec.sh.in.
18069
18070         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
18071         * modules/csharpcomp-script (Files): Update.
18072         (configure.ac): Add AC_CONFIG_FILES invocation.
18073         (EXTRA_DIST): Remove variable.
18074
18075         * build-aux/csharpexec.sh.in: New file, moved from lib/.
18076         * modules/csharpexec (Files): Update.
18077         (configure.ac): Add AC_CONFIG_FILES invocation.
18078         (EXTRA_DIST): Remove csharpexec.sh.in.
18079
18080 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
18081
18082         Sync from coreutils.
18083
18084         Add POSIX ACL support
18085         * lib/acl.h (copy_acl, set_acl): Add declarations.
18086         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
18087         systems other than Linux.
18088         (chmod_or_fchmod): New function: use fchmod when possible,
18089         and chmod otherwise.
18090         (file_has_acl): Add a POSIX ACL implementation, with a
18091         Linux-specific subcase.
18092         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
18093         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
18094         acls are unsupported.
18095         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
18096         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
18097         are unsupported.
18098
18099 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
18100
18101         Sync from coreutils.
18102         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
18103
18104 2006-01-07  Bruno Haible  <bruno@clisp.org>
18105
18106         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
18107         gl_EARLY.
18108
18109 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18110
18111         * lib/strftime.c (tzname): Don't declare if it is already #defined.
18112         Problem reported for Mingw by Mark Junker.
18113
18114 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         * README: Gnulib normally doesn't generate a tarball.
18117
18118 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18119
18120         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
18121         long int, not int, for nanosecond counts, so that people who are
18122         used to POSIX struct timespec won't be surprised.  Reported by Jim
18123         Meyering.
18124
18125 2005-12-28  Bruno Haible  <bruno@clisp.org>
18126
18127         * build-aux/config.rpath: Update from GNU gettext.
18128
18129 2005-12-16  Jim Meyering  <jim@meyering.net>
18130
18131         * modules/fprintftime: New module.
18132         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
18133
18134 2005-12-16  Jim Meyering  <jim@meyering.net>
18135
18136         * m4/fprintftime.m4: New file.
18137
18138 2005-12-16  Jim Meyering  <jim@meyering.net>
18139
18140         * lib/fprintftime.c, lib/fprintftime.h: New files.
18141
18142 2005-12-15  Simon Josefsson  <jas@extundo.com>
18143
18144         * modules/socklen (configure.ac): Fix M4 macro name, to align with
18145         new m4/socklen.m4.
18146
18147 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18148
18149         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
18150         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
18151
18152 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18153
18154         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
18155         * lib/argp-help.c (fill_in_uparams): Check if the constructed
18156         struct uparams is valid. Fall back to the default values if it is
18157         not.
18158
18159 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18160
18161         * modules/argp (Files): Add argp-pin.c
18162         (Depends-on): dirname
18163         (lib_SOURCES): Add argp-pin.c
18164
18165 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18166
18167         * m4/argp.m4:  Check if program_invocation_name and
18168         program_invocation_short_name are declared and define appropriate
18169         macros if they are not.
18170
18171 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18172
18173         * lib/argp-help.c (__argp_base_name): New function
18174         (__argp_short_program_name): Rewrite using __argp_base_name
18175         * lib/argp-namefrob.h: Define program_invocation_name and
18176         program_invocation_short_name if requested
18177         (__argp_base_name): Add prototype
18178         * lib/argp-parse.c (argp_def): Use gettext wrappers
18179         (argp_default_parser): Use __argp_base_name
18180         * lib/argp-pin.c: New file. Defines program_invocation_name and
18181         program_invocation_short_name on systems that lack them.
18182
18183 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18184
18185         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
18186         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
18187         porting problem reported by Georg Schwarz in
18188         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
18189
18190 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18191
18192         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
18193         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
18194         porting problem reported by Georg Schwarz in
18195         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
18196
18197 2005-12-05  Bruno Haible  <bruno@clisp.org>
18198
18199         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
18200         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
18201         Reported by Mark Junker <mjscod@gmx.de>.
18202
18203 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
18204
18205         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
18206         Use implementation from Albert Chin, with some
18207         comments/corrections by Stepan Kasal and myself.
18208
18209 2005-12-02  Bruno Haible  <bruno@clisp.org>
18210
18211         * gnulib-tool (func_import): Accept GPLed build tool modules when
18212         --lgpl is given.
18213         * modules/csharpcomp-script: New file.
18214         * modules/csharpcomp: Depend on it.
18215         * modules/javacomp-script: New file.
18216         * modules/javacomp: Depend on it.
18217         Suggested by Simon Josefsson.
18218
18219 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18220
18221         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
18222         statement, to work around an HP-UX 10.20 compiler bug reported by
18223         Peter O'Gorman.
18224
18225 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18226
18227         * modules/savedir (Depends-on): Add openat.
18228
18229 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18230
18231         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
18232         (uintmax_t) [defined uintmax_t]: Do not declare.
18233         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
18234         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
18235         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
18236         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
18237         sake of portability to weird hosts that C allows (though we don't
18238         know of any practical examples).
18239
18240         * lib/savedir.h (fdsavedir): New decl.
18241         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
18242         contains most of the former guts of savedir.
18243         (savedir): Use savedirstream.
18244         Include "openat.h".
18245
18246 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18247
18248         * modules/obstack (Files): Add m4/ulonglong.m4.
18249         Problem reported by Davide Angelocola.
18250
18251 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18252
18253         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
18254         coreutils no longer futzes with rounding modes.
18255
18256 2005-11-14  Jim Meyering  <jim@meyering.net>
18257
18258         * lib/mkstemp-safer.c: Include <config.h>, required for possible
18259         replacement of mkstemp.
18260
18261 2005-11-10  Simon Josefsson  <jas@extundo.com>
18262
18263         * lib/readline.c: Remove EOL.
18264
18265 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18266
18267         * modules/gethrxtime (Depends-on): Add gettime.
18268
18269 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18270
18271         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
18272         or gettimeofday; no longer needed.
18273
18274 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18275
18276         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
18277         time business.
18278         (gethrxtime) [! (HAVE_NANOUPTIME
18279         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
18280         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
18281         our own approximation.
18282
18283 2005-11-08  Eric Blake  <ebb9@byu.net>
18284
18285         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
18286
18287 2005-11-08  Eric Blake  <ebb9@byu.net>
18288
18289         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
18290
18291 2005-11-04  Bruno Haible  <bruno@clisp.org>
18292
18293         * gnulib-tool: Implement --update mode.
18294
18295 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         Fix porting problem reported by Theodoros V. Kalamatianos.
18298         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
18299         Don't assume that futimes failing means we must fail.
18300
18301 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18302
18303         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
18304         variables to suggest the intended function of the PATH_MAX check.
18305
18306 2005-10-30  Kean Johnston  <jkj@sco.com>
18307
18308         Trivial changes to support SCO systems.
18309         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
18310         as PATH_MAX.
18311         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
18312         where __ptr is null when no I/O is pending.
18313
18314 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
18315
18316         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
18317         leave errno alone.  Problem reported by Dmitry V. Levin.
18318
18319 2005-10-28  Simon Josefsson  <jas@extundo.com>
18320
18321         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
18322         Test more.
18323
18324         * tests/test-gc-md2.c, tests/test-md2.c: New files.
18325
18326         * modules/md2, modules/md2-tests: New files.
18327
18328 2005-10-28  Simon Josefsson  <jas@extundo.com>
18329
18330         * m4/inet_ntop.m4: More tests.
18331
18332         * m4/gc-md2.m4, md2.m4: New file.
18333
18334 2005-10-28  Simon Josefsson  <jas@extundo.com>
18335
18336         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
18337         "restrict" keywords, as per POSIX.  Protect the function
18338         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
18339         Don't use K&R prototypes.  Check the sprintf return values.
18340         Re-define EAFNOSUPPORT if not present.  Indent.
18341
18342         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
18343         suggested by Bruno Haible <bruno@clisp.org>.
18344
18345         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
18346
18347         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
18348
18349         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
18350         libgcrypt).
18351
18352         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
18353
18354         * lib/md2.h, lib/md2.c: New files.
18355
18356 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
18357
18358         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
18359         errno alone.  Problem reported by Frederic Jolliton.
18360
18361 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
18362
18363         * modules/verify (License): Change from GPL to LGPL.  This is a
18364         tiny module and there are apparently near-equivalents that are
18365         under the BSD license.
18366
18367 2005-10-24  Simon Josefsson  <jas@extundo.com>
18368
18369         * modules/sha1: Relicense to LGPL.
18370
18371 2005-10-24  Simon Josefsson  <jas@extundo.com>
18372
18373         * lib/md4.h: Shrink buffer size, now that we changed the type.
18374
18375 2005-10-23  Simon Josefsson  <jas@extundo.com>
18376
18377         * gnulib-tool (func_import): Fix --tests-base.
18378
18379 2005-10-22  Simon Josefsson  <jas@extundo.com>
18380
18381         * modules/arcfour (Depends-on): Need stdint.
18382
18383 2005-10-22  Simon Josefsson  <jas@extundo.com>
18384
18385         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
18386         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
18387
18388 2005-10-22  Simon Josefsson  <jas@extundo.com>
18389
18390         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
18391         suggested by Bruno Haible <bruno@clisp.org>.
18392
18393 2005-10-22  Simon Josefsson  <jas@extundo.com>
18394
18395         * lib/crc.h: Include stddef.h, for size_t.
18396
18397 2005-10-22  Simon Josefsson  <jas@extundo.com>
18398
18399         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
18400         arcfour_context struct (simplify test vector testing in GNU
18401         Shishi).
18402
18403 2005-10-21  Simon Josefsson  <jas@extundo.com>
18404
18405         * modules/des, modules/des-tests: New files.
18406
18407         * modules/gc-des, modules/gc-des-tests: New files.
18408
18409         * tests/test-des.c, tests/test-gc-des.c: New file.
18410
18411 2005-10-21  Simon Josefsson  <jas@extundo.com>
18412
18413         * modules/arctwo, modules/arctwo-tests: New files.
18414
18415         * tests/test-arctwo.c: New file.
18416
18417         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
18418
18419         * tests/test-gc-arctwo.c: New file.
18420
18421 2005-10-21  Simon Josefsson  <jas@extundo.com>
18422
18423         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
18424         Bruno Haible <bruno@clisp.org>.
18425
18426         * m4/gc-des.m4: New file.
18427
18428 2005-10-21  Simon Josefsson  <jas@extundo.com>
18429
18430         * m4/arctwo.m4: New file.
18431
18432         * m4/gc-arctwo.m4: New file.
18433
18434 2005-10-21  Simon Josefsson  <jas@extundo.com>
18435
18436         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
18437         block.
18438
18439 2005-10-21  Simon Josefsson  <jas@extundo.com>
18440
18441         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
18442         <bruno@clisp.org>.
18443
18444         * lib/hmac-sha1.c (hmac_sha1): Likewise.
18445
18446         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
18447         Bruno Haible <bruno@clisp.org>.
18448
18449         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
18450         <bruno@clisp.org>.
18451
18452 2005-10-21  Simon Josefsson  <jas@extundo.com>
18453
18454         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
18455
18456 2005-10-21  Simon Josefsson  <jas@extundo.com>
18457
18458         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
18459
18460 2005-10-21  Simon Josefsson  <jas@extundo.com>
18461
18462         * lib/des.h, lib/des.c: New files.
18463
18464         * lib/gc-gnulib.c: Support DES.c
18465
18466 2005-10-21  Simon Josefsson  <jas@extundo.com>
18467
18468         * lib/arctwo.h, lib/arctwo.c: New files.
18469
18470         * lib/gc-gnulib.c: Support ARCTWO.
18471
18472 2005-10-21  Simon Josefsson  <jas@extundo.com>
18473
18474         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
18475         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18476
18477 2005-10-21  Simon Josefsson  <jas@extundo.com>
18478
18479         * gnulib-tool (func_import, func_create_testdir): Define automake
18480         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
18481         Makefile.am snippet),
18482         suggested by Bruno Haible <bruno@clisp.org>.
18483
18484         * modules/gc (Makefile.am): Use it.
18485
18486 2005-10-21  Bruno Haible  <bruno@clisp.org>
18487
18488         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
18489         patch.
18490
18491 2005-10-19  Simon Josefsson  <jas@extundo.com>
18492
18493         * tests/test-gc-rijndael.c: New file.
18494
18495         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
18496
18497 2005-10-19  Simon Josefsson  <jas@extundo.com>
18498
18499         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
18500         interface too.
18501
18502 2005-10-19  Simon Josefsson  <jas@extundo.com>
18503
18504         * tests/test-gc-arcfour.c: New file.
18505
18506         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
18507
18508 2005-10-19  Simon Josefsson  <jas@extundo.com>
18509
18510         * modules/gc-md4, modules/gc-md4-tests: New file.
18511
18512         * tests/test-gc-md4.c: New file.
18513
18514 2005-10-19  Simon Josefsson  <jas@extundo.com>
18515
18516         * m4/gc-md4.m4: New file.
18517
18518 2005-10-19  Simon Josefsson  <jas@extundo.com>
18519
18520         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
18521         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
18522         <kasal@ucw.cz>.
18523
18524 2005-10-19  Simon Josefsson  <jas@extundo.com>
18525
18526         * m4/gc-arcfour.m4: New file.
18527
18528         * m4/gc-rijndael.m4: New file.
18529
18530 2005-10-19  Simon Josefsson  <jas@extundo.com>
18531
18532         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
18533
18534 2005-10-19  Simon Josefsson  <jas@extundo.com>
18535
18536         * lib/gc-gnulib.c: Support ARCFOUR.
18537
18538 2005-10-19  Simon Josefsson  <jas@extundo.com>
18539
18540         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
18541         support.
18542
18543         * lib/gc.h: Add ECB enum type.
18544
18545         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
18546
18547 2005-10-18  Simon Josefsson  <jas@extundo.com>
18548
18549         * tests/test-md5.c: New file.
18550
18551         * modules/md5-tests: New file.
18552
18553 2005-10-18  Simon Josefsson  <jas@extundo.com>
18554
18555         * tests/test-md4.c: New file.
18556
18557         * modules/md4, modules/md4-tests: New files.
18558
18559 2005-10-18  Simon Josefsson  <jas@extundo.com>
18560
18561         * m4/md4.m4: New file.
18562
18563 2005-10-18  Simon Josefsson  <jas@extundo.com>
18564
18565         * lib/md4.h, lib/md4.c: New files, based on md5.?.
18566
18567 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
18568
18569         * gnulib-tool (func_create_testdir): Omit the second check whether
18570         BUILT_SOURCES in nonempty.
18571
18572 2005-10-17  Simon Josefsson  <jas@extundo.com>
18573
18574         * tests/test-rijndael.c: New file.
18575
18576 2005-10-17  Simon Josefsson  <jas@extundo.com>
18577
18578         * modules/sha1: Depend on stdint instead of md5.
18579
18580         * modules/md5: Depend on stdint, remove uint32_t.
18581
18582 2005-10-17  Simon Josefsson  <jas@extundo.com>
18583
18584         * modules/gc-sha1-tests: New file.
18585
18586         * tests/test-gc-sha1.c: New file.
18587
18588 2005-10-17  Simon Josefsson  <jas@extundo.com>
18589
18590         * m4/md5.m4: Remove call to uint32_t.m4.
18591
18592 2005-10-17  Simon Josefsson  <jas@extundo.com>
18593
18594         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
18595
18596         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
18597         md5.h.
18598
18599         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
18600
18601         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
18602
18603 2005-10-17  Simon Josefsson  <jas@extundo.com>
18604
18605         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
18606
18607 2005-10-17  Simon Josefsson  <jas@extundo.com>
18608
18609         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
18610
18611 2005-10-17  Simon Josefsson  <jas@extundo.com>
18612
18613         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
18614
18615         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
18616
18617 2005-10-17  Bruno Haible  <bruno@clisp.org>
18618
18619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
18620         that it can also be used in a test.
18621
18622 2005-10-16  Bruno Haible  <bruno@clisp.org>
18623
18624         * gnulib-tool (func_emit_tests_Makefile_am): Also define
18625         TESTS_ENVIRONMENT, so that individual tests can augment it.
18626
18627         * gnulib-tool (func_create_testdir): Use an intermediate target for
18628         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
18629         macros, like $(ALLOCA_H), which cannot be passed through the command
18630         line.
18631
18632 2005-10-15  Simon Josefsson  <jas@extundo.com>
18633
18634         * modules/rijndael-tests: New file.
18635
18636         * modules/rijndael: New file.
18637
18638 2005-10-15  Simon Josefsson  <jas@extundo.com>
18639
18640         * m4/rijndael.m4: New file.
18641
18642 2005-10-15  Simon Josefsson  <jas@extundo.com>
18643
18644         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
18645
18646         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
18647
18648 2005-10-14  Simon Josefsson  <jas@extundo.com>
18649
18650         * tests/test-arcfour.c: New file.
18651
18652         * modules/arcfour, modules/arcfour-tests: New files.
18653
18654 2005-10-14  Simon Josefsson  <jas@extundo.com>
18655
18656         * m4/arcfour.m4: New file.
18657
18658 2005-10-14  Simon Josefsson  <jas@extundo.com>
18659
18660         * lib/arcfour.h, lib/arcfour.c: New files.
18661
18662 2005-10-14  Roland McGrath  <roland@redhat.com>
18663
18664         Import from libc.  [BZ #1331]
18665         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
18666         macro argument.
18667         Reported by Matej Vela <vela@debian.org>.
18668
18669 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18670
18671         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
18672         include <wchar.h>; no longer needed.
18673
18674 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18675
18676         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
18677
18678 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
18679         and  Ulrich Drepper  <drepper@redhat.com>
18680
18681         Import from libc.
18682         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
18683         instead of inline stream orientation test and two separate
18684         function calls.  Pay no attention to USE_IN_LIBIO.
18685
18686 2005-10-13  Simon Josefsson  <jas@extundo.com>
18687
18688         * modules/gc-hmac-md5-tests: New file.
18689
18690         * tests/test-gc-hmac-sha1.c: New file.
18691
18692         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
18693
18694         * modules/gc-hmac-md5-tests: New file.
18695
18696         * tests/test-gc-md5.c: New file.
18697
18698         * modules/gc-md5-tests: New file.
18699
18700 2005-10-13  Simon Josefsson  <jas@extundo.com>
18701
18702         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
18703         Move memory allocation outside of loop.
18704
18705 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18706
18707         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
18708         intermediate directory is in a read-only file system.  Problem
18709         reported by Eric Blake.
18710
18711 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
18712
18713         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
18714
18715 2005-10-12  Simon Josefsson  <jas@extundo.com>
18716
18717         * tests/test-hmac-sha1.c: New file.
18718
18719         * modules/hmac-sha1-tests: New file.
18720
18721         * modules/hmac-sha1: New file.
18722
18723 2005-10-12  Simon Josefsson  <jas@extundo.com>
18724
18725         * modules/gc-sha1: New file.
18726
18727 2005-10-12  Simon Josefsson  <jas@extundo.com>
18728
18729         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
18730
18731         * tests/test-gc-pbkdf2-sha1.c: New file.
18732
18733 2005-10-12  Simon Josefsson  <jas@extundo.com>
18734
18735         * modules/gc-md5, modules/gc-hmac-md5: New files.
18736
18737         * modules/gc (Files): Remove md5, memxor and hmac files.
18738
18739 2005-10-12  Simon Josefsson  <jas@extundo.com>
18740
18741         * m4/gc-pbkdf2-sha1.m4: New file.
18742
18743         * m4/gc-hmac-sha1.m4: New file.
18744
18745         * m4/gc-sha1: New file.
18746
18747         * m4/hmac-sha1.m4: New file.
18748
18749 2005-10-12  Simon Josefsson  <jas@extundo.com>
18750
18751         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
18752
18753         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
18754
18755 2005-10-12  Simon Josefsson  <jas@extundo.com>
18756
18757         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
18758         suggested by Bruno Haible <bruno@clisp.org>.
18759
18760 2005-10-12  Simon Josefsson  <jas@extundo.com>
18761
18762         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
18763
18764 2005-10-12  Simon Josefsson  <jas@extundo.com>
18765
18766         * lib/gc-pbkdf2-sha1.c: New file.
18767
18768         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
18769
18770 2005-10-12  Simon Josefsson  <jas@extundo.com>
18771
18772         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
18773
18774         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
18775
18776 2005-10-12  Simon Josefsson  <jas@extundo.com>
18777
18778         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
18779         GC_USE_HMAC_MD5, respectively.
18780
18781         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
18782         (gc_md5): Fix typo.
18783
18784         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
18785
18786         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
18787
18788         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
18789
18790 2005-10-12  Bruno Haible  <bruno@clisp.org>
18791
18792         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
18793         Reported by Stepan Kasal <kasal@ucw.cz>.
18794
18795 2005-10-11  Simon Josefsson  <jas@extundo.com>
18796
18797         * tests/test-crc.c: New file.
18798
18799         * modules/crc, modules/crc-tests: New files.
18800
18801 2005-10-11  Simon Josefsson  <jas@extundo.com>
18802
18803         * m4/crc.m4: New file.
18804
18805 2005-10-11  Simon Josefsson  <jas@extundo.com>
18806
18807         * lib/gc.h: Add gc_hash and gc_hash_buffer.
18808
18809         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
18810
18811         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
18812
18813 2005-10-11  Simon Josefsson  <jas@extundo.com>
18814
18815         * lib/crc.h, lib/crc.c: New files.
18816
18817         * lib/gc.h (gc_hash_buffer): Add doc.
18818
18819 2005-10-11  Bruno Haible  <bruno@clisp.org>
18820
18821         * modules/c-strcasestr: New file.
18822         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
18823
18824 2005-10-11  Bruno Haible  <bruno@clisp.org>
18825
18826         * modules/c-strcase: New file.
18827         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
18828
18829 2005-10-11  Bruno Haible  <bruno@clisp.org>
18830
18831         * lib/strcasecmp.c: Include limits.h.
18832         (strcasecmp): Avoid integer overflow on exotic platforms.
18833         * lib/strncasecmp.c: Include limits.h.
18834         (strncasecmp): Avoid integer overflow on exotic platforms.
18835         Reported by Paul Eggert.
18836
18837 2005-10-11  Bruno Haible  <bruno@clisp.org>
18838
18839         * lib/c-strcasestr.h: New file, from GNU gettext.
18840         * lib/c-strcasestr.c: New file, from GNU gettext.
18841
18842 2005-10-11  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/c-strcase.h: New file, from GNU gettext.
18845         * lib/c-strcasecmp.c: New file, from GNU gettext.
18846         * lib/c-strncasecmp.c: New file, from GNU gettext.
18847
18848 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18849
18850         * modules/mempcpy (License): GPL -> LGPL.
18851         * modules/strchrnul (License): Likewise.
18852         * modules/sysexits (License): Likewise.
18853
18854 2005-10-08  Simon Josefsson  <jas@extundo.com>
18855
18856         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
18857
18858 2005-10-07  Simon Josefsson  <jas@extundo.com>
18859
18860         * m4/memxor.m4: Remove gl_C_RESTRICT call.
18861
18862 2005-10-06  Simon Josefsson  <jas@extundo.com>
18863
18864         * tests/test-hmac-md5.c: New file.
18865
18866         * modules/hmac-md5-tests: New file.
18867
18868         * modules/hmac-md5: New file.
18869
18870 2005-10-06  Simon Josefsson  <jas@extundo.com>
18871
18872         * m4/hmac-md5.m4: New file.
18873
18874         * m4/memxor.m4: Require gl_C_RESTRICT.
18875
18876 2005-10-06  Simon Josefsson  <jas@extundo.com>
18877
18878         * lib/memxor.c (memxor): Avoid casts and warnings.
18879
18880 2005-10-06  Simon Josefsson  <jas@extundo.com>
18881
18882         * lib/hmac-md5.c: New file.
18883
18884         * lib/hmac.h: New file.
18885
18886 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18887
18888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
18889         promotes to int, not unsigned int, to catch the AIX 5.3
18890         compiler bug.
18891
18892 2005-10-05  Simon Josefsson  <jas@extundo.com>
18893
18894         * modules/memxor: New file.
18895
18896         * modules/iconv (Files): Move config.rpath to havelib, it is used
18897         there.
18898
18899         * modules/havelib (Files): Add config.rpath.
18900
18901 2005-10-05  Simon Josefsson  <jas@extundo.com>
18902
18903         * m4/memxor.m4: New file.
18904
18905 2005-10-05  Simon Josefsson  <jas@extundo.com>
18906
18907         * lib/memxor.c (memxor): Fix compiler error.
18908
18909         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
18910         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
18911
18912         * lib/memxor.h, lib/memxor.c: New files.
18913
18914         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
18915         we assume all systems have it, suggested by Jim Meyering
18916         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
18917         any systems lack sys/socket.h; mingw32 is known to lack it, but we
18918         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
18919         same reasons.
18920
18921 2005-10-05  Simon Josefsson  <jas@extundo.com>
18922
18923         * config/srclist.txt: Add glibc bug 1423 for md5.h.
18924
18925 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18926
18927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
18928         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
18929         needed, since the source code now assumes these .h files.
18930
18931 2005-10-05  Derek Price  <derek@ximbiot.com>
18932
18933         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
18934
18935 2005-10-05  Bruno Haible  <bruno@clisp.org>
18936
18937         * modules/stdint (License): Change to LGPL.
18938
18939 2005-10-04  Simon Josefsson  <jas@extundo.com>
18940
18941         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
18942         D. Baushke" <mdb@gnu.org>.
18943
18944 2005-10-04  Bruno Haible  <bruno@clisp.org>
18945
18946         * lib/verify.h (verify_true): Provide alternative definition for C++.
18947
18948 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18949
18950         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
18951         (SSIZE_MAX): New macro, if not already defined.
18952         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
18953         than 2 GiB.
18954
18955 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18956
18957         Sync from coreutils.
18958         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
18959         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
18960         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
18961         ULLONG_MAX doesn't work with 2.7.2.1.
18962
18963 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18964
18965         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
18966         From Ben Pfaff.
18967
18968         * modules/exclude (Depends-on): Depend on verify.
18969         * modules/strtoimax (Depends-on): Likewise.
18970         * modules/utimecmp (Depends-on): Likewise.
18971
18972 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18973
18974         * lib/exclude.c: Include verify.h.
18975         (verify): Remove.  All callers changed to use verify.h's version.
18976         * lib/strtoimax.c: Likewise.
18977         * lib/utimecmp.c: Likewis.e
18978
18979         Sync from coreutils.
18980         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
18981         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
18982         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
18983         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
18984         bother returning ENOSYS if settimeofday or stime fails; just let
18985         them return whatever errno they want to return.
18986         * lib/utimens.c: Include unistd.h, for dup2.
18987         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
18988         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
18989
18990 2005-10-02  Jim Meyering  <jim@meyering.net>
18991
18992         Sync from coreutils.
18993         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
18994         from glibc-2.2.5 that fails for read-only files.
18995
18996 2005-10-02  Jim Meyering  <jim@meyering.net>
18997
18998         Sync from coreutils.
18999         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
19000         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
19001         `#if HAVE_CONFIG_H'.
19002         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
19003         Remove AT_FDCWD test.
19004         Do not consume the fd unless successful.
19005         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
19006         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
19007         block, so that we don't even try to compile it if settimeofday is
19008         available.  This works around a compilation failure on OSF1 V5.1,
19009         due to stime requiring a `long int*' while tv_sec is `int'.
19010
19011 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
19012
19013         Sync from coreutils.
19014         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
19015         against `yes', rather than just testing for nonempty.
19016
19017 2005-10-01  Simon Josefsson  <jas@extundo.com>
19018
19019         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
19020         and Darwin.
19021
19022         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
19023         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
19024         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
19025         freeaddrinfo and gai_strerror are declared by the POSIX headers.
19026         Check if struct addrinfo is declared.
19027
19028 2005-10-01  Simon Josefsson  <jas@extundo.com>
19029
19030         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
19031         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
19032         AI_* and EAI_* definitions.  Protect function declarations.
19033
19034 2005-10-01  Jim Meyering  <jim@meyering.net>
19035
19036         Sync from coreutils.
19037
19038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
19039         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
19040         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
19041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
19042         in the inet and nsl libraries.  Required on Solaris 5.7.
19043
19044 2005-10-01  Jim Meyering  <jim@meyering.net>
19045
19046         Sync from coreutils.
19047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
19048         in the inet and nsl libraries.  Required on Solaris 5.7.
19049
19050 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
19051
19052         * lib/getdelim.c (getdelim): Remove unused variables.
19053
19054 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
19055
19056         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
19057         so that the code works even with ancient cpp.  Portability problem
19058         with GCC 2.7.2.1 reported by Thomas M.Ott.
19059
19060 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         * modules/regex (Depends-on): Add strcase.
19063
19064         * modules/gethostname (Licence): Change from GPL to LGPL, since
19065         gethostname.c is a trivial implementation of a standard library
19066         function.
19067         * modules/poll (License): Change from GPL to LGPL, since it's
19068         derived from LGPL code.
19069
19070 2005-09-27  Jim Meyering  <jim@meyering.net>
19071
19072         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
19073         HAVE_CONFIG_H.
19074
19075         * lib/intprops.h (signed_type_or_expr__): Define.
19076         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
19077         for unsigned types.
19078
19079 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19080
19081         * lib/verify.h (verify_expr): Remove, replacing with:
19082         (verify_true): New macro that returns true instead of void.
19083         (verify_type__): Remove.
19084         (verify): Use verify_true rather than verify_type__.
19085
19086 2005-09-26  Bruno Haible  <bruno@clisp.org>
19087
19088         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
19089         is necessary.
19090         (lib_SOURCES): Remove mbchar.c.
19091         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
19092         (Files): Add m4/mbrtowc.m4.
19093         * modules/mbiter: Likewise.
19094         * modules/mbuiter: Likewise.
19095
19096 2005-09-26  Bruno Haible  <bruno@clisp.org>
19097
19098         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
19099         compile mbchar.c if they are not both present.
19100         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
19101         * m4/mbiter.m4 (gl_MBITER): Likewise.
19102         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
19103         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
19104         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
19105
19106 2005-09-25  Jim Meyering  <jim@meyering.net>
19107
19108         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
19109         also uses socklen_t.
19110
19111 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19112
19113         * lib/utimens.c (ENOSYS): Define if not already defined.
19114         (futimens): Support having a null PATH if the file descriptor
19115         is nonnegative.
19116
19117         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
19118         Remove.
19119         (__attribute): Define to empty unless GCC 3.1 or later.
19120         This works around a core dump on OpenBSD 3.4, which has GCC
19121         2.95.3, which dumps core when given __attribute__(()).  It also
19122         simplifies other tests, since we really don't want to bother with
19123         worrying about which ancient version of GCC supported what.
19124         Original problem reported by Yoann Vandoorselaere, with part of
19125         the fix suggested by Derek Price.
19126
19127 2005-09-24  Jim Meyering  <jim@meyering.net>
19128
19129         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
19130         so we can once again use a positive bitfield width of 1 -- now we
19131         don't have to explain why we were using a bitfield width of 2.
19132
19133 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
19134
19135         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
19136         and similarly for the other external symbols.  Problem reported
19137         by James Gallager.
19138
19139         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
19140         bug reported by Jim Meyering.
19141
19142         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
19143         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
19144         not needed, since socklen is a prerequisite module.
19145
19146 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
19147
19148         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
19149         Problem reported by Eric Blake.
19150         (getaddrinfo): Initialize se so that it's not garbage.
19151         Redo internal storage allocation so that it doesn't make unportable
19152         assumptions about alignment.
19153         Fix a memory leak.
19154
19155         * lib/utimens.c (futimens): Use futimesat if available.
19156         Prefer it to futimes since it doesn't have the futimes bug.
19157
19158         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
19159         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
19160         Instead, declare a function that returns a pointer to an array,
19161         and use verify_type__ to declare the size of the array.
19162         Problem and germ of a solution reported by Bruno Haible.
19163         (verify_type__): Use 2, not 1, for bitfield size, to avoid
19164         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
19165
19166 2005-09-23  Jim Meyering  <jim@meyering.net>
19167
19168         Sync from coreutils.
19169         Correct build failure (socklen_t not defined) on at least
19170         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
19171         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
19172
19173 2005-09-23  Jim Meyering  <jim@meyering.net>
19174
19175         * modules/getaddrinfo (Depends-on): Add socklen.
19176
19177 2005-09-23  Bruno Haible  <bruno@clisp.org>
19178
19179         * tests/test-verify.c: New file.
19180
19181 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19182
19183         Sync from coreutils.
19184
19185         * modules/argmatch (Depends-on): Add verify.
19186         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
19187         unistd-safer.
19188         * modules/save-cwd (Depends-on): Likewise.
19189
19190         * modules/openat (Files): Add lib/openat-die.c.
19191         (Depends-on): Remove error, exitfail.
19192         Add dirname.
19193
19194         * modules/verify: New file.
19195         * MODULES.html.sh (Diagnostics <assert.h>): New section,
19196         with "verify" module.
19197
19198 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19199
19200         Sync from coreutils.
19201
19202         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
19203         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
19204         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
19205         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
19206         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
19207         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
19208         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
19209         Don't bother checking for string.h, stdlib.h, unistd.h.
19210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
19211         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
19212         module's job.
19213         * m4/jm-macros.m4 (gl_MACROS): Likewise.
19214         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
19215
19216         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
19217         (gl_GETDATE): Use it.
19218
19219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
19220
19221 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19222
19223         Sync from coreutils.
19224
19225         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
19226         stat-time.h.
19227         * lib/argmatch.h: Include verify.h
19228         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
19229         (ARGMATCH_ASSERT): Remove; unused.
19230         * lib/canonicalize.c: Assume STDC_HEADERS.
19231         * lib/exclude.c: Include "strcase.h".
19232         * lib/regex_internal.h [!defined _LIBC]: Likewise.
19233         * lib/getusershell.c: Include stdio--.h rather than stdio.h
19234         and stdio-safer.h.
19235         (getusershell): Call fopen, not fopen_safer.
19236         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
19237         Do not include unistd-safer.h.
19238         (save_cwd): Don't call fd_safer; no longer needed
19239         now that we include fcntl--.h.
19240
19241         * lib/getdate.y (relative_time): New type.
19242         (RELATIVE_TIME_0): New constant.
19243         (parser_control): Use relative_time instead of doing it ourselves.
19244         (%union): Add new relative_time rel member.
19245         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
19246         Now typeless.
19247         (relunit, relunit_snumber): Now of type rel.
19248         (zone, rel, relunit, get_date): Adjust to above changes.
19249
19250         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
19251         Do not include unistd-safer.h.
19252         (getloadavg): Don't call fd_safer; no longer needed
19253         now that we include fcntl--.h.
19254
19255         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
19256         (make_dir_parents): Treat ENOSYS like EEXIST.
19257
19258         Improve quality of diagnostics on restore_cwd failure.
19259         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
19260         (make_dir_parents): Last arg is now int * (for errno), not bool *.
19261         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
19262         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
19263         each time through the loop.  Do not diagnose restore_cwd failure;
19264         that is the caller's job (and perhaps the caller does not care).
19265
19266         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
19267         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
19268         If the file already exists but is not a directory, don't bother
19269         to try to make its parents.
19270         Close potential file descriptor leak if we can't chdir("/") (!).
19271         Don't always return true if chdir($PWD) fails; return true only
19272         if the requested action was done successfully (except for the
19273         chdir($PWD)).
19274         Don't log final directory unless we actually made it.
19275         Refactor to avoid duplicate code to fix up permissions.
19276         Don't attempt to fix up parent permissions if chdir($PWD) fails.
19277
19278         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
19279         to make it a bit faster and (I hope) clearer.
19280         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
19281         Fix bug in formats like %2N.
19282
19283         * lib/verify.h: New file.
19284
19285 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19286
19287         Sync from coreutils.
19288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
19289
19290 2005-09-22  Jim Meyering  <jim@meyering.net>
19291
19292         Sync from coreutils.
19293
19294         * m4/lstat.m4 (gl_FUNC_LSTAT):
19295         Use AC_LIBSOURCES to require lstat.c and lstat.h.
19296         Remove obsolete comment.
19297         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
19298         * m4/xstrtod.m4: Likewise.
19299
19300         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
19301
19302 2005-09-22  Jim Meyering  <jim@meyering.net>
19303
19304         Sync from coreutils.
19305
19306         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
19307
19308         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
19309         the .tm_year member, since otherwise gcc-4.0 would now warn about
19310         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
19311
19312         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
19313         order to avoid an unsuppressible warning from gcc on 64-bit systems.
19314
19315         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
19316         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
19317         when run in a time zone for which daylight savings time is in effect
19318         for the starting date.
19319
19320         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
19321         stop us from restricting permissions of just-created absolute-named
19322         directories.
19323         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
19324         to restore initial working directory.
19325         * lib/mkdir-p.c (make_dir_parents): New parameter:
19326         different_working_dir, to tell caller if/when we change the working
19327         directory and are unable to return to the initial one.
19328         * lib/mkdir-p.h (make_dir_parents): Update prototype.
19329         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
19330         `return false'.  This fixes a bug introduced on 2004-07-30.
19331
19332         * lib/openat.c (fdopendir): Be sure to close the supplied
19333         file descriptor before returning.  This makes our replacement
19334         implementation a little closer to Solaris's, where fdopendir
19335         ties the file descriptor to the returned DIR* pointer.
19336         * lib/openat.c (unlinkat): New function.
19337         * lib/openat.h (unlinkat): Add prototype.
19338         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
19339         (openat_restore_fail): Rename from openat_restore_die.
19340         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
19341
19342         Provide an alternative to exiting immediately upon save_cwd or
19343         restore_cwd failure.  Now, an application can arrange e.g.,
19344         to perform a longjump in that case.
19345         * lib/openat.c: Include dirname.h.
19346         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
19347         (rpl_openat, fdopendir, fstatat): Call openat_save_die
19348         and openat_restore_die rather than calling error directly.
19349         Don't include "error.h" or "exitfail.h"; they're no longer needed.
19350
19351         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
19352         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
19353         define.
19354
19355         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
19356         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
19357                             int utc, int nanoseconds);
19358         Background:
19359         date should not have to allocate a megabyte of virtual memory to
19360         handle a format argument like +%1048575T.  When implemented with
19361         strftime, it must allocate such a buffer, use strftime to fill it
19362         in, print it, then free it.
19363         With fprintftime, it simply prints everything and exits.
19364         With no need for memory allocation, that's one fewer way to fail.
19365         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
19366         optional field width, not before, so we accept %9:z, not %:9z.
19367         (my_strftime): Be sure to use L_('x') for literals.
19368
19369         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
19370         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
19371         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
19372         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
19373         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
19374         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
19375         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
19376         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
19377         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
19378         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
19379         * lib/xgethostname.c, lib/xreadlink.c:
19380         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
19381
19382         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
19383         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
19384         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
19385         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19386         and don't include <sys/file.h>).
19387
19388 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
19389
19390         Sync from coreutils.
19391
19392         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
19393         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
19394         [!LDAV_DONE]: Avoid unused variable warning.
19395
19396 2005-09-21  Bruno Haible  <bruno@clisp.org>
19397
19398         * lib/unicodeio.h (unicode_to_mb): New declaration.
19399
19400 2005-09-20  Derek Price  <derek@ximbiot.com>
19401
19402         * lib/getaddrinfo.c: Don't include <netdb.h> included from
19403         getaddrinfo.h.
19404
19405 2005-09-20  Bruno Haible  <bruno@clisp.org>
19406
19407         * gnulib-tool: Remove trailing slashes from the values specified for
19408         --source-base, --m4-base, --tests-base, --aux-dir.
19409         Suggested by Simon Josefsson <jas@extundo.com>.
19410
19411 2005-09-20  Bruno Haible  <bruno@clisp.org>
19412
19413         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
19414         func_modules_to_filelist, func_import, func_create_testdir): Make all
19415         sorting results locale-independent, so that gnulib-cache.m4 doesn't
19416         change when gnulib-tool is invoked in a different locale.
19417
19418 2005-09-19  Simon Josefsson  <jas@extundo.com>
19419
19420         * m4/socklen.m4: Fix typo.
19421
19422 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19423
19424         Use a consistent style for including <config.h>.
19425         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
19426         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
19427         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
19428         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
19429         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
19430         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
19431         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
19432         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
19433         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
19434         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
19435         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
19436         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
19437         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
19438         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
19439         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
19440         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
19441         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
19442         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
19443         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
19444         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
19445         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
19446         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
19447         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
19448         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
19449         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
19450         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
19451         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
19452         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
19453         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
19454         lib/xstrtoumax.c, lib/yesno.c:
19455         Standardize inclusion of config.h.
19456         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
19457         lib/inttostr.h:  Removed inclusion of config.h from header files.
19458         * lib/inttostr.c:  Adjusted in-tree users.
19459         * lib/timespec.h: Remove superfluous warning to include config.h.
19460         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
19461         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
19462         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
19463         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
19464         config.h with HAVE_CONFIG_H.
19465
19466 2005-09-19  Jim Meyering  <jim@meyering.net>
19467
19468         * modules/pathmax (License): Change to LGPL.
19469
19470 2005-09-19  Derek Price  <derek@ximbiot.com>
19471
19472         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
19473
19474 2005-09-19  Bruno Haible  <bruno@clisp.org>
19475
19476         * gnulib-tool (import): Provide default for --tests-base.
19477
19478 2005-09-19  Bruno Haible  <bruno@clisp.org>
19479
19480         * doc/quote.texi: New file, extracted from gnulib.texi.
19481         * doc/ctime.texi: New file, extracted from gnulib.texi.
19482         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
19483         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
19484         * doc/gnulib.texi: Include them.
19485
19486 2005-09-18  Bruno Haible  <bruno@clisp.org>
19487
19488         Portability fix.
19489         * gnulib-tool (func_readlink): New function.
19490         (func_ln_if_changed): Use it.
19491
19492 2005-09-18  Bruno Haible  <bruno@clisp.org>
19493
19494         * gnulib-tool: Support --with-tests also with --import.
19495         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
19496         (func_import): Use variables $testsbase and $inctests. Emit a
19497         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
19498         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
19499         SUBDIRS += $testsdir.
19500         (func_create_testdir): Update.
19501
19502 2005-09-18  Bruno Haible  <bruno@clisp.org>
19503
19504         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
19505         instead of $dry_run.
19506         (func_cp_if_changed, func_mv_if_changed): Remove functions.
19507         (func_ln_if_changed): Don't handle dry-run here.
19508         (func_import): In dry-run mode, detect more precisely which actions
19509         would be performed, and don't use "...ing" verbs.
19510
19511 2005-09-18  Bruno Haible  <bruno@clisp.org>
19512
19513         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
19514         (func_import): Use join on two temporary files instead of three nested
19515         loops, in order to determine which files are new or old.
19516
19517 2005-09-18  Bruno Haible  <bruno@clisp.org>
19518
19519         * gnulib-tool (func_import): Comment out code that spits out the
19520         new files with --dry-run.
19521
19522 2005-09-18  Bruno Haible  <bruno@clisp.org>
19523
19524         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
19525
19526 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19527
19528         * lib/stat-time.h: New file.
19529         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
19530         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
19531         in a different way.
19532         (timespec_cmp): New function.
19533         * lib/utimecmp.c: Include stat-time.h.
19534         (SYSCALL_RESOLUTION): Depend on whether various struct stat
19535         members exist, not on the obsolescent ST_MTIM_NSEC.
19536         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
19537
19538 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19539
19540         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
19541
19542 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19543
19544         * MODULES.html.sh (File system functions): Add stat-time.
19545         * modules/stat-time: New file.
19546         * modules/timespec (Files): Remove m4/st_mtim.m4; this
19547         is now done in a different way, by the stat-time module.
19548         * modules/utimecmp (Depends-on): Add stat-time.
19549
19550 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         * m4/st_mtim.m4: Remove.  Superseded by...
19553         * m4/stat-time.m4: New file.
19554         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
19555         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
19556
19557 2005-09-15  Derek Price  <derek@ximbiot.com>
19558
19559         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
19560
19561 2005-09-15  Derek Price  <derek@ximbiot.com>
19562
19563         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
19564         * lib/regex_internal.c: Ditto, using this...
19565         (__GNUC_PREREQ): ...new macro.
19566         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
19567         using...
19568         (__GNUC_PREREQ): ...this new macro.
19569
19570         * lib/strstr.h: Include string.h. Define strstr as a macro here.
19571
19572 2005-09-15  Derek Price  <derek@ximbiot.com>
19573             Paul Eggert  <eggert@cs.ucla.edu>
19574
19575         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
19576         changes, consolidating in...
19577         * lib/regex_internal.h: ...this file.
19578
19579 2005-09-13  Jim Meyering  <jim@meyering.net>
19580
19581         * lib/canon-host.c: Filter through gnu indent and reword comments
19582         slightly.
19583         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
19584
19585 2005-09-13  Derek Price  <derek@ximbiot.com>
19586
19587         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
19588         failure.
19589         Reported by Jim Meyering  <jim@meyering.net>.
19590
19591 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19592
19593         * lib/base64.c: Typo.
19594         (base64_encode): Put b64str in initialized data section.
19595
19596 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19597
19598         Merge glibc and coreutils changes into gnulib, plus a few
19599         extra fixes.
19600         * lib/md5.c: Use #error rather than a string.
19601         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
19602         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
19603         (__attribute__): Define to empty for non recent-GCC.
19604         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
19605         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
19606         Renamed from their non-__ counterparts, with new macros replacing
19607         them if not _LIBC.  Add __THROW attribute.
19608         (rol): Remove.
19609         (struct md5_ctx): Align buffer if using GCC.
19610         * lib/sha1.h (struct sha1_ctx): Likewise.
19611         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
19612         The old name was backwards.
19613         (NOTSWAP): Remove; not used.
19614         (rol): New macro, moved here from md5.h.
19615         (sha1_process_block): Remove a FIXME that doesn't make sense.
19616
19617 2005-09-12  Derek Price  <derek@ximbiot.com>
19618
19619         Return usable errors from canon-host.
19620         * lib/canon-host.h: New file.
19621         * lib/canon-host.c (canon_host): Wrap...
19622         (canon_host_r): ...this new function, which now relies exclusively on
19623         getaddrinfo.
19624         (ch_strerror): New function.
19625         (last_cherror): New global.
19626         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
19627         interface.
19628         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
19629         void *.
19630         (freeaddrinfo): Free ai->ai_canonname when set.
19631
19632 2005-09-12  Derek Price  <derek@ximbiot.com>
19633
19634         Make canon-host require getaddrinfo.
19635         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
19636         AC_LIBSOURCE canon-host.h.  Call...
19637         (gl_PREREQ_CANON_HOST): ...this new function, which requires
19638         gl_GETADDRINFO.
19639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
19640
19641 2005-09-12  Derek Price  <derek@ximbiot.com>
19642
19643         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
19644         LGPL.
19645         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
19646
19647 2005-09-12  Derek Price  <derek@ximbiot.com>
19648
19649         * lib/gai_strerror.c: Include config.h when available.  Include
19650         getaddrinfo.h before other headers to test interface.
19651         Reported by Larry Jones <lawrence.jones@ugs.com>.
19652
19653 2005-09-12  Derek Price  <derek@ximbiot.com>
19654             Paul Eggert  <eggert@cs.ucla.edu>
19655
19656         * modules/glob (Files): Add glob-libc.h.
19657
19658 2005-09-12  Derek Price  <derek@ximbiot.com>
19659             Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
19662         glob_.h, glob-libc.h.
19663         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
19664
19665 2005-09-12  Derek Price  <derek@ximbiot.com>
19666             Paul Eggert  <eggert@cs.ucla.edu>
19667
19668         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
19669         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
19670         protecting things that should be done only in gnulib contexts.
19671         * lib/glob_.h: New file, containing only the glob things needed for
19672         gnulib.
19673         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
19674         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
19675         (glob, globfree, glob_pattern_p): Now defined simply in terms of
19676         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
19677         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
19678         and to respect the namespace rules better.
19679
19680 2005-09-08  Simon Josefsson  <jas@extundo.com>
19681
19682         * modules/socklen: New file.
19683
19684 2005-09-08  Simon Josefsson  <jas@extundo.com>
19685
19686         * m4/socklen.m4: New file.
19687
19688 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19689
19690         * modules/utimens (Files): Add m4/utimbuf.m4, since
19691         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
19692         Reported by Sergey Poznyakoff.
19693
19694 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
19697         definitions, since that's the preferred style in glibc.
19698         Fix a minor spacing issue, and update copyright notice to match
19699         glibc's.
19700
19701 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19702
19703         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
19704
19705 2005-09-06  Simon Josefsson  <jas@extundo.com>
19706
19707         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
19708         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
19709
19710 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19711
19712         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
19713         warning.
19714
19715 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19716
19717         * config/srclist.txt: Add glibc bug 1302.
19718
19719 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
19720
19721         Change bitset word type from unsigned int to unsigned long int,
19722         as this has better performance on typical 64-bit hosts.
19723         Port bitset code to hosts with unusual word sizes.
19724         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
19725         (build_collating_symbol):
19726         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
19727         argument is a bitset.  This is merely a style issue, but it makes
19728         it clearer that an entire array is expected.
19729         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
19730         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
19731         Port to the case where bitset_word is not the same as unsigned int.
19732         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
19733         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
19734         Likewise.
19735         * lib/regexec.c (check_dst_limits_calc_pos_1,
19736         check_subexp_matching_top):
19737         (build_trtable, group_nodes_into_DFAstates):
19738         Likewise.
19739         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
19740         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
19741         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
19742         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
19743         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
19744         * lib/regcomp.c (optimize_subexps, lower_subexp):
19745         Work even if bitset_word has holes in its bitwise representation.
19746         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
19747         * lib/regexec.c (check_dst_limits_calc_pos_1,
19748         check_subexp_matching_top):
19749         Likewise.
19750         * lib/regex_internal.c (re_string_reconstruct):
19751         Don't assume UCHAR_MAX == 255.
19752         * lib/regex_internal.h (bitset_set_all): Likewise.
19753         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
19754         All uses changed.
19755         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
19756         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
19757         All uses changed.
19758         (BITSET_WORD_MAX): New macro.
19759         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
19760         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
19761         (bitset_empty, bitset_copy):
19762         Prefer sizeof (bitset) to multiplying it out ourselves.
19763         (bitset_not_merge): Remove; unused.
19764         (bitset_contain): Return bool, not unsigned int with one bit on.
19765         All callers changed.
19766         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
19767         alignment than re_node_set; do this by defining a new internal
19768         type struct dests_alloc and using it to allocate memory.
19769
19770 2005-09-05  Bruno Haible  <bruno@clisp.org>
19771
19772         * gnulib-tool (func_import): Fix comparison in handling of symbolic
19773         links.
19774
19775 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
19776
19777         * modules/size_max (Makefile.am): Add size_max.h
19778
19779 2005-09-04  Derek Price  <derek@ximbiot.com>
19780
19781         * gnulib-tool (func_import): Fix reversed $symbolic logic.
19782
19783 2005-09-03  Simon Josefsson  <jas@extundo.com>
19784
19785         * gnulib-tool: Fix typo.
19786
19787 2005-09-03  Simon Josefsson  <jas@extundo.com>
19788
19789         * config/srclist.txt: Add glibc bug 1293.
19790
19791 2005-09-03  Derek Price  <derek@ximbiot.com>
19792
19793         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
19794         From Larry Jones <lawrence.jones@ugs.com>.
19795
19796 2005-09-02  Simon Josefsson  <jas@extundo.com>
19797
19798         * modules/socklen: New file.
19799
19800 2005-09-02  Simon Josefsson  <jas@extundo.com>
19801
19802         * modules/havelib: New module.
19803
19804         * modules/gettext, modules/iconv, modules/lock, modules/readline:
19805         Use havelib.
19806
19807 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19808
19809         Check for arithmetic overflow when calculating sizes, to prevent
19810         some buffer-overflow issues.  These patches are conservative, in the
19811         sense that when I couldn't determine whether an overflow was possible,
19812         I inserted a run-time check.
19813         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
19814         macros.
19815         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
19816         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
19817         (re_xnrealloc, re_x2nrealloc): New inline functions.
19818         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
19819         parse_bracket_exp):
19820         (build_equiv_class, build_charclass): Check for arithmetic overflow
19821         in size expression calculations.
19822         * lib/regex_internal.c (re_string_realloc_buffers):
19823         (build_wcs_upper_buffer, re_node_set_add_intersect):
19824         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
19825         (re_dfa_add_node, register_state): Likewise.
19826         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
19827         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
19828         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
19829         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
19830
19831 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19832
19833         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
19834         m4/ulonglong.m4.  Problem reported by Martin Lambers.
19835
19836 2005-09-02  Bruno Haible  <bruno@clisp.org>
19837
19838         Support for lib vs. lib64 distinction on biarch platforms.
19839         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
19840         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
19841         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
19842
19843 2005-09-02  Bruno Haible  <bruno@clisp.org>
19844
19845         * gnulib-tool (import): In the other first-use case, provide defaults
19846         as well.
19847
19848 2005-09-02  Bruno Haible  <bruno@clisp.org>
19849
19850         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
19851         patches not yet found in the latest gettext release.
19852
19853 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19854
19855         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
19856         to avoid a collision with bits/local_lim.h in glibc.
19857         All uses changed.  Problem reported by Dmitry V. Levin in
19858         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
19859
19860         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
19861         bugs in int versus size_t comparisons.
19862         (re_string_context_at): Fix bug where the code assumed that
19863         Idx is signed.
19864
19865         Use bool where appropriate.
19866         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
19867         All callers changed.
19868         (calc_eclosure_iter): Likewise, for ROOT arg.
19869         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
19870         (build_charclass_op): Likewise, for NON_MATCH arg.
19871         * lib/regex_internal.c (re_string_allocate, re_string_construct):
19872         (re_string_construct_common): Likewise, for ICASE arg.
19873         * lib/regexec.c (re_search_2_stub, re_search_stub):
19874         Likewise, for RET_LEN arg.
19875         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
19876         (set_regs): Likewise, for FL_BACKTRACK arg.
19877         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
19878         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
19879         (calc_eclosure_iter, parse_bracket_exp):
19880         Use bool for internal variables that are booleans.
19881         * lib/regexec.c (re_search_internal, check_matching,
19882         proceed_next_node):
19883         (set_regs, build_sifted_states, sift_states_bkref):
19884         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
19885         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19886         (find_collation_sequence_value):
19887         Likewise.
19888         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
19889         (re_node_set_compare):
19890         Return bool, not int. All callers changed.
19891         * lib/regexec.c (check_halt_node_context, check_dst_limits):
19892         (build_trtable, check_node_accept): Likewise.
19893         * lib/regex_internal.h: Include stdbool.h.
19894
19895         Fix bugs uncovered when converting to bool.
19896         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
19897         failure instead of charging ahead blindly.
19898         * lib/regex_internal.c (register_state): Likewise.
19899         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
19900         for freeing internal storage.
19901         (group_nodes_into_DFA_states): Use unsigned int, not int, for
19902         bitset pieces used as boolean, to avoid undefined behavior
19903         on hosts that do int overflow checking.
19904
19905 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19906
19907         * config/srclist.txt: Add glibc bugs 1285-1287.
19908
19909 2005-09-01  Jim Meyering  <jim@meyering.net>
19910
19911         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
19912         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
19913         Require gl_STAT_MACROS, too.
19914
19915 2005-09-01  Bruno Haible  <bruno@clisp.org>
19916
19917         * gnulib-tool (import): In the first-use case, provide defaults.
19918
19919 2005-09-01  Bruno Haible  <bruno@clisp.org>
19920
19921         * gnulib-tool (func_import): Remove the .tmp files.
19922
19923 2005-09-01  Bruno Haible  <bruno@clisp.org>
19924
19925         * gnulib-tool (func_import): Fix handling of symbolic links.
19926
19927 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
19930         old glibc regex code mishandles strings longer than 2**31 bytes.
19931         This patch fixes this when the regex code is used in gnulib
19932         (i.e., outside glibc).
19933
19934         This patch should not affect the use of the regex code inside
19935         glibc.  No doubt this problem also needs to be handled for glibc
19936         as well, but the result will be an incompatible change to the
19937         glibc ABI, and the old ABI will have to be supported too.  That
19938         can be the the subject for another patch.
19939
19940         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
19941         governing whether the rest of this patch is active.  By default,
19942         the macro is disabled and the patch has no effect.
19943         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
19944         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
19945         (struct re_pattern_buffer, re_search, re_search_2, re_match):
19946         (re_match_2, re_set_registers): Use the new types.
19947         * lib/regex_internal.h (Idx, re_hashval_t): New types.
19948         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
19949         New macros.
19950         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
19951         (re_string_context_at, bin_tree_t, re_dfastate_t):
19952         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
19953         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
19954         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
19955         (re_string_char_size_at, re_string_wchar_at):
19956         (re_string_elem_size_at):
19957         Use the new types and macros to port to 64-bit hosts.
19958         Use unsigned types for internal values, so that the code
19959         mostly works even for arrays larger than SSIZE_MAX.
19960         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
19961         (search_duplicated_node, calc_eclosure_iter, fetch_number):
19962         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19963         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
19964         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
19965         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
19966         (calc_inveclosure, parse_dup_op, build_range_exp):
19967         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
19968         (fetch_number, create_token_tree, mark_opt_subexp):
19969         Likewise.
19970         * lib/regex_internal.c (re_string_construct_common,
19971         create_ci_newstate):
19972         (create_cd_newstate, re_string_allocate, re_string_construct):
19973         (re_string_realloc_buffers, build_wcs_upper_buffer):
19974         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19975         (re_string_reconstruct, re_string_peek_byte_case):
19976         (re_string_fetch_byte_case, re_string_context_at):
19977         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19978         (re_node_set_init_copy, re_node_set_add_intersect):
19979         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19980         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19981         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19982         (re_acquire_state, re_acquire_state_context, register_state):
19983         Likewise.
19984         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
19985         search_cur_bkref_entry):
19986         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
19987         (re_search_internal, re_search_2_stub, re_search_stub)
19988         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
19989         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
19990         (update_cur_sifted_state, check_dst_limits):
19991         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
19992         (check_subexp_limits, sift_states_bkref, merge_state_array):
19993         (check_subexp_matching_top, get_subexp, get_subexp_sub):
19994         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
19995         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19996         (expand_bkref_cache, check_node_accept_bytes):
19997         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
19998         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
19999         (acquire_init_state_context, check_halt_node_context):
20000         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
20001         (sift_states_backward, clean_state_log_if_needed):
20002         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
20003         (find_recover_state, transit_state_sb, transit_state_mb):
20004         (transit_state_bkref, build_trtable, match_ctx_clean):
20005         Likewise.
20006         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
20007         to work around an assumption that REG_MISSING is negative.
20008
20009         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
20010         (seek_collating_symbol_entry) [defined _LIBC]:
20011         (lookup_collation_sequence_value) [defined _LIBC]:
20012         (build_range_exp, build_collating_symbol) [defined _LIBC]:
20013         Use prototypes rather than old-style function definitions.
20014         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
20015         (transit_state_sb) [0]:
20016         (find_collation_sequence_value) [defined _LIBC]: Likewise.
20017
20018         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
20019         rm_eo.
20020
20021         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
20022         (optimize_subexps, lower_subexp):
20023         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
20024         since the signed shift might overflow.  Use 1u<<31 instead.
20025         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
20026         Likewise.
20027         * lib/regexec.c (check_dst_limits_calc_pos_1,
20028         check_subexp_matching_top): Likewise.
20029
20030         * lib/regcomp.c (optimize_subexps, lower_subexp):
20031         Use CHAR_BIT rather than 8, for clarity.
20032         * lib/regexec.c (check_dst_limits_calc_pos_1):
20033         (check_subexp_matching_top): Likewise.
20034         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
20035         have to worry about portability issues when shifting it left.
20036         Remove no-longer-needed test for table_size > 0.
20037         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
20038         in a word, as the resulting behavior is undefined.
20039         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
20040         in one case, a <= should have been an <, and in another case the
20041         whole test was missing.
20042         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
20043         the standard name CHAR_BIT.
20044         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
20045         this is not true on one's complement and signed-magnitude hosts.
20046
20047         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
20048         next_last_offset.
20049         (struct re_dfa_t): Remove unused member states_alloc.
20050         * lib/regcomp.c (init_dfa): Don't initialize unused members.
20051
20052 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20053
20054         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
20055         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
20056         and large-file glibc and in 32-bit large-file Solaris.
20057
20058 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20059
20060         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
20061         lengths fit in regoff_t; this isn't true if regoff_t is the same
20062         width as size_t.
20063         * lib/regex.c (re_search_internal): 5th arg is LAST_START
20064         (= START + RANGE) instead of RANGE.  This avoids overflow
20065         problems when regoff_t is the same width as size_t.
20066         All callers changed.
20067         (re_search_2_stub): Check for overflow when adding the
20068         sizes of the two strings.
20069         (re_search_stub): Check for overflow when adding START
20070         to RANGE; if it occurs, substitute the extreme value.
20071
20072 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20073
20074         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
20075
20076 2005-08-31  Jim Meyering  <jim@meyering.net>
20077
20078         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
20079         a pointer-to-const.
20080         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
20081         (register_state): Likewise.
20082         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
20083         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
20084         (group_nodes_into_DFAstates): Likewise.
20085
20086 2005-08-31  Jim Meyering  <jim@meyering.net>
20087
20088         * check-module: Add a FIXME comment.
20089
20090 2005-08-31  Eric Blake  <ebb9@byu.net>
20091
20092         * modules/unistd-safer (Files): Add unistd--.h.
20093         * modules/stdio-safer (Files): Add stdio--.h.
20094
20095 2005-08-31  Derek Price  <derek@ximbiot.com>
20096
20097         * lib/getdelim.c (getdelim): Return EOF on EOF.
20098         Reported by Larry Jones <lawrence.jones@ugs.com>.
20099
20100 2005-08-31  Bruno Haible  <bruno@clisp.org>
20101
20102         Avoid unnecessary diffs in the generated lib/Makefile.am.
20103         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
20104         the generated files.
20105         (func_import): Don't set cmd.
20106
20107 2005-08-31  Bruno Haible  <bruno@clisp.org>
20108
20109         * lib/strstr.c: Include <stddef.h>, for NULL.
20110         * lib/strcasestr.c: Likewise.
20111         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20112
20113 2005-08-31  Bruno Haible  <bruno@clisp.org>
20114
20115         * gnulib-tool: New option --macro-prefix.
20116         (func_import): Use macro_prefix.
20117         (import): Handle option --macro-prefix.
20118
20119 2005-08-31  Bruno Haible  <bruno@clisp.org>
20120
20121         * gnulib-tool (import): Rename most ac_* variables to cached_*.
20122         Also use new variables cached_lgpl, cached_libtool.
20123
20124 2005-08-31  Bruno Haible  <bruno@clisp.org>
20125
20126         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
20127         always instantiating them.
20128
20129 2005-08-31  Bruno Haible  <bruno@clisp.org>
20130
20131         * gnulib-tool (func_import): Read the previous cached settings
20132         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
20133         earlier added by gnulib but are now dropped. Warn when a gnulib file
20134         overwrites a non-gnulib file.
20135
20136 2005-08-31  Bruno Haible  <bruno@clisp.org>
20137
20138         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
20139         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
20140         projects that don't keep autogenerated files in CVS. Put into
20141         actioncmd only the specified modules, not the transitive closure.
20142
20143 2005-08-31  Bruno Haible  <bruno@clisp.org>
20144
20145         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
20146         Create directories that shall be filled.
20147         (import): Don't look for gl_* macros in configure.ac. Recurse across
20148         all directories containing a gnulib-cache.m4 files, if meaningful.
20149
20150 2005-08-31  Bruno Haible  <bruno@clisp.org>
20151
20152         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
20153         (import): Set seen_libtool when we see gl_LIBTOOL.
20154
20155 2005-08-31  Bruno Haible  <bruno@clisp.org>
20156
20157         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
20158         declaration macro definitions from generated gnulib.m4.
20159
20160 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
20161
20162         * lib/iconvme.h: Add prototype for iconv_alloc.
20163
20164 2005-08-29  Simon Josefsson  <jas@extundo.com>
20165
20166         * lib/iconvme.c: Fix errno.
20167
20168 2005-08-29  Bruno Haible  <bruno@clisp.org>
20169
20170         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
20171         that it works when the directory contains spaces.
20172
20173 2005-08-29  Bruno Haible  <bruno@clisp.org>
20174
20175         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
20176
20177 2005-08-29  Bruno Haible  <bruno@clisp.org>
20178
20179         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
20180         Emit more advice.
20181
20182 2005-08-29  Bruno Haible  <bruno@clisp.org>
20183         and Stepan Kasal  <kasal@ucw.cz>
20184
20185         * check-module: If more parameters are given, check each of them
20186         separately; add more exceptions, as noted by Jim Meyering.
20187         (check_module): New procedure.
20188         (%exempt_header): Now contains all exceptions.
20189
20190 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
20191
20192         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
20193
20194 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
20195
20196         * lib/iconvme.c: Split iconv_string into iconv_alloc.
20197
20198 2005-08-28  Bruno Haible  <bruno@clisp.org>
20199
20200         * m4/gnulib-tool.m4: New file.
20201
20202 2005-08-27  Jim Meyering  <jim@meyering.net>
20203
20204         * modules/unistd-safer (Files): Add pipe-safer.c.
20205         * modules/fcntl-safer (Files): Add creat-safer.c.
20206
20207 2005-08-27  Jim Meyering  <jim@meyering.net>
20208
20209         * m4/stdlib-safer.m4: New file.  From coreutils.
20210         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
20211         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
20212         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
20213         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
20214         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
20215
20216 2005-08-27  Jim Meyering  <jim@meyering.net>
20217
20218         * lib/fopen-safer.c: Merge minor changes from coreutils.
20219         * lib/dup-safer.c: Likewise.
20220         * lib/fd-safer.c: Likewise.
20221
20222         Merge from coreutils.
20223         * lib/stdio--.h: New file.
20224         * lib/stdlib--.h: New file.
20225         * lib/mkstemp-safer.c: New file.
20226
20227         GNU tar needs these.
20228         * lib/pipe-safer.c: New file.
20229         * lib/creat-safer.c: New file.
20230         * lib/fcntl--.h (creat): Define to creat_safer.
20231         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
20232         * lib/unistd--.h (pipe): Define to pipe_safer.
20233         * lib/unistd-safer.h: Declare pipe_safer.
20234
20235 2005-08-26  Simon Josefsson  <jas@extundo.com>
20236
20237         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
20238         Haible <bruno@clisp.org>.
20239
20240 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
20241
20242         * lib/regex_internal.h: Remove all references to
20243         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
20244         or better.
20245         (bitset_not, bitset_merge, bitset_not_merge):
20246         (bitset_mask, re_string_allocate, re_string_construct):
20247         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
20248         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
20249         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
20250         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
20251         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
20252         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
20253         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
20254         (re_acquire_state_context):
20255         Remove unnecessary forward decls.
20256         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
20257         Put __attribute at function definition,
20258         now that the function decl has been removed.
20259         * lib/regex_internal.c (re_string_peek_byte_case):
20260         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
20261         Likewise.
20262
20263 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
20264
20265         * m4/regex.m4: Add AC_PREREQ(2.50).
20266         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
20267
20268 2005-08-25  Simon Josefsson  <jas@extundo.com>
20269
20270         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
20271         __fsetlocking.
20272
20273 2005-08-25  Simon Josefsson  <jas@extundo.com>
20274
20275         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
20276         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
20277         GLIBC specific code.
20278
20279 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20280
20281         Make regex safe for g++.  This fixes one real bug (an "err"
20282         that should have been "*err").  g++ problem reported by
20283         Sam Steingold.
20284         * lib/regex_internal.h (re_calloc): New macro, consistent with
20285         re_malloc etc.  All callers of calloc changed to use re_calloc.
20286         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
20287         not int.  All callers changed.
20288         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
20289         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
20290         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
20291         (find_recover_state): Change "err" to "*err"; this fixes what
20292         appears to be a real bug.
20293         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
20294         versus int.
20295
20296 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20297
20298         * modules/regex (Depends-on): Add malloc, since the code
20299         assumes that !malloc(0) means failure.
20300
20301 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20302
20303         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
20304
20305         alloca modernization/simplification for regex.
20306         * lib/regex.c: Remove portability cruft for alloca.  This no longer
20307         needs to be at the start of the file, and can be moved into
20308         regex_internal.h and simplified.
20309         * lib/regex_internal.h: Include <alloca.h>.
20310         (__libc_use_alloca) [!defined _LIBC]: New macro.
20311         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
20312         now works outside glibc.
20313
20314 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         * config/srclist.txt: Add glibc bugs 1241, 1245.
20317
20318 2005-08-25  Jim Meyering  <jim@meyering.net>
20319
20320         * lib/open-safer.c: Include <config.h>.
20321         Otherwise, we'd lose LARGEFILE support in any file using
20322         e.g. "fcntl--.h"
20323
20324 2005-08-25  Bruno Haible  <bruno@clisp.org>
20325
20326         * m4/minmax.m4: Require autoconf 2.52.
20327         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
20328         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
20329         alternatives of translit over the alphabet.
20330         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
20331
20332 2005-08-24  Simon Josefsson  <jas@extundo.com>
20333
20334         * tests/test-getpass.c: New file.
20335
20336 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20337
20338         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
20339         for GNU regex features.
20340
20341 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20342
20343         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
20344         * lib/regex.h (regerror): Likewise.
20345
20346         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
20347         requires this.  (The code never needed it.)
20348
20349         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
20350         All uses of recently-renamed identifiers changed to use the new,
20351         POSIX-compliant names.  The code will build and run just fine
20352         without these changes, but it's better to eat our own dog food
20353         and use the standard-conforming names.
20354
20355         * lib/regex.h: Fix a multitude of POSIX name space violations.
20356         These changes have an effect only for programs that define
20357         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
20358         do not change anything for programs compiled in the normal way.
20359         Also, there is no effect on the ABI.
20360
20361         (_REGEX_SOURCE): New macro.
20362         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
20363         defined and _GNU_SOURCE is not; this fixes a name space violation.
20364
20365         Rename the following macros to obey POSIX requirements.
20366         The old names are still visible as macros if _REGEX_SOURCE is defined.
20367         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
20368         RE_BACKSLASH_ESCAPE_IN_LISTS.
20369         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
20370         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
20371         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
20372         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
20373         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
20374         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
20375         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
20376         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
20377         (REG_INTERVALS): renamed from RE_INTERVALS.
20378         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
20379         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
20380         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
20381         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
20382         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
20383         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
20384         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
20385         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
20386         RE_UNMATCHED_RIGHT_PAREN_ORD.
20387         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
20388         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
20389         (REG_DEBUG): renamed from RE_DEBUG.
20390         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
20391         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
20392         unusual, since we can't clash with the POSIX REG_ICASE.
20393         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
20394         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
20395         (REG_NO_SUB): renamed from RE_NO_SUB.
20396         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
20397         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
20398         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
20399         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
20400         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
20401         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
20402         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
20403         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
20404         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
20405         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
20406         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
20407         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
20408         RE_SYNTAX_POSIX_MINIMAL_BASIC.
20409         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
20410         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
20411         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
20412         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
20413         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
20414         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
20415         (REG_FIXED): Renamed from REGS_FIXED.
20416         (REG_NREGS): Renamed from RE_NREGS.
20417
20418         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
20419         of other REG_* macros, since POSIX says the user is allowed to
20420         #undef these macros selectively.
20421
20422         (reg_errcode_t): Update comment stating what other tables need
20423         to be consistent.
20424
20425         Rename the following enum values to obey POSIX requirements.
20426         The old names are still visible as macros.
20427         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
20428         is not defined, since GNU is supposed to be a superset of POSIX as
20429         much as possible, and since we want reg_errcode_t to be a signed
20430         type for implementation consistency.
20431         (_REG_NOERROR): Renamed from REG_NOERROR.
20432         (_REG_NOMATCH): Renamed from REG_NOMATCH.
20433         (_REG_BADPAT): Renamed from REG_BADPAT.
20434         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
20435         (_REG_ECTYPE): Renamed from REG_ECTYPE.
20436         (_REG_EESCAPE): Renamed from REG_EESCAPE.
20437         (_REG_ESUBREG): Renamed from REG_ESUBREG.
20438         (_REG_EBRACK): Renamed from REG_EBRACK.
20439         (_REG_EPAREN): Renamed from REG_EPAREN.
20440         (_REG_EBRACE): Renamed from REG_EBRACE.
20441         (_REG_BADBR): Renamed from REG_BADBR.
20442         (_REG_ERANGE): Renamed from REG_ERANGE.
20443         (_REG_ESPACE): Renamed from REG_ESPACE.
20444         (_REG_BADRPT): Renamed from REG_BADRPT.
20445         (_REG_EEND): Renamed from REG_EEND.
20446         (_REG_ESIZE): Renamed from REG_ESIZE.
20447         (_REG_ERPAREN): Renamed from REG_ERPAREN.
20448         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
20449         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
20450         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
20451         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
20452
20453         (_REG_RE_NAME, _REG_RM_NAME): New macros.
20454         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
20455         changed.  But support the old name if the new one is not defined
20456         and if _REGEX_SOURCE.
20457
20458         Change the following member names in struct re_pattern_buffer.
20459         The old names are still supported if !_REGEX_SOURCE.
20460         The new names are always supported, regardless of _REGEX_SOURCE.
20461         (re_buffer): Renamed from buffer.
20462         (re_allocated): Renamed from allocated.
20463         (re_used): Renamed from used.
20464         (re_syntax): Renamed from syntax.
20465         (re_fastmap): Renamed from fastmap.
20466         (re_translate): Renamed from translate.
20467         (re_can_be_null): Renamed from can_be_null.
20468         (re_regs_allocated): Renamed from regs_allocated.
20469         (re_fastmap_accurate): Renamed from fastmap_accurate.
20470         (re_no_sub): Renamed from no_sub.
20471         (re_not_bol): Renamed from not_bol.
20472         (re_not_eol): Renamed from not_eol.
20473         (re_newline_anchor): Renamed from newline_anchor.
20474
20475         Change the following member names in struct re_registers.
20476         The old names are still supported if !_REGEX_SOURCE.
20477         The new names are always supported, regardless of _REGEX_SOURCE.
20478         (rm_num_regs): Renamed from num_regs.
20479         (rm_start): Renamed from start.
20480         (rm_end): Renamed from end.
20481
20482         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
20483         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
20484         Prepend __ to parameter names.
20485
20486         Undo yesterday's changes.
20487
20488 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20489
20490         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
20491         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
20492         lib/regex.c.
20493
20494 2005-08-24  Jim Meyering  <jim@meyering.net>
20495
20496         Sync from coreutils.
20497         * m4/fcntl-safer.m4: New file.
20498
20499         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
20500         and object files for this module.
20501
20502 2005-08-24  Jim Meyering  <jim@meyering.net>
20503
20504         Sync from coreutils.
20505         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
20506
20507 2005-08-24  Jim Meyering  <jim@meyering.net>
20508
20509         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
20510         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
20511
20512 2005-08-24  Jim Meyering  <jim@meyering.net>
20513
20514         * modules/fcntl-safer: New module.
20515         * modules/fts (Depends-on): Add fcntl-safer.
20516         * MODULES.html.sh (File descriptor based Input/Output):
20517         Add fcntl-safer.
20518
20519 2005-08-24  Bruno Haible  <bruno@clisp.org>
20520
20521         Support for unit test modules.
20522         * modules/README: Mention tests modules.
20523         * modules/TEMPLATE-TESTS: New file.
20524         * gnulib-tool: New options --extract-tests-module, --with-tests and
20525         --tests-base (unused for the moment).
20526         (testsbase, inctests): New variables.
20527         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
20528         (func_verify_module): Exclude TEMPLATE-TESTS.
20529         (func_verify_nontests_module, func_verify_tests_module): New functions.
20530         (func_get_dependencies): Add implicit dependency for tests modules.
20531         (func_get_tests_module): New function.
20532         (func_modules_transitive_closure): When --with-tests was specified,
20533         include the unit tests as well, unless explicitly avoided.
20534         (func_emit_lib_Makefile_am): Ignore the tests modules here.
20535         (func_emit_tests_Makefile_am): New function.
20536         (func_create_testdir): When --with-tests was specified, emit a
20537         tests/ directory.
20538         * MODULES.html.sh (Future developments): Update.
20539
20540 2005-08-24  Bruno Haible  <bruno@clisp.org>
20541
20542         * modules/tls-tests: New file.
20543         * tests/test-tls.c: New file, from GNU gettext.
20544
20545 2005-08-24  Bruno Haible  <bruno@clisp.org>
20546
20547         * modules/lock-tests: New file.
20548         * tests/test-lock.c: New file, from GNU gettext.
20549
20550 2005-08-24  Bruno Haible  <bruno@clisp.org>
20551
20552         * lib/lock.h: Add multiple inclusion guard.
20553         * lib/tls.h: Add multiple inclusion guard.
20554
20555 2005-08-24  Bruno Haible  <bruno@clisp.org>
20556
20557         * gnulib-tool: Add support for the --aux-dir option to
20558         --create-testdir, --create-megatestdir, --test, --megatest.
20559         (func_create_testdir, func_create_megatestdir): Optionally emit a
20560         AC_CONFIG_AUX_DIR directive.
20561         (create-testdir, create-megatestdir, test, megatest): Provide a
20562         default value for $auxdir.
20563
20564 2005-08-24  Bruno Haible  <bruno@clisp.org>
20565
20566         * gnulib-tool (import): Use compound statement instead of subshell
20567         where possible.
20568
20569 2005-08-24  Bruno Haible  <bruno@clisp.org>
20570
20571         * gnulib-tool (import): Change --aux-dir default to "build-aux".
20572
20573 2005-08-24  Bruno Haible  <bruno@clisp.org>
20574
20575         * gnulib-tool (func_version): Update.
20576
20577 2005-08-24  Bruno Haible  <bruno@clisp.org>
20578
20579         * gnulib-tool (func_import, func_create_testdir,
20580         func_create_megatestdir): Quote all autoconf macro arguments.
20581
20582 2005-08-24  Bruno Haible  <bruno@clisp.org>
20583
20584         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
20585         option --force, because --force causes the aclocal.m4 of each
20586         subdirectory to be newer than the corresponding config.h.in.
20587
20588 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20589
20590         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
20591         All contents moved to gl_REGEX.
20592         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
20593         assume that it does.
20594
20595 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20596
20597         * lib/regex.h (REG_NOSYS)
20598         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
20599         Define, since POSIX requires it as of 2001.
20600         (_REG_ENOSYS)
20601         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
20602         New private symbol, used to keep the enum signed in all cases.
20603         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
20604         Youngman in
20605         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
20606
20607         * lib/regex_internal.c (re_string_skip_chars, register_state):
20608         (calc_state_hash):
20609         Remove forward decls; no longer needed now that we use prototypes.
20610         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
20611         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
20612         (clean_state_log_if_needed): Likewise.
20613
20614 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20615
20616         * config/srclist.txt: Add glibc bugs 1231-1233.
20617
20618 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         Fix problems reported by Sam Steingold in
20621         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
20622         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
20623         assumed that reg_errcode_t is a signed type, which is not
20624         necessarily true if _XOPEN_SOURCE is not defined.
20625         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
20626         since some compilers warn about it otherwise.
20627
20628 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
20631         (init_word_char, create_initial_state, duplicate_node_closure):
20632         (fetch_token, peek_token_bracket, build_range_exp):
20633         (build_collating_symbol): Remove forward decls; no longer needed
20634         now that we use prototypes.
20635
20636         * lib/regcomp.c:
20637         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
20638         (re_compile_fastmap_iter, regcomp, regerror, regfree):
20639         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
20640         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
20641         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
20642         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
20643         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
20644         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
20645         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
20646         (build_range_exp, build_collating_symbol, parse_bracket_exp):
20647         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
20648         (build_charclass, build_charclass_op, fetch_number, create_tree):
20649         (create_token_tree, mark_opt_subexp, duplicate_tree):
20650         Use prototypes rather than old-style definitions.
20651
20652         * lib/regex_internal.c:
20653         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
20654         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
20655         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
20656         (re_string_reconstruct, re_string_peek_byte_case):
20657         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
20658         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
20659         (re_node_set_init_copy, re_node_set_add_intersect):
20660         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
20661         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
20662         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
20663         (re_acquire_state, re_acquire_state_context, register_state):
20664         (create_ci_newstate, create_cd_newstate, free_state):
20665         Likewise.
20666         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
20667         re_search_2):
20668         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
20669         (re_search_internal, prune_impossible_nodes):
20670         (acquire_init_state_context, check_matching, static):
20671         (check_halt_node_context, check_halt_state_context, proceed_next_node):
20672         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
20673         (update_regs, sift_states_backward, build_sifted_states):
20674         (clean_state_log_if_needed, merge_state_array):
20675         (update_cur_sifted_state, add_epsilon_src_nodes):
20676         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
20677         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
20678         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
20679         (find_recover_state, check_subexp_matching_top, transit_state_mb):
20680         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
20681         (check_arrival, check_arrival_add_next_nodes):
20682         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
20683         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
20684         (check_node_accept_bytes, check_node_accept, extend_buffers):
20685         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
20686         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
20687         (sift_ctx_init):
20688         Likewise.
20689
20690         * lib/regex_internal.h:
20691         (re_string_allocate, re_string_construct, re_string_reconstruct):
20692         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
20693         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
20694         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
20695         (re_string_context_at, re_string_peek_byte_case):
20696         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
20697         is defined, since we now use prototypes always.
20698
20699         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
20700         C89 or better.  All uses removed.
20701
20702 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         * config/srclist.txt: Add glibc bugs 1220-1227.
20705
20706 2005-08-20  Jim Meyering  <jim@meyering.net>
20707
20708         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
20709         of unused local, dfa.
20710
20711 2005-08-20  Bruno Haible  <bruno@clisp.org>
20712
20713         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
20714
20715 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20716
20717         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
20718         (re_node_set_insert_last, re_dfa_add_node):
20719         Rename local variables to avoid GCC shadowing warnings.
20720
20721 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20722
20723         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
20724         [defined lint]: Suppress bogus uninitialized-variable warnings.
20725
20726         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
20727         and let the caller return REG_ESPACE if out of space.  This
20728         removes an uninitialied-variable warning with GCC 4.0.1, and also
20729         avoids taking the address of a local variable.  All callers
20730         changed.
20731
20732 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20733
20734         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
20735         $LIBCSRC/posix/regexec.c.
20736         Add glibc bug 1217 for regcomp.c.
20737
20738 2005-08-19  Jim Meyering  <jim@meyering.net>
20739
20740         * lib/regexec.c (proceed_next_node): Redo local variables to
20741         avoid GCC shadowing warnings.
20742
20743 2005-08-18  Bruno Haible  <bruno@clisp.org>
20744
20745         * lib/strstr.c (strstr): Fix return value in multibyte case.
20746         * lib/strcasestr.c (strcasestr): Likewise.
20747
20748 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20749
20750         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
20751
20752 2005-08-17  Jim Meyering  <jim@meyering.net>
20753
20754         Make the %s format (seconds since the epoch) work for a negative
20755         number and when used with a zero-padded field width, e.g. %015s.
20756
20757         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
20758         label so that it precedes the code to set `digits'.  Otherwise,
20759         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
20760         print `00-22'.  Now, it prints `-0022', as it should.
20761
20762 2005-08-17  Bruno Haible  <bruno@clisp.org>
20763
20764         * modules/strstr (Files): Add m4/mbrtowc.m4.
20765         (Depends-on): Add mbuiter.
20766
20767 2005-08-17  Bruno Haible  <bruno@clisp.org>
20768
20769         * modules/strcasestr: New file.
20770         * MODULES.html.sh (String handling, based on ANSI C 89): Add
20771         strcasestr.
20772
20773 2005-08-17  Bruno Haible  <bruno@clisp.org>
20774
20775         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
20776
20777 2005-08-17  Bruno Haible  <bruno@clisp.org>
20778
20779         * modules/mbuiter: New file.
20780         * MODULES.html.sh (Extended multibyte and wide character utilities):
20781         Add mbuiter.
20782
20783 2005-08-17  Bruno Haible  <bruno@clisp.org>
20784
20785         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
20786         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
20787
20788 2005-08-17  Bruno Haible  <bruno@clisp.org>
20789
20790         * m4/strcasestr.m4: New file.
20791
20792 2005-08-17  Bruno Haible  <bruno@clisp.org>
20793
20794         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
20795         * lib/strstr.c: Completely rewritten, with multibyte locale support.
20796
20797 2005-08-17  Bruno Haible  <bruno@clisp.org>
20798
20799         * lib/strcasestr.h: New file.
20800         * lib/strcasestr.c: New file.
20801
20802 2005-08-17  Bruno Haible  <bruno@clisp.org>
20803
20804         * lib/strcasecmp.c: Use mbuiter.h.
20805
20806 2005-08-17  Bruno Haible  <bruno@clisp.org>
20807
20808         * lib/mbuiter.h: New file.
20809
20810 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20811
20812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
20813         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
20814         and gl_GETOPT are both invoked via different paths (as happens
20815         with GNU tar CVS because it uses both argp and getopt), the former
20816         wins.
20817
20818 2005-08-16  Bruno Haible  <bruno@clisp.org>
20819
20820         * modules/tls: New file.
20821         * MODULES.html.sh (Multithreading): Add tls.
20822
20823 2005-08-16  Bruno Haible  <bruno@clisp.org>
20824
20825         * modules/strnlen1: New file.
20826         * MODULES.html.sh (String handling): Add strnlen1.
20827
20828 2005-08-16  Bruno Haible  <bruno@clisp.org>
20829
20830         * modules/strcase (Files): Add m4/mbrtowc.m4.
20831         (Depends-on): Add strnlen1, mbchar.
20832
20833 2005-08-16  Bruno Haible  <bruno@clisp.org>
20834
20835         * modules/mbiter: New file.
20836         * MODULES.html.sh (Extended multibyte and wide character utilities):
20837         Add mbiter.
20838
20839 2005-08-16  Bruno Haible  <bruno@clisp.org>
20840
20841         * modules/mbfile: New file.
20842         * MODULES.html.sh (Extended multibyte and wide character utilities):
20843         Add mbfile.
20844
20845 2005-08-16  Bruno Haible  <bruno@clisp.org>
20846
20847         * modules/mbchar: New file.
20848         * MODULES.html.sh (Extended multibyte and wide character utilities):
20849         New section.
20850
20851 2005-08-16  Bruno Haible  <bruno@clisp.org>
20852
20853         * m4/tls.m4: New file, from GNU gettext.
20854
20855 2005-08-16  Bruno Haible  <bruno@clisp.org>
20856
20857         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
20858         always.
20859         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
20860
20861 2005-08-16  Bruno Haible  <bruno@clisp.org>
20862
20863         * m4/mbiter.m4: New file.
20864
20865 2005-08-16  Bruno Haible  <bruno@clisp.org>
20866
20867         * m4/mbfile.m4: New file.
20868
20869 2005-08-16  Bruno Haible  <bruno@clisp.org>
20870
20871         * m4/mbchar.m4: New file.
20872
20873 2005-08-16  Bruno Haible  <bruno@clisp.org>
20874
20875         * lib/tls.h: New file, from GNU gettext.
20876         * lib/tls.c: New file, from GNU gettext.
20877
20878 2005-08-16  Bruno Haible  <bruno@clisp.org>
20879
20880         * lib/strnlen1.h: New file.
20881         * lib/strnlen1.c: New file.
20882
20883 2005-08-16  Bruno Haible  <bruno@clisp.org>
20884
20885         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
20886         (mbi_init): Update.
20887         (mbi_avail, mbi_advance): Let the iteration end before the terminating
20888         NUL byte, not after it.
20889
20890 2005-08-16  Bruno Haible  <bruno@clisp.org>
20891
20892         * lib/strcase.h (strcasecmp): Add note in comments.
20893         * lib/strncasecmp.c: Use code from strcasecmp.c.
20894         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
20895         (strcasecmp): Work correctly in multibyte locales.
20896
20897 2005-08-16  Bruno Haible  <bruno@clisp.org>
20898
20899         * lib/mbiter.h: New file.
20900
20901 2005-08-16  Bruno Haible  <bruno@clisp.org>
20902
20903         * lib/mbfile.h: New file.
20904
20905 2005-08-16  Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/mbchar.h: New file.
20908         * lib/mbchar.c: New file.
20909
20910 2005-08-16  Bruno Haible  <bruno@clisp.org>
20911
20912         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
20913         the valid ones. Makes the comparison operations transitive:
20914         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
20915         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
20916
20917 2005-08-15  Simon Josefsson  <jas@extundo.com>
20918
20919         * modules/ssize_t (License): Change to 'unlimited'.
20920
20921         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
20922
20923 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20924
20925         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
20926         Add comments for each pending glibc patch.
20927
20928 2005-08-15  Bruno Haible  <bruno@clisp.org>
20929
20930         * lib/regex.h (__restrict_arr): Don't define to __restrict if
20931         __cplusplus is defined.
20932
20933 2005-08-14  Jim Meyering  <jim@meyering.net>
20934
20935         Sync from coreutils.
20936
20937         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
20938         Use the hash-table-based cycle-detection code not just when
20939         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
20940         Reported by James Youngman in
20941         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
20942         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
20943         FTS_TIGHT_CYCLE_CHECK.
20944         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
20945         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
20946         once again.
20947         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
20948         * lib/fts.c (fd_safer): Remove decl.
20949         Include fcntl--.h rather than unistd-safer.h
20950         (fts_safe_changedir): Don't call fd_safer; no longer needed
20951         now that we include fcntl--.h.
20952
20953 2005-08-12  Simon Josefsson  <jas@extundo.com>
20954
20955         * modules/getndelim2: Use ssize_t module.
20956         * modules/getnline: Likewise.
20957         * modules/safe-read: Likewise.
20958         * modules/xreadlink: Likewise.
20959
20960         * modules/ssize_t: New file.
20961
20962 2005-08-12  Simon Josefsson  <jas@extundo.com>
20963
20964         * m4/readline.m4: Look for termcap, curses or ncurses if required.
20965
20966 2005-08-12  Simon Josefsson  <jas@extundo.com>
20967
20968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20969         ssize_t.
20970
20971 2005-08-12  Simon Josefsson  <jas@extundo.com>
20972
20973         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
20974         readline, getdelim and check_version.
20975         (Support for systems lacking ISO C 99: Sizes of integer types):
20976         Add size_max.
20977
20978 2005-08-12  Bruno Haible  <bruno@clisp.org>
20979
20980         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
20981
20982 2005-08-11  Simon Josefsson  <jas@extundo.com>
20983
20984         * modules/readline: New file.
20985
20986         * modules/strnlen (Files): Add strnlen.h.
20987
20988 2005-08-11  Simon Josefsson  <jas@extundo.com>
20989
20990         * m4/readline.m4: New file.
20991
20992 2005-08-11  Simon Josefsson  <jas@extundo.com>
20993
20994         * lib/readline.h, readline.c: New file.
20995
20996 2005-08-11  Simon Josefsson  <jas@extundo.com>
20997
20998         * doc/gnulib.texi (Initial import, Finishing touches): Mention
20999         gl_AVOID.
21000
21001 2005-08-11  Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/strnlen.h (strnlen): Change parameter name to match comment.
21004
21005 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
21006
21007         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
21008
21009 2005-08-10  Simon Josefsson  <jas@extundo.com>
21010
21011         * tests/test-iconvme.c: New file.
21012
21013 2005-08-10  Simon Josefsson  <jas@extundo.com>
21014
21015         * m4/strnlen.m4: New file.
21016
21017         * m4/strndup.m4: Don't check for strnlen declaration, done in
21018         strnlen.m4.
21019
21020 2005-08-10  Simon Josefsson  <jas@extundo.com>
21021
21022         * lib/strndup.c: Use strnlen.h.
21023
21024         * lib/strnlen.h: New file.
21025
21026 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21027
21028         * README: Typos.
21029
21030 2005-08-02  Simon Josefsson  <jas@extundo.com>
21031
21032         * modules/readline: New file.
21033
21034 2005-08-02  Simon Josefsson  <jas@extundo.com>
21035
21036         * modules/getdelim: New file.
21037
21038         * modules/getline: Rewrite, don't use getndelim2.
21039
21040 2005-08-02  Simon Josefsson  <jas@extundo.com>
21041
21042         * m4/getline.m4: Separate out getdelim stuff into separate module.
21043
21044         * m4/getdelim.m4: New file.
21045
21046 2005-08-02  Simon Josefsson  <jas@extundo.com>
21047
21048         * lib/getline.h, getline.c: Rewrite.
21049
21050         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
21051
21052 2005-07-31  Bruno Haible  <bruno@clisp.org>
21053
21054         * lib/lock.h (gl_lock_initializer): New macro.
21055         (gl_lock_define_initialized): Use it.
21056         (gl_rwlock_initializer): New macro.
21057         (gl_rwlock_define_initialized): Use it.
21058         (gl_recursive_lock_initializer): New macro.
21059         (gl_recursive_lock_define_initialized): Use it.
21060
21061 2005-07-30  Karl Berry  <karl@gnu.org>
21062
21063         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
21064         Report from Ben Pfaff, regarding getopt.
21065
21066 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21067
21068         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
21069         normal way.
21070         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
21071         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
21072         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
21073         (gl_GETOPT): Use the new macros.  Most of the implementation
21074         is moved to the new macros.  This is for programs like Emacs
21075         that don't want all the functionality of gl_GETOPT.
21076
21077 2005-07-26  Bruno Haible  <bruno@clisp.org>
21078
21079         * m4/lock.m4: Update from GNU gettext.
21080
21081 2005-07-26  Bruno Haible  <bruno@clisp.org>
21082
21083         * lib/lock.h: Update from GNU gettext.
21084         * lib/lock.c: Update from GNU gettext.
21085
21086 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
21087
21088         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
21089         obsolescent AC_TRY_RUN.  Include the default includes files, for
21090         'exit'.
21091
21092 2005-07-24  Bruno Haible  <bruno@clisp.org>
21093
21094         * modules/visibility: New file.
21095         * MODULES.html.sh (Misc): Add visibility.
21096
21097 2005-07-24  Bruno Haible  <bruno@clisp.org>
21098
21099         * m4/visibility.m4: New file.
21100
21101 2005-07-24  Bruno Haible  <bruno@clisp.org>
21102
21103         * doc/visibility.texi: New file.
21104
21105 2005-07-22  Bruno Haible  <bruno@clisp.org>
21106
21107         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
21108         $(ALLOCA_H), redundant through BUILT_SOURCES.
21109         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
21110         redundant through BUILT_SOURCES.
21111         * modules/byteswap (Makefile.am): Remove explicit dependency on
21112         $(BYTESWAP_H), redundant through BUILT_SOURCES.
21113         * modules/fnmatch (Makefile.am): Remove explicit dependency on
21114         $(FNMATCH_H), redundant through BUILT_SOURCES.
21115         * modules/getopt (Makefile.am): Remove explicit dependency on
21116         $(GETOPT_H), redundant through BUILT_SOURCES.
21117         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
21118         redundant through BUILT_SOURCES.
21119         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
21120         redundant through BUILT_SOURCES.
21121         * modules/stdbool (Makefile.am): Remove explicit dependency on
21122         $(STDBOOL_H), redundant through BUILT_SOURCES.
21123         * modules/stdint (Makefile.am): Remove explicit dependency on
21124         $(STDINT_H), redundant through BUILT_SOURCES.
21125         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
21126         Remove explicit dependency on $(SYSEXITS_H).
21127         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
21128
21129 2005-07-18  Simon Josefsson  <jas@extundo.com>
21130
21131         * lib/check-version.c (check_version): Accept identical versions too.
21132
21133 2005-07-18  Bruno Haible  <bruno@clisp.org>
21134
21135         * modules/lock: New file.
21136         * MODULES.html.sh (Multithreading): New section.
21137
21138 2005-07-18  Bruno Haible  <bruno@clisp.org>
21139
21140         * m4/lock.m4: New file, from GNU gettext.
21141
21142 2005-07-18  Bruno Haible  <bruno@clisp.org>
21143
21144         * lib/lock.h: New file, from GNU gettext.
21145         * lib/lock.c: New file, from GNU gettext.
21146
21147 2005-07-18  Bruno Haible  <bruno@clisp.org>
21148
21149         * lib/lock.h (gl_once_t): New type.
21150         (gl_once_define, gl_once): New macros.
21151         * lib/lock.c (fresh_once): New variable.
21152         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
21153         functions.
21154
21155 2005-07-16  Simon Josefsson  <jas@extundo.com>
21156
21157         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
21158         workaround, suggested by Bruno.
21159
21160 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         * modules/xalloc (Depends-on): Add xalloc-die.
21163         * modules/xvasprintf (Depends-on): Add xalloc-die.
21164
21165 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
21168         with a minor change.
21169
21170 2005-07-15  Bruno Haible  <bruno@clisp.org>
21171
21172         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
21173         When using lib/poll.c, define poll as rpl_poll.
21174
21175 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
21176
21177         * modules/argp (Depends-on): Remove unlocked-io.
21178
21179 2005-07-14  Derek Price  <derek@ximbiot.com>
21180
21181         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
21182         for glob symlink bug.
21183
21184 2005-07-14  Bruno Haible  <bruno@clisp.org>
21185
21186         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
21187         Instead, test for *_unlocked function declarations directly.
21188
21189 2005-07-11  Simon Josefsson  <jas@extundo.com>
21190
21191         * modules/size_max: New file.
21192
21193         * modules/xsize: Depend on size_max module for size_max.m4.
21194
21195 2005-07-11  Simon Josefsson  <jas@extundo.com>
21196
21197         * lib/size_max.h: New file.
21198
21199 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21200
21201         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
21202         copyright symbol and the year.
21203         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
21204         (version_etc_va): Use parameterized copyright notice.
21205         Reword to conform to the current GNU coding standards.
21206
21207 2005-07-11  Karl Berry  <karl@gnu.org>
21208
21209         * doc/gnulib.texi (Quoting): new node.
21210         (Initial import): more info, from Patrice.
21211
21212 2005-07-11  Bruno Haible  <bruno@clisp.org>
21213
21214         * gnulib-tool (func_usage): Document option --avoid.
21215         (Command line options): Handle --avoid.
21216         (func_acceptable): New function.
21217         (func_modules_transitive_closure): Use it.
21218
21219 2005-07-11  Bruno Haible  <bruno@clisp.org>
21220
21221         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
21222         Reported by Jim Meyering.
21223
21224 2005-07-10  Bruno Haible  <bruno@clisp.org>
21225
21226         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
21227         Needed when size_t is smaller than 'unsigned int'.
21228         Reported by Paul Eggert.
21229
21230 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21231
21232         * modules/argp (Depends-on): Add unlocked-io
21233
21234 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21235
21236         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
21237         block of defines.
21238
21239 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21240
21241         * config/srclist.txt: Comment out regcomp.c, since we have a porting
21242         fix now.
21243
21244 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
21245         and Paul Eggert  <eggert@cs.ucla.edu>
21246
21247         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
21248         in wint_t, not wchar_t.  Remove now-unnecessary cast.
21249
21250 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21251
21252         * modules/regex (Files): Add lib/regex_internal.c,
21253         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
21254         (Depends-on): Add extensions.
21255         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
21256
21257 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21258
21259         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
21260         pathconf.
21261         * m4/same.m4 (gl_SAME): Likewise.
21262         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
21263
21264         * m4/regex.m4: Adjust to new libc regex implementation.
21265         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
21266         all the .c and .h parts of (the new) regex.
21267         Quote the m4 stuff better.
21268         Check for RE_ICASE bug of old gnulib.
21269         Check for REG_STARTEND of recent libc.
21270         Rename local variables from jm_* to gl_*.
21271         Quote operand of "test -f".
21272         Say "recent enough" version of libc, not "version 2".
21273         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
21274         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
21275         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
21276         Remove check for btowc, isascii.
21277         Require AM_LANGINFO_CODESET.
21278
21279 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21280
21281         * lib/regex.c, regex.h: Sync from libc.
21282         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
21283         * lib/regexec.c:
21284         New files, synced from libc, except that regex_internal.h
21285         currently has a small porting fix.
21286
21287 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21288
21289         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
21290         regex_internal.c, regexec.c.
21291         Add regex_internal.h too, but as a comment, since the libc version
21292         is currently broken in gnulib mode.
21293
21294 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         Support programs like Emacs that use gnulib but not gettext.
21297         * MODULES.html.sh (Internationalization functions): Add gettext-h.
21298         * modules/gettext-h: New file.
21299         * modules/gettext (Files): Remove lib/gettext.h.
21300         (Depends-on): Add gettext-h.
21301         (Makefile.am): Remove lib_SOURCES.
21302         * modules/argmatch, modules/c-stack, modules/closeout:
21303         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
21304         * modules/execute, modules/file-type, modules/getaddrinfo:
21305         * modules/getopt, modules/human, modules/javacomp:
21306         * modules/javaexec, modules/mkdir-p, modules/obstack:
21307         * modules/openat, modules/pagealign_alloc, modules/pipe:
21308         * modules/quotearg, modules/regex, modules/rpmatch:
21309         * modules/unicodeio, modules/userspec, modules/version-etc:
21310         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
21311         * modules/xsetenv:
21312         Depend on gettext-h, not gettext.
21313
21314 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21315
21316         * gnulib-tool (func_import): Add support for 'public domain' license.
21317         * modules/alloca, modules/atexit, modules/memmove:
21318         Now public domain, not GPL.
21319         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
21320         * modules/realloc, modules/strerror, modules/strtod:
21321         Now LGPL, not GPL.
21322
21323 2005-07-05  Bruno Haible  <bruno@clisp.org>
21324
21325         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
21326         autoconf CVS. Needed for mingw.
21327
21328 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21329
21330         Remove the dependency of the strftime module on the tzset module.
21331         * modules/strftime (Depends-on): Remove dependency on tzset.
21332
21333 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21334
21335         Remove the dependency of the strftime module on the tzset module.
21336         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
21337         gl_FUNC_TZSET_CLOBBER.
21338
21339 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21340
21341         Remove the dependency of the strftime module on the tzset module.
21342         * lib/strftime.c (my_strftime)
21343         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
21344         Copy the input structure, to work around some of the bug with
21345         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
21346         Solaris releases, you should also use the tzset module, but we won't
21347         require it as a dependency any more since we don't want LGPLed code
21348         to depend on GPLed code.
21349
21350 2005-07-02  Jim Meyering  <jim@meyering.net>
21351
21352         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
21353         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
21354         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
21355         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
21356
21357 2005-07-02  Jim Meyering  <jim@meyering.net>
21358
21359         * lib/backupfile.c (backup_args): Change a `0' to NULL.
21360
21361 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21362
21363         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
21364         declares only 'struct timespec;' (!).
21365
21366 2005-07-01  Jim Meyering  <jim@meyering.net>
21367
21368         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
21369         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
21370         * lib/save-cwd.c, tempname.c:
21371         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
21372         and don't include <sys/file.h>).
21373
21374 2005-06-29  Jim Meyering  <jim@meyering.net>
21375
21376         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
21377         type name.  Use the variable name instead.
21378         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
21379         Likewise.
21380
21381 2005-06-28  Simon Josefsson  <jas@extundo.com>
21382
21383         * modules/check-version (Files): Add check-version.m4.
21384
21385 2005-06-28  Simon Josefsson  <jas@extundo.com>
21386
21387         * m4/check-version.m4: New file, suggested by Jim Meyering
21388         <jim@meyering.net>.
21389
21390 2005-06-28  Simon Josefsson  <jas@extundo.com>
21391
21392         * lib/check-version.h, lib/check-version.c: New files.
21393
21394 2005-06-28  Simon Josefsson  <jas@extundo.com>
21395
21396         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
21397         collision with global variable.  Better indentation.  Don't
21398         increment buffer pointer beyond buffer end.  Based on comments
21399         from Paul Eggert <eggert@cs.ucla.edu>.
21400
21401         * lib/base64.h: Indent.
21402
21403 2005-06-28  Simon Josefsson  <jas@extundo.com>
21404
21405         * doc/gnulib.texi (Library version handling): New section.
21406
21407 2005-06-28  Jim Meyering  <jim@meyering.net>
21408
21409         * check-module (find_included_lib_files): Hard-code another
21410         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
21411         but modules/fts-lgpl (correctly) does not list those files.
21412
21413         * modules/canonicalize (Files): Add lib/pathmax.h.
21414
21415 2005-06-25  Simon Josefsson  <jas@extundo.com>
21416
21417         * modules/check-version: New file.
21418
21419 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21420
21421         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
21422         initializer of struct addrinfo, as an indication that we don't
21423         care how many members the structure has.
21424
21425 2005-06-24  Derek Price  <derek@ximbiot.com>
21426         and Bruno Haible  <bruno@clisp.org>
21427
21428         Remove stat module & update lstat.
21429         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
21430         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21431         * m4/stat.m4: Remove this file.
21432
21433 2005-06-24  Derek Price  <derek@ximbiot.com>
21434         and Bruno Haible  <bruno@clisp.org>
21435
21436         Remove stat module & update lstat.
21437         * lib/stat.c: Remove this file...
21438         (slash_aware_lstat): ...moving this content and its support...
21439         * lib/lstat.c (rpl_lstat): ...into here.
21440         * lib/lstat.h: New file.
21441
21442 2005-06-24  Derek Price  <derek@ximbiot.com>
21443         and Bruno Haible  <bruno@clisp.org>
21444
21445         Remove stat module & update lstat.
21446         * config/srclist.txt (libc sources): Remove stat.
21447
21448 2005-06-24  Derek Price  <derek@ximbiot.com>
21449         and Bruno Haible  <bruno@clisp.org>
21450
21451         Remove stat module & update lstat.
21452         * MODULES.html.sh (stat): Remove.
21453         * MODULES.html: Regenerated.
21454         * modules/lstat (Description): Correct function name.
21455         (Files): Add "lstat.h".
21456         (Depends-on): Remove stat, add xalloc, stat-macros.
21457         * modules/stat: Remove this file.
21458         (Include): Add "lstat.h", remove <sys/stat.h>.
21459
21460 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21461
21462         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
21463         (ranged_convert): Don't save conversion in a temporary struct.
21464         This causes a warning with GCC 4.0.0, and anyway in the typical
21465         case it's not worth the extra 100 bytes or so of code.
21466         (ranged_convert, __mktime_internal): When calling a function via a
21467         pointer P, use P () rather than (*P) (), as we now assume C89 or
21468         better.
21469
21470 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21471
21472         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
21473         "who -r" failed to give output.  Problem reported by Tim Waugh.
21474
21475         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
21476         (xcalloc): Use it to avoid needless tests.
21477         Problem reported by Jim Meyering.
21478
21479 2005-06-20  Derek Price  <derek@ximbiot.com>
21480
21481         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
21482         unnecessary for Autoconfs > 2.59c.
21483
21484 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21485
21486         * lib/argp.h (__option_is_short): Check upper limit of
21487         __key. Isprint() requires its argument to have the value
21488         of an unsigned char or EOF.
21489
21490 2005-06-16  Jim Meyering  <jim@meyering.net>
21491
21492         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
21493         when either N or S is zero.
21494
21495 2005-06-16  Derek Price  <derek@ximbiot.com>
21496
21497         * m4/bison.m4: Declare YACC & YFLAGS precious.
21498
21499 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
21500
21501         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
21502         multibyte string or pattern, fall back on unibyte matching.
21503         Problem reported by James Youngman.
21504
21505 2005-06-08  Bruno Haible  <bruno@clisp.org>
21506
21507         * modules/csharpcomp: New file.
21508         * MODULES.html.sh (C#): Add csharpcomp.
21509
21510 2005-06-08  Bruno Haible  <bruno@clisp.org>
21511
21512         * m4/csharpcomp.m4: New file, from GNU gettext.
21513
21514 2005-06-08  Bruno Haible  <bruno@clisp.org>
21515
21516         * lib/csharpcomp.h: New file, from GNU gettext.
21517         * lib/csharpcomp.c: New file, from GNU gettext.
21518         * lib/csharpcomp.sh.in: New file, from GNU gettext.
21519
21520 2005-06-08  Bruno Haible  <bruno@clisp.org>
21521
21522         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
21523         warning on mingw.
21524
21525 2005-06-07  Derek Price  <derek@ximbiot.com>
21526
21527         Sync from CVS.
21528         * lib/glob_.h: Indent nested #ifdef.
21529
21530 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21531
21532         Sync from coreutils.
21533         Use "file name" when talking about file names, instead of "filename"
21534         or "path", as per the GNU coding standards.
21535         * lib/mkdir-p.c: Renamed from makepath.c.
21536         (make_dir_parents): Renamed from make_path.  All callers changed.
21537         * lib/mkdir-p.h: Likewise.  All includers changed.
21538         * lib/filenamecat.c: Renamed from path-concat.c.
21539         (file_name_concat): Renamed from path_concat.  All callers changed.
21540         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
21541         * lib/filenamecat.h: Likewise.  All includers changed.
21542         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
21543         in comments or local variable names.
21544         * lib/basename.c: Likewise.
21545         * lib/canonicalize.c, canonicalize.h: Likewise.
21546         * lib/dirname.c, dirname.h: Likewise.
21547         * lib/euidaccess.c: Likewise.
21548         * lib/exclude.c: Likewise
21549         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
21550         * lib/fsusage.c, fsuage.h: Likewise.
21551         * lib/fts.c, fts_.h: Likewise.
21552         * lib/getcwd.c: Likewise.
21553         * lib/getloadavg.c: Likewise.
21554         * lib/mkstemp.c: Likewise.
21555         * lib/mountlist.c, mountlist.h: Likewise.
21556         * lib/openat.c, openat.h: Likewise.
21557         * lib/readlink-stub.c: Likewise.
21558         * lib/readutmp.c, readutmp.h: Likewise.
21559         * lib/rename.c: Likewise.
21560         * lib/rmdir.c: Likewise.
21561         * lib/same.c: Likewise.
21562         * lib/savedir.c: Likewise.
21563         * lib/stripslash.c: Likewise.
21564         * lib/tempname.c: Likewise.
21565         * lib/xreadlink.c: Likewise.
21566         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
21567         All uses changed.
21568         * lib/exclude.h: Likewise.
21569
21570         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
21571         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
21572         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
21573         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
21574         * lib/pathmax.h: Include <limits.h> unconditionally, since other
21575         files have been getting away with it for years (MORE/BSD 4.3
21576         is extinct now).
21577         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
21578         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
21579
21580         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
21581         Define to 256, not 255, as per modern POSIX.
21582
21583 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21584
21585         Sync from coreutils.
21586         Use "file name" when talking about file names, instead of "filename"
21587         or "path", as per the GNU coding standards.
21588         * MODULES.html.sh: mkdir-p renamed from makepath.
21589         filenamecat renamed from path-concat.
21590         * modules/filenamecat: Renamed from modules/path-concat.
21591         (Files): filenamecat.h and filenamecat.c renamed from
21592         path-concat.h and path-concat.c.
21593         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
21594         (Include): filenamecat.h, not path-concat.h.
21595         * modules/mkdir-p: Renamed from modules/makepath.
21596         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
21597         makepath.c.
21598         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
21599         (Include): mkdir-p.h, not makepath.h.
21600
21601 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21602
21603         Sync from coreutils.
21604         * m4/mkdir-p.m4: Renamed from makepath.m4.
21605         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
21606         Rename files from makepath.c to mkdir-p.c, and from
21607         makepath.h to mkdir-p.h.
21608         * m4/filenamecat.m4: Renamed from path-concat.m4.
21609         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
21610         Rename files from path-concat.c to filenamecat.c,
21611         and from path-concat.h to filenamecat.h.
21612         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
21613         "file name" in local variables or comments.
21614         * m4/rename.m4: Likewise.
21615
21616 2005-06-01  Bruno Haible  <bruno@clisp.org>
21617
21618         * modules/csharpexec: New file.
21619         * MODULES.html.sh (C#): New section.
21620
21621 2005-06-01  Bruno Haible  <bruno@clisp.org>
21622
21623         * m4/csharp.m4: New file, from GNU gettext.
21624         * m4/csharpexec.m4: New file, from GNU gettext.
21625
21626 2005-06-01  Bruno Haible  <bruno@clisp.org>
21627
21628         * lib/csharpexec.h: New file, from GNU gettext.
21629         * lib/csharpexec.c: New file, from GNU gettext.
21630         * lib/csharpexec.sh.in: New file, from GNU gettext.
21631
21632 2005-05-31  Derek Price  <derek@ximbiot.com>
21633             Paul Eggert  <eggert@cs.ucla.edu>
21634
21635         Sync from cvs.
21636         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
21637
21638 2005-05-31  Derek Price  <derek@ximbiot.com>
21639             Paul Eggert  <eggert@cs.ucla.edu>
21640
21641         Sync from cvs.
21642         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
21643
21644 2005-05-29  Derek Price  <derek@ximbiot.com>
21645
21646         * config/srclist.txt (glob_.h, glob.c): Add these files.
21647
21648 2005-05-29  Derek Price  <derek@ximbiot.com>
21649
21650         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
21651         * modules/glob: New file.
21652         * modules/getlogin_r: Add link to POSIX spec in description.
21653
21654 2005-05-29  Derek Price  <derek@ximbiot.com>
21655             Paul Eggert  <eggert@cs.ucla.edu>
21656
21657         * m4/glob.m4: New file.
21658
21659 2005-05-29  Derek Price  <derek@ximbiot.com>
21660             Paul Eggert  <eggert@cs.ucla.edu>
21661
21662         * lib/glob_.h, lib/glob.c: New files.
21663
21664 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21665
21666         * modules/fts (Files): Remove m4/inttypes-pri.m4.
21667         * modules/fts-lgpl (Depends-on): Remove gettext.
21668
21669 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
21672         and don't require gt_INTTYPES_PRI.
21673
21674 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
21677
21678         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
21679         the configuration hassle isn't worth it.
21680         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
21681         (LONGEST_MODIFIER, PRIuMAX): Remove.
21682
21683 2005-05-27  Bruno Haible  <bruno@clisp.org>
21684
21685         * lib/getlogin_r.h: Remove second include of <stddef.h>.
21686
21687 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
21688
21689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
21690         _POSIX_PTHREAD_SEMANTICS for Solaris.
21691
21692 2005-05-25  Derek Price  <derek@ximbiot.com>
21693
21694         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
21695
21696 2005-05-25  Derek Price  <derek@ximbiot.com>
21697             Paul Eggert  <eggert@cs.ucla.edu>
21698
21699         * modules/getlogin_r, m4/getlogin_r.m4: New files.
21700         * lib/getlogin_r.c, getlogin_r.h: New files.
21701
21702 2005-05-25  Bruno Haible  <bruno@clisp.org>
21703             Derek Price  <derek@ximbiot.com>
21704
21705         * lib/getlogin_r.h: Simplify API documentation.
21706
21707 2005-05-23  Derek Price  <derek@ximbiot.com>
21708
21709         * modules/minmax (Files): Add m4/minmax.m4.
21710         (configure.ac): Add gl_MINMAX.
21711
21712 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21713
21714         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
21715         so that unistd-safer.h (GPL'ed code) need not be included.
21716
21717 2005-05-22  Bruno Haible  <bruno@clisp.org>
21718
21719         * m4/minmax.m4: New file.
21720         Based on a patch by Derek Price <derek@ximbiot.com>.
21721
21722 2005-05-22  Bruno Haible  <bruno@clisp.org>
21723
21724         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
21725         (INT64_MIN): Fix definition.
21726         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
21727
21728         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
21729         NEED_SIGNED_INT_TYPES.
21730
21731         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
21732         HAVE_SYSTEM_INTTYPES.
21733
21734 2005-05-22  Bruno Haible  <bruno@clisp.org>
21735
21736         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
21737         Also include <sys/param.h> if it defines MIN, MAX.
21738         Based on a patch by Derek Price <derek@ximbiot.com>.
21739
21740 2005-05-21  Jim Meyering  <jim@meyering.net>
21741
21742         * modules/fts (Files): Add m4/inttypes-pri.m4.
21743         (Depends-on): Add lstat and remove gettext.  Alphabetize.
21744
21745 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21746
21747         New fts module.
21748         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
21749         (setup_dir, free_dir): New functions.
21750         (enter_dir, leave_dir): Define trivial
21751         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
21752         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
21753         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
21754         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
21755         Move to fts-cycle.c.
21756         (fts_open): Use setup_dir.
21757         (fts_close): Use free_dir.
21758         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
21759         This adds a label and some gotos, but the alternatives were messier.
21760         Check for memory allocation failure when entering a dir.
21761         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
21762         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
21763         (FTS): New member fts_cycle, that is a union that contains the
21764         old active_dir_ht and cycle_state.  All uses changed to mention
21765         fts_cycle.ht and fts_cycle.state.
21766         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
21767         fts.c, with the following changes:
21768         (setup_dir, free_dir): New functions.
21769         (enter_dir): Now returns bool.  Return true if successful, false
21770         if memory exhausted.  All callers changed.
21771         Do not bother partly cleaning up on
21772         memory allocation failure; that is free_dir's job.
21773         However, free ad if hash_insert fails, to avoid memory leak.
21774         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
21775         fts->fts_options to see which union member to use.
21776
21777 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21778
21779         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
21780         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
21781
21782 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21783
21784         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
21785
21786 2005-05-20  Jim Meyering  <jim@meyering.net>
21787
21788         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
21789         Now a macro, to pacify GCC.
21790
21791 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
21792
21793         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
21794         of -1.
21795
21796 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
21797
21798         * lib/chown.c (rpl_chown): Return -1 on failure.
21799
21800 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
21801
21802         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
21803         Don't check for stddef.h.
21804         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
21805         don't use its results.
21806         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
21807         since we include them unconditionally.  Don't require
21808         AM_STDBOOL_H, since stdbool is a prerequisite.
21809         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
21810         since we assume C89 or better.
21811         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
21812         as we don't use their results.
21813         Don't check for fchdir, memmove, memset, strrchr, as we use
21814         them unconditionally.
21815         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
21816         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
21817
21818 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
21819
21820         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
21821         Include <stddef.h> unconditionally, since we assume C89 now.
21822         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
21823         * lib/fts.c: Include fts_.h first, to check interface.
21824         Do not include intprops.h; no longer needed.
21825         Include cycle-check.h and hash.h, since fts_.h no longer does.
21826         Remove unnecessary casts of closedir to void.
21827         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
21828         decide whether to decrement nlinks.
21829         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
21830         (FTS): Use struct hash_table * instead of Hash_table, so that
21831         we no longer need to include hash.h here.
21832
21833 2005-05-18  Jim Meyering  <jim@meyering.net>
21834
21835         * modules/dirfd (License): Change to LGPL.  Most of the code
21836         is already in the public domain.
21837
21838 2005-05-18  Jim Meyering  <jim@meyering.net>
21839
21840         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
21841         Reported by Yoann Vandoorselaere.
21842
21843 2005-05-17  Jim Meyering  <jim@meyering.net>
21844
21845         * m4/fts.m4: New file, from coreutils.
21846
21847 2005-05-17  Jim Meyering  <jim@meyering.net>
21848
21849         * lib/fts.c, lib/fts_.h: New files, from coreutils.
21850
21851 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21852
21853         Sync from coreutils.
21854         * m4/unlinkdir.m4: New file.
21855
21856 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21857
21858         Sync from coreutils.
21859         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
21860         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
21861         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
21862         White space changes only.
21863         * lib/makepath.c (make_path): Port to hosts where leading "//" is
21864         special.
21865         * lib/yesno.c: Include getline.h, not ctype.h.
21866         (yesno): Don't remove leading white space; POSIX doesn't allow it.
21867         Use getline to remove arbitrary restriction on response length.
21868
21869 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21870
21871         * config/srclist-update: Spell out "Street" in FSF postal
21872         mail address; this is the style the FSF seems to prefer.
21873
21874         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
21875         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
21876         this updates FSF postal mail address.
21877
21878         Sync from coreutils.
21879         * modules/unlinkdir: New file.
21880         * modules/yesno (Depends-on): Add getline.
21881         * MODULES.html.sh (File system functions): Add unlinkdir.
21882
21883 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21884
21885         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
21886         lib/strsep.h:
21887         Change the initial comment to refer to GPL, not LGPL.
21888         gnulib-tool will change it to LGPL as needed.
21889
21890         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
21891         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
21892         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
21893         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
21894         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
21895         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
21896         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
21897         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
21898         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
21899         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
21900         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
21901         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
21902         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
21903         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
21904         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
21905         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
21906         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
21907         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
21908         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
21909         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
21910         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
21911         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
21912         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
21913         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
21914         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
21915         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
21916         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
21917         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
21918         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
21919         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
21920         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
21921         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
21922         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
21923         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
21924         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
21925         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
21926         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
21927         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
21928         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
21929         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
21930         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
21931         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
21932         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
21933         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
21934         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
21935         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
21936         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
21937         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
21938         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
21939         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
21940         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21941         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
21942         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
21943         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
21944         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
21945         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
21946         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
21947         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
21948         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
21949         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
21950         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
21951         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
21952         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
21953         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
21954         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
21955         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
21956         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
21957         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
21958         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
21959         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
21960         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
21961         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
21962         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
21963         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
21964         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
21965         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
21966         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
21967         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
21968         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
21969         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
21970         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
21971         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
21972         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
21973         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
21974         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
21975         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
21976         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
21977         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
21978         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
21979         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
21980         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
21981         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
21982         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
21983         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
21984         lib/yesno.c, lib/yesno.h:
21985         Update FSF postal mail address.
21986
21987 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21988
21989         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
21990         tests/test-memmem.c, tests/test-stpncpy.c:
21991         Update FSF postal mail address.
21992
21993 2005-05-13  Bruno Haible  <bruno@clisp.org>
21994
21995         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
21996         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
21997         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
21998         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
21999         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
22000         Add support for 64-bit integers in the MSVC compiler.
22001
22002 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22003
22004         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
22005
22006 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
22007
22008         * gnulib-tool (func_import): Sort and uniquify recommended includes.
22009
22010 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22011
22012         * doc/getdate.texi (General date syntax): Don't say that date
22013         date --iso-8601=ns generates acceptable dates; it doesn't yet.
22014         Problem reported by Nic Ferrier.
22015
22016 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22017
22018         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
22019         specified in ai_socktype. Fix invalid ai_protocol
22020         check. ai_protocol is usually set to 0 or depending on
22021         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
22022         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
22023         ai_socktype / ai_protocol in the returned addrinfo structure.
22024
22025 2005-05-10  Simon Josefsson  <jas@extundo.com>
22026
22027         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
22028         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22029
22030 2005-05-10  Karl Berry  <karl@gnu.org>
22031
22032         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
22033         (from http://www.gnu.org/licenses).
22034         * doc/COPYING.LIB: also rename to COPYING.LESSER.
22035         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
22036         fdl.texi suffices.
22037
22038 2005-05-10  Karl Berry  <karl@gnu.org>
22039
22040         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
22041         (COPYING.DOC): remove.
22042
22043         * config/srclist-update: new FSF address.
22044
22045 2005-05-10  Derek Price  <derek@ximbiot.com>
22046
22047         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
22048         possible.
22049
22050 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22051             Bruno Haible  <bruno@clisp.org>
22052
22053         * modules/inet_ntop: New file.
22054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22055         inet_ntop.
22056
22057 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22058             Bruno Haible  <bruno@clisp.org>
22059
22060         * m4/inet_ntop.m4: New file.
22061
22062 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22063             Bruno Haible  <bruno@clisp.org>
22064
22065         * lib/inet_ntop.h: New file.
22066         * lib/inet_ntop.c: New file, from glibc with modifications.
22067
22068 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
22069
22070         * modules/time_r (License): Change to LGPL.
22071         * modules/extensions (License): Change to LGPL.  Actually,
22072         the license is more permissive than that, but currently gnulib-tool
22073         doesn't know how to handle more-permissive licenses.
22074
22075         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
22076         Problem reported by Dave Love.
22077
22078 2005-05-08  Jim Meyering  <jim@meyering.net>
22079
22080         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
22081         blank.
22082
22083 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22084
22085         * modules/argmatch (Depends-on): Add stdbool.
22086         * modules/backupfile (Depends-on): Likewise.
22087         * modules/chdir-long (Depends-on): Likewise.
22088         * modules/closeout (Depends-on): Likewise.
22089         * modules/cycle-check (Depends-on): Likewise.
22090         * modules/dirname (Depends-on): Likewise.
22091         * modules/fnmatch (Depends-on): Likewise.
22092         * modules/fsusage (Depends-on): Likewise.
22093         * modules/fwriteerror (Depends-on): Likewise.
22094         * modules/getcwd (Depends-on): Likewise.
22095         * modules/getloadavg (Depends-on): Likewise.
22096         * modules/hard-locale (Depends-on): Likewise.
22097         * modules/makepath (Depends-on): Likewise.
22098         * modules/mountlist (Depends-on): Likewise.
22099         * modules/nanosleep (Depends-on): Likewise.
22100         * modules/posixtm (Depends-on): Likewise.
22101         * modules/quotearg (Depends-on): Likewise.
22102         * modules/readtokens (Depends-on): Likewise.
22103         * modules/readtokens0 (Depends-on): Likewise.
22104         * modules/readutmp (Depends-on): Likewise.
22105         * modules/save-cwd (Depends-on): Likewise.
22106         * modules/strftime (Depends-on): Likewise.
22107         * modules/userspec (Depends-on): Likewise.
22108         * modules/utimecmp (Depends-on): Likewise.
22109         * modules/xgetcwd (Depends-on): Likewise.
22110         * modules/xnanosleep (Depends-on): Likewise.
22111         * modules/xstrtod (Depends-on): Likewise.
22112         * modules/yesno (Depends-on): Likewise.
22113
22114 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22115
22116         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
22117         needless checks.
22118
22119 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         Merge from coreutils.  Among other things,
22122         add bulletproofing for cases where stdin, stdout, or stderr are closed.
22123         * lib/fd-safer.c: New file.
22124         * lib/fcntl-safer.h, open-safer.c: Remove.
22125         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
22126         * lib/dup-safer.c: Include unistd-safer.h first.
22127         Don't include errno.h.
22128         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
22129         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
22130         * lib/file-type.c: Rely on file-type.h change.
22131         * lib/getloadavg.c: Include unistd-safer.h.
22132         (getloadavg): Use safer open.
22133         * lib/getusershell.c: Include "stdio-safer.h".
22134         (getusershell): Use safer fopen.
22135         * lib/long-options.c (long_options): Use NULL rather than 0.
22136         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
22137         'free'.
22138         * lib/modechange.c: Likewise.
22139         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
22140         (MODE_DONE): New constant.
22141         (struct mode_change): Remove 'next' member.
22142         (make_node_op_equals): New function; like the old one of the
22143         same name, except it allocates an array.
22144         (mode_compile, mode_create_from_ref): Use it.
22145         (mode_compile): Allocate result as an array, not a linked list.
22146         Parse octal string ourself, so that we catch mistakes like "+0".
22147         (mode_adjust): Arg is an array, not a linked list.
22148         * lib/modechange.c: Include stat-macros.h, xalloc.h.
22149         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
22150         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
22151         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
22152         Remove.  This is now stat-macros.h's job.
22153         (talloc): Remove.  All callers replaced by xalloc, so that
22154         our invokers don't have to worry about reporting memory failures.
22155         (make_node_op_equals): Remove.
22156         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
22157         New constants.
22158         (struct mode_change): Moved here from modechange.h.
22159         (mode_append_entry): Remove.
22160         (mode_compile): Remove MASKED_OPS arg, since it encouraged
22161         apps to have incorrect behavior.  Use simpler algorithm for head
22162         and tail.  Don't futz with umask; that's now the job of mode_adjust.
22163         Detect more invalid usages rather than having somewhat-random behavior.
22164         Don't insert an "a=" action, as that leads to incorrect behavior.
22165         (mode_compile, mode_create_from_ref): Return NULL on error instead
22166         of an enum, since now there's only one way to have an error.  All
22167         callers changed.
22168         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
22169         at the correct time.  Simplify calculation of "+u" and its ilk.
22170         Don't mishandle "+X".
22171         (mode_free): Remove "register" and localize decls.
22172         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
22173         (struct mode_change): Move to modechange.c; callers don't
22174         need to see this stuff.
22175         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
22176         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
22177         (mode_change, mode_adjust): Reflect the new signatures noted above.
22178         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
22179         that might redefine system include files.
22180         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
22181         (my_usleep): Use NULL rather than (void *) 0.
22182         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
22183         Use siginterrupt to specify that system calls should be interrupted.
22184         (rpl_nanosleep): Move initialization of suspended closer to call of
22185         my_usleep.
22186         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
22187         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
22188         (desirable_utmp_entry): New function.
22189         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
22190         using x2nrealloc, to simplify logic.
22191         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
22192         size calculation.  Do not assume utmp file is a regular file.
22193         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
22194         (READ_UTMP_CHECK_PIDS): New constant.
22195         * lib/save-cwd.c: Include unistd-safer.h.
22196         (save_cwd): Use fd_safer.
22197         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
22198         [!_LIBC] Include "stat-macros.h" instead.
22199         * lib/unistd-safer.h (fd_safer): New decl.
22200
22201 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22202
22203         * modules/getloadavg (Depends-on): Add unistd-safer.
22204         * modules/getusershell (Depends-on): Add stdio-safer.
22205         * modules/lstat (Depends-on): Remove xalloc.
22206         * modules/mkstemp (Depends-on): Add stat-macros.
22207         * modules/modechange (Depends-on): Remove xstrtol.
22208         Add stat-macros, xalloc.
22209         * modules/save-cwd (Depends-on): Add unistd-safer.
22210         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
22211         * modules/unistd-safer (Files): Add lib/fd-safer.c
22212         (Makefile.am): Remove lib_SOURCES.
22213
22214         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
22215         Remove fcntl-safer; unistd-safer supersedes it.
22216
22217 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22218
22219         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
22220         AC_HEADER_STAT.
22221         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
22222         (gl_PREREQ_CHOWN): Remove.
22223         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
22224         it.  Don't require AC_HEADER_STAT.
22225         (gl_PREREQ_LSTAT): Remove.
22226         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
22227         Don't require AC_HEADER_STAT.
22228         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
22229         (gl_PREREQ_RMDIR): Remove.
22230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
22231         mention stat-macros.h or AC_HEADER_STAT, since we'll make
22232         the stat-macros module a prerequisite.
22233         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
22234         * m4/filemode.m4 (gl_FILEMODE): Likewise.
22235         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
22236         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
22237         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
22238         variable names.
22239         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
22240         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
22241         variable prefixes.
22242         * m4/fcntl-safer.m4: Remove.
22243         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
22244         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
22245         Invoke gl_PREREQ_FD_SAFER.
22246         (gl_PREREQ_FD_SAFER): New macro.
22247         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
22248         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
22249         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
22250         Remove duplicate call to AC_LIBOBJ(readutmp).
22251         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
22252
22253         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
22254         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
22255
22256 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22257
22258         * MODULES.html.sh (Misc): Add byteswap.
22259
22260 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22261
22262         * modules/getcwd (Depends-on): Add extensions.
22263         * modules/openat (Depends-on): Likewise.
22264
22265 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22266
22267         * modules/byteswap: New file.
22268
22269 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22270
22271         * m4/byteswap.m4: New file.
22272
22273 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
22274
22275         * lib/byteswap_.h: New file.
22276
22277 2005-04-25  Karl Berry  <karl@gnu.org>
22278
22279         * m4/gettext.m4: Update from GNU gettext 0.14.4.
22280
22281 2005-04-25  Albert Chin  <china@thewrittenword.com>
22282
22283         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
22284         Toolkit C bug.
22285
22286 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
22287
22288         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
22289         (func_ln_if_changed) Remove forcibly for no error message
22290         in case file does not exist.
22291
22292 2005-04-19  Simon Josefsson  <jas@extundo.com>
22293
22294         * gnulib-tool (Options): Make --symlink mean --symbolic.
22295
22296 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
22297
22298         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
22299
22300 2005-04-16  Simon Josefsson  <jas@extundo.com>
22301
22302         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
22303
22304 2005-04-15  Simon Josefsson  <jas@extundo.com>
22305
22306         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
22307
22308 2005-04-15  Simon Josefsson  <jas@extundo.com>
22309
22310         * gnulib-tool: Rename --symlink to --symbolic.
22311
22312 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
22313
22314         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
22315         symbolic links to files instead of copying/moving.  Add --aux-dir,
22316         specifying directory relative --dir where auxiliary build tools
22317         are placed.
22318
22319 2005-04-14  Bruno Haible  <bruno@clisp.org>
22320
22321         * modules/allocsa (License): Change to LGPL.
22322         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22323
22324 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22325
22326         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
22327         that "UTC +1 second" continues to work.  Problem reported
22328         by Dmitry V. Levin.
22329         (relunit_snumber): New rule.
22330         (relunit): Use it.
22331
22332 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22333
22334         * lib/getdate.y (universal_time_zone_table): New constant.
22335         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
22336         universal_time_zone_table.
22337         (lookup_zone): Prefer universal_time_zone_table to
22338         local_time_zone_table, so that "GMT" time stamps are allowed in
22339         London during the summer.  Problem reported by Ian Abbott.
22340
22341 2005-04-12  Jim Meyering  <jim@meyering.net>
22342
22343         * lib/human.c (humblock): Set *options even when returning due to
22344         xstrtoumax conversion failure.  Thanks to a used-uninitialized
22345         warning from gcc-4.
22346
22347 2005-04-09  Jim Meyering  <jim@meyering.net>
22348
22349         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
22350         -Wuninitialized: initialize tm0.tm_year.
22351
22352 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
22353
22354         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
22355         count, since there's no maximum.  All uses changed.
22356         Add member dsts_seen.
22357         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
22358         not being INT_MAX.
22359         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
22360         Use pc_rels_seen to decide whther a date is absolute.
22361
22362         * lib/getdate.y (number): Don't overwrite year.
22363         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
22364         check.
22365
22366 2005-04-02  Simon Josefsson  <jas@extundo.com>
22367
22368         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
22369         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
22370
22371 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
22372
22373         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
22374         where no absolute path name can be longer than PATH_MAX.
22375
22376 2005-03-27  Jim Meyering  <jim@meyering.net>
22377
22378         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
22379
22380 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
22381
22382         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
22383         "one's complement" -> "ones' complement" in comment, as per Knuth.
22384         "value of type" -> "type or expression" in comment.
22385         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
22386
22387 2005-03-26  Jim Meyering  <jim@meyering.net>
22388
22389         Comment nits.
22390         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
22391         Correct typos: s/or/of/.
22392
22393 2005-03-26  Jim Meyering  <jim@meyering.net>
22394
22395         * modules/check-include-files: Move to ../ and rename to...
22396         * check-module: ...this.
22397
22398 2005-03-25  Jim Meyering  <jim@meyering.net>
22399
22400         * modules/xvasprintf (Files): Add xalloc.h.
22401
22402 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22403
22404         * modules/gettext (Files): config/config.rpath ->
22405         build-aux/config.rpath
22406         * modules/iconv (Files): Likewise.
22407         Problem reported by Oskar Liljeblad.
22408
22409 2005-03-23  Jim Meyering  <jim@meyering.net>
22410
22411         * modules/check-include-files: New script to check for
22412         missing dependencies, multiple includes, etc.
22413
22414         * modules/c-strtold (Depends-on): Add xalloc.
22415         * modules/c-strtod (Depends-on): Add xalloc.
22416         * modules/hash (Depends-on): Add xalloc.
22417         (Files): Remove lib/xalloc.h.
22418
22419         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
22420         * modules/userspec (Files): Add lib/inttostr.h.
22421
22422 2005-03-23  Jim Meyering  <jim@meyering.net>
22423
22424         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
22425
22426 2005-03-22  Jim Meyering  <jim@meyering.net>
22427
22428         * modules/stat-macros: New module.
22429         * modules/canonicalize, modules/euidaccess, modules/file-type,
22430         * modules/filemode, modules/lchown, modules/makepath,
22431         * modules/rmdir, modules/stat: Depend on new stat-macros module
22432         rather than listing lib/stat-macros.h manually.
22433         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
22434
22435 2005-03-22  Jim Meyering  <jim@meyering.net>
22436
22437         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
22438
22439 2005-03-22  Bruno Haible  <bruno@clisp.org>
22440
22441         * config/srclist.txt: Replace target directory 'config' with
22442         'build-aux'.
22443         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
22444         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
22445         ../build-aux/.
22446
22447 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
22448
22449         * modules/chdir-long (Depends-on): Add mempcpy.
22450
22451         * modules/acl, modules/backupfile, modules/c-strtod,
22452         modules/c-strtold, modules/canon-host, modules/canonicalize,
22453         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
22454         modules/exclude, modules/exitfail, modules/file-type,
22455         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
22456         modules/getdate, modules/getline, modules/getpagesize,
22457         modules/getpass, modules/getugroups, modules/group-member,
22458         modules/hard-locale, modules/hash, modules/human, modules/idcache,
22459         modules/inttostr, modules/long-options, modules/makepath,
22460         modules/md5, modules/memcasecmp, modules/memcoll,
22461         modules/modechange, modules/mountlist, modules/path-concat,
22462         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
22463         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
22464         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
22465         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
22466         modules/strftime, modules/strndup, modules/strverscmp,
22467         modules/timespec, modules/unlocked-io, modules/userspec,
22468         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
22469         modules/yesno:
22470         Remove lib_SOURCES line from Makefile.am section, as this is now
22471         done automatically by the corresponding Autoconf macro.
22472
22473 2005-03-21  Jim Meyering  <jim@meyering.net>
22474
22475         Changes imported from coreutils.
22476
22477         * lib/cycle-check.c: Don't include xalloc.h.
22478
22479         * lib/path-concat.c: Don't include assert.h.
22480         (path_concat): Remove assertion that would have triggered
22481         for ABASE starting with more than one slash.
22482         Reported by Andreas Schwab.
22483
22484         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
22485         properly when ABASE is an absolute file name.
22486         Correct the description of this function.
22487         Include <assert.h>.
22488         Add an assertion and a test driver.
22489         This fixes a bug introduced on 2004-07-02.
22490         Andreas Schwab reported the resulting failure of cp --parents:
22491         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
22492
22493 2005-03-21  Jim Meyering  <jim@meyering.net>
22494
22495         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
22496         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
22497
22498 2005-03-21  Jim Meyering  <jim@meyering.net>
22499         and  Paul Eggert  <eggert@cs.ucla.edu>
22500
22501         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
22502         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
22503         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
22504         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
22505         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
22506         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
22507         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
22508         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
22509         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
22510         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
22511         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
22512         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
22513         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
22514         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
22515         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
22516         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
22517         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
22518         for these modules.
22519
22520 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
22521
22522         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
22523         (which shouldn't happen), generate nothing instead of returning 0
22524         immediately, so that nstrftime (NULL, ...) doesn't return 0.
22525
22526 2005-03-16  Bruno Haible  <bruno@clisp.org>
22527
22528         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
22529         HAVE_LONGLONG_64BIT.
22530
22531 2005-03-16  Bruno Haible  <bruno@clisp.org>
22532
22533         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
22534         HAVE_LONGLONG_64BIT.
22535
22536 2005-03-16  Bruno Haible  <bruno@clisp.org>
22537
22538         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
22539         HAVE_LONGLONG_64BIT.
22540
22541 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22542
22543         * lib/strftime.c (my_strftime): Prepend space to format so that we can
22544         reliably distinguish strftime failure from empty output on POSIX
22545         hosts.
22546
22547 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22548
22549         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
22550         (iconv_string): Don't guess a size-zero buffer, as that might cause
22551         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
22552         result would be 'too large', where 'too large' is (heuristically)
22553         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
22554         overflow concerns.  This will prevent some unwanted malloc failures
22555         when the inputs are very large.
22556
22557 2005-03-15  Karl Berry  <karl@gnu.org>
22558
22559         * config/srclist.txt (config.rpath): from gettext.
22560         * config/config.rpath: update.
22561
22562 2005-03-15  Bruno Haible  <bruno@clisp.org>
22563
22564         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
22565         to 'negate'.
22566
22567         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
22568         variable.
22569
22570         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
22571         results.
22572
22573 2005-03-14  Simon Josefsson  <jas@extundo.com>
22574
22575         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
22576         <fx@gnu.org>.
22577
22578 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22579
22580         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
22581         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
22582         intprops.h.
22583         * lib/strtol.c: Likewise.
22584
22585 2005-03-14  Jim Meyering  <jim@meyering.net>
22586
22587         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
22588         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
22589         to be nonzero so that we (and caller) can detect the difference
22590         between a valid zero-length expansion and an error return, even
22591         when the underlying strftime fails before writing anything into
22592         that location.
22593
22594 2005-03-14  Bruno Haible  <bruno@clisp.org>
22595
22596         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
22597         Update from GNU gettext 0.14.3.
22598
22599 2005-03-10  Jim Meyering  <jim@meyering.net>
22600
22601         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
22602
22603 2005-03-10  Jim Meyering  <jim@meyering.net>
22604
22605         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
22606         so that this module works on systems without fchdir.
22607
22608 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
22609
22610         Factor int-properties macros into a single file, except for
22611         glibc-related files.
22612         * lib/intprops.h: New file.
22613         * lib/getloadavg.c: Include it instead of limits.h.
22614         (INT_STRLEN_BOUND): Remove.
22615         * lib/human.c: Include intprops.h.
22616         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
22617         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
22618         302/1000.
22619         * lib/inttostr.h: Include intprops.h instead of limits.h.
22620         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
22621         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
22622         for consistency with intprops.h.
22623         (time_t_is_integer, twos_complement_arithmetic): Use them.
22624         * lib/sig2str.h: Include <signal.h>, intprops.h.
22625         (INT_STRLEN_BOUND): Remove.
22626         * lib/strftime.c (TYPE_SIGNED): Remove.
22627         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
22628         * lib/strtol.c: Adjust comments to match intprops.h.
22629         * lib/userspec.c: Include intprops.h.
22630         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
22631         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
22632         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
22633         instead of rolling our own expressions.
22634         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
22635
22636         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
22637         instead of int.
22638         (my_strftime): Do not mishandle years close to INT_MAX, by doing
22639         the right thing even if adding 1900 would overflow.  Similarly
22640         for tm_mon + 1 and tm_yday + 1.
22641         Make %Y always equivalent to %C%y, and similarly for %G and %g.
22642         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
22643         (DO_SIGNED_NUMBER): New macro.
22644         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
22645
22646 2005-03-07  Bruno Haible  <bruno@clisp.org>
22647
22648         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
22649
22650 2005-03-07  Bruno Haible  <bruno@clisp.org>
22651
22652         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
22653
22654 2005-03-04  Derek R. Price  <derek@ximbiot.com>
22655
22656         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
22657         (func_import): Only replace files via --import when they have actually
22658         changed.
22659
22660 2005-03-03  Derek R. Price  <derek@ximbiot.com>
22661
22662         * m4/mmap-anon.m4: New file.
22663         * m4/pagealign_alloc.m4: New file.
22664
22665 2005-03-03  Derek R. Price  <derek@ximbiot.com>
22666             Bruno Haible  <bruno@clisp.org>
22667
22668         * modules/pagealign_alloc: New file.
22669         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
22670
22671 2005-03-03  Derek R. Price  <derek@ximbiot.com>
22672             Bruno Haible  <bruno@clisp.org>
22673
22674         * lib/pagealign_alloc.h: New file.
22675         * lib/pagealign_alloc.c: New file.
22676
22677 2005-03-03  Bruno Haible  <bruno@clisp.org>
22678
22679         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
22680         Use an all-permissive copyright notice, recommended by RMS.
22681
22682 2005-03-02  Bruno Haible  <bruno@clisp.org>
22683
22684         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
22685         of AIX, the replacement has to be done only after <string.h> is
22686         included, therefore not in config.h. stpncpy.h does the replacement,
22687         and stpncpy.c uses it.
22688
22689 2005-03-02  Bruno Haible  <bruno@clisp.org>
22690
22691         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
22692         stpncpy.c uses it.
22693
22694 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22695
22696         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
22697         The workaround isn't strictly needed for POSIX conformance, and
22698         it's too much of a pain to configure and maintain.  We'll ask
22699         people to fix their kernels instead.
22700         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
22701         (NANOSLEEP_BUG_WORKAROUND): Remove.
22702         (xnanosleep): Remove the workaround.
22703
22704 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22705
22706         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
22707         Reported by Derek Price.
22708         (Include): Add "timespec.h".
22709
22710         * modules/xnanosleep (Depends-on): Remove gethrxtime.
22711
22712 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
22715         to detect nanosleep bug.
22716
22717 2005-03-01  Bruno Haible  <bruno@clisp.org>
22718
22719         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
22720
22721 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22722
22723         * modules/gethrxtime: New file.
22724         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
22725         (Depends-on): Add gethrxtime.
22726         (configure.ac): Add gl_XNANOSLEEP.
22727         (Makefile.am): Remove lib_SOURCES line.
22728
22729 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22730
22731         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
22732         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
22733
22734 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22735
22736         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
22737         * lib/timespec.h (gettime): Return void, since it always
22738         succeeds now.  All uses changed.
22739         * lib/gettime.c (gettime) Likewise.
22740         [HAVE_NANOTIME]: Prefer nanotime.
22741         Assume gettimeofday succeeds, as POSIX requires.
22742         Assime time () succeeds, since other code already does.
22743         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
22744         (timespec_subtract): Remove.
22745         (NANOSLEEP_BUG_WORKAROUND): New constant.
22746         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
22747         things considerably.  Use it only on GNU/Linux hosts, since the
22748         workaround shouldn't be needed elsewhere.
22749
22750 2005-02-24  Bruno Haible  <bruno@clisp.org>
22751
22752         * modules/gettext (Files): Add m4/glibc2.m4.
22753
22754 2005-02-24  Bruno Haible  <bruno@clisp.org>
22755
22756         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
22757         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
22758         * m4/progtest.m4:
22759         Update from GNU gettext 0.14.2.
22760         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
22761
22762 2005-02-24  Bruno Haible  <bruno@clisp.org>
22763
22764         * lib/localcharset.c: Update from GNU gettext 0.14.2.
22765         * lib/config.charset: Update from GNU gettext 0.14.2.
22766
22767 2005-02-24  Bruno Haible  <bruno@clisp.org>
22768
22769         * lib/gettext.h: Update from GNU gettext 0.14.2.
22770
22771 2005-02-23  Simon Josefsson  <jas@extundo.com>
22772
22773         * m4/iconvme.m4: New file.
22774
22775 2005-02-23  Jim Meyering  <jim@meyering.net>
22776
22777         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
22778         change.
22779         Thanks to Bruno Haible for catching it.
22780
22781 2005-02-22  Simon Josefsson  <jas@extundo.com>
22782
22783         * modules/iconvme: New file.
22784
22785         * MODULES.html.sh: Add iconvme.
22786
22787 2005-02-22  Simon Josefsson  <jas@extundo.com>
22788
22789         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
22790
22791 2005-02-22  Simon Josefsson  <jas@extundo.com>
22792
22793         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
22794
22795 2005-02-22  Jim Meyering  <jim@meyering.net>
22796
22797         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
22798         s/ifndef/ifdef/.
22799
22800 2005-02-20  Neil Conway  <neilc@samurai.com>
22801
22802         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
22803         returned by OSX/Darwin if the specified buffer is not large
22804         enough for the hostname.
22805
22806 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22807
22808         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
22809         pass it to _help, otherwise the latter coredumps trying to
22810         dereference state.root_argp.
22811
22812 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22813
22814         * modules/chdir-long (Depends-on): Add memrchr.
22815         * modules/memrchr (Files): Add lib/memrchr.h.
22816         (Include): "memrchr.h".
22817
22818 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22819
22820         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
22821
22822 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22823
22824         * lib/memrchr.h: New file.
22825         * lib/chdir-long.c: Include it.
22826         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
22827         Don't bother including stddef.h.
22828
22829 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
22830
22831         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
22832         inclusion.
22833         Include <sys/types.h>, for dev_t.
22834         (ME_DUMMY, ME_REMOTE): Move from here....
22835         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
22836         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
22837         Dmitry V. Levin.
22838         Include mountlist.h first, to test the interface.
22839
22840 2005-01-29  Bruno Haible  <bruno@clisp.org>
22841
22842         * lib/progname.c (program_name): Initialize.
22843         Needed when linking statically on MacOS X.
22844
22845 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22846
22847         Sync from coreutils.
22848         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
22849         (Depends-on): Add c-strtod.
22850         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
22851
22852 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22853
22854         Sync from coreutils.
22855         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
22856
22857         Remove files that are specific to coreutils.
22858         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
22859
22860 2005-01-28  Bruno Haible  <bruno@clisp.org>
22861
22862         * modules/javacomp: New file.
22863         * MODULES.html.sh (Java): Add javacomp.
22864
22865 2005-01-28  Bruno Haible  <bruno@clisp.org>
22866
22867         * m4/javacomp.m4: New file, from GNU gettext.
22868
22869 2005-01-28  Bruno Haible  <bruno@clisp.org>
22870
22871         * lib/javacomp.sh.in: New file, from GNU gettext.
22872         * lib/javacomp.h: New file, from GNU gettext.
22873         * lib/javacomp.c: New file, from GNU gettext.
22874
22875 2005-01-26  Simon Josefsson  <jas@extundo.com>
22876
22877         * lib/gai_strerror.c: Use GPL in header.
22878
22879 2005-01-26  Bruno Haible  <bruno@clisp.org>
22880
22881         * modules/javaexec: New file.
22882         * MODULES.html.sh (Java): Add javaexec.
22883
22884 2005-01-26  Bruno Haible  <bruno@clisp.org>
22885
22886         * m4/javaexec.m4: New file, from GNU gettext.
22887
22888 2005-01-26  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/javaexec.sh.in: New file, from GNU gettext.
22891         * lib/javaexec.h: New file, from GNU gettext.
22892         * lib/javaexec.c: New file, from GNU gettext.
22893
22894 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22895
22896         * modules/lchown (Depends-on): Remove lchown.h
22897
22898 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22899
22900         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
22901         must be defined if the header file was not found, in order
22902         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
22903
22904 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22905
22906         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
22907         initializers for struct pentry_state.
22908         (__argp_error): Check return value of __asprintf
22909         (__argp_failure): Translate error message
22910
22911         * lib/argp-parse.c: Removed braces around the expansion of N_()
22912
22913 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22914
22915         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
22916         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
22917         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
22918         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
22919         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
22920         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
22921         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
22922         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
22923         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
22924         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
22925         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
22926         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
22927         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
22928         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
22929         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
22930         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
22931         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
22932         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
22933         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
22934         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
22935         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
22936         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
22937         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
22938         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
22939         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
22940         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
22941         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
22942         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
22943         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
22944         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
22945         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
22946         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
22947         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
22948         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
22949         xstrtol.m4, xstrtoumax.m4, yesno.m4:
22950         Use an all-permissive copyright notice, recommended by RMS.
22951
22952 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         * modules/chdir-long (Depends-on): Remove mempcpy.
22955
22956 2005-01-21  Jim Meyering  <jim@meyering.net>
22957
22958         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
22959         same value as for Solaris 9.
22960
22961         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
22962         component length.  This included changing the parameter to be
22963         of type `char *' rather than `char const *'.
22964         * lib/chdir-long.h (chdir_long): Update prototype.
22965
22966         * lib/openat.c (fdopendir, fstatat): New functions.
22967         * lib/openat.h: Include headers required for use of DIR and struct
22968         stat.
22969         [AT_SYMLINK_NOFOLLOW]: Define.
22970         (fdopendir, fstatat): Add prototypes.
22971
22972 2005-01-21  Bruno Haible  <bruno@clisp.org>
22973
22974         * modules/classpath: New file.
22975         * MODULES.html.sh (Java): Add classpath.
22976
22977 2005-01-21  Bruno Haible  <bruno@clisp.org>
22978
22979         * lib/classpath.h: New file, from GNU gettext.
22980         * lib/classpath.c: New file, from GNU gettext.
22981
22982 2005-01-20  Simon Josefsson  <jas@extundo.com>
22983
22984         * modules/version-etc-fsf: New file.
22985
22986 2005-01-20  Simon Josefsson  <jas@extundo.com>
22987
22988         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
22989         * lib/version-etc.c: Remove version_etc_copyright.
22990         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
22991         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
22992
22993 2005-01-20  Simon Josefsson  <jas@extundo.com>
22994
22995         * lib/base64.h (isbase64): Add.
22996
22997         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
22998         using a unsigned prototype, don't inline.
22999         (base64_decode): Use it.
23000
23001 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23002
23003         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
23004         it.
23005
23006 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23007
23008         * lib/save-cwd.c (save_cwd): Remove code to support the case
23009         where fchdir is missing or flaky.
23010
23011 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23012
23013         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
23014
23015 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23016
23017         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
23018         AC_LIBSOURCES now does this.
23019         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
23020         with new ullong_max module.
23021
23022 2005-01-19  Bruno Haible  <bruno@clisp.org>
23023
23024         * modules/sh-quote: New file.
23025         * MODULES.html.sh (Executing programs): Add sh-quote.
23026
23027 2005-01-19  Bruno Haible  <bruno@clisp.org>
23028
23029         * lib/sh-quote.h: New file, from GNU gettext.
23030         * lib/sh-quote.c: New file, from GNU gettext.
23031
23032 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23033
23034         Merge from coreutils.
23035         * m4/ullong_max.m4: New file.
23036         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
23037         (gl_MACROS): Assume localeconv exists.
23038
23039 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23040
23041         Merge changes from coreutils, as described below in several
23042         changelogs dated today.
23043
23044         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
23045         (O_DIRECTORY): Remove; not needed here, since "." must be
23046         a directory.  All uses removed.
23047         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
23048         universal on Suns, and we also need to test for IRIX.
23049         Revamp code to use 'if' rather than '#if'.
23050         Avoid unnecessary comparison of cwd->desc to 0.
23051
23052         * lib/utimens.c (futimens): Robustify the previous patch, by checking
23053         for known valid error numbers rather than observed invalid ones.
23054
23055 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23056
23057         * modules/ullong_max: New file.
23058
23059         * modules/chdir-long, modules/openat: New files.
23060         * modules/save-cwd (Depends-on): Depend on chdir-long.
23061         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
23062
23063 2005-01-18  Jim Meyering  <jim@meyering.net>
23064
23065         Merge from coreutils.
23066         * m4/chdir-long.m4, m4/openat.m4: New files.
23067         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
23068         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
23069         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
23070         is sane and DOES follow symlinks.  Besides, testing 20 different
23071         systems found no broken chown implementations.
23072         Prompted by a change in rsync's copy of this macro.
23073         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
23074
23075         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
23076
23077         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
23078         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
23079         NULL-means-set-to-current-time semantics.
23080         Remove temporary file immediately, rather than waiting
23081         for configure's at-exit trap code to do it.
23082
23083 2005-01-18  Jim Meyering  <jim@meyering.net>
23084
23085         * lib/version-etc.c (version_etc_copyright): Update copyright date.
23086
23087         * lib/utimens.c (futimens): Account for the fact that futimes
23088         can also fail with errno == ENOSYS or errno == ENOENT.
23089         Patch from Dmitry V. Levin.
23090
23091         Change the name of the robust chdir function from chdir to chdir_long.
23092         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
23093         (restore_cwd): Use chdir_long, not chdir.
23094         * lib/chdir-long.c: Renamed from chdir.c.
23095         * lib/chdir-long.h: Renamed from chdir.h.
23096         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
23097         Hurd.
23098
23099 2005-01-18  Bruno Haible  <bruno@clisp.org>
23100
23101         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
23102         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
23103         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
23104         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
23105         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
23106         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
23107         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
23108         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
23109         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
23110         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
23111         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
23112         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
23113         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
23114         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
23115         Use an all-permissive copyright notice, recommended by RMS.
23116
23117 2005-01-18  Bob Proulx  <bob@proulx.com>
23118
23119         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
23120         simplify offsetof() macro construct to avoid compile failure with
23121         native HP-UX 11.0 ANSI C compiler.
23122
23123 2005-01-17  Bruno Haible  <bruno@clisp.org>
23124
23125         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
23126         redundant because stpncpy.m4 takes care of it.
23127
23128 2005-01-17  Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
23131
23132 2005-01-17  Bruno Haible  <bruno@clisp.org>
23133
23134         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
23135         used.
23136
23137 2005-01-17  Bruno Haible  <bruno@clisp.org>
23138
23139         * lib/fwriteerror.h (fwriteerror): Change specification to include
23140         fclose.
23141         * lib/fwriteerror.c: Include <stdbool.h>.
23142         (fwriteerror): At the end, close the file stream. Record whether
23143         stdout was already closed.
23144
23145 2005-01-17  Bruno Haible  <bruno@clisp.org>
23146
23147         * lib/execute.c (environ): Declare if needed.
23148         * lib/pipe.c (environ): Likewise.
23149         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
23150
23151 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23152
23153         * modules/argp: Depend on vsnprintf
23154
23155 2005-01-10  Jim Meyering  <jim@meyering.net>
23156
23157         * modules/closeout (Depends-on): Add atexit.
23158
23159 2005-01-06  Bruno Haible  <bruno@clisp.org>
23160
23161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
23162
23163 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23164
23165         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
23166         definitions to be after all include files, to avoid collisions.
23167         Problem reported by Bob Proulx.
23168
23169 2005-01-04  Jim Meyering  <jim@meyering.net>
23170
23171         Changes imported from coreutils.
23172         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
23173         as the mkstemp template, use a temporary directory and an
23174         8.3-friendly template to avoid trouble on systems like DJGPP.
23175         Reported by Juan M. Guerrero via Stepan Kasal.
23176         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
23177         close. Remove the temporary directory right away, rather than waiting
23178         for configure's at-exit trap code to do it.
23179         Suggestion from Stepan Kasal.
23180
23181 2005-01-01  Simon Josefsson  <jas@extundo.com>
23182
23183         * gnulib-tool: Print #include directives when --import'ing.
23184
23185 2004-12-28  Simon Josefsson  <jas@extundo.com>
23186
23187         * tests/test-base64.c: Include required header files.  Remove
23188         unused variables.
23189
23190 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         * modules/error (Depends-on): Remove gettext.
23193
23194 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23195
23196         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
23197         not needed.  This removes a dependency on the gettext module.
23198         [defined _LIBC]: Do not include <libintl.h>; not needed.
23199
23200 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
23201
23202         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
23203         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
23204
23205 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
23206
23207         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
23208         HAVE_DECL_STRTOLD.
23209
23210 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23211
23212         * modules/getdate (Depends-on): Remove alloca-opt.
23213
23214 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23215
23216         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
23217
23218 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23219
23220         * lib/argp-parse.c: Include <stddef.h>.
23221         (alignof, alignto): New macros.
23222         (parser_init): Don't assume that void * is aligned sufficiently
23223         for struct option.
23224
23225         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
23226         need to extend the stack.
23227         (YYINITDEPTH): New macro, so that the initial stack isn't overly
23228         large.
23229
23230 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23231
23232         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
23233
23234 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23235
23236         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
23237         (2004-10-24) change.  Apparently this was a false alarm.
23238
23239         * modules/getdate: Depend on alloca-opt, not alloca.
23240
23241 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23242
23243         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
23244         Remove now-obsolete comment about AIX.
23245         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
23246         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
23247         (YYMAXDEPTH): New macro.
23248
23249 2004-12-18  Simon Josefsson  <jas@extundo.com>
23250
23251         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
23252
23253 2004-12-18  Bruno Haible  <bruno@clisp.org>
23254
23255         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
23256
23257 2004-12-18  Bruno Haible  <bruno@clisp.org>
23258
23259         * lib/fatal-signal.c (fatal_signals): Make non-const.
23260         (init_fatal_signals): New function.
23261         (uninstall_handlers, install_handlers): Ignore signals that were set to
23262         SIG_IGN.
23263         (at_fatal_signal): Call init_fatal_signals.
23264         (init_fatal_signal_set): Likewise. Ignore signals that were set to
23265         SIG_IGN.
23266         Reported by Paul Eggert.
23267
23268 2004-12-18  Bruno Haible  <bruno@clisp.org>
23269
23270         * doc/alloca.texi: New file.
23271         * doc/alloca-opt.texi: New file.
23272
23273 2004-12-17  Jim Meyering  <jim@meyering.net>
23274
23275         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
23276         Otherwise, install-sh could exit with improper exit status when
23277         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
23278
23279 2004-12-16  Simon Josefsson  <jas@extundo.com>
23280
23281         * tests/test-base64.c: Add license.
23282
23283 2004-12-15  Stepan Kasal  <address@hidden>
23284
23285         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
23286
23287 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23288
23289         * modules/getcwd (Files): Add m4/d-ino.m4.
23290         Suggested by Mark D. Baushke.
23291
23292 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
23293
23294         * lib/getdate.y (textint): New member "negative".
23295         (time_zone_hhmm): New function.
23296         Expect 14 shift-reduce conflicts, not 13.
23297         (o_colon_minutes): New rule.
23298         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
23299         (yylex): Set the "negative" member of signed numbers.
23300
23301 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
23302
23303         * doc/getdate.texi (Time of day items, Time zone items):
23304         Describe new formats +00:00, UTC+00:00.
23305
23306 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23307
23308         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
23309         spurious "-l"s.  Problem reported by Stepan Kasal.
23310
23311 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
23312
23313         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
23314         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
23315
23316 2004-12-04  Simon Josefsson  <jas@extundo.com>
23317
23318         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
23319         Vandoorselaere <yoann@prelude-ids.org>.
23320
23321 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23322
23323         Changes imported from coreutils.
23324         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
23325         exist.
23326         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
23327
23328 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23329
23330         Changes imported from coreutils.
23331         * lib/hard-locale.c: Assume <locale.h> exists.
23332         Include "strdup.h".
23333         (GLIBC_VERSION): New macro.
23334         (hard_locale): Assume setlocale exists.
23335         Rewrite to avoid #ifdef.
23336         Use strdup rather than malloc + strcpy.
23337         * lib/human.c: Assume <locale.h> exists.
23338         (human_readable): Assume localeconv exists.
23339
23340 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         * modules/hard-locale (Depends-on): Add strdup.
23343
23344 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
23345
23346         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
23347         convert T2, not T.  (Imported from libc.)
23348
23349 2004-11-30  Simon Josefsson  <jas@extundo.com>
23350
23351         * modules/restrict (License): Change to LGPL.
23352
23353 2004-11-30  Simon Josefsson  <jas@extundo.com>
23354
23355         * m4/restrict.m4: Add copyright and copying conditions.
23356
23357 2004-11-30  Simon Josefsson  <jas@extundo.com>
23358
23359         * m4/base64.m4: New file.
23360
23361 2004-11-30  Simon Josefsson  <jas@extundo.com>
23362
23363         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
23364         base64.
23365
23366         * tests/test-base64.c: New file.
23367
23368         * modules/base64: New file.
23369
23370 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
23371
23372         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
23373         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
23374
23375         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
23376
23377 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
23378
23379         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
23380         (__getcwd.c): Don't restore errno; glibc doesn't.
23381         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
23382         first, falling back to our code only if its results look suspicious.
23383         Ensure that the resulting buffer is only as large as necessary.
23384
23385         * lib/readutmp.c: Include readutmp.h first.
23386         Include <errno.h>, since readutmp.h no longer does that.
23387         * lib/readutmp.h: Don't include <errno.h>,
23388         <sys/param.h>, <time.h>; not needed to establish interface.
23389         (errno): Remove decl.
23390         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
23391         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
23392         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
23393
23394 2004-11-28  Simon Josefsson  <jas@extundo.com>
23395
23396         * lib/base64.h, base64.c: New file.
23397
23398 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
23399
23400         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
23401
23402 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23403
23404         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
23405         (Depends-on): Remove pathmax, same.  Add mempcpy.
23406         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
23407         (Makefile.am): Append getcwd.h to lib_SOURCES.
23408         (Include): Add getcwd.h.
23409         (Maintainer): Change from Jim Meyering to "all, glibc",
23410         since getdate now uses intended-for-glibc code.
23411         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
23412         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
23413
23414 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23415
23416         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
23417         HP's ANSI C compiler.
23418         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
23419         Declaring int functions causes warnings on some modern systems and
23420         shouldn't be needed to compile on ancient ones.
23421         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
23422         defined.
23423
23424         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
23425         with the following changes.
23426         (__set_errno): Parenthesize properly.
23427         Include <stdbool.h>.
23428         (MIN, MAX, MATCHING_INO): New macros.
23429         (__getcwd): Define with prototype, not K&R form.
23430         Use heuristics to allocate default buffer on stack if possible.
23431         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
23432         behavior, and to avoid the PATH_MAX limit when computing
23433         ../../../../...
23434         Use MATCHING_INO to compare inode number to file.
23435         Check for arithmetic overflow in size calculations.
23436         Fix bug in reallocation of dot array that caused getcwd to fail
23437         on directories nested deeper than 75.
23438         Be more careful about saving errno on error.
23439         Do not use realloc; use only free+malloc, as this is a bit
23440         more flexible and avoids a needless copy operation.
23441         Do not inspect st_dev and st_ino for symbolic links; POSIX
23442         doesn't specify the latter.
23443         Check for closedir errors.
23444         Avoid needless casts.
23445         Use "#ifdef weak_alias" around weak_alias, to be like other
23446         glibc code.
23447         The following changes to getcwd.c have effect only when used in
23448         gnulib; they have no effect inside glibc proper.
23449         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
23450         as alloca isn't used.
23451         (alloca, __alloca): Likewise.
23452         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
23453         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
23454         unconditionally, as gnulib assumes C89 or better.
23455         Do not include <sys/param.h>.
23456         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
23457         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
23458         better.
23459         (NULL) [!defined NULL]: Remove; we assume C89 or better.
23460         Include <dirent.h> in a way that is compatible with modern Autoconf.
23461         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
23462         New macros, if not already defined.
23463         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
23464         Use "_LIBC", not "defined _LIBC", for consistency.
23465         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
23466         a mempcpy module.
23467         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
23468         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
23469         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
23470         credit only to Jim Meyering and adjust the copyright dates.
23471         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
23472         <stdlib.h>, <unistd.h>, "pathmax.h".
23473         Instead, include "xgetcwd.h" (first) and "getcwd.h".
23474         (INITIAL_BUFFER_SIZE): Remove.
23475         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
23476
23477 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23478
23479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
23480         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
23481         Use the _ONCE methods, for efficiency.
23482         Check for fcntl.h.  In test program, include <errno.h>
23483         and <fcntl.h> if available.  Remove old K&R cruft from
23484         test program.  Check for common errors in GNU/Linux,
23485         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
23486         don't do AC_LIBOBJ, as that's getcwd.m4's job.
23487         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
23488         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
23489         name accordingly.
23490         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
23491         accommodate new getcwd.c.
23492         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
23493         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
23494         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
23495         that's all we need now.
23496
23497 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23498
23499         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
23500         argp-parse.c depends on getopt internals, that means we should
23501         always use our getopt, to be on the safe side.
23502         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
23503         order not to spoil the result of an eventual previous invocation
23504         of gl_GETOPT_SUBSTITUTE.
23505
23506 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23507
23508         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
23509         redefinition warnings. To avoid them, include the defines
23510         in `#if !defined __need_getopt ... #endif'. The only place
23511         where __getopt_argv_const is used is in definitions
23512         of getopt_long and getopt_long_only below, which are as well
23513         protected by `#ifndef __need_getopt'.
23514         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
23515         __need_getopt after including <stdio.h> and <unistd.h> These
23516         headers might have defined it.
23517
23518 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
23519
23520         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
23521
23522 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
23523
23524         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
23525         (futimens): New function, which uses futimes if available.
23526         (futimens, utimens): Support timespec==NULL, with same semantics
23527         as utime and utimens.
23528         * lib/utimens.h (futimens): New decl.
23529
23530 2004-11-23  Jim Meyering  <jim@meyering.net>
23531
23532         * lib/getopt_.h: Remove trailing blanks.
23533
23534 2004-11-23  Jim Meyering  <jim@meyering.net>
23535
23536         * lib/__fpending.c: Add comment.
23537
23538 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
23539
23540         * modules/canonicalize (Depends-on): Add xreadlink.
23541         Problem reported by James Youngman.
23542
23543 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23544
23545         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
23546         New macros.
23547         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
23548         optopt): Use them instead of invoking ## directly; otherwise, the
23549         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
23550
23551 2004-11-19  Bruno Haible  <bruno@clisp.org>
23552
23553         * lib/strtok_r.c: Move comments from here...
23554         * lib/strtok_r.h: ... to here.
23555
23556 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23557
23558         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
23559         implementations that mishandle size_t overflow.
23560
23561 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23562
23563         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
23564         might fail.  Problem reported by Yoann Vandoorselaere.
23565         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
23566         implementations that mishandle size_t overflow.
23567
23568 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23569
23570         * modules/canon-host (Depends-on): Add strdup.
23571
23572 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
23575
23576 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23577
23578         * lib/canon-host.c: Include "strdup.h".
23579         (canon_host): Use getaddrinfo if available, so that IPv6 works.
23580         Use strdup instead of malloc/strcpy to duplicate strings.
23581
23582         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
23583         (human_space_before_unit): New constant.
23584         * lib/human.c (human_readable): Support it.
23585
23586         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
23587         (xgetcwd): Set errno correctly when failing.
23588         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
23589         the failure is actually due to a PATH_MAX problem.
23590
23591         Further getopt changes to make it more likely that glibc will
23592         buy the changes back.
23593         * lib/getopt.c (POSIXLY_CORRECT): New constant.
23594         (getopt): Use it, so to preserve glibc semantic
23595         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
23596         when compiling for libc.
23597         * lib/getopt_.h (__getopt_argv_const): Bring it back.
23598         (getopt_long, getopt_long_only): Use it.
23599
23600         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
23601         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
23602         (getopt): Argv is now char * const *, as per standard.
23603         (_getopt_internal_r, _getopt_internal): Argv is now char **,
23604         not char *__getopt_argv_const *.
23605         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
23606         _getopt_long_only_r): Likewise.
23607         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
23608         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
23609         _getopt_long_r, _getopt_long_only_r): Likewise.
23610         * lib/getopt_.h (__getopt_argv_const): Remove.
23611         (getopt): Argv is now char * const *, as per standard.
23612
23613         * lib/getdate.y (tORDINAL): New token.
23614         (day, relunit): Allow it for relative times.
23615         (relative_time_table): Use tORDINAL for ordinals.
23616
23617 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
23618
23619         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
23620         Document that "second" isn't allowed as an ordinal number.
23621
23622 2004-11-16  Jim Meyering  <jim@meyering.net>
23623
23624         * modules/closeout (Depends-on): Add fpending.
23625
23626 2004-11-15  Jim Meyering  <jim@meyering.net>
23627
23628         * lib/closeout.c: Include "__fpending.h" once again.
23629         Include <stdbool.h>.
23630         (close_stdout): Don't fail just because stdout was closed initially,
23631         since some programs don't write to stdout in the normal course of
23632         operation (other than --version and --help), and we don't want this
23633         function to make e.g. `touch file >&-' fail.
23634         But do fail if it was closed and someone has tried to write to it.
23635         E.g., `printf foo >&-' must fail.
23636
23637 2004-11-13  Jim Meyering  <jim@meyering.net>
23638
23639         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
23640
23641 2004-11-12  Simon Josefsson  <jas@extundo.com>
23642
23643         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
23644         small doc fix is still pending.
23645
23646 2004-11-11  Simon Josefsson  <jas@extundo.com>
23647
23648         * modules/strtok_r: New file.
23649
23650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23651         strtok_r.
23652
23653 2004-11-11  Simon Josefsson  <jas@extundo.com>
23654
23655         * m4/strtok_r.m4: New file.
23656
23657         * m4/getopt.m4: Replace opterr.
23658
23659 2004-11-11  Simon Josefsson  <jas@extundo.com>
23660
23661         * lib/strtok_r.h, strtok_r.c: New file.
23662
23663 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23664
23665         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
23666         of replacing opterr, getopt, etc.  This should handle the
23667         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
23668
23669 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23670
23671         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
23672         we can stop lying to compilers about the constness of argv when we
23673         are compiled outside glibc.
23674         (getopt, getopt_long, getopt_long_only): Use it.
23675         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
23676         _getopt_internal, getopt): Likewise.
23677         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
23678         _getopt_long_only_r): Likewise.
23679         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
23680         _getopt_long_r, _getopt_long_only_r): Likewise.
23681
23682         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
23683         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
23684         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
23685         the other external symbols.
23686         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
23687         declaration, since the above renaming now works around collisions.
23688
23689 2004-11-11  Jim Meyering  <jim@meyering.net>
23690
23691         * lib/linebreak.c: Remove trailing blanks.
23692         * lib/alloca_.h: Likewise.
23693         * lib/acosl.c: Likewise.
23694         * lib/euidaccess.c: Likewise.
23695         * lib/allocsa.h: Likewise.
23696
23697 2004-11-10  Simon Josefsson  <jas@extundo.com>
23698
23699         * m4/getaddrinfo.m4: New file.
23700
23701 2004-11-10  Simon Josefsson  <jas@extundo.com>
23702
23703         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
23704
23705 2004-11-10  Simon Josefsson  <jas@extundo.com>
23706
23707         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23708         getaddrinfo.
23709
23710         * modules/getaddrinfo: New file.
23711
23712 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23713
23714         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
23715
23716 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23717
23718         * lib/mktime.c (SHR): New macro, which is a portable
23719         substitute for >> that should work even on Crays.
23720         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
23721         Problem reported by Mark D. Baushke in
23722         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
23723         * lib/getdate.y (SHR): Likewise.
23724         (tm_diff): Use it.
23725         * lib/strftime.c (SHR): Likewise.
23726         (tm_diff): Use it.
23727         * lib/quotearg.c (struct quoting_options): Use unsigned int for
23728         quote_these_too, so that right shifts are well defined.  All uses
23729         changed.
23730
23731 2004-11-10  Jim Meyering  <jim@meyering.net>
23732
23733         Ensure that no close failure goes unreported.
23734         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
23735         return early when it seems there's nothing to flush.
23736         Don't include __fpending.h.
23737
23738 2004-11-10  Jim Meyering  <jim@meyering.net>
23739
23740         * modules/closeout (Depends-on): Remove fpending.
23741
23742 2004-11-10  Jim Meyering  <jim@meyering.net>
23743
23744         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
23745
23746 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23747
23748         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
23749         gl_FUNC_STRFTIME.
23750         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
23751         and AC_REQUIRE when possible, to avoid duplicate checks.
23752         Check for <wchar.h>.
23753
23754 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23755
23756         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
23757
23758 2004-11-09  Bruno Haible  <bruno@clisp.org>
23759
23760         * m4/sockpfaf.m4: New file.
23761
23762 2004-11-05  Bruno Haible  <bruno@clisp.org>
23763
23764         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
23765         Reported by Mark D. Baushke <mdb@cvshome.org>.
23766
23767 2004-11-04  Bruno Haible  <bruno@clisp.org>
23768
23769         2004-09-11  Bruno Haible  <bruno@clisp.org>
23770                 * allocsa.valgrind: New file.
23771         2004-02-06  Bruno Haible  <bruno@clisp.org>
23772                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
23773                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
23774                 Reported by Christopher Seip <chris.seip@hp.com>.
23775
23776 2004-11-04  Bruno Haible  <bruno@clisp.org>
23777
23778         * modules/allocsa (Files): Add lib/allocsa.valgrind.
23779         (Makefile.am): Distribute it.
23780
23781 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23782
23783         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
23784         with errno == ERANGE if the buffer is too small.
23785         Problem reported by Mark D. Baushke.
23786
23787 2004-11-03  Albert Chin  <china@thewrittenword.com>
23788             Paul Eggert  <eggert@cs.ucla.edu>
23789
23790         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
23791         equivalent, substitute $ac_type for equivalent type rather than
23792         blindly using uint32_t *always* which won't work if uint32_t is not
23793         available.  Define _UINT32_T to work around typedef of uint32_t if
23794         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
23795         2.5.1.
23796
23797 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23798
23799         * m4/jm-macros.m4: Sync from coreutils.
23800         (gl_MACROS): Check for mbrlen, for pathchk.
23801         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
23802
23803 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23804
23805         * lib/xreadlink.c (MAXSIZE): New macro.
23806         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
23807         size does not exceed MAXSIZE.  Avoid cast.
23808         As suggested by Mark D. Baushke in
23809         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
23810         if readlink fails with buffer size just under MAXSIZE, try again
23811         with MAXSIZE.
23812
23813 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23814
23815         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
23816
23817 2004-11-02  Derek R. Price  <derek@ximbiot.com>
23818         and  Paul Eggert  <eggert@cs.ucla.edu>
23819
23820         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
23821         (get_date): Overparenthesize to avoid GCC warning.
23822
23823 2004-11-02  Bruno Haible  <bruno@clisp.org>
23824
23825         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
23826         returns void.
23827
23828 2004-11-02  Bruno Haible  <bruno@clisp.org>
23829
23830         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
23831         function returns void.
23832
23833 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23834
23835         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
23836         fflush_unlocked, flockfile, funlockfile, funlockfile,
23837         fputs_unlocked, putc_unlocked.
23838
23839 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23840
23841         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
23842         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
23843         already declared.
23844
23845 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23846
23847         * modules/getdate (Files): Add doc/getdate.texi.
23848         (Depends-on): Add setenv, xalloc.
23849
23850 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23851
23852         * lib/getdate.y: Add support for TZ="foo" within a date string.
23853         Fix some bugs near time_t boundaries.  Reject dates with
23854         out-of-range components, e.g., "Sept 31".
23855         Include <stdlib.h>, "setenv.h", "xalloc.h".
23856         (ISDIGIT_LOCALE): Remove; unused.
23857         Note that the TZ and time functions used here are not reentrant.
23858         (mktime_ok, get_tz): New functions.
23859         (TZBUFSIZE): New constant.
23860         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
23861         This requires that we sometimes generate our own TZ="XXX..." setting.
23862
23863 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23864
23865         * doc/getdate.texi: New file, from coreutils with modifications for
23866         the new TZ parsing.
23867
23868 2004-10-27  Derek R. Price  <derek@ximbiot.com>
23869
23870         * lib/mktime.c (not_equal_tm): Remove redundant check.
23871
23872 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23873
23874         * modules/regex (lib_SOURCES): Add regex.c.
23875         Reported by James Youngman in
23876         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
23877
23878 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23879
23880         * lib/getdate.y: Use Bison 1.875 features, and some minor
23881         code cleanups.  This change does not affect semantics.
23882         Don't include <stdlib.h>; no longer needed.
23883         Don't include unlocked-io.h; only the "#if TEST" code uses
23884         stdio, and performance isn't crucial there.
23885         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
23886         Bison 1.875 features as described below.
23887         All uses of "PC." replaced by "pc->".
23888         (YYSTYPE): Add a forward declaration.
23889         (yylex, yyerror): Use full prototypes in forward decls.
23890         Use "%pure-parser" rather than obsolescent "%pure_parser".
23891         Use %parse-param and %lex-param instead of obsolescent
23892         YYPARSE_PARAM and YYLEX_PARAM.
23893         (meridian_table, month_and_day_table, time_units_table,
23894         relative_time_table, time_zone_table, military_table,
23895         lookup_zone, lookup_word, get_date):
23896         Use NULL instead of 0 where appropriate.
23897         (to_hour): Avoid abort (), to avoid a dependency on
23898         stdlib.h.
23899         (yyerror, yylex): Now accepts parser_control * arg.
23900         (main) [TEST]: Use '\0' rather than 0 for char.
23901
23902 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23903
23904         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
23905
23906 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23907
23908         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
23909         It's now the caller's responsibility to handle the case where
23910         !HAVE_GETPAGESIZE && !defined getpagesize.
23911
23912         * lib/mktime.c (leapyear): Arg is long int, not int.
23913
23914 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23915
23916         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
23917
23918 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
23919
23920         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
23921         missing.  Problem reported by James Youngman.
23922
23923 2004-10-16  Simon Josefsson  <jas@extundo.com>
23924
23925         * gnulib-tool: Fix comments.  Fix parse problem.
23926         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
23927
23928 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
23929
23930         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
23931         implementation of getopt_long.  Problem reported by Alexander Taler in:
23932         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
23933
23934 2004-10-15  Bruno Haible  <bruno@clisp.org>
23935
23936         * gnulib-tool: Untabify. Initialize supplied_libname.
23937         (func_usage): More homogenous output.
23938         (func_modules_transitive_closure, func_modules_to_filelist,
23939         func_emit_lib_Makefile_am): New functions.
23940         (func_import): New function, extracted from big case statement. Use
23941         func_get_license, func_modules_transitive_closure,
23942         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
23943         opt_lgpl. Don't use test -a, as it's not portable.
23944         (func_create_testdir): Use func_modules_transitive_closure,
23945         func_modules_to_filelist, func_emit_lib_Makefile_am.
23946
23947 2004-10-15  Bruno Haible  <bruno@clisp.org>
23948
23949         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
23950
23951 2004-10-15  Bruno Haible  <bruno@clisp.org>
23952
23953         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
23954         the portions belonging to each module.
23955         Suggested by Derek Robert Price <derek@ximbiot.com>.
23956
23957 2004-10-12  Simon Josefsson  <jas@extundo.com>
23958
23959         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
23960         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
23961         to real functions.
23962
23963 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23964
23965         * modules/vsnprintf: New file.
23966
23967 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23968
23969         * m4/vsnprintf.m4: New file.
23970
23971 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23972
23973         * lib/vsnprintf.h: New file.
23974         * lib/vsnprintf.c: New file.
23975
23976 2004-10-11  Bruno Haible  <bruno@clisp.org>
23977
23978         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
23979         vsnprintf.
23980
23981 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23982
23983         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
23984
23985 2004-10-07  Bruno Haible  <bruno@clisp.org>
23986
23987         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
23988         fits into the provided buffer.
23989
23990 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * lib/diacrit.c, diacrit.h: Add GPL notice.
23993
23994         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
23995         notice.
23996         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
23997         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
23998         This avoids a potential constant-folding bug.
23999
24000 2004-10-05  Bruno Haible  <bruno@clisp.org>
24001
24002         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
24003         for the declaration of strsep.
24004
24005 2004-10-05  Bruno Haible  <bruno@clisp.org>
24006
24007         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
24008
24009 2004-10-04  Simon Josefsson  <jas@extundo.com>
24010
24011         * modules/memmem: New file.
24012         * tests/test-memmem.c: New file.
24013         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
24014
24015 2004-10-04  Simon Josefsson  <jas@extundo.com>
24016
24017         * m4/memmem.m4: New file.
24018
24019 2004-10-04  Simon Josefsson  <jas@extundo.com>
24020
24021         * lib/memmem.h: New file.
24022         * lib/memmem.c: New file, taken from glibc.
24023
24024 2004-10-04  Simon Josefsson  <jas@extundo.com>
24025
24026         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
24027         '#ifdef USE_UNLOCKED_IO'.
24028
24029 2004-10-04  Simon Josefsson  <jas@extundo.com>
24030
24031         * config/srclist.txt: Add memmem from glibc.
24032
24033 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
24034
24035         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
24036
24037         * modules/argmatch, modules/argp, modules/closeout, modules/error,
24038         modules/exclude, modules/getdate, modules/getline,
24039         modules/getndelim2, modules/getpass, modules/getpass-gnu,
24040         modules/getusershell, modules/linebuffer, modules/md5,
24041         modules/mountlist, modules/posixtm, modules/readtokens,
24042         modules/readutmp, modules/regex, modules/sha1,
24043         modules/version-etc, modules/yesno:
24044         Remove dependency on unlocked-io.
24045
24046 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
24047
24048         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
24049
24050         * m4/unlocked-io.m4: Add copyright notice.
24051         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
24052
24053 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
24056         * lib/xmalloc.c (xmemdup): Likewise.
24057         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
24058         XFREE): Remove these long-obsolescent macros.
24059         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
24060         * lib/xstrdup.c: Remove.
24061
24062         * lib/regex.c (re_comp): Cast gettext return value to char *,
24063         Problem reported by Martin Neitzel via Mark D. Baushke.
24064
24065 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
24066
24067         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
24068         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
24069         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
24070         regex.c, sha1.c, version-etc.c, yesno.c:
24071         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
24072         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
24073         the includer's responsibility.
24074
24075         Sync from coreutils.
24076
24077         * lib/modechange.c (mode_compile): Don't decrement a pointer that
24078         points to the start of a string, as the C Standard says the
24079         resulting behavior is undefined.
24080
24081         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
24082         simple -> simple_backups, numbered_existing ->
24083         numbered_existing_backups, numbered -> numbered_backups
24084         to avoid shadowing problems.  All uses changed.
24085         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
24086         * lib/backupfile.c (check_extension, numbered_backup):
24087         Rename locals to avoid shadowing 'basename'.
24088         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
24089         once.
24090
24091         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
24092         * lib/.cvsignore: Add getopt.h.
24093
24094 2004-10-04  Bruno Haible  <bruno@clisp.org>
24095
24096         * modules/README: New file.
24097         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
24098         not a module.
24099
24100 2004-10-02  Jim Meyering  <jim@meyering.net>
24101
24102         * lib/dirfd.h, getpagesize.h: Add copyright notice.
24103
24104 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24105
24106         * modules/strsep: New file.
24107
24108 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24109
24110         * m4/strsep.m4: New file.
24111
24112 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24113
24114         * lib/strsep.h: New file.
24115         * lib/strsep.c: New file.
24116
24117 2004-10-01  Simon Josefsson  <jas@extundo.com>
24118
24119         * lib/snprintf.c (snprintf): Handle size==0.
24120
24121 2004-10-01  Simon Josefsson  <jas@extundo.com>
24122             Bruno Haible  <bruno@clisp.org>
24123
24124         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
24125         (snprintf): Declare 'args'.
24126
24127 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
24128
24129         * lib/snprintf.c: Remove comments as to why each header is needed.
24130
24131 2004-10-01  Bruno Haible  <bruno@clisp.org>
24132
24133         * MODULES.html.sh: Add strsep.
24134
24135 2004-09-30  Simon Josefsson  <jas@extundo.com>
24136
24137         * modules/snprintf: New file.
24138
24139 2004-09-30  Simon Josefsson  <jas@extundo.com>
24140
24141         * m4/snprintf.m4: New file.
24142
24143 2004-09-30  Simon Josefsson  <jas@extundo.com>
24144
24145         * lib/snprintf.h, lib/snprintf.c: New files.
24146
24147 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24148
24149         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
24150         (hol_entry_help): Never translate an empty string.
24151         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
24152         * lib/argp.h (OPTION_NO_TRANS): New option.
24153
24154 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
24155
24156         * modules/argp (Maintainer): Replace Simon Josefsson
24157         by Sergey Poznyakoff.
24158
24159 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
24160
24161         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
24162         changes merged back into glibc.
24163
24164 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
24165
24166         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
24167
24168 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
24169
24170         * lib/xvasprintf.c: Include xalloc.h.
24171         (xvasprintf): Use xalloc_die, not xmalloc_die.
24172
24173 2004-09-29  Bruno Haible  <bruno@clisp.org>
24174
24175         * modules/alloca-opt: New file, derived from modules/alloca.
24176         * modules/allocsa: Depend on alloca-opt instead of alloca.
24177         * modules/setenv: Likewise.
24178         * modules/vasnprintf: Likewise.
24179         * MODULES.html.sh: Add alloca-opt.
24180
24181 2004-09-28  Simon Josefsson  <jas@extundo.com>
24182
24183         * gnulib-tool: New parameter --lgpl, to asseert that modules are
24184         LGPL, and to replace license template from GPL to LGPL.
24185
24186 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
24187
24188         * modules/dummy: Change license to LGPL.
24189
24190 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
24191
24192         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
24193
24194 2004-09-24  Simon Josefsson  <jas@extundo.com>
24195
24196         * modules/minmax (License): Change from GPL to LGPL.
24197
24198 2004-09-23  Simon Josefsson  <jas@extundo.com>
24199
24200         * gnulib-tool (--import): Typo.
24201
24202 2004-09-23  Simon Josefsson  <jas@extundo.com>
24203
24204         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
24205
24206 2004-09-22  Bruno Haible  <bruno@clisp.org>
24207
24208         * modules/*: Add 'License' field.
24209         * gnulib-tool: Accept --extract-license option.
24210         (func_get_license): New function.
24211
24212 2004-09-21  Bruno Haible  <bruno@clisp.org>
24213
24214         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
24215         Reported by Simon Josefsson.
24216
24217 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24218
24219         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
24220         gl_AC_TYPE_LONG_LONG.
24221
24222 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24223
24224         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
24225
24226 2004-09-18  Simon Josefsson  <jas@extundo.com>
24227         and  Paul Eggert  <eggert@cs.ucla.edu>
24228
24229         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
24230         calls with autoreconf.  Define GL_LIB.
24231
24232 2004-09-14  Karl Berry  <karl@gnu.org>
24233
24234         * config/srclist.txt: unsync setenv.c, sigh.
24235
24236 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24237
24238         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
24239         Problem reported by Bruno Haible in:
24240         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
24241
24242 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24243
24244         * config/srclist.txt: Comment out argp-pvh.c.
24245
24246 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24247
24248         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
24249         in case some system header has #define'd it.  Problem reported by
24250         Soeren D. Schulze in
24251         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
24252
24253 2004-09-09  Karl Berry  <karl@gnu.org>
24254
24255         * regex.[ch]: delete from the root.  These were supposed to be
24256                 synced with emacs cvs, but this has not happened for about
24257                 a year, and anyway nothing else uses emacs regex.[ch].
24258                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
24259                 lib/regex[.ch] is untouched.
24260
24261 2004-09-09  Bruno Haible  <bruno@clisp.org>
24262
24263         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
24264
24265 2004-09-09  Bruno Haible  <bruno@clisp.org>
24266
24267         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
24268         modifications.
24269         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
24270
24271 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
24272
24273         * modules/xvasprintf: New file.
24274         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
24275
24276 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
24277
24278         * lib/xvasprintf.h: New file.
24279         * lib/xvasprintf.c: New file.
24280         * lib/xasprintf.c: New file.
24281
24282 2004-09-08  Bruno Haible  <bruno@clisp.org>
24283
24284         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
24285
24286 2004-09-08  Bruno Haible  <bruno@clisp.org>
24287
24288         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
24289         length is > INT_MAX.
24290         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
24291         more.
24292
24293 2004-09-08  Bruno Haible  <bruno@clisp.org>
24294
24295         * lib/stdint_.h: New file, taken from GNU clisp.
24296
24297 2004-09-08  Bruno Haible  <bruno@clisp.org>
24298             Oskar Liljeblad  <oskar@osk.mine.nu>
24299
24300         * modules/stdint: New file.
24301         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
24302
24303 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24304
24305         Import from coreutils.
24306         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
24307         strings on unbounded length.  alloca's performance benefits aren't
24308         that important here.
24309         (V_STRDUP): Remove.
24310         (parse_with_separator): New function, with most of the internals
24311         of the old parse_user_spec.  Allow user to omit both user and group,
24312         for compatibility with FreeBSD.
24313         Clone only the user name, not the entire spec.
24314         Do not set *uid, *gid unless entirely successful.
24315         Avoid memory leak in some failing cases.
24316         Fix regression for USER.GROUP reported by Dmitry V. Levin in
24317         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
24318         (parse_user_spec): Rewrite to use parse_with_separator.
24319
24320 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         * modules/userspec: Don't depend on alloca.
24323
24324 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24325
24326         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
24327
24328 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24329
24330         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
24331         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
24332         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
24333
24334 2004-08-16  Simon Josefsson  <jas@extundo.com>
24335
24336         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
24337         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
24338         Add --dry-run for --import.
24339         Let user provided command line parameters override configure.ac
24340         settings.
24341
24342 2004-08-12  Simon Josefsson  <jas@extundo.com>
24343
24344         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
24345         as discussed with Paul Eggert in threads rooted at
24346         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
24347         and
24348         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
24349         Before, the test was empty, and relied on ELIDE_CODE in source
24350         code.)
24351         (gl_PREREQ_GETOPT): New macro.
24352         (gl_GETOPT): Use them.
24353
24354 2004-08-12  Simon Josefsson  <jas@extundo.com>
24355
24356         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
24357         * lib/getopt_.h: Renamed from getopt.h.
24358
24359 2004-08-12  Simon Josefsson  <jas@extundo.com>
24360
24361         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
24362         Change default library name from libfoo to libgnu.
24363         Now, if you have a configure.ac that says:
24364                 gl_SOURCE_BASE(gl)
24365                 gl_M4_BASE(gl/m4)
24366                 gl_MODULES(error getopt etcetera)
24367                 gl_INIT
24368         you can import all you need by running:
24369                 ../gnulib/gnulib-tool --import
24370
24371         * modules/getopt (Files): Rename getopt.h to getopt_.h.
24372         (Makefile.am): Rewrite, use logic from argz.
24373         (Include): Use <getopt.h> instead of "getopt.h".
24374
24375 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24376
24377         * modules/argp (Files): Add m4/unlocked-io.m4.
24378         (Depends-on): Add extensions.
24379
24380 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24381
24382         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
24383         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
24384         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
24385         Check for program_invocation_name, program_invocation_short_name,
24386         flockfile, funlockfile, features.h, _getopt_long_only_r.
24387
24388 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
24391         its complicated substitute.
24392         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
24393         and program_invocation_name.
24394         (__argp_basename) [!_LIBC]: Remove; the only use was
24395         replaced by its body.
24396         (__argp_short_program_name): Change condition from
24397         !defined __argp_short_program_name to
24398         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
24399         to match argp-namefrob.h.
24400         (__argp_failure): Don't assume strerror_r returns char *.
24401         * lib/argp-parse.c (N_): Define unconditionally.
24402         (argp_default_options): Fill out initializers with 0 to avoid
24403         gcc warnings.
24404
24405 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
24406
24407         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
24408         getopt1.c.
24409
24410 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24411
24412         Merge from coreutils.
24413
24414         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
24415
24416         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
24417         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
24418
24419 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24420
24421         Merge from coreutils.
24422
24423         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
24424         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
24425         for Reliant Unix 5.43.
24426
24427         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
24428         (union fooround): Use uintmax_t, not long int.
24429         The rest is a merge from libc:
24430         [defined _LIBC]: Include <shlib-compat.h>.
24431         (_obstack) [defined _LIBC]: Remove after 2.3.4.
24432
24433         * lib/settime.c (settime): Recode to avoid warning with
24434         Sun Forte C 6U2.
24435
24436         * lib/strverscmp.c: Convert to UTF-8.
24437
24438 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24439
24440         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24441         m4/uintmax_t.m4.
24442
24443 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24444
24445         * modules/xalloc-die: New file.
24446         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
24447
24448         * modules/md5 (Files): Add m4/uint32_t.m4.
24449         * modules/sha1: Renamed from modules/sha.
24450         (Files):
24451         Rename lib/sha.h to lib/sha1.h.
24452         Rename lib/sha.c to lib/sha1.c.
24453         Rename m4/sha.m4 to m4/sha1.m4.
24454         (lib_SOURCES): Likewise.
24455         (configure.ac): Rename gl_SHA to gl_SHA1.
24456         (Include): sha.h -> sha1.h.
24457
24458 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24459
24460         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
24461         * m4/sha1.m4: Renamed from sha.m4.
24462         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
24463
24464 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
24465
24466         * lib/obstack.h (obstack_empty_p):
24467         Don't assume that chunk->contents is suitably aligned.
24468         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
24469         Likewise. Problem reported by Benno in
24470         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
24471
24472         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
24473         readable.  This could be improved further but it'd take some work.
24474
24475 2004-08-08  Simon Josefsson  <jas@extundo.com>
24476
24477         * modules/xgethostname (Depends-on): Remove exit and error (not
24478         used).
24479
24480         * modules/getpass-gnu: Add getpass.h.
24481         (Depends-on): Add stdbool.
24482         * modules/getpass: Add getpass.h.
24483
24484 2004-08-08  Simon Josefsson  <jas@extundo.com>
24485
24486         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
24487         Check getpass declaration.
24488
24489 2004-08-08  Simon Josefsson  <jas@extundo.com>
24490
24491         * lib/xgethostname.c: Don't include error.h (not used).
24492
24493         * lib/getpass.h: Add.
24494         * lib/getpass.c: Include getpass.h first.
24495
24496 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
24497
24498         * lib/xalloc-die.c: New file.
24499         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
24500         All uses removed.
24501         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
24502         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
24503         xalloc-die.c.
24504         (_, N_, xalloc_die): Move to xalloc-die.c.
24505         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
24506         so that we needn't mess with xalloc_msg_memory_exhausted.
24507
24508         * lib/sha1.h: Renamed from sha.h.
24509         (SHA1_H): Renamed from _SHA_H.
24510         (sha1_ctx): Renamed from sha_ctx.
24511         (sha1_init_ctx): Renamed from sha_init_ctx.
24512         (sha1_process_block): Renamed from sha_process_block.
24513         (sha1_process_bytes): Renamed from sha_process_bytes.
24514         (sha1_finish_ctx): Renamed from sha_finish_ctx.
24515         (sha1_read_ctx): Renamed from sha_read_ctx.
24516         (sha1_stream): Renamed from sha_stream.
24517         (sha1_buffer): Renamed from sha_buffer.
24518         * lib/sha1.c: Likewise; renamed from sha.c.
24519         Do not include <sys/types.h>.
24520         Include <stddef.h> rather than <stdlib.h>.
24521
24522 2004-08-08  Bruno Haible  <bruno@clisp.org>
24523
24524         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
24525         FILESYSTEM_PREFIX_LEN.
24526         * lib/progreloc.c: Likewise.
24527         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
24528
24529 2004-08-06  Simon Josefsson  <jas@extundo.com>
24530
24531         * modules/progname (Depends-on): Don't depend on stdbool.
24532
24533 2004-08-06  Simon Josefsson  <jas@extundo.com>
24534
24535         * modules/getsubopt: New file.
24536         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24537         getsubopt.
24538
24539 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
24540
24541         More merge from coreutils.
24542
24543         * m4/utimens.m4, m4/utimecmp.m4: New files.
24544         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
24545         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
24546         prereq.m4, sha.m4: Import changes from coreutils.
24547
24548 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
24549
24550         More merge from coreutils.
24551         * modules/raise, modules/readtokens0, modules/utimens:
24552         * modules/utimecmp, module/xnanosleep: New files.
24553         * modules/strftime: Add lib/strftime.h.
24554         Change include from <time.h> to "strftime.h".
24555         * modules/yesno: Add lib/yesno.h.
24556         * modules/backupfile: Remove lib/addext.c.
24557         * modules/euidaccess: Add stat-macros.h.
24558         * modules/canonicalize, modules/euidaccess,
24559         modules/filemode, modules/lchown, modules/makepath,
24560         modules/rmdir, modules/stat: Likewise.
24561
24562 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         Merge from tar.
24565         * lib/argp-help.c (make_hol, hol_append): Don't assume that
24566         SIZE_MAX is a valid preprocessor constant.
24567         (__argp_basename): Change from "#ifndef _LIBC"
24568         to "#ifndef __argp_short_program_name", so that
24569         we don't compile these functions for tar.
24570
24571         More merges from coreutils.
24572         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
24573         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
24574         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
24575         * lib/addext.c: Remove; no longer needed.
24576         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
24577         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
24578         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
24579         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
24580         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
24581         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
24582         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
24583         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
24584         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
24585         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
24586         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
24587         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
24588         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
24589         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
24590         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
24591         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
24592         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
24593         Import changes from coreutils.
24594
24595 2004-08-05  Simon Josefsson  <jas@extundo.com>
24596
24597         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
24598
24599 2004-08-05  Simon Josefsson  <jas@extundo.com>
24600
24601         * m4/getsubopt.m4: New file.
24602
24603 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24604
24605         Merge from coreutils.
24606
24607         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
24608         * m4/getcwd-path-max.m4: New files.
24609
24610         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
24611         FILESYSTEM_PREFIX_LEN ->
24612         FILE_SYSTEM_PREFIX_LEN.
24613         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
24614         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
24615         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
24616         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
24617
24618         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
24619         prerequisite modules now handle the DOS stuff.
24620         Don't check for unistd.h.
24621
24622 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24623
24624         Merge from coreutils.
24625
24626         * lib/.gdb-history: Remove; this doesn't belong here.
24627
24628         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
24629         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
24630         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
24631         * lib/getcwd.c: New files.
24632
24633         * lib/dirname.h: Include <stdbool.h>.
24634         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
24635         for consistency with POSIX terminology.  All uses changed.
24636         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
24637         (strip_trailing_slashes): Use bool for booleans.
24638         * lib/stripslash.c (strip_trailing_slashes): Likewise.
24639
24640         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
24641         sometimes returns a positive errno value even when it succeeds.
24642         (print_errno_message) [!LIBC]: Fall back on strerror if
24643         __strerror_r fails.
24644
24645         * lib/path-concat.c (mempcpy): Don't define if a system header defines
24646         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
24647         (longest_relative_suffix): New function.
24648         (path_concat): Use it.  Assume first argument is not NULL.
24649         Port to DOS.  Omit redundant separators.
24650         Report an error instead of returning NULL.
24651         Use mempcpy instead of memcpy.
24652         (xpath_concat): Remove: not declared or used.
24653
24654         * lib/same.h: Include <stdbool.h>
24655         (same_name): Return bool, not int.
24656         * lib/same.c (same_name): Likewise.
24657         (errno): Don't declare; we assume C89 or better now.
24658
24659         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
24660         if not already defined.
24661
24662         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
24663         * lib/dup-safer.c (errno): Likewise.
24664
24665 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
24666
24667         Merge from coreutils.
24668         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
24669         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
24670         * modules/path-concat: Don't depend on strdup.
24671
24672 2004-08-03  Simon Josefsson  <jas@extundo.com>
24673
24674         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
24675         * lib/progname.h: Don't include stdbool.h.
24676
24677 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24678
24679         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
24680         * MODULES.html.sh (func_all_modules): Remove fatal.
24681
24682 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24683
24684         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
24685
24686 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
24687
24688         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
24689         working.
24690
24691 2004-08-02  Simon Josefsson  <jas@extundo.com>
24692
24693         * lib/getsubopt.h: New file, with comments from Bruno Haible.
24694         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
24695         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
24696
24697 2004-08-01  Simon Josefsson  <jas@extundo.com>
24698
24699         * lib/xgetdomainname.c: Include stdlib.h, for free().
24700
24701 2004-07-19  Bruno Haible  <bruno@clisp.org>
24702
24703         * MODULES.html.sh (func_all_modules): Add dummy.
24704
24705 2004-07-16  Simon Josefsson  <jas@extundo.com>
24706
24707         * modules/dummy: New file.
24708
24709 2004-07-16  Simon Josefsson  <jas@extundo.com>
24710
24711         * lib/dummy.c: New file.
24712
24713 2004-07-16  Bruno Haible  <bruno@clisp.org>
24714
24715         * lib/backupfile.h: Add extern "C" for C++.
24716         * lib/closeout.h: Likewise.
24717         * lib/copy-file.h: Likewise.
24718         * lib/findprog.h: Likewise.
24719         * lib/full-write.h: Likewise.
24720         * lib/pathname.h: Likewise.
24721         * lib/progname.h: Likewise.
24722         * lib/stpcpy.h: Likewise.
24723         * lib/stpncpy.h: Likewise.
24724         * lib/strcase.h: Likewise.
24725         * lib/strstr.h: Likewise.
24726         * lib/xalloc.h: Likewise.
24727
24728         * lib/mbswidth.h: Add extern "C" for C++.
24729         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
24730
24731 2004-07-13  Robert Millan  <robertmh@gnu.org>
24732
24733         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
24734
24735 2004-07-09  Simon Josefsson  <jas@extundo.com>
24736
24737         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
24738         failed without this.)
24739
24740 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24741
24742         * modules/chown (Files): Add lib/fchown-stub.c, since
24743         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
24744
24745 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24746
24747         * lib/fchown-stub.c: New file.
24748
24749 2004-06-24  Jim Meyering  <jim@meyering.net>
24750
24751         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
24752
24753 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         * modules/argz: Omit "#include".
24756
24757         * MODULES.html.sh (func_all_modules): Add calloc, to match
24758         2004-06-01 addition of calloc module.
24759
24760 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24761
24762         * m4/argz.m4: New file, which is autoupdated from libtool.
24763
24764 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24765
24766         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
24767         libtool.
24768
24769 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24770
24771         * config/srclist-update: Don't insist on "USA." before the
24772         close-comment, as libtool omits the period and puts the */ on a
24773         separate line.
24774         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
24775         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
24776
24777 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
24778
24779         * modules/argz: New file.
24780         * MODULES.html.sh (func_all_modules): Add argz.
24781
24782 2004-06-12  Jim Meyering  <jim@meyering.net>
24783         and  Paul Eggert  <eggert@cs.ucla.edu>
24784
24785         * modules/hash (Files): Add lib/xalloc.h.
24786         * modules/pipe (Depends-on): Add wait-process.
24787         * modules/stat (Depends-on): Add xalloc.
24788         * modules/userspec (Files): Add lib/userspec.h.
24789         * modules/xstrto
24790
24791         Upgrade from gettext-0.13.
24792         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
24793         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
24794         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
24795
24796 2004-06-10  Jim Meyering  <jim@meyering.net>
24797
24798         * lib/calloc.c: New file.
24799
24800 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
24801
24802         * lib/getdate.y (yylex): Allow space between sign and number.
24803         Problem reported by Dan Jacobson.
24804
24805 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
24806
24807         Merge from coreutils CVS.
24808
24809         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
24810         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
24811         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
24812         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
24813         xstrtol.m4: Fix copyright date and/or serial number.
24814
24815         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
24816         See if we need an fchown replacement.
24817         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
24818         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
24819         and use the replacement function if we detect either defect.
24820
24821         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
24822         gl_UTIMECMP.
24823
24824 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
24825         and  Jim Meyering  <jim@meyering.net>
24826
24827         Merge from coreutils CVS.
24828
24829         * lib/stat-macros.h: New file, with contents from file-type.h
24830         and coreutils' system.h.
24831         * lib/file-type.c: Include "stat-macros.h".
24832         * lib/file-type.h (file_type): Move all macro definitions to new file,
24833         stat-macros.h.
24834
24835         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
24836         Wrap old code with this conditional.
24837         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
24838         function that does not dereference symlinks.
24839         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
24840
24841         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
24842         dependency problems.
24843         (xreadlink): Accept new arg SIZE, for efficiency.
24844         All decls and uses changed.
24845         * lib/xreadlink.h: Include <stddef.h>, for size_t.
24846
24847         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
24848         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
24849
24850         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
24851         sysexits.h.
24852
24853 2004-06-01  Jim Meyering  <jim@meyering.net>
24854
24855         * m4/calloc.m4: New file.
24856
24857 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24858
24859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
24860         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
24861         Also, fix a typo in a diagnostic.
24862
24863 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24864
24865         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
24866         or AC_FUNC_REALLOC.
24867
24868 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24869
24870         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
24871         macros to be defined.
24872         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
24873         the allocator returns NULL because the requested size is zero.
24874
24875 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24876
24877         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
24878         var.  Add comment explaining why libc still defines it.  This
24879         merges the following patch from glibc:
24880         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
24881
24882 2004-05-20  Andreas Schwab  <schwab@suse.de>
24883
24884         * m4/free.m4: Replace free if it not known to work, not the other
24885         way round.
24886
24887 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24888
24889         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
24890         present in glibc since revision 1.1 of this file.
24891         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
24892         obstack_alignment_mask, obstack_alloc, obstack_base,
24893         obstack_blank, obstack_blank_fast, obstack_chunk_size,
24894         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
24895         obstack_grow0, obstack_init, obstack_int_grow,
24896         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
24897         obstack_next_free, obstack_object_size, obstack_ptr_grow,
24898         obstack_ptr_grow_fast, obstack_room): Remove declarations of
24899         nonexistent functions.
24900
24901 2004-05-18  Karl Berry  <karl@gnu.org>
24902
24903         * config/srclist.txt: break link for vasnprintf.c.
24904
24905 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24906
24907         Port obstack to the AS/400, where pointers are 16 bytes wide and
24908         you cannot cast an integer to a valid pointer.  This patch is
24909         currently waiting to be integrated into glibc; see
24910         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
24911
24912         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
24913         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
24914         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
24915         (struct obstack): temp member is now a union of a pointer and
24916         an integer, instead of an integer.  All integer uses changed.
24917         This does not affect the physical layout of struct obstack,
24918         except on hosts (like the AS/400) where the size or alignment of
24919         void * is greater than that of ptrdiff_t.
24920         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
24921         __STDC__)]: Store temporary in pointer member of union, not
24922         integer member.
24923         * lib/obstack.c: Include <stddef.h>, for offsetof.
24924         (struct fooalign): Remove; it doesn't need a name.
24925         (union fooround): Change double to long double, and add void *.
24926         (DEFAULT_ALIGNMENT): Use offsetof to compute.
24927         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
24928         not a macro.  Hence the values are always int; so remove all
24929         casts-to-int in uses.
24930
24931 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24932
24933         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
24934         we can get this patch merged into glibc.
24935
24936 2004-05-17  Derek R. Price  <derek@ximbiot.com>
24937             Paul Eggert  <eggert@cs.ucla.edu>
24938
24939         * m4/argp: Depend on alloca.
24940
24941 2004-05-17  Derek R. Price  <derek@ximbiot.com>
24942             Paul Eggert  <eggert@cs.ucla.edu>
24943
24944         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
24945         freecoding.
24946
24947 2004-05-17  Bruno Haible  <bruno@clisp.org>
24948
24949         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
24950         precision that consists of a '.' followed by an empty digit string.
24951         Patch by Tor Lillqvist <tml@iki.fi>.
24952
24953 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24954
24955         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
24956         for backward compatibility with older code.  We need our own
24957         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
24958         it under some other name, and our alloca.h will define it.
24959
24960 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24961             Derek Price  <derek@ximbiot.com>
24962
24963         * lib/alloca.c: Include <alloca.h>, to get our interface.
24964         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
24965         include <alloca.h> first.  Use C89 prototype for alloca; this
24966         requires including <stddef.h> for size_t.  Use extern "C" if C++.
24967         Use #elif for simplicity, since we can assume C89 now.
24968         Don't try to source the system alloca.h since it will not be found
24969         and to prevent recursively including its replacement.
24970         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
24971         * lib/regex.c: Likewise.
24972
24973 2004-05-16  Derek Price  <derek@ximbiot.com>
24974             Paul Eggert  <eggert@cs.ucla.edu>
24975
24976         getline cleanup.  This changes the getndelim2 API: both order of
24977         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
24978         no delimiter).
24979
24980         * lib/getline.c: Don't include stddef.h or stdio.h, since our
24981         interface does that.
24982         (getline): Always use getdelim, so that we don't have two
24983         copies of this code.
24984         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
24985         if available.
24986         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
24987         (GETNDELIM2_MAXIMUM): New macro.
24988         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
24989         instead of the old practice of delim2==0.  All callers changed.
24990         Return -1 on overflow, instead of returning junk.
24991         Do not set *linesize unless allocation succeeds.
24992         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
24993         that we include sys/types.h.
24994         * lib/getnline.h: Likewise.
24995         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
24996         (getndelim2): Reorder arguments.
24997         * lib/getnline.c (getnline, getndelim):
24998         Don't discard the NMAX argument.
24999         (getnline): Invoke getndelim, to avoid code duplication.
25000         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
25001         of (size_t) -1 by callers of the getnline family.
25002
25003 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
25004
25005         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
25006         Check for gettimeofday.
25007         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
25008         Check for settimeofday, stime.
25009
25010 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
25011
25012         * lib/nanosleep.c (suspended): Change its type from int to
25013         sig_atomic_t volatile.
25014         (first_call): Make it private to rpl_nanosleep, and have it
25015         be zero initially as that's a bit faster.
25016         (my_usleep): Round up fractional times instead of truncating them,
25017         as this is the usual meaning for 'sleep'.
25018
25019         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
25020         doesn't work.
25021         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
25022         (ENOSYS): Define if not defined.
25023         (settime): Fall back on stime if it exists and settimeofday fails.
25024         But don't bother with fallbacks if a method fails with errno == EPERM.
25025
25026 2004-05-11  Jim Meyering  <jim@meyering.net>
25027
25028         Prior to this change, the save_cwd caller required read access to the
25029         current directory on most systems (ones with the fchdir function).
25030
25031         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
25032         fails, try write-only, and finally, resort to using xgetcwd.
25033
25034 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
25035
25036         * lib/obstack.c, obstack.h: Import changes from libc.
25037
25038 2004-04-28  Bruno Haible  <bruno@clisp.org>
25039
25040         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
25041         also implicitly appends .exe to executables.
25042         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
25043         accepts Windows pathnames.
25044         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
25045         Treat Cygwin like Windows, since it now accepts Windows pathnames.
25046         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
25047         Treat Cygwin like Windows, since it now accepts Windows pathnames.
25048         Reported by Derek Robert Price <derek@ximbiot.com>.
25049
25050 2004-04-21  Karl Berry  <karl@gnu.org>
25051
25052         * config/srclist.txt (localcharset.c): break sync.
25053
25054 2004-04-20  Paul Eggert  <eggert@twinsun.com>
25055
25056         * m4/host-os.m4: Add a copyright notice.
25057
25058 2004-04-20  Jim Meyering  <jim@meyering.net>
25059
25060         Change UTILS_ to gl_ in AC_DEFINE'd names.
25061         Change utils_- and jm_-prefixed variables, too.
25062         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
25063         UTILS_FUNC_MKDIR_TRAILING_SLASH.
25064         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
25065
25066         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
25067         Don't emit trailing blanks.
25068         Also rename jm_-prefixed variables to have gl_ prefix.
25069
25070         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
25071         Also rename jm_-prefixed variables to have gl_ prefix.
25072
25073         * m4/jm-macros.m4: Reflect the renamings.
25074         * m4/prereq.m4: Likewise.
25075
25076 2004-04-20  Jim Meyering  <jim@meyering.net>
25077
25078         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
25079         memory.
25080
25081 2004-04-20  Jim Meyering  <jim@meyering.net>
25082             Bruno Haible  <bruno@clisp.org>
25083
25084         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
25085         memory when realloc fails.
25086
25087 2004-04-19  Jim Meyering  <jim@meyering.net>
25088
25089         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
25090         now that readutmp.c may call `free (0)'.
25091
25092 2004-04-19  Bruno Haible  <bruno@clisp.org>
25093
25094         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
25095         * m4/inttypes_h.m4: Likewise.
25096         * m4/stdint_h.m4: Likewise.
25097         * m4/intmax_t.m4: Likewise.
25098         * m4/uintmax_t.m4: Likewise.
25099
25100 2004-04-18  Jim Meyering  <jim@meyering.net>
25101
25102         * m4/prereq.m4: Don't forbid jm_ prefix.
25103
25104         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
25105         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
25106         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
25107         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
25108         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
25109         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
25110         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
25111         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
25112         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
25113         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
25114         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
25115         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
25116         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
25117         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
25118         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
25119         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
25120         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
25121         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
25122         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
25123
25124 2004-04-18  Jim Meyering  <jim@meyering.net>
25125
25126         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
25127         failure, don't leak memory and do call END_UTMP_ENT.
25128
25129 2004-04-16  Jim Meyering  <jim@meyering.net>
25130
25131         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
25132         coreutils' stat program.
25133         (gl_PREREQ): Don't require jm_PREREQ_STAT.
25134
25135 2004-04-11  Paul Eggert  <eggert@twinsun.com>
25136
25137         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
25138         C89.
25139         (CHAR_BIT): Remove, since we assume C89.
25140         Include <stdint.h> if available, as per current Autoconf CVS advice.
25141
25142 2004-03-31  Jim Meyering  <jim@meyering.net>
25143
25144         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
25145         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
25146         * m4/xalloc.m4: Likewise.
25147
25148 2004-03-30  Paul Eggert  <eggert@twinsun.com>
25149
25150         Merge from coreutils.
25151
25152         * m4/inttostr.m4: New file.
25153         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
25154         Require AM_STDBOOL_H and gl_TIMESPEC instead.
25155         Require gl_CLOCK_TIME.
25156         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
25157
25158 2004-03-30  Paul Eggert  <eggert@twinsun.com>
25159
25160         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
25161         not bool, to be more consistent with Unix conventions.
25162         Suggested by Bruno Haible.
25163
25164         Merge from coreutils.
25165
25166         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
25167         * lib/umaxtostr.c: New files.
25168
25169         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
25170         the usual <time.h> dance.
25171         (get_date): Change signature to support fractional time stamps.
25172         All callers changed.
25173         * lib/getdate.y: Include "getdate.h" first, as we can now
25174         assume C89 and don't need to worry about 'const'.
25175         Similarly, include "unlocked-io.h" near start, not in middle.
25176         Include <limits.h>.
25177         (textint.value): Use long int rather than int.
25178         (textint.digits): Use size_t rather than int.
25179         (BILLION, LOG10_BILLION): New constants.
25180         (parser_control): New member rel_ns.  Members day_ordinal,
25181         time_zone, month, day, hour, minutes, rel_year, rel_month,
25182         rel_day, rel_hour, rel_minutes, rel_seconds
25183         are now long int, not int.  Member seconds is now struct timespec,
25184         not int.  New member timespec_seen.  Members dates_seen, days_seen,
25185         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
25186         not int.
25187         (%union.intval): Now long int, not int.
25188         New member timespec.
25189         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
25190         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
25191         (spec): Now is a timespec or an item list.
25192         (timespec, items): New nonterminals.
25193         (time, rel, relunit, number, get_date):
25194         Add support for fractional seconds.
25195         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
25196         (gmtime, localtime, mktime): Remove decls; not needed with C89.
25197         (to_hour): First arg is now long int, not int.
25198         (to_year): Returns long int, not int.
25199         Don't treat year -70 like 70.
25200         (tm_diff): Returns long int, not int.
25201         (lookup_word): Use bool instead of int when appropriate.
25202         (yylex): Use size_t for count, not int.
25203         Detect overflow when parsing large integer constants.
25204         Add support for fractions.
25205         (get_date): Make pointers 'const' if possible.
25206         Use more-portable code to detect integer overflow.
25207         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
25208         Don't use ctime; it's not reliable if the year has >4 digits.
25209
25210         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
25211         This is for compatibility with BSD.
25212
25213         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
25214         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
25215         From coreutils' system.h.
25216
25217         * lib/userspec.c: Don't include "posixver.h".
25218         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
25219         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
25220         compatible extension.  Simplify code by removing a boolean int
25221         that was always nonzero if a string was nonnull.
25222
25223 2004-03-30  Jim Meyering  <jim@meyering.net>
25224
25225         Merge from coreutils.
25226
25227         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
25228         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
25229         on some systems one must include <grp.h> before it.
25230         Reported by Christian Krackowizer.
25231
25232 2004-03-30  Jim Meyering  <jim@meyering.net>
25233
25234         Merge from coreutils.
25235
25236         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
25237
25238         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
25239         an empty input stream.
25240
25241         * lib/readtokens.c: Include <stdbool.h>.
25242         (readtoken): Use `size_t' rather than int/long.
25243         All callers adjusted.
25244         Use `bool' rather than `int' where appropriate.
25245         Use memset rather than an explicit loop.
25246         Use x2nrealloc rather than xrealloc.
25247         Allow the use of `\0' as a delimiter.
25248         (readtokens): Likewise.
25249         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
25250
25251 2004-03-30  Jim Meyering  <jim@meyering.net>
25252
25253         * m4/realloc.m4: Remove file, since now it does no more than
25254         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
25255         the `configure.ac' section of module/realloc.
25256         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
25257
25258 2004-03-30  Bruno Haible  <bruno@clisp.org>
25259
25260         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
25261         nonnull.
25262
25263 2004-03-29  Paul Eggert  <eggert@twinsun.com>
25264
25265         Merge changes to getloadavg.c from coreutils and Emacs.
25266
25267         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
25268         Define to an expression, not to the empty string.
25269         Include cloexec.h and xalloc.h.
25270         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
25271         Use set_cloexec_flag rather than rolling our own.
25272         * lib/cloexec.c, lib/cloexec.h: New files.
25273
25274 2004-03-29  Paul Eggert  <eggert@twinsun.com>
25275
25276         * m4/cloexec.m4: New file.
25277
25278 2004-03-18  Paul Eggert  <eggert@twinsun.com>
25279
25280         * lib/getopt.h: Sync with libc CVS.
25281
25282 2004-03-18  Paul Eggert  <eggert@twinsun.com>
25283             Bruno Haible  <bruno@clisp.org>
25284
25285         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
25286         mbswidth.
25287
25288 2004-03-18  Paul Eggert  <eggert@twinsun.com>
25289             Bruno Haible  <bruno@clisp.org>
25290
25291         * lib/mbswidth.h: Include <wchar.h> only if
25292         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
25293         <wchar.h>.
25294         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
25295
25296 2004-03-09  Paul Eggert  <eggert@twinsun.com>
25297
25298         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
25299         Sync with libc CVS.
25300         * lib/getopt_int.h: New file, also synced from libc.
25301
25302 2004-03-09  Paul Eggert  <eggert@twinsun.com>
25303
25304         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
25305         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
25306         Bring back getopt.c, getopt.h, getopt1.c.
25307
25308 2004-03-07  Paul Eggert  <eggert@twinsun.com>
25309
25310         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
25311         All uses changed.  Check for sa_sigaction member; this fixes
25312         a bug first reported by Jason Andrade in
25313         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
25314
25315 2004-03-07  Paul Eggert  <eggert@twinsun.com>
25316
25317         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
25318         '#if' expressions.  Unlike the code it replaces, it does not
25319         depend on (defined _SC_PAGESIZE).  However, it does depend on
25320         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
25321         first reported by Jason Andrade in
25322         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
25323
25324 2004-02-25  Simon Josefsson  <jas@extundo.com>
25325
25326         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
25327
25328 2004-02-25  Simon Josefsson  <jas@extundo.com>
25329
25330         * lib/strdup.h: New file.
25331         * lib/strdup.c: Include it.
25332         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
25333         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
25334
25335 2004-02-23  Karl Berry  <karl@gnu.org>
25336
25337         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
25338         (from fencepost.gnu.org:/gd/gnuorg).
25339
25340 2004-02-23  Karl Berry  <karl@gnu.org>
25341
25342         * config/srclistvars.sh (GNUORG) [karl]: redefine.
25343         * config/srclist.txt: add maintain/standards documents.
25344
25345 2004-02-18  Bruno Haible  <bruno@clisp.org>
25346
25347         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
25348         Reported by Derek Robert Price <derek@ximbiot.com>.
25349
25350 2004-02-16  Karl Berry  <karl@gnu.org>
25351
25352         * config/mkinstalldirs, install-sh: update from automake.
25353
25354 2004-02-06  Karl Berry  <karl@gnu.org>
25355
25356         * m4/po.m4: update from gettext 0.14.1.
25357
25358 2004-02-06  Karl Berry  <karl@gnu.org>
25359
25360         * lib/config.charset: update from gettext 0.14.1.
25361
25362 2004-02-05  Paul Eggert  <eggert@twinsun.com>
25363
25364         Add comments and code, prompted by suggestions from Bruno Haible
25365         for sh-quote.
25366         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
25367         describing the enum quoting_style values.
25368         * lib/quotearg.c (quotearg_alloc): New function.
25369         (quotearg_buffer_restyled): Treat lone { and } as special.
25370         Treat = as special.  Work around bug with older shells
25371         that "see" a '\' that is really the 2nd byte of a multibyte char.
25372         Quote empty string with shell_quoting_style.
25373
25374 2004-02-03  Bruno Haible  <bruno@clisp.org>
25375
25376         * m4/pipe.m4: New file, from GNU gettext.
25377
25378 2004-02-03  Bruno Haible  <bruno@clisp.org>
25379
25380         * lib/pipe.h: New file, from GNU gettext.
25381         * lib/pipe.c: New file, from GNU gettext.
25382
25383 2004-01-27  Bruno Haible  <bruno@clisp.org>
25384
25385         * m4/execute.m4: New file, from GNU gettext.
25386
25387 2004-01-27  Bruno Haible  <bruno@clisp.org>
25388
25389         * lib/execute.h: New file, from GNU gettext.
25390         * lib/execute.c: New file, from GNU gettext.
25391         * lib/w32spawn.h: New file, from GNU gettext.
25392
25393 2004-01-24  Paul Eggert  <eggert@twinsun.com>
25394
25395         Merge from diffutils.
25396
25397         * lib/file-type.c (file_type): Add typed memory objects.
25398         * lib/file-type.h (S_TYPEISTMO): New macro.
25399
25400         * lib/c-stack.h (c_stack_action): Remove argv argument.
25401         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
25402         (die): Don't calculate message unless segv_action returns.
25403         (get_stack_location, min_address_from_argv, max_address_from_argv,
25404         volatile stack_base, volatile_stack_size): Remove.
25405         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
25406         that every segmentation violation is a stack overflow.  (Ouch!)
25407         See Debian bug 136249 (still outstanding) for more info about why
25408         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
25409
25410 2004-01-24  Paul Eggert  <eggert@twinsun.com>
25411
25412         Exit-status fix from coreutils.
25413
25414         Use exit_failure consistently in place of EXIT_FAILURE,
25415         so that program exit statuses are consistent on failure.
25416
25417         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
25418         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
25419         * lib/argmatch.h: Comment fix to match the above.
25420         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
25421         Now a macro referring to exit_failure, instead of a separate
25422         variable.  Include "exitfail.h" to get it.
25423         * lib/xstrtol.h: Include "exitfail.h".
25424         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
25425
25426         * lib/long-options.c (parse_long_options): Use prototype
25427         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
25428         for clarity.
25429
25430 2004-01-21  Jim Meyering  <jim@meyering.net>
25431
25432         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
25433         so as not to conflict with a different-sized __mktime_internal
25434         function in GNU libc.
25435         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
25436         Problem building statically-linked `ls' reported by Michael Brunnbauer.
25437
25438 2004-01-20  Karl Berry  <karl@gnu.org>
25439
25440         * config/config.guess: update from config.
25441
25442         * config/srclistvars.sh: GNUWWWLICENSES for karl.
25443
25444 2004-01-20  Bruno Haible  <bruno@clisp.org>
25445
25446         Safer stack allocation.
25447         * lib/setenv.c: Include allocsa.h.
25448         (alloca): Remove fallback definition.
25449         (freea): Remove macro.
25450         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
25451         instead of freea.
25452
25453 2004-01-20  Bruno Haible  <bruno@clisp.org>
25454
25455         * m4/eealloc.m4: New file, from GNU gettext.
25456
25457 2004-01-20  Bruno Haible  <bruno@clisp.org>
25458
25459         * m4/allocsa.m4: New file, from GNU gettext.
25460
25461 2004-01-20  Bruno Haible  <bruno@clisp.org>
25462
25463         * lib/xallocsa.h: New file, from GNU gettext.
25464         * lib/xallocsa.c: New file, from GNU gettext.
25465
25466 2004-01-20  Bruno Haible  <bruno@clisp.org>
25467
25468         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
25469
25470 2004-01-20  Bruno Haible  <bruno@clisp.org>
25471
25472         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
25473         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
25474         specially.
25475
25476 2004-01-20  Bruno Haible  <bruno@clisp.org>
25477
25478         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
25479         patch.
25480
25481 2004-01-20  Bruno Haible  <bruno@clisp.org>
25482
25483         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
25484
25485 2004-01-20  Bruno Haible  <bruno@clisp.org>
25486
25487         * lib/eealloc.h: New file.
25488
25489 2004-01-20  Bruno Haible  <bruno@clisp.org>
25490
25491         * lib/binary-io.h: Avoid warnings on Cygwin.
25492
25493 2004-01-20  Bruno Haible  <bruno@clisp.org>
25494
25495         * lib/allocsa.h: New file, from GNU gettext.
25496         * lib/allocsa.c: New file, from GNU gettext.
25497
25498 2004-01-18  Karl Berry  <karl@gnu.org>
25499
25500         * doc/gpl.texi, doc/lgpl.texi: new files.
25501
25502 2004-01-18  Karl Berry  <karl@gnu.org>
25503
25504         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
25505         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
25506
25507 2004-01-15  Paul Eggert  <eggert@twinsun.com>
25508
25509         Merge from coreutils.
25510
25511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
25512         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
25513         (gl_DEFAULT_POSIX2_VERSION): Move
25514         the documentation from 'configure' into 'config.hin',
25515         so that 'configure --help' isn't burdened by it and
25516         we don't have to worry about its formatting there.
25517         Reword the documentation so that it's more succinct
25518         and can be run together into a single paragraph.
25519         * m4/same.m4 (gl_SAME): Check for pathconf.
25520
25521 2004-01-15  Paul Eggert  <eggert@twinsun.com>
25522
25523         Merge from coreutils.
25524
25525         * lib/posixver.c: Include posixver.h.
25526
25527         * lib/same.c: Include <stdbool.h>, <limits.h>.
25528         (_POSIX_NAME_MAX): Define if not defined.
25529         (MIN): New macro.
25530         (same_name): If file names are silently truncated, report
25531         that the file names are the same if they are the same after
25532         the silent truncation.
25533
25534         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
25535         conversion function.
25536         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
25537         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
25538         longer needed.
25539
25540 2004-01-15  Jim Meyering  <jim@meyering.net>
25541
25542         Merge from coreutils.
25543
25544         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
25545         if no library is required.
25546         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
25547         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
25548         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
25549         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
25550         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
25551         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
25552         value, $ac_cv_search_crypt, if it's "none required".
25553         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
25554         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
25555         not gl_FUNC_GETLOADAVG.
25556         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
25557         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
25558
25559 2004-01-15  Jim Meyering  <jim@meyering.net>
25560
25561         Merge from coreutils.
25562
25563         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
25564         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
25565         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
25566
25567         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
25568         optional configure-time default.
25569
25570         * lib/version-etc.c (version_etc_copyright): Update copyright date.
25571
25572         * lib/xreadlink.c (xreadlink): Correct outdated comment.
25573
25574 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
25575
25576         Merge from coreutils.
25577
25578         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
25579         value, $ac_cv_search_nanosleep, if it's "none required".
25580
25581 2004-01-14  Paul Eggert  <eggert@twinsun.com>
25582
25583         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
25584         with like-named macro in fnmatch.c.
25585         (EXT): Use an internal constant instead.
25586
25587         Merge fnmatch patches from glibc.
25588         * lib/fnmatch.c (mbsinit): Remove define.
25589         Add libc_hidden_ver (__fnmatch, fnmatch).
25590         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
25591         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
25592
25593 2004-01-14  Karl Berry  <karl@gnu.org>
25594
25595         * config/install-sh: update from automake.
25596
25597 2004-01-13  Karl Berry  <karl@gnu.org>
25598
25599         * config/install-sh: update from automake.
25600
25601 2004-01-09  Karl Berry  <karl@gnu.org>
25602
25603         * config/install-sh: update from automake.
25604
25605 2004-01-05  Karl Berry  <karl@gnu.org>
25606
25607         * config/config.{sub,guess}: update from config.
25608
25609 2003-12-31  Karl Berry  <karl@gnu.org>
25610
25611         * config/depcomp: update from automake.
25612
25613 2003-12-14  Karl Berry  <karl@gnu.org>
25614
25615         * lib/config.charset: update from gettext-runtime.
25616
25617 2003-12-03  Paul Eggert  <eggert@twinsun.com>
25618
25619         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
25620         Bug reported by Alfred M. Szmidt.
25621
25622 2003-12-03  Bruno Haible  <bruno@clisp.org>
25623
25624         * m4/gettext.m4: Upgrade from gettext-0.13.
25625         * m4/po.m4: Upgrade from gettext-0.13.
25626         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
25627         * m4/intmax.m4: New file, from gettext-0.13.
25628         * m4/printf-posix.m4: New file, from gettext-0.13.
25629
25630 2003-11-29  Karl Berry  <karl@gnu.org>
25631
25632         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
25633
25634 2003-11-25  Paul Eggert  <eggert@twinsun.com>
25635             Bruno Haible  <bruno@clisp.org>
25636
25637         * lib/printf-parse.h: Don't include sys/types.h.
25638         (ARG_NONE): New macro.
25639         (char_directive): Change type of *arg_index fields to size_t.
25640         * lib/printf-parse.c: Don't include sys/types.h.
25641         (SSIZE_MAX): Remove macro.
25642         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
25643         Remove unnecessary overflow check.
25644         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
25645         fields.
25646
25647 2003-11-25  Bruno Haible  <bruno@clisp.org>
25648
25649         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
25650
25651 2003-11-25  Bruno Haible  <bruno@clisp.org>
25652
25653         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
25654         gt_TYPE_SSIZE_T.
25655
25656 2003-11-24  Paul Eggert  <eggert@twinsun.com>
25657
25658         * modules/alloca: Remove dependency on xalloc.
25659
25660 2003-11-24  Paul Eggert  <eggert@twinsun.com>
25661
25662         * lib/alloca.c: Remove dependency on xalloc module.
25663         (xalloc_die): Remove.
25664         (memory_full) [!defined emacs]: New macro.
25665         [!defined emacs]: Don't include xalloc.h.
25666         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
25667         address arithmetic overflows.  Change datatypes a bit to avoid
25668         unnecessary casts.
25669
25670 2003-11-22  Jim Meyering  <jim@meyering.net>
25671
25672         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
25673         s/size/size_t/.
25674
25675 2003-11-21  Karl Berry  <karl@gnu.org>
25676
25677         * config/config.{sub,guess}: update from config.
25678
25679 2003-11-18  Karl Berry  <karl@gnu.org>
25680
25681         * config/config.{sub,guess}: update from config.
25682
25683         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
25684
25685 2003-11-17  Paul Eggert  <eggert@twinsun.com>
25686
25687         * README: Mention that S+T cannot overflow if S is the size of
25688         an existing object and T is sufficiently small.
25689
25690 2003-11-17  Jim Meyering  <jim@meyering.net>
25691
25692         On systems without utime and without a utimes function capable of
25693         dealing with a NULL struct utimbuf* argument, this utime replacement
25694         could -- in unusual circumstances -- leak a file descriptor.
25695         * lib/utime.c: Include <unistd.h> and <errno.h>.
25696         (utime_null): Be sure to close `fd' and to preserve errno.
25697         Reported by Geoff Collyer via Arnold Robbins.
25698
25699 2003-11-17  Bruno Haible  <bruno@clisp.org>
25700
25701         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
25702         (Depends-on): Add xsize.
25703
25704 2003-11-17  Bruno Haible  <bruno@clisp.org>
25705
25706         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
25707
25708 2003-11-17  Bruno Haible  <bruno@clisp.org>
25709
25710         * lib/vasnprintf.c (alloca): Remove fallback definition.
25711         (freea): Remove definition.
25712         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
25713         Reported by Paul Eggert.
25714
25715 2003-11-16  Paul Eggert  <eggert@twinsun.com>
25716             Bruno Haible  <bruno@clisp.org>
25717
25718         Protect against address arithmetic overflow.
25719         * lib/printf-args.h: Include stddef.h.
25720         (arguments): Change type of field 'count' to size_t.
25721         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
25722         'unsigned int' where appropriate.
25723         * lib/printf-parse.h: Include sys/types.h.
25724         (char_directive): Change type of *arg_index fields to ssize_t.
25725         (char_directives): Change type of fields 'count', max_*_length to
25726         size_t.
25727         * lib/printf-parse.c: Include sys/types.h and xsize.h.
25728         (SSIZE_MAX): Define fallback value.
25729         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
25730         instead of 'int' where appropriate. Check a_allocated, d_allocated
25731         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
25732         * lib/vasnprintf.c: Include xsize.h.
25733         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
25734         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
25735         overflow. Avoid wraparound when converting a width or precision from
25736         decimal to binary.
25737
25738 2003-11-16  Bruno Haible  <bruno@clisp.org>
25739
25740         Update from GNU gettext.
25741         * lib/printf-parse.c: Generalize to it can be compiled for wide
25742         strings.
25743         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
25744         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
25745         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
25746         SNPRINTF): New macros.
25747         Don't include <alloca.h> if the file is used inside libintl.
25748         (local_wcslen): New function, for Solaris 2.5.1.
25749         (VASNPRINTF): Use it instead of wcslen.
25750
25751 2003-11-16  Bruno Haible  <bruno@clisp.org>
25752
25753         * lib/xsize.h (xmax): New function.
25754         (xsum, xsum3, xsum4): Declare as "pure" functions.
25755
25756 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25757
25758         * modules/xalloc (Files): Undo latest change, since xalloc.h
25759         no longer needs SIZE_MAX or PTRDIFF_MAX.
25760
25761 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25762
25763         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
25764         gl_PTRDIFF_MAX.
25765
25766 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25767
25768         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
25769         "return", to pacify some unknown compiler.  Problem reported
25770         by Joerg Schilling.
25771
25772 2003-11-12  Paul Eggert  <eggert@twinsun.com>
25773
25774         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
25775         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
25776         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
25777         heuristic is just as accurate as far as we know, and it removes a
25778         dependency on size_max.m4 and ptrdiff_max.m4.
25779
25780 2003-11-11  Bruno Haible  <bruno@clisp.org>
25781
25782         * modules/xsize (Files): Add m4/size_max.m4.
25783         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
25784
25785 2003-11-11  Bruno Haible  <bruno@clisp.org>
25786
25787         * m4/size_max.m4: New file.
25788         * m4/ptrdiff_max.m4: New file.
25789         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
25790         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
25791         (gl_XALLOC): Invoke it.
25792
25793 2003-11-11  Bruno Haible  <bruno@clisp.org>
25794
25795         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
25796         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
25797         defined.
25798
25799 2003-11-10  Paul Eggert  <eggert@twinsun.com>
25800
25801         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
25802         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
25803         rejected some allocations of exactly SIZE_MAX - 2 bytes.
25804         From Bruno Haible.
25805         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
25806         not (size_t) -1, since it's defined here.
25807
25808 2003-11-09  Karl Berry  <karl@gnu.org>
25809
25810         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
25811
25812 2003-11-06  Paul Eggert  <eggert@twinsun.com>
25813
25814         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
25815         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
25816         Reject sizes of exactly SIZE_MAX bytes.
25817         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
25818         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
25819
25820 2003-11-05  Bruno Haible  <bruno@clisp.org>
25821
25822         * lib/xsize.h: Include limits.h, to avoid a possible collision with
25823         SIZE_MAX defined in <limits.h> on Solaris.
25824
25825 2003-11-04  Jim Meyering  <jim@meyering.net>
25826
25827         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
25828         variable names, rather than @VAR@.
25829         * modules/poll: Likewise.
25830
25831 2003-11-04  Bruno Haible  <bruno@clisp.org>
25832
25833         * modules/xsize: New file.
25834         * modules/linebreak: Depend on xsize.
25835         * MODULES.html.sh (func_all_modules): Add xsize.
25836
25837 2003-11-04  Bruno Haible  <bruno@clisp.org>
25838
25839         * m4/xsize.m4: New file.
25840
25841 2003-11-04  Bruno Haible  <bruno@clisp.org>
25842
25843         * lib/xsize.h: New file.
25844         * lib/linebreak.c: Include xsize.h.
25845         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
25846         argument for overflow.
25847         Suggested by Paul Eggert.
25848
25849 2003-11-03  Karl Berry  <karl@gnu.org>
25850
25851         * config/config.{guess,sub}: update from config.
25852
25853 2003-11-03  Jim Meyering  <jim@meyering.net>
25854
25855         * modules/userspec (lib_SOURCES): Add userspec.h.
25856         (Include): Add "userspec.h".
25857         Improve description.
25858
25859 2003-11-03  Jim Meyering  <jim@meyering.net>
25860
25861         * lib/userspec.c: Include "userspec.h".
25862         * lib/userspec.h: New file.
25863
25864 2003-11-03  Bruno Haible  <bruno@clisp.org>
25865
25866         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
25867
25868 2003-11-03  Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
25871         available, to avoid (extremely rare) race condition.
25872         Suggested by Paul Eggert.
25873
25874 2003-11-02  Karl Berry  <karl@gnu.org>
25875
25876         * config/srclist.txt (vasprintf.c): sync broken, sigh.
25877
25878 2003-10-31  Paul Eggert  <eggert@twinsun.com>
25879
25880         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
25881         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
25882         (read_filesystem_list): Set and use me_type_malloced.
25883         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
25884         whatever the type happens to be), for brevity and consistency.
25885         Check for size calculation overflow on Alphas running OSF/1.
25886
25887 2003-10-31  Jim Meyering  <jim@meyering.net>
25888
25889         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
25890
25891         * lib/linebuffer.c: Include <string.h> for declaration of memset.
25892
25893 2003-10-30  Paul Eggert  <eggert@twinsun.com>
25894             Bruno Haible  <bruno@clisp.org>
25895
25896         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
25897         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
25898
25899 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25900
25901         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
25902         netbsd*-gnu*.  Suggested by Robert Millan.
25903
25904 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25905
25906         * modules/group-member: Depend on stdbool.
25907
25908 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25909
25910         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
25911
25912 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25913
25914         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
25915         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
25916         after the 'gnu' in these cases.  This fixes some bugs in the
25917         previous change, and is based on suggestions by Robert Millan.
25918
25919 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25920
25921         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
25922         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
25923         no longer needed.
25924         * lib/quotearg.c (quotearg_n_options): Use it.
25925         * lib/group-member.c: Include <stdbool.h>.
25926         (free_group_info): Arg is now const *; don't free arg.
25927         (get_group_info): Now returns bool and accepts struct group_info *,
25928         rather than returning a malloc'ed struct group_info *.
25929         All uses changed.  Check for overflow in internal size calculation.
25930
25931         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
25932         rather than xmalloc/xrealloc.
25933         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
25934         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
25935         conformance bug: the old code used a pointer after freeing the
25936         storage that it addressed.
25937         * lib/hash.c (hash_initialize): Simplify the code by using
25938         xalloc_oversized rather than doing it by hand.
25939         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
25940         the buffer preserved.  Use free and xmalloc instead.
25941         * lib/quotearg.c (quotearg_n_options): Likewise.
25942         Use a simpler test for size overflow.  Don't use xalloc_oversized
25943         because unsigned int might be wider than size_t (!); this suggests
25944         that we should switch from unsigned int to size_t for slot numbers.
25945
25946 2003-10-28  Paul Eggert  <eggert@twinsun.com>
25947
25948         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
25949         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
25950         NetBSD kernels.  Requested by Richard Stallman.
25951
25952 2003-10-27  Paul Eggert  <eggert@twinsun.com>
25953
25954         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
25955         to allocate the returned structure.  Do not allocate a subarray,
25956         as x2nrealloc will do that.
25957         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
25958         instead of xnrealloc.
25959         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
25960
25961 2003-10-27  Bruno Haible  <bruno@clisp.org>
25962
25963         * lib/stdbool_.h: Better support for BeOS.
25964
25965 2003-10-26  Paul Eggert  <eggert@twinsun.com>
25966
25967         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
25968         now uses inline.
25969
25970 2003-10-26  Paul Eggert  <eggert@twinsun.com>
25971
25972         * lib/xalloc.h (xalloc_oversized): New static inline function, for
25973         callers that want to do their own size-overflow checking.  Include
25974         <stdbool.h>, since xalloc_oversized returns bool.
25975         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
25976         to use xalloc_oversized.
25977
25978         Add two functions x2realloc, x2nrealloc, for programs that grow
25979         arrays dynamically by doubling their sizes.
25980         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
25981         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
25982         New functions.
25983
25984         Port to C99 semantics for 'inline' of external functions.
25985         Bug reported by Bruno Haible.
25986         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
25987         with the old contents of xnmalloc.
25988         (xnmalloc, xmalloc): Use it.
25989         (xnrealloc_inline): New static inline function,
25990         with the old contents of xnrealloc.
25991         (xnrealloc, xrealloc): Use it.
25992
25993         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
25994         that.
25995
25996 2003-10-26  Karl Berry  <karl@gnu.org>
25997
25998         * config/srclist.txt (COPYING.DOC): no longer available from
25999         /gd/gnuorg; don't know where the ultimate source is.
26000
26001 2003-10-25  Paul Eggert  <eggert@twinsun.com>
26002
26003         Fix several address-calculation bugs in the hash modules,
26004         plus some minor code cleanup.
26005
26006         * lib/hash.h: Include <stdbool.h>, for bool.
26007         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
26008         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
26009         hash_get_n_entries, hash_get_max_bucket_length,
26010         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
26011         hash_rehash): Use size_t rather than unsigned.
26012         * lib/hash.c (struct hash_table, hash_get_n_buckets,
26013         hash_get_n_buckets_used, hash_get_n_entries,
26014         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
26015         hash_get_entries, hash_do_for_each, hash_string, is_prime,
26016         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
26017         Likewise.
26018         (SIZE_MAX): Define if not defined.
26019         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
26020         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
26021         hash_print):
26022         Use const * when possible.
26023         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
26024         (check_tuning): Fix bug: if tuning parameters were very close to
26025         0 or 1, rounding errors could have caused subscript violations.
26026         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
26027         (hash_initialize): Add 'fail:' label
26028         to free table and return NULL, and use it to simplify code.
26029         Use calloc rather than clearing the storage ourself.
26030         (hash_initialize, hash_rehash): Check for arithmetic overflow in
26031         buffer size calculations.
26032         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
26033         Include <stddef.h>, for size_t.
26034         * lib/hash-pjw.c (hash_pjw): Likewise.
26035         Switch to method described by Bruno Haible.
26036         Include <limits.h>, for CHAR_BIT.
26037         (SIZE_BITS): New macro.
26038
26039 2003-10-23  Paul Eggert  <eggert@twinsun.com>
26040
26041         * m4/getline.m4 (AM_FUNC_GETLINE):
26042         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
26043         hosts.  Problem reported by Derek Robert Price in
26044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
26045         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
26046         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
26047
26048 2003-10-21  Paul Eggert  <eggert@twinsun.com>
26049
26050         * lib/getndelim2.c (getndelim2): When size calculation overflows,
26051         ceiling the allocation at NMAX bytes rather than silently
26052         discarding input bytes before NMAX is reached.  This makes
26053         a difference only if NMAX exceeds SIZE_MAX / 2.
26054
26055         * lib/obstack.c: Merge from glibc.
26056         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
26057         Add libc_hidden_def (_obstack_newchunk).
26058         (_obstack_free) [! defined _LIBC]: Remove.
26059         [defined _LIBC]: Make a strong alias from obstack_free, rather than
26060         a clone of the function body.
26061         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
26062         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
26063
26064         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
26065         glibc.
26066         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
26067         arg to memcpy.
26068
26069         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
26070         (obstack_ptr_grow_fast, obstack_int_grow_fast):
26071         Don't use lvalue casts, as GCC plans to remove support for them
26072         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
26073         was also present in the non-GCC version, indicating that this
26074         code had always been buggy and had never been widely used.
26075         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
26076         Use the fast variant of each macro, rather than copying the
26077         definiens of the fast variant; that way, we'll be more likely to
26078         catch future bugs in the fast variants.
26079
26080 2003-10-20  Bruno Haible  <bruno@clisp.org>
26081
26082         * modules/wait-process: New file.
26083         * MODULES.html.sh (func_all_modules): Add wait-process.
26084
26085 2003-10-20  Bruno Haible  <bruno@clisp.org>
26086
26087         * m4/wait-process.m4: New file.
26088
26089 2003-10-20  Bruno Haible  <bruno@clisp.org>
26090
26091         * lib/wait-process.h: New file, from GNU gettext.
26092         * lib/wait-process.c: New file, from GNU gettext.
26093
26094 2003-10-19  Jim Meyering  <jim@meyering.net>
26095
26096         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
26097         HPUX 10.20.
26098
26099 2003-10-18  Karl Berry  <karl@gnu.org>
26100
26101         * config/config.guess: update from config.
26102
26103 2003-10-16  Paul Eggert  <eggert@twinsun.com>
26104
26105         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
26106         (getgroups): First arg is int, not size_t.
26107         Don't let 'free' mangle errno.
26108
26109 2003-10-16  Paul Eggert  <eggert@twinsun.com>
26110
26111         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
26112
26113 2003-10-16  Karl Berry  <karl@gnu.org>
26114
26115         * config/config.{guess,sub}: update from config.
26116
26117 2003-10-16  Jim Meyering  <jim@meyering.net>
26118
26119         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
26120         memcpy.
26121
26122 2003-10-15  Paul Eggert  <eggert@twinsun.com>
26123
26124         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
26125         (SIZE_MAX): Remove.
26126         (new_exclude, add_exclude_file): Initial size no longer needs to
26127         be a power of 2.
26128         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
26129         our own address arithmetic overflow checking.
26130
26131         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
26132         (fnmatch): Do not alloca more than 2000 wide characters;
26133         instead, use malloc for large buffers.
26134         Check for address arithmetic overflow, and return -1
26135         with errno set to ENOMEM in that case.
26136         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
26137         (NEW_PATTERN): Do not alloca more than 8000 bytes;
26138         instead, return -1.  Check for address arithmetic overflow.
26139
26140 2003-10-14  Paul Eggert  <eggert@twinsun.com>
26141
26142         Handle invalid suffixes and overflow independently, so that
26143         callers can treat them independently as needed.  Fix some bugs in
26144         suffix handling, e.g., "100k@" was not diagnosed as an invalid
26145         suffix for a human-readable blocksize.  The major caller-visible
26146         change is the addition of a new
26147         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
26148         that both overflow and suffix chars were found.
26149
26150         * lib/human.c (humblock): Don't check separately for invalid suffix
26151         char; that is xstrtoumax's job (now that its bug is fixed).
26152         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
26153         INTMAX_MAX]: New macros.
26154         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
26155         TYPE_MAXIMUM): New macros.
26156         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
26157         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
26158         if overflow occurs, as it's what __strtol does and it's more useful
26159         in practice.
26160         (__xstrtol): If __strtol reports some error other than ERANGE,
26161         reflect it to the caller as LONGINT_INVALID.  If it reports
26162         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
26163         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
26164         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
26165         value.
26166         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
26167         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
26168         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
26169         [defined UINTMAX_MAX]: New macros.
26170
26171 2003-10-14  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
26174
26175 2003-10-14  Bruno Haible  <bruno@clisp.org>
26176
26177         * m4/sig_atomic_t: New file, from GNU gettext.
26178         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
26179
26180 2003-10-14  Bruno Haible  <bruno@clisp.org>
26181
26182         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
26183         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
26184         Also use volatile where needed.
26185
26186 2003-10-12  Paul Eggert  <eggert@twinsun.com>
26187
26188         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
26189         Change maintainer from Bruno Haible to 'all'.
26190
26191 2003-10-12  Paul Eggert  <eggert@twinsun.com>
26192
26193         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
26194
26195 2003-10-12  Paul Eggert  <eggert@twinsun.com>
26196
26197         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
26198         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
26199         and define in terms of the other primitives.
26200         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
26201         (SIZE_MAX): Define if not already defined.
26202         (array_size_overflow): New function.
26203         (xalloc_die): Abort instead of exiting if 'error' returns.
26204         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
26205         (xmalloc, xrealloc): Use them.
26206         (xcalloc): Check for address arithmetic overflow.
26207         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
26208         a bit faster than strcpy.
26209
26210 2003-10-10  Simon Josefsson  <jas@extundo.com>
26211
26212         * modules/argp (Depends-on): Add restrict and strcase.
26213
26214 2003-10-10  Simon Josefsson  <jas@extundo.com>
26215
26216         * m4/argp.m4: Add AC_C_INLINE.
26217
26218 2003-10-08  Paul Eggert  <eggert@twinsun.com>
26219
26220         Merge getpass from libc, plus a few fixes.
26221
26222         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
26223         Include <stdbool.h>.
26224         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
26225         __fsetlocking to empty.
26226         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
26227         do include <bits/libc-lock.h>.
26228         Do not include <fcntl.h>; not needed.
26229         [_LIBC]: Include <wchar.h>.
26230         (NOTCANCEL_MODE): New macro.
26231         (flockfile, funlockfile) [_LIBC]: New macros.
26232         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
26233         [!_LIBC]: New macros.
26234         (call_fclose): New function.
26235         (getpass): Use it.  Save tty stream separately; this simplifies the
26236         code and makes it more reliable if stdin happens to equal stdout.
26237         Invoke __fsetlocking on tty.
26238         Handle thread cancellation if needed.
26239         Namespace cleanup (use __tcgetattr, __getline).
26240         Use bool for Booleans.
26241         [USE_IN_LIBIO]: Handle wide streams.
26242         [!_LIBC]: Unconditionally do the fseek, since we don't know what
26243         stream might go where.
26244
26245         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
26246         doesn't have to include <stdio.h> before us.
26247         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
26248         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
26249         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
26250         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
26251         if not declared, so that we can use getpass.c code from libc without
26252         rewriting it.
26253         (flockfile, ftrylockfile, funlockfile): New macros.
26254
26255 2003-10-08  Paul Eggert  <eggert@twinsun.com>
26256
26257         * modules/getpass: Depend on stdbool.
26258
26259 2003-10-08  Paul Eggert  <eggert@twinsun.com>
26260
26261         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
26262
26263 2003-10-07  Karl Berry  <karl@gnu.org>
26264
26265         * config/config.{guess,sub}: update from config.
26266
26267 2003-10-06  Jim Meyering  <jim@meyering.net>
26268             Bruno Haible  <bruno@clisp.org>
26269
26270         This lets translators provide better translations for the
26271         "Written by ..." part of --version output.
26272         * lib/version-etc.h: Include stdarg.h.
26273         (version_etc_copyright): Declare as readonly.
26274         (version_etc): Make this function variadic with a NULL-terminated list
26275         of author name strings.
26276         (version_etc_va): New declaration.
26277         * lib/version-etc.c: Include stdarg.h, stdlib.h.
26278         (version_etc_copyright): Declare as readonly.
26279         (version_etc_va): New function. Provide a different translatable string
26280         for each possible number of authors < 10. Abbreviate when there are 10
26281         authors or more.
26282         (version_etc): Make this function variadic. Call version_etc_va.
26283         Suggestion from Gary V. Vaughan.
26284
26285         * lib/long-options.h (parse_long_options): Change prototype: the
26286         authors string is moved to the end and becomes variadic.
26287         * lib/long-options.c: Include stdarg.h.
26288         (parse_long_options): Make this function variadic, too.
26289         Call version_etc_va, not version_etc.
26290
26291 2003-10-06  Bruno Haible  <bruno@clisp.org>
26292
26293         * modules/version-etc-2: Remove file.
26294         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
26295
26296 2003-10-06  Bruno Haible  <bruno@clisp.org>
26297
26298         * modules/fatal-signal: New file.
26299         * MODULES.html.sh (func_all_modules): Add fatal-signal.
26300
26301 2003-10-06  Bruno Haible  <bruno@clisp.org>
26302
26303         * m4/fatal-signal.m4: New file.
26304         * m4/signalblocking.m4: New file, from GNU gettext.
26305
26306 2003-10-06  Bruno Haible  <bruno@clisp.org>
26307
26308         * lib/version-etc-2.h: Remove file.
26309         * lib/version-etc-2.c: Remove file.
26310
26311 2003-10-06  Bruno Haible  <bruno@clisp.org>
26312
26313         * lib/fatal-signal.h: New file, from GNU gettext.
26314         * lib/fatal-signal.c: New file, from GNU gettext.
26315
26316 2003-10-05  Paul Eggert  <eggert@twinsun.com>
26317
26318         * README: Rework advice for preventing empty .o files.
26319         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
26320         not <sys/types.h>.
26321
26322 2003-10-04  Karl Berry  <karl@gnu.org>
26323
26324         * lib/argp*: update from libc.
26325
26326 2003-10-04  Karl Berry  <karl@gnu.org>
26327
26328         * config/config.{guess,sub}: update from config.
26329
26330 2003-10-02  Bruno Haible  <bruno@clisp.org>
26331
26332         * modules/lchown (Include): Add lchown.h.
26333         * modules/time_r (Include): Use "..." syntax.
26334         * modules/xgetdomainname (Include): Add xgetdomainname.h.
26335
26336 2003-10-01  Simon Josefsson  <jas@extundo.com>
26337
26338         * MODULES.html.sh (func_all_modules): Move gethostname from section
26339         'based on' to section 'lacking' POSIX:2001.
26340
26341 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
26342
26343         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
26344         to output mode on the same stream.
26345
26346 2003-09-29  Paul Eggert  <eggert@twinsun.com>
26347
26348         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
26349         Fix arg typo in previous patch.
26350
26351 2003-09-28  Jim Meyering  <jim@meyering.net>
26352
26353         * lib/error.c: Correct cpp indentation.
26354
26355 2003-09-27  Paul Eggert  <eggert@twinsun.com>
26356
26357         * modules/free: New file.
26358
26359 2003-09-27  Paul Eggert  <eggert@twinsun.com>
26360
26361         * m4/free.m4: New file.
26362
26363 2003-09-27  Paul Eggert  <eggert@twinsun.com>
26364
26365         * lib/minmax.h (MIN, MAX)
26366         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
26367         Omit the special code that used __typeof__, since we worry that
26368         it could be more trouble than it's worth.  See:
26369         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
26370         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
26371
26372         * lib/free.c: New file.
26373
26374 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
26375
26376         Trivial fixes to Makefile.am parts of module listings.
26377         * modules/strstr: Append strstr.h to lib_SOURCES.
26378         * modules/strcase: Likewise, for strcase.h.
26379
26380 2003-09-27  Karl Berry  <karl@gnu.org>
26381
26382         * config/mkinstalldirs: update from automake.
26383
26384 2003-09-26  Paul Eggert  <eggert@twinsun.com>
26385
26386         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
26387         (error_tail): Do not loop, reallocating temporary buffer, since
26388         the output cannot contain more wide characters than the input
26389         contains bytes, the size must be big enough already.  This avoids
26390         one potential size overflow calculation.  Check for size overflow
26391         when calculating temporary buffer size.  Free temporary buffer
26392         when done, if it was allocated with malloc; this plugs a memory
26393         leak.  Remove casts from void * to pointers, that are no longer
26394         needed now that we're assuming C89 or better.
26395
26396         Merge error changes from glibc.
26397
26398         * lib/error.c, error.h: Update copyright notice header to match glibc.
26399         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
26400         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
26401         Disable cancellation while printing error.
26402         * lib/error.h: Prepend __ to parameter names.
26403
26404 2003-09-26  Jim Meyering  <jim@meyering.net>
26405
26406         * lib/error.c (error_tail): Move some declarations
26407         into inner scope where the local variables are used.
26408
26409 2003-09-26  Bruno Haible  <bruno@clisp.org>
26410
26411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
26412         stpncpy().
26413         Don't define stpncpy through config.h; it's now done through stpncpy.h.
26414
26415 2003-09-26  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/stpncpy.h (gnu_stpncpy): New declaration.
26418         (stpncpy): Define as alias for gnu_stpncpy.
26419         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
26420
26421 2003-09-25  Simon Josefsson  <jas@extundo.com>
26422
26423         * lib/xgetdomainname.h: New file.
26424         * lib/xgetdomainname.c: New file.
26425
26426 2003-09-25  Simon Josefsson  <jas@extundo.com>
26427             Bruno Haible  <bruno@clisp.org>
26428
26429         * modules/getdomainname: New file.
26430         * modules/xgetdomainname: New file.
26431         * MODULES.html.sh (func_all_modules): Add getdomainname,
26432         xgetdomainname.
26433
26434 2003-09-25  Simon Josefsson  <jas@extundo.com>
26435             Bruno Haible  <bruno@clisp.org>
26436
26437         * m4/getdomainname.m4: New file.
26438
26439 2003-09-25  Simon Josefsson  <jas@extundo.com>
26440             Bruno Haible  <bruno@clisp.org>
26441
26442         * lib/getdomainname.h: New file.
26443         * lib/getdomainname.c: New file.
26444
26445 2003-09-25  Karl Berry  <karl@gnu.org>
26446
26447         * lib/argp-fmtstream.c, argp-help.c: update from libc.
26448
26449 2003-09-25  Karl Berry  <karl@gnu.org>
26450
26451         * config/install-sh: update from automake.
26452
26453 2003-09-25  Bruno Haible  <bruno@clisp.org>
26454
26455         * modules/version-etc-2: New file, from modules/version-etc with
26456         modifications.
26457         * MODULES.html.sh (func_all_modules): Add version-etc-2.
26458
26459 2003-09-25  Bruno Haible  <bruno@clisp.org>
26460
26461         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
26462         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
26463
26464 2003-09-24  Simon Josefsson  <jas@extundo.com>
26465
26466         * modules/xgethostname: Add xgethostname.h.
26467
26468 2003-09-24  Paul Eggert  <eggert@twinsun.com>
26469
26470         * lib/linebuffer.c (freebuffer): Don't free the argument, just
26471         the buffer associated with the argument.  Bug reported by
26472         Simon Josefsson.
26473
26474 2003-09-24  Paul Eggert  <eggert@twinsun.com>
26475
26476         * README: Document assumptions that 'int' is at least 32 bits
26477         wide, that integer arithmetic is 2's complement without overflow,
26478         that there are no holes in integer values, that adding sizes of
26479         two nonoverlapping objects can't overflow, and that all-bits-zero
26480         yields scalar zero.  Fix spelling and capitalization typos.
26481
26482 2003-09-19  Karl Berry  <karl@gnu.org>
26483
26484         * lib/argp.h: update from libc.
26485
26486 2003-09-17  Paul Eggert  <eggert@twinsun.com>
26487
26488         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
26489         to avoid spurious warnings like "AC_RUN_IFELSE was called before
26490         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
26491
26492 2003-09-17  Paul Eggert  <eggert@twinsun.com>
26493
26494         * gnulib-tool: Use "test -h", not "test -L", for portability
26495         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
26496         (tags_regexp): Remove, since \| doesn't conform to POSIX.
26497         (sed_extract_prog): Issue s commands one-by-one, rather than
26498         using \| in one s command.
26499
26500 2003-09-16  Paul Eggert  <eggert@twinsun.com>
26501
26502         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
26503         input error, instead of returning NULL the next time we are called
26504         (and therefore losing track of errno).
26505
26506 2003-09-16  Bruno Haible  <bruno@clisp.org>
26507
26508         * gnulib-tool (func_create_testdir): Warn about duplicated
26509         dependencies.
26510
26511 2003-09-15  Paul Eggert  <eggert@twinsun.com>
26512
26513         * modules/argmatch, modules/fatal, modules/obstack,
26514         modules/xalloc, modules/xgethostname: Sort dependencies by
26515         importance, not alphabetically.
26516
26517 2003-09-15  Paul Eggert  <eggert@twinsun.com>
26518
26519         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
26520         fails, so that the caller gets the proper errno.
26521
26522         * lib/readutmp.c (read_utmp): Likewise.
26523         Check for fstat error.  Close stream and free storage
26524         when failing.
26525
26526 2003-09-14  Karl Berry  <karl@gnu.org>
26527
26528         * config/srclist.txt (strdup.c): disable for c89 changes.
26529
26530 2003-09-14  Jim Meyering  <jim@meyering.net>
26531
26532         * lib/getloadavg.c: Correct cpp indentation.
26533         * lib/strdup.c: Likewise.
26534         * lib/vasnprintf.c: Likewise.
26535
26536 2003-09-14  Bruno Haible  <bruno@clisp.org>
26537
26538         * modules/fwriteerror: New file.
26539         * MODULES.html.sh (func_all_modules): Add fwriteerror.
26540
26541 2003-09-14  Bruno Haible  <bruno@clisp.org>
26542
26543         * lib/fwriteerror.h: New file.
26544         * lib/fwriteerror.c: New file.
26545
26546 2003-09-12  Paul Eggert  <eggert@twinsun.com>
26547
26548         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
26549         modules/xgethostname, modules/xalloc: Depend on exit.
26550
26551 2003-09-12  Paul Eggert  <eggert@twinsun.com>
26552
26553         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
26554
26555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
26556         and AC_MINIX, too, so that their extensions are available.
26557
26558         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
26559         This macro has been superseded by gl_BACKUPFILE.
26560
26561         More patches to assume C89 or better.
26562
26563         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
26564
26565         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
26566         unconditionally.
26567         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
26568         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
26569         Include <string.h>, <stdlib.h> unconditionally.
26570         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
26571         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
26572         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
26573         headers or for string.h.
26574         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
26575         or strtoul.
26576
26577         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
26578         headers.
26579         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
26580         * m4/userspec.m4 (gl_USERSPEC): Likewise.
26581         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
26582         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
26583         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26584         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
26585         memcpy, memset.
26586         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
26587         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
26588         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
26589         strtol.
26590         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
26591         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
26592         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
26593         strtoul.
26594
26595 2003-09-12  Paul Eggert  <eggert@twinsun.com>
26596
26597         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
26598         * lib/obstack.c [!defined _LIBC]: Likewise.
26599         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
26600         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
26601         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
26602
26603         More changes to assume C89 or better.
26604
26605         * lib/error.c (error_tail): Assume vprintf.
26606
26607         * lib/argmatch.c (getenv): Remove decl.
26608         * lib/progreloc.c (get_full_program_name): Define via prototype.
26609         * lib/setenv.c (clearenv): Likewise.
26610         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
26611         needed.
26612         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
26613         (malloc, memcpy): Remove decls.
26614         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
26615         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
26616         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
26617         (memcpy): Remove macro.
26618         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
26619         (__P): Remove.  All uses removed.
26620         (PTR): Remove.  All uses changed to void *.
26621         (CHAR_BIT, NULL): Remove.
26622         (spaces, zeros, memset_space, memset_zero)
26623         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
26624         Remove.
26625         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
26626         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
26627         Define with prototype.
26628         Remove now-unnecessary prototype decl.
26629         (extra_args_spec): Assume ANSI C.  All uses changed.
26630         (extra_args_spec_iso): Remove.
26631         (my_strftime, emacs_strftimeu): Define via prototype.
26632         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
26633         unconditionally.
26634         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
26635         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
26636         (strtoul, strtol): Remove decls.
26637         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
26638         LONG_MAX): Remove.
26639         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
26640         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
26641         (LOCALE_PARAM_PROTO): New macro.
26642         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
26643         (INTERNAL (strtol), strtol): Define with a prototype.
26644         (PARAMS): Remove.  All uses removed.
26645         * lib/tempname.c: Include <string.h> unconditionally.
26646         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
26647         * lib/xgethostname.c (main): Define with a prototype.
26648         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
26649         Include <stdlib.h> unconditionally.
26650         (calloc, malloc, realloc, free): Remove decls.
26651         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
26652         Include <stdlib.h> unconditionally.  Sort include file names.
26653         (strtod): Remove.
26654         (xstrtod): Define with a prototype.
26655         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
26656         (strtol, strtoul): Remove decls.
26657
26658 2003-09-11  Paul Eggert  <eggert@twinsun.com>
26659
26660         More patches to assume C89 or better.
26661         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
26662         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
26663         string.h, memchr, STDC_HEADERS.
26664
26665 2003-09-11  Paul Eggert  <eggert@twinsun.com>
26666
26667         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
26668         Include <stdlib.h>, <string.h> unconditionally.
26669         Remove now-unnecessary cast to char *.
26670         * lib/strnlen.c: Include <string.h> unconditionally.
26671         * lib/yesno.c (yesno): Define with a prototype.
26672
26673 2003-09-11  Bruno Haible  <bruno@clisp.org>
26674
26675         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
26676
26677 2003-09-10  Jim Meyering  <jim@meyering.net>
26678
26679         * lib/error.c: Correct indentation of cpp directives.
26680
26681 2003-09-10  Bruno Haible  <bruno@clisp.org>
26682
26683         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
26684         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
26685         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
26686         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
26687         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
26688         <stdlib.h> and <string.h> checks.
26689         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
26690         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
26691
26692 2003-09-10  Bruno Haible  <bruno@clisp.org>
26693
26694         * lib/strcspn.c: Include <string.h> unconditionally.
26695         * lib/strpbrk.c: Include <string.h> unconditionally.
26696         * lib/strstr.c: Include <string.h> unconditionally.
26697         * lib/unicodeio.c: Include <string.h> unconditionally.
26698         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
26699         * lib/unsetenv.c: Likewise.
26700         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
26701         * lib/yesno.c: Include <stdlib.h> unconditionally.
26702         (rpmatch): Add prototype.
26703
26704 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26705
26706         More patches to assume C89 or better.
26707         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
26708         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
26709         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
26710         or for string.h.
26711         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
26712         stdlib.h.
26713         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
26714         C headers.
26715         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
26716         string.h.
26717         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
26718         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
26719         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
26720         or for string.h.
26721         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
26722         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
26723         C headers.
26724         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
26725         memcpy.
26726         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
26727         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
26728         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
26729         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
26730         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
26731         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
26732         string.h, free.
26733         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
26734         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
26735         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
26736         C headers, or for string.h.
26737         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
26738         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
26739         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
26740         headers, memory.h, stdlib.h, string.h, strings.h.
26741         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
26742         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
26743         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
26744         strchr.
26745         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
26746         headers, memory.h, string.h.
26747         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
26748         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
26749         free.
26750         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
26751         headers.
26752         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
26753         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
26754         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
26755         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
26756         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
26757
26758 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26759
26760         More K&R removal.
26761
26762         * lib/acosl.c (main): Use a prototype.
26763         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
26764         tanl.c: Likewise.
26765
26766         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
26767
26768         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
26769         (getopt, etopt_long, getopt_long_only, _getopt_internal)
26770         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
26771         with a prototype.
26772         * lib/getopt.c (const): Remove macro.
26773         Include <string.h> unconditionally.
26774         (my_index): Remove; all uses changed to strchr.
26775         (strlen): Remove decl.
26776         (exchange): Remove forward decl; no longer needed.
26777         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
26778         Define with prototype.
26779         * lib/getopt1.c (const): Remove macro.
26780         (getopt_long, getopt_long_only, main): Define with prototype.
26781
26782         * lib/getugroups.c: Include <string.h> unconditionally.
26783
26784         * lib/getusershell.c: Include <stdlib.h> unconditionally.
26785         (getusershell, setusershell, endusershell, readname, main):
26786         Define with prototypes.
26787
26788         * lib/group-member.c: Include group-member.h first.
26789         Include <stdlib.h> unconditionally.
26790
26791         * lib/hard-locale.c: Include hard-locale.h first.
26792         Include <stdlib.h>, <string.h> unconditionally.
26793
26794         * lib/hash.c (free, malloc): Remove decls.
26795         Include <stdlib.h> unconditionally.
26796
26797         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
26798         (getenv): Do not declare.
26799
26800         * lib/idcache.c: Include <string.h> unconditionally.
26801
26802         * lib/long-options.c: Include long-options.h first, to test interface.
26803         Include <stdlib.h> unconditionally.
26804
26805         * lib/makepath.c: Include makepath.h first, to test interface.
26806         Include <stdlib.h> and <string.h> unconditionally.
26807
26808         * lib/linebuffer.c: Include <stdlib.h>.
26809         (free): Remove decl.
26810
26811         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
26812         stddef.h. rpl_malloc returns void *, not char *.
26813         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
26814         prototype.
26815
26816         * lib/md5.h: Include <limits.h> unconditionally.
26817         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
26818         (__P): Remove; all uses removed.
26819         * lib/md5.c: Include "md5.h" first.
26820         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
26821         md5_buffer, md5_process_bytes, md5_process_block):
26822         Define with prototypes.
26823         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
26824         * lib/sha.c: Include "sha.h" first.
26825         Include <stdlib.h>, <string.h> unconditionally.
26826
26827         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
26828         * lib/memcmp.c (__ptr_t): Likewise.
26829         * lib/memrchr.c (__ptr_t): Likewise.
26830         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
26831         Include <string.h> unconditionally.
26832         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
26833         * lib/memchr.c: Include <stdlib.h> unconditionally.
26834         * lib/memchr.c (LONG_MAX): Remove.
26835         * lib/memrchr.c (LONG_MAX): Likewise.
26836         * lib/memchr.c (__memchr): Define via a prototype.
26837         * lib/memrchr.c (__memrchr): Likewise.
26838         * lib/memcmp.c (__P): Remove, and remove all uses.
26839         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
26840         Remove forward decls; no longer needed.
26841         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
26842         Use types required by C89 in prototype.
26843
26844         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
26845         * lib/savedir.c: Likewise.
26846         * lib/mkdir.c (free): Remove decl.
26847         * lib/rmdir.c (rmdir): Define with a prototype.
26848         * lib/savedir.c: Include savedir.h first, to test interface.
26849
26850         * lib/mktime.c (STDC_HEADERS): Remove.
26851         Include <stdlib.h>, <string.h> unconditionally.
26852
26853         * lib/modechange.c: Include <stdlib.h> unconditionally.
26854         (malloc): Remove decl.
26855
26856         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
26857         (free): Remove decl.
26858
26859         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
26860         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
26861         (This type really should be intptr_t, but that's a C99ism.)
26862         (_obstack_memcpy): Remove: all uses changed to memcpy.
26863         Include <string.h> unconditionally.
26864         (struct obstack): Assume __STDC__ for types of members
26865         chunkfun, freefun, extra_arg.
26866         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
26867         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
26868         obstack_begin, obstack_specify_allocation,
26869         obstack_specify_allocation_with_arg, obstack_chunkfun,
26870         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
26871         Remove unprototyped decls and the macros that use them.
26872         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
26873         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
26874         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
26875         (defined __STDC__ && __STDC__)]:
26876         Remove nonprototyped code.
26877         Include <stdlib.h> unconditionally.
26878         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
26879         _obstack_allocated_p, _obstack_free, obstack_free,
26880         _obstack_memory_used, print_and_abort):
26881         Define using prototypes.
26882         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
26883         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
26884         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
26885         obstack_next_free, obstack_object_size, obstack_room) [0]:
26886         Remove unused, unprototyped code.
26887
26888         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
26889
26890         * lib/physmem.c (physmem_total, physmem_available, main): Define
26891         with prototypes.
26892
26893         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
26894         (main): Define with a prototype.
26895
26896         * lib/posixver.c (getenv): Remove decl.
26897
26898         * lib/putenv.c (malloc): Returns void *, not char *.
26899         Include <string.h> unconditionally.
26900         (strchr, memcpy, NULL): Do not define.
26901
26902         * lib/readtokens.c: Include readtokens.h first, to test interface.
26903         Include <stdlib.h>, <string.h> unconditionally.
26904         (init_tokenbuffer): Define with a prototype.
26905
26906         * lib/regex.c (PARAMS): Remove.  All uses removed.
26907         All uses of _RE_ARGS removed, too.
26908         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
26909         unconditionally.
26910         (bzero): Assume memset exists.
26911         (memcmp, memcpy, NULL): Remove.
26912         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
26913         char, or assignments to local vars of type signed char.
26914         (init_syntax_once, PREFIX(extract_number_and_incr),
26915         PREFIX(print_partial_compiled_pattern),
26916         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
26917         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
26918         PREFIX(regex_grow_registers), PREFIX(regex_compile),
26919         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
26920         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
26921         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
26922         wcs_compile_range, byte_compile_range, truncate_wchar,
26923         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
26924         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
26925         count_mbs_length, wcs_re_match_2_internal,
26926         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
26927         PREFIX(alt_match_null_string_p),
26928         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
26929         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
26930         regfree, PREFIX(extract_number)): Define with prototype.  Remove
26931         now-unnecessary declaration, if any.
26932         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
26933         regcomp, regexec):
26934         Remove now-unnecessary casts among pointer types.
26935         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
26936
26937         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
26938         (free): Remove decl.
26939
26940         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
26941
26942         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
26943         (free): Remove decl.
26944
26945         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
26946         * lib/xgetcwd.c: Likewise.
26947
26948         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
26949         (free): Remove decl.
26950
26951         * lib/strchrnul.c (strchrnul): Define with a prototype.
26952         Fix bug: c_in was not converted to char before searching.
26953
26954         The following changes are not K&R related:
26955
26956         * lib/group-member.h: Include <sys/types.h>, so that this file is
26957         self-contained.
26958         * lib/makepath.h: Likewise.
26959
26960         * lib/getusershell.c (readname, default_index, line_size, readname):
26961         Use size_t, not int, for sizes.
26962         (readname): If the size overflows, report an error instead of
26963         looping forever.
26964
26965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26966
26967         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
26968         libc.
26969
26970 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26971
26972         * README: New section: portability guidelines.
26973
26974 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
26975
26976         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
26977         C89 spec.
26978
26979 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
26980
26981         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
26982
26983 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26984
26985         Assume C89 or better; remove K&R cruft.
26986         A few of these changes were first proposed by Derek Robert Price
26987         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
26988
26989         * lib/addext.c: Include <string.h> unconditionally.
26990         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
26991         Don't declare getenv or malloc.
26992
26993         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
26994         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
26995         (NULL): Remove.
26996         (find_stack_direction, alloca): Use prototypes.
26997
26998         * lib/atexit.c (atexit): Define using a prototype.
26999
27000         * lib/basename.c, dirname.c, stripslash.c:
27001         Include <string.h> unconditionally.
27002
27003         * lib/bcopy.c: Include <stddef.h>.
27004         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
27005
27006         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
27007
27008         * lib/error.h (error, error_at_line, error_print_progname)
27009         [! (defined (__STDC__) && __STDC__)]: Remove decls.
27010         * lib/error.c: Include error.h first, to check interface.
27011         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
27012         (VA_START): Remove; all uses changeed to va_start.
27013         (exit, strerror): Remove decls.
27014         (error_print_progname): Prototype uncondionally.
27015         Don't include <errno.h>; no longer needed.
27016         (private_strerror): Remove.
27017         (error_tail): Always define.
27018         (error, error_at_line): Assume C89 or better; always use prototypes.
27019         * lib/fatal.c: Include "fatal.h" first, to test interface.
27020         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
27021         (VA_START): Remove; all uses changed to va_start.
27022         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
27023         this case.
27024         (exit): Remove decl.
27025         (fatal): Prototype unconditionally.  Assume va_start works.
27026         Abort at end, to pacify gcc.
27027
27028         * lib/euidaccess.c (main): Define with a prototype.
27029
27030         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
27031
27032         * lib/exitfail.c: Include <stdlib.h> unconditionally.
27033
27034         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
27035         prototypes.
27036         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
27037         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
27038         (getenv): Remove decl.
27039         (fnmatch): Define using a prototype.
27040         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
27041         (FCT): Define using a prototype.
27042
27043         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
27044
27045         * lib/gethostname.c: Include <stddef.h>.
27046         (gethostname): Define with prototype.  Length is size_t, not int.
27047
27048 2003-09-08  Paul Eggert  <eggert@twinsun.com>
27049
27050         Assume C89 or better; remove K&R cruft.
27051         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
27052         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
27053         string.h, getenv, malloc.
27054         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
27055         headers.
27056         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
27057         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
27058         do not check for strerror.
27059         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
27060         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
27061         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
27062         do not check for doprnt or vprintf.
27063         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
27064         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
27065
27066 2003-09-08  Paul Eggert  <eggert@twinsun.com>
27067
27068         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
27069         getversion.c should have been removed then, but was accidentally
27070         preserved.
27071
27072         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
27073         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
27074
27075 2003-09-08  Karl Berry  <karl@gnu.org>
27076
27077         * config/config.sub, config.guess, srclistvars.sh: update from savannah
27078                 config, forget about prep.
27079
27080         * config/depcomp, missing: update from automake.
27081
27082 2003-09-07  Paul Eggert  <eggert@twinsun.com>
27083
27084         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
27085         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
27086
27087 2003-09-07  Paul Eggert  <eggert@twinsun.com>
27088
27089         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
27090         copy_tm_result.  Bug reported by Simon Josefsson in
27091         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
27092
27093 2003-09-06  Paul Eggert  <eggert@twinsun.com>
27094
27095         * m4/time_r.m4: New file.
27096         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
27097         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
27098         is. Check for timegm declaration.
27099         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
27100         Do not check for gmtime_r.
27101         Replace mktime if __mktime_internal does not exist and if mktime
27102         hasn't been replaced already.
27103
27104 2003-09-06  Paul Eggert  <eggert@twinsun.com>
27105
27106         * lib/time_r.c, lib/time_r.h: New files.
27107
27108         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
27109         __localtime_r.
27110         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
27111         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
27112
27113         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
27114         __gmtime_r.
27115         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
27116         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
27117         Include <time_r.h>.
27118
27119         * lib/timegm.c: Switch to glibc implementation, with the following
27120         changes:
27121         [defined HAVE_CONFIG_H]: Include <config.h>.
27122         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
27123         (__mktime_internal) [!defined _LIBC]: New decl.
27124         (__gmtime_r) [!defined _LIBC]: New macro and function.
27125         (timegm): Use a prototype, since gnulib assumes C89.
27126         Do not bother declaring tmp to be const, as it's not really usefu.
27127         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
27128         (timegm): Declare only if HAVE_DECL_TIMEGM.
27129
27130 2003-09-06  Paul Eggert  <eggert@twinsun.com>
27131
27132         * MODULES.html.sh (func_all_modules): Add time_r.
27133         * modules/time_r: New file.
27134         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
27135         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
27136
27137 2003-09-03  Paul Eggert  <eggert@twinsun.com>
27138
27139         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
27140         Bug reported by Lute Kamstra in
27141         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
27142
27143         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
27144         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
27145         course with correspondingly smaller numbers for tomorrow and
27146         yesterday.  From Tadayoshi Funaba.  Originally installed into
27147         sh-utils on 1999-08-07, but the patch got lost (I guess during the
27148         coreutils merge?).
27149
27150 2003-08-31  Simon Josefsson  <jas@extundo.com>
27151
27152         * modules/timegm: New file.
27153         * MODULES.html.sh (func_all_modules): Add timegm.
27154
27155 2003-08-31  Simon Josefsson  <jas@extundo.com>
27156
27157         * m4/timegm.m4: New file.
27158
27159 2003-08-31  Simon Josefsson  <jas@extundo.com>
27160
27161         * lib/timegm.h: New file.
27162         * lib/timegm.c: New file.  Based on
27163         wget-1.8.2/src/http.c:mktime_from_utc.
27164
27165 2003-08-31  Karl Berry  <karl@gnu.org>
27166
27167         * lib/argp.h: update from libc.
27168
27169 2003-08-28  Bruno Haible  <bruno@clisp.org>
27170
27171         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
27172         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
27173         followed by '#define fnmatch fnmatch_posix' gives an error.
27174
27175 2003-08-28  Bruno Haible  <bruno@clisp.org>
27176
27177         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
27178         warning on QNX, which defines O_BINARY to 000000.
27179
27180 2003-08-27  Jim Meyering  <jim@meyering.net>
27181
27182         * m4/mkstemp.m4: Require that the system mkstemp be able to create
27183         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
27184         would fail after 32.  Reported by Danny Levinson.  Details here:
27185         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
27186
27187 2003-08-24  Bruno Haible  <bruno@clisp.org>
27188
27189         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
27190         MSVC7 <stdio.h> is included later.
27191
27192 2003-08-22  Simon Josefsson  <jas@extundo.com>
27193
27194         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
27195
27196 2003-08-20  Karl Berry  <karl@gnu.org>
27197
27198         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
27199
27200 2003-08-20  Bruno Haible  <bruno@clisp.org>
27201
27202         * modules/progname: New file.
27203         * MODULES.html.sh (func_all_modules): Add progname.
27204
27205 2003-08-20  Bruno Haible  <bruno@clisp.org>
27206
27207         * lib/progname.h: New file, from GNU gettext.
27208         * lib/progname.c: New file, from GNU gettext.
27209         * lib/progreloc.c: New file, from GNU gettext.
27210
27211 2003-08-19  Jim Meyering  <jim@meyering.net>
27212
27213         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
27214         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
27215
27216 2003-08-19  Bruno Haible  <bruno@clisp.org>
27217
27218         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
27219         more.
27220
27221 2003-08-19  Bruno Haible  <bruno@clisp.org>
27222
27223         * lib/xstrdup.c: Assume <string.h> exists.
27224
27225 2003-08-18  Paul Eggert  <eggert@twinsun.com>
27226
27227         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
27228         in makefile rules.
27229
27230 2003-08-18  Jim Meyering  <jim@meyering.net>
27231
27232         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
27233         * m4/lib-ld.m4: Likewise.
27234
27235 2003-08-18  Jim Meyering  <jim@meyering.net>
27236
27237         * lib/setenv.h: Indent nested cpp directive.
27238         * lib/vasnprintf.c: Remove trailing blanks.
27239
27240 2003-08-17  Simon Josefsson  <jas@extundo.com>
27241
27242         * modules/xstrndup: New file.
27243         * MODULES.html.sh (func_all_modules): Add xstrndup.
27244
27245 2003-08-17  Simon Josefsson  <jas@extundo.com>
27246
27247         * modules/argp: Fix autoconf macro name. Add more dependencies.
27248
27249 2003-08-17  Simon Josefsson  <jas@extundo.com>
27250
27251         * m4/xstrndup.m4: New file.
27252
27253 2003-08-17  Simon Josefsson  <jas@extundo.com>
27254
27255         * m4/argp.m4: New file.
27256
27257 2003-08-17  Simon Josefsson  <jas@extundo.com>
27258             Bruno Haible  <bruno@clisp.org>
27259
27260         * lib/xstrndup.h: New file.
27261         * lib/xstrndup.c: New file.
27262
27263 2003-08-17  Bruno Haible  <bruno@clisp.org>
27264
27265         * modules/strndup (Files, Include): Add lib/strndup.h.
27266
27267 2003-08-17  Bruno Haible  <bruno@clisp.org>
27268
27269         * modules/euidaccess (Files): Add lib/euidaccess.h.
27270
27271 2003-08-17  Bruno Haible  <bruno@clisp.org>
27272
27273         * lib/strndup.h: New file.
27274
27275 2003-08-17  Bruno Haible  <bruno@clisp.org>
27276
27277         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
27278         like AC_GNU_SOURCE.
27279         * modules/extensions (configure.ac): Comment out the invocation of
27280         gl_USE_SYSTEM_EXTENSIONS.
27281
27282 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27283
27284         Merges from coreutils, etc.
27285         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
27286         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
27287         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
27288         fixing a typo.
27289         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
27290         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
27291
27292 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27293
27294         Document merge from coreutils.
27295         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
27296         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
27297         * modules/utime: Add m4/utimes-null.m4.
27298
27299 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27300
27301         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
27302         space, undoing this 2003-08-12 change:
27303         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
27304
27305 2003-08-16  Paul Eggert  <eggert@twinsun.com>
27306
27307         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
27308         strtoul.c from libc, undoing this 2003-08-12 change:
27309         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
27310
27311 2003-08-16  Jim Meyering  <jim@meyering.net>
27312
27313         Merges from coreutils.
27314         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
27315         prefix.  Adjust cache variables similarly.  Create 500 rather than
27316         just 300 files, to exercise bug on Darwin6.5, too.
27317         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
27318         $missing_dir.
27319         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
27320         AM_SYS_POSIX_TERMIOS.
27321         Reported by mkc@mathdogs.com.
27322         Also change use of $am_cv_sys_posix_termios
27323         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
27324         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
27325         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
27326         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
27327         in /proc/mounts until it finds one with matching device number.  This
27328         is unnecessary when the FILE argument *is* a mount point.  No stat call
27329         is necessary in that case.  So, disable the statvfs-testing code on
27330         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
27331         as RedHat bug# 84846.
27332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
27333         to 1MB, so as not to render systems with no stack size limit (e.g.,
27334         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
27335         Include <unistd.h>.  On some systems,
27336         it is required for the definition of _SC_PAGESIZE.
27337
27338 2003-08-16  Jim Meyering  <jim@meyering.net>
27339
27340         Merge from coreutils.
27341         * lib/xstrtoimax.c: #else #if -> #elif.
27342         * lib/xstrtoumax.c: Likewise.
27343
27344 2003-08-16  Jim Meyering  <jim@meyering.net>
27345
27346         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
27347         * m4/utimes.m4: Removed.
27348         * m4/utimes-null.m4: Renamed from utimes.m4.
27349
27350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
27351         to 1MB, so as not to render systems with no stack size limit (e.g.,
27352         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
27353         Include <unistd.h>.  On some systems,
27354         it is required for the definition of _SC_PAGESIZE.
27355
27356 2003-08-16  Jim Meyering  <jim@meyering.net>
27357         and Paul Eggert  <eggert@cs.ucla.edu>
27358
27359         Merges from coreutils, etc.
27360
27361         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
27362         using the latest version from cvs.  This avoids problems with #line
27363         directives using a vendor (Sun) compiler.
27364         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
27365         Don't set GETGROUPS_LIB here; now it's
27366         done via getgroups.m4's wrapper function.
27367         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
27368         rather than just in sh-util/configure.in, so that the
27369         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
27370         same.
27371         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
27372         AC_FUNC_GETLOADAVG where to find getloadavg.c.
27373         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
27374         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
27375         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
27376         Remove code that is now done by the newly-required macros.
27377         Append $(EXEEXT) to DF_PROG.
27378         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
27379         Do not invoke or require the following here,
27380         since prereq.m4 or some gnulib .m4 now does this for us:
27381         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
27382         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
27383         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
27384         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
27385         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
27386         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
27387         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
27388         AC_FUNC_OBSTACK.
27389         Do not replace the following functions, as this is now the job
27390         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
27391         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
27392         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
27393         atexit getpass, strdup, getpagesize.
27394         Replace 'raise'.
27395         Do not check for the following functions, as this is now the job
27396         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
27397         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
27398         setregid.
27399         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
27400         Check for sys/sysctl.h.
27401         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
27402         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
27403         of checking for ssize_t ourselves.
27404
27405         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
27406         Require every macro that gnulib/modules/* suggests for us.
27407         (jm_PREREQ_ADDEXT): New macro.
27408         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
27409         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
27410
27411         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
27412         (gl_PHYSMEM): Use it.
27413         Also check for `table' function.
27414         Check for new headers and functions.
27415         Add check for sys/sysmp.h.
27416         With suggestions from Kaveh Ghazi.
27417         Ignore headers that are present but cannot be compiled.  This
27418         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
27419         C 5.4.
27420
27421 2003-08-15  Paul Eggert  <eggert@twinsun.com>
27422
27423         Document merge from coreutils.
27424         * modules/userspec: Depend on posixver.
27425         * modules/strftime: Depend on tzset.
27426
27427 2003-08-15  Paul Eggert  <eggert@twinsun.com>
27428
27429         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
27430         rather than tab, after '#' in shell-script copyright notices.
27431         Suggested by Bruno Haible.
27432
27433 2003-08-15  Paul Eggert  <eggert@twinsun.com>
27434
27435         * config/srclist-update: Use three spaces, rather than tab, after '#'
27436         in shell-script copyright notices.  Suggested by Bruno Haible.
27437         Remove unnecessary parenthesization in regular expression.
27438
27439 2003-08-15  Jim Meyering  <jim@meyering.net>
27440
27441         Merge from coreutils.
27442         * lib/xgethostname.c: Include <stdlib.h>.
27443         (xghostname): Don't exit for anything other than memory-related
27444         failure; just return NULL.
27445         * lib/userspec.c: Include "posixver.h".
27446         (parse_user_spec): Accept `.' as a separator only
27447         in pre-POSIX-200112 mode.
27448         * lib/strtoimax.c: Use #elif rather than #else #if.
27449         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
27450         Remove function, now that we can rely on a working tzset function.
27451         [!_LIBC]: Ensure that the required autoconf test has been run.
27452         [!defined _NL_CURRENT && HAVE_STRFTIME]:
27453         Use underlying_strftime for %r.
27454         * lib/sha.c: Merge in some clean-up and optimization changes from
27455         glibc.
27456         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
27457         Ensure that it is a multiple of 64.
27458         Rearrange loop exit tests so as to avoid performing an
27459         additional fread after encountering an error or EOF.
27460         * lib/realloc.c: Update copyright date.
27461
27462 2003-08-15  Jim Meyering  <jim@meyering.net>
27463         and Paul Eggert  <eggert@twinsun.com>
27464
27465         Merge from coreutils.
27466         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
27467         member but strut utmpx does not.  Needed for AIX 4.3.3.
27468         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
27469
27470 2003-08-15  Jim Meyering  <jim@meyering.net>
27471         and Paul Eggert  <eggert@cs.ucla.edu>
27472
27473         Merges from coreutils, etc.
27474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
27475         Require gl_FUNC_TZSET_CLOBBER.
27476         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
27477         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
27478         members.
27479
27480 2003-08-14  Paul Eggert  <eggert@twinsun.com>
27481
27482         Help the merge from coreutils.
27483         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
27484         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
27485         * m4/tzset.m4: Use it too.
27486
27487 2003-08-14  Paul Eggert  <eggert@twinsun.com>
27488
27489         * modules/tzset: New file.
27490
27491 2003-08-14  Jim Meyering  <jim@meyering.net>
27492
27493         Merges from coreutils.
27494         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
27495         variable names, rather than @FNMATCH_H@.
27496         * modules/alloca: Likewise for $(ALLOCA_H).
27497
27498         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
27499         the three copies of the literal target, `fnmatch.h'.
27500         * modules/alloca (alloca.h): Likewise.
27501
27502 2003-08-14  Jim Meyering  <jim@meyering.net>
27503
27504         Merge from coreutils.
27505         * m4/tzset.m4: New file.
27506         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
27507         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
27508         otherwise, AIX 5.1 systems would end up using the latter.
27509         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
27510         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
27511         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
27512         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
27513
27514 2003-08-14  Jim Meyering  <jim@meyering.net>
27515
27516         Merge from coreutils.
27517         * lib/obstack.h: Whitespace changes.
27518         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
27519         and xcalloc return values.
27520         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
27521         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
27522         hang on OSF/1 5.1 for DIR on both local and remote file systems.
27523         Reported by (and fix confirmed by) Nelson H. F. Beebe.
27524         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27525         error from mntctl.
27526         Use mntctl's return value to drive the entry-processing loop, since
27527         we can't rely on the value of the vmt_length member in the last
27528         entry.  On some systems doing so could result in exhausting
27529         virtual memory.  Based in part on a patch from Mike Jetzer.
27530
27531 2003-08-14  Jim Meyering  <jim@meyering.net>
27532         and Paul Eggert  <eggert@twinsun.com>
27533
27534         Merges from coreutils, plus other fixes.
27535         * lib/physmem.c: Merge in portability changes from gcc/libiberty
27536         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
27537         for credits and details.  Thanks to Kaveh Ghazi for helping
27538         to keep these files in sync.
27539         (ARRAY_SIZE): Define it.
27540         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
27541         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
27542         (memcasecmp): Don't assume size_t fits in unsigned int.
27543         Remove casts and duplicate code.
27544         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
27545         (memcpy): Remove definition.
27546         Merge in some clean-up and optimization changes from glibc.
27547         [BLOCKSIZE]: Move definition to top of file.
27548         Ensure that it is a multiple of 64.
27549         Rearrange loop exit tests so as to avoid performing an
27550         additional fread after encountering an error or EOF.
27551         * lib/md5.h (md5_uintptr): Define.
27552         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
27553         return to the initial working directory.  Preserve errno
27554         for caller.
27555         * lib/idcache.c: Include "xalloc.h".
27556         (xmalloc, xrealloc): Remove decls.
27557         (getuser): Remove casts no longer required in C89.
27558         * lib/human.c: Include stdio.h, for sprintf.
27559         * lib/group-member.c: Include "xalloc.h".
27560         (xmalloc, xrealloc): Remove decls.
27561         (get_group_info): Remove casts no longer required in C89.
27562         * lib/getusershell.c (readname): Remove casts no longer required in
27563         C89.
27564         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
27565         * lib/getline.c: Whitespace fix, from coreutils.
27566
27567 2003-08-13  Paul Eggert  <eggert@twinsun.com>
27568
27569         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
27570         Check for isascii.
27571
27572         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
27573         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
27574         Undo previous (whitespace-only) change.
27575
27576 2003-08-13  Paul Eggert  <eggert@twinsun.com>
27577
27578         * lib/exclude.c: Include <ctype.h>
27579         (IN_CTYPE_DOMAIN): New macro.
27580         (is_space): New fn.
27581         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
27582         and empty lines.
27583
27584         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
27585         Undo previous (whitespace-only) change.
27586
27587 2003-08-13  Paul Eggert  <eggert@twinsun.com>
27588
27589         * config/srclist-update: Change update back to the old behavior,
27590         leaving whitespace alone.  Use one 'sed' command rather than a
27591         pipeline.
27592         (fixlicense): Now a variable, not a function.
27593         (remove_trailing_blanks): Remove.
27594         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
27595         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
27596         Undo previous (whitespace-only) change.
27597
27598 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27599
27600         Merge from coreutils.
27601         * modules/euidaccess: Add lib_SOURCES, include for new
27602         file euidaccess.h
27603
27604 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27605
27606         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
27607         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
27608         Normalize leading white space and remove trailing white space.
27609
27610         Merge from coreutils
27611         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
27612
27613         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
27614         0.12.1.  These files are now being upgraded automatically by
27615         ../config/srclist-update.
27616
27617 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27618
27619         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
27620         Normalize leading white space and remove trailing white space.
27621         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
27622         notice, as per ../config/srclist-update.
27623
27624         Merge from coreutils.
27625         * lib/euidaccess.h: New file.
27626         * lib/euidaccess.c: Include it.
27627         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
27628         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
27629         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
27630
27631 2003-08-12  Paul Eggert  <eggert@twinsun.com>
27632
27633         * config/srclist-update: Add copyright notice.
27634         (remove_id_lines, remove_trailing_blanks): New constants.
27635         (fixfile): Use them to normalize spacing a bit in copied files.
27636         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
27637         Normalize leading white space and remove trailing white space.
27638
27639         * config/texinfo.tex: Sync with texinfo.
27640
27641         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
27642         strtoul.c from libc, to merge coreutils whitespace changes.
27643
27644         * config/srclist.txt: Get the following m4 files from gettext:
27645         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
27646         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
27647         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
27648         wint_t.m4.
27649
27650 2003-08-12  Karl Berry  <karl@gnu.org>
27651
27652         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
27653         been made.
27654
27655 2003-08-11  Paul Eggert  <eggert@twinsun.com>
27656
27657         * modules/gnu-source, m4/gnu-source.m4:
27658         Remove; we're assuming Autoconf 2.54 or later now.
27659         Suggested by Bruno Haible.
27660         * MODULES.html.sh (func_all_modules): Remove gnu-source.
27661
27662 2003-08-11  Bruno Haible  <bruno@clisp.org>
27663
27664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
27665
27666 2003-08-11  Bruno Haible  <bruno@clisp.org>
27667
27668         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
27669         (vasnprintf): Use it instead of wcslen.
27670
27671 2003-08-11  Bruno Haible  <bruno@clisp.org>
27672
27673         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
27674         value to ensure that _Bool promotes to int. Use #define for _Bool when
27675         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
27676
27677 2003-08-10  Karl Berry  <karl@gnu.org>
27678
27679         * lib/regex.h: update from libc (whitespace fix).
27680
27681 2003-08-09  Paul Eggert  <eggert@twinsun.com>
27682
27683         Merge some files from coreutils.  These changes were
27684         originally made by Jim Meyering.
27685         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
27686         many older Unixes require this.
27687         * lib/alloca.c (alloca): Remove cast to argument of free;
27688         no longer needed in C89.
27689         * lib/alloca_.h, regex.h: Fix white space to match
27690         what GNU indent does.
27691
27692 2003-08-09  Paul Eggert  <eggert@twinsun.com>
27693
27694         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
27695         apparently Emacs's Unicode mode got confused before my 2003-08-05
27696         checkin.
27697
27698 2003-08-08  Paul Eggert  <eggert@twinsun.com>
27699
27700         * m4/extensions.m4: New file.
27701         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
27702         Require gl_USE_SYSTEM_EXTENSIONS.
27703         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
27704         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
27705
27706 2003-08-08  Paul Eggert  <eggert@twinsun.com>
27707
27708         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
27709         * modules/extensions, modules/gnu-source: New files.
27710         * modules/timespec, modules/unlocked-io: Depend on extensions.
27711
27712 2003-08-07  Paul Eggert  <eggert@twinsun.com>
27713
27714         * modules/restrict: New file.
27715         * MODULES.html.sh (func_all_modules): Add restrict.
27716         * modules/regex: Depend on restrict.
27717
27718 2003-08-07  Paul Eggert  <eggert@twinsun.com>
27719
27720         * m4/restrict.m4: New file.
27721         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
27722
27723 2003-08-07  Bruno Haible  <bruno@clisp.org>
27724
27725         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
27726         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
27727
27728 2003-08-07  Bruno Haible  <bruno@clisp.org>
27729
27730         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
27731         makes the module 'getndelim2' compatible with the module 'getline'.
27732
27733 2003-08-05  Paul Eggert  <eggert@twinsun.com>
27734
27735         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
27736         byte with "\201" to avoid glitches when editing that source file
27737         with multi-gnome-terminal.
27738
27739 2003-08-05  Paul Eggert  <eggert@twinsun.com>
27740
27741         * lib/bumpalloc.h: Remove.
27742
27743 2003-08-05  Paul Eggert  <eggert@twinsun.com>
27744
27745         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
27746         * modules/bumpalloc: Remove.
27747
27748 2003-08-04  Paul Eggert  <eggert@twinsun.com>
27749
27750         * lib/getloadavg.c: Change copyright notice and spacing to conform to
27751         GNU coding style.
27752
27753         Merge from coreutils.
27754         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
27755         1. From glibc.
27756         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
27757         from Karl Berry, implemented by Jim Meyering.
27758         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
27759         from Dmitry V. Levin.
27760         Remove anachronistic cast of xrealloc.
27761         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
27762         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
27763         type. Otherwise, it wouldn't compile with at least /bin/cc on
27764         ymp-cray-unicos9.0.2.X.
27765         Combine two mostly-identical uses of alloca into one.
27766         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
27767
27768 2003-08-04  Dave Love  <d.love@dl.ac.uk>
27769
27770         [From Emacs.]
27771
27772         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
27773         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
27774         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
27775         obsolete NLIST_NAME_UNION.
27776         [__GNU__]: Undef BSD and FSCALE.
27777         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
27778
27779 2003-08-03  Paul Eggert  <eggert@twinsun.com>
27780
27781         * lib/stdbool_.h (_Bool): Make it signed char, instead of
27782         an enum type, so that it's guaranteed to promote to int.  See:
27783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
27784
27785 2003-08-03  Karl Berry  <karl@gnu.org>
27786
27787         * config/depcomp: update from automake.
27788
27789 2003-07-31  Paul Eggert  <eggert@twinsun.com>
27790
27791         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
27792         (strerror): Don't assume that a printable int fits in 14 bytes.
27793
27794 2003-07-31  Bruno Haible  <bruno@clisp.org>
27795
27796         * modules/getpass-gnu: New file.
27797         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
27798
27799 2003-07-31  Bruno Haible  <bruno@clisp.org>
27800
27801         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
27802
27803 2003-07-24  Karl Berry  <karl@gnu.org>
27804
27805         * config/missing: update from automake.
27806
27807 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
27808             Bruno Haible  <bruno@clisp.org>
27809
27810         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
27811         * lib/getline.c (getline, getdelim): Likewise.
27812         Remove _GNU_SOURCE define; now it's defined in config.h through
27813         m4/getline.m4.
27814
27815 2003-07-23  Karl Berry  <karl@gnu.org>
27816
27817         * config/config.sub: update from prep.
27818
27819 2003-07-22  Paul Eggert  <eggert@twinsun.com>
27820
27821         * modules/xalloc (Depends-on): Add exitfail.
27822         * modules/xmemcoll: Likewise.
27823
27824 2003-07-22  Paul Eggert  <eggert@twinsun.com>
27825
27826         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
27827         over-parenthesization in macros.
27828
27829         Sync with coreutils.
27830
27831         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
27832         required by C99.
27833
27834         Use `exit_failure' for xalloc and xmemcoll instead of their own
27835         private exit-failure variables.
27836         * lib/xalloc.h (xalloc_exit_failure): Remove.
27837         * lib/xmalloc.c: Likewise.  Include exitfail.h.
27838         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
27839         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
27840         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
27841         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
27842
27843 2003-07-20  Jim Meyering  <jim@meyering.net>
27844
27845         * modules/closeout (Depends-on): Add exitfail.
27846         Suggestion from Bruno Haible.
27847
27848 2003-07-19  Karl Berry  <karl@gnu.org>
27849
27850         * config/config.sub: update from prep.
27851
27852 2003-07-18  Paul Eggert  <eggert@twinsun.com>
27853
27854         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
27855         Remove.
27856         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
27857         to test that it can stand by itself.  Include "exitfail.h".
27858         Clients should set exit_failure instead.
27859         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
27860
27861 2003-07-18  Bruno Haible  <bruno@clisp.org>
27862
27863         * modules/getndelim2: New file.
27864         * modules/getline: Share files with module getndelim2.
27865         * modules/getnline: Depend on getndelim2 instead of sharing files with
27866         it. Add getnline.c to lib_SOURCES.
27867         * MODULES.html.sh (func_all_modules): Add getndelim2.
27868
27869 2003-07-18  Bruno Haible  <bruno@clisp.org>
27870
27871         * m4/getndelim2.m4: New file.
27872         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
27873         invoke gl_PREREQ_GETNDELIM2.
27874         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
27875         gl_PREREQ_GETNDELIM2.
27876         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
27877         gl_GETNDELIM2.
27878
27879 2003-07-18  Bruno Haible  <bruno@clisp.org>
27880
27881         * lib/getndelim2.h: New file.
27882         * lib/getndelim2.c: Make into a module of its own. Include config.h,
27883         getndelim2.h.
27884         (getndelim2): Make non-static. Change return type to ssize_t.
27885         * lib/getline.h: Change argument names.
27886         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
27887         * lib/getnline.c: Include getndelim2.h.
27888
27889 2003-07-18  Andreas Schwab  <schwab@suse.de>
27890
27891         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
27892
27893 2003-07-17  Karl Berry  <karl@gnu.org>
27894
27895         * config/config.sub: update from prep.
27896
27897 2003-07-17  Bruno Haible  <bruno@clisp.org>
27898
27899         * modules/getnline: New file.
27900         * modules/getline: Add lib/getndelim2.c to source file list.
27901         * MODULES.html.sh (func_all_modules): Add getnline.
27902
27903 2003-07-17  Bruno Haible  <bruno@clisp.org>
27904
27905         * m4/getnline.m4: New file.
27906
27907 2003-07-17  Bruno Haible  <bruno@clisp.org>
27908
27909         * m4/Makefile.am.in: Remove file.
27910         * m4/Makefile.am: Remove file.
27911         * m4/Makefile.in: Remove file.
27912
27913 2003-07-17  Bruno Haible  <bruno@clisp.org>
27914
27915         * lib/getnline.h: New file.
27916         * lib/getnline.c: New file.
27917         * lib/getndelim2.c: New file, extracted from getline.c.
27918         (getndelim2): Renamed from getdelim2, with added nmax argument.
27919         * lib/getline.c: Include getndelim2.c.
27920         (getdelim2): Moved out to getndelim2.c.
27921         (getline, getdelim): Update.
27922
27923 2003-07-17  Bruno Haible  <bruno@clisp.org>
27924
27925         * lib/Makefile.am: Remove file.
27926         * lib/Makefile.in: Remove file.
27927
27928 2003-07-17  Bruno Haible  <bruno@clisp.org>
27929
27930         * configure.in: Remove file.
27931         * Makefile.in: Remove file.
27932
27933 2003-07-17  Bruno Haible  <bruno@clisp.org>
27934
27935         * MODULES.html.sh: Put the </BODY> right before </HTML>.
27936
27937 2003-07-16  Karl Berry  <karl@gnu.org>
27938
27939         * config/srclist-update: was running fixlicense twice, which caused
27940                 texinfo.tex to be nullified for some reason.  Simplify,
27941                 $gplsrc is no longer needed as far as I can see?
27942
27943 2003-07-16  Jim Meyering  <jim@meyering.net>
27944
27945         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
27946
27947 2003-07-15  Paul Eggert  <eggert@twinsun.com>
27948
27949         * config/srclist.txt: Get the following files from gettext-runtime/intl
27950         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
27951         ref-del.sin.  From Bruno Haible.
27952         * config/srclist-update (fixfile): Change grep pattern again, since the
27953         previous fix didn't work (there was another trailing $).  Use
27954         '[$]' to escape the $s.
27955
27956 2003-07-15  Karl Berry  <karl@gnu.org>
27957
27958         * lib/vasnprintf.c: update from gettext.
27959
27960 2003-07-15  Karl Berry  <karl@gnu.org>
27961
27962         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
27963         gets expanded when surrounded by '$'.
27964
27965 2003-07-15  Jim Meyering  <jim@meyering.net>
27966
27967         * modules/save-cwd: Don't depend on error.  From Derek Price.
27968
27969 2003-07-15  Jim Meyering  <jim@meyering.net>
27970
27971         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
27972
27973 2003-07-14  Simon Josefsson  <jas@extundo.com>
27974
27975         * modules/mempcpy: New file.
27976         * MODULES.html.sh (func_all_modules): Add mempcpy.
27977
27978 2003-07-14  Simon Josefsson  <jas@extundo.com>
27979
27980         * m4/mempcpy.m4: New file.
27981
27982 2003-07-14  Simon Josefsson  <jas@extundo.com>
27983
27984         * lib/mempcpy.h: New file.
27985         * lib/mempcpy.c: New file.
27986
27987 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27988
27989         * modules/getdate, modules/posixtm: Depend on mktime.
27990
27991 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27992
27993         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
27994         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
27995         unicodeio.c, unicodeio.h, unlocked-io.h:
27996         Switch from LGPL to GPL.
27997
27998 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27999
28000         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
28001         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
28002         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
28003         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
28004         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
28005         updated automatically by ../config/srclist-update.  This changes
28006         their license from LPGL to GPL.
28007
28008 2003-07-14  Paul Eggert  <eggert@twinsun.com>
28009
28010         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
28011         assumed to refer to the root of the most recent stable gettext version.
28012         * config/srclistvars.sh: Add defaults for eggert.
28013         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
28014         Match "This program" as well as "The program".  This is needed
28015         for gettext.
28016
28017 2003-07-14  Jim Meyering  <jim@meyering.net>
28018
28019         Don't emit diagnostics.  Let callers do that.
28020         * lib/save-cwd.c: Don't include "error.h".
28021         (save_cwd): Don't call error.  Ensure that errno is valid
28022         when returning nonzero.
28023
28024         * lib/save-cwd.h (restore_cwd): Update prototype.
28025         * lib/save-cwd.c (restore_cwd): Remove two parameters.
28026         Simplify.  Don't call error upon failure.  Let callers do that.
28027         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
28028         when auditing is enabled.  But don't bother updating the #if.
28029
28030 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
28031
28032         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
28033         it breaks C++ compilation.
28034         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
28035
28036 2003-07-10  Simon Josefsson  <jas@extundo.com>
28037
28038         * modules/strchrnul (Makefile.am): Add strchrnul.h.
28039
28040 2003-07-10  Jim Meyering  <jim@meyering.net>
28041
28042         * m4/clock_time.m4: Remove trailing blank.
28043         * m4/intmax_t.m4: Likewise.
28044
28045 2003-07-10  Jim Meyering  <jim@meyering.net>
28046
28047         * lib/vasnprintf.c: Remove trailing blanks.
28048         Make cpp indentation consistent.
28049
28050 2003-07-09  Paul Eggert  <eggert@twinsun.com>
28051
28052         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
28053         posixver.c, strftime.c, strnlen.c, strverscmp.c:
28054         Switch from LGPL to GPL.
28055
28056 2003-07-09  Paul Eggert  <eggert@twinsun.com>
28057
28058         * config/srclist.txt: Sort sublists.  Add
28059         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
28060         that differ from gnulib for one reason or another; we'd like this list
28061         to be smaller but for now let's document what we have.
28062
28063 2003-07-08  Paul Eggert  <eggert@twinsun.com>
28064
28065         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
28066         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
28067         and sweeter "eval x=$x".
28068         * config/srclist.txt: Get lib/argp* from glibc.
28069
28070 2003-07-07  Paul Eggert  <eggert@twinsun.com>
28071
28072         * lib/mktime.c: Fix some boundary cases and remove need for floating
28073         point.
28074
28075         Issue a compile-time diagnostic if time_t is floating point, or if
28076         two's complement arithmetic is not in effect, or if arithmetic
28077         right shift does not propagate the sign.  These assumptions were
28078         all in the original code but they weren't checked.
28079
28080         (TIME_T_MIDPOINT, verify): New macros.
28081         (__isleap): Remove; it has integer overflow problems.
28082         (leapyear): New function, without those problems.
28083         (ydhms_tm_diff): Remove; splitting into two parts.
28084         (ydhms_diff): New function, containing the arithmetic part of
28085         the old ydhms_tm_diff function.  Issue a compile-time
28086         diagnostic if we are not using C99 integer division.
28087         Avoid casts when possible.
28088         (guess_time_tm): New function, containing the checking part of
28089         the old ydhms_tm_diff function.  Return the new value, rather than
28090         the difference between it and the old.  Accept a new argument T
28091         so that *T specifies the old value.  Check for overflow in the result.
28092
28093         (__mktime_internal): Use a time_t offset, not a long int offset.
28094         This undoes the 2003-06-04 change, which is no longer needed now
28095         that we have better overflow checking.
28096         (localtime_offset): Likewise.
28097
28098         (__mktime_internal): Avoid harmful overflow on hosts where time_t
28099         and long are 64-bit but int is only 32-bit.
28100         (ydhms_diff): Use long int to store year1 and yday1.
28101         Issue a compile-time diagnostic if long int is not wide enough.
28102
28103         (__mktime_internal): Use long int to store adjusted year and yday.
28104         Use plain C rather than preprocessor commands, if that doesn't
28105         affect efficiency.
28106         Check for overflow (and try to repair) after each probe
28107         rather than checking only at the very end.  This avoids some bugs
28108         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
28109         does not equal GMT offset at maximum time).
28110         Use integer to check for overflow rather than floating point; this
28111         is more portable to non-IEEE hosts, and is a tad faster.
28112         When we detect that we are oscillating between two values,
28113         don't check whether tm_isdst has the requested value, since
28114         we already know the answer.  When tm_isdst has the wrong value,
28115         use a different heuristic to find the right one, based on the
28116         extreme values actually observed in practice in tz2003a,
28117         rather than the (overly optimistic) "previous 3 calendar quarters".
28118
28119         (not_equal_tm, print_tm, check_result): Use "const T" rather than
28120         "T const" to accommodate glibc style.
28121         (check_result): Use less-confusing report format.  "long" -> "long int.
28122         (main): Likewise.
28123         Don't loop if the iteration overflows time_t.
28124         Allow a negative step in the iteration.
28125
28126 2003-07-06  Karl Berry  <karl@gnu.org>
28127
28128         * config/depcomp: update from automake.
28129         * config/config.sub: update from prep.
28130
28131 2003-07-03  Karl Berry  <karl@gnu.org>
28132
28133         * config/config.guess: update from prep.
28134
28135 2003-07-01  Paul Eggert  <eggert@twinsun.com>
28136
28137         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
28138         xreadlink.c now includes it unconditionally.
28139
28140 2003-07-01  Paul Eggert  <eggert@twinsun.com>
28141
28142         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
28143         having it depend on HAVE_SYS_TYPES_H.
28144
28145 2003-07-01  Bruno Haible  <bruno@clisp.org>
28146
28147         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
28148         <sys/types.h> should be sufficient.
28149         Reported by Paul Eggert.
28150
28151 2003-06-26  Karl Berry  <karl@gnu.org>
28152
28153         * config/depcomp: update from automake.
28154
28155 2003-06-26  Bruno Haible  <bruno@clisp.org>
28156
28157         * modules/human: Depend on module stdbool.
28158
28159 2003-06-25  Bruno Haible  <bruno@clisp.org>
28160
28161         * modules/readlink: New file.
28162         * modules/xreadlink: Depend on it.
28163         * MODULES.html.sh (func_all_modules): Add readlink.
28164
28165 2003-06-25  Bruno Haible  <bruno@clisp.org>
28166
28167         * m4/readlink.m4: New file.
28168
28169 2003-06-25  Bruno Haible  <bruno@clisp.org>
28170
28171         * lib/readlink.c: New file.
28172
28173 2003-06-22  Karl Berry  <karl@gnu.org>
28174
28175         * config/srclist.txt: update mkinstalldirs from automake.
28176         * config/mkinstalldirs: update.
28177
28178 2003-06-22  Bruno Haible  <bruno@clisp.org>
28179
28180         Portability to mingw32.
28181         * m4/ssize_t.m4: New file, from GNU gettext.
28182         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
28183         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
28184
28185 2003-06-22  Bruno Haible  <bruno@clisp.org>
28186
28187         * modules/safe-read: Add m4/ssize_t.m4.
28188         * modules/xreadlink: Add m4/ssize_t.m4.
28189
28190 2003-06-20  Bruno Haible  <bruno@clisp.org>
28191
28192         Assume C89, so PARAMS isn't needed.
28193         * lib/unicodeio.h (PARAMS): Remove.
28194         * lib/unicodeio.c: Don't use PARAMS.
28195
28196 2003-06-18  Karl Berry  <karl@gnu.org>
28197
28198         * config/config.{guess,sub}: update from prep.
28199
28200 2003-06-18  Jim Meyering  <jim@meyering.net>
28201
28202         Merge changes from coreutils.
28203         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
28204         Remove explicit declarations of xmalloc and realloc.
28205         Include xalloc.h.
28206         (read_utmp): Remove anachronistic cast of xmalloc.
28207
28208 2003-06-17  Paul Eggert  <eggert@twinsun.com>
28209
28210         Assume C89, so PARAMS isn't needed.
28211         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
28212         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
28213         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
28214         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
28215         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
28216         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
28217         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
28218         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
28219         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
28220         lib/xstrtod.h, lib/xstrtol.h: Likewise.
28221         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
28222         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
28223         no longer needed. Anyway, config.h should always be included before any
28224         other file.
28225
28226 2003-06-11  Simon Josefsson  <jas@extundo.com>
28227
28228         * modules/sysexits: New file.
28229         * MODULES.html.sh (func_all_modules): Add sysexits.
28230
28231 2003-06-11  Simon Josefsson  <jas@extundo.com>
28232
28233         * lib/sysexit_.h: New file.
28234
28235 2003-06-11  Derek Price  <derek@ximbiot.com>
28236
28237         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
28238         necessary.
28239
28240 2003-06-11  Bruno Haible  <bruno@clisp.org>
28241
28242         * m4/sysexits.m4: New file.
28243
28244 2003-06-10  Simon Josefsson  <jas@extundo.com>
28245
28246         * lib/argp.h: New file, from glibc.
28247         * lib/argp-ba.c: New file, from glibc.
28248         * lib/argp-eexst.c: New file, from glibc.
28249         * lib/argp-fmtstream.c: New file, from glibc.
28250         * lib/argp-fmtstream.h: New file, from glibc.
28251         * lib/argp-fs-xinl.c: New file, from glibc.
28252         * lib/argp-help.c: New file, from glibc.
28253         * lib/argp-namefrob.h: New file, from glibc.
28254         * lib/argp-parse.c: New file, from glibc.
28255         * lib/argp-pv.c: New file, from glibc.
28256         * lib/argp-pvh.c: New file, from glibc.
28257         * lib/argp-xinl.c: New file, from glibc.
28258
28259 2003-06-10  Simon Josefsson  <jas@extundo.com>
28260
28261         * modules/strchrnul: New file.
28262
28263 2003-06-10  Simon Josefsson  <jas@extundo.com>
28264
28265         * modules/argp: New file.
28266
28267 2003-06-10  Simon Josefsson  <jas@extundo.com>
28268
28269         * m4/strchrnul.m4: New file.
28270
28271 2003-06-10  Simon Josefsson  <jas@extundo.com>
28272
28273         * lib/strchrnul.h: New file.
28274         * lib/strchrnul.c: New file.
28275
28276 2003-06-10  Bruno Haible  <bruno@clisp.org>
28277
28278         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
28279
28280 2003-06-07  Karl Berry  <karl@gnu.org>
28281
28282         * config/config.{guess,sub}: update from prep.
28283
28284 2003-06-07  Jim Meyering  <jim@meyering.net>
28285
28286         * modules/strtod: Use $(...) notation, not @...@ for
28287         AC_REPLACE'd variables.
28288         * modules/localcharset: Likewise.
28289
28290 2003-06-07  Jim Meyering  <jim@meyering.net>
28291
28292         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
28293         in place of my name in the copyright comment.
28294         Remove definition and uses of __P.
28295
28296         From coreutils.
28297         * lib/stat.c: Don't declare xmalloc explicitly.
28298         Instead, include "xalloc.h".
28299         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
28300         xrealloc, and xcalloc return values.
28301         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
28302         Improve comment.
28303         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
28304
28305 2003-06-07  Bruno Haible  <bruno@clisp.org>
28306
28307         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
28308         avoid AC_CONFIG_LINKS.
28309         * modules/fnmatch (Makefile.am): Use explicit creation rule for
28310         fnmatch.h, to avoid AC_CONFIG_LINKS.
28311         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
28312
28313 2003-06-07  Bruno Haible  <bruno@clisp.org>
28314
28315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
28316         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
28317         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
28318         directory.
28319         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
28320         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
28321         directory.
28322
28323 2003-06-06  Jim Meyering  <jim@meyering.net>
28324
28325         Merge from coreutils.
28326         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
28327         Consolidate declarations and initializations of *_base* locals.
28328
28329         Merge from coreutils.
28330         This avoids a core dump on systems without GNU putenv,
28331         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
28332         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
28333         (unsetenv): New static function, from GNU libc.
28334         (rpl_putenv): Use it.
28335
28336         * lib/modechange.c: Remove trailing blanks.
28337
28338         Merge from coreutils.
28339         * lib/fsusage.c: Remove declaration of statfs.
28340         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
28341
28342         * lib/posixtm.c: Include <stdbool.h> unconditionally.
28343
28344 2003-06-06  Jim Meyering  <jim@meyering.net>
28345
28346         * lib/stdbool_.h: Renamed from stdbool.h.in.
28347
28348 2003-06-06  Jim Meyering  <jim@meyering.net>
28349             Bruno Haible  <bruno@clisp.org>
28350
28351         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
28352         Adjust Makefile.am snippet not to redirect directly to target.
28353         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
28354
28355 2003-06-05  Paul Eggert  <eggert@twinsun.com>
28356
28357         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
28358         mismatch, look in future quarters as well as past.  This fixes a
28359         bug when processing fall-backwards gaps immediately after a long
28360         period of daylight-saving time.
28361
28362         * lib/mktime.c: Assume freestanding C89 or better.
28363         (HAVE_LIMITS_H): Remove.  Assume it's 1.
28364         (__P): Remove; not used.
28365         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
28366         (mktime, not_equal_tm, print_tm, check_result,
28367         main): Use prototypes.  Use const * where appropriate.
28368         (main): Fix typo in testing code that uncovered by above changes.
28369         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
28370
28371 2003-06-04  Paul Eggert  <eggert@twinsun.com>
28372
28373         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
28374         locale.h, localeconv.  This merges changes from coreutils.
28375
28376         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
28377         It can be removed after the next Autoconf is released.
28378         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
28379         needed.
28380
28381 2003-06-04  Paul Eggert  <eggert@twinsun.com>
28382
28383         * lib/mktime.c: Fix Debian bug 177940
28384         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
28385         (localtime_offset): Now long int, not time_t, because we want it
28386         to be guaranteed to be signed.  All uses changed.
28387         (__mktime_internal): If overflow would occur when adding offset,
28388         don't add it.
28389
28390         Merge 'human' changes from coreutils.  Rewrite to support
28391         locale-specific notations like thousands separators.
28392         * lib/human.c: Simplify authorship notice.
28393         Include human.h immediately after config.h.
28394         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
28395         <limits.h>: Do not include, since human.h does.
28396         (SIZE_MAX, UINTMAX_MAX): New macros.
28397         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
28398         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
28399         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
28400         (power_letter): Renamed from suffixes.
28401         (generate_suffix_backwards): Remove.
28402         (adjust_value): Now takes int style (because of human.h changes)
28403         and long double value (for greater precision on some platforms).
28404         (group_number): New function.
28405         (human_readable): Use it.  Use integer options, not enum.
28406         Put the options before the sizes in the arg list.
28407         Support all the new options.
28408         The old human_readable function has been removed;
28409         use inttostr.h instead.
28410         (human_readable, default_block_size, humblock):
28411         Use uintmax_t, not int, for block sizes.
28412         (human_readable_inexact, block_size_types): Remove.
28413         (block_size_opts): New constant.
28414         (human_options): Renamed from human_block_size, with new signature
28415         that allows block sizes up to UINTMAX_MAX.  All callers changed.
28416         * lib/human.h: Add copyright and authorship notice.
28417         Include <limits.h> and <stdbool.h> unconditionally.
28418         (PARAMS): Remove.  All uses removed.
28419         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
28420         (enum human_inexact_style): Remove tag; now a nameless enum.
28421         (human_floor, human_ceiling, human_round_to_even): Now have
28422         values 2, 0, 1 rather than -1, 1, 0.
28423         (human_group_digits, human_suppress_point_zero, human_autoscale,
28424         human_base_1024, human_SI, human_B): New constants.
28425         (human_readable_inexact, human_block_size): Remove.
28426         (human_readable): Size args are now uintmax_t, not int.
28427         (human_options): New decl.
28428
28429         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
28430         unnecessary now that we assume C89 or better.  This change
28431         imported from coreutils.
28432
28433         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
28434         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
28435         in the 2003-05-30 sync from glibc.
28436
28437         .h files should stand alone, but we shouldn't include <sys/types.h>
28438         if we can get away with just <stddef.h>.
28439
28440         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
28441         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
28442         rather than <sys/types.h>, as we merely need size_t.
28443         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
28444         to get size_t.
28445         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
28446         Include <stdio.h>, to get FILE.
28447         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
28448         memcasecmp.h has included <stddef.h> and all we need is size_t.
28449         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
28450         our interface, instead of including <sys/types.h>
28451
28452 2003-06-04  Paul Eggert  <eggert@twinsun.com>
28453
28454         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
28455         now, as glibc mktime is buggy on non-glibc systems.
28456
28457 2003-06-03  Karl Berry  <karl@gnu.org>
28458
28459         * config/config.sub: update from prep.
28460
28461 2003-06-02  Paul Eggert  <eggert@twinsun.com>
28462
28463         [from coreutils]
28464         Fix some minor time-related bugs with POSIX time arguments.
28465         Some valid time stamps were being rejected (notably -1, and
28466         time stamps before 1900 on 64-bit hosts).  And some invalid
28467         time stamps were being accepted, e.g. September 31.
28468
28469         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
28470         that we can return (time_t) -1 successfully.
28471         * lib/posixtm.c: Likewise.
28472         [HAVE_STDBOOL_H]: Include <stdbool.h>.
28473         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
28474         (t): Remove static var.
28475         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
28476         of static var.  All uses changed.
28477         (year): Do not reject years before 1900; they can occur with
28478         64-bit time_t.
28479         (posix_time_parse): Do not check for out-of-range components;
28480         that is now the caller's responsibility, since our checks were
28481         only approximations.
28482         (posixtime): Use mktime to check for out-of-range components,
28483         since it knows them exactly.
28484         If mktime returns (time_t) -1, check whether an error actually occurred
28485         by invoking localtime on -1.
28486         (main) [TEST_POSIXTIME]: Check for input data errors, and report
28487         posixtime failures better.
28488         Improve the test data (in comments only).
28489
28490 2003-06-02  Karl Berry  <karl@gnu.org>
28491
28492         * config/mkinstalldirs (version): new variable.
28493         (--version): new option.
28494         (usage): improve message.
28495
28496 2003-05-30  Karl Berry  <karl@gnu.org>
28497
28498         * lib/mktime.c: update from libc.
28499
28500 2003-05-30  Bruno Haible  <bruno@clisp.org>
28501
28502         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
28503         * config/config.rpath: Upgrade to gettext-0.12.1.
28504
28505 2003-05-30  Bruno Haible  <bruno@clisp.org>
28506
28507         * m4/gettext.m4: Upgrade to gettext-0.12.1.
28508         * m4/nls.m4: New file, from gettext-0.12.1.
28509         * m4/po.m4: New file, from gettext-0.12.1.
28510         * m4/progtest.m4: Upgrade to gettext-0.12.1.
28511
28512 2003-05-30  Bruno Haible  <bruno@clisp.org>
28513
28514         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
28515         * lib/localcharset.h: Likewise.
28516         * lib/localcharset.c: Likewise.
28517
28518 2003-05-29  Karl Berry  <karl@gnu.org>
28519
28520         * config/config.rpath: update from gettext.
28521
28522 2003-05-28  Paul Eggert  <eggert@twinsun.com>
28523
28524         Assume the headers required for C89 freestanding compilers.
28525         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
28526         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
28527         * m4/human.m4 (gl_HUMAN): Likewise.
28528         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
28529         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
28530         * m4/userspec.m4 (gl_USERSPEC): Likewise.
28531         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
28532         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
28533         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
28534
28535 2003-05-28  Paul Eggert  <eggert@twinsun.com>
28536
28537         Assume the headers required for C89 freestanding compilers.
28538         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
28539         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
28540         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
28541         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
28542         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
28543         define, since <limits.h> is guaranteed to do that.
28544         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
28545         * lib/exclude.c: Include <stdbool.h> unconditionally.
28546         * lib/tempname.c: Include <stddef.h> unconditionally.
28547         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
28548         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
28549         <stddef.h> does that.
28550         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
28551         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
28552         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
28553         needed.
28554         * lib/xstrtol.c: Likewise.
28555         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
28556         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
28557
28558         * lib/addext.c (addext): Use assignment rather than cast, to avoid
28559         warnings on some platforms.
28560
28561         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
28562         arbitrarily.
28563
28564 2003-05-26  Jim Meyering  <jim@meyering.net>
28565
28566         Merge in a change from coreutils:
28567         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
28568         that is guaranteed to be `no'.  Use `no_such_member' to indicate
28569         that condition, rather than `-1' which is slightly misleading.
28570         Change the name of the cache variable to have the gl_ prefix.
28571         Prompted by a patch from Richard Dawe for DJGPP.
28572
28573 2003-05-24  Karl Berry  <karl@gnu.org>
28574
28575         * config/config.guess: update from prep.
28576
28577 2003-05-22  Karl Berry  <karl@gnu.org>
28578
28579         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
28580
28581 2003-05-20  Karl Berry  <karl@gnu.org>
28582
28583         * config/config.guess: update from prep.
28584
28585 2003-05-18  Karl Berry  <karl@gnu.org>
28586
28587         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
28588         might actually be set by the user.
28589
28590         * config/depcomp, install-sh, mdate-sh: update from automake.
28591
28592 2003-05-17  Bruno Haible  <bruno@clisp.org>
28593
28594         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
28595         invalid expansion for AC_EGREP_CPP.
28596         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28597         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28598         Suggested by Akim Demaille <akim@epita.fr> in
28599         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
28600
28601 2003-05-12  Jim Meyering  <jim@meyering.net>
28602
28603         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
28604         the space-padded-by-default conversion specifiers, %e, %k, %l.
28605
28606 2003-05-12  Bruno Haible  <bruno@clisp.org>
28607
28608         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
28609         the string is longer than 4 KB.
28610
28611 2003-05-11  Karl Berry  <karl@gnu.org>
28612
28613         * config/config.{guess,sub}: update from prep.
28614
28615 2003-05-09  Bruno Haible  <bruno@clisp.org>
28616
28617         * modules/error: Add m4/strerror_r.m4 to file list.
28618
28619 2003-05-03  Bruno Haible  <bruno@clisp.org>
28620
28621         Upgrade to Unicode-4.0.
28622         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
28623         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
28624         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
28625         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
28626         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
28627         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
28628         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
28629         Change width of U+E0100..U+E01EF from 1 to 0.
28630
28631 2003-04-25  Jim Meyering  <jim@meyering.net>
28632
28633         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
28634         of type size_t, not int.
28635
28636 2003-04-25  Bruno Haible  <bruno@clisp.org>
28637
28638         * lib/copy-file.c: Include <stddef.h>, for size_t.
28639
28640 2003-04-21  Paul Eggert  <eggert@twinsun.com>
28641
28642         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
28643         code which expansion is under static control.  Patch imported from
28644         Akim Demaille's patch to Bison; see
28645         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
28646
28647 2003-04-14  Bruno Haible  <bruno@clisp.org>
28648
28649         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
28650
28651 2003-04-11  Jim Meyering  <jim@meyering.net>
28652
28653         Merge changes from Coreutils.
28654
28655         2003-03-22  Jim Meyering  <jim@meyering.net>
28656
28657         * lib/strftime.c (widen): Cast alloca return value to proper type.
28658
28659         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
28660
28661         From GNU libc.
28662         * lib/strftime.c (my_strftime): Handle very large width
28663         specifications for numeric values correctly.  Improve checks for
28664         overflow.
28665
28666         2003-01-19  Jim Meyering  <jim@meyering.net>
28667
28668         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
28669         definitions.
28670         (nl_get_alt_digit) [! defined my_strftime]: Define.
28671         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
28672         _nl_get_alt_digit and _nl_get_walt_digit.
28673
28674         * lib/strftime.c (my_strftime): Merge in locale-related changes from
28675         libc. These changes have no effect outside of _LIBC.
28676
28677 2003-04-10  Bruno Haible  <bruno@clisp.org>
28678
28679         * modules/findprog: New file.
28680         * MODULES.html.sh (func_all_modules): Add it.
28681
28682 2003-04-10  Bruno Haible  <bruno@clisp.org>
28683
28684         * m4/findprog.m4: New file.
28685         * m4/eaccess.m4: New file.
28686
28687 2003-04-10  Bruno Haible  <bruno@clisp.org>
28688
28689         * lib/findprog.h: New file, from GNU gettext.
28690         * lib/findprog.c: New file, from GNU gettext.
28691
28692 2003-04-05  Jim Meyering  <jim@meyering.net>
28693
28694         Merge changes from Coreutils.
28695
28696         * lib/exclude.h (PARAMS): Remove definition and uses.
28697         * lib/exclude.c: Remove uses of `PARAMS'.
28698
28699         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
28700         Add test-cases for DOS filenames. Declare program_name.
28701         (main): Set up program_name.  Patch by Rich Dawe.
28702
28703         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
28704         error from mntctl.
28705         Use mntctl's return value to drive the entry-processing loop, since
28706         we can't rely on the value of the vmt_length member in the last
28707         entry.  On some systems doing so could result in exhausting
28708         virtual memory.  Based in part on a patch from Mike Jetzer.
28709
28710 2003-04-04  Bruno Haible  <bruno@clisp.org>
28711
28712         * modules/linebreak: New file.
28713         * MODULES.html.sh (func_all_modules): Add it.
28714
28715 2003-04-04  Bruno Haible  <bruno@clisp.org>
28716
28717         * m4/linebreak.m4: New file.
28718
28719 2003-04-04  Bruno Haible  <bruno@clisp.org>
28720
28721         * lib/linebreak.h: New file, from GNU gettext.
28722         * lib/linebreak.c: New file, from GNU gettext with slight
28723         modifications.
28724         * lib/lbrkprop.h: New file, from GNU gettext.
28725
28726 2003-04-03  Bruno Haible  <bruno@clisp.org>
28727
28728         * modules/utf8-ucs4: New file.
28729         * modules/utf16-ucs4: New file.
28730         * modules/ucs4-utf8: New file.
28731         * modules/ucs4-utf16: New file.
28732         * MODULES.html.sh (func_all_modules): Add them.
28733
28734 2003-04-03  Bruno Haible  <bruno@clisp.org>
28735
28736         * m4/utf-ucs4.m4: New file.
28737         * m4/ucs4-utf.m4: New file.
28738
28739 2003-04-03  Bruno Haible  <bruno@clisp.org>
28740
28741         * lib/utf8-ucs4.h: New file, from GNU gettext.
28742         * lib/utf16-ucs4.h: New file, from GNU gettext.
28743         * lib/ucs4-utf8.h: New file, from GNU gettext.
28744         * lib/ucs4-utf16.h: New file, from GNU gettext.
28745
28746 2003-04-02  Bruno Haible  <bruno@clisp.org>
28747
28748         * modules/binary-io: New file.
28749         * MODULES.html.sh (func_all_modules): Add it.
28750
28751 2003-04-02  Bruno Haible  <bruno@clisp.org>
28752
28753         * lib/binary-io.h: New file, from GNU gettext.
28754
28755 2003-04-01  Bruno Haible  <bruno@clisp.org>
28756
28757         * modules/pathname: New file.
28758         * MODULES.html.sh (func_all_modules): Add it.
28759
28760 2003-04-01  Bruno Haible  <bruno@clisp.org>
28761
28762         * lib/pathname.h: New file, from GNU gettext.
28763         * lib/concatpath.c: New file, from GNU gettext.
28764
28765 2003-03-30  Bruno Haible  <bruno@clisp.org>
28766
28767         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
28768
28769 2003-03-30  Bruno Haible  <bruno@clisp.org>
28770
28771         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
28772         function chown() doesn't exist.
28773
28774 2003-03-28  Bruno Haible  <bruno@clisp.org>
28775
28776         * modules/copy-file: New file.
28777         * MODULES.html.sh (func_all_modules): Add it.
28778
28779 2003-03-28  Bruno Haible  <bruno@clisp.org>
28780
28781         * m4/copy-file.m4: New file.
28782
28783 2003-03-28  Bruno Haible  <bruno@clisp.org>
28784
28785         * lib/copy-file.h: New file, from GNU gettext.
28786         * lib/copy-file.c: New file, from GNU gettext.
28787
28788 2003-03-18  Jim Meyering  <jim@meyering.net>
28789
28790         * lib/quote.c (quote_n): Fix typo in comment.
28791
28792 2003-03-18  Bruno Haible  <bruno@clisp.org>
28793
28794         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
28795         checking.
28796         * m4/onceonly_2_57.m4: Likewise.
28797
28798 2003-03-17  Bruno Haible  <bruno@clisp.org>
28799
28800         * m4/onceonly.m4: Require autoconf 2.54 or newer.
28801         (m4_quote): Remove macro.
28802         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
28803
28804 2003-03-14  Jim Meyering  <jim@meyering.net>
28805
28806         Merge changes from Coreutils.
28807         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
28808         to be const, in order to avoid warnings.
28809         (obstack_room): Likewise.
28810         (obstack_empty_p): Likewise.
28811
28812 2003-03-14  Bruno Haible  <bruno@clisp.org>
28813
28814         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
28815         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
28816
28817 2003-03-13  Paul Eggert  <eggert@twinsun.com>
28818
28819         Merge changes from Bison.
28820         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
28821         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
28822         when compiling Bison 1.875's `bitset bset = obstack_alloc
28823         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
28824         * lib/hash.c: Include <stdbool.h> unconditionally.
28825
28826 2003-03-13  Paul Eggert  <eggert@twinsun.com>
28827
28828         * m4/onceonly.m4 (m4_quote): New macro.
28829         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
28830         Quote AC_FOREACH variable-expansions properly.
28831
28832 2003-03-13  Paul Eggert  <eggert@twinsun.com>
28833
28834         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
28835
28836 2003-03-09  Paul Eggert  <eggert@twinsun.com>
28837
28838         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
28839         Reported by Bruce Becker; see:
28840         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
28841
28842 2003-03-03  Paul Eggert  <eggert@twinsun.com>
28843             Bruno Haible  <bruno@clisp.org>
28844
28845         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
28846         Reported by John Hughes, see
28847         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
28848
28849 2003-02-20  Bruno Haible  <bruno@clisp.org>
28850
28851         * MODULES.html.sh (func_all_modules): Add poll.
28852
28853 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
28854
28855         * modules/poll: New file.
28856
28857 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
28858
28859         * lib/poll_.h: New file.
28860         * lib/poll.c: New file.
28861
28862 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
28863
28864         * m4/poll.m4: New file.
28865
28866 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28867
28868         * modules/mathl: New file.
28869
28870 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28871
28872         * lib/mathl.h: New file.
28873         * lib/acosl.c: New file.
28874         * lib/asinl.c: New file.
28875         * lib/atanl.c: New file.
28876         * lib/ceill.c: New file.
28877         * lib/cosl.c: New file.
28878         * lib/expl.c: New file.
28879         * lib/floorl.c: New file.
28880         * lib/frexpl.c: New file.
28881         * lib/ldexpl.c: New file.
28882         * lib/logl.c: New file.
28883         * lib/sincosl.c: New file.
28884         * lib/sinl.c: New file.
28885         * lib/sqrtl.c: New file.
28886         * lib/tanl.c: New file.
28887         * lib/trigl.c: New file.
28888         * lib/trigl.h: New file.
28889
28890 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28891
28892         * m4/mathl.m4: New file.
28893
28894 2003-02-18  Bruno Haible  <bruno@clisp.org>
28895
28896         * MODULES.html.sh (func_all_modules): Add mathl.
28897
28898 2003-02-17  Bruno Haible  <bruno@clisp.org>
28899
28900         * modules/mkdtemp: New module.
28901         * MODULES.html.sh (func_all_modules): Add it.
28902
28903 2003-02-17  Bruno Haible  <bruno@clisp.org>
28904
28905         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
28906
28907 2003-02-17  Bruno Haible  <bruno@clisp.org>
28908
28909         * lib/mkdtemp.h: New file, from GNU gettext.
28910         * lib/mkdtemp.c: New file, from GNU gettext.
28911
28912 2003-02-02  Jim Meyering  <jim@meyering.net>
28913
28914         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
28915         e.g. glibc-2.2.93.
28916
28917 2003-01-31  Bruno Haible  <bruno@clisp.org>
28918
28919         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
28920         'rpl_rename'.
28921         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
28922         'rpl_strnlen'.
28923         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
28924         'rpl_strtod'.
28925         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
28926         'rpl_utime'.
28927
28928 2003-01-31  Bruno Haible  <bruno@clisp.org>
28929
28930         * lib/rename.c: #undef rename before defining rpl_rename.
28931         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
28932
28933 2003-01-30  Bruno Haible  <bruno@clisp.org>
28934
28935         * modules/vasnprintf, modules/vasprintf: New modules.
28936         * MODULES.html.sh (func_all_modules): Add them.
28937
28938 2003-01-30  Bruno Haible  <bruno@clisp.org>
28939
28940         * m4/signed.m4: New file, from GNU gettext.
28941         * m4/longdouble.m4: New file, from GNU gettext.
28942         * m4/wchar_t.m4: New file, from GNU gettext.
28943         * m4/wint_t.m4: New file, from GNU gettext.
28944         * m4/vasnprintf.m4: New file.
28945         * m4/vasprintf.m4: New file.
28946
28947 2003-01-30  Bruno Haible  <bruno@clisp.org>
28948
28949         * lib/printf-args.h: New file, from GNU gettext.
28950         * lib/printf-args.c: New file, from GNU gettext.
28951         * lib/printf-parse.h: New file, from GNU gettext.
28952         * lib/printf-parse.c: New file, from GNU gettext.
28953         * lib/vasnprintf.h: New file, from GNU gettext.
28954         * lib/vasnprintf.c: New file, from GNU gettext.
28955         * lib/asnprintf.c: New file, from GNU gettext.
28956         * lib/vasprintf.h: New file, from GNU gettext with modifications.
28957         * lib/vasprintf.c: New file, from GNU gettext.
28958         * lib/asprintf.c: New file, from GNU gettext.
28959
28960 2003-01-29  Bruno Haible  <bruno@clisp.org>
28961
28962         * modules/stpncpy: New module.
28963         * MODULES.html.sh (func_all_modules): Add it.
28964
28965 2003-01-29  Bruno Haible  <bruno@clisp.org>
28966
28967         * m4/stpncpy.m4: New file.
28968
28969 2003-01-29  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/stpncpy.h: New file, from GNU gettext with modifications.
28972         * lib/stpncpy.c: New file, from GNU gettext with modifications.
28973
28974 2003-01-28  Bruno Haible  <bruno@clisp.org>
28975
28976         * modules/c-ctype: New module.
28977         * MODULES.html.sh (func_all_modules): Add it.
28978
28979 2003-01-28  Bruno Haible  <bruno@clisp.org>
28980
28981         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
28982         Paul Eggert.
28983         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
28984         Paul Eggert.
28985
28986 2003-01-27  Bruno Haible  <bruno@clisp.org>
28987
28988         * modules/xsetenv: New module.
28989         * MODULES.html.sh (func_all_modules): Add it.
28990
28991 2003-01-27  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/xsetenv.h: New file, from GNU gettext.
28994         * lib/xsetenv.c: New file, from GNU gettext.
28995
28996 2003-01-23  Jim Meyering  <jim@meyering.net>
28997
28998         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
28999         from working on systems without dirfd (at least Irix and OSF1/Tru64).
29000
29001 2003-01-23  Bruno Haible  <bruno@clisp.org>
29002
29003         * modules/minmax: New module.
29004         * MODULES.html.sh (func_all_modules): Add it.
29005
29006 2003-01-23  Bruno Haible  <bruno@clisp.org>
29007
29008         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
29009         Eggert.
29010
29011 2003-01-22  Bruno Haible  <bruno@clisp.org>
29012
29013         * modules/exit: New module.
29014         * MODULES.html.sh (func_all_modules): Add it.
29015
29016 2003-01-22  Bruno Haible  <bruno@clisp.org>
29017
29018         * lib/exit.h: New file, from GNU gettext.
29019
29020 2003-01-19  Bruno Haible  <bruno@clisp.org>
29021
29022         * gnulib-tool: Recognize option --extract-maintainer.
29023         (func_get_maintainer): New function.
29024         * modules/*: Add Maintainer entry.
29025
29026 2003-01-16  Jim Meyering  <jim@meyering.net>
29027
29028         * m4/regex.m4: The `regex' struct is both input and output.
29029         Initialize it before each use.  Patch by Tim Waugh.
29030
29031 2003-01-16  Bruno Haible  <bruno@clisp.org>
29032
29033         * MODULES.html.sh: Add a table of contents. Add the module name as
29034         leftmost column. Add hyperlinks.
29035
29036 2003-01-15  Bruno Haible  <bruno@clisp.org>
29037
29038         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
29039
29040 2003-01-15  Bruno Haible  <bruno@clisp.org>
29041
29042         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
29043         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
29044         suffix.
29045
29046 2003-01-15  Bruno Haible  <bruno@clisp.org>
29047
29048         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
29049
29050 2003-01-15  Bruno Haible  <bruno@clisp.org>
29051
29052         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
29053         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
29054
29055 2003-01-14  Jim Meyering  <jim@meyering.net>
29056
29057         * lib/same.c (same_name): Tweak a comment.
29058
29059 2003-01-14  Bruno Haible  <bruno@clisp.org>
29060
29061         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
29062         when a string comparison is sufficient.
29063
29064 2003-01-14  Bruno Haible  <bruno@clisp.org>
29065
29066         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
29067         'unsigned int'.
29068
29069 2003-01-14  Bruno Haible  <bruno@clisp.org>
29070
29071         * lib/hash-pjw.c: Add comment about low quality of this function.
29072
29073 2003-01-13  Bruno Haible  <bruno@clisp.org>
29074
29075         * modules/stpcpy: Distribute lib/stpcpy.h.
29076         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
29077
29078 2003-01-13  Bruno Haible  <bruno@clisp.org>
29079
29080         * modules/*: Add a description.
29081         * modules/strpbrk: Fix Makefile.am snippet.
29082         * modules/strtoimax: Fix dependencies.
29083         * modules/strtoumax: Likewise.
29084
29085 2003-01-13  Bruno Haible  <bruno@clisp.org>
29086
29087         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
29088         * modules/alloca (Makefile.am): All object files depend on alloca.h.
29089         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
29090
29091 2003-01-13  Bruno Haible  <bruno@clisp.org>
29092
29093         * gnulib-tool (func_create_testdir): Store config/* files in the main
29094         directory.
29095         * config.rpath: Move to ...
29096         * config/config.rpath: ... here.
29097         * modules/gettext: Contains config/config.rpath, not config.rpath.
29098         * modules/iconv: Likewise.
29099
29100 2003-01-12  Paul Eggert  <eggert@twinsun.com>
29101
29102         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
29103         to avoid collisions with libcurses and libreadline.
29104
29105         * m4/getstr.m4: Remove.
29106         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
29107
29108 2003-01-12  Paul Eggert  <eggert@twinsun.com>
29109
29110         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
29111         to avoid collisions with libcurses and libreadline.
29112
29113         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
29114         * lib/getstr.h, getstr.c: Remove.
29115         * lib/getline.c: Include "getline.h", to check interface.
29116         Move body of old getstr.c here: this defines MIN_CHUNK and
29117         declares getdelim2, which is renamed from getstr.
29118         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
29119
29120         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
29121         All uses changed.
29122         * lib/linebuffer.h: Likewise.
29123         (readline): Remove backward-compatibility macro.
29124
29125 2003-01-12  Paul Eggert  <eggert@twinsun.com>
29126
29127         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
29128         to avoid collisions with libcurses and libreadline.
29129         * getstr: Remove.
29130         * MODULES.html.sh: Remove getstr.
29131         * modules/getline: Depend on unlocked-io, not getstr.
29132
29133 2003-01-12  Jim Meyering  <jim@meyering.net>
29134
29135         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
29136
29137 2003-01-10  Bruno Haible  <bruno@clisp.org>
29138
29139         * modules/alloca: Change Makefile.am requirements. Simplify Include
29140         requirements. Add lib/alloca_.h to file list.
29141
29142 2003-01-10  Bruno Haible  <bruno@clisp.org>
29143
29144         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
29145
29146 2003-01-10  Bruno Haible  <bruno@clisp.org>
29147
29148         * lib/alloca_.h: New file.
29149         * lib/getdate.y: Unconditionally include alloca.h.
29150         * lib/makepath.c: Likewise.
29151         * lib/setenv.c: Likewise.
29152         * lib/userspec.c: Likewise.
29153
29154 2003-01-09  Karl Berry  <karl@gnu.org>
29155
29156         * MODULES.html.sh: include `dirname $0` in PATH, to find
29157         gnulib-tool.
29158
29159 2003-01-09  Bruno Haible  <bruno@clisp.org>
29160
29161         * modules/stdbool: Change configure.ac, Makefile.am requirements.
29162         Simplify Include requirements. Add lib/stdbool.h.in to file list.
29163
29164 2003-01-09  Bruno Haible  <bruno@clisp.org>
29165
29166         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
29167
29168 2003-01-09  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/stdbool.h.in: New file.
29171
29172 2003-01-09  Bruno Haible  <bruno@clisp.org>
29173
29174         * gnulib-tool (func_all_modules): Ignore files ending in ~.
29175         * MODULES.html.sh: Likewise.
29176
29177 2003-01-08  Jim Meyering  <jim@meyering.net>
29178
29179         * lib/full-write.c: Undefine and define-away `const' after inclusion
29180         of errno.h, not before.  Suggestion from Bruno Haible.
29181
29182 2003-01-08  Bruno Haible  <bruno@clisp.org>
29183
29184         * modules/full-read: Depend on full-write.
29185
29186 2003-01-08  Bruno Haible  <bruno@clisp.org>
29187
29188         * lib/safe-read.c: Include specification header first, to ensure its
29189         selfcontainedness.
29190         * lib/full-write.c: Likewise.
29191
29192 2003-01-07  Jim Meyering  <jim@meyering.net>
29193
29194         * lib/full-write.c: Rework so that it may serve to define full_read,
29195         too.
29196         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
29197
29198 2003-01-07  Bruno Haible  <bruno@clisp.org>
29199
29200         * lib/strtoimax.c: Include <stdint.h> as an alternative to
29201         <inttypes.h>.
29202         * lib/xstrtol.h: Likewise.
29203         * lib/xstrtoimax.c: Likewise.
29204         * lib/xstrtoumax.c: Likewise.
29205         * lib/human.h: Likewise.
29206
29207         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
29208         on systems that have <inttypes.h> but not <stdint.h>.
29209
29210 2003-01-07  Bruno Haible  <bruno@clisp.org>
29211
29212         * MODULES.html.sh: Add copyright notice.
29213         (missed_files): Omit CVS directory entries.
29214         (func_module): Make it work with sed-3.02.
29215         * MODULES.txt: Remove file.
29216
29217 2003-01-06  Jim Meyering  <jim@meyering.net>
29218
29219         * lib/version-etc.c: Update year in translatable copyright string.
29220
29221 2003-01-03  Karl Berry  <karl@gnu.org>
29222
29223         * config/config.{guess,sub}: update from prep.
29224
29225 2003-01-02  Karl Berry  <karl@gnu.org>
29226
29227         * doc/COPYING.DOC: belatedly updated to 1.2.
29228
29229 2003-01-01  Karl Berry  <karl@gnu.org>
29230
29231         * gnulib-tool (func_verify_module): report module name $module in
29232         error message, not $1.
29233         * gnulib-tool (create-testdir): don't complain if destdir couldn't
29234         be created, only if it doesn't exist.
29235         * gnulib-tool (last_checkin_date): don't expand the $Date here.
29236
29237 2002-12-31  Paul Eggert  <eggert@twinsun.com>
29238
29239         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
29240
29241 2002-12-31  Paul Eggert  <eggert@twinsun.com>
29242
29243         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
29244         memcmp if strcoll doesn't work.
29245
29246 2002-12-31  Bruno Haible  <bruno@clisp.org>
29247
29248         * lib/utime.c (utime_null): No need to call ftruncate if the file was
29249         nonempty.
29250
29251 2002-12-31  Bruno Haible  <bruno@clisp.org>
29252
29253         * lib/memcoll.c (STRCOLL): New macro.
29254         (memcoll): Use it.
29255
29256 2002-12-31  Bruno Haible  <bruno@clisp.org>
29257
29258         * lib/localcharset.h: New file.
29259         * lib/localcharset.c: Include it.
29260         * lib/unicodeio.c: Likewise.
29261
29262 2002-12-31  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
29265         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
29266
29267 2002-12-31  Bruno Haible  <bruno@clisp.org>
29268
29269         * lib/getline.h: Include <stddef.h>, for size_t.
29270
29271         * lib/unicodeio.h: Include <stddef.h>, for size_t.
29272         * lib/unicodeio.c: Don't include <stddef.h>.
29273
29274 2002-12-31  Bruno Haible  <bruno@clisp.org>
29275
29276         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
29277         HAVE_TM_ZONE.
29278
29279 2002-12-24  Karl Berry  <karl@gnu.org>
29280
29281         * config/config.guess: update from prep.
29282
29283 2002-12-24  Bruno Haible  <bruno@clisp.org>
29284
29285         General infrasructure.
29286         * m4/README: Rewritten.
29287         * m4/onceonly.m4: New file.
29288         * m4/onceonly_2_57.m4: New file.
29289
29290         Module atexit.
29291         * m4/atexit.m4: New file.
29292
29293         Module strtod.
29294         * m4/strtod.m4: New file.
29295
29296         Module strtol.
29297         * m4/strtol.m4: New file.
29298
29299         Module strtoul.
29300         * m4/strtoul.m4: New file.
29301
29302         Module memchr.
29303         * m4/memchr.m4: New file.
29304
29305         Module memcmp.
29306         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
29307         (jm_FUNC_MEMCMP): Invoke it.
29308
29309         Module memcpy.
29310         * m4/memcpy.m4: New file.
29311
29312         Module memmove.
29313         * m4/memmove.m4: New file.
29314
29315         Module memset.
29316         * m4/memset.m4: New file.
29317
29318         Module strcspn.
29319         * m4/strcspn.m4: New file.
29320
29321         Module strpbrk.
29322         * m4/strpbrk.m4: New file.
29323
29324         Module strstr.
29325         * m4/strstr.m4: New file.
29326
29327         Module strerror.
29328         * m4/strerror.m4: New file.
29329
29330         Module mktime.
29331         * m4/mktime.m4: Renamed from jm-mktime.m4.
29332         (gl_PREREQ_MKTIME): New macro.
29333         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
29334
29335         Module malloc.
29336         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
29337         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
29338         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
29339
29340         Module realloc.
29341         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
29342         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
29343         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
29344
29345         Module strftime.
29346         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
29347         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
29348         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
29349         gl_TM_GMTOFF.
29350         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
29351
29352         Module xalloc.
29353         * m4/xalloc.m4: New file.
29354
29355         Module alloca.
29356         * m4/alloca.m4: New file.
29357
29358         Module putenv.
29359         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
29360         (jm_FUNC_PUTENV): Invoke it.
29361
29362         Module setenv.
29363         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
29364         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
29365         when invoked twice.
29366         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
29367         gt_FUNC_SETENV.
29368
29369         Module memrchr.
29370         * m4/memrchr.m4: New file.
29371
29372         Module stpcpy.
29373         * m4/stpcpy.m4: New file.
29374
29375         Module strcase.
29376         * m4/strcase.m4: New file.
29377
29378         Module strdup.
29379         * m4/strdup.m4: New file.
29380
29381         Module strnlen.
29382         * m4/strnlen.m4: New file.
29383
29384         Module strndup.
29385         * m4/strndup.m4: New file.
29386
29387         Module xstrtod.
29388         * m4/xstrtod.m4: New file.
29389
29390         Module xstrtol.
29391         * m4/xstrtol.m4: New file.
29392
29393         Module getdate.
29394         * m4/getdate.m4: New file.
29395
29396         Module unlocked-io.
29397         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
29398         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
29399         * m4/jm-glibc-io.m4n: Remove file.
29400
29401         Module long-options.
29402         * m4/long-options.m4: New file.
29403
29404         Module md5.
29405         * m4/md5.m4: New file.
29406
29407         Module sha.
29408         * m4/sha.m4: New file.
29409
29410         Module getstr.
29411         * m4/getstr.m4: New file.
29412
29413         Module getline.
29414         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
29415         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
29416         <sys/types.h>, for size_t. Use the function name gnu_getline, not
29417         simply getline. Infoke gl_PREREQ_GETLINE.
29418
29419         Module obstack.
29420         * m4/obstack.m4: New file.
29421
29422         Module hash.
29423         * m4/hash.m4: New file.
29424
29425         Module readtokens.
29426         * m4/readtokens.m4: New file.
29427
29428         Module strverscmp.
29429         * m4/strverscmp.m4: New file.
29430
29431         Module stdbool.
29432         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
29433         OSF/1.
29434
29435         Module strtoll.
29436         * m4/strtoll.m4: New file.
29437
29438         Module strtoull.
29439         * m4/strtoull.m4: New file.
29440
29441         Module strtoimax.
29442         * m4/strtoimax.m4: New file.
29443
29444         Module strtoumax.
29445         * m4/strtoumax.m4: New file.
29446
29447         Module xstrtoimax.
29448         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
29449         jm_AC_PREREQ_XSTRTOIMAX.
29450         Moved the strtol prerequisites to strtol.m4.
29451         Moved the strtoll prerequisites to strtoll.m4.
29452         Moved the strtoimax prerequisites to strtoimax.m4.
29453
29454         Module xstrtoumax.
29455         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
29456         jm_AC_PREREQ_XSTRTOUMAX.
29457         Moved the strtoul prerequisites to strtoul.m4.
29458         Moved the strtoull prerequisites to strtoull.m4.
29459         Moved the strtoumax prerequisites to strtoumax.m4.
29460
29461         Module chown.
29462         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
29463         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
29464
29465         Module dup2.
29466         * m4/dup2.m4: New file.
29467
29468         Module ftruncate.
29469         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
29470         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
29471
29472         Module getgroups.
29473         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
29474         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
29475
29476         Module gettimeofday.
29477         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
29478         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
29479         gl_PREREQ_GETTIMEOFDAY.
29480
29481         Module mkdir.
29482         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
29483         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
29484
29485         Module mkstemp.
29486         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
29487         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
29488         jm_AC_TYPE_UINTMAX_T.
29489         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
29490
29491         Module stat.
29492         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
29493         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
29494
29495         Module lstat.
29496         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
29497         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
29498
29499         Module timespec.
29500         * m4/timespec.m4 (gl_TIMESPEC): New macro.
29501         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
29502         * m4/st_mtim.m4: Indentation.
29503
29504         Module nanosleep.
29505         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
29506         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
29507         gl_PREREQ_NANOSLEEP.
29508
29509         Module regex.
29510         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
29511         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
29512         (gl_REGEX): New macro.
29513
29514         Module rename.
29515         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
29516         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
29517
29518         Module rmdir.
29519         * m4/rmdir.m4: New file.
29520
29521         Module utime.
29522         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
29523         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
29524         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
29525
29526         Module dirname.
29527         * m4/dirname.m4: New file.
29528
29529         Module getopt.
29530         * m4/getopt.m4: New file.
29531
29532         Module unistd-safer.
29533         * m4/unistd-safer.m4: New file.
29534
29535         Module fnmatch.
29536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
29537         declaration.
29538         (gl_PREREQ_FNMATCH_EXTRA): New macro.
29539         (gl_FUNC_FNMATCH_POSIX): New macro.
29540         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
29541         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
29542         simply fnmatch.
29543
29544         Module exclude.
29545         * m4/exclude.m4: New file.
29546
29547         Module human.
29548         * m4/human.m4: New file.
29549
29550         Module acl.
29551         * m4/acl.m4: Nop.
29552
29553         Module backupfile.
29554         * m4/backupfile.m4: New file.
29555         * m4/d-ino.m4: Indentation.
29556
29557         Module fsusage.
29558         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
29559         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
29560         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
29561
29562         Module dirfd.
29563         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
29564         requirements.
29565
29566         Module euidaccess.
29567         * m4/euidaccess.m4: New file.
29568
29569         Module file-type.
29570         * m4/file-type.m4: New file.
29571
29572         Module fileblocks.
29573         * m4/fileblocks.m4: New file.
29574
29575         Module filemode.
29576         * m4/filemode.m4: New file.
29577
29578         Module isdir.
29579         * m4/isdir.m4: New file.
29580
29581         Module lchown.
29582         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
29583         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
29584
29585         Module makepath.
29586         * m4/makepath.m4: New file.
29587
29588         Module modechange.
29589         * m4/modechange.m4: New file.
29590
29591         Module mountlist.
29592         * m4/mountlist.m4: New file.
29593         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
29594         Indentation.
29595
29596         Module path-concat.
29597         * m4/path-concat.m4: New file.
29598
29599         Module pathmax.
29600         * m4/pathmax.m4: New file.
29601
29602         Module same.
29603         * m4/same.m4: New file.
29604
29605         Module save-cwd.
29606         * m4/save-cwd.m4: New file.
29607
29608         Module savedir.
29609         * m4/savedir.m4: New file.
29610
29611         Module xgetcwd.
29612         * m4/xgetcwd.m4: New file.
29613         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
29614
29615         Module xreadlink.
29616         * m4/xreadlink.m4: New file.
29617
29618         Module safe-read.
29619         * m4/safe-read.m4: New file.
29620
29621         Module safe-write.
29622         * m4/safe-write.m4: New file.
29623
29624         Module closeout.
29625         * m4/closeout.m4: New file.
29626
29627         Module stdio-safer.
29628         * m4/stdio-safer.m4: New file.
29629
29630         Module getpass.
29631         * m4/getpass.m4: New file.
29632
29633         Module getugroups.
29634         * m4/getugroups.m4: New file.
29635
29636         Module group-member.
29637         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
29638         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
29639
29640         Module idcache.
29641         * m4/idcache.m4: New file.
29642
29643         Module userspec.
29644         * m4/userspec.m4: New file.
29645
29646         Module gettime.
29647         * m4/clock_time.m4: New file.
29648         * m4/gettime.m4: New file.
29649
29650         Module settime.
29651         * m4/settime.m4: New file.
29652
29653         Module posixtm.
29654         * m4/posixtm.m4: New file.
29655
29656         Module gethostname.
29657         * m4/gethostname.m4: New file.
29658
29659         Module canon-host.
29660         * m4/canon-host.m4: New file.
29661
29662         Module gettext.
29663         * m4/codeset.m4: New file, from gettext-0.11.5.
29664         * m4/gettext.m4: New file, from gettext-0.11.5.
29665         * m4/glibc21.m4: New file, from gettext-0.11.5.
29666         * m4/iconv.m4: New file, from gettext-0.11.5.
29667         * m4/intdiv0.m4: New file, from gettext-0.11.5.
29668         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
29669         * m4/inttypes.m4: New file, from gettext-0.11.5.
29670         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
29671         * m4/isc-posix.m4: New file, from gettext-0.11.5.
29672         * m4/lcmessage.m4: New file, from gettext-0.11.5.
29673         * m4/lib-ld.m4: New file, from gettext-0.11.5.
29674         * m4/lib-link.m4: New file, from gettext-0.11.5.
29675         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
29676         * m4/progtest.m4: New file, from gettext-0.11.5.
29677         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
29678         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
29679         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
29680
29681         Module localcharset.
29682         * m4/localcharset.m4: New file.
29683
29684         Module hard-locale.
29685         * m4/hard-locale.m4: New file.
29686
29687         Module mbswidth.
29688         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
29689         onceonly macros.
29690         * m4/mbrtowc.m4: Add comment.
29691
29692         Module memcasecmp.
29693         * m4/memcasecmp.m4: New file.
29694
29695         Module memcoll.
29696         * m4/memcoll.m4: New file.
29697
29698         Module unicodeio.
29699         * m4/unicodeio.m4: New file.
29700
29701         Module rpmatch.
29702         * m4/rpmatch.m4: New file.
29703
29704         Module yesno.
29705         * m4/yesno.m4: New file.
29706
29707         Module exitfail.
29708         * m4/exitfail.m4: New file.
29709
29710         Module c-stack.
29711         * m4/c-stack.m4 (gl_C_STACK): New macro.
29712         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
29713
29714         Module error.
29715         * m4/error.m4 (gl_ERROR): New macro.
29716         (jm_PREREQ_ERROR): Use onceonly macros.
29717
29718         Module fatal.
29719         * m4/fatal.m4: New file.
29720
29721         Module getloadavg.
29722         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
29723         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
29724
29725         Module getpagesize.
29726         * m4/getpagesize.m4: New file.
29727
29728         Module getusershell.
29729         * m4/getusershell.m4: New file.
29730
29731         Module physmem.
29732         * m4/physmem.m4: New file.
29733
29734         Module posixver.
29735         * m4/posixver.m4: New file.
29736
29737         Module quotearg.
29738         * m4/quotearg.m4: New file.
29739
29740         Module quote.
29741         * m4/quote.m4: New file.
29742
29743         Module readutmp.
29744         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
29745
29746         Module sig2str.
29747         * m4/sig2str.m4: New file.
29748
29749         Other.
29750         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
29751         ulonglong.m4.
29752         * m4/intmax_t.m4: New file.
29753         * m4/d-type.m4: Indentation.
29754         * m4/jm-macros.m4: Update.
29755         * m4/prereq.m4 (jm_PREREQ): Update.
29756         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
29757         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
29758         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
29759         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
29760         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
29761         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
29762         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
29763         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
29764         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
29765         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
29766         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
29767         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
29768         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
29769         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
29770         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
29771         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
29772         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
29773         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
29774         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
29775
29776 2002-12-24  Bruno Haible  <bruno@clisp.org>
29777
29778         * MODULES.txt: Update according to m4/ changes.
29779
29780         Module gettext.
29781         * config.rpath: New file, from gettext-0.11.5.
29782
29783         * modules/*: New module descriptions.
29784         * gnulib-tool: New file.
29785         * MODULES.html.sh: New file.
29786
29787 2002-12-21  Karl Berry  <karl@gnu.org>
29788
29789         * doc/fdl.texi: update to version 1.2.
29790
29791 2002-12-19  Karl Berry  <karl@gnu.org>
29792
29793         * config/config.guess: update from prep.
29794
29795 2002-12-18  Bruno Haible  <bruno@clisp.org>
29796
29797         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
29798         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
29799
29800 2002-12-17  Bruno Haible  <bruno@clisp.org>
29801
29802         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
29803         stdlib.h, string.h.
29804
29805 2002-12-17  Bruno Haible  <bruno@clisp.org>
29806
29807         * lib/canon-host.c (strdup): Remove unused declaration.
29808
29809         * lib/fsusage.c: Include full_read.h.
29810         (get_fs_usage): Use full_read instead of safe_read.
29811
29812         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
29813
29814 2002-12-12  Karl Berry  <karl@gnu.org>
29815
29816         * config/config.guess: update from prep.
29817
29818 2002-12-11  Bruno Haible  <bruno@clisp.org>
29819
29820         * m4/setenv.m4: New file, from gettext-0.11.5.
29821
29822 2002-12-11  Bruno Haible  <bruno@clisp.org>
29823
29824         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
29825         not unsetenv().
29826         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
29827         modifications:
29828
29829         2002-12-11  Bruno Haible  <bruno@clisp.org>
29830
29831                 * setenv.c (alloca): Fall back to malloc.
29832                 (freea): New macro.
29833                 (setenv): Use freea() to free memory allocated with alloca().
29834
29835         2002-11-13  Bruno Haible  <bruno@clisp.org>
29836
29837                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
29838                 function declarations.
29839                 * unsetenv.c (unsetenv): Likewise.
29840
29841         2002-03-04  Bruno Haible  <bruno@clisp.org>
29842
29843                 Portability to AIX 4.3.3.
29844                 * unsetenv.c: New file, extracted from setenv.c.
29845                 * setenv.c: Move the unsetenv() function to unsetenv.c.
29846
29847         2001-12-20  Bruno Haible  <bruno@clisp.org>
29848
29849                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
29850                 use malloc instead. For SunOS 4.
29851
29852         2001-12-11  Bruno Haible  <bruno@clisp.org>
29853
29854                 * setenv.c: Declare alloca.
29855                 (compar_fn_t): New typedef.
29856                 (KNOWN_VALUE, STORE_VALUE): Use it.
29857
29858         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
29859         setenv.h.
29860
29861 2002-12-10  Paul Eggert  <eggert@twinsun.com>
29862
29863         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
29864         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
29865         Choose values that are less likely to collide with system fnmatch
29866         options.
29867         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
29868         defined (e.g., a pure POSIX system).
29869         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
29870         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
29871
29872 2002-12-06  Paul Eggert  <eggert@twinsun.com>
29873
29874         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
29875         a pain in practice to deal with generated m4 files.  This change
29876         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
29877
29878         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
29879         and jm-glibc-io.m4, as they are no longer a special case.
29880         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
29881         kludge and the auto-generation stuff.  Check only whether the
29882         functions are declared, not whether they exist, since older hosts
29883         that don't declare the functions can't use the optimization anyway.
29884
29885 2002-12-06  Jim Meyering  <jim@meyering.net>
29886
29887         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
29888
29889         Merge in changes from libc's misc/error.c, in preparation
29890         for the merge of gnulib's changes back into libc.
29891
29892         * lib/error.c (_): Define only if not already defined.
29893         Move definition to follow all #include directives.
29894         Include unlocked-io.h only if !_LIBC.
29895         [_LIBC]: Include <libio/libioP.h>.
29896         [USE_IN_LIBIO]: Include <libio/iolibio.h>
29897         (fflush): Tweak definition to use INTUSE.
29898         (putc): Define.
29899
29900 2002-12-05  Paul Eggert  <eggert@twinsun.com>
29901
29902         * lib/alloca.c [defined emacs]: Include "lisp.h".
29903         (xalloc_die) [defined emacs]: New macro.
29904         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
29905         [! defined emacs]: Include <xalloc.h>.
29906         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
29907         (pointer): Typedef to POINTER_TYPE *.
29908         (malloc): Remove decl; we now always use xmalloc.
29909         (alloca): Use old-style definition, since Emacs needs this.
29910         Check for arithmetic overflow when computing combined size.
29911
29912 2002-12-04  Paul Eggert  <eggert@twinsun.com>
29913
29914         Do not generate unlocked-io.h automatically, since it's easier to
29915         maintain it by hand.
29916
29917         * lib/unlocked-io.h: New file, from GNU diffutils,
29918         but with proper copyright notice and attribution.
29919         * lib/gen-uio: Remove.
29920         * lib/Makefile.am: Add copyright notice.
29921         (libfetish_a_SOURCES): Add unlocked-io.h.
29922         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
29923         (DISTCLEANFILES, io_functions): Remove macros.
29924         (EXTRA_DIST): Remove gen_uio.
29925         (unlocked-io.h): Remove rule.
29926
29927 2002-12-04  Jim Meyering  <jim@meyering.net>
29928
29929         Reflect the fact that stat.c and lstat.c are no longer generated.
29930         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
29931         (DISTCLEANFILES): Likewise.
29932         (EXTRA_DIST): Likewise.
29933         (all_local): Don't depend on stat.c or lstat.c.
29934         (stat.c, lstat.c): Remove rules.
29935         (EXTRA_DIST): Remove xstat.in.
29936
29937         * lib/xstat.in: Remove file.  Contents moved into stat.c.
29938         * lib/stat.c: New file.  Contents mostly from xstat.in.
29939         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
29940         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
29941
29942         * lib/safe-read.c: Rework so that it may serve to define safe_write,
29943         too.
29944         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
29945
29946 2002-12-03  Jim Meyering  <jim@meyering.net>
29947
29948         * lib/safe-read.c, safe-write.c: Change variable names and comments,
29949         but not semantics, to minimize the differences between these two files.
29950         (safe_read): Change comment to mention SAFE_READ_ERROR.
29951
29952         * lib/safe-read.c (IS_EINTR): Define.
29953         (safe_read): Use IS_EINTR in place of in-function cpp directives.
29954
29955 2002-12-02  Jim Meyering  <jim@meyering.net>
29956
29957         * lib/safe-read.c (EINTR): Define.
29958         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29959         (INT_MAX): Provide fallback.
29960         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
29961
29962         * lib/safe-read.h (SAFE_READ_ERROR): Define.
29963
29964 2002-12-02  Bruno Haible  <bruno@clisp.org>
29965
29966         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
29967         Define, taken from safe-read.c.
29968         (INT_MAX): Provide fallback.
29969         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
29970         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
29971
29972         * lib/safe-read.c (EINTR): Remove definition.
29973         (safe_read): Don't use EINTR if it is absent.
29974
29975 2002-12-01  Jim Meyering  <jim@meyering.net>
29976
29977         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
29978         zero.
29979         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
29980
29981 2002-11-27  Paul Eggert  <eggert@twinsun.com>
29982
29983         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
29984         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
29985         with `if (! (value < limit)) abort ();', for readability.
29986
29987 2002-11-26  Karl Berry  <karl@gnu.org>
29988
29989         * lib/strdup.c: copy from libc again, with jim's ok.
29990         * lib/.cppi-disable: re-add strdup.c
29991
29992 2002-11-25  Karl Berry  <karl@gnu.org>
29993
29994         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
29995         instead of "strtol.c".
29996
29997 2002-11-25  Karl Berry  <karl@gnu.org>
29998
29999         * config/install-sh: update from automake for variable quoting, $0 in
30000         error msgs, etc.
30001
30002         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
30003         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
30004         entry.
30005
30006 2002-11-25  Jim Meyering  <jim@meyering.net>
30007
30008         * lib/mktime.c: Sync from libc, now that it has the latest fix.
30009
30010 2002-11-24  Karl Berry  <karl@gnu.org>
30011
30012         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
30013         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
30014
30015 2002-11-24  Jim Meyering  <jim@meyering.net>
30016
30017         Update from coreutils:
30018
30019         * lib/mktime.c: Merge in changes from libc.
30020
30021         Avoid a link-time failure on some Linux systems.
30022         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
30023         (otherwise).
30024         (__mon_yday): Declare with the STATIC attribute.
30025         (__mktime_internal): Likewise.
30026         Based on a report from Greg Schafer.
30027
30028 2002-11-23  Jim Meyering  <jim@meyering.net>
30029
30030         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
30031         Use `unsigned', not `int', as type of index.
30032
30033         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
30034
30035         * lib/fsusage.c: Remove unneeded parentheses around operands of
30036         `defined'.
30037
30038 2002-11-22  Paul Eggert  <eggert@twinsun.com>
30039
30040         * lib/quotearg.h: Allow multiple inclusion by surrounding with
30041         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
30042         so that we can be included first.
30043         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
30044         * lib/quotearg.c: Include quotearg.h immediately after config.h.
30045         No need to include stddef.h or sys/types.h any more.
30046         Surround local include files with "", not "<>".
30047         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
30048         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
30049         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
30050         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
30051         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
30052         (ISPRINT): Remove; no longer needed now that we assume C89.
30053
30054         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
30055         Preserve errno.
30056
30057         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
30058         quotearg_char): Use SIZE_MAX rather than
30059         (size_t) -1 when we are talking about "infinity".
30060
30061         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
30062
30063 2002-11-22  Paul Eggert  <eggert@twinsun.com>
30064
30065         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
30066         hint that one should use `if (! x) abort ();' rather than `assert
30067         (x);', and anyway it's one less thing to worry about configuring.
30068         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
30069         hash_rehash, hash_insert): Use abort rather than assert.
30070
30071 2002-11-22  Bruno Haible  <bruno@clisp.org>
30072
30073         * lib/safe-read.h: Assume C89. Add comments.
30074         (safe_read): Change return type to size_t.
30075         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
30076         byte counts > SSIZE_MAX correctly.
30077         * lib/safe-write.h: New file.
30078         * lib/safe-write.c: New file.
30079         * lib/full-read.h: New file.
30080         * lib/full-read.c: New file.
30081         * lib/full-write.h: Assume C89. Add comments.
30082         * lib/full-write.c: Include safe-write.h.
30083         (full_write): Rewritten to use safe_write.
30084         Suggested by Jim Meyering and Paul Eggert.
30085
30086 2002-11-21  Jim Meyering  <jim@meyering.net>
30087
30088         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
30089
30090         Merge in changes from the coreutils.
30091
30092         2002-09-25  Paul Eggert  <eggert@twinsun.com>
30093         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
30094         <stdint.h>.
30095         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
30096         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
30097         int.  Work more efficiently if X is the same width as uintmax_t.
30098         Do not compare X to -1, to avoid bogus compiler warning.
30099         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
30100         Don't assume that f_frsize and f_bsize are the same type.
30101
30102         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
30103         warning on FreeBSD.
30104
30105         * lib/makepath.c (make_path): Restore umask *before* creating the final
30106         component.
30107         (make_path): Minor reformatting.
30108
30109         * lib/xmalloc.c: Adjust to work with new autoconf macros,
30110         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
30111         HAVE_MALLOC/HAVE_REALLOC.
30112
30113         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
30114         dummy ones.  At least on GNU/Linux systems, `auto' means something
30115         else.
30116         From Michael Stone.
30117
30118 2002-11-21  Bruno Haible  <bruno@clisp.org>
30119
30120         Remove case insensitive option matching.
30121         * lib/argmatch.h (argcasematch): Remove declaration.
30122         (ARGCASEMATCH): Remove macro.
30123         (__xargmatch_internal): Remove case_sensitive argument.
30124         (XARGMATCH): Update.
30125         (XARGCASEMATCH): Remove macro.
30126         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
30127         case_sensitive argument.
30128         (argcasematch): Remove function.
30129         (__xargmatch_internal): Remove case_sensitive argument.
30130         (main): Use XARGMATCH instead of XARGCASEMATCH.
30131
30132         * lib/xmalloc.c: Change compile-time error message. Add comment about
30133         required autoconf version.
30134
30135 2002-11-20  Paul Eggert  <eggert@twinsun.com>
30136
30137         Merge argmatch cleanups from Bison.  Assume C89.
30138
30139         * lib/argmatch.c: Include config.h here, not in argmatch.h.
30140         Include stdlib.h, for EXIT_FAILURE.
30141         Always include <string.h>, since we assume C89.
30142         (EXIT_FAILURE): Remove pre-C89 bug workaround.
30143         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
30144         Include <stddef.h> instead, since it's all we need for size_t.
30145         (PARAMS): Remove.  All uses removed.
30146         (ARRAY_CARDINALITY): Do not bother to #undef.
30147         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
30148         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
30149         Remove unnecessary parentheses.
30150         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
30151         Insert necessary parentheses.
30152         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
30153         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
30154
30155 2002-11-19  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
30158         * lib/mbswidth.h: Include <stddef.h>, for size_t.
30159
30160         * lib/mbswidth.h (PARAMS): Remove macro.
30161         (mbswidth, mbsnwidth): Use ANSI C function declarations.
30162         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
30163
30164         * lib/gcd.h (PARAMS): Remove macro.
30165         (gcd): Use ANSI C function declarations.
30166         * lib/gcd.c (gcd): Likewise.
30167
30168 2002-11-15  Bruno Haible  <bruno@clisp.org>
30169
30170         * lib/strcspn.c: Include <stddef.h>.
30171         (strcspn): Use ANSI C function declaration. Change return type to
30172         size_t. Use NULL.
30173         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
30174         (strpbrk): Use NULL.
30175         * lib/strpbrk.h (PARAMS): Remove macro.
30176         (strpbrk): Use ANSI C function declaration.
30177         * lib/strstr.c: Don't include <sys/types.h>.
30178         * lib/strstr.h (PARAMS): Remove macro.
30179         (strstr): Use ANSI C function declarations.
30180
30181 2002-11-14  Karl Berry  <karl@gnu.org>
30182
30183         * config/mkinstalldirs: `do' on separate line, instead of
30184         `for var; do'.
30185
30186 2002-11-06  Bruno Haible  <bruno@clisp.org>
30187
30188         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
30189         * lib/gcd.c (gcd): Likewise.
30190
30191 2002-11-05  Bruno Haible  <bruno@clisp.org>
30192
30193         * lib/gcd.h: New file, from gettext-0.11.5.
30194         * lib/gcd.c: New file, from gettext-0.11.5.
30195
30196 2002-11-05  Bruno Haible  <bruno@clisp.org>
30197
30198         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30199         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30200         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30201         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
30202
30203         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
30204         <libintl.h>.
30205         * lib/makepath.c: Include gettext.h instead of <locale.h> and
30206         <libintl.h>.
30207
30208         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
30209         * lib/human.c: Include gettext.h instead of <libintl.h>.
30210         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
30211         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
30212         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
30213         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
30214         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
30215         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
30216         (textdomain): Remove definition.
30217         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
30218
30219         * lib/long-options.c: Remove include of <libintl.h> and definition of
30220         _.
30221         * lib/same.c: Remove include of <libintl.h> and definition of _.
30222
30223 2002-11-04  Owen Taylor  <otaylor@redhat.com>
30224
30225         * lib/config.charset: A few additions for Solaris.
30226
30227 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
30228
30229         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
30230         * lib/localcharset.c (locale_charset): Declare as extern "C".
30231
30232 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
30233
30234         * lib/config.charset: msdos in uk_UA uses CP1125.
30235
30236 2002-11-04  Bruno Haible  <bruno@clisp.org>
30237
30238         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
30239         * lib/strcase.h: New file, from GNU gettext-0.11.5.
30240         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
30241         * lib/strstr.h: New file, from GNU gettext-0.11.5.
30242         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
30243
30244 2002-11-04  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/localcharset.c (locale_charset): Don't return an empty string.
30247
30248 2002-11-04  Bruno Haible  <bruno@clisp.org>
30249
30250         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
30251         aliases.
30252
30253 2002-11-04  Bruno Haible  <bruno@clisp.org>
30254
30255         * lib/config.charset: Update for newest glibc. Add canonical names
30256         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
30257
30258 2002-11-04  Bruno Haible  <bruno@clisp.org>
30259
30260         * lib/config.charset: Add support for NetBSD.
30261
30262 2002-11-04  Bruno Haible  <bruno@clisp.org>
30263
30264         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
30265
30266 2002-11-01  Bruno Haible  <bruno@clisp.org>
30267
30268         * configure.in: Add AC_CONFIG_AUX_DIR call.
30269         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
30270         test/Makefile.
30271         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
30272
30273 2002-09-28  Karl Berry  <karl@gnu.org>
30274
30275         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
30276         installed automake until the next release, since changes have been
30277         made.
30278
30279 2002-09-25  Karl Berry  <karl@gnu.org>
30280
30281         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
30282         * lib/getopt*: copy from libc/posix.
30283         * lib/gettext.h: copy from gettext.
30284         * lib/.cppi-disable: add strdup.c, gettext.h.
30285
30286 2002-09-25  Karl Berry  <karl@gnu.org>
30287
30288         * config/srclist.txt: enable gettext.h check.
30289         * config/config.{guess,sub}: update from prep.
30290         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
30291                 from automake 1.6.3.
30292         See srclist*.
30293
30294 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
30295
30296         * regex.c (PATFETCH): Remove the translating fetch.
30297         (PATFETCH_RAW): Rename to PATFETCH.
30298         (set_image_of_range): New fun.
30299         (SET_RANGE_TABLE_WORK_AREA): Use it.
30300         (regex_compile): Don't translate the pattern chars so eagerly.
30301         Only do it when inserting an `exactn' bytecode or when handling
30302         a char-range.
30303         (mutually_exclusive_p): Avoid empty statement.
30304
30305 2002-07-06  Jim Meyering  <meyering@lucent.com>
30306
30307         * m4/README: Don't mention Makefile.am.in.
30308         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
30309
30310 2002-07-01  Jim Meyering  <meyering@lucent.com>
30311
30312         * lib/c-stack.c: Include sys/time.h.
30313         From Volker Borchert.
30314
30315 2002-06-26  Paul Eggert  <eggert@twinsun.com>
30316
30317         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
30318
30319 2002-06-26  Paul Eggert  <eggert@twinsun.com>
30320
30321         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
30322         New macro.  Use it uniformly instead of
30323         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
30324         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
30325         reported by Vin Shelton.
30326
30327 2002-06-22  Paul Eggert  <eggert@twinsun.com>
30328
30329         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
30330         Do not assume SA_SIGINFO behavior.
30331         Bug reported by Jim Meyering on NetBSD 1.5.2.
30332
30333 2002-06-22  Jim Meyering  <meyering@lucent.com>
30334
30335         * m4/c-stack.m4: New file, from diffutils-2.8.2.
30336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
30337
30338         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
30339         now that configure.ac uses AC_GNU_SOURCE.
30340         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
30341         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
30342
30343         Update to latest tools.  Suggestions from Paul Eggert.
30344         * m4/stdbool.m4: New file, from diffutils-2.8.2.
30345         * m4/gnu-source.m4: Update from diffutils-2.8.2.
30346         * m4/fnmatch.m4: Likewise.
30347         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
30348         to AC_HEADER_STDBOOL
30349
30350 2002-06-22  Jim Meyering  <meyering@lucent.com>
30351
30352         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
30353         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
30354
30355 2002-06-22  Jim Meyering  <meyering@lucent.com>
30356
30357         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
30358
30359         * lib/exitfail.c, exitfail.h: Likewise.
30360         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
30361
30362         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
30363         of fnmatch.h.
30364         (EXTRA_DIST): Add fnmatch_loop.c.
30365         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
30366
30367         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
30368         * lib/fnmatch.c: Update from diffutils-2.8.2.
30369         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
30370         * lib/fnmatch.h: Remove file.
30371
30372 2002-06-21  Jim Meyering  <meyering@lucent.com>
30373
30374         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
30375         * m4/mbrtowc.m4: Likewise.
30376
30377         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
30378         * m4/mbswidth.m4: Reflect name change:
30379         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
30380         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30381
30382         * m4/lib-link.m4: Update from gettext-0.11.2.
30383         * m4/gettext.m4: Likewise.
30384
30385         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
30386         From Alfred M. Szmidt.
30387
30388 2002-06-18  Paul Eggert  <eggert@twinsun.com>
30389
30390         * lib/file-type.h: Report an error if neither S_ISREG nor
30391         S_IFREG is defined, instead of using a test specific to glibc
30392         2.2.  This should be safe, since POSIX requires S_ISREG and
30393         Unix Version 7 had S_IFREG.  We don't need to check for
30394         <sys/types.h> since we don't use any symbols that it defines.
30395
30396 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
30397
30398         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
30399         $@-t, so that each temporary file name is unique and valid in the first
30400         8 characters, for operation under DOS.
30401
30402 2002-06-15  Paul Eggert  <eggert@twinsun.com>
30403
30404         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
30405
30406 2002-06-15  Jim Meyering  <meyering@lucent.com>
30407
30408         Work even with DJGPP 2.03, which lacks support for symlinks.
30409         From Richard Dawe.
30410         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
30411         is defined.
30412         * lib/lchown.c (S_ISLNK): Likewise.
30413
30414 2002-06-15  Jim Meyering  <meyering@lucent.com>
30415
30416         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
30417         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
30418         have been included before this file.
30419
30420 2002-06-14  Jim Meyering  <meyering@lucent.com>
30421
30422         * lib/file-type.h: Use the version from diffutils-2.8.2.
30423         * lib/file-type.c: Likewise.
30424
30425 2002-06-07  Jim Meyering  <meyering@lucent.com>
30426
30427         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
30428         They're needed at least for NetBSD 1.5.2.
30429         ($statxfs_includes): Include those same headers.
30430         ($statxfs_includes): Include sys/vfs.h if available.
30431         ($statxfs_includes): Likewise for sys/statvfs.h.
30432         Check for the following members in both structs statfs and statvfs:
30433         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
30434
30435 2002-06-01  Jim Meyering  <meyering@lucent.com>
30436
30437         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
30438         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
30439
30440 2002-05-28  Jim Meyering  <meyering@lucent.com>
30441
30442         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
30443         Reported by Volker Borchert.
30444
30445 2002-05-27  Jim Meyering  <meyering@lucent.com>
30446
30447         Fix a problem seen only on nonconforming systems whereby ls.c's
30448         use of localtime, and then of gettimeofday would cause trouble:
30449         the localtime call used to initialize rpl_gettimeofday's save
30450         mechanism would clobber ls's current local time information so
30451         that in any long listing the first file would always be listed
30452         with date 1970-01-01.  Analysis by Volker Borchert.
30453
30454         * lib/gettimeofday.c (localtime): Undefine.
30455         (rpl_localtime): New function.
30456
30457 2002-05-27  Jim Meyering  <meyering@lucent.com>
30458
30459         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
30460         localtime.
30461
30462         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
30463         use the replacement function; it wouldn't resolve at link time.
30464         Reported by Volker Borchert.
30465
30466 2002-05-22  Jim Meyering  <meyering@lucent.com>
30467
30468         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
30469         file-type.h.
30470         * lib/file-type.h: New file.
30471         * lib/file-type.c (file_type): New file/function.  Extracted from
30472         diffutils.
30473
30474 2002-04-30  Jim Meyering  <meyering@lucent.com>
30475
30476         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
30477
30478 2002-04-29  Paul Eggert  <eggert@twinsun.com>
30479
30480         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
30481
30482 2002-04-29  Paul Eggert  <eggert@twinsun.com>
30483
30484         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
30485         Do not check for alloca.h (no longer used) or stdbool.h (was never
30486         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
30487
30488 2002-04-29  Paul Eggert  <eggert@twinsun.com>
30489
30490         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
30491
30492 2002-04-29  Jim Meyering  <meyering@lucent.com>
30493
30494         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
30495         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
30496         Use AC_FUNC_STRNLEN here instead.
30497
30498         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
30499         With autoconf-2.53a, it's part of AC_PROG_CC.
30500
30501 2002-04-28  Paul Eggert  <eggert@twinsun.com>
30502
30503         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
30504         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
30505
30506 2002-04-28  Paul Eggert  <eggert@twinsun.com>
30507
30508         * lib/sig2str.h, lib/sig2str.c: New files.
30509         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
30510
30511 2002-04-28  Paul Eggert  <eggert@twinsun.com>
30512
30513         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
30514         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
30515         of 127, since 64 is the largest conceivable number for ancient
30516         nonstandard hosts.
30517         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
30518
30519 2002-04-28  Jim Meyering  <meyering@lucent.com>
30520
30521         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
30522
30523 2002-04-24  Jim Meyering  <meyering@lucent.com>
30524
30525         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
30526         (jm_PREREQ): Use it.
30527
30528         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
30529         mach/mach.h fcntl.h.
30530         Check for this function: setlocale.
30531
30532 2002-04-24  Jim Meyering  <meyering@lucent.com>
30533
30534         * lib/gettext.h: New file, from Gettext.
30535         * lib/Makefile.am (INCLUDES): Remove -I../intl.
30536         (libfetish_a_SOURCES): Add gettext.h.
30537
30538 2002-04-16  Jim Meyering  <meyering@lucent.com>
30539
30540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
30541         ut_pid, ut_id, ut_exit.
30542
30543 2002-04-16  Jim Meyering  <meyering@lucent.com>
30544
30545         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
30546         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
30547         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
30548
30549 2002-04-12  Jim Meyering  <meyering@lucent.com>
30550
30551         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
30552         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
30553         existence of the getmntinfo function.  Needed for Darwin 5.3.
30554
30555         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
30556         This is necessary at least on Darwin 5.3.
30557
30558         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
30559         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
30560         strnlen.o in the library, and that makes some versions of ranlib
30561         object.
30562
30563 2002-04-12  Jim Meyering  <meyering@lucent.com>
30564
30565         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
30566
30567 2002-04-09  Jim Meyering  <meyering@lucent.com>
30568
30569         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
30570         to be more precise.  Rather than saying we're checking whether the
30571         function `works', say what we're testing.
30572         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
30573         Reported by Bruno Haible.
30574
30575 2002-03-10  Jim Meyering  <meyering@lucent.com>
30576
30577         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
30578         Suggestion from Santiago Vila.
30579
30580 2002-03-08  Jim Meyering  <meyering@lucent.com>
30581
30582         * lib/rename.c: Mention that this wrapper is needed also on
30583         mips-dec-ultrix4.4 systems.
30584
30585 2002-03-02  Jim Meyering  <meyering@lucent.com>
30586
30587         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
30588         not HAVE_CLOCK_SETTIME.
30589
30590 2002-02-27  Paul Eggert  <eggert@twinsun.com>
30591
30592         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
30593         Check for clock_settime.
30594
30595 2002-02-27  Paul Eggert  <eggert@twinsun.com>
30596
30597         * lib/nanosleep.h: Rename to....
30598         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
30599
30600         * lib/gettime.c: New file.
30601         * lib/settime.c: New file.
30602         * lib/stime.c: Remove.
30603
30604         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
30605         timespec.h.  Remove nanosleep.h.
30606
30607 2002-02-25  Paul Eggert  <eggert@twinsun.com>
30608
30609         * m4/acl.m4: New file.
30610         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
30611         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
30612
30613 2002-02-25  Paul Eggert  <eggert@twinsun.com>
30614
30615         * lib/acl.c, lib/acl.h: New files.
30616         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
30617
30618 2002-02-24  Jim Meyering  <meyering@lucent.com>
30619
30620         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
30621         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
30622         cause trouble.  Reported by Nelson Beebe.
30623
30624 2002-02-23  Paul Eggert  <eggert@twinsun.com>
30625
30626         * lib/path-concat.c (xpath_concat): Reorder code to pacify
30627         compilers that don't know that xalloc_die never returns.
30628
30629 2002-02-20  Jim Meyering  <meyering@lucent.com>
30630
30631         * lib/getdate.c: Regenerate using bison-1.33.
30632
30633 2002-02-17  Jim Meyering  <meyering@lucent.com>
30634
30635         * config/config.guess (main): Don't use `head -1'; it's no longer
30636         portable. Use `sed 1q' instead.
30637
30638 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
30639
30640         * m4/codeset.m4: Upgrade to gettext-0.11.
30641         * m4/gettext.m4: Upgrade to gettext-0.11.
30642         * m4/glibc21.m4: Upgrade to gettext-0.11.
30643         * m4/iconv.m4: Upgrade to gettext-0.11.
30644         * m4/isc-posix.m4: Upgrade to gettext-0.11.
30645         * m4/lcmessage.m4: Upgrade to gettext-0.11.
30646         * m4/lib-ld.m4: New file, from gettext-0.11.
30647         * m4/lib-link.m4: New file, from gettext-0.11.
30648         * m4/lib-prefix.m4: New file, from gettext-0.11.
30649         * m4/progtest.m4: Upgrade to gettext-0.11.
30650
30651 2002-02-15  Paul Eggert  <eggert@twinsun.com>
30652
30653         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
30654         (jm_PREREQ): Use it.
30655
30656 2002-02-15  Paul Eggert  <eggert@twinsun.com>
30657
30658         * lib/posixver.c, lib/posixver.h: New files.
30659         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
30660
30661 2002-02-02  Paul Eggert  <eggert@twinsun.com>
30662             Bruno Haible  <bruno@clisp.org>
30663
30664         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
30665         (fwrite_success_callback): New declaration.
30666         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
30667         print_unicode_char. Call failure callback instead of error.
30668         (fwrite_success_callback): New function.
30669         (exit_failure_callback): New function.
30670         (fallback_failure_callback): New function.
30671         (print_unicode_char): Call unicode_to_mb.
30672
30673 2002-01-26  Jim Meyering  <meyering@lucent.com>
30674
30675         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
30676         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
30677
30678 2002-01-26  Jim Meyering  <meyering@lucent.com>
30679
30680         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
30681
30682 2002-01-22  Paul Eggert  <eggert@twinsun.com>
30683
30684         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
30685
30686 2002-01-22  Jim Meyering  <meyering@lucent.com>
30687
30688         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
30689         Otherwise, some versions of automake would omit the rule that makes
30690         Makefile from Makefile.in.
30691
30692 2002-01-21  Paul Eggert  <eggert@twinsun.com>
30693
30694         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
30695         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
30696         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
30697         (memcoll): Set errno to zero if there is no error.
30698
30699         * lib/quotearg.c (quotearg_buffer_restyled):
30700         Fix bug with quoting buffers containing NUL when backslashing escapes.
30701         This bug was exposed by the other changes in this patch.
30702         (quotearg_n_options): New arg ARGSIZE.
30703         All callers changed.
30704         (quoting_options_from_style): New function.
30705         (quotearg_n_style): Use it.
30706         (quotearg_n_style_mem): New function.
30707
30708         * lib/quotearg.h (quotearg_n_style_mem): New function.
30709
30710 2002-01-19  Jim Meyering  <meyering@lucent.com>
30711
30712         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
30713         Remove useless quotes: DF_PROG="df".
30714         * m4/strnlen.m4: New file.
30715
30716 2002-01-16  Paul Eggert  <eggert@twinsun.com>
30717
30718         * lib/backupfile.c (ISDIGIT): Comment fix.
30719         * lib/getdate.y (ISDIGIT): Likewise.
30720         * lib/posixtm.c (ISDIGIT, year): Likewise.
30721         * lib/strverscmp.c (ISDIGIT): Likewise.
30722         * lib/userspec.c (ISDIGIT): Likewise.
30723
30724 2002-01-16  Jim Meyering  <meyering@lucent.com>
30725
30726         * lib/getdate.y: Add three semicolons, each just before a closing
30727         brace. Bison (as of version 1.31) no longer papers over that mistake.
30728
30729 2002-01-05  Jim Meyering  <meyering@lucent.com>
30730
30731         * lib/version-etc.c (version_etc_copyright): Update copyright year.
30732
30733 2001-12-19  Paul Eggert  <eggert@twinsun.com>
30734
30735         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
30736         not silently exit merely because the output buffer happens to
30737         have nothing pending.
30738
30739 2001-12-18  Paul Eggert  <eggert@twinsun.com>
30740
30741         See the big note in ../ChangeLog.
30742         * lib/human.c (suffixes): Prefer K to k for 1024.
30743         (generate_suffix_backwards): New function.
30744         (human_readable_inexact): Use it.
30745         * lib/xstrtol.c (__xstrtol): If there is no number but there
30746         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
30747         Accept 'K' as well as 'k'.
30748
30749 2001-12-15  Jim Meyering  <meyering@lucent.com>
30750
30751         * lib/regex.h (__restrict_arr): Update from libc.
30752
30753         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
30754         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
30755         (STREQ): Define.
30756
30757 2001-12-14  Jim Meyering  <meyering@lucent.com>
30758
30759         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
30760         Suggestion from Bruno Haible.
30761
30762 2001-12-10  Jim Meyering  <meyering@lucent.com>
30763
30764         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
30765         xrealloc, Instead, include "xalloc.h".
30766         (initbuffer): Don't cast xmalloc return value to char*.
30767         (readline): Reword comment.
30768         Don't cast xrealloc return value to char*
30769         Return NULL, not 0.
30770
30771 2001-12-09  Jim Meyering  <meyering@lucent.com>
30772
30773         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
30774         about `signed and unsigned type in conditional expression'.
30775         * lib/posixtm.c (posix_time_parse): Likewise.
30776
30777         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
30778
30779         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
30780         to avoid a pedantic warning.
30781
30782         * lib/getstr.c: Don't include assert.h.
30783         (getstr): Remove warning-evoking assertions.
30784         Return -1 if offset parameter is out of bounds.
30785         Change the type of a local from int to size_t.
30786
30787         * lib/strftime.c (my_strftime_localtime_r): Include this function
30788         definition in the `#if ! HAVE_TM_GMTOFF' block.
30789
30790         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
30791         Include xalloc.h instead.
30792
30793 2001-12-02  Jim Meyering  <meyering@lucent.com>
30794
30795         * lib/tempname.c: Don't declare getenv, thus reverting the change of
30796         2001-11-18.  It's no longer necessary, now that stdlib.h is always
30797         included.
30798
30799         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
30800         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
30801
30802 2001-11-30  Akim Demaille  <akim@epita.fr>
30803
30804         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
30805         before being defined.
30806
30807 2001-11-27  Paul Eggert  <eggert@twinsun.com>
30808
30809         * lib/quotearg.h (quotearg_n, quotearg_n_style):
30810         First arg is int, not unsigned.
30811         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
30812         (SIZE_MAX, UINT_MAX): New macros.
30813         (quotearg_n_options): Abort if N is negative.
30814         Avoid overflow check on hosts where size_t is 64 bits and int
30815         is 32 bits, as overflow is impossible there.
30816         Fix off-by-one typo that caused unnecessary reallocation.
30817
30818 2001-11-27  Jim Meyering  <meyering@lucent.com>
30819
30820         * lib/tempname.c: Merge with version from libc.
30821         * lib/regex.c: Likewise.
30822
30823         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
30824         systems for which STDC_HEADERS is 0, it was not included, resulting in
30825         a warning about an integer-to-pointer conversion problem with getenv.
30826         Reported by Volker Borchert.
30827
30828 2001-11-26  Jim Meyering  <meyering@lucent.com>
30829
30830         * lib/gtod.h: Remove file.
30831         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
30832         * lib/gettimeofday.c: Don't include gtod.h.
30833         (GTOD_init): Remove function.
30834         (rpl_gettimeofday): Do its job here instead, rather than aborting.
30835         Suggestion from Volker Borchert.
30836
30837 2001-11-23  Jim Meyering  <meyering@lucent.com>
30838
30839         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
30840         it.
30841         * lib/hash.c (struct hash_table): Define it here instead.
30842
30843 2001-11-22  Jim Meyering  <meyering@lucent.com>
30844
30845         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
30846
30847 2001-11-20  Jim Meyering  <meyering@lucent.com>
30848
30849         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
30850         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
30851
30852 2001-11-19  Jim Meyering  <meyering@lucent.com>
30853
30854         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
30855         directory.  Use "conftestXXXXXX" as the template.
30856         Suggestion from Paul Eggert.
30857
30858         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
30859         immediately, so the test doesn't mistakenly hit the max-open-files
30860         limit.
30861
30862 2001-11-18  Paul Eggert  <eggert@twinsun.com>
30863
30864         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
30865         (TEMPORARIES): New macro.
30866         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
30867         removes an artificial limitation (e.g. HP-UX 10.20, where
30868         TMP_MAX is 17576).
30869
30870 2001-11-18  Jim Meyering  <meyering@lucent.com>
30871
30872         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
30873
30874 2001-11-18  Jim Meyering  <meyering@lucent.com>
30875
30876         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
30877         on SunOS 4.
30878
30879         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
30880         files will be created before anything else.
30881
30882 2001-11-17  Paul Eggert  <eggert@twinsun.com>
30883
30884         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
30885         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
30886
30887 2001-11-17  Jim Meyering  <meyering@lucent.com>
30888
30889         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
30890         Prompted by a report from Bob Proulx.
30891
30892         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
30893         Instead, require UTILS_FUNC_MKSTEMP.
30894
30895 2001-11-17  Jim Meyering  <meyering@lucent.com>
30896
30897         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
30898         Now, that's done as part of AC_FUNC_STRTOD.
30899
30900 2001-11-17  Jim Meyering  <meyering@lucent.com>
30901
30902         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
30903         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
30904         rather than group writable.  Patch by Juan F. Codagnone.
30905
30906         * lib/readtokens.c: Remove explicit declarations of xmalloc and
30907         xrealloc, Instead, include "xalloc.h".
30908
30909         * lib/mountlist.c: Include unlocked-io.h after all system headers.
30910         Remove explicit declarations of xmalloc, xrealloc,
30911         and xstrdup.  Instead, include "xalloc.h".
30912
30913         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
30914         unlocked-io.h.
30915         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
30916         Likewise.
30917         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
30918
30919         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
30920         Reported by Padraig Brady.
30921
30922         * lib/mkstemp.c: #undef mkstemp.
30923         Include config.h.
30924         (rpl_mkstemp): Rename from mkstemp.
30925         Protoize.
30926
30927 2001-11-16  Jim Meyering  <meyering@lucent.com>
30928
30929         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
30930         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
30931         determine the amount of total physical memory, use pstat_getstatic.
30932         HPUX-11 doesn't define _SC_PHYS_PAGES.
30933         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
30934         If sysconf couldn't be used to determine the amount of available
30935         physical memory, use both pstat_getstatic and pstat_getdynamic.
30936         Based on a patch from Bob Proulx.
30937
30938 2001-11-10  Jim Meyering  <meyering@lucent.com>
30939
30940         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
30941         (jm_PREREQ): Use it.
30942
30943 2001-11-09  Jim Meyering  <meyering@lucent.com>
30944
30945         * m4/jm-macros.m4: Require autoconf-2.52f.
30946         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
30947         Use these AC_-prefixed names, not the AM_-prefixed ones.
30948
30949         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
30950
30951 2001-11-05  Jim Meyering  <meyering@lucent.com>
30952
30953         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
30954
30955 2001-11-04  Jim Meyering  <meyering@lucent.com>
30956
30957         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
30958         $DEFS.
30959
30960 2001-11-03  Jim Meyering  <meyering@lucent.com>
30961
30962         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
30963         of AC_DEFUN.
30964
30965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
30966         know the name of the variable in the macro definition.
30967
30968 2001-11-03  Jim Meyering  <meyering@lucent.com>
30969
30970         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
30971         in argmatch_to_argument call.
30972
30973         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
30974         argument.
30975
30976         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
30977         e.g., a fault due to an attempt to free a NULL pointer.
30978
30979 2001-11-01  Jim Meyering  <meyering@lucent.com>
30980
30981         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
30982         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
30983
30984 2001-11-01  Jim Meyering  <meyering@lucent.com>
30985
30986         * lib/dirfd.c, lib/dirfd.h: New files.
30987         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
30988
30989         * lib/hash.c (hash_print) [TESTING]: Clean up.
30990
30991 2001-10-22  Paul Eggert  <eggert@twinsun.com>
30992
30993         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
30994         to avoid a warning if -Wall.
30995
30996 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
30997
30998         * README: New file
30999         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
31000         (per RMS's instructions, this is now the canonical source)
31001         * lgpl/, gpl/: New directories.
31002
31003 2001-10-21  Paul Eggert  <eggert@twinsun.com>
31004
31005         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
31006
31007 2001-10-21  Jim Meyering  <meyering@lucent.com>
31008
31009         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
31010         this code would end up calling gettext even in packages built
31011         with --disable-nls.
31012         * lib/getopt.c (_): Likewise.
31013         * lib/regex.c (_): Likewise.
31014
31015 2001-10-20  Paul Eggert  <eggert@twinsun.com>
31016
31017         * m4/error.m4 (jm_PREREQ_ERROR):
31018         Do not invoke AC_CHECK_FUNCS with strerror_r, as
31019         AC_FUNC_STRERROR_R does that.
31020         Check for strerror declaration.
31021
31022         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
31023         are supposed to have them these days.
31024         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
31025         Merge changes from latest Autoconf CVS.
31026         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
31027         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
31028         POSIX decided to standardize on the int flavor of strerror_r.
31029
31030 2001-10-20  Paul Eggert  <eggert@twinsun.com>
31031
31032         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
31033         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
31034         Use strerror_r that is only a macro, even if it is not a function.
31035         (strerror): Check for HAVE_DECL_STRERROR before declaring.
31036         (private_strerror): Use prototypes, not old-style function definition.
31037         (print_errno_message): New function.
31038         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
31039         char*-flavored one.
31040         (error_tail, error, error_at_line): Use it.
31041
31042 2001-10-11  Jim Meyering  <meyering@lucent.com>
31043
31044         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
31045         and quote_n (1, ... to avoid clobbering a buffer.
31046
31047 2001-10-05  Jim Meyering  <meyering@lucent.com>
31048
31049         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
31050         hash-pjw.h.
31051         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
31052         * lib/hash-pjw.h: New file.
31053
31054 2001-09-30  Jim Meyering  <meyering@lucent.com>
31055
31056         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
31057         `struct fsstat' has the `f_fstypename' member.
31058         Use that to define FS_TYPE, which is now used to make
31059         the getfsstat link test tighter.
31060
31061 2001-09-30  Jim Meyering  <meyering@lucent.com>
31062
31063         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
31064         Include <sys/ucred.h>, for Apple Darwin.
31065         Include sys/mount.h and sys/fs_types.h only if available.
31066         (FS_TYPE): Define.
31067         (read_filesystem_list): Use FS_TYPE.
31068
31069 2001-09-29  Paul Eggert  <eggert@twinsun.com>
31070
31071         * lib/exclude.c (excluded_filename): 0 -> false, since it's
31072         a boolean context.
31073
31074 2001-09-29  Jim Meyering  <meyering@lucent.com>
31075
31076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
31077         [one-argument getmntent function]): Include stdio.h before mntent.h.
31078         SunOS 4.1.x needs it for the declaration of `FILE'.
31079         Patch by Volker Borchert.
31080
31081         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
31082         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
31083         sys/fs_types.h, and make the link-test for getfsstat guard #include
31084         directives with appropriate #if HAVE_*_H tests so that we can
31085         detect getfsstat on Apple Darwin1.3.7 systems.
31086         Reported by Nelson Beebe.
31087         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
31088
31089 2001-09-28  Paul Eggert  <eggert@twinsun.com>
31090
31091         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
31092         #defines strtoimax.  Also treat the other strto* functions
31093         like strtoimax.
31094
31095         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
31096         Check for strtoul and strtoumax,
31097         as those declarations are made even in the signed case.
31098         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
31099         Likewise, for strtol and strtoimax.
31100
31101 2001-09-28  Paul Eggert  <eggert@twinsun.com>
31102
31103         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
31104         #defines strtoimax.  Also treat the other strto* functions
31105         like strtoimax.
31106
31107         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
31108         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
31109         (strtoimax, strtoumax): Do not declare if already defined as a macro.
31110
31111 2001-09-26  Jim Meyering  <meyering@lucent.com>
31112
31113         Most macros in unlocked-io.h had the wrong number of arguments.
31114         * lib/gen-uio: New script.
31115         (USE_UNLOCKED_IO): Define to 1 if not already defined.
31116         * lib/unlocked-io.hin: Remove file.
31117         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
31118         rather than trying to embed it here.
31119         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
31120         Reported by Padraig Brady.
31121
31122 2001-09-25  Volker Borchert  <bt@teknon.de>
31123
31124         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
31125         `result'.
31126
31127 2001-09-24  Jim Meyering  <meyering@lucent.com>
31128
31129         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
31130
31131 2001-09-23  Jim Meyering  <meyering@lucent.com>
31132
31133         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
31134         instead of the mere test for existence of mntent.h.  The latter
31135         would get a false-positive on AIX 3.4 systems.
31136         In the outer getmntent if-block, don't die if neither of the getmntent
31137         tests succeeds.  Instead, just fall through and continue with the
31138         remaining tests.
31139
31140 2001-09-23  Jim Meyering  <meyering@lucent.com>
31141
31142         * lib/mountlist.c: Remove useless parentheses in #if directives.
31143         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
31144         the deprecated MOUNTED symbol is no longer defined in mntent.h.
31145
31146 2001-09-22  Jim Meyering  <meyering@lucent.com>
31147
31148         * m4/gettext.m4: New file.  From gettext.
31149         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
31150         * m4/progtest.m4: Likewise
31151         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
31152         * m4/glibc21.m4: Likewise.
31153
31154         * m4/libintl.m4: Remove.  No longer used.
31155
31156 2001-09-22  Jim Meyering  <meyering@lucent.com>
31157
31158         * lib/localcharset.c: Update from latest gettext.
31159         * lib/config.charset: Likewise.
31160
31161 2001-09-20  Jim Meyering  <meyering@lucent.com>
31162
31163         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
31164         strtoimax.
31165         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
31166         strtoumax.
31167
31168 2001-09-20  Jim Meyering  <meyering@lucent.com>
31169
31170         * lib/xstrtol.c (strtoimax): Guard declaration with
31171         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
31172         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
31173         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
31174         (strtoumax): Likewise, for completeness (it wasn't necessary).
31175
31176 2001-09-17  Paul Eggert  <eggert@twinsun.com>
31177
31178         * lib/strtoimax.c (HAVE_LONG_LONG):
31179         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
31180         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
31181         to work around bug in IBM C compiler.
31182
31183 2001-09-17  Jim Meyering  <meyering@lucent.com>
31184
31185         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
31186         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
31187         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
31188         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
31189         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
31190         whenever the right hand side need not be expanded by the shell.
31191
31192 2001-09-16  Paul Eggert  <eggert@twinsun.com>
31193
31194         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
31195         library.  It's not correct, as some older glibcs are buggy.
31196         fnmatch wasn't fixed until glibc 2.2.
31197
31198         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
31199         special shell magic here.
31200
31201 2001-09-16  Jim Meyering  <meyering@lucent.com>
31202
31203         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
31204         * m4/jm-macros.m4: Require it.
31205
31206 2001-09-16  Jim Meyering  <meyering@lucent.com>
31207
31208         * lib/mkdir.c: New file.
31209
31210 2001-09-15  Jim Meyering  <meyering@lucent.com>
31211
31212         * m4/jm-macros.m4: Check for help2man.
31213
31214 2001-09-11  Jim Meyering  <meyering@lucent.com>
31215
31216         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
31217         The body, by Paul Eggert, was moved here from configure.in.
31218         * m4/jm-macros.m4: Require UTILS_HOST_OS.
31219
31220 2001-09-04  Paul Eggert  <eggert@twinsun.com>
31221
31222         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
31223         (jm_PREREQ): Use it.
31224
31225 2001-09-04  Paul Eggert  <eggert@twinsun.com>
31226
31227         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
31228         Use ssize_t, not int, to store result of readlink.
31229         Check for ssize_t overflow as well as size_t overflow,
31230         as POSIX says the result of readlink is implementation-defined
31231         when ssize_t overflows.
31232         Remove unnecessary cast to char*.
31233         Use free+malloc instead of realloc, as the storage doesn't need
31234         to be preserved and it's clearer and can be more efficient that way.
31235         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
31236         * lib/xreadlink.h (xreadlink): Update prototype.
31237
31238 2001-09-04  Paul Eggert  <eggert@twinsun.com>
31239
31240         * lib/xgetcwd.c: Revert some of the previous change; intead,
31241         fix the HAVE_GETCWD_NULL code to behave more like the
31242         !HAVE_GETCWD_NULL code used to.
31243
31244         Include "xalloc.h".
31245         (xgetcwd): Do not return NULL when memory is exhausted; instead,
31246         invoke xalloc_die.
31247
31248 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31249
31250         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
31251         sys/param.h, as pathmax.h includes them.
31252
31253 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31254
31255         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
31256         (jm_PREREQ_XGETCWD): New macro.
31257
31258         * m4/getcwd.m4: New file.
31259
31260 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31261
31262         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
31263         like the HAVE_GETCWD_NULL code.
31264         Include pathmax.h if not HAVE_GETCWD.
31265         Do not include xalloc.h.
31266         (INITIAL_BUFFER_SIZE): New symbol.
31267         Do not use xmalloc / xrealloc, since the caller is responsible for
31268         handling errors.  Preserve errno around `free' during failure.
31269         Do not overrun buffer when using getwd.
31270
31271 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31272
31273         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
31274         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
31275         getcwd (NULL, 0).
31276
31277 2001-09-03  Paul Eggert  <eggert@twinsun.com>
31278
31279         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
31280         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
31281         spotted by Jim Meyering.
31282
31283 2001-09-03  Jim Meyering  <meyering@lucent.com>
31284
31285         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
31286         failure.
31287
31288 2001-09-02  Jim Meyering  <meyering@lucent.com>
31289
31290         * lib/error.c: Update from GNU libc.
31291
31292 2001-09-01  Jim Meyering  <meyering@lucent.com>
31293
31294         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
31295         Used by df.
31296
31297 2001-09-01  Jim Meyering  <meyering@lucent.com>
31298
31299         * lib/xreadlink.c: New file.
31300         * lib/xreadlink.h: New file.
31301         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
31302         xreadlink.h.
31303
31304         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
31305         doesn't conflict with sparc Solaris 7's definition in
31306         /usr/include/sys/int_types.h.
31307
31308         * lib/exclude.c: Use `""', not `<>' to #include non-system header
31309         files.
31310         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
31311         and strncasecmp as r-values.  Unixware didn't have declarations.
31312
31313 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31314
31315         * lib/xstrtol.h: Add copyright notice.
31316         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
31317         LONGINT_INVALID_SUFFIX_CHAR.
31318
31319 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31320
31321         * lib/xstrtol.c (strtoimax): New decl.
31322
31323 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31324
31325         * lib/xgetcwd.c: Don't include pathmax.h.
31326         Include stdlib.h and unistd.h if available.
31327         Include xalloc.h.
31328         (xmalloc, xstrdup, free): Remove decls.
31329         (xgetcwd): Don't assume sizes fit in unsigned.
31330         Check for overflow when computing sizes.
31331         Simplify reallocation code.
31332
31333 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31334
31335         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
31336         a directory's st_size can have an arbitrary value, so the old
31337         usage could waste an arbitrary amount of memory.  All uses
31338         changed.
31339         * lib/savedir.h: Update prototype.
31340
31341 2001-08-31  Paul Eggert  <eggert@twinsun.com>
31342
31343         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
31344
31345         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
31346         old strtoimax.c.
31347
31348         Also, make the following further changes to make this file's
31349         configuration more similar to that of strtol.c:
31350         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
31351         (strtoumax, uintmax_t, strtoull, strtol): Remove.
31352         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
31353         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
31354         changed to signed values.
31355
31356         And make the following changes as well:
31357         Fix copyright notice, as 1999 was missing.
31358         (verify): New macro.
31359         (strtoimax): Check sizes at compile-time, not run-time.
31360         Prefer strtol to strtoll if both work.
31361         (main): Remove; it was not that useful and was a pain to maintain.
31362
31363         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
31364
31365 2001-08-31  Jim Meyering  <meyering@lucent.com>
31366
31367         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
31368         Use an initial, malloc'd, buffer of length 128 rather than
31369         a statically allocated one of length 1024.
31370
31371 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31372
31373         Simplify code, partly by assuming autoconf 2.52 semantics.
31374
31375         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
31376
31377         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
31378         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
31379         All uses removed.
31380         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
31381         Move AC_REQUIRE to next-to-top level, to avoid confusion.
31382         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
31383         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
31384         jm_AC_HEADER_INTTYPES_H.
31385         * m4/jm-macros.m4 (jm_MACROS): Likewise.
31386
31387         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
31388
31389         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
31390         Quote first arg of AC_DEFUN.
31391         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
31392         since they are needed to parse the include file even if we need
31393         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
31394         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
31395         but with opposite signedness.
31396
31397 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31398
31399         Merge 'exclude' changes from tar 1.13.22.
31400         This fixes one or two unlikely storage allocation overflow bugs,
31401         but doesn't change user-visible behavior otherwise.
31402
31403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31404
31405         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
31406         (jm_PREREQ_EXCLUDE): New macro.
31407
31408 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31409
31410         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
31411         tm to be declared.
31412
31413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31414
31415         * lib/hash.c: Remove '2001' from copyright notice.
31416
31417 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31418
31419         * lib/full-write.h: New file.
31420         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
31421         * lib/full-write.c: Correct credits, as cccp.c no longer
31422         exists and anyway it was so heavily changed from the old cccp
31423         code as to be unrecognizable.  Include full-write.h.
31424         (full_write) Return size_t, with short writes meaning failure.
31425         All callers changed.  This fixes a bug with large buffers
31426         on 64-bit hosts.
31427         * lib/utime.c: Include full-write.h.
31428
31429 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31430
31431         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
31432         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
31433         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
31434         Include if available.
31435         (<xalloc.h>): Include
31436         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
31437         (verify): New macro.  Use it to verify that EXCLUDE macros do not
31438         collide with FNM macros.
31439         (struct patopts): New struct.
31440         (struct exclude): Use it, as exclude patterns now come with options.
31441         (new_exclude): Support above changes.
31442         (new_exclude, add_exclude_file):
31443         Initial size must now be a power of two to simplify overflow checking.
31444         (free_exclude, fnmatch_no_wildcards): New function.
31445         (excluded_filename): No longer requires options arg, as the options
31446         are determined by add_exclude.  Now returns bool, not int.
31447         (excluded_filename, add_exclude):
31448         Add support for the fancy new exclusion options.
31449         (add_exclude, add_exclude_file): Now takes int options arg.
31450         Check for arithmetic overflow when computing sizes.
31451         (add_exclude_file): xrealloc might modify errno, so don't
31452         realloc until after errno might be used.
31453
31454         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
31455         New macros.
31456         (free_exclude): New decl.
31457         (add_exclude, add_exclude_file): Now takes int options arg.
31458         (excluded_filename): No longer requires options arg, as the options
31459         are determined by add_exclude.  Now returns bool, not int.
31460
31461 2001-08-30  Paul Eggert  <eggert@twinsun.com>
31462
31463         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
31464
31465 2001-08-27  Jim Meyering  <meyering@lucent.com>
31466
31467         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
31468
31469         * lib/version-etc.c (N_): Remove definition.
31470         Revert most of last change.
31471         Instead, simply don't mark the `Copyright...' string for translation.
31472         Based on advice from Paul Eggert.
31473
31474         * lib/strtoxmax.c: Tweak comment.
31475
31476 2001-08-26  Jim Meyering  <meyering@lucent.com>
31477
31478         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
31479
31480         * m4/xstrtoimax.m4: New file.
31481         * m4/xstrtoumax.m4: Add comments explaining why we
31482         AC_REPLACE_FUNCS(strtol).
31483
31484 2001-08-26  Jim Meyering  <meyering@lucent.com>
31485
31486         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
31487         of copyright with `%s' so translators don't get an untranslated
31488         message in 2002.
31489         (COPYRIGHT_YEAR): Define.
31490         (version_etc): Use fprintf rather than fputs.
31491         Suggestion from Ulrich Drepper.
31492
31493         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
31494
31495         * lib/strtoll.c: New file, from GNU libc.
31496         * lib/xstrtoimax.c: New file.
31497
31498         * lib/xstrtol.h: Add xstrtoimax.
31499         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
31500         * lib/strtoimax.c: New file.  Likewise, but first define
31501         STRTOUXMAX_SIGNED.
31502
31503         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
31504         ...
31505         * lib/strtoxmax.c: ... then renamed to this.
31506
31507 2001-08-18  Paul Eggert  <eggert@twinsun.com>
31508
31509         * m4/inttypes.m4: Add AC_PREREQ(2.13).
31510         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
31511         (jm_AC_TYPE_INTMAX_T): New macro.
31512         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
31513
31514         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
31515
31516         * m4/longlong.m4: Renamed from ulonglong.m4.
31517         * m4/inttypes.m4: Renamed from inttypes_h.m4.
31518         * m4/uintmax_t.m4: Removed.
31519
31520 2001-08-13  Paul Eggert  <eggert@twinsun.com>
31521
31522         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
31523         Port to Solaris 8, where 'sed' requires a space after the 'r'
31524         command, and where sh dislikes "$/".  Clean up the spacing a bit.
31525         Redirect output to $tmp just once.
31526
31527 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
31528
31529         * lib/addext.c (<errno.h>): Include.
31530         (errno): Declare if not defined.
31531         (addext): Work correctly when pathconf returns -1 and leaves
31532         errno alone because there is no limit.  Also, work even if
31533         pathconf returns a value greater than SIZE_MAX.
31534
31535 2001-08-12  Jim Meyering  <meyering@lucent.com>
31536
31537         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
31538         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
31539         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
31540         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
31541         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
31542         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
31543         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
31544         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
31545         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
31546         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
31547         utime.m4, utimes.m4, xstrtoumax.m4:
31548         Quote the first argument in each use of AC_DEFUN.
31549
31550 2001-08-12  Jim Meyering  <meyering@lucent.com>
31551
31552         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
31553         Simply `return getcwd (NULL, 0);'.
31554         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
31555         Use 1300 as initial value for length, not PATH_MAX.
31556
31557         * lib/pathmax.h: Clean up cpp syntax.
31558
31559 2001-08-12  Jim Meyering  <meyering@lucent.com>
31560
31561         * lib/gettimeofday.c: New file.
31562         * lib/gtod.h: New file.
31563         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
31564
31565 2001-08-05  Jim Meyering  <meyering@lucent.com>
31566
31567         * m4/jm-macros.m4: Require autoconf-2.52.
31568
31569 2001-08-04  Jim Meyering  <meyering@lucent.com>
31570
31571         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
31572         stmt, to get in sync with glibc.
31573
31574 2001-08-03  Paul Eggert  <eggert@twinsun.com>
31575
31576         The following changes are from gettext 0.10.39 as maintained by
31577         Bruno Haible.
31578
31579         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
31580         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
31581         with inverted sense.  All uses changed.
31582
31583         * lib/mbswidth.c: Don't include <limits.h>.
31584         Include <stdlib.h> and <string.h> unconditionally.
31585         (iswcntrl, mbsinit, ISCNTRL): New macros.
31586         (mbsnwidth): Use K&R style function declarations.
31587         Don't bother checking for MB_LEN_MAX == 1, since the compiler
31588         can optimize it when MB_CUR_MAX == 1.
31589         The width of control characters is zero, not 1.
31590
31591 2001-08-03  Paul Eggert  <eggert@twinsun.com>
31592
31593         The following changes are from gettext 0.10.39 as maintained by
31594         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
31595
31596         * m4/codeset.m4: Upgrade to serial AM1.
31597         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
31598         all uses changed.  Quote first arg of AC_DEFUN.
31599         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
31600
31601         * m4/iconv.m4: Upgrade to serial AM2.
31602         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
31603         Add --with-libconv-prefix.
31604         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
31605         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
31606         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
31607         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
31608         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
31609
31610         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
31611         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
31612         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
31613         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
31614         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
31615         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
31616         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31617         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
31618         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
31619
31620         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
31621         string.h any more.
31622
31623         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
31624         not the default value.
31625
31626         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
31627         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
31628         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
31629         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
31630         Also check for iswcntrl, used for wcwidth fallback.
31631         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
31632         to Autoconf 2.13.
31633
31634 2001-08-03  Jim Meyering  <meyering@lucent.com>
31635
31636         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
31637         as it was in the original.  Reported by Paul Eggert.
31638
31639 2001-07-16  Jim Meyering  <meyering@lucent.com>
31640
31641         * m4/gettimeofday.m4: New file.
31642         Prompted by a report from Bernhard Baehr.
31643
31644 2001-07-15  Jim Meyering  <meyering@lucent.com>
31645
31646         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
31647         stuff. Now it's in ../Makefile.cfg.
31648
31649 2001-07-15  Jim Meyering  <meyering@lucent.com>
31650
31651         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
31652         (BUILT_SOURCES): Add unlocked-io.h.
31653         (io_functions): Define.
31654         (unlocked-io.h): New rule.
31655         (DISTCLEANFILES): Add unlocked-io.h.
31656         (all-local): Depend on unlocked-io.h, to ensure it is created.
31657
31658         * lib/unlocked-io.hin: New file
31659
31660         * lib/regex.c: Update from glibc.
31661
31662 2001-07-05  Jim Meyering  <meyering@lucent.com>
31663
31664         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
31665         recommendation.
31666         (libfetish_a_SOURCES): Put all .h files here instead.
31667         Remove a thus-exposed (better checks in automake) duplicate and
31668         two unnecessary .h files.
31669
31670 2001-07-04  Jim Meyering  <meyering@lucent.com>
31671
31672         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
31673         that generates jm-glibc-io.m4 so that it doesn't trigger any make
31674         distcheck failure.
31675
31676 2001-07-02  Jim Meyering  <meyering@lucent.com>
31677
31678         The following changes were prompted by suggestions from Bruno Haible.
31679
31680         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
31681         is now generated.
31682         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
31683         definition of EXTRA_DIST.
31684         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
31685         ensure that the generated file is created/updated whenever the list
31686         of $(unlocked_functions) is changed.
31687         (jm-glibc-io.m4): New rule.
31688         (unlocked-io.h): New rule -- currently unused.
31689
31690 2001-06-24  Jim Meyering  <meyering@lucent.com>
31691
31692         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
31693         unmatched right bracket, rather than kludging it with an extra,
31694         falsely-matching quote in a comment.  Patch by Akim Demaille.
31695
31696 2001-06-11  Jim Meyering  <meyering@lucent.com>
31697
31698         * lib/regex.c: Update from GNU libc.
31699
31700 2001-05-27  Jim Meyering  <meyering@lucent.com>
31701
31702         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
31703         Check for ut_type in struct utmp.
31704
31705 2001-05-27  Jim Meyering  <meyering@lucent.com>
31706
31707         * lib/readutmp.h (UT_TYPE): Define.
31708
31709 2001-05-24  Jim Meyering  <meyering@lucent.com>
31710
31711         * lib/argmatch.c: Include "quote.h".
31712         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
31713         quote function.  Reported by Göran Uddeborg.
31714
31715 2001-05-22  Jim Meyering  <meyering@lucent.com>
31716
31717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
31718         now that we use the package-supplied version unconditionally.
31719         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
31720
31721 2001-05-21  Jim Meyering  <meyering@lucent.com>
31722
31723         * m4/regex.m4: Change a couple backticks to single quotes to avoid
31724         shell syntax errors.
31725
31726 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
31727
31728         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
31729
31730 2001-05-20  Paul Eggert  <eggert@twinsun.com>
31731
31732         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
31733         Don't bother to check library strftime, since
31734         we'll be using our own my_strftime function anyway.
31735         Define my_strftime instead of strftime.
31736
31737 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
31738
31739         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
31740         which is not yet declared.
31741
31742 2001-05-15  Jim Meyering  <meyering@lucent.com>
31743
31744         * m4/regex.m4: Use proper quoting so brackets appear in the test
31745         program.
31746         Reported by, and with help from, Bruno Haible.
31747
31748 2001-05-13  Jim Meyering  <meyering@lucent.com>
31749
31750         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
31751         undefined.
31752
31753 2001-05-11  Paul Eggert  <eggert@twinsun.com>
31754
31755         dirname code cleanup.  base_name now behaves more compatibly
31756         with POSIX basename when given file names that have trailing
31757         slashes, and similarly for dir_name.  Add new primitives
31758         base_len and dir_len.  Put the directory-name-related decls
31759         into dirname.h.
31760
31761         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
31762         * lib/backupfile.c (base_name): Likewise.
31763         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
31764         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
31765         * lib/makepath.c (strip_trailing_slashes): Likewise.
31766         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
31767         ISSLASH): Likewise.
31768         * lib/rename.c (strip_trailing_slashes): Likewise.
31769         * lib/same.c (base_name): Likewise.
31770         * lib/stripslash.c (ISSLASH): Likewise.
31771
31772         * lib/addext.c: Include <dirname.h> after size_t is defined.
31773         * lib/backupfile.c: Likewise.
31774
31775         * lib/addext.c (addext): Use base_len to trim redundant
31776         trailing slashes instead of doing it ourselves.
31777         But do not trim the last slash if it is not redundant.
31778
31779         * lib/backupfile.c (find_backup_file_name,
31780         max_backup_version): Use base_len instead of rolling it ourselves.
31781         Handle the case of "" and (on DOS) "C:" correctly.
31782
31783         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
31784         needed. Include <string.h>, <dirname.h>.
31785         (base_name): Allow file names ending in slashes, other than names
31786         that are all slashes.  In this case, return the basename followed
31787         by the slashes.  This is more general, and can be used in places
31788         where the original base_name purposely had an assertion failure.
31789         (base_len): New function.
31790
31791         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
31792         Do not include <assert.h>; no longer needed.
31793         Include xalloc.h.
31794         (memrchr): Remove decl.
31795         (dir_name_r): Remove.
31796         (dir_len): Renamed from dirlen.  All callers changed.
31797         Rewrite in terms of base_name, for simplicity and consistency.
31798         (dir_name): Never return NULL.  All callers changed.
31799         Do not include <stdlib.h> in test program; no longer needed.
31800         return 0; is fine for test program.
31801
31802         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
31803         New macros.
31804         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
31805
31806         * lib/path-concat.c (path_concat): Use base_len to compute
31807         base length, not strlen; this means we cannot rely on memcpy
31808         to null-terminate.
31809
31810         * lib/same.c (STREQ): Remove.
31811         (same_name): Handle the case where the basename ends in trailing '/'.
31812
31813         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
31814         a slash was stripped.  Do not strip the last slash after a
31815         file system prefix.
31816
31817 2001-05-11  Paul Eggert  <eggert@twinsun.com>
31818
31819         * lib/Makefile.am (libfetish_a_SOURCES):
31820         Add strftime.c, since we now compile it on all hosts.
31821
31822         * lib/strftime.c (my_strftime):
31823         Define to nstrftime if emacs, but only if my_strftime is not defined.
31824         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
31825         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
31826         Add one more extra argument: a nanoseconds value.
31827         All uses changed.
31828         (ns): New macro.
31829         (my_strftime function): Add %N format.
31830         (emacs_strftimeu): Renamed from emacs_strftime,
31831         with extra ut argument.
31832
31833 2001-05-09  Paul Eggert  <eggert@twinsun.com>
31834
31835         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
31836
31837 2001-04-21  Jim Meyering  <meyering@lucent.com>
31838
31839         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
31840         doesn't interfere.
31841
31842 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
31843
31844         * m4/ftruncate.m4: Check for chsize.
31845         Link with ftruncate.o unconditionally if ftruncate is missing.
31846         This was required when cross-compiling to i586-mingw32msvc.
31847
31848 2001-04-08  Jim Meyering  <meyering@lucent.com>
31849
31850         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
31851         recomputed; that's necessary when the offset spans a DST transition.
31852         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
31853
31854 2001-04-02  Jim Meyering  <meyering@lucent.com>
31855
31856         * lib/regex.h, regex.c: Update from GNU libc.
31857
31858 2001-03-24  Jim Meyering  <meyering@lucent.com>
31859
31860         * m4/jm-macros.m4: Require autoconf-2.49d.
31861
31862 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
31863
31864         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
31865
31866 2001-03-19  Paul Eggert  <eggert@twinsun.com>
31867
31868         * lib/version-etc.c (version_etc_copyright): Update to 2001.
31869
31870 2001-03-17  Jim Meyering  <meyering@lucent.com>
31871
31872         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
31873         now that the version in autoconf is equivalent.
31874         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
31875
31876         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
31877         Suggestion from Akim Demaille.
31878
31879         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
31880         (jm_PREREQ_TEMPNAME): New function.
31881
31882 2001-03-16  Paul Eggert  <eggert@twinsun.com>
31883
31884         * lib/tempname.c (uint64_t): Define to uintmax_t if
31885         not defined, and if UINT64_MAX is not defined.
31886         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
31887         Reported by John David Anglin.
31888
31889 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
31890
31891         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
31892         resolve alias if codeset is empty.
31893         * lib/config.charset (BeOS): Use wildcard syntax.
31894
31895 2001-03-13  Jim Meyering  <meyering@lucent.com>
31896
31897         * lib/path-concat.c (path_concat)
31898         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
31899         concatenating e.g., `C:' and `foo'.
31900         From Bruno Haible.
31901
31902 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
31903
31904         * lib/localcharset.c (locale_charset): Don't use
31905         setlocale(LC_CTYPE,NULL). Don't return NULL.
31906         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
31907
31908 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
31909
31910         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
31911         support for DOS/DJGPP.
31912
31913 2001-03-01  Paul Eggert  <eggert@twinsun.com>
31914
31915         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
31916         lacks mkstemp.  Compile our own tempname.c if we compile our own
31917         mkstemp.c, as mkstemp relies on tempname.
31918
31919 2001-03-01  Jim Meyering  <meyering@lucent.com>
31920
31921         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
31922         AH_VERBATIM really does output its argument verbatim.
31923
31924 2001-02-28  Paul Eggert  <eggert@twinsun.com>
31925
31926         * lib/Makefile.am (libfetish_a_SOURCES):
31927         Add dup-safer.c, fopen-safer.c.
31928         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
31929
31930         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
31931         * lib/unistd-safer.h: New files.
31932
31933 2001-02-25  Paul Eggert  <eggert@twinsun.com>
31934
31935         The mkstemp replacement is taken from glibc 2.2.2, with some
31936         portability fixes for use outside glibc, as follows:
31937
31938         * lib/tempname.c (struct_stat64): New macro.
31939         (direxists, __gen_tempname): Use it.
31940         This avoids a portability problem with Solaris 8.
31941
31942         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
31943         (<stddef.h>, <stdint.h>, <string.h>):
31944         Include only if STDC_HEADERS || _LIBC.
31945         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
31946         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
31947         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
31948         (__set_errno): Define this macro if <errno.h> doesn't.
31949         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
31950         Define these macros if <stdio.h> doesn't.
31951         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
31952         Define these macros if <sys/stat.h>
31953         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
31954         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
31955         __xstat64): Define if not _LIBC.
31956         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
31957         (__gen_tempname): Invoke gettimeofday only if
31958         HAVE_GETTIMEOFDAY || _LIBC;
31959         otherwise, fall back on plain "time".
31960         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
31961
31962         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
31963
31964         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
31965
31966 2001-02-18  Paul Eggert  <eggert@twinsun.com>
31967
31968         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
31969
31970 2001-02-17  Paul Eggert  <eggert@twinsun.com>
31971
31972         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
31973         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
31974         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
31975         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
31976
31977 2001-02-17  Paul Eggert  <eggert@twinsun.com>
31978
31979         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
31980         Remove workaround macros for hosts that have mbrtowc but not
31981         mbstate_t, as we now insist on proper declarations for both
31982         before using mbrtowc.
31983
31984 2001-02-17  Jim Meyering  <meyering@lucent.com>
31985
31986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
31987         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
31988         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
31989         UnixWare 7.1.1.
31990
31991         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
31992         rather than AC_CACHE_VAL.
31993
31994 2001-02-17  Jim Meyering  <meyering@lucent.com>
31995
31996         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
31997         around included file name.
31998
31999         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
32000
32001         * lib/strftime.c: Update from GNU libc (the only changes were to
32002         comments).
32003
32004 2001-02-17  Jim Meyering  <meyering@lucent.com>
32005
32006         * lib/regex.c: Update from libc.
32007
32008 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
32009
32010         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
32011         clash.
32012
32013 2001-02-16  Paul Eggert  <eggert@twinsun.com>
32014
32015         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
32016         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
32017         Reported by Mark Hounschell via Paul Eggert.
32018
32019 2001-02-07  Jim Meyering  <meyering@lucent.com>
32020
32021         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
32022
32023 2001-02-05  Jim Meyering  <meyering@lucent.com>
32024
32025         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
32026         it includes the patch required for `large file' support with at least
32027         HP-UX's 10.20 /bin/cc.
32028
32029 2001-02-03  Jim Meyering  <meyering@lucent.com>
32030
32031         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
32032         AS_IF, now that it works once again (mysteriously).
32033         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
32034
32035 2001-01-30  Jim Meyering  <meyering@lucent.com>
32036
32037         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
32038         * m4/chown.m4: Rename conftestchown to conftest.chown.
32039         * m4/rename.m4: s/conftestdir/conftest.d1/ and
32040         s/conftestdir2/conftest.d2/.
32041         * m4/utimes.m4: s/conftestdata/conftest.data/
32042         Inspired by Pavel Roskin's change in autoconf.
32043
32044 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
32045
32046         * lib/config.charset: Update for FreeBSD 4.2.
32047
32048 2001-01-27  Jim Meyering  <meyering@lucent.com>
32049
32050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
32051         a use of AS_IF.
32052         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
32053
32054 2001-01-26  Jim Meyering  <meyering@lucent.com>
32055
32056         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
32057         quotearg.c includes it.
32058
32059 2001-01-26  Jim Meyering  <meyering@lucent.com>
32060
32061         * lib/quotearg.c: Include stddef.h.
32062         * lib/quote.c: Include stddef.h.
32063         Reported by Axel Kittenberger.
32064
32065         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
32066         line in double quotes so that it evokes a better diagnostic.
32067         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
32068         Reported by Axel Kittenberger.
32069
32070 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
32071
32072         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
32073         as if it was a `charset'.
32074
32075 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
32076
32077         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
32078         has const.
32079
32080 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
32081
32082         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
32083         to avoid a warning.  Add back 'const' to inptr.
32084
32085 2001-01-20  Jim Meyering  <meyering@lucent.com>
32086
32087         Be sure that headers are checked before used in code compiled
32088         for the type checks.
32089         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
32090         In place of that, invoke jm_CHECK_ALL_TYPES.
32091         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
32092         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
32093         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
32094         The check for ssize_t was mistakenly run before the test for unistd.h.
32095
32096         The configure-time check for stdbool.h was missing.
32097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
32098         (jm_PREREQ_HASH): New function.
32099
32100 2001-01-17  Jim Meyering  <meyering@lucent.com>
32101
32102         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
32103         for autoconf-2.49c.
32104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
32105
32106 2001-01-16  Jim Meyering  <meyering@lucent.com>
32107
32108         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
32109         From Bruno Haible.
32110
32111 2001-01-14  Jim Meyering  <meyering@lucent.com>
32112
32113         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
32114         foo and bar.  Create conftestdir/ in the script, not in the C code.
32115         Remove directories in the script, not in the C code.
32116         Remove conftestdir{,2} before trying to create the directory.
32117         Make the entire configure script fail if the mkdir fails.
32118
32119 2001-01-14  Jim Meyering  <meyering@lucent.com>
32120
32121         * lib/rename.c: New file.  From Volker Borchert.
32122         Include stdlib.h, string.h or strings.h, and xalloc.h.
32123         Use strip_trailing_slashes rather than open-coding it.
32124
32125 2001-01-03  Paul Eggert  <eggert@twinsun.com>
32126
32127         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
32128
32129 2001-01-03  Jim Meyering  <meyering@lucent.com>
32130
32131         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
32132         of local `inptr' to avoid warning with some system declarations of
32133         iconv.
32134
32135 2001-01-02  Volker Borchert  <bt@teknon.de>
32136
32137         * m4/rename.m4: New file.
32138         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
32139
32140 2001-01-01  Jim Meyering  <meyering@lucent.com>
32141
32142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
32143         even on systems with utmpx.h.  It's necessary for the declaration of
32144         utmp's ut_user member.  Reported by Andreas Jaeger.
32145
32146         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
32147         available. They are required for the declarations of getgrgid and
32148         getpwuid resp.
32149         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
32150         Reported by Andreas Jaeger.
32151
32152 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
32153
32154         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
32155         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
32156         so `make install' also works in VPATH builds.
32157
32158 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
32159
32160         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
32161         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
32162         can be used in subdirectories.
32163
32164 2000-12-29  Paul Eggert  <eggert@twinsun.com>
32165
32166         * lib/modechange.c: Do not assume that mode_t uses the
32167         traditional octal encoding.  E.g. "chmod 1 FOO" should set
32168         the other-execute bit of FOO even if S_IXOTH != 1.
32169
32170         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
32171         WOTH, XOTH, ALLM): New macros.
32172         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
32173          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
32174         Use them.
32175         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
32176         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
32177         (mode_compile):
32178         No need to use uintmax_t; unsigned long is long enough.
32179         Don't bother to get suffix since we don't use it.
32180
32181 2000-12-26  Jim Meyering  <meyering@lucent.com>
32182
32183         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
32184         better with autoheader.
32185
32186 2000-12-24  Jim Meyering  <meyering@lucent.com>
32187
32188         * lib/hash.c (is_prime): Return explicit boolean values.
32189         (hash_get_first): Return NULL to appease Irix5.6's 89.
32190         Reported by Nelson Beebe.
32191
32192 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
32193
32194         * lib/localcharset.c (locale_charset): Add support for Win32.
32195
32196 2000-12-18  Paul Eggert  <eggert@twinsun.com>
32197
32198         * lib/physmem.h, lib/physmem.c: New files.
32199
32200         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
32201         (noinst_HEADERS): Add physmem.h.
32202
32203         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
32204         't' for compatibility with Solaris 8 sort.
32205
32206 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
32207
32208         * lib/config.charset: Add support for BeOS.
32209
32210 2000-12-17  Jim Meyering  <meyering@lucent.com>
32211
32212         * m4/dos.m4 (jm_AC_DOS): New file and macro.
32213         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
32214
32215 2000-12-16  Jim Meyering  <meyering@lucent.com>
32216
32217         This bug had a serious impact on chown: `chown N:M FILE' (for integer
32218         N and M) would have treated it like `chown N:N FILE'.
32219
32220         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
32221
32222 2000-12-16  Jim Meyering  <meyering@lucent.com>
32223
32224         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
32225         SHELLS_FILE to a file name that's useful on djgpp systems.
32226         Include stdlib.h.
32227         (ADDITIONAL_DEFAULT_SHELLS): Define.
32228         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
32229         Based mostly on a patch from Prashant TR.
32230
32231 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
32232
32233         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
32234         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
32235         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
32236
32237 2000-12-08  Andreas Schwab  <schwab@suse.de>
32238
32239         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
32240         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
32241
32242 2000-12-07  Jim Meyering  <meyering@lucent.com>
32243
32244         * lib/stripslash.c (ISSLASH): Define.
32245         (strip_trailing_slashes): Use ISSLASH rather than comparing against
32246         `/'.
32247         From Prashant TR.
32248
32249         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
32250         (dir_name_r): Declare this function as static.
32251         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
32252         manifest itself on a name containing a mix of slashes and
32253         backslashes.
32254         Make this function work with names starting with a DOS-style
32255         drive letter and colon prefix.
32256         (dir_name): Append `.' if necessary.
32257         Based mostly on patches from Prashant TR and Eli Zaretskii.
32258
32259         * lib/dirname.h (dir_name_r): Remove prototype.
32260
32261 2000-12-06  Paul Eggert  <eggert@twinsun.com>
32262
32263         * m4/off_t-format.m4: Remove this file.
32264         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
32265
32266 2000-12-06  Jim Meyering  <meyering@lucent.com>
32267
32268         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
32269         replacement strtoull, we may well need the replacement strtoul, too.
32270         Check for declarations of strtoul and strtoull.
32271         Check for strtol.  Mainly as a cue to cause automake to include
32272         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
32273         Check for limits.h -- strtol.c needs it.
32274
32275 2000-12-05  Jim Meyering  <meyering@lucent.com>
32276
32277         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
32278
32279 2000-12-04  Jim Meyering  <meyering@lucent.com>
32280
32281         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
32282         Also include memory.h, stdlib.h, unistd.h if appropriate.
32283         Reported by Andreas Jaeger (conflicting declaration of malloc).
32284
32285 2000-12-02  Jim Meyering  <meyering@lucent.com>
32286
32287         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
32288         * m4/jm-macros.m4 (jm_MACROS): require it.
32289
32290 2000-12-02  Jim Meyering  <meyering@lucent.com>
32291
32292         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
32293
32294 2000-12-01  Paul Eggert  <eggert@twinsun.com>
32295
32296         * lib/memrchr.c: Include <config.h> before any system include file.
32297
32298 2000-11-30  Jim Meyering  <meyering@lucent.com>
32299
32300         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
32301
32302 2000-11-30  Jim Meyering  <meyering@lucent.com>
32303
32304         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
32305
32306 2000-11-29  Paul Eggert  <eggert@twinsun.com>
32307
32308         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
32309
32310 2000-11-26  Jim Meyering  <meyering@lucent.com>
32311
32312         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
32313
32314 2000-11-22  Paul Eggert  <eggert@twinsun.com>
32315
32316         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
32317         size of (size_t) -1; it's not portable.
32318
32319 2000-11-17  Jim Meyering  <meyering@lucent.com>
32320
32321         * lib/strstr.c: Update from GNU libc.
32322
32323 2000-11-17  Akim Demaille  <akim@epita.fr>
32324
32325         * lib/obstack.h: Formatting changes.
32326         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
32327         prevent type checking.
32328         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
32329         cast the value to (void *): assigning a `foo *' to a `void *'
32330         variable is valid.
32331         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
32332
32333 2000-11-16  Jim Meyering  <meyering@lucent.com>
32334
32335         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
32336
32337 2000-11-11  Jim Meyering  <meyering@lucent.com>
32338
32339         * lib/error.c: Add a couple #includes, merging from GNU libc version.
32340
32341 2000-11-10  Jim Meyering  <meyering@lucent.com>
32342
32343         * lib/obstack.h: Update from GNU libc.
32344         * lib/obstack.c: Likewise.
32345
32346 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
32347
32348         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
32349
32350 2000-11-06  Paul Eggert  <eggert@twinsun.com>
32351
32352         * lib/getusershell.c (setusershell): Use rewind rather than
32353         fseek/fseeko, to avoid configuration hassles with fseeko.
32354         Don't bother opening SHELLS_FILE if shellstream is NULL;
32355         it's not necessary.
32356
32357 2000-11-05  Jim Meyering  <meyering@lucent.com>
32358
32359         * lib/makepath.h (make_dir): Declare.
32360         * lib/makepath.c (make_dir): Remove `static' attribute.
32361         Tweak a comment.
32362
32363 2000-11-04  Jim Meyering  <meyering@lucent.com>
32364
32365         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
32366
32367 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
32368
32369         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
32370         last one in a bucket, advance to the next bucket.
32371
32372 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
32373
32374         * lib/fnmatch.c: Do not comment out all the code if we are using
32375         the GNU C library, because in some cases we are replacing buggy
32376         code in the GNU C library itself.
32377
32378 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
32379
32380         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
32381         (regex_compile): Catch bogus \(\1\).
32382
32383 2000-10-30  Paul Eggert  <eggert@twinsun.com>
32384
32385         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
32386         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
32387         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
32388
32389 2000-10-30  Paul Eggert  <eggert@twinsun.com>
32390
32391         * lib/error.h, getline.h, modechange.h:
32392         Remove "2000" from Copyright line, as the file hasn't been
32393         changed this year other than in the copyright notice.
32394
32395         * lib/xalloc.h: Add "2000" to Copyright line, as this file
32396         was changed this year.
32397
32398 2000-10-29  Jim Meyering  <meyering@lucent.com>
32399
32400         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
32401         renaming.
32402         * m4/ls-mntd-fs.m4: Likewise
32403
32404 2000-10-29  Jim Meyering  <meyering@lucent.com>
32405
32406         * lib/xstat.in: Fix grammar in comment.
32407
32408 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
32409
32410         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
32411         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
32412         doesn't define __restrict_arr.
32413
32414 2000-10-28  Jim Meyering  <meyering@lucent.com>
32415
32416         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
32417         (jm_PREREQ_MEMCHR): New function.
32418
32419 2000-10-28  Jim Meyering  <meyering@lucent.com>
32420
32421         * lib/memchr.c: Update from libc.
32422         Adjust for portability:
32423         [HAVE_STDLIB_H]: Include stdlib.h.
32424         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
32425         Undef __memchr, too.
32426         [!weak_alias]: Define __memchr to memchr.
32427
32428         * lib/regex.c: Update from libc.
32429         * lib/regex.h: Likewise.
32430         * lib/getopt1.c: Likewise.
32431         * lib/memcmp.c: Likewise.
32432
32433         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
32434         Avoid using fseek, when possible -- it's broken by design.
32435         Patch by Ulrich Drepper.
32436
32437 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
32438
32439         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
32440         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
32441         Giving in to popular pressure to shut up the compiler with casts.
32442
32443 2000-10-26  Jim Meyering  <meyering@lucent.com>
32444
32445         * lib/strftime.c: Update from libc.
32446
32447 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
32448
32449         * regex.c: More `unsigned char' -> `re_char' changes.
32450         Also change several `int' into `re_wchar_t'.
32451         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
32452         (PUSH_FAILURE_POINTER): Don't cast any more.
32453         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
32454         We want GCC to complain, since this piece of code makes
32455         re_match non-reentrant, which *should* be fixed.
32456         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
32457         (EXTEND_BUFFER): Use RETALLOC.
32458         (SET_LIST_BIT): Don't cast.
32459         (re_wchar_t): New type.
32460         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
32461         that those two functions will always properly return.
32462         (IMMEDIATE_QUIT_CHECK): Cast to void.
32463         (analyse_first): Use recursion rather than an explicit stack.
32464         (re_compile_fastmap): Can't fail anymore.
32465         (re_search_2): Don't check re_compile_fastmap for failure.
32466         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
32467         Now also sets the new value (passed in a new argument).
32468         (re_match_2_internal): Use it.
32469         Also, use a new var `reg' of type size_t when looping through regs
32470         rather than reuse the inappropriate `mcnt'.
32471
32472 2000-10-25  Jim Meyering  <meyering@lucent.com>
32473
32474         * lib/obstack.c: Update from libc.
32475
32476 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
32477
32478         * regex.c (regex_compile): Change the way of handling a range from
32479         a char less than 256 to a char not less than 256.
32480
32481 2000-10-24  Andrew Innes  <andrewi@gnu.org>
32482
32483         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
32484         NT-Emacs only.
32485         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
32486         so that re_search functions only quit when callers expect them to.
32487
32488 2000-10-23  Jim Meyering  <meyering@lucent.com>
32489
32490         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
32491         wrong.  That set_locale call must not have any side effects.
32492         From Paul Eggert.
32493
32494 2000-10-22  Jim Meyering  <meyering@lucent.com>
32495
32496         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
32497         [CYCLIC]: Remove now-unused definition.
32498
32499         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
32500         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
32501         Suggestion from Ulrich Drepper.
32502
32503 2000-10-21  Jim Meyering  <meyering@lucent.com>
32504
32505         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
32506         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
32507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
32508
32509 2000-10-21  Jim Meyering  <meyering@lucent.com>
32510
32511         * lib/dirname.c (memrchr): Declare if necessary.
32512         (dir_name): Remove the restriction that there be no
32513         trailing slashes.  Now, this code skips past them, effectively
32514         ignoring them.
32515         [TEST_DIRNAME] (main): New unit tests.
32516
32517         * lib/memrchr.c: New file from GNU libc.
32518         Undef __memrchr, too.
32519         [!weak_alias]: Define __memrchr to memrchr.
32520         Guard weak_alias use with `#ifdef weak_alias'.
32521
32522 2000-10-21  Jim Meyering  <meyering@lucent.com>
32523
32524         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
32525         (dir_name): Use dir_name_r.
32526         * lib/dirname.h (dir_name_r): Declare it.
32527
32528 2000-10-17  Jim Meyering  <meyering@lucent.com>
32529
32530         * lib/quote.h (PARAMS): Define and use.
32531         Reported by Akim Demaille.
32532
32533         * lib/getopt.c: Update from libc.
32534
32535 2000-10-16  Jim Meyering  <meyering@lucent.com>
32536
32537         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
32538         setlocale.
32539         From Jan Fedak.
32540
32541 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
32542
32543         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
32544
32545 2000-09-25  Jim Meyering  <meyering@lucent.com>
32546
32547         * lib/md5.h (rol): Define (from GnuPG).
32548
32549         * lib/sha.c: Give credit (GnuPG) where due.
32550         (M): Use rol rather than open-coding it.
32551         Add a FIXME comment.
32552
32553 2000-09-21  Jim Meyering  <meyering@lucent.com>
32554
32555         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
32556         Reported by Michael Stone.
32557
32558 2000-09-20  Jim Meyering  <meyering@lucent.com>
32559
32560         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
32561         (noinst_HEADERS): Add sha.h.
32562         Based on code from Scott G. Miller and from GnuPG.
32563
32564 2000-09-18  Jim Meyering  <meyering@lucent.com>
32565
32566         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
32567         LIBS. Otherwise, everyone ends up linking with -lelf for some
32568         configurations.
32569         Reported by Mike Stone.
32570
32571 2000-09-15  Jim Meyering  <meyering@lucent.com>
32572
32573         * lib/regex.c: Update from libc.
32574
32575 2000-09-10  Jim Meyering  <meyering@lucent.com>
32576
32577         * lib/getopt.c (_getopt_internal): Update from glibc.
32578
32579 2000-09-09  Jim Meyering  <meyering@lucent.com>
32580
32581         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
32582         think it should be used as a general replacement for isascii.
32583         * lib/fnmatch.c: Likewise.
32584         * lib/mbswidth.c: Likewise
32585         * lib/regex.c: Likewise.
32586
32587         Don't use atoi.
32588         * lib/userspec.c: Include sys/param.h and limits.h.
32589         Include xstrtol.h.
32590         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
32591         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
32592         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
32593         UID, GID.  Check range.
32594
32595 2000-09-06  Jim Meyering  <meyering@lucent.com>
32596
32597         * lib/getopt.c (_getopt_internal): Update from glibc.
32598
32599 2000-08-30  Jim Meyering  <meyering@lucent.com>
32600
32601         * lib/strftime.c: Merge in changes from GNU libc.
32602
32603 2000-08-26  Jim Meyering  <meyering@lucent.com>
32604
32605         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
32606         * m4/fpending.m4: New file.
32607
32608 2000-08-26  Jim Meyering  <meyering@lucent.com>
32609
32610         * lib/closeout.c: Include "__fpending.h".
32611         (close_stdout_status): Return right away if there's nothing to flush.
32612
32613         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
32614         * lib/__fpending.c: New file.
32615         * lib/__fpending.h: New file.
32616
32617 2000-08-20  Jim Meyering  <meyering@lucent.com>
32618
32619         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
32620         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
32621         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
32622
32623 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
32624
32625         Improve fileutils installation on systems where running
32626         programs (like install) can't be unlinked.
32627         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
32628         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
32629
32630 2000-08-07  Paul Eggert  <eggert@twinsun.com>
32631
32632         Standardize on "memory exhausted" instead of "Memory exhausted"
32633         or "virtual memory exhausted".
32634         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
32635         "virtual memory exhausted".
32636         * lib/same.c (same_name): Invoke xalloc_die instead of printing
32637         our own message.
32638         * lib/userspec.c (parse_user_spec): Likewise.
32639         * lib/bumpalloc.h: comment fix
32640         * lib/same.c, userspec.c: Include xalloc.h.
32641
32642         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
32643         not char *const and pointing to a constant array.
32644         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
32645         (xrealloc): Comment fix.
32646
32647         * lib/userspec.c (parse_user_spec):
32648         Don't translate a message until just before returning,
32649         to avoid unnecessary translation.
32650
32651 2000-08-07  Jim Meyering  <meyering@lucent.com>
32652
32653         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
32654         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
32655         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
32656         getgroups.c, gethostname.c, getopt.h, group-member.c,
32657         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
32658         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
32659         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
32660         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
32661         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
32662         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
32663         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
32664         yesno.c: Back out Copyright date changes for each file with no change
32665         this year.  This eases coordination with other programs using the same
32666         source code modules.  From Paul Eggert.
32667
32668 2000-08-06  Paul Eggert  <eggert@twinsun.com>
32669
32670         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
32671         not char, for compatibility with glibc 2.1.3 strftime.c.
32672
32673 2000-08-03  Greg McGary  <greg@mcgary.org>
32674
32675         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
32676         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
32677         (EXTEND_BUFFER): Use them.
32678
32679 2000-08-01  Jim Meyering  <meyering@lucent.com>
32680
32681         * lib/dirname.c (ISSLASH): Define.
32682         (BACKSLASH_IS_PATH_SEPARATOR): Define.
32683         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
32684         both `\' and `/' may be use as path separators.
32685         Based on a patch from Prashant TR.
32686
32687 2000-07-31  Paul Eggert  <eggert@twinsun.com>
32688
32689         * lib/quotearg.c (quotearg_n_options): Don't make the initial
32690         slot vector a constant, since it might get modified.
32691
32692 2000-07-31  Jim Meyering  <meyering@lucent.com>
32693
32694         * lib/xmalloc.c: Use `virtual memory exhausted', not
32695         `Memory exhausted'.
32696         * lib/obstack.c (print_and_abort): Likewise.
32697
32698 2000-07-30  Paul Eggert  <eggert@twinsun.com>
32699
32700         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
32701         buffer, so that the caller can always quote one small
32702         component of a "memory exhausted" message in slot 0.
32703         From a suggestion by Jim Meyering.
32704
32705 2000-07-30  Jim Meyering  <meyering@lucent.com>
32706
32707         * lib/makepath.c (make_path): Quote the other instance, too.
32708
32709         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
32710         (STATIC_BUF_SIZE): Define.
32711         (quotearg_n_options): Use only statically allocated storage when
32712         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
32713         than STATIC_BUF_SIZE.
32714
32715 2000-07-29  Jim Meyering  <meyering@lucent.com>
32716
32717         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
32718         * lib/dirname.c (dir_name): Likewise.
32719
32720         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
32721         `/'.
32722
32723         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
32724         (dir_name): Assert that there are no trailing slashes.
32725
32726 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
32727
32728         * lib/mbswidth.h (mbswidth): Add a flags argument.
32729         (mbswidth): New declaration.
32730         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
32731         * lib/mbswidth.c (mbswidth): Add a flags argument.
32732         (mbsnwidth): New function.
32733
32734 2000-07-24  Jim Meyering  <meyering@lucent.com>
32735
32736         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
32737
32738 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32739
32740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
32741
32742 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32743
32744         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
32745         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
32746         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
32747         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
32748         invoke multibyte primitives.
32749
32750 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32751
32752         * lib/quotearg.c:
32753         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
32754         so that mbstate_t is always defined.
32755
32756         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
32757         be 1 in at least one GCC installation, and this configuration
32758         error is likely to be common.  Ignoring MB_LEN_MAX hurts
32759         performance on hosts that have mbrtowc but have only unibyte
32760         locales, but I assume these hosts are rare.
32761
32762 2000-07-23  Paul Eggert  <eggert@twinsun.com>
32763
32764         * lib/mbswidth.c (_XOPEN_SOURCE):
32765         Don't define; this causes problems on Solaris 7.
32766         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
32767
32768 2000-07-23  Jim Meyering  <meyering@lucent.com>
32769
32770         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
32771         too: getgrgid, getpwuid, getuid.
32772
32773 2000-07-23  Jim Meyering  <meyering@lucent.com>
32774
32775         * lib/basename.c (base_name): Add an assertion.
32776
32777 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
32778
32779         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
32780         shadow its mbsinit function.
32781
32782 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
32783
32784         * lib/mbswidth.h: New file.
32785         * lib/mbswidth.c: New file.
32786         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
32787         (noinst_HEADERS): Add mbswidth.h.
32788
32789 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
32790
32791         * lib/config.charset: Add support for FreeBSD. Improve support for
32792         HP-UX and IRIX 6.
32793
32794 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
32795
32796         * m4/mbswidth.m4: New file.
32797         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
32798
32799 2000-07-15  Jim Meyering  <meyering@lucent.com>
32800
32801         * lib/makepath.c: Include quote.h.
32802         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
32803         corresponding argument in a `quote (...)' call.
32804         Give better diagnostics.
32805
32806         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
32807         (noinst_HEADERS): Add quote.h.
32808
32809         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
32810         from tar's src/misc.c.
32811         * lib/quote.h: New file.  Prototypes for same.
32812
32813 2000-07-14  Paul Eggert  <eggert@twinsun.com>
32814
32815         From a suggestion by Bruno Haible.
32816         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
32817         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
32818         to decide whether to define the BeOS workaround macro;
32819         this adjusts to the change to AC_MBSTATE_T.
32820
32821 2000-07-14  Jim Meyering  <meyering@lucent.com>
32822
32823         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
32824         jm_AC_TYPE_UINTMAX_T.
32825
32826 2000-07-13  Paul Eggert  <eggert@twinsun.com>
32827
32828         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
32829
32830         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
32831         quotearg_buffer_restyled): Add support for
32832         clocale_quoting_style.  Undo previous change to
32833         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
32834         and "{RIGHT QUOTATION MARK}" msgids.
32835
32836 2000-07-10  Paul Eggert  <eggert@twinsun.com>
32837
32838         From a suggestion by Bruno Haible.
32839         * m4/mbstate_t.m4 (AC_MBSTATE_T):
32840         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
32841         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
32842         and mbstate_t, to a single-part test that simply defines mbstate_t.
32843         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
32844         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
32845
32846 2000-07-10  Jim Meyering  <meyering@lucent.com>
32847
32848         * m4/strerror_r.m4: Mirror the correction made in autoconf.
32849
32850         * m4/gnu-source.m4: Output to confdefs.h directly.
32851         Suggestion from Akim Demaille.
32852
32853 2000-07-09  Paul Eggert  <eggert@twinsun.com>
32854
32855         The old behavior of quoting `like this' doesn't look good with
32856         newer, ISO-style fonts.  See:
32857         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
32858
32859         Instead, quote "like this" by default.  Let the translator
32860         tailor the locale-specific quoting behavior by providing
32861         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
32862
32863         * lib/quotearg.c (N_): New macro.
32864         (gettext_default): New function.
32865         (quotearg_buffer_restyled): Use
32866         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
32867         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
32868
32869 2000-07-09  Jim Meyering  <meyering@lucent.com>
32870
32871         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
32872         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
32873
32874         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
32875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
32876
32877 2000-07-09  Jim Meyering  <meyering@lucent.com>
32878
32879         * lib/Most files: Update copyright dates to include 2000.
32880
32881 2000-07-08  Jim Meyering  <meyering@lucent.com>
32882
32883         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
32884         if not defined.
32885         (xgethostname): Remove now-unnecessary #ifdef.
32886         Move declaration of `err' into loop where it's used.
32887
32888 2000-07-05  Paul Eggert  <eggert@twinsun.com>
32889         and Bruno Haible  <haible@clisp.cons.org>
32890
32891         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
32892         only if the test for an object-type mbstate_t fails.  This
32893         prevents us from mistakenly reporting that mbstate_t is a
32894         system object type after we "#define mbstate_t int" to work
32895         around its lack.
32896
32897 2000-07-05  Paul Eggert  <eggert@twinsun.com>
32898         and Bruno Haible  <haible@clisp.cons.org>
32899
32900         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
32901
32902 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32903
32904         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
32905         to strerror_r.
32906         Include <ctype.h> for use of isalpha.
32907
32908 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32909
32910         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
32911         by allocating a larger buffer. Test the gethostname return value for
32912         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
32913         returns an error and ENAMETOOLONG isn't defined.
32914
32915 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32916
32917         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
32918         dimension.
32919
32920 2000-07-04  Jim Meyering  <meyering@lucent.com>
32921
32922         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
32923         of the deprecated AC_CHECKING.
32924
32925 2000-07-04  Jim Meyering  <meyering@lucent.com>
32926
32927         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
32928         Reported by Bruno Haible.
32929
32930 2000-07-04  Jim Meyering  <meyering@lucent.com>
32931
32932         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
32933         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
32934         lacks mbrtowc.
32935
32936 2000-07-03  Paul Eggert  <eggert@twinsun.com>
32937
32938         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
32939         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
32940
32941 2000-07-03  Paul Eggert  <eggert@twinsun.com>
32942         and Bruno Haible  <haible@clisp.cons.org>
32943
32944         * lib/quotearg.c (mbrtowc):
32945         Assign to *pwc, and return 1 only if result is nonzero.
32946         (iswprint): Use ISPRINT when substituting our own mbrtowc.
32947
32948 2000-07-03  Jim Meyering  <meyering@lucent.com>
32949
32950         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
32951
32952 2000-07-03  Jim Meyering  <meyering@lucent.com>
32953
32954         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
32955         This is necessary to get a definition of e.g., UTMP_FILE on
32956         HP-UX 10.20.
32957         From Bob Proulx.
32958
32959 2000-07-02  Jim Meyering  <meyering@lucent.com>
32960
32961         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
32962
32963         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
32964         AC_LIBOBJ(function_name).
32965         * m4/chown.m4: Likewise.
32966         * m4/fnmatch.m4: Likewise.
32967         * m4/ftruncate.m4: Likewise.
32968         * m4/getgroups.m4: Likewise.
32969         * m4/getline.m4: Likewise.
32970         * m4/group-member.m4: Likewise.
32971         * m4/jm-macros.m4: Likewise.
32972         * m4/lstat.m4: Likewise.
32973         * m4/malloc.m4: Likewise.
32974         * m4/memcmp.m4: Likewise.
32975         * m4/nanosleep.m4: Likewise.
32976         * m4/putenv.m4: Likewise.
32977         * m4/realloc.m4: Likewise.
32978         * m4/regex.m4: Likewise.
32979         * m4/stat.m4: Likewise.
32980         * m4/strftime.m4: Likewise.
32981
32982 2000-07-02  Jim Meyering  <meyering@lucent.com>
32983
32984         * lib/quotearg.c (mbstate_t): Don't define here.
32985
32986 2000-07-02  Jim Meyering  <meyering@lucent.com>
32987
32988         * lib/nanosleep.c (SIGCONT): Define if not already defined.
32989
32990 2000-07-01  Jim Meyering  <meyering@lucent.com>
32991
32992         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
32993
32994 2000-07-01  Jim Meyering  <meyering@lucent.com>
32995
32996         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
32997         problem.
32998
32999 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
33000
33001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
33002         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
33003
33004 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
33005
33006         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
33007         per change in ../m4/ls-mntd-fs.m4.
33008         (read_filesystem_list): Ignore symbolic links.
33009
33010 2000-06-29  Jim Meyering  <meyering@lucent.com>
33011
33012         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
33013         for declaration of strcmp.
33014
33015         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
33016
33017         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
33018         Avoid warning by casting result to `char *' to remove `const'.
33019
33020 2000-06-28  Jim Meyering  <meyering@lucent.com>
33021
33022         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
33023         included by quotearg.c, for which we perform this test.  From
33024         Bruno Haible.
33025
33026 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
33027
33028         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
33029         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
33030         <utmpx.h> exists, put readutmp.o into LIBOBJS.
33031
33032 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
33033
33034         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
33035
33036 2000-06-26  Paul Eggert  <eggert@twinsun.com>
33037
33038         savedir now sets errno on failure and invokes xmalloc to get memory.
33039         Fix a couple of other minor bugs while we're at it.
33040
33041         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
33042         (NAMLEN): Remove macro.
33043         (malloc, realloc): Remove decls.
33044         (stpcpy): Likewise.
33045         ("xalloc.h"): Include.
33046         (NAME_SIZE_DEFAULT): New macro.
33047         (savedir): Use xmalloc / xrealloc to allocate memory.
33048         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
33049         Skip "" directory entries.
33050         Use strlen to calculate directory entry length, since the old method
33051         is rarely used these days and isn't worth supporting.
33052         Don't use a pointer after freeing it.
33053         Check for integer overflow when calculating allocation size.
33054         Use memcpy to copy entries, instead of stpcpy.
33055         Set errno properly when returning NULL.
33056         Check for readdir error.
33057
33058 2000-06-26  Jim Meyering  <meyering@lucent.com>
33059
33060         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
33061
33062 2000-06-25  Jim Meyering  <meyering@lucent.com>
33063
33064         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
33065         Linux header bug when _XOPEN_SOURCE is defined to 500.
33066
33067 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
33068
33069         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
33070         deficiency.
33071
33072 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
33073
33074         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
33075         Include xalloc.h.
33076         Don't include <stdlib.h>.  Don't declare malloc, realloc.
33077
33078 2000-06-24  Jim Meyering  <meyering@lucent.com>
33079
33080         * m4/strerror_r.m4: Revive this file -- to try out an experimental
33081         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
33082         for which strerror does return char*, but which lacks a conveniently
33083         accessible declaration of the function.  If the compile-test says
33084         strerror_r doesn't work, then resort to a `run'-test that works on
33085         BeOS and segfaults on DEC Unix.
33086
33087 2000-06-24  Jim Meyering  <meyering@lucent.com>
33088
33089         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
33090
33091 2000-06-23  Paul Eggert  <eggert@twinsun.com>
33092
33093         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
33094         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
33095
33096 2000-06-23  Paul Eggert  <eggert@twinsun.com>
33097
33098         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
33099         (mbrtowc, mbstate_t): Define substitutes if
33100         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
33101         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
33102         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
33103
33104 2000-06-23  Jim Meyering  <meyering@lucent.com>
33105
33106         * m4/afs.m4: Add missing AC_MSG_RESULT.
33107         Reported by Bruno Haible.
33108
33109         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
33110         Suggestion from Bruno Haible.
33111
33112 2000-06-23  Jim Meyering  <meyering@lucent.com>
33113
33114         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
33115
33116 2000-06-21  Jim Meyering  <meyering@lucent.com>
33117
33118         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
33119
33120 2000-06-21  Jim Meyering  <meyering@lucent.com>
33121
33122         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
33123         (noinst_HEADERS): Add getstr.h.
33124
33125         * lib/getline.c (getstr): Move into a separate file.
33126         * lib/getstr.c (getstr): New file, extracted from getline.c, with
33127         the following changes: new parameter, delim2; both delim[12]
33128         parameters have type `int', not `char'.  The latter would lose
33129         with 8-bit delimiters.
33130         * lib/getstr.h: New file.
33131
33132 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
33133
33134         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
33135         than 1024, return a memory chunk of least possible size, instead
33136         of size PATH_MAX + 2. In the loop, increment the size proportionally.
33137         Use free/xmalloc instead of xrealloc to avoid copying for very long
33138         paths.
33139
33140 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
33141
33142         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
33143         the empty string.
33144
33145 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
33146
33147         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
33148         address, not strdup.  Include <stdlib.h> and don't declare free().
33149
33150 2000-06-19  Jim Meyering  <meyering@lucent.com>
33151
33152         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
33153
33154 2000-06-18  Jim Meyering  <meyering@lucent.com>
33155
33156         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
33157
33158         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
33159         `checking whether...' message to be consistent with that of the
33160         lstat test.
33161
33162 2000-06-18  Jim Meyering  <meyering@lucent.com>
33163
33164         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
33165         Besides, these days every porting target provides a mkdir function.
33166
33167         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
33168         needed. (this snippet comes from src/system.h).
33169
33170 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
33171
33172         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
33173
33174 2000-06-15  Paul Eggert  <eggert@twinsun.com>
33175
33176         * lib/human.c (adjust_value): New function.
33177         (human_readable_inexact): Apply rounding style even when
33178         printing approximate values.
33179
33180 2000-06-14  Paul Eggert  <eggert@twinsun.com>
33181
33182         * lib/human.c (human_readable_inexact): Allow an input block
33183         size that is not a multiple of the output block size, and vice versa.
33184         Reported by Piergiorgio Sartor.
33185
33186 2000-06-14  Paul Eggert  <eggert@twinsun.com>
33187
33188         * lib/getdate.y (get_date): Apply relative times after time
33189         zone indicator, not before.  Reported by Todd A. Jacobs.
33190
33191 2000-06-13  Jim Meyering  <meyering@lucent.com>
33192
33193         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
33194
33195         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
33196
33197 2000-06-12  Paul Eggert  <eggert@twinsun.com>
33198
33199         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
33200
33201 2000-06-12  Jim Meyering  <meyering@lucent.com>
33202
33203         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
33204         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
33205         optional argument.
33206         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
33207         the optional argument, `lib'.
33208
33209 2000-06-08  Jim Meyering  <meyering@lucent.com>
33210
33211         * m4/largefile.m4: Remove file (now that it's part of autoconf).
33212
33213 2000-06-04  Paul Eggert  <eggert@twinsun.com>
33214
33215         Rewrite largefile configuration so that we don't need to run
33216         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
33217         AC_CANONICAL_HOST in configure.in -- jmm]
33218
33219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
33220         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
33221         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
33222         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
33223         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
33224         All uses changed.
33225         Instead of inspecting the output of getconf, try to compile the
33226         test program without and with the macro definition.
33227         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
33228         for getconf.  Instead, check for the needed flags by compiling
33229         test programs.
33230
33231 2000-06-04  Paul Eggert  <eggert@twinsun.com>
33232
33233         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
33234
33235 2000-06-04  Jim Meyering  <meyering@lucent.com>
33236
33237         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
33238         SunOS 4.1.4 for which gid_t is an unsigned type.
33239
33240 2000-06-03  Jim Meyering  <meyering@lucent.com>
33241
33242         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
33243         now that autoconf requires that.
33244
33245         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
33246         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
33247         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
33248
33249 2000-06-03  Jim Meyering  <meyering@lucent.com>
33250
33251         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
33252
33253 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
33254
33255         * m4/glibc21.m4: New file.
33256         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
33257
33258 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
33259
33260         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
33261         newer, don't install charset.alias.
33262         * lib/config.charset: Change the Linux/glibc rules so they become empty
33263         on glibc-2.1 or newer.
33264
33265 2000-06-02  Jim Meyering  <meyering@lucent.com>
33266
33267         * lib/mountlist.c: Back out last change.  Instead, do this...
33268         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
33269         me_dummy member using the same `ignore'-testing code.
33270         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
33271         fs_type strings.
33272         From Mark D. Roth.
33273
33274 2000-05-29  Jim Meyering  <meyering@lucent.com>
33275
33276         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
33277         mounts with the `ignore' attribute.  Based on a patch from
33278         Mark D. Roth.
33279
33280 2000-05-28  Jim Meyering  <meyering@lucent.com>
33281
33282         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
33283         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33284         * m4/stat.m4: Likewise.
33285         * m4/lstat.m4: Likewise.
33286         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
33287
33288         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
33289         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
33290
33291 2000-05-26  Jim Meyering  <meyering@lucent.com>
33292
33293         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
33294
33295 2000-05-24  Jim Meyering  <meyering@lucent.com>
33296
33297         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
33298         autoconf requires that.
33299         * m4/lib-check.m4: Likewise.
33300         * m4/jm-macros.m4: Likewise.
33301         * m4/strftime.m4: Likewise.
33302
33303         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
33304         AC_CHECK_DECLS, now that autoconf requires that.
33305
33306 2000-05-22  Jim Meyering  <meyering@lucent.com>
33307
33308         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33309         * m4/lstat.m4: Likewise.
33310
33311 2000-05-22  Jim Meyering  <meyering@lucent.com>
33312
33313         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
33314
33315 2000-05-20  Jim Meyering  <meyering@lucent.com>
33316
33317         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
33318         (jm_PREREQ): Use it.
33319
33320 2000-05-18  Jim Meyering  <meyering@lucent.com>
33321
33322         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
33323         back, too, since it may have been modified by allocate_entry.
33324         (hash_delete): Rewrite to use neither the assignment operator
33325         nor the comma operator in an if-expression.
33326
33327 2000-05-15  Paul Eggert  <eggert@twinsun.com>
33328
33329         * lib/closeout.c:
33330         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
33331         Remove; no longer needed.
33332         "quotearg.h": Add include.
33333         (file_name): Do not bother to explicitly initialize to NULL; it's less
33334         efficient on some hosts.
33335         (close_stdout_status): Remove test as to whether stdout was already
33336         closed; it breaks for the case "echo x | sort >&-".
33337         Quote file name colons.
33338         Do not assume that _("write error") lacks format strings.
33339
33340 2000-05-15  Jim Meyering  <meyering@lucent.com>
33341
33342         * lib/version-etc.c (version_etc_copyright): Update the copyright
33343         string used in all --version output.
33344
33345 2000-05-14  Jim Meyering  <meyering@lucent.com>
33346
33347         * lib/closeout.c (close_stdout_set_file_name): New function.
33348         (close_stdout_status): Use new file-scoped global.
33349         Return right away if fstat says the stdout file descriptor is invalid.
33350         * lib/closeout.h (close_stdout_set_file_name): Declare.
33351
33352 2000-05-10  Jim Meyering  <meyering@lucent.com>
33353
33354         * lib/closeout.c [default_exit_status]: New file-scoped variable.
33355         (close_stdout_set_status): New function.
33356         * lib/closeout.h (close_stdout_set_status): Declare.
33357
33358 2000-05-09  Jim Meyering  <meyering@lucent.com>
33359
33360         * m4/gettext.m4: Rename this...
33361         * m4/libintl.m4: ...to this.
33362
33363 2000-05-08  Jim Meyering  <meyering@lucent.com>
33364
33365         * lib/long-options.c: Don't include closeout.h.
33366         (parse_long_options): Don't call close_stdout for --version.
33367
33368 2000-05-06  Paul Eggert  <eggert@twinsun.com>
33369
33370         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
33371         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
33372         2.1.3 bug.  This avoids a clash when files like regex.c define
33373         _GNU_SOURCE.
33374
33375 2000-05-06  Jim Meyering  <meyering@lucent.com>
33376
33377         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
33378         (AC_REPLACE_FUNCS): Add strnlen.
33379
33380         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
33381         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
33382
33383         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
33384         AC_SEARCH_LIBS call for nanosleep.
33385         (LIB_NANOSLEEP): Set and AC_SUBST.
33386
33387 2000-05-06  Jim Meyering  <meyering@lucent.com>
33388
33389         * lib/strnlen.c: Undefine __strnlen and strnlen.
33390         [!weak_alias]: Define __strnlen to strnlen.
33391
33392         * lib/atexit.c: New file, from libiberty.
33393
33394 2000-05-06  Jim Meyering  <meyering@lucent.com>
33395
33396         * lib/closeout.c (close_stdout_status): Also check for errors on the
33397         stderr stream.
33398
33399 2000-05-05  Jim Meyering  <meyering@lucent.com>
33400
33401         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
33402         AC_SEARCH_LIBS call for clock_gettime.
33403         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
33404
33405         * m4/search-libs.m4: Update from autoconf.
33406
33407         su doesn't work on Solaris 2.6.
33408         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
33409         <shadow.h>.  Reported by Dragos Harabor.
33410
33411 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
33412
33413         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
33414         memcpy instead of xmalloc, xrealloc, path_concat.
33415         (locale_charset): Treat empty environment variables as absent.
33416         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
33417
33418 2000-05-04  Jim Meyering  <meyering@lucent.com>
33419
33420         * lib/getopt.c: Update from glibc.
33421         * lib/obstack.c: Likewise.
33422         * lib/obstack.h: Likewise.
33423         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
33424         file
33425
33426         * lib/regex.h: Likewise.
33427         * lib/strndup.c: Likewise.
33428         * lib/strnlen.c: New file, from glibc.
33429
33430 2000-05-03  Jim Meyering  <meyering@lucent.com>
33431
33432         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
33433
33434 2000-05-02  Paul Eggert  <eggert@twinsun.com>
33435
33436         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
33437         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
33438         compile-time test, rather than inspecting host and OS, to
33439         decide whether to define _LARGEFILE_SOURCE.
33440
33441 2000-05-01  Jim Meyering  <meyering@lucent.com>
33442
33443         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
33444
33445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
33446         Based on a patch from Bruno Haible.
33447
33448 2000-05-01  Jim Meyering  <meyering@lucent.com>
33449
33450         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
33451
33452 2000-04-29  Jim Meyering  <meyering@lucent.com>
33453
33454         * lib/path-concat.c: Declare strdup only if it's not defined.
33455         * lib/canon-host.c: Likewise.
33456
33457 2000-04-28  Jim Meyering  <meyering@lucent.com>
33458
33459         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
33460         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
33461         is included first, then limits.h is included by locale.h by libintl.h.
33462         From John David Anglin.
33463
33464 2000-04-25  Jim Meyering  <meyering@lucent.com>
33465
33466         * lib/makepath.c (S_IRWXUGO): Define.
33467         (make_path): Always perform explicit chmod if MODE specifies any
33468         of the `special' permission bits.  Prompted by a bug report against
33469         install from Mate Wierdl and Joost van Baal.
33470
33471 2000-04-18  Jim Meyering  <meyering@lucent.com>
33472
33473         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
33474         (jm_PREREQ): Use it.
33475
33476 2000-04-18  Jim Meyering  <meyering@lucent.com>
33477
33478         * lib/README: New file.
33479
33480         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
33481         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
33482
33483 2000-04-17  Jim Meyering  <meyering@lucent.com>
33484
33485         Get it right :-)
33486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
33487         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
33488         Suggestion from Akim Demaille.
33489
33490 2000-04-17  Jim Meyering  <meyering@lucent.com>
33491
33492         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
33493         the definition of it to rpl_strftime also defined-away the system's
33494         declaration.
33495
33496 2000-04-15  Jim Meyering  <meyering@lucent.com>
33497
33498         Use `C' to denote so-called `contiguous' files, the same way
33499         that tar does.
33500         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
33501         (ftypelet): Use S_ISCTG.
33502         From Michael Deutschmann.
33503
33504 2000-04-14  Jim Meyering  <meyering@lucent.com>
33505
33506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
33507         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
33508         clobbered.
33509
33510 2000-04-14  Jim Meyering  <meyering@lucent.com>
33511
33512         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
33513
33514 2000-04-13  Jim Meyering  <meyering@lucent.com>
33515
33516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
33517         AH_VERBATIM to insert required #ifndef into config.h.in.
33518         Suggestion from Akim Demaille.
33519
33520 2000-04-12  Jim Meyering  <meyering@lucent.com>
33521
33522         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
33523         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
33524         Christian Krackowizer.
33525
33526         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
33527         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
33528         (AC_SYS_LARGEFILE): Require.
33529         (AM_C_PROTOTYPES): Require.
33530
33531 2000-04-08  Jim Meyering  <meyering@lucent.com>
33532
33533         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
33534         names don't conflict.  Reported by Eli Zaretskii.
33535
33536 2000-04-07  Jim Meyering  <meyering@lucent.com>
33537
33538         * lib/putenv.c: Move inclusion of errno.h so it follows that of
33539         sys/types.h, to work around system header problems on AIX 3.2.5.
33540         From Bruno Haible.
33541
33542 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
33543
33544         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
33545         bug.  Deal with the different error behavior of Irix iconv.
33546
33547 2000-04-05  Paul Eggert  <eggert@twinsun.com>
33548
33549         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
33550         IRIX if the installer said otherwise.
33551
33552 2000-04-05  Jim Meyering  <meyering@lucent.com>
33553
33554         Portability tweaks required for ultrix4.3.
33555         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
33556         (jm_CHECK_DECLS): Add getutent to the list of functions.
33557         (_jm_DECL_HEADERS): Add utmpx.h.
33558         From John David Anglin.
33559
33560         * m4/strftime.m4: Back out the 2000-04-02 change.
33561         Instead of that change, simply undefine putenv in the test program.
33562
33563 2000-04-05  Jim Meyering  <meyering@lucent.com>
33564
33565         Portability tweaks required for ultrix4.3.
33566         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
33567         getutent.
33568         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
33569         * lib/canon-host.c: Declare strdup.
33570         * lib/path-concat.c: Likewise.
33571         From John David Anglin.
33572
33573 2000-04-04  Jim Meyering  <meyering@lucent.com>
33574
33575         Be more DOS 8.3-friendly.
33576         * lib/ref-add.sin: Renamed from ref-add.sed.in.
33577         * lib/ref-del.sin: Renamed from ref-del.sed.in.
33578         * lib/Makefile.am: Reflect renaming.
33579         Reported by Eli Zaretskii.
33580
33581         Use a temporary file name that won't clash with `charset.alias'
33582         in the DOS 8.3 name space.
33583         * lib/Makefile.am (charset_tmp): Define.
33584         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
33585         (uninstall-local): Likewise.
33586         Reported by Eli Zaretskii.
33587
33588 2000-04-03  Jim Meyering  <meyering@lucent.com>
33589
33590         * m4/gettext.m4: Fix typo in comment.
33591
33592         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
33593         textutils/configure.in).  Suggestion from Paul Eggert.
33594         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
33595
33596 2000-04-02  Paul Eggert  <eggert@twinsun.com>
33597
33598         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
33599         variable in the shell rather than using putenv, which isn't
33600         portable.  This avoids the configure-time inter-test dependency
33601         on the potentially-renamed putenv function.
33602
33603 2000-03-30  Paul Eggert  <eggert@twinsun.com>
33604
33605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
33606         before checking struct stat.st_blksize, so that
33607         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
33608
33609 2000-03-29  Paul Eggert  <eggert@twinsun.com>
33610
33611         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
33612         since strftime.c uses HAVE_STRFTIME to decide whether to use
33613         the underlying strftime.
33614
33615 2000-03-29  Paul Eggert  <eggert@twinsun.com>
33616
33617         * lib/time/strftime.c (my_strftime): Make sure we call the system
33618         strftime, not ourselves, when invoking the underlying strftime.
33619
33620 2000-03-24  Jim Meyering  <meyering@lucent.com>
33621
33622         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
33623         (charset_alias): Define.
33624         (install-exec-local): Factor out common code.
33625         (uninstall-local): Split lines longer than 80.
33626         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
33627         (SUFFIXES): Define.
33628         (.sed.in.sed): New rule.  Don't redirect directly to $@.
33629         (CLEANFILES): Add ref-add.sed and ref-del.sed.
33630
33631 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
33632
33633         * lib/config.charset: Output a line containing "Packages using this
33634         file".
33635         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
33636         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
33637         ref-del.sed): New rules.
33638
33639 2000-03-17  Jim Meyering  <meyering@lucent.com>
33640
33641         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
33642         Otherwise, include <strings.h>
33643
33644 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
33645
33646         * lib/unicodeio.c (utf8_wctomb): New function.
33647         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
33648         format instead of in UCS-4 with platform dependent endianness.
33649
33650 2000-03-10  Jim Meyering  <meyering@lucent.com>
33651
33652         * m4/lib-check.m4: Look for getspnam in -lgen, too.
33653         From Marco Franzen.
33654
33655 2000-03-07  Paul Eggert  <eggert@twinsun.com>
33656
33657         * lib/savedir.c (savedir): Work even if directory size is
33658         negative; this can happen with some screwy NFS configurations.
33659
33660 2000-03-06  Jim Meyering  <meyering@lucent.com>
33661
33662         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
33663         if it's NULL (because we ran out of memory).  From Bruno Haible.
33664
33665 2000-03-05  Jim Meyering  <meyering@lucent.com>
33666
33667         * lib/localcharset.c ("path-concat.h"): Include.
33668         (get_charset_aliases): Use path_concat instead of ANSI string
33669         concatenation.
33670
33671         * lib/unicodeio.h (PARAMS): Define.
33672         Use it to guard prototype.
33673
33674 2000-03-04  Jim Meyering  <meyering@lucent.com>
33675
33676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
33677         for lib/localcharset.c.
33678
33679 2000-03-04  Jim Meyering  <meyering@lucent.com>
33680
33681         * lib/Makefile.am (install-exec-local): Create $(libdir) before
33682         installing into it.
33683         (uninstall-local): Uncomment this rule so `make distcheck' works
33684         once again.
33685
33686         * lib/unicodeio.c (<errno.h>): Include it.
33687         (errno): Declare if not defined.
33688
33689         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
33690
33691         * lib/config.charset: New version, incorporating remarks from a linux
33692         i18n mailing list.  From Bruno Haible.
33693
33694 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
33695
33696         * m4/codeset.m4: New file.
33697         * m4/iconv.m4: New file.
33698         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
33699
33700 2000-03-03  Jim Meyering  <meyering@lucent.com>
33701
33702         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
33703
33704 2000-03-02  Jim Meyering  <meyering@lucent.com>
33705
33706         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
33707         the messages come out on separate lines.
33708
33709         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
33710         rather than jm_CHECK_DECLARATIONS.
33711         * m4/decl.m4: Remove now-unused file.
33712
33713         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
33714         geteuid.
33715
33716 2000-03-02  Jim Meyering  <meyering@lucent.com>
33717
33718         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
33719
33720 2000-03-01  Jim Meyering  <meyering@lucent.com>
33721
33722         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
33723         * lib/unicodeio.c: Likewise.
33724
33725 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
33726
33727         * lib/config.charset: New file.
33728         * lib/localcharset.c: New file.
33729         * lib/unicodeio.h, lib/unicodeio.c: New files.
33730         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
33731         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
33732         (noinst_HEADERS): Add unicodeio.h.
33733         (all-local, install-exec-local, charset.alias): New targets.
33734
33735 2000-02-28  Paul Eggert  <eggert@twinsun.com>
33736
33737         * lib/quotearg.c (ALERT_CHAR): New macro.
33738         (quotearg_buffer_restyled): Use it.
33739
33740 2000-02-27  Jim Meyering  <meyering@lucent.com>
33741
33742         * m4/check-decl.m4: Add getenv to the list.
33743
33744 2000-02-27  Jim Meyering  <meyering@lucent.com>
33745
33746         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
33747         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
33748
33749         * lib/backupfile.c: Guard inclusion of stdlib.h with
33750         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
33751         Declare malloc if needed.
33752
33753         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
33754         `#ifndef HAVE_DECL..'
33755         now that autoconf always defines the HAVE_DECL_ symbols.
33756         * lib/human.c: Likewise.
33757         * lib/same.c: Likewise.
33758         * lib/strtoumax.c: Likewise.
33759
33760         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
33761         declaration check was not run.
33762         * lib/hash.c: Likewise.
33763         * lib/human.c: Likewise.
33764         * lib/same.c: Likewise.
33765         * lib/strtoumax.c: Likewise.
33766
33767         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
33768         `.', then first look up the entire `.'-containing string as a login
33769         name.
33770
33771 2000-02-23  Jim Meyering  <meyering@lucent.com>
33772
33773         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
33774         in place of my hack.
33775
33776 2000-02-18  Paul Eggert  <eggert@twinsun.com>
33777
33778         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
33779         (textint): New typedef.
33780         (parser_control): Member year changed from int to textint.
33781         All uses changed.
33782         (YYSTYPE): Removed; replaced by %union with int and textint members.
33783         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
33784         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
33785         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
33786         (tSNUMBER, tUNUMBER): Now of type <textintval>.
33787         (date, number, to_year): Use width of number in digits, not its value,
33788         to determine whether it's a 2-digit year, or a 2-digit time.
33789         (yylex): Store number of digits of numeric tokens.
33790         Reported by John Kendall.
33791
33792         (parser_control): Changed from struct parser_control to typedef (for
33793         consistency).  All uses changed.
33794
33795         (tID): Removed; not used.
33796         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
33797
33798 2000-02-14  Paul Eggert  <eggert@twinsun.com>
33799
33800         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
33801         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
33802
33803 2000-02-12  Jim Meyering  <meyering@lucent.com>
33804
33805         * lib/userspec.c (ISDIGIT): Define it.
33806         (isdigit): Remove definition.
33807         (is_number): Use ISDIGIT, not isdigit.
33808         <libintl.h>: Include.
33809         (_ and N_): Define.
33810         (parse_user_spec): Mark translatable strings.
33811
33812 2000-02-10  Jim Meyering  <meyering@lucent.com>
33813
33814         With these changes, nanosleep.[ch] are finally enough like the other
33815         lib/* replacement files to compile on a few more losing systems.
33816
33817         * lib/nanosleep.h: Don't include config.h.
33818         Remove prototype from declaration of nanosleep.
33819         (PARAMS): Remove now-unneeded definition.
33820         * lib/nanosleep.c: #undef nanosleep.
33821         (rpl_nanosleep): Rename from nanosleep.
33822
33823 2000-02-10  Jim Meyering  <meyering@lucent.com>
33824
33825         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
33826         gnu_nanosleep to rpl_nanosleep.
33827
33828 2000-02-09  Jim Meyering  <meyering@lucent.com>
33829
33830         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
33831         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
33832
33833 2000-02-08  Akim Demaille  <akim@epita.fr>
33834
33835         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
33836         `[' and `]' and remove uses of `changequote'.
33837         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
33838         (AC_SYS_LARGEFILE): Likewise.
33839         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33840         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
33841         of changequote.
33842         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
33843         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
33844         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
33845         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
33846
33847 2000-02-05  Jim Meyering  <meyering@lucent.com>
33848
33849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
33850         Remove explicit use of AC_HEADER_TIME.  It is required by
33851         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
33852         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
33853         in autoconf whereby the expansion of the latter ended up preceding
33854         the expansion of its prerequisite, AC_HEADER_TIME.
33855         Reported by Volker Borchert.
33856
33857 2000-02-03  Jim Meyering  <meyering@lucent.com>
33858
33859         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
33860
33861 2000-02-03  Jim Meyering  <meyering@lucent.com>
33862
33863         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
33864         rather than with `#if HAVE_UTMPNAME'.
33865
33866 2000-02-02  Jim Meyering  <meyering@lucent.com>
33867
33868         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
33869         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
33870         Reported by Eli Zaretskii.
33871
33872 2000-02-01  Jim Meyering  <meyering@lucent.com>
33873
33874         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
33875
33876 2000-01-31  Jim Meyering  <meyering@lucent.com>
33877
33878         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
33879         functions.  Add the time.h and sys/time.h headers along with the
33880         AC_REQUIRE'ment of AC_HEADER_TIME.
33881
33882 2000-01-31  Jim Meyering  <meyering@lucent.com>
33883
33884         * lib/nanosleep.h (nanosleep): Guard declaration with
33885         `#if ! HAVE_DECL_NANOSLEEP'.
33886         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
33887         the declaration in that vendor's sys/timers.h.
33888         Reported by Christian Krackowizer.
33889
33890         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
33891         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
33892         (ISPRINT): Likewise.
33893         Reported by Tom Tromey.
33894
33895 2000-01-30  Jim Meyering  <meyering@lucent.com>
33896
33897         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
33898
33899         * m4/prereq.m4 (utmp_includes): Define.
33900         Check for ut_user and ut_name members in both struct utmpx
33901         and struct utmp.
33902
33903 2000-01-30  Jim Meyering  <meyering@lucent.com>
33904
33905         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
33906         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
33907         header files where only utmpx.ut_user is declared.
33908
33909         * lib/readutmp.h (UT_USER): Define.
33910
33911 2000-01-29  Jim Meyering  <meyering@lucent.com>
33912
33913         * m4/lib-check.m4: New file containing library-related checks from
33914         fileutils and sh-utils (textutils had none).
33915
33916 2000-01-28  Jim Meyering  <meyering@lucent.com>
33917
33918         * m4/perl.m4: Change format of warning message to look more like that
33919         from the missing script.  Suggestion from François Pinard.
33920
33921 2000-01-25  Jim Meyering  <meyering@lucent.com>
33922
33923         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
33924         well as time.h in the compile check.
33925         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
33926         Fix typo in cross-compiling case: s/yes/no/.
33927
33928 2000-01-23  Jim Meyering  <meyering@lucent.com>
33929
33930         * m4/jm-macros.m4: Move df-related tests here from
33931         fileutils/configure.in
33932
33933         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
33934         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
33935
33936         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
33937         s/space/ac_fsusage_space/.
33938         (jm_FILE_SYSTEM_USAGE): Take two parameters.
33939
33940         * m4/ftruncate.m4: New file (derived from part of
33941         fileutils/configure.in).
33942         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
33943         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
33944
33945         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
33946         AC_SUBST these here, rather than just in sh-util/configure.in, so
33947         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
33948         all the same.
33949         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
33950         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
33951         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
33952         (AC_SUBST(POW_LIBM)): Likewise.
33953         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
33954
33955 2000-01-23  Jim Meyering  <meyering@lucent.com>
33956
33957         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
33958         obstack.c.
33959
33960 2000-01-22  Jim Meyering  <meyering@lucent.com>
33961
33962         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
33963
33964         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
33965
33966         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
33967         configure.in
33968         (AC_CHECK_HEADERS): Likewise for sh-utils.
33969         (AC_CHECK_HEADERS): Likewise for textutils.
33970         Merge the three lists of headers.
33971
33972         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
33973         from fileutils' configure.in.
33974
33975         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
33976         code. Moved tests into their own function (_jm_DECL_HEADERS) in
33977         check-decl.m4.
33978
33979         * m4/check-decl.m4: Use #if rather than #ifdef.
33980         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
33981         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
33982         (_jm_DECL_HEADERS): Define new function.
33983         (jm_CHECK_DECLARATIONS): Require it.
33984
33985 2000-01-22  Jim Meyering  <meyering@lucent.com>
33986
33987         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
33988         [! HAVE_DECL_STRTOULL]: Declare strtoull.
33989         Required for some AIX systems.  Reported by Christian Krackowizer.
33990         [TESTING] (main): New function.
33991
33992         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
33993         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
33994         letters.
33995
33996         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
33997         iswprint.
33998
33999         * lib/strverscmp.c (ISDIGIT): Define.
34000         (strverscmp): Use ISDIGIT, not isdigit.
34001
34002 2000-01-19  Jim Meyering  <meyering@lucent.com>
34003
34004         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
34005         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
34006         defines `struct timespec' in <sys/time.h>
34007
34008         * m4/c-bs-a.m4: Remove uses of changequote altogether.
34009         Thanks to Akim for explaining.
34010
34011 2000-01-17  Paul Eggert  <eggert@twinsun.com>
34012
34013         * lib/nanosleep.c (nanosleep):
34014         Don't use SA_INTERRUPT to decide whether to call sigaction, as
34015         POSIX.1 doesn't require SA_INTERRUPT and some systems
34016         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
34017         it's been part of POSIX.1 since day 1 (in 1988).
34018
34019 2000-01-17  Jim Meyering  <meyering@lucent.com>
34020
34021         * lib/interlock: Remove unused file.  Reported by François Pinard.
34022
34023 2000-01-16  Paul Eggert  <eggert@twinsun.com>
34024
34025         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
34026         alert, backslash, formfeed, and vertical tab unnecessarily in
34027         shell quoting style.
34028
34029 2000-01-16  Jim Meyering  <meyering@lucent.com>
34030
34031         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
34032         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
34033         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
34034         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
34035
34036 2000-01-16  Jim Meyering  <meyering@lucent.com>
34037
34038         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
34039         because the latter didn't work.
34040
34041 2000-01-15  Jim Meyering  <meyering@lucent.com>
34042
34043         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
34044         (AC_REPLACE_FUNCS): Add memcpy and memset.
34045         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
34046         Add strpbrk.
34047         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
34048
34049 2000-01-12  Jim Meyering  <meyering@lucent.com>
34050
34051         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
34052         (jm_PREREQ): Use it.
34053         (jm_PREREQ_READUTMP): New macro.
34054         (jm_PREREQ): Use it.
34055
34056 2000-01-11  Paul Eggert  <eggert@twinsun.com>
34057
34058         Quote multibyte characters correctly.
34059         * m4/c-bs-a.m4: New file.
34060         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
34061         (jm_PREREQ): Use it.
34062
34063 2000-01-11  Paul Eggert  <eggert@twinsun.com>
34064
34065         * m4/uintmax_t.m4: Port to autoconf 2.13.
34066
34067 2000-01-08  Jim Meyering  <meyering@ascend.com>
34068
34069         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
34070         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
34071
34072 2000-01-04  Jim Meyering  <meyering@ascend.com>
34073
34074         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
34075         jm_STRUCT_DIRENT_D_TYPE.
34076         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
34077         jm_STRUCT_DIRENT_D_INO.
34078         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
34079         jm_STRUCT_UTIMBUF.
34080         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
34081         renamings.
34082         * m4/utime.m4: Likewise.
34083
34084         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
34085         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
34086
34087 2000-01-03  Paul Eggert  <eggert@twinsun.com>
34088
34089         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
34090         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
34091
34092 2000-01-02  Jim Meyering  <meyering@ascend.com>
34093
34094         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
34095         remember if this is necessary.
34096
34097 1999-12-26  Jim Meyering  <meyering@ascend.com>
34098
34099         * m4/jm-macros.m4: Use it here.
34100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
34101
34102 1999-12-23  Jim Meyering  <meyering@ascend.com>
34103
34104         * m4/jm-macros.m4: Check for clock_gettime (moved from
34105         fileutils/configure.in)
34106         Check for gettimeofday.
34107
34108 1999-12-20  Jim Meyering  <meyering@ascend.com>
34109
34110         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
34111         autoconf-2.14a-1999-12-20.
34112
34113 1999-12-19  Jim Meyering  <meyering@ascend.com>
34114
34115         * m4/lstat-slash.m4: New file.
34116         * m4/jm-macros.m4: Use the new macro:
34117         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34118
34119 1999-12-07  Jim Meyering  <meyering@ascend.com>
34120
34121         * m4/perl.m4: Require that File::Compare be available, too.
34122         Too many systems seem to lack it.
34123
34124         * m4/strftime.m4: Add checks for most of the cpp macros tested in
34125         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
34126
34127 1999-11-18  Paul Eggert  <eggert@twinsun.com>
34128
34129         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
34130         problem with the QNX 4.25 shell, which doesn't propagate exit
34131         status of failed commands inside shell assignments.
34132
34133 1999-11-17  Jim Meyering  <meyering@ascend.com>
34134
34135         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
34136
34137 1999-11-07  Jim Meyering  <meyering@ascend.com>
34138
34139         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
34140
34141 1999-11-06  Jim Meyering  <meyering@ascend.com>
34142
34143         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
34144         * m4/jm-macros.m4 (jm_MACROS): Use it here.
34145
34146 1999-11-05  Jim Meyering  <meyering@ascend.com>
34147
34148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
34149         configure.in of textutils, fileutils, and sh-utils into this one
34150         (shared between those packages) file.
34151         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
34152         AC_STRUCT_ST_BLKSIZE.
34153
34154 1999-11-03  Jim Meyering  <meyering@ascend.com>
34155
34156         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
34157         of AC_CHECK_TYPE checks includes unistd.h.
34158         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
34159         Suggestion from Akim Demaille.
34160
34161 1999-10-30  Jim Meyering  <meyering@ascend.com>
34162
34163         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
34164         m4-quoted string.
34165         * m4/ls-mntd-fs.m4: Likewise.
34166         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
34167         * m4/jm-winsz1.m4: Likewise.
34168
34169         * m4/const.m4: Remove file, since the fix made it into the experimental
34170         version of autoconf.
34171         * m4/mktime.m4: Likewise.
34172
34173         * m4/check-type.m4: Remove file, now that the latest version of
34174         AC_CHECK_TYPE takes a third arg to specify additional #includes.
34175
34176         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
34177         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
34178         AC_CHECK_TYPE.
34179
34180 1999-10-04  Jim Meyering  <meyering@ascend.com>
34181
34182         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
34183
34184 1999-09-22  Paul Eggert  <eggert@twinsun.com>
34185
34186         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
34187         2.95.1 bug with HP-UX 10.20.
34188
34189 1999-09-17  Jim Meyering  <meyering@ascend.com>
34190
34191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
34192         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
34193         due to missing strdup (against sh-utils-2.0).
34194
34195 1999-08-29  Jim Meyering  <meyering@ascend.com>
34196
34197         * m4/jm-macros.m4: Require jm_BISON.
34198         * m4/bison.m4: New file.
34199
34200 1999-08-17  Paul Eggert  <eggert@twinsun.com>
34201
34202         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
34203         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
34204
34205 1999-08-05  Jim Meyering  <meyering@ascend.com>
34206
34207         * m4/getline.m4: Rename test file from conftestdata to conftest.data
34208         to avoid conflicts with `conftest' on 8+3 filesystems.
34209         Suggestion from Eli Zaretskii.
34210
34211 1999-08-04  Jim Meyering  <meyering@ascend.com>
34212
34213         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
34214         fileutils and sh-utils (textutils's getline test was inadequate).
34215         (AM_FUNC_GETLINE): Run this test.
34216         (AC_CHECK_FUNCS): Check for getdelim.
34217         Reported by Bob Proulx.
34218
34219 1999-08-02  Jim Meyering  <meyering@ascend.com>
34220
34221         * m4/jm-macros.m4: Add a comment.
34222
34223 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34224
34225         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
34226         <inttypes.h> defines strtoumax as a macro (and not as a
34227         function).
34228
34229 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34230
34231         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
34232         that we can shift, multiply and divide unsigned long long
34233         values; Ultrix cc can't do it.
34234
34235 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34236
34237         * m4/mktime.m4: New file, which is a preview of what should appear
34238         in the next public autoconf release.
34239
34240 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34241
34242         * m4/lfs.m4: Remove this file.
34243         * m4/largefile.m4: New file.  It contains the old contents of
34244         lfs.m4, except that all names with prefix AC_LFS have been
34245         changed to use the prefix AC_SYS_LARGEFILE instead, to be
34246         compatible with future autoconf versions.  Also, some minor m4
34247         quoting problems have been fixed.
34248
34249 1999-08-01  Paul Eggert  <eggert@twinsun.com>
34250
34251         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
34252         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
34253         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
34254         and simplify the shell code.
34255
34256 1999-08-01  Jim Meyering  <meyering@ascend.com>
34257
34258         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
34259         m4.
34260
34261 1999-07-20  Jim Meyering  <meyering@ascend.com>
34262
34263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
34264
34265 1999-07-15  Jim Meyering  <meyering@ascend.com>
34266
34267         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
34268
34269 1999-05-22  Jim Meyering  <meyering@ascend.com>
34270
34271         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
34272
34273 1999-05-20  Jim Meyering  <meyering@ascend.com>
34274
34275         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
34276         Add a colon after each `then' in case $4 is empty.
34277
34278 1999-05-16  Jim Meyering  <meyering@ascend.com>
34279
34280         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
34281
34282 1999-05-10  Jim Meyering  <meyering@ascend.com>
34283
34284         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
34285
34286         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
34287         AC_FUNC_MKTIME.
34288
34289 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
34290
34291         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
34292
34293 1999-05-04  Paul Eggert  <eggert@twinsun.com>
34294
34295         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
34296         not CPPFLAGS, so that linking works correctly in IRIX.
34297
34298 1999-04-30  Paul Eggert  <eggert@twinsun.com>
34299
34300         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
34301
34302 1999-04-20  Paul Eggert  <eggert@twinsun.com>
34303
34304         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
34305         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
34306         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
34307         jm_AC_TYPE_UNSIGNED_LONG_LONG.
34308         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
34309
34310         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
34311
34312 1999-04-20  Jim Meyering  <meyering@ascend.com>
34313
34314         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
34315         AC_REPLACE xstroull if necessary.  From Paul Eggert.
34316         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
34317
34318 1999-04-18  Jim Meyering  <meyering@ascend.com>
34319
34320         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
34321         * m4/jm-macros.m4: Use it.
34322
34323 1999-04-06  Jim Meyering  <meyering@ascend.com>
34324
34325         * m4/strftime.m4: Remove test for %f.
34326
34327 1999-03-29  Jim Meyering  <meyering@ascend.com>
34328
34329         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
34330         superset of the AC_TYPE_* checks in the textutils, fileutils,
34331         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
34332         AC_TYPE_PID_T.
34333
34334 1999-03-28  Jim Meyering  <meyering@ascend.com>
34335
34336         * m4/jm-macros.m4: Define GNU_PACKAGE here.
34337         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
34338         replaced e.g., in the *.sh files of the sh-utils.
34339
34340 1999-03-20  Jim Meyering  <meyering@ascend.com>
34341
34342         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
34343         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
34344         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
34345
34346 1999-03-19  Jim Meyering  <meyering@ascend.com>
34347
34348         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
34349
34350 1999-03-12  Jim Meyering  <meyering@ascend.com>
34351
34352         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
34353
34354 1999-03-07  Jim Meyering  <meyering@ascend.com>
34355
34356         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
34357         declared.
34358
34359 1999-02-17  Jim Meyering  <meyering@ascend.com>
34360
34361         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
34362         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
34363
34364 1999-02-07  Jim Meyering  <meyering@ascend.com>
34365
34366         * m4/group-member.m4: New file -- extracted from sh-utils'
34367         configure.in.
34368
34369         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
34370         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
34371
34372 1999-02-06  Jim Meyering  <meyering@ascend.com>
34373
34374         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
34375         * m4/fnmatch.m4: Likewise.
34376         * m4/getgroups.m4: Likewise.
34377         * m4/lstat.m4: Likewise.
34378         * m4/malloc.m4: Likewise.
34379         * m4/putenv.m4: Likewise.
34380         * m4/realloc.m4: Likewise.
34381         * m4/regex.m4: Likewise.
34382         * m4/stat.m4: Likewise.
34383         * m4/strftime.m4: Likewise.
34384         Suggestion from Alain Magloire.
34385
34386         * m4/chown.m4: Use `.$ac_objext', not `.o'.
34387         * m4/fnmatch.m4: Likewise.
34388         * m4/getgroups.m4: Likewise.
34389         * m4/getline.m4: Likewise.
34390         * m4/lstat.m4: Likewise.
34391         * m4/malloc.m4: Likewise.
34392         * m4/memcmp.m4: Likewise.
34393         * m4/putenv.m4: Likewise.
34394         * m4/realloc.m4: Likewise.
34395         * m4/regex.m4: Likewise.
34396         * m4/stat.m4: Likewise.
34397         * m4/strftime.m4: Likewise.
34398         Suggestion from Alain Magloire.
34399
34400         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
34401         an argument.
34402
34403         * m4/regex.m4: Add a run-time Test for proper operation of
34404         re_compile_pattern.
34405
34406 1999-01-31  Jim Meyering  <meyering@ascend.com>
34407
34408         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
34409
34410 1999-01-30  Jim Meyering  <meyering@ascend.com>
34411
34412         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
34413
34414         * m4/jm-mktime.m4: Make this a wrapper around the official
34415         AM_FUNC_MKTIME rather than my private copy, now that the official one
34416         is up to date.
34417         * m4/mktime.m4: Remove file.
34418
34419         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
34420         * m4/uptime.m4: Likewise.
34421         * m4/uintmax_t.m4: Likewise.
34422
34423 1999-01-28  Jim Meyering  <meyering@ascend.com>
34424
34425         * m4/jm-macros.m4: Use jm_AFS.
34426         * m4/afs.m4: New file (from fileutils' configure.in).
34427
34428         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
34429         * m4/chown.m4: Likewise.
34430         * m4/d-ino.m4: Likewise.
34431         * m4/d-type.m4: Likewise.
34432         * m4/fnmatch.m4: Likewise.
34433         * m4/getgroups.m4: Likewise.
34434         * m4/gettext.m4: Likewise.
34435         * m4/jm-mktime.m4: Likewise.
34436         * m4/jm-winsz2.m4: Likewise.
34437         * m4/lcmessage.m4: Likewise.
34438         * m4/ls-mntd-fs.m4: Likewise.
34439         * m4/malloc.m4: Likewise.
34440         * m4/memcmp.m4: Likewise.
34441         * m4/putenv.m4: Likewise.
34442         * m4/realloc.m4: Likewise.
34443         * m4/st_mtim.m4: Likewise.
34444         * m4/strftime.m4: Likewise.
34445
34446 1999-01-16  Jim Meyering  <meyering@ascend.com>
34447
34448         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
34449         (ARGMATCH_DIE_DECL): Define.
34450
34451 1999-01-12  Jim Meyering  <meyering@ascend.com>
34452
34453         * m4/Makefile.am.in: Rewrite to avoid using fmt.
34454         Reported by Lars Hecking.
34455
34456 1999-01-10  Jim Meyering  <meyering@ascend.com>
34457
34458         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
34459         gross kludge.
34460         * m4/inttypes_h.m4: Likewise.
34461         * m4/lstat.m4: Likewise.
34462         * m4/malloc.m4: Likewise.
34463         * m4/readdir.m4: Likewise.
34464         * m4/realloc.m4: Likewise.
34465         * m4/st_dm_mode.m4: Likewise.
34466         * m4/stat.m4: Likewise.
34467         * m4/utimbuf.m4: Likewise.
34468         * m4/utimes.m4: Likewise.
34469
34470         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
34471         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
34472         comments in config.h.in are meaningful.
34473
34474         * m4/jm-macros.m4: Require autoconf-2.13 here.
34475
34476         * m4/regex.m4: By default, don't use the included regex.c on systems
34477         with glibc 2.  Suggestion from Uli Drepper.
34478
34479 1999-01-02  Jim Meyering  <meyering@ascend.com>
34480
34481         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
34482
34483 1998-12-18  Jim Meyering  <meyering@ascend.com>
34484
34485         * m4/Makefile.am.in (Makefile.am): Simplify rule.
34486         Based on a suggestion from Lars Hecking.
34487
34488 1998-11-16  Paul Eggert  <eggert@twinsun.com>
34489
34490         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
34491
34492 1998-11-16  Jim Meyering  <meyering@ascend.com>
34493
34494         * m4/lfs.m4: Double-quote the `uname...` expression.
34495
34496 1998-11-14  Jim Meyering  <meyering@ascend.com>
34497
34498         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
34499         * m4/stat.m4: Likewise.
34500
34501 1998-11-03  Jim Meyering  <meyering@ascend.com>
34502
34503         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
34504         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
34505
34506 1998-10-18  Jim Meyering  <meyering@ascend.com>
34507
34508         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
34509
34510 1998-10-17  Jim Meyering  <meyering@ascend.com>
34511
34512         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
34513         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
34514         calls for those previously hard-coded headers.  Instead, take a new
34515         parameter.
34516         (jm_CHECK_DECLARATIONS): Reflect interface change.
34517         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
34518         (jm_CHECK_DECL_LOCALTIME_R): New macro.
34519
34520         * m4/mktime.m4: Test for spring-forward gap before long-running test.
34521
34522 1998-10-14  Jim Meyering  <meyering@ascend.com>
34523
34524         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
34525         instead of "TZ=America/Vancouver".  From Paul Eggert.
34526
34527 1998-10-11  Jim Meyering  <meyering@ascend.com>
34528
34529         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
34530         This adds a test for a recently added compatibility fix for mktime.c.
34531         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
34532
34533 1998-09-27  Jim Meyering  <meyering@ascend.com>
34534
34535         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
34536
34537         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
34538         ../configure.in, including a change from Gordon Matzigkeit to allow
34539         cross-compiling for the Hurd.
34540
34541         * m4/glibc.m4: New file/macro to test for the GNU C Library
34542         versions 1 and 2.  From Gordon Matzigkeit.
34543         Indent.
34544
34545 1998-09-21  Jim Meyering  <meyering@ascend.com>
34546
34547         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
34548
34549 1998-08-18  Paul Eggert  <eggert@twinsun.com>
34550
34551         Port nanosecond-resolution times to UnixWare 2.1.2 and
34552         pedantic Solaris 2.6.
34553
34554         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
34555         AC_STRUCT_ST_MTIM.
34556         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
34557         Generate name of ns member, instead of just 1 or undef.
34558         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
34559
34560 1998-08-15  Jim Meyering  <meyering@ascend.com>
34561
34562         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
34563         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
34564         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
34565         instead of jm_TYPE_SSIZE_T.
34566
34567 1998-08-12  Jim Meyering  <meyering@ascend.com>
34568
34569         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
34570
34571 1998-08-02  Jim Meyering  <meyering@ascend.com>
34572
34573         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
34574         in acconfig.h manually.
34575
34576 1998-07-31  Paul Eggert  <eggert@twinsun.com>
34577
34578         * m4/st_mtim.m4: New file.
34579
34580 1998-07-28  Jim Meyering  <meyering@ascend.com>
34581
34582         * m4/utimes.m4: Undef stat.
34583
34584 1998-07-25  Jim Meyering  <meyering@ascend.com>
34585
34586         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
34587         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
34588
34589 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
34590
34591         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
34592         uid and gid actually remain unchanged.
34593
34594 1998-07-07  Jim Meyering  <meyering@ascend.com>
34595
34596         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
34597
34598 1998-07-04  Jim Meyering  <meyering@ascend.com>
34599
34600         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
34601         to prove that this macro can be used in packages without regex.c.
34602
34603 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
34604
34605         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
34606         is to be used.
34607
34608 1998-07-03  Jim Meyering  <meyering@ascend.com>
34609
34610         * m4/gettext.m4: Add -lintl if it's found to be necessary.
34611
34612         * m4/gettext.m4: New file -- from gettext-0.10.35.
34613         * m4/lcmessage.m4: Likewise.
34614         * m4/progtest.m4: Likewise.
34615
34616         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
34617         * m4/jm-macros.m4: Require the new macro.
34618
34619 1998-06-29  Jim Meyering  <meyering@ascend.com>
34620
34621         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
34622         for the definition of NGROUPS (used in a system header included
34623         by sys/mount.h).
34624
34625 1998-06-28  Jim Meyering  <meyering@ascend.com>
34626
34627         * m4/ls-mntd-fs.m4: New file.
34628         * m4/fstypename.m4: New file.
34629
34630         * m4/jm-macros.m4: Require the new macro.
34631         * m4/jm-glibc-io.m4: New file.
34632
34633 1998-05-19  Jim Meyering  <meyering@ascend.com>
34634
34635         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
34636         * m4/lchown.m4: New file.
34637
34638         * m4/Makefile.am.in: New file.
34639         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
34640
34641 1998-05-14  Jim Meyering  <meyering@ascend.com>
34642
34643         * m4/Makefile.am (EXTRA_DIST): Add them.
34644         * m4/jm-macros.m4: New file.
34645         * m4/utimbuf.m4: New file.
34646
34647 1998-05-12  Jim Meyering  <meyering@ascend.com>
34648
34649         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
34650
34651 1998-05-11  Jim Meyering  <meyering@ascend.com>
34652
34653         * m4/isc-posix.m4: New file.
34654
34655 1998-05-10  Jim Meyering  <meyering@ascend.com>
34656
34657         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
34658
34659 1998-05-09  Jim Meyering  <meyering@ascend.com>
34660
34661         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
34662         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
34663         with automake.
34664
34665         * m4/ssize_t.m4: New file.
34666         * m4/mktime.m4: Remove file -- the new automake has this now.
34667
34668 1998-04-26  Jim Meyering  <meyering@ascend.com>
34669
34670         * m4/assert.m4: New file.
34671         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
34672
34673 1998-04-05  Jim Meyering  <meyering@ascend.com>
34674
34675         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
34676         (jm_PREREQ): Use it here.
34677
34678 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
34679
34680         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
34681         in acconfig.h.
34682
34683 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
34684
34685         * m4/prereq.m4: New file.
34686         * m4/error.m4: New file.
34687         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
34688
34689 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
34690
34691         * m4/getline.m4: Don't set am_cv_func_working_getline before the
34692         cache-check for the same variable -- that defeated the purpose of
34693         the test; the test program was never run.  This was a problem only
34694         on systems with losing getline functions -- HP-UX 10.20 is one.
34695         Reported by Bjorn Helgaas.
34696
34697 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
34698
34699         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
34700
34701 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
34702
34703         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
34704
34705         * m4/const.m4: New file.  Use an initializer in this declaration
34706         typedef int charset[2]; const charset x;
34707         Reported by Bob Glickstein.
34708
34709 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
34710
34711         * m4/chown.m4: Fix reversed types on -1 args to chown.
34712         From Kaveh Ghazi.
34713
34714 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
34715
34716         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
34717         Add lseek and memchr.
34718
34719         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
34720         T.E.Dickey <dickey@clark.net> said that some older preprocessors
34721         have a 20-character limit on names.
34722
34723 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
34724
34725         * m4/inttypes_h.m4: New file.
34726         * m4/uintmax_t.m4: New file.
34727         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
34728
34729 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
34730   Free Software Foundation, Inc.
34731 Copying and distribution of this file, with or without modification,
34732 are permitted provided the copyright notice and this notice are preserved.