88e40752d7df68902e9967d8375daa9b041a7c33
[gnulib.git] / ChangeLog
1 2007-01-08  Jim Meyering  <jim@meyering.net>
2
3         Slight readability improvement: use an assert-like macro
4         in place of literal "abort ()" uses.
5         * lib/fts.c (fts_assert): Define.
6         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
7         Use this macro instead of a bare 'abort'.
8
9 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10
11         Don't worry about using IRIX 5.3's wctype.h broken definitions;
12         simply work around them.
13         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
14         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
15         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
16         Don't bother to define as macros, since the standard doesn't require it.
17         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18         longer worry about IRIX 5.3.
19         (HAVE_WCTYPE_CTMP_BUG): Remove.
20
21 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22
23         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
24         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
25         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26         Problems reported by Georg Schwarz for IRIX 5.3.
27
28         * gnulib-tool (autoconf_minversion): Take the maximum version number
29         found, not the minimum.  Problem reported by James Youngman.
30
31 2007-01-03  Karl Berry  <karl@gnu.org>
32
33         * doc/error.texi: new file, explaining interaction with progname.
34         * doc/gnulib.texi: include it.  Update copyright.
35
36 2007-01-03  Simon Josefsson  <simon@josefsson.org>
37
38         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39         AC_CANONICAL_HOST, to improve autobuild outputs.
40
41 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
42             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43
44         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45         sockets, server sockets, and other file descriptors.  Count errors
46         to compute the return value.  Reorder the code a bit to be easier
47         to follow.  Don't set event bits that were not requested (except
48         POLLERR and POLLHUP).
49
50 2007-01-01  Bruno Haible  <bruno@clisp.org>
51
52         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53
54 2007-01-03  Jim Meyering  <jim@meyering.net>
55
56         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57
58 2007-01-02  Bruno Haible  <bruno@clisp.org>
59
60         * modules/settime (Include): Require timespec.h.
61         * modules/nanosleep (Include): Likewise.
62
63 2007-01-01  Bruno Haible  <bruno@clisp.org>
64
65         Improve support for OpenBSD.
66         * build-aux/config.rpath (libname_spec): Export.
67         (library_names_spec): New variable. Export.
68         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69         library_names_spec from the config.rpath output. Locate shared library
70         through the name pattern in library_names_spec.
71
72 2007-01-01  Eric Blake  <ebb9@byu.net>
73
74         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75
76 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
77
78         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
79         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
80         assume the C locale, and avoid an "eval" that could cause trouble.
81         Problem with SORT reported by Bob Proulx.
82
83         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
84         Define.  Trivial patch from Henning Nielsen Lund, originally
85         sent to bug-grep@gnu.org today.
86
87 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
88
89         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
90         struct stat.  Problem reported by Henning Nielsen Lund.
91         * lib/acl.c: Include acl.h first, to check interface.  Don't
92         bother to include sys/types.h and sys/stat.h again.
93
94 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
95
96         Import the following change from libc; problem reported by
97         Sven Verdoolaege.
98
99         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
100
101         [BZ #1373]
102         * lib/argp.h: Remove __NTH for __argp_usage inline function.
103
104 2006-12-28  Jim Meyering  <jim@meyering.net>
105
106         * build-aux/announce-gen: Do not assume that the package
107         builds any of tar.gz, tar.bz2, and .xdelta files.
108         Suggestion from Simon Josefsson.
109
110 2006-12-28  Simon Josefsson  <simon@josefsson.org>
111
112         * modules/announce-gen: New file.
113
114 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
115
116         * lib/mbchar.h: Just include <wctype.h>; the wctype module
117         handles its gotchas now.
118         * lib/mbswidth.c: Likewise.
119         * lib/wcwidth.h: Likewise.
120         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
121         and iswcntrl; the wctype module does this stuff now.
122         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
124         * modules/mbchar (Depends-on): Add wctype.
125         * modules/mbswidth (Depends-on): Likewise.
126         * modules/wcwidth (Depends-on): Likewise.
127
128 2006-12-27  Eric Blake  <ebb9@byu.net>
129
130         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
131         module uses more than what <wctype.h> is required to provide.
132
133 2006-12-26  Eric Blake  <ebb9@byu.net>
134
135         * gnulib-tool (sed_extract_prog): Avoid space-tab.
136
137 2006-12-26  Eric Blake  <ebb9@byu.net>
138
139         * modules/absolute-header: New module.
140         * modules/fcntl (Depends-on): Depend on it.
141         * modules/inttypes (Depends-on): Likewise.
142         * modules/stdint (Depends-on): Likewise.
143         * modules/sys_stat (Depends-on): Likewise.
144         * modules/wctype (Depends-on): Likewise.
145         * MODULES.html.sh (Support for building libraries and
146         executables): Document it.
147
148 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
149
150         * gnulib-tool (SED): Remove, undoing previous change.
151         The problem was that it broke coreutils on Solaris, because
152         "sed --posix" leaked into a makefile.
153         (sed): New alias, if 'alias' and GNU sed.
154
155 2006-12-24  Jim Meyering  <jim@meyering.net>
156
157         Work around an fchownat bug in glibc-2.4:
158         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
159         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
160         in spite of the -P option.
161         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
162         New macros.
163         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
164         * modules/openat (Files): Add lib/fchownat.c.
165         * lib/openat.c (fchownat): Don't define here.  Move to...
166         * lib/fchownat.c: ...this new file.
167
168 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
169
170         Fix bug reported by Bruno Haible in
171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
172         where quotearg.c didn't compile on Mac OS X 10.2 because it
173         lacks <wchar.h> and wint_t.
174         * lib/wctype_.h (__wctype_wint_t): New type.
175         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
176         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
177         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
178         Arg is now of type __wctype_wint_t, not wint_t.
179         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
180         substitute HAVE_WINT_T.
181         * modules/wctype (Files): Add m4/wint_t.m4.
182         (wctype.h): Substitute HAVE_WINT_T.
183
184 2006-12-23  Bruno Haible  <bruno@clisp.org>
185
186         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
187
188 2006-12-23  Bruno Haible  <bruno@clisp.org>
189
190         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
191         S_ISLNK.
192         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
193         mingw.
194
195 2006-12-22  Bruno Haible  <bruno@clisp.org>
196
197         * lib/copy-file.c: Include acl.h.
198         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
199         Close the file descriptors only after being done with copy_acl.
200         * modules/copy-file (Depends-on): Add acl.
201
202 2006-12-22  Bruno Haible  <bruno@clisp.org>
203
204         * gnulib-tool (SED): New variable.
205         Use $SED instead of sed everywhere.
206
207 2006-12-22  Bruno Haible  <bruno@clisp.org>
208
209         * modules/no-c++: New file.
210         * m4/no-c++.m4: New file.
211         * MODULES.html.sh (Support for building libraries and executables):
212         Add no-c++.
213
214 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
215
216         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
217         Include <limits.h>, and use its INT_MAX to rewrite the
218         j loop so that it does not overflow 'int'.  Problem reported by
219         Ralf Wildenhues in
220         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
221         Play it safe by shifting left by 1 rather than multiplying by 2,
222         as GCC is less likely to optimize this away when the value
223         is signed (when it assumes overflow leads to undefined behavior).
224         Also, don't assume time_t uses two's complement.
225
226 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
227
228         * MODULES.html.sh: New module wctype.
229         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
230         * lib/fnmatch.c: Don't bother to include <wchar.h> before
231         <wctype.h>, since the new wctype module should fix this.
232         * lib/quotearg.c: Include <wctype.h> unconditionally, since
233         the wctype module should arrange for it.
234         * lib/regex_internal.h: Likewise.
235         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
236         since the wctype module should handle this now.
237         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
238         * modules/fnmatch (Depends-on): Add wctype.
239         * modules/quotearg (Depends-on): Likewise.
240         * modules/regex (Depends-on): Likewise.
241
242 2006-12-19  Bruno Haible  <bruno@clisp.org>
243
244         * lib/strdup.h [C++]: Wrap definitions in extern "C".
245         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
246
247 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
248
249         * modules/savewd (Depends-on): Fix dependency on fcntl.
250
251 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
252
253         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
254         conforms to C99, rather than relying on the user's environment
255         setting of STDINT_H.
256
257 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
258         and Eric Blake  <ebb9@byu.net>
259
260         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
261         This is more consistent with the other defines here.
262         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
263         Port to z/OS.  Problem reported by Paul Gilmartin.
264         Change local vars to use gl_ prefix rather than ac_.
265         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
266         with other defines.
267         * modules/double-slash-root: New module.
268         * modules/dirname (Files): Remove m4/double-slash-root.m4.
269         (Depends-on): Add double-slash-root.
270         * MODULES.html.sh (File system functions): Mention new module.
271
272 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
273
274         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
275         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
276         This is for the benefit of gzip, which doesn't do i18n.
277
278 2006-12-12  Jim Meyering  <jim@meyering.net>
279
280         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
281         Reported by Andreas Schwab <schwab@suse.de>.
282
283 2006-12-12  Bruno Haible  <bruno@clisp.org>
284
285         Merge these changes.
286         2006-09-05  Bruno Haible  <bruno@clisp.org>
287         * lib/iconvme.c (iconv_string): No need to save and restore errno when
288         iconv_alloc succeeded.
289         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
290         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
291         test for " && dest " at the end - dest is always != NULL there. Call
292         iconv with 4xNULL arguments initially, to reset the state. Call iconv
293         with 2xNULL arguments, also to flush the state storage. Handle the
294         IRIX iconv behaviour. Realloc the final result, to throw away unused
295         memory.
296
297 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
298
299         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
300         and fchmodat unconditionally, since glibc 2.4 has them.
301         Problem reported by Arkadiusz Miskiewicz.
302
303 2006-12-10  Bruno Haible  <bruno@clisp.org>
304
305         * gnulib-tool (func_import): Show the include files only for those
306         modules that are copied and specified.
307         Reported by Karl Berry.
308
309 2006-12-08  Jim Meyering  <jim@meyering.net>
310
311         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
312         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
313
314         * build-aux/announce-gen: Add two new options, both optional:
315         --bootstrap-tools=TOOL_LIST
316               a comma-separated list of tools, e.g.,
317               autoconf,automake,bison,gnulib
318         --gnulib-snapshot-date=DATE
319               if gnulib is in the bootstrap tool list,
320               then report this as the snapshot date.
321               If not specified, use the current date/time.
322               If you specify a date here, be sure it's UTC.
323
324 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
325
326         * tests/test-argp-2.sh: Fix test to match actual output.
327         (func_compare): Fix sed script to be portable.
328
329 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
330
331         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
332         workaround for this case.  It is not autoconfigured now; offhand
333         it's hard to see how to autoconfigure it.
334
335 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
336
337         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
338         a directory that is about to be chowned.  Such a directory's
339         initial file permissions should permit the owner only and this
340         should not be changed until after the chown, since the group and
341         other bits would be incorrect if they granted permission before
342         the chown.
343
344         Fix porting problem for iswctype reported by Georg Schwarz in:
345         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
346         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
347         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
348         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
349         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
350
351 2006-12-03  Jim Meyering  <jim@meyering.net>
352
353         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
354         p->fts_statp may not yet be defined.
355         (fts_read): Instead, set it in the caller, once p->fts_statp is
356         sure to be defined, and corresponds to a top-level directory.
357         This bug made du -x fail.  Here's the coreutils test case:
358         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
359         Reported by Mike Frysinger.
360
361 2006-12-01  Jim Meyering  <jim@meyering.net>
362
363         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
364         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
365         Reported by Simon Josefsson.
366
367 2006-11-30  Jim Meyering  <jim@meyering.net>
368
369         * m4/warning.m4: Use the all-permissive copyright notice
370         recommended by RMS (rather than LGPL).
371         * m4/vararrays.m4: Likewise.
372         * m4/flexmember.m4: Likewise.
373
374 2006-11-29  Bruno Haible  <bruno@clisp.org>
375
376         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
377         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
378         using +=.
379         Reported by Simon Josefsson <simon@josefsson.org>.
380
381 2006-11-28  James Youngman <jay@gnu.org>
382
383         * README: Advise users that they might find the bug-gnulib@gnu.org
384         and autotools-announce@gnu.org mailing lists useful.
385
386 2006-11-28  Bruno Haible  <bruno@clisp.org>
387
388         * m4/ptrdiff_max.m4: Remove file.
389
390 2006-11-21  Bruno Haible  <bruno@clisp.org>
391
392         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
393         _AC_COMPUTE_INT.
394         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
395         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
396         _AC_COMPUTE_INT.
397         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
398         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
399         _AC_COMPUTE_INT.
400         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
401
402 2006-11-28  Jim Meyering  <jim@meyering.net>
403
404         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
405         warning from "gcc -Wshadow" about shadowing the builtin.
406
407 2006-11-27  Bruno Haible  <bruno@clisp.org>
408
409         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
410         _AC_COMPUTE_INT.
411         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
412
413 2006-11-27  Bruno Haible  <bruno@clisp.org>
414             Paul Eggert  <eggert@cs.ucla.edu>
415
416         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
417
418 2006-11-26  Bruno Haible  <bruno@clisp.org>
419
420         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
421         noinst_LTLIBRARIES.
422
423 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
424             Bruno Haible  <bruno@clisp.org>
425
426         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
427         if compiling with "gcc -ansi".
428
429 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
430
431         Fix some incompatibilities with gcc -ansi -pedantic.
432         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
433         if compiling pedantically with GCC, unless it's C99 or later.
434         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
435         it mishandles gcc -ansi -pedantic as well.
436         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
437         if gcc -pedantic.
438         * lib/regexec.c (check_node_accept_bytes): Don't use auto
439         initializers for struct if -pedantic, unless it's C99 or later.
440
441 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
442
443         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
444         Don't close an fd more than once. Identical atimes indicate
445         success, not failure.
446
447 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
448
449         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
450
451 2006-11-23  Jim Meyering  <jim@meyering.net>
452
453         * build-aux/announce-gen: New file.  From coreutils.
454
455 2006-11-22  Jim Meyering  <jim@meyering.net>
456
457         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
458         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
459         (fts_read): Use a temporary to narrow the overused st_size member
460         before using it in a switch statement.  Reported by Matthew Woehlke.
461
462         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
463         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
464
465 2006-11-20  Bruno Haible  <bruno@clisp.org>
466
467         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
468         changequote instead of pairs of brackets.
469         Reported by Andreas Schwab <schwab@suse.de>.
470
471 2006-11-21  Jim Meyering  <jim@meyering.net>
472
473         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
474         so as to remain compatible with older compilers.
475         Patch from Michael Deutschmann.
476
477 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
478
479         * MODULES.html.sh (File system functions): Add openat.
480
481         * lib/openat.h (rpl_fstatat): New macro, if
482         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
483         (fstatat): Define to rpl_fstatat under the same conditions,
484         unless COMPILING_FSTATAT.
485         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
486         seems to have the bug.
487         * lib/fstatat.c: New file.
488         * modules/openat (Files): Add it.
489
490 2006-11-20  Bruno Haible  <bruno@clisp.org>
491
492         * Makefile: New file.
493
494 2006-11-20  Jim Meyering  <jim@meyering.net>
495
496         The beginnings of syntax-related checks for gnulib.
497         * lib/Makefile: New file.
498         * lib/t-idcache: New script.  Ensure that the two halves of
499         idcache.c stay in sync.
500
501         * lib/idcache.c: Adjust comments in user- and group- portions to
502         be more accurate, and to be consistent with one another.
503
504 2006-11-20  Jim Meyering  <jim@meyering.net>
505
506         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
507         continue using the flexible array member (thus, this module performs
508         half as many malloc calls), with the addition that...
509         (getgroup, getuser): Consistently record a non-match via an empty
510         "name" string, and map an empty string match to a NULL return value.
511         * modules/idcache (Depends-on): Re-add flexmember.
512
513         * lib/idcache.c (getuser): Remove all uses of the register keyword.
514         (getuidbyname, getgroup, getgidbyname): Likewise.
515
516         Use cleaner syntax: NULL rather than 0.
517         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
518
519 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
520
521         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
522         It mishandled the case where the group was missing.
523         Problem reported by Greg Schafer.
524         * modules/idcache: Likewise.
525
526 2006-11-18  Jim Meyering  <jim@meyering.net>
527
528         * check-module (%exempt_header): Add exception for some
529         conditionally-included headers.
530
531         * modules/i-ring (Depends-on): Add verify.
532         (License): Change to LGPL.
533
534 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
535
536         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
537         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
538         and inttostr.h.  Use snprintf rather than uinttostr, so that
539         LGPLed code doesn't depend on GPLed.
540
541 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
542
543         * modules/inline (License): Change from GPL to LGPL.
544
545 2006-11-17  Jim Meyering  <jim@meyering.net>
546
547         * modules/d-type (License): Switch to LGPL.
548
549 2006-11-15  Bruno Haible  <bruno@clisp.org>
550
551         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
552
553 2006-11-15  Eric Blake  <ebb9@byu.net>
554
555         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
556         the module dependency.
557
558 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
559             Bruno Haible  <bruno@clisp.org>
560
561         * gnulib-tool (func_create_testdir): Add license consistency check.
562
563 2006-11-15  Eric Blake  <ebb9@byu.net>
564
565         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
566         random "(cached)" in configure output.
567
568 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
569
570         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
571         test for conforming inttypes.h is both announced and cached.
572
573         * MODULES.html.sh (seen_modules, seen_files): New variables.
574         (func_module): Rewrite to use a few less gnulib-tool and sed
575         invocations.  Avoid a couple of quadratic algorithms for ...
576         (missed_modules, missed_files): ... these, with ...
577         (func_append, func_tmpdir): ... these new functions, from
578         gnulib-tool.  Analogously, install traps for cleanup.
579
580         * tests/test-gc.c (main): Remove unused variables.
581         * tests/test-read-file.c: Include stdlib.h, for 'free'.
582
583 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
584
585         * modules/inttostr (License): Change to LGPL.
586
587 2006-11-14  Eric Blake  <ebb9@byu.net>
588
589         * modules/tempname (License): Change to LGPL.
590
591 2006-11-14  Eric Blake  <ebb9@byu.net>
592
593         * doc/functions.texi (Function Portability): *printf functions on
594         Cygwin now understand all POSIX size specifiers.
595
596 2006-11-14  Bruno Haible  <bruno@clisp.org>
597
598         * modules/c-ctype (License): Change to LGPL.
599
600 2006-11-12  Bruno Haible  <bruno@clisp.org>
601
602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
603         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
604         for GNOME libraries, for which the include files are installed in
605         subdirectories of $prefix/include.
606
607 2006-11-12  Bruno Haible  <bruno@clisp.org>
608
609         * m4/lib-link.m4: Require at least autoconf-2.54.
610         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
611         name to underscores for the --with option.
612
613 2006-11-13  Bruno Haible  <bruno@clisp.org>
614
615         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
616         the tests directory.
617         Reported by Ralf Wildenhues.
618
619 2006-11-13  Bruno Haible  <bruno@clisp.org>
620
621         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
622         (func_emit_initmacro_end): Undo the override here.
623         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
624         Works around the famous automake error in coreutils.
625
626 2006-11-13  Eric Blake  <ebb9@byu.net>
627
628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
629         element, not its node.
630
631 2006-11-12  Bruno Haible  <bruno@clisp.org>
632
633         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
634         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
635
636 2006-11-12  Bruno Haible  <bruno@clisp.org>
637
638         * gnulib-tool: New option --local-symlink.
639         (func_usage): Document it.
640         (lsymbolic): New variable.
641         (func_import, func_create_testdir): If --symlink was not specified,
642         test whether --local-symlink was specified and the file comes from
643         the local_gnulib_dir.
644
645 2006-11-12  Bruno Haible  <bruno@clisp.org>
646
647         * gnulib-tool (func_ln): New function.
648         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
649
650 2006-11-12  Bruno Haible  <bruno@clisp.org>
651
652         Finish support for source files in subdirectories.
653         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
654         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
655         AUTOMAKE_OPTIONS.
656         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
657
658 2006-11-12  Bruno Haible  <bruno@clisp.org>
659
660         * gnulib-tool (func_get_automake_snippet): Synthesize also an
661         EXTRA_lib_SOURCES augmentation.
662         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
663
664 2006-11-12  Jim Meyering  <jim@meyering.net>
665
666         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
667         file descriptors.  This also averts a failure on systems with
668         native openat support when a traversed directory lacks "x" access.
669         * lib/fts_.h: Include "i-ring.h"
670         (struct FTS) [fts_fd_ring]: New member.
671         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
672         (FCHDIR): Add parentheses.
673         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
674         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
675         When descending, rather than simply closing the previous
676         fts_cwd_fd value, push that file descriptor onto the ring.
677         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
678         (fts_open): Initialize the new fd_ring member.
679         (fts_close): Clear the ring.
680         (fts_safe_changedir): When possible, use our new fd_ring to skip
681         the diropen and fstat and dev/ino comparison that would normally
682         accompany a virtual `chdir ("..")'.
683
684         * modules/fts (Depends-on): Add i-ring.
685         * modules/i-ring: New module.
686         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
687         * m4/i-ring.m4: New file.
688
689 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
690
691         * gnulib-tool (func_create_testdir): Fix replacement of
692         `build-aux' in configure.ac.  Run autotools in gltests
693         subdirectory.
694         (func_create_testdir, func_create_megatestdir, test): There is
695         no need for '--force' in most autotool invocations in a new
696         tree.  Actually fail the whole test if any of the tools, or the
697         configure or make stages fail.
698
699         Sync from Automake.
700         * build-aux/gnupload: Revert last change.  Add pointer to upload
701         instructions of the GNU Maintenance Instructions.
702         Suggestion by Karl Berry.
703
704 2006-11-10  Jim Meyering  <jim@meyering.net>
705
706         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
707
708 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
709
710         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
711         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
712         (bind_textdomain_codeset) [! ENABLE_NLS]:
713         Evaluate all the arguments.  That way, callers get compatible behavior
714         if the arguments have side effects.  Also, it avoids some GCC
715         diagnostics in some cases; Joel E. Denny reported problems when Bison
716         was configured with --enable-gcc-warnigs.
717
718 2006-11-10  Jim Meyering  <jim@meyering.net>
719
720         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
721         relevant options in CFLAGS (like -O, -fno-inline) are taken into
722         account.
723
724 2006-11-10  Jim Meyering  <jim@meyering.net>
725
726         * modules/inline: New file/module.
727         * modules/xalloc (Files): Remove m4/inline.m4.
728         (Depends-on): Add inline, instead.
729         * modules/oset: Likewise.
730         * modules/list: Likewise.
731
732 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
733
734         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
735         Problem reported by Matthew Woehlke.
736
737 2006-11-09  Bruno Haible  <bruno@clisp.org>
738
739         * lib/tempname.c (gen_tempname): Remove variant that invokes
740         __gen_tempname.
741         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
742         __gen_tempname.
743
744 2006-11-08  Bruno Haible  <bruno@clisp.org>
745
746         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
747         to 'yes' instead of 'cross-compiling'.
748
749 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
750
751         * lib/quotearg.h (quotearg_free): New decl.
752         * lib/quotearg.c (quotearg_free): New function.
753         (slot0, nslots, slotvec0, slotvec):
754         Now file-scope so that quotearg_free can get at them.
755
756 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
757
758         Sync from Automake.
759         * build-aux/gnupload: Add missing 'gnu' to example URL.
760         Report by Karl Berry.
761
762 2006-11-08  Bruno Haible  <bruno@clisp.org>
763
764         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
765         Suggested by Paul Eggert.
766
767 2006-11-08  Jim Meyering  <jim@meyering.net>
768
769         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
770         It's already included if !_LIBC.
771         (fts_safe_changedir): Add a comment.
772
773 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
774
775         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
776         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
777         Matthew Woehlke.
778
779         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
780         definitions up, to avoid colliding with change below.
781         (static_inline) [HAVE_INLINE]: New macro.
782         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
783         Provide extern decls when !HAVE_INLINE.  Do not define unless
784         static_inline is defined, either by us or by xmalloc.c.  Use
785         static_inline rather than static inline.
786         (XCALLOC): Optimize sizeof(T) = 1 case.
787         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
788
789 2006-11-07  Bruno Haible  <bruno@clisp.org>
790
791         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
792         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
793         AC_C_INLINE.
794         * modules/xalloc (Files): Add m4/inline.m4.
795
796 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
797
798         * README: Fix typo.
799         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
800         (Miscellanous Notes): ...from this.
801
802 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
803
804         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
805         Mention that offsetof should be used instead of sizeof.
806         From Bruno Haible.
807
808 2006-11-07  Bruno Haible  <bruno@clisp.org>
809
810         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
811
812 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
813
814         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
815         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
816         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
817         (gl_tree_add_before, gl_tree_add_after):
818         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
819         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
820         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
821         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
822         (gl_linked_add_after, gl_linked_add_at): Likewise.
823         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
824         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
825         (gl_tree_add_before, gl_tree_add_after): Likewise.
826         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
827         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
828         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
829
830 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
831
832         * lib/gl_oset.h: Use C comment style, not C++ comment style.
833
834 2006-11-06  Bruno Haible  <bruno@clisp.org>
835
836         * m4/inline.m4: New file.
837         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
838         * modules/list (Files): Add m4/inline.m4.
839         * modules/oset (Files): Likewise.
840
841 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
842
843         * lib/idcache.c: Include <stddef.h>, for offsetof.
844         (struct userid.name): Change from char * to a flexible array member.
845         All uses changed.
846         * modules/idcache (Depends-on): Add flexmember.
847
848         * MODULES.html.sh (Core language properties): New module flexmember.
849         * modules/flexmember, m4/flexmember.m4: New files.
850
851         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
852         inline functions that are identical with the old xnmalloc_inline,
853         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
854         that we can avoid some unnecessary integer multiplications and
855         divisions in the common case where the element size is known at
856         compile time.
857         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
858         needed.
859         (xnboundedmalloc): Remove.
860         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
861         arguments, for consistency with rest of this header.
862         (xcharalloc): Rewrite using XNMALLOC.
863         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
864         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
865         versions have been moved to lib/xalloc.h and renamed to be the
866         non-*_inline versions.
867         (xmalloc, xrealloc): Implement without reference to the xnmalloc
868         and xnrealloc functions, since those functions are now inline and
869         now call us.
870         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
871         renaming described above.
872         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
873         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
874         captures the dependency in AC_C_INLINE.
875
876         New module canonicalize-lgpl, proposed by Charles Wilson in
877         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
878         with a few small changes afterwards.
879         * MODULES.html.sh (File system functions): New module
880         canonicalize-lgpl.
881         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
882         and canonicalize_file_name.
883         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
884         * modules/canonicalize-lgpl: New files.
885
886 2006-11-05  Bruno Haible  <bruno@clisp.org>
887
888         * gnulib-tool (func_import, func_create_testdir): Create directories
889         also for files in subdirectories of lib/.
890
891 2006-11-05  Bruno Haible  <bruno@clisp.org>
892
893         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
894         ANSI C compliant.
895
896 2006-11-03  Bruno Haible  <bruno@clisp.org>
897
898         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
899         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
900         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
901         (xnboundedmalloc): New inline function.
902         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
903         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
904         xmalloc.
905         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
906         xmalloc.
907         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
908         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
909         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
910         xmalloc.
911         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
912         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
913         xmalloc.
914         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
915         gl_tree_add_after): Use XMALLOC instead of xmalloc.
916         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
917         xmalloc.
918         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
919         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
920         gl_tree_add_after): Use XMALLOC instead of xmalloc.
921         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
922         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
923         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
924         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
925
926 2006-11-03  Bruno Haible  <bruno@clisp.org>
927
928         * lib/c-ctype.h [C++]: Define functions without name mangling.
929         * lib/fwriteerror.h [C++]: Likewise.
930         * lib/gcd.h [C++]: Likewise.
931         * lib/linebreak.h [C++]: Likewise.
932
933 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
934
935         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
936         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
937         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
938         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
939         Check for functions and headers just once.
940         Check for declaration of canonicalize_file_name.
941         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
942
943 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
944
945         * gnulib-tool (func_import): Fix typo in actioncmd.
946
947 2006-11-02  Bruno Haible  <bruno@clisp.org>
948
949         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
950         newline sequence in the Makefile.am snippet as a space, like "make"
951         does.
952         Reported by Roger Persson <perrog@gmail.com>.
953
954 2006-11-01  Bruno Haible  <bruno@clisp.org>
955
956         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
957         already declared in <string.h>.
958         * lib/strcase.h (strncasecmp): Don't declare it if yes.
959
960 2006-11-01  Bruno Haible  <bruno@clisp.org>
961
962         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
963         * lib/strcase.h: Include <string.h>.
964         (strcasecmp): Define to rpl_strcasecmp here.
965
966 2006-11-01  Bruno Haible  <bruno@clisp.org>
967
968         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
969
970 2006-11-01  Eric Blake  <ebb9@byu.net>
971
972         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
973
974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
975
976 2006-10-29  Bruno Haible  <bruno@clisp.org>
977
978         Make it compile in C++ mode.
979         * lib/full-write.c (full_rw): Add a cast.
980
981 2006-11-01  Bruno Haible  <bruno@clisp.org>
982
983         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
984         be POSIX compliant.
985         Reported by Roger Persson <perrog@gmail.com>.
986
987 2006-11-01  Eric Blake  <ebb9@byu.net>
988
989         * lib/getopt_.h: Fix comments.
990
991 2006-10-31  Eric Blake  <ebb9@byu.net>
992
993         * modules/tmpdir (Depends-on): Add sys_stat.
994         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
995         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
996         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
997         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
998         tempname.
999
1000 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         Avoid some C++ diagnostics reported by Bruno Haible.
1003         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
1004         xmalloc.
1005         (quotearg_alloc): Use xcharalloc rather than xmalloc.
1006         (struct slotvec): Move to top level.
1007         (quotearg_n_options): Rewrite to avoid xmalloc.
1008         * lib/xalloc.h (xcharalloc): New function.
1009         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
1010         [defined __cplusplus]: Add function template that provides result
1011         type propagation.  This part of the change is from Bruno Haible.
1012
1013 2006-10-29  Bruno Haible  <bruno@clisp.org>
1014
1015         Make it compile in C++ mode.
1016         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
1017         * lib/strnlen1.c (strnlen1): Cast memchr result.
1018         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
1019         * lib/clean-temp.c (string_equals, string_hash): Add casts.
1020         (create_temp_dir): Rename local variable 'template'.
1021         (compile_csharp_using_sscli): Add cast.
1022         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
1023         * lib/findprog.c (find_in_path): Likewise.
1024         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
1025         * lib/wait-process.c (register_slave_subprocess): Likewise.
1026
1027 2006-10-22  Bruno Haible  <bruno@clisp.org>
1028
1029         * modules/tsearch: New file.
1030         * lib/tsearch.h: New file.
1031         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
1032         * m4/tsearch.m4: New file.
1033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
1034
1035 2006-10-29  Eric Blake  <ebb9@byu.net>
1036
1037         * lib/arcfour.c: Assume config.h.
1038         * lib/arctwo.c: Likewise.
1039         * lib/base64.c: Likewise.
1040         * lib/check-version.c: Likewise.
1041         * lib/crc.c: Likewise.
1042         * lib/des.c: Likewise.
1043         * lib/gc-gnulib.c: Likewise.
1044         * lib/gc-libgcrypt.c: Likewise.
1045         * lib/gc-pbkdf2-sha1.c: Likewise.
1046         * lib/getaddrinfo.c: Likewise.
1047         * lib/getdelim.c: Likewise.
1048         * lib/getline.c: Likewise.
1049         * lib/hmac-md5.c: Likewise.
1050         * lib/hmac-sha1.c: Likewise.
1051         * lib/iconvme.c: Likewise.
1052         * lib/md2.c: Likewise.
1053         * lib/md4.c: Likewise.
1054         * lib/memxor.c: Likewise.
1055         * lib/read-file.c: Likewise.
1056         * lib/readline.c: Likewise.
1057         * lib/rijndael-alg-fst.c: Likewise.
1058         * lib/rijndael-api-fst.c: Likewise.
1059         * lib/xgetdomainname.c: Likewise.
1060
1061 2006-10-28  Eric Blake  <ebb9@byu.net>
1062
1063         * lib/xstrndup.c: Assume config.h.
1064
1065 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
1068         stat-macros.h is now for our own macros, whereas stat_h is for
1069         macros in the <sys/stat.h> name space.
1070         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
1071         (STAT_MACROS_H): Remove.
1072         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
1073         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
1074         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
1075         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
1076         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
1077         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
1078         Move these macros to ...
1079         * lib/stat_.h: here.  Don't include stat-macros.h.
1080         * lib/canonicalize.c: Don't include stat-macros.h.
1081         * lib/chown.c: Likewise.
1082         * lib/euidaccess.c: Likewise.
1083         * lib/file-type.c: Likewise.
1084         * lib/filemode.c: Likewise.
1085         * lib/glob.c: Likewise.
1086         * lib/isapipe.c: Likewise.
1087         * lib/lchown.c: Likewise.
1088         * lib/lstat.c: Likewise.
1089         * lib/mkdir-p.c: Likewise.
1090         * lib/rmdir.c: Likewise.
1091         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
1092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
1093         unless mkdir isn't declared, to speed up 'configure'.
1094         Always create sys/stat.h, since it's unlikely any real sys/stat.h
1095         would define all the S_* symbols.
1096         * modules/canonicalize (Depends-on):
1097         Depend on sys_stat, not stat-macros.
1098         * modules/chown: Likewise.
1099         * modules/euidaccess: Likewise.
1100         * modules/filemode: Likewise.
1101         * modules/file-type: Likewise.
1102         * modules/glob: Likewise.
1103         * modules/isapipe: Likewise.
1104         * modules/lchown: Likewise.
1105         * modules/lstat: Likewise.
1106         * modules/mkancesdirs: Likewise.
1107         * modules/rmdir: Likewise.
1108         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
1109         * modules/modechange: Likewise.
1110         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
1111         (configure.ac): Remove gl_STAT_MACROS.
1112         * modules/sys_stat (Depends-on): Remove stat-macros.
1113
1114 2006-10-27  Bruno Haible  <bruno@clisp.org>
1115
1116         * m4/signed.m4: Remove file.
1117         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
1118         invocation.
1119         * modules/vasnprintf (Files): Remove m4/signed.m4.
1120
1121 2006-10-27  Bruno Haible  <bruno@clisp.org>
1122
1123         Update to GNU gettext 0.16.
1124         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
1125         m4/inttypes-h.m4, m4/signed.m4.
1126         * m4/gettext.m4: Update to GNU gettext 0.16.
1127         * m4/intl.m4: New file, from GNU gettext.
1128         * m4/intldir.m4: New file, from GNU gettext.
1129         * config/srclist.txt: Update
1130
1131 2006-10-27  Eric Blake  <ebb9@byu.net>
1132
1133         * MODULES.html.sh: Document tempname.
1134         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
1135         dependencies.
1136         (Files): Move lib/tempname.c...
1137         * modules/tempname: ...to this new module.
1138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
1139         (gl_PREREQ_TEMPNAME): Move...
1140         * m4/tempname.m4: ...to this new file.
1141         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
1142         * modules/sys_stat (Depends-on): Add stat-macros.
1143         * lib/stat_.h (includes): Pick up stat macros.
1144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
1145         if stat macros are broken.
1146         * lib/tempname.c (includes): No need to include "stat-macros.h".
1147         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
1148         (direxists, __path_search) [!_LIBC]: Don't compile these in
1149         gnulib; the tmpdir module covers that.
1150         * lib/tempname.h: New file.
1151
1152 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         * COPYING: Explain how gnulib-tool converts licence headers.
1155         Almost all wording by Eric Blake.
1156
1157 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1158
1159         * lib/mbchar.h (is_basic_table): Make read-only.
1160         * lib/mbchar.c (is_basic_table): Likewise.
1161         Reported by John Darrington.
1162
1163 2006-10-25  Bruno Haible  <bruno@clisp.org>
1164
1165         * lib/progname.h (set_program_name): Undefine before defining.
1166
1167 2006-10-25  Bruno Haible  <bruno@clisp.org>
1168
1169         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
1170         false for non-gcc C++ compilers.
1171         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1172
1173 2006-10-24  Bruno Haible  <bruno@clisp.org>
1174
1175         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
1176         iconv implementations like Irix iconv.
1177
1178 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1179
1180         * modules/vararrays: New file.
1181         * m4/vararrays.m4: New file, taken from diffutils.
1182         * MODULES.html.sh: New module vararrays.
1183
1184 2006-10-24  Karl Berry  <karl@gnu.org>
1185
1186         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
1187         Don't call GNU Unix.
1188
1189 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1190
1191         * users.txt: Add Libtool.
1192
1193         Sync from Libtool:
1194
1195         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
1198         to gnulib's policy of including config.h unconditionally.
1199
1200 2006-10-24  Bruno Haible  <bruno@clisp.org>
1201
1202         * modules/wcwidth (Files): Add m4/wint_t.m4.
1203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
1204         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
1205
1206 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1207
1208         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
1209         to pacify GCC with some -W flags enabled.  Problem reported by
1210         Bruno Haible.
1211
1212 2006-10-24  Jim Meyering  <jim@meyering.net>
1213
1214         * MODULES.html.sh: Remove uinttostr.  It's not a module.
1215         Reported by Karl Berry.
1216
1217 2006-10-23  Bruno Haible  <bruno@clisp.org>
1218
1219         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
1220
1221 2006-10-24  Bruno Haible  <bruno@clisp.org>
1222
1223         * lib/gl_list.h: Use C comment style, not C++ comment style.
1224
1225 2006-10-23  Eric Blake  <ebb9@byu.net>
1226
1227         * lib/getaddrinfo.c (includes): Add missing include.
1228
1229 2006-10-23  Bruno Haible  <bruno@clisp.org>
1230             Paul Eggert  <eggert@cs.ucla.edu>
1231
1232         Ability to rename obstack_free.
1233         * lib/obstack.h (__obstack_free): New macro. Declare instead of
1234         obstack_free.
1235         (obstack_free): Invoke the __obstack_free macro.
1236         * lib/obstack.c (obstack_free): Use __obstack_free macro.
1237
1238 2006-10-23  Bruno Haible  <bruno@clisp.org>
1239             Paul Eggert  <eggert@cs.ucla.edu>
1240
1241         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
1242         __argc, __argv from the declaration. (They are defined as macros on
1243         mingw.)
1244
1245 2006-10-22  Bruno Haible  <bruno@clisp.org>
1246
1247         * doc/gnulib-intro.texi: New file.
1248         * doc/gnulib.texi: Include it.
1249
1250 2006-10-21  Bruno Haible  <bruno@clisp.org>
1251
1252         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
1253         "Introduction", "Miscellanous Notes", "Particular Modules".
1254
1255 2006-10-21  Bruno Haible  <bruno@clisp.org>
1256
1257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1258         Change mostlyclean-local rule to avoid sh syntax error from bash
1259         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
1260
1261 2006-10-23  Jim Meyering  <jim@meyering.net>
1262
1263         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
1264         in place of snprintf.
1265
1266         * modules/inttostr (Files): Add lib/uinttostr.c.
1267         * lib/uinttostr.c (inttostr): New file/function.
1268         * lib/inttostr.h (uinttostr): Declare.
1269         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
1270         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
1271         Add uinttostr.
1272         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
1273
1274 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         * lib/canonicalize.c (ELOOP): Define if not already defined.
1277         Problem reported by Bruno Haible in
1278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
1279
1280 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1281
1282         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
1283         Problem reported by Perry Smith and Ville Laurikari.
1284
1285         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
1286         uses.
1287
1288 2006-10-19  Bruno Haible  <bruno@clisp.org>
1289
1290         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
1291         for mingw.
1292
1293 2006-10-19  Bruno Haible  <bruno@clisp.org>
1294
1295         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
1296         Needed for mingw.
1297
1298 2006-10-19  Bruno Haible  <bruno@clisp.org>
1299
1300         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
1301
1302 2006-10-19  Bruno Haible  <bruno@clisp.org>
1303
1304         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
1305         it.
1306
1307 2006-10-19  Bruno Haible  <bruno@clisp.org>
1308
1309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
1310         invocation.
1311
1312 2006-10-19  Bruno Haible  <bruno@clisp.org>
1313
1314         * gnulib-tool (func_create_testdir): Don't include ftruncate and
1315         mountlist by default.
1316
1317 2006-10-16  Bruno Haible  <bruno@clisp.org>
1318
1319         * lib/c-strstr.c: Include c-strstr.h.
1320
1321 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1322
1323         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
1324         in a slash.
1325
1326 2006-10-18  Bruno Haible  <bruno@clisp.org>
1327
1328         * lib/lock.h [C++]: Wrap definitions in extern "C".
1329
1330 2006-10-18  Bruno Haible  <bruno@clisp.org>
1331
1332         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
1333         gl_LIBOBJS list.
1334
1335 2006-10-18  Bruno Haible  <bruno@clisp.org>
1336
1337         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
1338
1339 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1340
1341         * lib/xstrtol.h: Include gettext.h.
1342         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
1343         Problem reported by Eric Blake.
1344         * modules/xstrtol (Depends-on): Add gettext-h.
1345
1346 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
1347
1348         * lib/strftime.c (advance): New macro.
1349         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
1350         incomplete type, so you can't add 0 to it.  Problem and patch
1351         reported by Eelco Dolstra for dietlibc.
1352
1353 2006-10-18  Jim Meyering  <jim@meyering.net>
1354
1355         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
1356         type for a local, and rename it: s/up/user_proc/.
1357
1358 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
1359
1360         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
1361         READ_UTMP_USER_PROCESS.
1362         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
1363
1364 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
1365
1366         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
1367         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
1368
1369 2006-10-17  Eric Blake  <ebb9@byu.net>
1370
1371         * lib/sigprocmask.c (sigprocmask): Fix typo.
1372
1373         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
1374
1375         * modules/clean-temp (Makefile.am): Don't add to make output...
1376         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
1377         config.h.
1378
1379 2006-10-17  Bruno Haible  <bruno@clisp.org>
1380
1381         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
1382         differently if DEFAULT_TEXT_DOMAIN is set.
1383
1384 2006-10-16  Bruno Haible  <bruno@clisp.org>
1385
1386         * lib/clean-temp.c: Include fwriteerror.h.
1387
1388 2006-10-16  Bruno Haible  <bruno@clisp.org>
1389
1390         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
1391
1392 2006-10-16  Bruno Haible  <bruno@clisp.org>
1393
1394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
1395         * lib/sigprocmask.h: Include <sys/types.h>.
1396         (sigset_t): Use the system's definition if present.
1397
1398 2006-10-17  Eric Blake  <ebb9@byu.net>
1399
1400         * lib/xvasprintf.c (includes): Assume config.h.
1401         * lib/xasprintf.c (includes): Likewise.
1402
1403 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
1406         at least as wide as intmax_t.
1407
1408 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
1409
1410         (Imported from Automake.)
1411         * build-aux/gnupload: Update to version 1.1 of directive file.
1412
1413 2006-10-16  Eric Blake  <ebb9@byu.net>
1414
1415         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
1416         match Automake 1.10a.
1417
1418 2006-10-14  Bruno Haible  <bruno@clisp.org>
1419
1420         * modules/sigprocmask: New file.
1421         * lib/sigprocmask.h: New file.
1422         * lib/sigprocmask.c: New file.
1423         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
1424         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
1425         request sigprocmask.o.
1426         (gl_PREREQ_SIGPROCMASK): New macro.
1427         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
1428         (Depends-on): Add sigprocmask.
1429         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
1430         gt_SIGNALBLOCKING. Test for 'raise' only once.
1431         * lib/fatal-signal.c: Include sigprocmask.h.
1432         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
1433         unblock_fatal_signals): Define always.
1434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1435         sigprocmask.
1436
1437 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         Sync from Automake.
1440         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
1441         which incorrectly sets the mode of an existing destination
1442         directory.  In some cases the unpatched install-sh could do the
1443         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
1444         system.  We hope this is rare in practice, but it's clearly worth
1445         fixing.  Problem reported by Alex Unleashed in
1446         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
1447         Also, don't bother to check for -m bugs unless we're using -m;
1448         suggested by Stepan Kasal.
1449
1450 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1451
1452         Sync from Automake.
1453         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
1454         `-c' flag, so they appear at the same position as in %FASTDEP%
1455         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
1456         which ignores unknown options only after the first non-option.
1457         Bug report against M4 by Nelson H. F. Beebe.
1458
1459 2006-10-13  Jim Meyering  <jim@meyering.net>
1460
1461         Fix a bug in yesterday's change.
1462         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
1463         p->fts_statp->st_dev would be used uninitialized.
1464         Ensures that we always call fts_stat on the very first entry.
1465         Miklos Szeredi reported that find -xdev stopped working.
1466
1467 2006-10-12  Bruno Haible  <bruno@clisp.org>
1468
1469         * gnulib-tool (func_get_automake_snippet): Append an automatically
1470         computed EXTRA_DIST augmentation.
1471         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
1472         * modules/alloca-opt (Makefile.am): Likewise.
1473         * modules/allocsa (Makefile.am): Likewise.
1474         * modules/arcfour (Makefile.am): Likewise.
1475         * modules/arctwo (Makefile.am): Likewise.
1476         * modules/argmatch (Makefile.am): Likewise.
1477         * modules/argz (Makefile.am): Likewise.
1478         * modules/atexit (Makefile.am): Likewise.
1479         * modules/backupfile (Makefile.am): Likewise.
1480         * modules/byteswap (Makefile.am): Likewise.
1481         * modules/c-strtod (Makefile.am): Likewise.
1482         * modules/c-strtold (Makefile.am): Likewise.
1483         * modules/calloc (Makefile.am): Likewise.
1484         * modules/canon-host (Makefile.am): Likewise.
1485         * modules/canonicalize (Makefile.am): Likewise.
1486         * modules/chdir-long (Makefile.am): Likewise.
1487         * modules/chdir-safer (Makefile.am): Likewise.
1488         * modules/check-version (Makefile.am): Likewise.
1489         * modules/chown (Makefile.am): Likewise.
1490         * modules/cloexec (Makefile.am): Likewise.
1491         * modules/close-stream (Makefile.am): Likewise.
1492         * modules/closeout (Makefile.am): Likewise.
1493         * modules/crc (Makefile.am): Likewise.
1494         * modules/csharpexec (Makefile.am): Likewise.
1495         * modules/cycle-check (Makefile.am): Likewise.
1496         * modules/des (Makefile.am): Likewise.
1497         * modules/dev-ino (Makefile.am): Likewise.
1498         * modules/dirfd (Makefile.am): Likewise.
1499         * modules/dirname (Makefile.am): Likewise.
1500         * modules/dup2 (Makefile.am): Likewise.
1501         * modules/eealloc (Makefile.am): Likewise.
1502         * modules/error (Makefile.am): Likewise.
1503         * modules/euidaccess (Makefile.am): Likewise.
1504         * modules/exclude (Makefile.am): Likewise.
1505         * modules/exitfail (Makefile.am): Likewise.
1506         * modules/fcntl-safer (Makefile.am): Likewise.
1507         * modules/fcntl (Makefile.am): Likewise.
1508         * modules/file-type (Makefile.am): Likewise.
1509         * modules/fileblocks (Makefile.am): Likewise.
1510         * modules/filemode (Makefile.am): Likewise.
1511         * modules/filenamecat (Makefile.am): Likewise.
1512         * modules/fnmatch (Makefile.am): Likewise.
1513         * modules/fopen-safer (Makefile.am): Likewise.
1514         * modules/fpending (Makefile.am): Likewise.
1515         * modules/fprintftime (Makefile.am): Likewise.
1516         * modules/free (Makefile.am): Likewise.
1517         * modules/fsusage (Makefile.am): Likewise.
1518         * modules/ftruncate (Makefile.am): Likewise.
1519         * modules/fts (Makefile.am): Likewise.
1520         * modules/gc-arcfour (Makefile.am): Likewise.
1521         * modules/gc-des (Makefile.am): Likewise.
1522         * modules/gc-hmac-md5 (Makefile.am): Likewise.
1523         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
1524         * modules/gc-md4 (Makefile.am): Likewise.
1525         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1526         * modules/gc-sha1 (Makefile.am): Likewise.
1527         * modules/gc (Makefile.am): Likewise.
1528         * modules/getaddrinfo (Makefile.am): Likewise.
1529         * modules/getcwd (Makefile.am): Likewise.
1530         * modules/getdelim (Makefile.am): Likewise.
1531         * modules/getdomainname (Makefile.am): Likewise.
1532         * modules/getgroups (Makefile.am): Likewise.
1533         * modules/gethostname (Makefile.am): Likewise.
1534         * modules/gethrxtime (Makefile.am): Likewise.
1535         * modules/getline (Makefile.am): Likewise.
1536         * modules/getloadavg (Makefile.am): Likewise.
1537         * modules/getlogin_r (Makefile.am): Likewise.
1538         * modules/getndelim2 (Makefile.am): Likewise.
1539         * modules/getopt (Makefile.am): Likewise.
1540         * modules/getpagesize (Makefile.am): Likewise.
1541         * modules/getpass-gnu (Makefile.am): Likewise.
1542         * modules/getpass (Makefile.am): Likewise.
1543         * modules/getsubopt (Makefile.am): Likewise.
1544         * modules/gettime (Makefile.am): Likewise.
1545         * modules/gettimeofday (Makefile.am): Likewise.
1546         * modules/getugroups (Makefile.am): Likewise.
1547         * modules/getusershell (Makefile.am): Likewise.
1548         * modules/glob (Makefile.am): Likewise.
1549         * modules/group-member (Makefile.am): Likewise.
1550         * modules/hard-locale (Makefile.am): Likewise.
1551         * modules/hash (Makefile.am): Likewise.
1552         * modules/hmac-md5 (Makefile.am): Likewise.
1553         * modules/hmac-sha1 (Makefile.am): Likewise.
1554         * modules/human (Makefile.am): Likewise.
1555         * modules/idcache (Makefile.am): Likewise.
1556         * modules/imaxabs (Makefile.am): Likewise.
1557         * modules/imaxdiv (Makefile.am): Likewise.
1558         * modules/inet_ntop (Makefile.am): Likewise.
1559         * modules/inet_pton (Makefile.am): Likewise.
1560         * modules/intprops (Makefile.am): Likewise.
1561         * modules/inttostr (Makefile.am): Likewise.
1562         * modules/inttypes (Makefile.am): Likewise.
1563         * modules/isapipe (Makefile.am): Likewise.
1564         * modules/javaversion (Makefile.am): Likewise.
1565         * modules/lchmod (Makefile.am): Likewise.
1566         * modules/lchown (Makefile.am): Likewise.
1567         * modules/localcharset (Makefile.am): Likewise.
1568         * modules/long-options (Makefile.am): Likewise.
1569         * modules/lstat (Makefile.am): Likewise.
1570         * modules/malloc (Makefile.am): Likewise.
1571         * modules/mathl (Makefile.am): Likewise.
1572         * modules/mbchar (Makefile.am): Likewise.
1573         * modules/md2 (Makefile.am): Likewise.
1574         * modules/md4 (Makefile.am): Likewise.
1575         * modules/md5 (Makefile.am): Likewise.
1576         * modules/memcasecmp (Makefile.am): Likewise.
1577         * modules/memchr (Makefile.am): Likewise.
1578         * modules/memcmp (Makefile.am): Likewise.
1579         * modules/memcoll (Makefile.am): Likewise.
1580         * modules/memcpy (Makefile.am): Likewise.
1581         * modules/memmem (Makefile.am): Likewise.
1582         * modules/memmove (Makefile.am): Likewise.
1583         * modules/mempcpy (Makefile.am): Likewise.
1584         * modules/memrchr (Makefile.am): Likewise.
1585         * modules/memset (Makefile.am): Likewise.
1586         * modules/memxor (Makefile.am): Likewise.
1587         * modules/mkancesdirs (Makefile.am): Likewise.
1588         * modules/mkdir-p (Makefile.am): Likewise.
1589         * modules/mkdir (Makefile.am): Likewise.
1590         * modules/mkdtemp (Makefile.am): Likewise.
1591         * modules/mkstemp (Makefile.am): Likewise.
1592         * modules/mktime (Makefile.am): Likewise.
1593         * modules/modechange (Makefile.am): Likewise.
1594         * modules/mountlist (Makefile.am): Likewise.
1595         * modules/nanosleep (Makefile.am): Likewise.
1596         * modules/obstack (Makefile.am): Likewise.
1597         * modules/openat (Makefile.am): Likewise.
1598         * modules/pagealign_alloc (Makefile.am): Likewise.
1599         * modules/pathmax (Makefile.am): Likewise.
1600         * modules/physmem (Makefile.am): Likewise.
1601         * modules/poll (Makefile.am): Likewise.
1602         * modules/posixtm (Makefile.am): Likewise.
1603         * modules/posixver (Makefile.am): Likewise.
1604         * modules/putenv (Makefile.am): Likewise.
1605         * modules/quote (Makefile.am): Likewise.
1606         * modules/quotearg (Makefile.am): Likewise.
1607         * modules/raise (Makefile.am): Likewise.
1608         * modules/read-file (Makefile.am): Likewise.
1609         * modules/readline (Makefile.am): Likewise.
1610         * modules/readlink (Makefile.am): Likewise.
1611         * modules/readtokens (Makefile.am): Likewise.
1612         * modules/readutmp (Makefile.am): Likewise.
1613         * modules/realloc (Makefile.am): Likewise.
1614         * modules/regex (Makefile.am): Likewise.
1615         * modules/rename-dest-slash (Makefile.am): Likewise.
1616         * modules/rename (Makefile.am): Likewise.
1617         * modules/rijndael (Makefile.am): Likewise.
1618         * modules/rmdir (Makefile.am): Likewise.
1619         * modules/rpmatch (Makefile.am): Likewise.
1620         * modules/safe-read (Makefile.am): Likewise.
1621         * modules/safe-write (Makefile.am): Likewise.
1622         * modules/same-inode (Makefile.am): Likewise.
1623         * modules/same (Makefile.am): Likewise.
1624         * modules/save-cwd (Makefile.am): Likewise.
1625         * modules/savedir (Makefile.am): Likewise.
1626         * modules/setenv (Makefile.am): Likewise.
1627         * modules/settime (Makefile.am): Likewise.
1628         * modules/sha1 (Makefile.am): Likewise.
1629         * modules/sig2str (Makefile.am): Likewise.
1630         * modules/snprintf (Makefile.am): Likewise.
1631         * modules/stat-macros (Makefile.am): Likewise.
1632         * modules/stat-time (Makefile.am): Likewise.
1633         * modules/stdbool (Makefile.am): Likewise.
1634         * modules/stdint (Makefile.am): Likewise.
1635         * modules/stdlib-safer (Makefile.am): Likewise.
1636         * modules/stpcpy (Makefile.am): Likewise.
1637         * modules/stpncpy (Makefile.am): Likewise.
1638         * modules/strcase (Makefile.am): Likewise.
1639         * modules/strcasestr (Makefile.am): Likewise.
1640         * modules/strchrnul (Makefile.am): Likewise.
1641         * modules/strcspn (Makefile.am): Likewise.
1642         * modules/strdup (Makefile.am): Likewise.
1643         * modules/strerror (Makefile.am): Likewise.
1644         * modules/strftime (Makefile.am): Likewise.
1645         * modules/strndup (Makefile.am): Likewise.
1646         * modules/strnlen (Makefile.am): Likewise.
1647         * modules/strpbrk (Makefile.am): Likewise.
1648         * modules/strsep (Makefile.am): Likewise.
1649         * modules/strstr (Makefile.am): Likewise.
1650         * modules/strtod (Makefile.am): Likewise.
1651         * modules/strtoimax (Makefile.am): Likewise.
1652         * modules/strtok_r (Makefile.am): Likewise.
1653         * modules/strtol (Makefile.am): Likewise.
1654         * modules/strtoll (Makefile.am): Likewise.
1655         * modules/strtoul (Makefile.am): Likewise.
1656         * modules/strtoull (Makefile.am): Likewise.
1657         * modules/strtoumax (Makefile.am): Likewise.
1658         * modules/strverscmp (Makefile.am): Likewise.
1659         * modules/sys_socket (Makefile.am): Likewise.
1660         * modules/sys_stat (Makefile.am): Likewise.
1661         * modules/sysexits (Makefile.am): Likewise.
1662         * modules/time_r (Makefile.am): Likewise.
1663         * modules/timegm (Makefile.am): Likewise.
1664         * modules/timespec (Makefile.am): Likewise.
1665         * modules/tmpfile-safer (Makefile.am): Likewise.
1666         * modules/trim (Makefile.am): Likewise.
1667         * modules/unistd-safer (Makefile.am): Likewise.
1668         * modules/unlinkdir (Makefile.am): Likewise.
1669         * modules/unlocked-io (Makefile.am): Likewise.
1670         * modules/userspec (Makefile.am): Likewise.
1671         * modules/utime (Makefile.am): Likewise.
1672         * modules/utimecmp (Makefile.am): Likewise.
1673         * modules/utimens (Makefile.am): Likewise.
1674         * modules/vasnprintf (Makefile.am): Likewise.
1675         * modules/vasprintf (Makefile.am): Likewise.
1676         * modules/vsnprintf (Makefile.am): Likewise.
1677         * modules/xalloc (Makefile.am): Likewise.
1678         * modules/xgetcwd (Makefile.am): Likewise.
1679         * modules/xnanosleep (Makefile.am): Likewise.
1680         * modules/xreadlink (Makefile.am): Likewise.
1681         * modules/xstrtod (Makefile.am): Likewise.
1682         * modules/xstrtol (Makefile.am): Likewise.
1683         * modules/xstrtold (Makefile.am): Likewise.
1684         * modules/yesno (Makefile.am): Likewise.
1685         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
1686
1687 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1688
1689         * modules/error (Makefile.am): Distribute files through
1690         EXTRA_DIST, not lib_SOURCES.
1691
1692 2006-10-12  Eric Blake  <ebb9@byu.net>
1693
1694         * modules/error (Makefile.am): Distribute files in /lib.
1695         * modules/obstack (Makefile.am): Likewise.
1696
1697 2006-10-12  Bruno Haible  <bruno@clisp.org>
1698
1699         * modules/acl (Makefile.am): Distribute all files in lib/ through
1700         EXTRA_DIST.
1701         * modules/arcfour (Makefile.am): Likewise.
1702         * modules/arctwo (Makefile.am): Likewise.
1703         * modules/argmatch (Makefile.am): Likewise.
1704         * modules/argz (Makefile.am): Likewise.
1705         * modules/atexit (Makefile.am): Likewise.
1706         * modules/backupfile (Makefile.am): Likewise.
1707         * modules/c-strtod (Makefile.am): Likewise.
1708         * modules/c-strtold (Makefile.am): Likewise.
1709         * modules/calloc (Makefile.am): Likewise.
1710         * modules/canon-host (Makefile.am): Likewise.
1711         * modules/canonicalize (Makefile.am): Likewise.
1712         * modules/chdir-long (Makefile.am): Likewise.
1713         * modules/chdir-safer (Makefile.am): Likewise.
1714         * modules/check-version (Makefile.am): Likewise.
1715         * modules/chown (Makefile.am): Likewise.
1716         * modules/cloexec (Makefile.am): Likewise.
1717         * modules/close-stream (Makefile.am): Likewise.
1718         * modules/closeout (Makefile.am): Likewise.
1719         * modules/crc (Makefile.am): Likewise.
1720         * modules/cycle-check (Makefile.am): Likewise.
1721         * modules/des (Makefile.am): Likewise.
1722         * modules/dirfd (Makefile.am): Likewise.
1723         * modules/dirname (Makefile.am): Likewise.
1724         * modules/dup2 (Makefile.am): Likewise.
1725         * modules/euidaccess (Makefile.am): Likewise.
1726         * modules/exclude (Makefile.am): Likewise.
1727         * modules/exitfail (Makefile.am): Likewise.
1728         * modules/fcntl-safer (Makefile.am): Likewise.
1729         * modules/file-type (Makefile.am): Likewise.
1730         * modules/fileblocks (Makefile.am): Likewise.
1731         * modules/filemode (Makefile.am): Likewise.
1732         * modules/filenamecat (Makefile.am): Likewise.
1733         * modules/fnmatch (Makefile.am): Likewise.
1734         * modules/fopen-safer (Makefile.am): Likewise.
1735         * modules/fpending (Makefile.am): Likewise.
1736         * modules/fprintftime (Makefile.am): Likewise.
1737         * modules/free (Makefile.am): Likewise.
1738         * modules/fsusage (Makefile.am): Likewise.
1739         * modules/ftruncate (Makefile.am): Likewise.
1740         * modules/fts (Makefile.am): Likewise.
1741         * modules/gc (Makefile.am): Likewise.
1742         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1743         * modules/getaddrinfo (Makefile.am): Likewise.
1744         * modules/getcwd (Makefile.am): Likewise.
1745         * modules/getdelim (Makefile.am): Likewise.
1746         * modules/getdomainname (Makefile.am): Likewise.
1747         * modules/getgroups (Makefile.am): Likewise.
1748         * modules/gethostname (Makefile.am): Likewise.
1749         * modules/gethrxtime (Makefile.am): Likewise.
1750         * modules/getline (Makefile.am): Likewise.
1751         * modules/getloadavg (Makefile.am): Likewise.
1752         * modules/getlogin_r (Makefile.am): Likewise.
1753         * modules/getopt (Makefile.am): Likewise.
1754         * modules/getpass (Makefile.am): Likewise.
1755         * modules/getpass-gnu (Makefile.am): Likewise.
1756         * modules/getsubopt (Makefile.am): Likewise.
1757         * modules/gettime (Makefile.am): Likewise.
1758         * modules/gettimeofday (Makefile.am): Likewise.
1759         * modules/getugroups (Makefile.am): Likewise.
1760         * modules/getusershell (Makefile.am): Likewise.
1761         * modules/glob (Makefile.am): Likewise.
1762         * modules/group-member (Makefile.am): Likewise.
1763         * modules/hard-locale (Makefile.am): Likewise.
1764         * modules/hash (Makefile.am): Likewise.
1765         * modules/hmac-md5 (Makefile.am): Likewise.
1766         * modules/hmac-sha1 (Makefile.am): Likewise.
1767         * modules/human (Makefile.am): Likewise.
1768         * modules/idcache (Makefile.am): Likewise.
1769         * modules/imaxabs (Makefile.am): Likewise.
1770         * modules/imaxdiv (Makefile.am): Likewise.
1771         * modules/inet_ntop (Makefile.am): Likewise.
1772         * modules/inet_pton (Makefile.am): Likewise.
1773         * modules/inttostr (Makefile.am): Likewise.
1774         * modules/isapipe (Makefile.am): Likewise.
1775         * modules/lchown (Makefile.am): Likewise.
1776         * modules/long-options (Makefile.am): Likewise.
1777         * modules/lstat (Makefile.am): Likewise.
1778         * modules/malloc (Makefile.am): Likewise.
1779         * modules/mathl (Makefile.am): Likewise.
1780         * modules/mbchar (Makefile.am): Likewise.
1781         * modules/md2 (Makefile.am): Likewise.
1782         * modules/md4 (Makefile.am): Likewise.
1783         * modules/md5 (Makefile.am): Likewise.
1784         * modules/memcasecmp (Makefile.am): Likewise.
1785         * modules/memchr (Makefile.am): Likewise.
1786         * modules/memcmp (Makefile.am): Likewise.
1787         * modules/memcoll (Makefile.am): Likewise.
1788         * modules/memcpy (Makefile.am): Likewise.
1789         * modules/memmem (Makefile.am): Likewise.
1790         * modules/memmove (Makefile.am): Likewise.
1791         * modules/mempcpy (Makefile.am): Likewise.
1792         * modules/memrchr (Makefile.am): Likewise.
1793         * modules/memset (Makefile.am): Likewise.
1794         * modules/memxor (Makefile.am): Likewise.
1795         * modules/mkancesdirs (Makefile.am): Likewise.
1796         * modules/mkdir (Makefile.am): Likewise.
1797         * modules/mkdir-p (Makefile.am): Likewise.
1798         * modules/mkdtemp (Makefile.am): Likewise.
1799         * modules/mkstemp (Makefile.am): Likewise.
1800         * modules/mktime (Makefile.am): Likewise.
1801         * modules/modechange (Makefile.am): Likewise.
1802         * modules/mountlist (Makefile.am): Likewise.
1803         * modules/nanosleep (Makefile.am): Likewise.
1804         * modules/openat (Makefile.am): Likewise.
1805         * modules/pagealign_alloc (Makefile.am): Likewise.
1806         * modules/physmem (Makefile.am): Likewise.
1807         * modules/poll (Makefile.am): Likewise.
1808         * modules/posixtm (Makefile.am): Likewise.
1809         * modules/posixver (Makefile.am): Likewise.
1810         * modules/putenv (Makefile.am): Likewise.
1811         * modules/quote (Makefile.am): Likewise.
1812         * modules/quotearg (Makefile.am): Likewise.
1813         * modules/raise (Makefile.am): Likewise.
1814         * modules/read-file (Makefile.am): Likewise.
1815         * modules/readline (Makefile.am): Likewise.
1816         * modules/readlink (Makefile.am): Likewise.
1817         * modules/readtokens (Makefile.am): Likewise.
1818         * modules/readutmp (Makefile.am): Likewise.
1819         * modules/realloc (Makefile.am): Likewise.
1820         * modules/regex (Makefile.am): Likewise.
1821         * modules/rename (Makefile.am): Likewise.
1822         * modules/rename-dest-slash (Makefile.am): Likewise.
1823         * modules/rijndael (Makefile.am): Likewise.
1824         * modules/rmdir (Makefile.am): Likewise.
1825         * modules/rpmatch (Makefile.am): Likewise.
1826         * modules/safe-read (Makefile.am): Likewise.
1827         * modules/safe-write (Makefile.am): Likewise.
1828         * modules/same (Makefile.am): Likewise.
1829         * modules/save-cwd (Makefile.am): Likewise.
1830         * modules/savedir (Makefile.am): Likewise.
1831         * modules/setenv (Makefile.am): Likewise.
1832         * modules/settime (Makefile.am): Likewise.
1833         * modules/sha1 (Makefile.am): Likewise.
1834         * modules/sig2str (Makefile.am): Likewise.
1835         * modules/snprintf (Makefile.am): Likewise.
1836         * modules/stdlib-safer (Makefile.am): Likewise.
1837         * modules/stpcpy (Makefile.am): Likewise.
1838         * modules/stpncpy (Makefile.am): Likewise.
1839         * modules/strcase (Makefile.am): Likewise.
1840         * modules/strcasestr (Makefile.am): Likewise.
1841         * modules/strchrnul (Makefile.am): Likewise.
1842         * modules/strcspn (Makefile.am): Likewise.
1843         * modules/strdup (Makefile.am): Likewise.
1844         * modules/strerror (Makefile.am): Likewise.
1845         * modules/strftime (Makefile.am): Likewise.
1846         * modules/strndup (Makefile.am): Likewise.
1847         * modules/strnlen (Makefile.am): Likewise.
1848         * modules/strpbrk (Makefile.am): Likewise.
1849         * modules/strsep (Makefile.am): Likewise.
1850         * modules/strstr (Makefile.am): Likewise.
1851         * modules/strtod (Makefile.am): Likewise.
1852         * modules/strtoimax (Makefile.am): Likewise.
1853         * modules/strtok_r (Makefile.am): Likewise.
1854         * modules/strtol (Makefile.am): Likewise.
1855         * modules/strtoll (Makefile.am): Likewise.
1856         * modules/strtoul (Makefile.am): Likewise.
1857         * modules/strtoull (Makefile.am): Likewise.
1858         * modules/strtoumax (Makefile.am): Likewise.
1859         * modules/strverscmp (Makefile.am): Likewise.
1860         * modules/time_r (Makefile.am): Likewise.
1861         * modules/timegm (Makefile.am): Likewise.
1862         * modules/tmpfile-safer (Makefile.am): Likewise.
1863         * modules/unistd-safer (Makefile.am): Likewise.
1864         * modules/unlinkdir (Makefile.am): Likewise.
1865         * modules/userspec (Makefile.am): Likewise.
1866         * modules/utime (Makefile.am): Likewise.
1867         * modules/utimecmp (Makefile.am): Likewise.
1868         * modules/utimens (Makefile.am): Likewise.
1869         * modules/vasnprintf (Makefile.am): Likewise.
1870         * modules/vasprintf (Makefile.am): Likewise.
1871         * modules/vsnprintf (Makefile.am): Likewise.
1872         * modules/xalloc (Makefile.am): Likewise.
1873         * modules/xgetcwd (Makefile.am): Likewise.
1874         * modules/xnanosleep (Makefile.am): Likewise.
1875         * modules/xreadlink (Makefile.am): Likewise.
1876         * modules/xstrtod (Makefile.am): Likewise.
1877         * modules/xstrtol (Makefile.am): Likewise.
1878         * modules/xstrtold (Makefile.am): Likewise.
1879         * modules/yesno (Makefile.am): Likewise.
1880
1881 2006-10-12  Jim Meyering  <jim@meyering.net>
1882
1883         * m4/getloadavg.m4: Revert the change below.
1884
1885         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
1886         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
1887         fail with a symlink, which is what coreutils' ./bootstrap now
1888         creates by default.
1889
1890 2006-10-12  Bruno Haible  <bruno@clisp.org>
1891
1892         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
1893         mingw.
1894         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
1895         MSVC and mingw explicitly.
1896
1897 2006-10-11  Simon Josefsson  <jas@extundo.com>
1898             Bruno Haible  <bruno@clisp.org>
1899
1900         Add support for multiple gnulib-tool invocations in the scope of a
1901         single configure.ac file.
1902         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
1903         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
1904         with the same contents as the _LIBADD variable.
1905         (func_emit_initmacro_start, func_emit_initmacro_end,
1906         func_emit_initmacro_done): New functions.
1907         (func_import, func_create_testdir): Invoke them. Allow the identifiers
1908         gl_LIBOBJS and gl_LTLIBOBJS.
1909
1910 2006-10-11  Bruno Haible  <bruno@clisp.org>
1911
1912         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
1913         (func_create_testdir): Don't create po/Makefile.am, don't invoke
1914         autoreconf. Instead, invoke autopoint explicitly but move back the
1915         *.m4 files from gnulib.
1916
1917 2006-10-11  Bruno Haible  <bruno@clisp.org>
1918
1919         * gnulib-tool (func_usage): Make module names after --create-testdir
1920         optional.
1921         (func_create_testdir): If no module was specified, use nearly all
1922         modules.
1923
1924 2006-10-12  Jim Meyering  <jim@meyering.net>
1925
1926         Big performance improvement for fts-based tools that use FTS_NOSTAT.
1927         Avoid spurious inode-mismatch problems on non-POSIX file systems.
1928         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
1929         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
1930         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
1931         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
1932         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
1933         (fts_set_stat_required): New function.
1934         (fts_open): Defer the calls to fts_stat, if possible or requested.
1935         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
1936         into fts_stat itself.
1937         (fts_read): Perform any required (deferred) fts_stat call.
1938         (fts_build): Likewise, for the directory we're about to open and read.
1939         In the readdir loop, carefully decide whether each entry will require
1940         an eventual call to fts_stat, using dirent.d_type info if available.
1941         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
1942         a command line argument into this function.  Update all callers.
1943         Map a return value of FTS_DOT to FTS_D for a command line argument.
1944         * modules/fts (Depends-on): Add d-type.  Alphabetize.
1945         Thanks to Miklos Szeredi for his tenacity and for the initial
1946         bug report about "find" failing on a FUSE-based file system.
1947
1948         * lib/fts.c (fts_open): Use consistent indentation.
1949
1950 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1951
1952         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
1953         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
1954         reported by Jim Meyering.  All uses of cache variables renamed
1955         to match Autoconf's.
1956         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
1957         the other one.
1958
1959         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
1960         Fix misspelling in diagnostic.
1961
1962 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1963
1964         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
1965         defined.  Problem reported by Matthew Woehlke.
1966
1967         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
1968         Add support for Tandem NonStop R series.
1969         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
1970         Use new macro.
1971
1972         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
1973         (has_trailing_slash): Omit size arg; all callers changed.
1974         Omit 'inline', since it doesn't help performance and we'd
1975         need to configure it.
1976         Don't count //, ///, etc. as having a trailing slash.
1977         As a side effect, this removes a C99ism reported by Matthew Woehlke.
1978         (rpl_rename_dest_slash): On failure, use rename's errno rather
1979         than (in some cases) an incorrect or junk errno.
1980         Simplify code by removing need to compute length; this does
1981         cause it to make two passes instead of one over the file name,
1982         but it's worth it.
1983
1984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
1985         change, since Autoconf's version may no longer be appropriate now
1986         that we are using CVS Autoconf's version.  Add support for Tandem.
1987
1988 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1989             Bruno Haible  <bruno@clisp.org>
1990
1991         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
1992         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
1993         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
1994         gl_AC_TYPE_LONG_LONG.
1995
1996         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
1997         instead of HAVE_LONG_LONG.
1998         * lib/printf-args.c (printf_fetchargs): Likewise.
1999         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2000         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2001         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
2002         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
2003         gl_AC_TYPE_LONG_LONG.
2004
2005 2006-10-11  Bruno Haible  <bruno@clisp.org>
2006
2007         * m4/longlong.m4: Add comments.
2008         * m4/ulonglong.m4: Likewise.
2009
2010 2006-10-10  Bruno Haible  <bruno@clisp.org>
2011
2012         Make it possible to #define stpcpy, strdup to aliases.
2013         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
2014         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
2015
2016 2006-10-10  Bruno Haible  <bruno@clisp.org>
2017
2018         Make it possible to #define gcd to an alias.
2019         * lib/gcd.c: Include config.h.
2020
2021 2006-10-10  Bruno Haible  <bruno@clisp.org>
2022
2023         Make it possible to #define c_isascii to an alias.
2024         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
2025         defined. Undefine the macros before defining them, to avoid gcc
2026         warnings.
2027         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
2028         define NO_C_CTYPE_MACROS early.
2029
2030 2006-10-10  Bruno Haible  <bruno@clisp.org>
2031
2032         Make it possible to #define set_program_name to an alias.
2033         * lib/progname.c: Don't undefine set_program_name; instead, undefine
2034         ENABLE_RELOCATABLE early.
2035
2036 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2037
2038         Port to Tandem NSK OSS, which has 64-bit signed int but at most
2039         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
2040         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
2041         More generally, don't assume that 64-bit signed int is available
2042         if unsigned int is, and vice versa.
2043         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
2044         unsigned symbols, not on their signed counterparts.
2045         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
2046         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
2047         (UINT64_C, UINTMAX_C):
2048         Likewise.
2049         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
2050         unsigned counterparts.
2051         (Have_long_long, Unsigned): New macros.
2052         (Int): Renamed from INT.
2053         (strtoimax): Use the new macros.
2054         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
2055         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
2056         * modules/inttypes (inttypes.h): Substitute
2057         HAVE_UNSIGNED_LONG_LONG_INT.
2058         * modules/stdint (stdint.h): Likewise.
2059         (Files): Add m4/ulonglong.m4.
2060
2061 2006-10-10  Bruno Haible  <bruno@clisp.org>
2062
2063         Fix a gcc -Wshadow warning.
2064         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
2065         to 'bucket'.
2066         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
2067         gl_linked_indexof_from_to): Likewise.
2068         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
2069         Likewise.
2070         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
2071         Likewise.
2072         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
2073         Reported by Eric Blake.
2074
2075 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
2078         for NetBSD.  Problem reported by Bruno Haible.
2079
2080 2006-10-09  Jim Meyering  <jim@meyering.net>
2081
2082         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
2083         Patch from Bruno Haible.
2084
2085 2006-10-09  Jim Meyering  <jim@meyering.net>
2086
2087         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
2088         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
2089         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
2090
2091 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2092
2093         Don't include <config.h> twice; this doesn't work in some cases,
2094         e.g., when config.h has "#define intmax_t long long int" and
2095         we include <config.h>, <inttypes.h>, <config.h> in that order.
2096         Problem reported by Matthew Woehlke in:
2097         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
2098         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
2099         * lib/fts-cycle.c: Don't include config.h.
2100         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
2101         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
2102         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
2103         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
2104         inttypes.h.
2105         * lib/xstrtoumax.c: Likewise.
2106         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
2107         __strtol and the like, so that this module is more like its siblings.
2108         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
2109         Remove; no longer needed now that we assume gnulib inttypes.h.
2110
2111 2006-10-08  Bruno Haible  <bruno@clisp.org>
2112
2113         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
2114         option.
2115
2116 2006-10-07  Jim Meyering  <jim@meyering.net>
2117
2118         * modules/inttypes (inttypes.h): Revert what seems to have been
2119         an inadvertent part of today's change: use "|", not "/" in the
2120         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
2121
2122 2006-10-07  Bruno Haible  <bruno@clisp.org>
2123
2124         * modules/sublist: New file.
2125
2126 2006-10-07  Bruno Haible  <bruno@clisp.org>
2127
2128         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
2129         * modules/argz (argz.h): Likewise.
2130         * modules/arpa_inet (arpa/inet.h): Likewise.
2131         * modules/byteswap (byteswap.h): Likewise.
2132         * modules/configmake (configmake.h): Likewise.
2133         * modules/fcntl (fcntl.h): Likewise.
2134         * modules/fnmatch (fnmatch.h): Likewise.
2135         * modules/getopt (getopt.h): Likewise.
2136         * modules/glob (glob.h): Likewise.
2137         * modules/inttypes (inttypes.h): Likewise.
2138         * modules/netinet_in (netinet/in.h): Likewise.
2139         * modules/poll (poll.h): Likewise.
2140         * modules/stdbool (stdbool.h): Likewise.
2141         * modules/stdint (stdint.h): Likewise.
2142         * modules/sys_select (sys/select.h): Likewise.
2143         * modules/sys_socket (sys/socket.h): Likewise.
2144         * modules/sys_stat (sys/stat.h): Likewise.
2145         * modules/sysexits (sysexits.h): Likewise.
2146         * modules/unistd (unistd.h): Likewise.
2147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2148         Add a "DO NOT EDIT" comment to the generated file.
2149         (func_import): Likewise for gnulib-comp.m4.
2150
2151 2006-10-07  Bruno Haible  <bruno@clisp.org>
2152
2153         * lib/gl_sublist.h: New file.
2154         * lib/gl_sublist.c: New file.
2155
2156 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
2157
2158         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
2159         name (relative to the original working directory) and the file
2160         name component (relative to the temporary working directory).  All
2161         callers changed.
2162         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
2163         * lib/mkdir-p.c (make_dir_parents): Likewise.
2164         * lib/mkdir-p.h (make_dir_parents): Likewise.
2165
2166 2006-10-06  Eric Blake  <ebb9@byu.net>
2167
2168         Define several macros for use by the clean-temp module.
2169         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
2170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
2171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
2172
2173         * lib/clean-temp.h (close_stream_temp): New declaration.
2174         * lib/clean-temp.c (includes): Pull in headers according to what
2175         other modules are in use.
2176         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
2177
2178 2006-10-06  Bruno Haible  <bruno@clisp.org>
2179
2180         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
2181         instead of fopen, fwriteerror.
2182
2183 2006-10-06  Bruno Haible  <bruno@clisp.org>
2184
2185         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
2186         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
2187         int.
2188         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
2189         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
2190         Return an error indicator.
2191         Suggested by Eric Blake.
2192
2193 2006-10-06  Bruno Haible  <bruno@clisp.org>
2194
2195         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
2196         Reported by Eric Blake.
2197
2198 2006-10-06  Bruno Haible  <bruno@clisp.org>
2199
2200         * modules/closeout (Description): Mention stderr too.
2201
2202 2006-10-06  Bruno Haible  <bruno@clisp.org>
2203         and Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         * lib/closeout.c (close_stdout): Also close stderr.
2206         * lib/closeout.h: Update comment.
2207
2208 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
2211         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
2212         * lib/dirchownmod.c: Include lchown.h.
2213         * lib/lchown.c: Don't include files that lchown.h now includes.
2214         Don't declare chown, since lchown.h now does that.
2215         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
2216         (lchown): Define to rpl_chown if lchown is declared but
2217         does not exist.  Declare using a prototype if lchown is not
2218         declared.  Add a copyright notice.
2219         * lib/mkstemp.h: Include <unistd.h>.
2220         * lib/openat.c: Include lchown.h.
2221
2222         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
2223         we now test for that separately.
2224         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
2225         rather than O_NOFOLLOW, when testing whether it's possible to
2226         avoid a race condition reliably.
2227         * lib/savewd.c (savewd_chdir): Likewise.
2228
2229         Remove macros that are no longer needed now that stdint.h is
2230         reliable.
2231         * lib/fsusage.c (UINTMAX_MAX): Remove.
2232         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
2233         * lib/utimecmp.c (SIZE_MAX): Remove.
2234
2235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
2236
2237         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
2238         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
2239         O_NOATIME works.
2240
2241 2006-10-05  Bruno Haible  <bruno@clisp.org>
2242
2243         * lib/gl_list.h (gl_sortedlist_search_from_to,
2244         gl_sortedlist_indexof_from_to): New declarations.
2245         (gl_list_implementation): New fields sortedlist_search_from_to,
2246         sortedlist_indexof_from_to.
2247         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
2248         inline functions.
2249         * lib/gl_list.c (gl_sortedlist_search_from_to,
2250         gl_sortedlist_indexof_from_to): New functions.
2251         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
2252         function.
2253         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
2254         (gl_array_sortedlist_search_from_to): New function.
2255         (gl_array_list_implementation): Update.
2256         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
2257         function.
2258         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
2259         (gl_carray_sortedlist_search_from_to): New function.
2260         (gl_carray_list_implementation): Update.
2261         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
2262         gl_linked_sortedlist_indexof_from_to): New functions.
2263         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2264         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2265         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
2266         gl_tree_sortedlist_indexof_from_to): New functions.
2267         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2268         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2269         Update.
2270         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2271         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
2272         Update.
2273
2274 2006-10-05  Bruno Haible  <bruno@clisp.org>
2275
2276         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
2277         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
2278         (struct gl_list_implementation): Add fields search_from_to,
2279         indexof_from_to. Remove fields search, indexof.
2280         (gl_list_search): Use the search_from_to method.
2281         (gl_list_search_from, gl_list_search_from_to): New functions.
2282         (gl_list_indexof): Use the indexof_from_to method.
2283         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2284         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
2285         (gl_list_search_from, gl_list_search_from_to): New functions.
2286         (gl_list_indexof): Use the indexof_from_to method.
2287         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2288         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
2289         gl_array_indexof. Add start_index, end_index arguments.
2290         (gl_array_search_from_to): Renamed from gl_array_search. Add
2291         start_index, end_index arguments.
2292         (gl_array_remove, gl_array_list_implementation): Update.
2293         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
2294         gl_carray_indexof. Add start_index, end_index arguments.
2295         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
2296         start_index, end_index arguments.
2297         (gl_carray_remove, gl_carray_list_implementation): Update.
2298         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
2299         gl_linked_search. Add start_index, end_index arguments.
2300         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
2301         start_index, end_index arguments.
2302         (gl_linked_remove): Update.
2303         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2304         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2305         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
2306         field to 'size_t'.
2307         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
2308         gl_tree_search. Add start_index, end_index arguments.
2309         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2310         start_index, end_index arguments.
2311         (gl_tree_remove): Update.
2312         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2313         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2314         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
2315         function.
2316         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
2317         gl_tree_search. Add start_index, end_index arguments.
2318         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2319         start_index, end_index arguments.
2320         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2321         Update.
2322         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
2323
2324 2006-10-05  Bruno Haible  <bruno@clisp.org>
2325
2326         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
2327
2328         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2329         fwriteerror_temp): New declarations.
2330         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
2331         (descriptors): New variable.
2332         (cleanup): First, close the descriptors.
2333         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
2334         fclose_temp, fwriteerror_temp): New functions.
2335
2336 2006-10-04  Jim Meyering  <jim@meyering.net>
2337
2338         * lib/fts.c (fts_open): Tiny comment change.
2339
2340 2006-10-04  Bruno Haible  <bruno@clisp.org>
2341
2342         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
2343         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
2344         gl_LOCK_BODY.
2345         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
2346         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
2347         gl_LOCK_EARLY_BODY.
2348         (gl_LOCK): Require gl_LOCK_BODY.
2349
2350 2006-10-04  Bruno Haible  <bruno@clisp.org>
2351
2352         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
2353         (gl_oset_search_atleast): New declaration.
2354         (struct gl_oset_implementation): Add field 'search_atleast'.
2355         (gl_oset_search_atleast): New inline function.
2356         * lib/gl_oset.c (gl_oset_search_atleast): New function.
2357         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
2358         (gl_array_oset_implementation): Update.
2359         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
2360         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
2361         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
2362
2363 2006-10-04  Bruno Haible  <bruno@clisp.org>
2364
2365         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
2366
2367 2006-10-03  Bruno Haible  <bruno@clisp.org>
2368
2369         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
2370         from gl_avltreehash_list_implementation.
2371
2372 2006-10-03  Bruno Haible  <bruno@clisp.org>
2373
2374         * lib/gl_oset.c (gl_oset_add): Fix return type.
2375
2376 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
2377
2378         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
2379
2380 2006-10-02  Eric Blake  <ebb9@byu.net>
2381
2382         * modules/strnlen (Depends-on): Add extensions.
2383
2384 2006-10-02  Eric Blake  <ebb9@byu.net>
2385
2386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
2387         definition in 2.60+.
2388
2389 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2390
2391         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
2392         checks.
2393
2394 2006-10-02  Bruno Haible  <bruno@clisp.org>
2395
2396         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
2397         to the AUTOMAKE_OPTIONS.
2398         Reported by Jim Meyering.
2399
2400 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         Work around bug in Solaris 10 /proc file system:
2403         /proc/self/fd/NNN/.. isn't the parent directory of
2404         the directory whose file descriptor is NNN.  This needs to
2405         be worked around at run time, not compile time, since a
2406         program might be built on Solaris 8, where things work, and
2407         run on Solaris 10.
2408         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
2409         to use the following interface instead:
2410         (OPENAT_BUFFER_SIZE): New macro.
2411         (openat_proc_name): New function.
2412         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
2413         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
2414         Likewise.
2415         * lib/openat-proc.c: New file.
2416         * modules/openat (Files): Add lib/openat-proc.c.
2417         (Depends-on): Add same-inode, stdbool.
2418         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
2419
2420 2006-09-29  Bruno Haible  <bruno@clisp.org>
2421
2422         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
2423         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
2424         argument. Set stdout_closed before testing for ferror, not after.
2425         (fwriteerror, fwriteerror_no_ebadf): New functions.
2426
2427 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2428
2429         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
2430
2431 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
2432
2433         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
2434         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
2435
2436 2006-09-28  Jim Meyering  <jim@meyering.net>
2437
2438         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
2439         Include <unistd.h>.
2440
2441 2006-09-28  Bruno Haible  <bruno@clisp.org>
2442
2443         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
2444         * modules/linkedhash-list (Depends-on): Likewise.
2445         * modules/rbtreehash-list (Depends-on): Likewise.
2446
2447 2006-09-28  Bruno Haible  <bruno@clisp.org>
2448
2449         * lib/strndup.h: Simplify the redefinition of strndup.
2450         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
2451         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
2452
2453 2006-09-28  Bruno Haible  <bruno@clisp.org>
2454
2455         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
2456         * lib/gl_linkedhash_list.c: Likewise.
2457         * lib/gl_rbtreehash_list.c: Likewise.
2458
2459 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
2460
2461         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
2462         getaddrinfo.
2463
2464         * lib/__fpending.h: Don't include <stdio_ext.h> unless
2465         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
2466         it causes <stdio_ext.h> to cause a compile-time error.
2467         Problem reported by Nelson H. F. Beebe.
2468         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
2469         of HAVE_DECL___PENDING.
2470
2471         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
2472         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
2473         declaration.
2474
2475 2006-09-27  Jim Meyering  <jim@meyering.net>
2476
2477         This file could end up with a definition for a function
2478         named __strndup, rather than rpl_strndup on a system with
2479         incomplete weak_alias support.
2480         * lib/strndup.c (strndup): Rename from __strndup.
2481         Remove #defines that used to map __strndup to strndup.
2482         Don't use K&R prototypes.
2483         Remove LIBC-related code, since this file is not sync'd with glibc.
2484         * lib/strndup.h: Revamp, accordingly.
2485         * m4/strndup.m4: Modernize.
2486
2487 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2488
2489         * modules/savewd (Depends-on): Add 'raise'.
2490         * lib/savewd.c: Include <signal.h>, for 'raise'.
2491
2492 2006-09-26  Jim Meyering  <jim@meyering.net>
2493
2494         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
2495         when we detect Darwin 8.7.0's acl_get_file bug.
2496         Rearrange to perform the new (below) run-test while $LIBS
2497         contains any acl-related library.  Set USE_ACL at the end.
2498         (gl_ACL_GET_FILE): New function.
2499
2500 2006-09-26  Eric Blake  <ebb9@byu.net>
2501
2502         * lib/verror.c: Include <config.h> unconditionally.
2503
2504 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2505
2506         * modules/clock-time (Maintainer): Add self.
2507         * modules/getlogin_r (Depends-on): Add extensions.
2508
2509 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2510
2511         * modules/clock-time: New module.
2512         * modules/nanosleep (Depends-on): Add clock-time.
2513         * modules/gethrxtime (Depends-on): Likewise.
2514         * modules/gettime (Depends-on): Likewise.
2515         * modules/settime (Depends-on): Likewise.
2516
2517         * modules/fts-lgpl: Depend on openat.
2518         * modules/mkancesdirs: Depend on savewd.
2519         * modules/mkdir-p: Likewise.
2520
2521 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2522
2523         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
2524
2525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
2526         `gl_have_arbitrary_file_name_length_limit' to
2527         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
2528         actually works between configure runs.
2529
2530 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2531             Bruno Haible  <bruno@clisp.org>
2532
2533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
2534
2535 2006-09-25  Jim Meyering  <jim@meyering.net>
2536
2537         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
2538         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
2539
2540 2006-09-25  Eric Blake  <ebb9@byu.net>
2541
2542         * gnulib-tool (func_import, func_create_testdir): Fix typos in
2543         exec's in 2006-09-18 patch when shuffling fds.
2544
2545 2006-09-25  Bruno Haible  <bruno@clisp.org>
2546
2547         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
2548         Reported by Jim Meyering.
2549
2550 2006-09-24  Jim Meyering  <jim@meyering.net>
2551
2552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
2553         compare a pointer against a literal "0".  That caused failures with
2554         at least HP-UX's hpcc.
2555
2556 2006-09-22  Simon Josefsson  <jas@extundo.com>
2557
2558         * modules/gc-sha1:
2559         * modules/gc-md4:
2560         * modules/gc-hmac-sha1:
2561         * modules/gc-hmac-md5:
2562         * modules/gc-des:
2563         * modules/gc-arcfour: Distribute more files.
2564
2565 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2566
2567         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
2568         (gl_linked_iterator_from_to): Initialize struct completely.
2569         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
2570         (gl_tree_iterator_from_to): Likewise
2571         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
2572         * lib/gl_array_list.c [lint] (gl_array_iterator)
2573         (gl_array_iterator_from_to): Likewise.
2574         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
2575         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
2576         (gl_carray_iterator_from_to): Likewise.
2577
2578         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
2579         * lib/md4.c (md4_process_block): Remove unused variable.
2580         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
2581         parentheses for clarity.
2582
2583 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2584
2585         * modules/bison-i18n (Depends-on): Add gettext.
2586
2587 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2588
2589         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
2590         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
2591         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
2592         also add missing comma that caused broken test.
2593         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
2594         stdlib.h, for `abort'.
2595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
2596         variables.
2597         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
2598         include unistd.h if present, for `rmdir'.
2599         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
2600         variables.
2601         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
2602         in the process include standard headers for prototypes.
2603         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
2604         gets declared on GNU/Linux.
2605         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
2606         unistd.h, for `rmdir'.
2607         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
2608
2609         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
2610         always true.
2611         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
2612
2613         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
2614
2615 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2616
2617         * gnulib-tool (func_version): Create output all at once.  This
2618         may help avoid triggering unnecessary SIGPIPEs, and at any
2619         rate it doesn't hurt.
2620
2621 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2622             Bruno Haible  <bruno@clisp.org>
2623
2624         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
2625         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2626         * m4/signed.m4 (bh_C_SIGNED): Likewise.
2627
2628         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
2629         (gl_FUNC_VASPRINTF): Invoke it.
2630
2631 2006-09-22  Bruno Haible  <bruno@clisp.org>
2632
2633         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
2634         getloadavg.c as first argument.
2635
2636 2006-09-22  Bruno Haible  <bruno@clisp.org>
2637
2638         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
2639         at the beginning of the gl_INIT macro.
2640         * modules/getloadavg (configure.ac): Pass $gl_source_base to
2641         gl_GETLOADAVG.
2642
2643 2006-09-22  Bruno Haible  <bruno@clisp.org>
2644
2645         * gnulib-tool (func_create_megatestdir): Don't include the config-h
2646         module.
2647         Suggested by Ralf Wildenhues.
2648
2649 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2650
2651         Import this patch from libc:
2652
2653         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
2654
2655         * lib/regex_internal.c (re_string_reconstruct): Handle
2656         offset < pstr->valid_raw_len && pstr->offsets_needed case.
2657         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
2658         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
2659         re_string_context_at.
2660
2661         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
2662         now requires it.
2663         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
2664         gl_REGEX now does it for us.
2665         (gl_REGEX): Add test taken from
2666         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
2667
2668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
2669         Check that large offsets work.  Modernize Autoconf usages.
2670         Prefer "yes" to mean a good thing rather than a bad.
2671         Don't put "#define mkstemp" in config.h, as this might interfere
2672         with standard system headers that "#define mkstemp mkstemp64".
2673
2674         * modules/mkstemp (Depends-on): Add extensions, so that
2675         mkstemp is visible on some platforms.
2676         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
2677         (Include): Change to "mkstemp.h" from <stdlib.h>.
2678         (Files): Add mkstemp.h.
2679
2680         * lib/mkstemp.h: New file, since some standard headers
2681         #define mkstemp.
2682         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
2683         Include "mkstemp.h".
2684         Make the _LIBC code resemble glibc original more,
2685         e.g., use K&R style.
2686         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
2687         (mkstemp): Remove, since mkstemp.h does this for us.
2688         * lib/stdlib--.h: Include mkstemp.h.
2689
2690         Import this patch from libc:
2691
2692         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
2693
2694         * lib/tempname.c (__gen_tempname): Change attempts_min
2695         into a macro.  Use preprocessor to decide how to initialize
2696         attempts [Coverity CID 67].
2697
2698 2006-09-20  Bruno Haible  <bruno@clisp.org>
2699
2700         * lib/mkdtemp.c: Import from libc.
2701         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
2702                 * sysdeps/posix/tempname.c (__gen_tempname): Change
2703                 attempts_min into a macro.  Use preprocessor to decide how to
2704                 initialize attempts [Coverity CID 67].
2705         2001-11-27  Paul Eggert  <eggert@twinsun.com>
2706                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2707                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2708
2709 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2710
2711         * gnulib-tool (func_exit): New function, to allow to pass the
2712         exit status portably through the trap.  Use everywhere.
2713         (--help, --version): Signal a write error.
2714         (trap): catch SIGPIPE, for write errors.
2715         Exit at the end of the trap, with the correct exit status.
2716
2717 2006-09-19  Karl Berry  <karl@gnu.org>
2718
2719         * doc/gnulib.texi: note about the license texinfo files.
2720
2721 2006-09-19  Eric Blake  <ebb9@byu.net>
2722
2723         * gnulib-tool: Avoid space-tab.
2724
2725 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2726
2727         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
2728         that prevented coreutils 6.1 from building.  Problem reported
2729         by Petter Reinholdtsen.
2730
2731 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2732
2733         * gnulib-tool (avoidlist): Fix typo that broke options like
2734         --avoid=lock that are used by coreutils bootstrap.
2735
2736 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
2737
2738         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
2739         more systematically.
2740
2741 2006-09-18  Jim Meyering  <jim@meyering.net>
2742
2743         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
2744
2745 2006-09-18  Bruno Haible  <bruno@clisp.org>
2746
2747         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
2748
2749 2006-09-18  Bruno Haible  <bruno@clisp.org>
2750
2751         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
2752         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
2753         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
2754         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
2755         * m4/gettext.m4: Require autoconf >= 2.52.
2756         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
2757         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
2758         of gl_cv_header_inttypes_h.
2759
2760 2006-09-18  Bruno Haible  <bruno@clisp.org>
2761
2762         * lib/javaversion.c: Include configmake.h.
2763
2764 2006-09-18  Bruno Haible  <bruno@clisp.org>
2765
2766         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
2767         avoid that the while loops be executed in a subshell.
2768
2769 2006-09-18  Bruno Haible  <bruno@clisp.org>
2770
2771         * MODULES.html.sh (func_module): Break long lines.
2772         Suggested by Bruce Korb <bkorb@gnu.org>.
2773
2774 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2775
2776         Speed up by a factor of 1.12.
2777         * gnulib-tool (nl): New variable.
2778         (func_import): Rewrite include directive extraction to only read each
2779         directive once.
2780
2781 2006-09-17  Bruno Haible  <bruno@clisp.org>
2782
2783         * modules/javaversion (Makefile.am): Remove DEFS setting.
2784         (Depends-on): Add configmake, for PKGDATADIR definition.
2785
2786 2006-09-17  Bruno Haible  <bruno@clisp.org>
2787
2788         * gnulib-tool (func_create_testdir): Rewrite all files at once.
2789
2790 2006-09-17  Bruno Haible  <bruno@clisp.org>
2791
2792         * gnulib-tool (func_append): New function, stolen from libtool.m4.
2793         (func_modules_transitive_closure, func_modules_add_dummy,
2794         func_modules_to_filelist, func_import, func_create_testdir,
2795         func_create_megatestdir, ...): Use it wherever possible.
2796         Suggested by Ralf Wildenhues.
2797
2798 2006-09-16  Karl Berry  <karl@gnu.org>
2799
2800         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
2801         to avoid sectioning errors.
2802         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
2803         [ifinfo]: blank line after @center-ed titles.
2804         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
2805         Spell FSF address consistently with others.
2806         (These changes approved by rms.)
2807
2808 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2809
2810         Speed up by a factor of 1.61.
2811         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
2812         already checked module names again.
2813
2814 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2815
2816         Speed up by a factor of 1.13.
2817         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
2818         for new_files, and the input to func_add_or_update.
2819
2820 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2821
2822         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
2823         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
2824
2825 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2826
2827         * modules/mkancesdirs (Depends-on): Add fcntl.
2828         * modules/savewd: New file.
2829         * MODULES.html.sh (File system functions): Add savewd.
2830
2831         * modules/configmake (Makefile.am): Add support for the
2832         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
2833
2834 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2835
2836         * m4/savewd.m4: New file.
2837
2838 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2839
2840         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
2841         (dirchownmod): New arg FD.  All callers changed.
2842         Use FD rather than opening the directory ourself, as opening is
2843         now the caller's responsibility.
2844         * lib/dirchownmod.h: Likewise.
2845         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
2846         hosts that require <sys/types.h> before <sys/stat.h>.  Include
2847         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
2848         (test_dir): Remove.
2849         (mkancesdirs): Return length of prefix of FILE that has already
2850         been made, or -2 if there is a child doing the work.  Redo
2851         algorithm so that it is O(N) rather than O(N**2).  Optimize away
2852         ".", and treat ".." specially since it might stray back into
2853         already-created areas.  Use a subprocess if necessary.  New arg
2854         WD; all users changed.  MAKE_DIR function should now return 1
2855         if it creates a directory that is not readable.  Return -2 if
2856         a child process is spun off.
2857         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
2858         Adjust signature to match code.
2859         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
2860         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
2861         all users changed.
2862         * lib/savewd.c, lib/savewd.h: New files.
2863
2864 2006-09-15  Jim Meyering  <jim@meyering.net>
2865
2866         * modules/rename-dest-slash: New module.
2867         * MODULES.html.sh (posix_compat): Add it here.
2868
2869         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
2870
2871 2006-09-15  Jim Meyering  <jim@meyering.net>
2872
2873         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
2874         file.
2875
2876         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
2877
2878 2006-09-15  Jim Meyering  <jim@meyering.net>
2879
2880         * lib/rename-dest-slash.c (has_trailing_slash): Use
2881         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
2882         (rpl_rename_dest_slash): Perform the cheaper trailing slash
2883         test before testing whether SRC is a directory.
2884         Suggestions from Bruno Haible.
2885
2886         Avoid a warning about an unused variable.
2887         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
2888         into the #ifdef block where it's used.
2889
2890         * lib/rename-dest-slash.c: New file.
2891
2892 2006-09-14  Bruno Haible  <bruno@clisp.org>
2893
2894         * lib/allocsa.c: Include <config.h> unconditionally.
2895         * lib/asnprintf.c: Likewise.
2896         * lib/asprintf.c: Likewise.
2897         * lib/c-strcasecmp.c: Likewise.
2898         * lib/c-strcasestr.c: Likewise.
2899         * lib/c-strncasecmp.c: Likewise.
2900         * lib/c-strstr.c: Likewise.
2901         * lib/classpath.c: Likewise.
2902         * lib/clean-temp.c: Likewise.
2903         * lib/concatpath.c: Likewise.
2904         * lib/copy-file.c: Likewise.
2905         * lib/csharpcomp.c: Likewise.
2906         * lib/csharpexec.c: Likewise.
2907         * lib/execute.c: Likewise.
2908         * lib/fatal-signal.c: Likewise.
2909         * lib/findprog.c: Likewise.
2910         * lib/fwriteerror.c: Likewise.
2911         * lib/gl_array_list.c: Likewise.
2912         * lib/gl_array_oset.c: Likewise.
2913         * lib/gl_avltree_list.c: Likewise.
2914         * lib/gl_avltree_oset.c: Likewise.
2915         * lib/gl_avltreehash_list.c: Likewise.
2916         * lib/gl_carray_list.c: Likewise.
2917         * lib/gl_linked_list.c: Likewise.
2918         * lib/gl_linkedhash_list.c: Likewise.
2919         * lib/gl_list.c: Likewise.
2920         * lib/gl_oset.c: Likewise.
2921         * lib/gl_rbtree_list.c: Likewise.
2922         * lib/gl_rbtree_oset.c: Likewise.
2923         * lib/gl_rbtreehash_list.c: Likewise.
2924         * lib/imaxabs.c: Likewise.
2925         * lib/imaxdiv.c: Likewise.
2926         * lib/javacomp.c: Likewise.
2927         * lib/javaexec.c: Likewise.
2928         * lib/javaversion.c: Likewise.
2929         * lib/linebreak.c: Likewise.
2930         * lib/localcharset.c: Likewise.
2931         * lib/lock.c: Likewise.
2932         * lib/mbchar.c: Likewise.
2933         * lib/mbswidth.c: Likewise.
2934         * lib/mkdtemp.c: Likewise.
2935         * lib/pipe.c: Likewise.
2936         * lib/printf-args.c: Likewise.
2937         * lib/printf-parse.c: Likewise.
2938         * lib/progname.c: Likewise.
2939         * lib/progreloc.c: Likewise.
2940         * lib/readlink.c: Likewise.
2941         * lib/sh-quote.c: Likewise.
2942         * lib/stpcpy.c: Likewise.
2943         * lib/stpncpy.c: Likewise.
2944         * lib/strcasecmp.c: Likewise.
2945         * lib/strcasestr.c: Likewise.
2946         * lib/strcspn.c: Likewise.
2947         * lib/striconv.c: Likewise.
2948         * lib/strncasecmp.c: Likewise.
2949         * lib/strnlen1.c: Likewise.
2950         * lib/strstr.c: Likewise.
2951         * lib/strtok_r.c: Likewise.
2952         * lib/tls.c: Likewise.
2953         * lib/tmpdir.c: Likewise.
2954         * lib/unicodeio.c: Likewise.
2955         * lib/unsetenv.c: Likewise.
2956         * lib/vasnprintf.c: Likewise.
2957         * lib/vasprintf.c: Likewise.
2958         * lib/wait-process.c: Likewise.
2959         * lib/xallocsa.c: Likewise.
2960         * lib/xsetenv.c: Likewise.
2961         * lib/xstriconv.c: Likewise.
2962
2963 2006-09-13  Simon Josefsson  <jas@extundo.com>
2964
2965         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
2966         that internally, suggested by Ralf Wildenhues
2967         <Ralf.Wildenhues@gmx.de>.
2968
2969 2006-09-13  Simon Josefsson  <jas@extundo.com>
2970
2971         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
2972         @LIBOBJS@.
2973         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2974
2975 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2976
2977         * lib/_fpending.c: Include <config.h> unconditionally, since we no
2978         longer worry about uses that don't define HAVE_CONFIG_H.
2979         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
2980         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
2981         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
2982         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
2983         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
2984         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
2985         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
2986         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
2987         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
2988         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
2989         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
2990         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
2991         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
2992         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
2993         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
2994         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
2995         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
2996         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
2997         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
2998         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
2999         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
3000         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
3001         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
3002         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
3003         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
3004         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
3005         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
3006         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
3007         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
3008         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
3009         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
3010         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
3011         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
3012         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
3013         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
3014         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
3015         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
3016         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
3017         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
3018         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
3019         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
3020         Likewise.
3021
3022 2006-09-13  Eric Blake  <ebb9@byu.net>
3023
3024         * lib/getopt.c: Fix typo in last commit.
3025
3026 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3027
3028         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
3029         dgettext.
3030
3031 2006-09-12  Jim Meyering  <jim@meyering.net>
3032
3033         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
3034         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
3035         Reported by Nelson H. F. Beebe.
3036
3037 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
3038
3039         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
3040         program_invocation_name and program_invocation_short_name are
3041         initialized.
3042         * lib/argp-namefrob.h: Move declarations of program_invocation_name
3043         and program_invocation_short_name to argp.h, so they are visible
3044         to user programs.
3045         * lib/argp.h: Likewise
3046
3047 2006-09-10  Bruno Haible  <bruno@clisp.org>
3048
3049         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3050         m4/inttypes_h.m4, m4/uintmax_t.m4.
3051
3052 2006-09-10  Bruno Haible  <bruno@clisp.org>
3053
3054         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
3055         gl_AC_TYPE_UINTMAX_T.
3056
3057 2006-09-10  Bruno Haible  <bruno@clisp.org>
3058
3059         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
3060
3061 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
3062
3063         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
3064         convention.  Text proposed by Bruno Haible.
3065         (struct argp_option): Document the use of N_() wrappers.
3066
3067         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
3068         '\v', and translate the two parts separately, instead of feeding
3069         the whole string to gettext.  This allows to exclude
3070         '\v' from the strings visible to the translator by writing doc
3071         strings as N_("..") "\v" N_("..").
3072
3073 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3074
3075         * config/srclist.txt: Undo latest change; the bug was fixed.
3076
3077 2006-09-09  Bruno Haible  <bruno@clisp.org>
3078
3079         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
3080         assignments if building a library without libtool.
3081         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
3082         in func_emit_lib_Makefile_am.
3083         (func_import): When building a static library libfoo.a, arrange to
3084         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
3085         (func_create_testdir): Likewise.
3086         * modules/gc (configure.ac, Makefile.am): If building statically,
3087         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
3088         * modules/iconvme (configure.ac, Makefile.am): Likewise.
3089         * modules/striconv (configure.ac, Makefile.am): Likewise.
3090         Based on a suggestion by Ralf Wildenhues.
3091
3092 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3093
3094         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3095         Check for unistd.h too, since Autoconf doesn't assume POSIX.
3096         Also:
3097
3098         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3099         Add year_2050_test to catch glibc bug 2821
3100         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3101
3102         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3103         Prefer #ifdef to #if.
3104
3105         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
3106         Return from 'main' instead of calling 'exit'.
3107
3108 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3109
3110         * lib/mktime.c (guess_time_tm): Fix bug where mktime
3111         returned the maximum time_t value rather than (time_t) -1.
3112         Problem originally reported by William Bardwell
3113         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3114
3115         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3116         Moved to here ...
3117         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3118         ... from here.
3119
3120 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3121
3122         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
3123         2821 is fixed.
3124
3125 2006-09-08  Jim Meyering  <jim@meyering.net>
3126
3127         Don't make generated files read-only.  That would bother too many
3128         people.  However, do retain the ability to work when targets are
3129         read-only: remove the destination and temporary files before writing
3130         them (when generated via sed or echo), or by using the -f option for
3131         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
3132         * modules/alloca-opt, modules/argz, modules/arpa_inet:
3133         * modules/byteswap, modules/configmake, modules/fcntl:
3134         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3135         * modules/localcharset, modules/netinet_in, modules/poll:
3136         * modules/stdbool, modules/stdint, modules/sys_select:
3137         * modules/sys_socket, modules/sys_stat, modules/sysexits:
3138
3139 2006-09-08  Jim Meyering  <jim@meyering.net>
3140
3141         Avoid new build failure on FreeBSD 6.0.
3142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
3143         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
3144         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
3145
3146 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3147
3148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
3149
3150 2006-09-07  Jim Meyering  <jim@meyering.net>
3151
3152         Fix global typo in last change: use chmod u-w, not chmod u-x.
3153         Spotted by Paul Eggert and Bruce Korb.
3154         * modules/alloca-opt, modules/argz, modules/arpa_inet:
3155         * modules/byteswap, modules/configmake, modules/fcntl:
3156         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3157         * modules/localcharset, modules/netinet_in, modules/poll:
3158         * modules/stdbool, modules/stdint, modules/sys_select:
3159         * modules/sys_socket, modules/sys_stat, modules/sysexits:
3160
3161 2006-09-06  Jim Meyering  <jim@meyering.net>
3162
3163         Make generated files be read-only.
3164         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
3165         Ensure that each generated file is now read-only.
3166         * modules/argz: Likewise.
3167         * modules/arpa_inet: Likewise.
3168         * modules/byteswap: Likewise.
3169         * modules/configmake: Likewise.
3170         * modules/fcntl: Likewise.
3171         * modules/fnmatch: Likewise.
3172         * modules/getopt: Likewise.
3173         * modules/glob: Likewise.
3174         * modules/inttypes: Likewise.
3175         * modules/netinet_in: Likewise.
3176         * modules/poll: Likewise.
3177         * modules/stdbool: Likewise.
3178         * modules/stdint: Likewise.
3179         * modules/sys_select: Likewise.
3180         * modules/sys_socket: Likewise.
3181         * modules/sys_stat: Likewise.
3182         * modules/sysexits: Likewise.
3183         * modules/localcharset: Same as above, but continue using temporary
3184         file named "t-$@" (why different?) rather than the "$@-t" used
3185         everywhere else.
3186
3187         * modules/sysexits (Makefile.am): Replace literal occurrences
3188         of "sysexit.h" more readable, and more consistent, "$@".
3189
3190 2006-09-06  Bruno Haible  <bruno@clisp.org>
3191
3192         * modules/striconv: New file.
3193         * modules/xstriconv: New file.
3194         * MODULES.html.sh (Internationalization functions): Add striconv,
3195         xstriconv.
3196
3197 2006-09-06  Bruno Haible  <bruno@clisp.org>
3198
3199         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
3200         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
3201         not using libtool correctly.
3202
3203 2006-09-06  Bruno Haible  <bruno@clisp.org>
3204
3205         * lib/striconv.h: New file.
3206         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
3207         iconvstring.c.
3208         * lib/xstriconv.h: New file.
3209         * lib/xstriconv.c: New file.
3210
3211 2006-09-06  Bruno Haible  <bruno@clisp.org>
3212
3213         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3214         lib_..._LDFLAGS.
3215
3216 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3217
3218         * lib/argz_.h: Sync from Libtool.
3219
3220         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
3221                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3222
3223         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
3224
3225 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
3226
3227         * modules/trim: New file.
3228
3229 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
3230
3231         * lib/trim.h: New file.
3232         * lib/trim.c: New file.
3233
3234 2006-09-05  Bruno Haible  <bruno@clisp.org>
3235
3236         * MODULES.html.sh (String handling): Add trim.
3237
3238 2006-09-04  Karl Berry  <karl@gnu.org>
3239
3240         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
3241         until next release.
3242
3243 2006-09-03  Bruno Haible  <bruno@clisp.org>
3244
3245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
3246         correctly.
3247
3248 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3249
3250         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
3251         not gl_GETLOADAVG.  Omit unneeded semicolons.
3252         Problems reported by Ralf Wildenhues in
3253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3254         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
3255         at the end, which is the usual gnulib style.
3256
3257         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
3258         of doing all the work ourselves.
3259         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
3260         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
3261
3262 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
3265         Problem reported by Ralf Wildenhues in
3266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3267
3268         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
3269         HAVE_STRUCT_STATFS_F_FSTYPENAME.
3270
3271 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3272
3273         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
3274         yesterday's patch by changing test -n to test -z.
3275
3276 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         * modules/getloadavg (Files): Add m4/getloadavg.m4.
3279         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
3280         the former is now obsolescent.
3281
3282         * modules/chdir-long (Depends-on): Add fcntl.
3283
3284 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3285
3286         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
3287         obsolescent, and programs should use gnulib instead.
3288         * m4/getloadavg.m4: New file, with contents taken from Autoconf
3289         but with prefixes changed.
3290
3291 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3292
3293         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
3294         or stdbool.h, because they might not exist while configuring.
3295
3296         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
3297         Don't include unistd.h or limits.h; not needed, since chdir-long.h
3298         does that for us.
3299         (O_DIRECTORY): Remove.
3300
3301 2006-08-31  Eric Blake  <ebb9@byu.net>
3302
3303         * gnulib-tool: Don't let emacs change spaces to TAB.
3304
3305 2006-08-31  Bruno Haible  <bruno@clisp.org>
3306
3307         * gnulib-tool: When calling func_import more than once, do it in a
3308         subshell.
3309         Reported by Eric Blake <ebb9@byu.net>.
3310
3311 2006-08-31  Bruno Haible  <bruno@clisp.org>
3312
3313         * gnulib-tool (nl): Remove variable.
3314         (sed_transform_lib_file): Use more robust test for config-h module.
3315         (func_import): Fix typo in 2006-08-25 patch.
3316
3317 2006-08-31  Bruno Haible  <bruno@clisp.org>
3318
3319         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
3320         specified, augment Makefile.am variables instead of assigning them.
3321
3322 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3323
3324         Work around a bug in both the Linux and SunOS 64-bit kernels:
3325         nanosleep mishandles sleeps for longer than 2**31 seconds.
3326         Problem reported by Frank v Waveren in
3327         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
3329         Check for nanosleep bug.
3330         (LIB_NANOSLEEP): Append clock_gettime library if needed.
3331
3332 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3333
3334         Work around a bug in both the Linux and SunOS 64-bit kernels:
3335         nanosleep mishandles sleeps for longer than 2**31 seconds.
3336         Problem reported by Frank v Waveren in
3337         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3338         * lib/nanosleep.c (BILLION): New constant.
3339         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
3340         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
3341         implementation.
3342
3343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3344
3345         * modules/nanosleep (Depends-on): Add gettime.
3346
3347 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3348         and Simon Josefsson  <jas@extundo.com>
3349         and Oskar Liljeblad  <oskar@osk.mine.nu>
3350
3351         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
3352         * gnulib-tool (func_import): New license type 'unmodifiable license
3353         text'.
3354         * modules/fdl: Use it.  Longer description.
3355         * module/gpl, module/lgpl: New files.
3356
3357 2006-08-30  Jim Meyering  <jim@meyering.net>
3358
3359         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
3360         shadowing the parameter.
3361
3362 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3363
3364         Sync from Libtool:
3365
3366         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3367
3368         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
3369         sharing with gnulib.  Report by Eric Blake.
3370
3371 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3372
3373         * modules/isapipe: New file.
3374         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
3375
3376 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3377
3378         * modules/configmake (Makefile.am): Add a comment, and omit
3379         the CONFIGMAKE_ prefix from generated macro names.  Suggested
3380         by Bruno Haible.
3381
3382 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3383
3384         * m4/isapipe.m4: New file.
3385
3386 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3387
3388         * lib/isapipe.c, lib/isapipe.h: New files.
3389
3390 2006-08-29  Jim Meyering  <jim@meyering.net>
3391
3392         * modules/configmake (Makefile.am): Make configmake.h depend on
3393         Makefile.  Otherwise, a stale configmake.h could hang around.
3394
3395 2006-08-29  Eric Blake  <ebb9@byu.net>
3396
3397         * lib/error.c (error_at_line, print_errno_message): Match libc, after
3398         resolution of upstream bug 3044.
3399
3400 2006-08-29  Bruno Haible  <bruno@clisp.org>
3401
3402         * modules/localcharset (Depends-on): Add configmake.
3403         (Makefile.am): Remove setting of LIBDIR through DEFS.
3404
3405 2006-08-29  Bruno Haible  <bruno@clisp.org>
3406
3407         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
3408         defined.
3409
3410 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3411
3412         * modules/fcntl: New file.
3413         * modules/chdir-safer (Depends-on): Add fcntl.
3414         * modules/fts: Likewise.
3415         * modules/mkdir-p: Likewise.
3416
3417         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
3418         This undoes the most recent change, since we're now addressing the
3419         problem in a different way.
3420
3421         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
3422         into output, since the output might be called Makefile.am even
3423         if $makefile_name is something different.
3424         (func_import): Use $makefile_am rather than
3425         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
3426         empty.
3427
3428         * modules/inttypes (Files): Add m4/inttypes-h.m4.
3429
3430 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3431
3432         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
3433         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
3434         recent change to stdint.m4, since we're now addressing the problem in a
3435         different way.
3436
3437 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3438
3439         * m4/fcntl_h.m4: New file.
3440
3441 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3442
3443         * lib/fcntl_.h: New file.
3444         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
3445         the fcntl module.
3446         * lib/dirchownmod.c: Likewise.
3447         * lib/fts.c: Likewise.
3448
3449         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
3450         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
3451         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
3452         just before including <inttypes.h>, to avoid circular inclusion.
3453
3454 2006-08-28  Jim Meyering  <jim@meyering.net>
3455
3456         * doc/visibility.texi: Actually read and correct the grammar of the
3457         sentence affected by yesterday's change.
3458
3459 2006-08-28  Eric Blake  <ebb9@byu.net>
3460
3461         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
3462         needs wrapper.
3463
3464 2006-08-28  Eric Blake  <ebb9@byu.net>
3465
3466         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
3467
3468 2006-08-28  Eric Blake  <ebb9@byu.net>
3469
3470         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
3471
3472 2006-08-28  Bruno Haible  <bruno@clisp.org>
3473
3474         * modules/c-strstr: New file, from GNU gettext.
3475         * MODULES.html.sh (String handling): Add c-strstr.
3476
3477 2006-08-28  Bruno Haible  <bruno@clisp.org>
3478
3479         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
3480         macros.
3481         Reported by Eric Blake.
3482
3483 2006-08-28  Bruno Haible  <bruno@clisp.org>
3484
3485         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
3486         (VASNPRINTF): Return a string of length > INT_MAX without failing.
3487         * lib/vasprintf.c: Include errno.h, limits.h.
3488         (EOVERFLOW): New fallback definition.
3489         (vasprintf): Test here whether the string length is > INT_MAX.
3490         * lib/vsnprintf.c: Include errno.h, limits.h.
3491         (EOVERFLOW): New fallback definition.
3492         (vsnprintf): Fix bug when generated string was too long for the buffer.
3493         Test here whether the string length is > INT_MAX.
3494
3495 2006-08-28  Bruno Haible  <bruno@clisp.org>
3496
3497         * lib/inttypes_.h (SCNX*): Remove definitions.
3498         Reported by Eric Blake.
3499
3500 2006-08-28  Bruno Haible  <bruno@clisp.org>
3501
3502         * lib/c-strstr.h: New file, from GNU gettext.
3503         * lib/c-strstr.c: New file, from GNU gettext.
3504
3505 2006-08-28  Bruno Haible  <bruno@clisp.org>
3506
3507         * gnulib-tool: Reorder some statements.
3508
3509 2006-08-28  Bruno Haible  <bruno@clisp.org>
3510
3511         * gnulib-tool: New option --makefile-name.
3512         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
3513         $makefile_name.
3514         (func_import): Write $makefile_name to the cache file, and read it from
3515         there unless explicitly specified. Use $makefile_name as file name
3516         instead of Makefile.am. Adjust the recommendations accordingly.
3517
3518 2006-08-28  Bruno Haible  <bruno@clisp.org>
3519
3520         * gnulib-tool (func_verify_module): Check against misapplying patch.
3521
3522 2006-08-28  Bruno Haible  <bruno@clisp.org>
3523
3524         * gnulib-tool (func_relativize, func_relconcat): New functions.
3525         Give an error if --local-dir is given with --update.
3526         Remove trailing slashes from $local_gnulib_dir.
3527         (func_import): Store the relativized $local_gnulib_dir in
3528         gnulib-cache.m4, and read it from there if not specified explicitly.
3529
3530 2006-08-28  Bruno Haible  <bruno@clisp.org>
3531
3532         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
3533         is the current directory. Respect also $local_gnulib_dir.
3534
3535 2006-08-28  Bruno Haible  <bruno@clisp.org>
3536             Simon Josefsson  <jas@extundo.com>
3537
3538         BeOS portability.
3539         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
3540
3541 2006-08-27  Jim Meyering  <jim@meyering.net>
3542
3543         * doc/visibility.texi: Remove duplicate word: "pointer".
3544
3545 2006-08-26  Bruno Haible  <bruno@clisp.org>
3546
3547         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
3548         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
3549         (Makefile.am): Create inttypes.h from inttypes_.h.
3550         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
3551
3552         * modules/imaxabs: New file.
3553
3554         * modules/imaxdiv: New file.
3555
3556 2006-08-26  Bruno Haible  <bruno@clisp.org>
3557
3558         * m4/inttypes.m4: New file.
3559         * m4/_inttypes_h.m4: Remove file.
3560         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
3561         PRI_MACROS_BROKEN.
3562         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
3563
3564         * m4/imaxabs.m4: New file.
3565
3566         * m4/imaxdiv.m4: New file.
3567
3568 2006-08-26  Bruno Haible  <bruno@clisp.org>
3569
3570         * lib/inttypes_.h: New file.
3571         * lib/inttypes.h: Remove file.
3572         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
3573
3574         * lib/imaxabs.c: New file.
3575
3576         * lib/imaxdiv.c: New file.
3577
3578 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3579
3580         New config-h module, so that "make" output needn't be cluttered
3581         by -DHAVE_CONFIG_H.
3582         * MODULES.html.sh (Support for building libraries and executables):
3583         Add config-h.
3584         * modules/config-h: New file.
3585         * gnulib-tool (nl, sed_transform_lib_file): New vars.
3586         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
3587         the config-h module is used.
3588
3589         New configmake module, so that "make" output needn't be cluttered
3590         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
3591         * MODULES.html.sh (Support for building libraries and executables):
3592         Add configmake.
3593         * modules/configmake: New file.
3594
3595 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3596
3597         * m4/config-h.m4: New file.
3598
3599 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         * config/srclist.txt: Add elisp-comp.
3602
3603 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3604
3605         * MODULES.html.sh (Support for building libraries and executables):
3606         Add elisp-comp.
3607         * build-aux/elisp-comp: New file.
3608         * modules/elisp-comp: New file.
3609
3610 2006-08-24  Bruno Haible  <bruno@clisp.org>
3611
3612         * gnulib-tool (func_create_testdir): Use non-default values of
3613         sourcebase and m4base.
3614
3615 2006-08-24  Bruno Haible  <bruno@clisp.org>
3616
3617         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
3618         HTML structure.
3619
3620 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3621
3622         * modules/openat (Depends-on): Add lchown.
3623
3624 2006-08-23  Bruno Haible  <bruno@clisp.org>
3625
3626         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
3627         of gl_LOCK_EARLY instead of gl_LOCK.
3628
3629 2006-08-23  Bruno Haible  <bruno@clisp.org>
3630
3631         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
3632         on OSF/1 to no.
3633         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
3634
3635 2006-08-23  Bruno Haible  <bruno@clisp.org>
3636
3637         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
3638         as unusable.
3639
3640         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
3641         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
3642         (gl_LOCK): New macro.
3643
3644 2006-08-22  Simon Josefsson  <jas@extundo.com>
3645
3646         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
3647         to md5 module.
3648
3649 2006-08-22  Simon Josefsson  <jas@extundo.com>
3650
3651         * MODULES.html.sh: Add "Support for maintaining and release
3652         projects".
3653
3654         * build-aux/gnupload: New file, from coreutils.
3655
3656 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3657
3658         Avoid the need for AC_LIBSOURCES in m4 macros.
3659         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
3660         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
3661         * modules/check-version (EXTRA_DIST): Add check-version.h.
3662         * modules/crc (EXTRA_DIST): Add crc.h.
3663         * modules/des (EXTRA_DIST): Add des.h.
3664         * modules/gc (EXTRA_DIST): Add gc.h.
3665         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
3666         * modules/getline (EXTRA_DIST): Add getline.h.
3667         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
3668         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
3669         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
3670         * modules/md2 (EXTRA_DIST): Add md2.h.
3671         * modules/md4 (EXTRA_DIST): Add md4.h.
3672         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
3673         * modules/read-file (EXTRA_DIST): Add read-file.h.
3674         * modules/readline (EXTRA_DIST): Add readline.h.
3675         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
3676         rijndael-api-fst.h.
3677
3678 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3679
3680         * m4/rijndael.m4 (gl_ARCFOUR):
3681         * m4/arctwo.m4 (gl_ARCTWO):
3682         * m4/check-version.m4 (gl_CHECK_VERSION):
3683         * m4/crc.m4 (gl_CRC):
3684         * m4/des.m4 (gl_DES):
3685         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
3686         * m4/gc.m4 (gl_GC):
3687         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
3688         * m4/getline.m4 (gl_FUNC_GETLINE):
3689         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
3690         * m4/hmac-md5.m4 (gl_HMAC_MD5):
3691         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
3692         * m4/md2.m4 (gl_MD2):
3693         * m4/md4.m4 (gl_MD4):
3694         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
3695         * m4/read-file.m4 (gl_FUNC_READ_FILE):
3696         * m4/readline.m4 (gl_FUNC_READLINE):
3697         * m4/rijndael.m4 (gl_RIJNDAEL):
3698         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
3699         to get the necessary .h files and whatnot.
3700
3701 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
3704         gnulib rather than the other way around.
3705         * config/srclistvars.sh (COREUTILS): Remove.
3706
3707 2006-08-22  Jim Meyering  <jim@meyering.net>
3708
3709         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
3710
3711         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
3712
3713 2006-08-22  Eric Blake  <ebb9@byu.net>
3714
3715         * modules/regexprops-generic: New file.
3716         * MODULES.html.sh (Support for building documentation): List it.
3717
3718 2006-08-22  Eric Blake  <ebb9@byu.net>
3719
3720         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
3721         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3722         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3723         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3724
3725 2006-08-22  Bruno Haible  <bruno@clisp.org>
3726
3727         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
3728         and lib_LTLIBRARIES like the other lib_* variables.
3729
3730 2006-08-22  Bruno Haible  <bruno@clisp.org>
3731
3732         * build-aux/x-to-1.in: New file, from GNU gettext.
3733
3734 2006-08-22  Bruno Haible  <bruno@clisp.org>
3735
3736         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
3737         <utmpx.h> exists.
3738
3739 2006-08-22  Bruno Haible  <bruno@clisp.org>
3740
3741         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
3742         <utmpx.h> exists.
3743
3744 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3745
3746         BeOS portability.
3747         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
3748         exist.
3749         Problem reported by Bruno Haible.
3750
3751 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3752
3753         Avoid the need for AC_LIBSOURCES in m4 macros.
3754         * modules/acl (EXTRA_DIST): Add acl.h.
3755         * modules/argmatch (Files): Add m4/argmatch.m4.
3756         (configure.ac): Add gl_ARGMATCH.
3757         (EXTRA_DIST): Renamed from lib_SOURCES, for
3758         consistency with the other modules.  Remove argmatch.c.
3759         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
3760         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
3761         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
3762         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
3763         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
3764         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
3765         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
3766         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
3767         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
3768         * modules/closeout (EXTRA_DIST): Add closeout.h.
3769         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
3770         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
3771         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
3772         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
3773         dirname.h; remove basename.c and stripslash.c.
3774         * modules/exclude (EXTRA_DIST): Add exclude.h.
3775         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
3776         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
3777         * modules/file-type (EXTRA_DIST): Add file-type.h.
3778         * modules/filemode (EXTRA_DIST): Add filemode.h.
3779         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
3780         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3781         * modules/fpending (EXTRA_DIST): Add __fpending.h.
3782         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
3783         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
3784         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
3785         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
3786         * modules/getdate (EXTRA_DIST): Add getdate.c.
3787         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
3788         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
3789         * modules/getpass (EXTRA_DIST): Add getpass.h.
3790         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
3791         * modules/group-member (EXTRA_DIST): Add group-member.h.
3792         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
3793         * modules/hash (EXTRA_DIST): Add hash.h.
3794         * modules/human (EXTRA_DIST): Add human.h.
3795         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
3796         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
3797         * modules/lchown (EXTRA_DIST): Add lchown.h.
3798         * modules/long-options (EXTRA_DIST): Add long-options.h.
3799         * modules/lstat (EXTRA_DIST): Add lstat.h.
3800         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
3801         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
3802         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
3803         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
3804         * modules/memxor (EXTRA_DIST): Add memxor.h.
3805         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
3806         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
3807         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
3808         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
3809         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
3810         * modules/physmem (EXTRA_DIST): Add physmem.h.
3811         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
3812         * modules/posixver (EXTRA_DIST): Add posixver.h.
3813         * modules/quote (EXTRA_DIST): Add quote.h.
3814         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
3815         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
3816         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
3817         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
3818         regex_internal.h regexec.c.
3819         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
3820         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
3821         * modules/same (EXTRA_DIST): Add same.h.
3822         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
3823         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
3824         * modules/savedir (EXTRA_DIST): Add savedir.h.
3825         * modules/sha1 (EXTRA_DIST): Add sha1.h.
3826         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
3827         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
3828         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
3829         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
3830         * modules/strdup (EXTRA_DIST): Add strdup.h.
3831         * modules/strftime (EXTRA_DIST): Add strftime.h.
3832         * modules/strndup (EXTRA_DIST): Add strndup.h.
3833         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
3834         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
3835         * modules/time_r (EXTRA_DIST): Add time_r.h.
3836         * modules/timespec (EXTRA_DIST): Add timespec.h.
3837         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3838         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
3839         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
3840         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
3841         * modules/userspec (EXTRA_DIST): Add userspec.h.
3842         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
3843         * modules/utimens (EXTRA_DIST): Add utimens.h.
3844         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
3845         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
3846         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
3847         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
3848         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
3849         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
3850         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
3851         * modules/yesno (EXTRA_DIST): Add yesno.h.
3852
3853 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3854
3855         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
3856
3857         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
3858         * m4/dev-ino.m4, same-inode.m4: Remove.
3859
3860         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
3861         * m4/acl.m4 (AC_FUNC_ACL):
3862         * m4/backupfile.m4 (gl_BACKUPFILE):
3863         * m4/c-strtod.m4 (gl_C99_STRTOLD):
3864         * m4/canon-host.m4 (gl_CANON_HOST):
3865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
3866         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
3867         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
3868         * m4/cloexec.m4 (gl_CLOEXEC):
3869         * m4/close-stream.m4 (gl_CLOSE_STREAM):
3870         * m4/closeout.m4 (gl_CLOSEOUT):
3871         * m4/dirfd.m4 (gl_FUNC_DIRFD):
3872         * m4/dirname.m4 (gl_DIRNAME):
3873         * m4/exclude.m4 (gl_EXCLUDE):
3874         * m4/exitfail.m4 (gl_EXITFAIL):
3875         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
3876         * m4/file-type.m4 (gl_FILE_TYPE):
3877         * m4/filemode.m4 (gl_FILEMODE):
3878         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
3879         * m4/fpending.m4 (gl_FUNC_FPENDING):
3880         * m4/fprintftime.m4 (gl_FPRINTFTIME):
3881         * m4/fts.m4 (gl_FUNC_FTS):
3882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
3883         * m4/getdate.m4 (gl_GETDATE):
3884         * m4/gethrxtime.m4 (gl_GETHRXTIME):
3885         * m4/getpagesize.m4 (gl_GETPAGESIZE):
3886         * m4/getpass.m4 (gl_FUNC_GETPASS):
3887         * m4/gettime.m4 (gl_GETTIME):
3888         * m4/getugroups.m4 (gl_GETUGROUPS):
3889         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
3890         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
3891         * m4/hard-locale.m4 (gl_HARD_LOCALE):
3892         * m4/hash.m4 (gl_HASH):
3893         * m4/idcache.m4 (gl_IDCACHE):
3894         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
3895         * m4/lchown.m4 (gl_FUNC_LCHOWN):
3896         * m4/long-options.m4 (gl_LONG_OPTIONS):
3897         * m4/lstat.m4 (gl_FUNC_LSTAT):
3898         * m4/md5.m4 (gl_MD5):
3899         * m4/memcasecmp.m4 (gl_MEMCASECMP):
3900         * m4/memcoll.m4 (gl_MEMCOLL):
3901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
3902         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
3903         * m4/memxor.m4 (gl_MEMXOR):
3904         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
3905         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
3906         * m4/modechange.m4 (gl_MODECHANGE):
3907         * m4/mountlist.m4 (gl_MOUNTLIST):
3908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
3909         * m4/openat.m4 (gl_FUNC_OPENAT):
3910         * m4/pathmax.m4 (gl_PATHMAX):
3911         * m4/physmem.m4 (gl_PHYSMEM):
3912         * m4/posixtm.m4 (gl_POSIXTM):
3913         * m4/posixver.m4 (gl_POSIXVER):
3914         * m4/quote.m4 (gl_QUOTE):
3915         * m4/quotearg.m4 (gl_QUOTEARG):
3916         * m4/readtokens.m4 (gl_READTOKENS):
3917         * m4/readutmp.m4 (gl_READUTMP):
3918         * m4/regex.m4 (gl_REGEX):
3919         * m4/safe-read.m4 (gl_SAFE_READ):
3920         * m4/safe-write.m4 (gl_SAFE_WRITE):
3921         * m4/same.m4 (gl_SAME):
3922         * m4/save-cwd.m4 (gl_SAVE_CWD):
3923         * m4/savedir.m4 (gl_SAVEDIR):
3924         * m4/settime.m4 (gl_SETTIME):
3925         * m4/sha1.m4 (gl_SHA1):
3926         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
3927         * m4/stat-macros.m4 (gl_STAT_MACROS):
3928         * m4/stat-time.m4 (gl_STAT_TIME):
3929         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
3930         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
3931         * m4/strdup.m4 (gl_FUNC_STRDUP):
3932         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
3933         * m4/strndup.m4 (gl_FUNC_STRNDUP):
3934         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
3935         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
3936         * m4/time_r.m4 (gl_TIME_R):
3937         * m4/timespec.m4 (gl_TIMESPEC):
3938         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
3939         * m4/unlinkdir.m4 (gl_UNLINKDIR):
3940         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
3941         * m4/userspec.m4 (gl_USERSPEC):
3942         * m4/utimecmp.m4 (gl_UTIMECMP):
3943         * m4/utimens.m4 (gl_UTIMENS):
3944         * m4/xalloc.m4 (gl_XALLOC):
3945         * m4/xgetcwd.m4 (gl_XGETCWD):
3946         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
3947         * m4/xreadlink.m4 (gl_XREADLINK):
3948         * m4/xstrtod.m4 (gl_XSTRTOD):
3949         * m4/yesno.m4 (gl_YESNO):
3950         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
3951         to get the necessary .h files and whatnot.
3952
3953 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
3954             Bruno Haible  <bruno@clisp.org>
3955
3956         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
3957         /bin/sh understanding of '!' conditional negation.
3958
3959 2006-08-21  Jim Meyering  <jim@meyering.net>
3960
3961         * modules/openat (Depends-on): Really alphabetize.
3962
3963         * modules/acl (Depends-on): Add error and quote.
3964
3965         * check-module (find_included_lib_files): Add at-func.c to the
3966         ok-to-include-more-than-once white list.
3967
3968         * modules/openat (Depends-on): Add lstat.  Alphabetize.
3969
3970 2006-08-21  Bruno Haible  <bruno@clisp.org>
3971
3972         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3973         Emit a pkgdata_DATA variable only if some snippets add contents to it.
3974         Reported by Martin Lambers <marlam@marlam.de>.
3975
3976 2006-08-21  Bruno Haible  <bruno@clisp.org>
3977
3978         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
3979         specify an installation location, don't emit a noinst_LIBRARIES or
3980         noinst_LTLIBRARIES assignment.
3981
3982 2006-08-21  Bruno Haible  <bruno@clisp.org>
3983
3984         BeOS portability.
3985         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
3986         BeOS has mbrtowc() but no <wctype.h>.
3987
3988 2006-08-21  Bruno Haible  <bruno@clisp.org>
3989
3990         BeOS portability.
3991         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
3992         exist.
3993
3994 2006-08-21  Bruno Haible  <bruno@clisp.org>
3995
3996         BeOS portability.
3997         * lib/mbchar.h: Include <wctype.h> only if it exists.
3998
3999 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4000
4001         Remove files that are no longer needed by their respective modules.
4002         * m4/obstack.m4: Remove.
4003         * m4/strerror_r.m4: Remove.
4004         * m4/uint32_t.m4: Remove.
4005         * m4/uintptr_t.m4: Remove.
4006         * m4/ullong_max.m4: Remove.
4007         * m4/xstrtoimax.m4: Remove.
4008         * m4/xstrtoumax.m4: Remove.
4009
4010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
4011         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
4012         dependencies now capture this.
4013
4014         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
4015         Do not use AC_LIBSOURCES, since gnulib modules now do this.
4016         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
4017         * m4/human.m4 (gl_HUMAN): Likewise.
4018         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
4019         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
4020
4021         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
4022
4023         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
4024         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
4025         stdint.
4026         * m4/human.m4 (gl_HUMAN): Likewise.
4027         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
4028         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
4029         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4030         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4031         * m4/xstrtol (gl_XSTRTOL): Likewise.
4032
4033         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
4034         AC_TYPE_LONG_LONG_INT.
4035         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4036         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
4037         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
4038         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4039
4040         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
4041         on stdbool.
4042
4043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
4044         (gl_PREREQ_XSTRTOUL): Remove.
4045
4046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
4047
4048         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
4049         mode.
4050
4051 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4052
4053         Add and change modules to make it easier for coreutils to use
4054         gnulib-tool.
4055         * modules/backupfile (Files): Remove m4/d-ino.m4.
4056         (Depends-on): Add d-ino.
4057         * modules/cycle-check (Depends-on): Add stdint.
4058         (lib_SOURCES): Add cycle-check.h.
4059         * modules/d-ino: New module.
4060         * modules/d-type: New module.
4061         * modules/error (Files): Remove m4/strerror_r.m4.
4062         * modules/filemode (Files): Add m4/st_dm_mode.m4.
4063         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4064         m4/inttypes_h.m4, m4/uintmax_t.m4.
4065         (Depends-on): Add stdint.
4066         (lib_SOURCES): Add fsusage.h.
4067         * modules/getcwd (Files): Remove d-ino.m4.
4068         (Depends-on): Add d-ino.
4069         * modules/getndelim2 (Depends-on): Add stdint.
4070         * modules/glob (Files): Remove m4/d-type.m4.
4071         (Depends-on): Add d-type.
4072         * modules/host-os: New module.
4073         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
4074         m4/inttypes_h.m4, m4/uintmax_t.m4.
4075         * Depends-on: Add stdint.
4076         (lib_SOURCES): Add human.h.
4077         * modules/inttostr (Files): Remove m4/intmax_t.m4,
4078         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
4079         m4/uintmax_t.m4, m4/ulonglong.m4.
4080         (Depends-on): Add stdint.
4081         (EXTRA_DIST): Add inttostr.h.
4082         * modules/lchmod: New module.
4083         * modules/link-follow: New module.
4084         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
4085         (Depends-on): Add lchmod.
4086         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
4087         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
4088         (Depends-on): Add stdint.
4089         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
4090         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
4091         (Depends-on): Add stdint.
4092         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
4093         * modules/perl: New module.
4094         * modules/regex (Depends-on): Add stdint.
4095         * modules/rmdir-errno: New module.
4096         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4097         m4/intmax_t.m4.
4098         (Depends-on): Add stdint.
4099         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4100         m4/uintmax_t.m4.
4101         (Depends-on): Add stdint.
4102         * modules/unlink-busy: New module.
4103         * modules/utimecmp (Depends-on): Add stdint.
4104         * modules/uptime: New module.
4105         * modules/winsz-ioctl: New module.
4106         * modules/winsz-termios: New module.
4107         * modules/xnanosleep (Depends-on): Add nanosleep.
4108         * modules/ullong_max: Remove.
4109         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
4110         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
4111         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
4112         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
4113         (Depends-on): Add inttypes.
4114         (lib_SOURCES): Add xstrtol.h.
4115         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
4116         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
4117         * MODULES.html.sh: Move 'assert' into the assert section.
4118         Move 'dummy' into the linking section.
4119         Remove ullong_max.
4120         Add section for compatibility checks for POSIX:2001 functions,
4121         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
4122         winsz-ioctl, and winsz-termios into it.
4123         Add lchmod.
4124         Add top-level Misc section and put host-os, perl, and uptime
4125         into it.
4126
4127 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
4130         now assume the stdint module.  Do not include inttypes.h.
4131         * lib/fsusage.h: Likewise.
4132         * lib/getndelim2.c: Likewise.
4133         * lib/human.h: Likewise.
4134         * lib/inttostr.h: Likewise.
4135         * lib/obstack.c: Likewise.
4136         * lib/regex_internal.h: Likewise.
4137         * lib/tempname.c: Likewise.
4138         * lib/utimecmp.c: Likewise.
4139         * lib/xstrtol.h: Likewise.
4140
4141         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
4142
4143         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
4144         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
4145         * lib/xtime.h: Likewise.
4146
4147 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4148
4149         * modules/openat (Files): Add lib/fchmodat.c.
4150         Fixes problem reported by Jay Youngman.
4151
4152 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4153
4154         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
4155         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
4156
4157 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4158             Bruno Haible  <bruno@clisp.org>
4159
4160         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
4161         and is a script that invokes bison. Tighten the code. Add comments.
4162
4163 2006-08-18  Jim Meyering  <jim@meyering.net>
4164
4165         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
4166         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
4167         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
4168         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
4169
4170 2006-08-18  Bruno Haible  <bruno@clisp.org>
4171
4172         * modules/bison-i18n: New file.
4173         * MODULES.html.sh (Internationalization functions): Add it.
4174
4175 2006-08-18  Bruno Haible  <bruno@clisp.org>
4176
4177         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
4178         sys/statvfs.h. When getmntinfo was found, check its declaration and
4179         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
4180
4181 2006-08-18  Bruno Haible  <bruno@clisp.org>
4182
4183         * m4/bison-i18n.m4: New file, from bison.
4184
4185 2006-08-18  Bruno Haible  <bruno@clisp.org>
4186
4187         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
4188         (ME_DUMMY): Treat "kernfs" as a dummy.
4189         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
4190
4191 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4192
4193         Update from coreutils.
4194
4195         2006-08-15  Jim Meyering  <jim@meyering.net>
4196
4197         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
4198
4199         2006-01-17  Jim Meyering  <jim@meyering.net>
4200
4201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
4202
4203         2006-01-11  Jim Meyering  <jim@meyering.net>
4204
4205         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
4206         Check for the lchmod function.
4207
4208 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4209
4210         Update from coreutils.
4211
4212         * lib/__fpending.h: Add copyright notice.
4213         * lib/fprintftime.h: Likewise.
4214         * lib/savedir.c: Use (C) in copyright notice.
4215         * lib/savedir.h: Likewise.
4216
4217         2006-08-15  Jim Meyering  <jim@meyering.net>
4218
4219         * lib/at-func.c: New file, with the logic of all emulated at-functions.
4220         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
4221         in support of the EXPECTED_ERRNO macro.
4222         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
4223         definitions.  Instead, define the appropriate symbols and include
4224         "at-func.c".
4225         * lib/mkdirat.c (mkdirat): Likewise.
4226         * lib/fchmodat.c (fchmodat): Likewise.
4227         (ENOSYS): Remove definition.
4228         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
4229         it.  Don't include "unistd--.h" -- it wasn't ever used.
4230
4231         2006-01-17  Jim Meyering  <jim@meyering.net>
4232
4233         Rewrite fts.c not to change the current working directory,
4234         by using openat, fstatat, fdopendir, etc..
4235
4236         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
4237         (HAVE_OPENAT_SUPPORT): Define.
4238         [_LIBC] (fchdir): Don't undef or define; no longer used.
4239         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
4240         Now, this `function' always succeeds, and consumes its file descriptor
4241         parameter -- so callers must not close such FDs.  Update callers.
4242         (diropen_fd, opendirat, cwd_advance_fd): New functions.
4243         (diropen): Add parameter, SP.  Adjust all callers.
4244         Implement using diropen_fd, rather than open.
4245         (fts_open): Initialize new member, fts_cwd_fd.
4246         Remove fts_rft-setting code.
4247         (fts_close): Close fts_cwd_fd, if necessary.
4248         (__opendir2): Define in terms of opendir or opendirat,
4249         depending on whether the FST_NOCHDIR flag is set.
4250         (fts_build): Since fts_safe_changedir consumes its FD, and since
4251         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
4252         and close the dup'd file descriptor upon failure.
4253         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
4254         (fts_safe_changedir): Tweak semantics to reflect that this function
4255         now calls cwd_advance_fd and hence consumes its FD argument.
4256         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
4257         [struct FTS] (fts_rft): Remove now-unused member.
4258         [struct FTS] (fts_cycle.state): Improve comment.
4259
4260         * lib/openat.c (openat_needs_fchdir): New function.
4261         * lib/openat.h (openat_needs_fchdir): Declare it.
4262
4263 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4264
4265         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
4266         Problem and fix reported by Pádraig Brady in
4267         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
4268
4269 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4270
4271         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
4272
4273 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4274
4275         * lib/memcoll.c (memcoll): Optimize for the common case where the
4276         arguments are bytewise equal.
4277
4278 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4279
4280         * doc/regexprops-generic.texi: Add a copyright notice.
4281
4282 2006-08-15  Bruno Haible  <bruno@clisp.org>
4283
4284         * modules/tmpdir (License): Change to LGPL.
4285
4286 2006-08-15  Bruno Haible  <bruno@clisp.org>
4287
4288         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
4289         module.
4290
4291 2006-08-14  Simon Josefsson  <jas@extundo.com>
4292
4293         * config/srclist.txt: Add gnupload.
4294
4295 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4296
4297         Change copyright notice from LGPL 2 to GPL 2, since that's the
4298         standard form used in the gnulib repository.
4299         * tests/test-lock.c: Likewise.
4300         * tests/test-stdint.c: Likewise.
4301         * tests/test-tls.c: Likewise.
4302
4303         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
4304         prelude-manager.  User shorter URLs for GNU projects, without '?'.
4305         Add copyright notice.
4306
4307         * check-module: Add copyright notice.  Output a copyright
4308         notice if "--version" is specified.
4309         * modules/COPYING: New file.
4310         * tests/test-getaddrinfo.c: Add copyright notice.
4311         * tests/test-verify.c: Likewise.
4312
4313 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4314
4315         Change copyright notice from LGPL 2 to GPL 2, since that's the
4316         standard form used in the gnulib repository.
4317         * lib/lock.c: LGPL -> GPL.
4318         * lib/lock.h: Likewise.
4319         * lib/strnlen1.c: Likewise.
4320         * lib/strnlen1.h: Likewise.
4321         * lib/tls.c: Likewise.
4322         * lib/tls.h: Likewise.
4323         * lib/tmpdir.c: Likewise.
4324
4325         * lib/TODO: Remove; this belongs only in coreutils.
4326
4327 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4328
4329         Add copyright notices to long-enough files that lack them, since
4330         otherwise the files aren't clearly free.  Use the same notice that
4331         getdate.texi already uses.
4332         * doc/alloca-opt.texi: Add copyright notice.
4333         * doc/alloca.texi: Likewise.
4334         * doc/ctime.texi: Likewise.
4335         * doc/functions.texi: Likewise.
4336         * doc/gcd.texi: Likewise.
4337         * doc/gnulib-tool.texi: Likewise.
4338         * doc/inet_ntoa.texi: Likewise.
4339         * doc/visibility.texi: Likewise.
4340
4341         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
4342         * doc/quote.texi: Add copyright notice.
4343
4344         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
4345         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
4346         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
4347         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
4348         is now obsolete, and give a pointer to the Sun list.
4349         Add copyright notice.
4350
4351 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4352
4353         * config/srclistvars.sh: Add copyright notice.
4354
4355 2006-08-14  Eric Blake  <ebb9@byu.net>
4356
4357         Import the following change from libc:
4358
4359         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
4360
4361         Upstream bug 2997.
4362         * lib/misc/error.c: Add space between program name and message if file
4363         name is missing.
4364
4365 2006-08-12  Karl Berry  <karl@gnu.org>
4366
4367         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
4368         remove, these originate in gnulib now.
4369
4370 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4371
4372         * doc/Makefile (standards.info standards.html standards.dvi):
4373         Also depend on make-stds.texi.
4374
4375 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4376
4377         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
4378         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
4379
4380         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
4381         in wchar_t.  Problem reported by Eric Blake.
4382
4383         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
4384         LEN is smaller than SIZE.  Suggested by Bruno Haible.
4385         Also, help the compiler to keep LEN in a register.
4386
4387 2006-08-11  Eric Blake  <ebb9@byu.net>
4388
4389         * users.txt: Sort.  Add tar.
4390
4391 2006-08-11  Bruno Haible  <bruno@clisp.org>
4392
4393         * users.txt: New file.
4394
4395 2006-08-11  Bruno Haible  <bruno@clisp.org>
4396
4397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
4398         before <wchar.h>. Needed for OSF/1 and BSD/OS.
4399
4400 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4401
4402         * modules/snprintf (Depends-on): Remove minmax.
4403         (Maintainer): Add self and Bruno.
4404
4405 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         * lib/.cppi-disable: Add snprintf.h, socket_.h.
4408         * lib/snprintf.c: Include <errno.h> and <limits.h>.
4409         (EOVERFLOW): Define if the system does not.
4410         Do not include "minmax.h"; it wasn't used.
4411         (snprintf): Don't assume size_t promotes to an unsigned type.
4412         Fix bug when generated string was too long for the buffer: the
4413         buffer's contents are supposed to be the initial prefix of the
4414         output.  Don't assume vasnprintf returns EOVERFLOW if the size
4415         exceeds INT_MAX; do the check ourselves.
4416
4417         Import the following changes from libc:
4418
4419         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
4420
4421         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
4422         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
4423         set wc to the byte which couldn't be converted.
4424         (re_string_reconstruct): Don't clear valid_raw_len before calling
4425         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
4426         tip_context using re_string_context_at.
4427
4428         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
4429
4430         * lib/posix/regex.h: g++ still cannot handled [restrict].
4431
4432         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * lib/posix/regex.h: Remove special handling for VMS.
4435
4436 2006-08-10  Jim Meyering  <jim@meyering.net>
4437
4438         * modules/same-inode: New module.
4439         * modules/dev-ino: New module.
4440         * modules/cycle-check: Depend on these modules, rather than simply
4441         including their .h files.
4442         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
4443         required via m4/cycle-check.m4.
4444         * modules/same: Depend on new same-inode module, rather than
4445         including same-inode.h.
4446         * modules/chdir-safer: New file.
4447
4448         * modules/chown (Depends-on): Add stat-macros.
4449
4450 2006-08-10  Jim Meyering  <jim@meyering.net>
4451
4452         * m4/cycle-check.m4: New file.
4453         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
4454         * m4/dev-ino.m4, m4/same-inode.m4: New files.
4455
4456 2006-08-10  Eric Blake  <ebb9@byu.net>
4457
4458         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
4459         in from original proposal.
4460
4461 2006-08-10  Eric Blake  <ebb9@byu.net>
4462         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4463
4464         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
4465         namespace.
4466
4467 2006-08-10  Bruno Haible  <bruno@clisp.org>
4468
4469         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
4470         as well.
4471
4472 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4473
4474         Sync from coreutils.
4475
4476         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
4477
4478         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
4479         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
4480
4481 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4482
4483         * modules/restrict: Remove; no longer needed now that we assume
4484         Autoconf 2.59 or later.
4485         * MODULES.html.sh: Remove 'restrict'.
4486         * modules/argp (Depends-on): Remove 'restrict'.
4487         * modules/base64 (Depends-on): Likewise.
4488         * modules/gc (Depends-on): Likewise.
4489         * modules/getaddrinfo (Depends-on): Likewise.
4490         * modules/glob (Depends-on): Likewise.
4491         * modules/inet_ntop (Depends-on): Likewise.
4492         * modules/inet_pton (Depends-on): Likewise.
4493         * modules/memxor (Depends-on): Likewise.
4494         * modules/regex (Depends-on): Likewise.
4495         * modules/strtok_r (Depends-on): Likewise.
4496         * modules/time_r (Depends-on): Likewise.
4497
4498 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4499
4500         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
4501         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
4502         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4503         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
4504         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4505         * m4/memxor.m4 (gl_MEMXOR): Likewise.
4506         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
4507         gl_C_RESTRICT replaced by AC_C_RESTRICT.
4508
4509         Merge from coreutils.
4510         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
4511         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
4512         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4513         * m4/time_r.m4 (gl_TIME_R): Likewise.
4514
4515 2006-08-09  Karl Berry  <karl@gnu.org>
4516
4517         * config/srclist.txt: no more gettext-tools, per Bruno.
4518
4519 2006-08-08  Eric Blake  <ebb9@byu.net>
4520
4521         * modules/verror: New module.
4522         * MODULES.html.sh: Document it.
4523
4524 2006-08-08  Eric Blake  <ebb9@byu.net>
4525
4526         * lib/verror.h, lib/verror.c: New files.
4527
4528 2006-08-08  Eric Blake  <ebb9@byu.net>
4529
4530         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
4531         verror_at_line output complies with GNU Coding Standards even when
4532         file is NULL.
4533
4534 2006-08-07  Bruno Haible  <bruno@clisp.org>
4535
4536         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
4537         versions of AIX.
4538         Reported by Ralf Wildenhues.
4539
4540 2006-08-07  Bruno Haible  <bruno@clisp.org>
4541
4542         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
4543         in an AC_DEFUN. Needed so that the autoconf snippets can use
4544         AC_REQUIRE.
4545
4546 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4547
4548         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4549         Initialize pkgdata_DATA.
4550         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
4551         overriding it.
4552
4553 2006-08-06  Eric Blake  <ebb9@byu.net>
4554
4555         * lib/error.h: Fold in some upstream changes from glibc.
4556         * lib/error.c: Likewise.
4557
4558 2006-08-04  Bruno Haible  <bruno@clisp.org>
4559
4560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4561         Make the mostlyclean-local rule depend on mostlyclean-generic.
4562         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
4563
4564 2006-07-31  Bruno Haible  <bruno@clisp.org>
4565
4566         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
4567         <stdlib.h>, <string.h>.
4568
4569 2006-07-30  Bruno Haible  <bruno@clisp.org>
4570
4571         * modules/readlink (License): Change to LGPL.
4572
4573 2006-07-30  Bruno Haible  <bruno@clisp.org>
4574
4575         * modules/javaversion (Makefile.am): Distribute javaversion.java and
4576         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
4577         set PKGDATADIR to point to it.
4578
4579 2006-07-30  Bruno Haible  <bruno@clisp.org>
4580
4581         * modules/csharpexec (configure.ac): Comment out macro invocation.
4582         * modules/javaexec (configure.ac): Likewise.
4583         * modules/javacomp-script (configure.ac): Likewise.
4584
4585         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
4586
4587 2006-07-30  Bruno Haible  <bruno@clisp.org>
4588
4589         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
4590         linked-list.
4591
4592 2006-07-30  Bruno Haible  <bruno@clisp.org>
4593
4594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
4595
4596 2006-07-30  Bruno Haible  <bruno@clisp.org>
4597
4598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4599         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
4600         get removed.
4601
4602 2006-07-29  Bruno Haible  <bruno@clisp.org>
4603
4604         Make it possible for gnulib-tool to work with locally modified or
4605         augmented gnulib repositories.
4606         * gnulib-tool (func_usage): Document --local-dir option.
4607         (local_gnulib_dir): New variable.
4608         Handle --local-dir option.
4609         (func_lookup_file): New function.
4610         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
4611         (func_get_description, func_get_filelist, func_get_description,
4612         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
4613         func_get_automake_snippet, func_get_include_directive,
4614         func_get_license, func_get_maintainer): Use func_lookup_file.
4615         (func_import, func_create_testdir): Use func_lookup_file.
4616
4617 2006-07-29  Bruno Haible  <bruno@clisp.org>
4618
4619         * modules/setenv (Depends-on): Add unistd.
4620
4621 2006-07-29  Bruno Haible  <bruno@clisp.org>
4622
4623         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
4624
4625 2006-07-29  Bruno Haible  <bruno@clisp.org>
4626
4627         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
4628
4629 2006-07-29  Bruno Haible  <bruno@clisp.org>
4630
4631         * gnulib-tool (import, update): If there is no Makefile.am, look at
4632         aclocal.m4, instead of bailing out.
4633
4634 2006-07-29  Bruno Haible  <bruno@clisp.org>
4635
4636         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
4637         Categorize the options by when they are useful.
4638
4639 2006-07-29  Bruno Haible  <bruno@clisp.org>
4640
4641         * gnulib-tool (func_usage): Document option --no-libtool.
4642         Handle option --no-libtool.
4643         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
4644         for changed semantics of $libtool variable.
4645         (func_import): Likewise. If libtool is not used, show this through
4646         an option --no-libtool.
4647         (func_create_testdir): Update.
4648
4649 2006-07-29  Bruno Haible  <bruno@clisp.org>
4650
4651         * gnulib-tool (func_import): Extend error message about missing
4652         --doc-base.
4653
4654 2006-07-29  Bruno Haible  <bruno@clisp.org>
4655
4656         * gnulib-tool (func_import): Don't create the $docbase directory if
4657         there is no file to store there.
4658
4659 2006-07-29  Bruno Haible  <bruno@clisp.org>
4660
4661         * gnulib-tool (autoconf_minversion): If a --dir option is given and
4662         relevant, look for configure.ac there, not in the current directory.
4663         Also use a simple search for AC_PREREQ, not "autoconf --trace".
4664
4665 2006-07-29  Bruno Haible  <bruno@clisp.org>
4666
4667         * gnulib-tool (SORT): New variable.
4668         (func_usage): Undocument --assume-autoconf option.
4669         Remove --assume-autoconf option handling.
4670         (autoconf_minversion): Determine from the contents of configure.ac.
4671         (func_import): Remove autoconf_minversion handling.
4672         Suggested by Eric Blake.
4673
4674 2006-07-29  Bruno Haible  <bruno@clisp.org>
4675
4676         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
4677
4678 2006-07-29  Bruno Haible  <bruno@clisp.org>
4679
4680         * config/srclist.txt (*setenv.[ch]): Remove rules.
4681
4682 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4683
4684         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
4685
4686 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4687
4688         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
4689         arpa/inet.h.
4690
4691 2006-07-28  Simon Josefsson  <jas@extundo.com>
4692
4693         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
4694         * modules/inet_pton (Depends-on): Likewise.
4695
4696 2006-07-28  Simon Josefsson  <jas@extundo.com>
4697
4698         * m4/netinet_in_h.m4: New file.
4699
4700 2006-07-28  Simon Josefsson  <jas@extundo.com>
4701
4702         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
4703         #include's.
4704
4705 2006-07-28  Simon Josefsson  <jas@extundo.com>
4706
4707         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
4708         #include's.
4709
4710 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
4713         setgid on directories only if they set these bits.
4714         * lib/modechange.h: Remove obsolete comment about masks.
4715
4716 2006-07-28  Eric Blake  <ebb9@byu.net>
4717
4718         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
4719         macro expansion.
4720
4721 2006-07-28  Bruno Haible  <bruno@clisp.org>
4722
4723         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
4724
4725 2006-07-28  Bruno Haible  <bruno@clisp.org>
4726
4727         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
4728
4729 2006-07-28  Bruno Haible  <bruno@clisp.org>
4730
4731         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4732         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4733         Define fallbacks.
4734         Avoids link error on FreeBSD 4.x.
4735         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4736
4737         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
4738         encoding.
4739         * lib/mbswidth.c (iswcntrl): Likewise.
4740
4741 2006-07-27  Bruno Haible  <bruno@clisp.org>
4742
4743         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
4744         test.
4745
4746 2006-07-27  Bruno Haible  <bruno@clisp.org>
4747
4748         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
4749         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
4750         defined.
4751
4752 2006-07-26  Eric Blake  <ebb9@byu.net>
4753
4754         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
4755
4756 2006-07-26  Eric Blake  <ebb9@byu.net>
4757
4758         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
4759         like mingw that lack mkstemp.
4760         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
4761         avoid compilation warning on mingw.
4762
4763 2006-07-26  Bruno Haible  <bruno@clisp.org>
4764
4765         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
4766         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
4767         INT_FAST*_MIN, INTPTR_MIN.
4768
4769 2006-07-25  Bruno Haible  <bruno@clisp.org>
4770
4771         * modules/version-etc (Depends-on): Add stdarg.
4772
4773 2006-07-25  Bruno Haible  <bruno@clisp.org>
4774
4775         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
4776         complex commands.
4777
4778 2006-07-25  Bruno Haible  <bruno@clisp.org>
4779
4780         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
4781         defined in <stdarg.h> or config.h.
4782
4783 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4784
4785         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
4786         (gl_STDIO_SAFER): Remove.
4787
4788 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4789
4790         * MODULES.html.sh (File stream based Input/Output):
4791         Add fopen-safer, tmpfile-safer; remove stdio-safer.
4792         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
4793         * modules/fopen-safer, modules/tmpfile-safer: New files.
4794         * modules/stdio-safer: Remove.
4795
4796 2006-07-24  Bruno Haible  <bruno@clisp.org>
4797
4798         * modules/tmpdir: New file.
4799         * MODULES.html.sh (File system functions): Add it.
4800
4801 2006-07-24  Bruno Haible  <bruno@clisp.org>
4802
4803         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
4804         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
4805
4806 2006-07-24  Bruno Haible  <bruno@clisp.org>
4807
4808         * modules/clean-temp: New file.
4809
4810 2006-07-24  Bruno Haible  <bruno@clisp.org>
4811
4812         * m4/tmpdir.m4: New file, from GNU gettext.
4813
4814 2006-07-24  Bruno Haible  <bruno@clisp.org>
4815
4816         * lib/tmpdir.h: New file, from GNU gettext.
4817         * lib/tmpdir.c: New file, from GNU gettext.
4818
4819 2006-07-24  Bruno Haible  <bruno@clisp.org>
4820
4821         * lib/clean-temp.h: New file, from GNU gettext.
4822         * lib/clean-temp.c: New file, from GNU gettext.
4823
4824 2006-07-23  Eric Blake  <ebb9@byu.net>
4825
4826         * modules/stdio-safer (Files): Add tmpfile-safer.c.
4827         (Depends-on): Add binary-io.
4828
4829 2006-07-23  Eric Blake  <ebb9@byu.net>
4830
4831         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
4832
4833 2006-07-23  Eric Blake  <ebb9@byu.net>
4834
4835         * lib/tmpfile-safer.c: New file.
4836         * lib/stdio-safer.h (fopen_safer): Add prototype.
4837         * lib/stdio--.h (tmpfile): Make safer.
4838
4839 2006-07-23  Bruno Haible  <bruno@clisp.org>
4840
4841         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
4842         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
4843         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
4844         gl_linked_remove_at): Use it.
4845
4846 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4847         and Simon Josefsson <jas@extundo.com>
4848
4849         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
4850
4851         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
4852
4853 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4854
4855         * modules/close-stream: New file.
4856         * modules/closeout (Description): Make it clear that it exits
4857         with a diagnostic on error.
4858         (Depends-on): Add close-stream.  Remove fpending, stdbool.
4859         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
4860
4861 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4862
4863         * m4/close-stream.m4: New file.
4864
4865 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         * lib/close-stream.c, lib/close-stream.h: New files.
4868
4869 2006-07-22  Bruno Haible  <bruno@clisp.org>
4870
4871         Merge from GNU gettext 0.15.
4872
4873         2006-05-01  Bruno Haible  <bruno@clisp.org>
4874
4875                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
4876
4877         2006-07-22  Bruno Haible  <bruno@clisp.org>
4878
4879                 * modules/javaversion: New file.
4880                 * MODULES.html.sh (Java): Add javaversion.
4881
4882         2006-03-12  Bruno Haible  <bruno@clisp.org>
4883
4884                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
4885
4886         2005-12-04  Bruno Haible  <bruno@clisp.org>
4887
4888                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
4889                 (untested).
4890
4891         2006-06-21  Bruno Haible  <bruno@clisp.org>
4892
4893                 Avoid warnings from recent versions of mcs.
4894                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
4895                 -o, -L, -r any more. Use options documented since mcs-1.0
4896                 instead. Similarly for -g.
4897
4898         2005-12-04  Bruno Haible  <bruno@clisp.org>
4899
4900                 * build-aux/csharpcomp.sh.in: Suffix for resources is
4901                 .resources, not .resource.
4902
4903         2005-07-09  Bruno Haible  <bruno@clisp.org>
4904
4905                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
4906                 add a .dll suffix.
4907                 Reported by Mark Junker <mjscod@gmx.de>.
4908
4909         2006-07-22  Bruno Haible  <bruno@clisp.org>
4910
4911                 * modules/gettext: Upgrade to gettext-0.15.
4912                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
4913                 m4/visibility.m4.
4914                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
4915
4916 2006-07-22  Bruno Haible  <bruno@clisp.org>
4917
4918         Merge from GNU gettext 0.15.
4919
4920         2006-03-25  Bruno Haible  <bruno@clisp.org>
4921
4922                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
4923
4924         2006-07-21  Bruno Haible  <bruno@clisp.org>
4925
4926                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
4927                 "1.1".
4928
4929         2006-05-09  Bruno Haible  <bruno@clisp.org>
4930
4931                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
4932                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
4933                 for the conftestver execution.
4934
4935         2006-05-01  Bruno Haible  <bruno@clisp.org>
4936
4937                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
4938                 optional target-version argument. Verify that the compiler
4939                 groks source of the specified source-version, or add -source
4940                 option as necessary. Verify that the compiler produces
4941                 bytecode in the specified target-version, or add -target and
4942                 -source options as necessary. Make the result of the test
4943                 available as variable CONF_JAVAC. Also log error output in
4944                 config.log.
4945
4946         2006-03-11  Bruno Haible  <bruno@clisp.org>
4947
4948                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
4949
4950         2006-05-09  Bruno Haible  <bruno@clisp.org>
4951
4952                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
4953                 CLASSPATH_SEPARATOR to a semicolon.
4954
4955         2006-03-12  Bruno Haible  <bruno@clisp.org>
4956
4957                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
4958                 available as variable CONF_JAVA, for subsequent autoconf
4959                 tests. Also log error output in config.log.
4960
4961         2006-07-19  Bruno Haible  <bruno@clisp.org>
4962
4963                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
4964                 that getline works on glibc2 systems. Needed to avoid trouble
4965                 in relocatable.c.
4966                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
4967
4968         2005-12-04  Bruno Haible  <bruno@clisp.org>
4969
4970                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
4971                 launcher (untested).
4972
4973         2005-12-04  Bruno Haible  <bruno@clisp.org>
4974
4975                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
4976
4977         2006-07-22  Bruno Haible  <bruno@clisp.org>
4978
4979                 * gettext.m4: Update from GNU gettext-0.15.
4980                 * nls.m4: Likewise.
4981                 * po.m4: Likewise.
4982                 * inttypes-pri.m4: Likewise.
4983                 * inttypes-h.m4: Renamed from inttypes.m4.
4984                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
4985
4986 2006-07-22  Bruno Haible  <bruno@clisp.org>
4987
4988         Merge from GNU gettext 0.15.
4989
4990         2005-07-05  Bruno Haible  <bruno@clisp.org>
4991
4992                 * printf-args.c (printf_fetchargs): Work around broken
4993                 definition of wint_t on mingw.
4994
4995         2005-02-12  Bruno Haible  <bruno@clisp.org>
4996
4997                 * xallocsa.h: Add extern "C" for C++.
4998
4999         2006-05-17  Bruno Haible  <bruno@clisp.org>
5000
5001                 Cygwin portability.
5002                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
5003
5004         2006-04-30  Bruno Haible  <bruno@clisp.org>
5005
5006                 * progreloc.c: Include <mach-o/dyld.h> if available.
5007                 (find_executable): Use _NSGetExecutablePath when possible.
5008
5009         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
5010
5011                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
5012                 function.
5013
5014         2005-12-29  Bruno Haible  <bruno@clisp.org>
5015
5016                 * progreloc.c (set_program_name_and_installdir): Fix
5017                 compilation error.
5018
5019         2005-12-04  Bruno Haible  <bruno@clisp.org>
5020
5021                 Cygwin portability.
5022                 * progreloc.c: Include <windows.h> also on Cygwin.
5023                 (find_executable): Add support for Cygwin.
5024                 (set_program_name_and_installdir): Handle also platforms with
5025                 nonempty EXEEXT.
5026
5027         2006-07-11  Bruno Haible  <bruno@clisp.org>
5028
5029                 * javacomp.c: Fix a comment.
5030                 Reported by Jim Meyering.
5031
5032         2006-04-30  Bruno Haible  <bruno@clisp.org>
5033
5034                 * javacomp.h (compile_java_class): Add source_version,
5035                 target_version arguments.
5036                 * javacomp.c: Rewritten to choose only a compiler that
5037                 respects the specified source_version and target_version.
5038
5039         2006-06-27  Bruno Haible  <bruno@clisp.org>
5040
5041                 Assume correct S_ISDIR macro.
5042                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
5043
5044         2006-07-22  Bruno Haible  <bruno@clisp.org>
5045
5046                 * javaversion.h: New file, from GNU gettext.
5047                 * javaversion.c: New file, from GNU gettext.
5048                 * javaversion.java: New file, from GNU gettext.
5049                 * javaversion.class: New file, from GNU gettext.
5050
5051         2006-05-17  Bruno Haible  <bruno@clisp.org>
5052
5053                 Cygwin portability.
5054                 * javaexec.c (execute_java_class): Test for jview program
5055                 also on Cygwin.
5056
5057         2006-04-09  Bruno Haible  <bruno@clisp.org>
5058
5059                 * fatal-signal.c: Don't include string.h.
5060                 (at_fatal_signal): Use a copying loop instead of memcpy.
5061
5062         2005-12-04  Bruno Haible  <bruno@clisp.org>
5063
5064                 * csharpexec.c: Add support for 'clix' launcher (untested).
5065                 (execute_csharp_using_sscli): New function.
5066                 (execute_csharp_program): Call it.
5067
5068         2006-06-21  Bruno Haible  <bruno@clisp.org>
5069
5070                 Avoid warnings from recent versions of mcs.
5071                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
5072                 -o, -L, -r any more. Use options documented since mcs-1.0
5073                 instead. Similarly for -g.
5074
5075         2005-07-09  Bruno Haible  <bruno@clisp.org>
5076
5077                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
5078                 add a .dll suffix.
5079                 Reported by Mark Junker <mjscod@gmx.de>.
5080
5081         2006-06-17  Bruno Haible  <bruno@clisp.org>
5082
5083                 * config.charset: Update for NetBSD 3.0.
5084
5085         2006-05-17  Bruno Haible  <bruno@clisp.org>
5086
5087                 Cygwin portability.
5088                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
5089
5090         2006-05-16  Bruno Haible  <bruno@clisp.org>
5091
5092                 * localcharset.c [CYGWIN]: Include <windows.h>.
5093                 (get_charset_aliases): For Cygwin, return the same CPxxx
5094                 aliases list as under WIN32.
5095                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
5096                 the environment variables. Fall back to GetACP().
5097
5098         2006-04-05  Bruno Haible  <bruno@clisp.org>
5099
5100                 * config.charset: Update Juan Manuel Guerrero's address.
5101
5102         2005-02-12  Bruno Haible  <bruno@clisp.org>
5103
5104                 * allocsa.h: Add extern "C" for C++.
5105
5106         2005-02-10  Bruno Haible  <bruno@clisp.org>
5107
5108                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
5109                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
5110
5111         2006-07-22  Bruno Haible  <bruno@clisp.org>
5112
5113                 * gettext.h: Update to GNU gettext-0.15.
5114
5115 2006-07-22  Bruno Haible  <bruno@clisp.org>
5116
5117         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
5118         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
5119         lib-prefix.m4, longdouble.m4, ssize_t.m4.
5120
5121 2006-07-21  Eric Blake  <ebb9@byu.net>
5122
5123         * modules/stdlib-safer: New file.
5124         * MODULES.html.sh (File stream based Input/Output): Add
5125         stdlib-safer.
5126
5127 2006-07-21  Eric Blake  <ebb9@byu.net>
5128
5129         * lib/stdlib-safer.h: New file from coreutils, required by
5130         stdlib--.h.
5131
5132 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5133
5134         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
5135
5136 2006-07-20  Bruno Haible  <bruno@clisp.org>
5137
5138         * gnulib-tool: Recognize new option --assume-autoconf.
5139         (autoconf_minversion): New variable.
5140         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
5141
5142 2006-07-20  Bruno Haible  <bruno@clisp.org>
5143
5144         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
5145
5146 2006-07-19  Derek R. Price  <derek@ximbiot.com>
5147
5148         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
5149         Reindent and repaginate.
5150
5151 2006-07-19  Derek Price  <derek@ximbiot.com>
5152
5153         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
5154         Correct grammar.
5155
5156 2006-07-17  Bruno Haible  <bruno@clisp.org>
5157
5158         * modules/list: New file.
5159         * modules/array-list: New file.
5160         * modules/carray-list, modules/carray-list-tests: New files.
5161         * modules/linked-list, modules/linked-list-tests: New files.
5162         * modules/avltree-list, modules/avltree-list-tests: New files.
5163         * modules/rbtree-list, modules/rbtree-list-tests: New files.
5164         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
5165         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
5166         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
5167         * modules/oset: New file.
5168         * modules/array-oset: New file.
5169         * modules/avltree-oset, modules/avltree-oset-tests: New files.
5170         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
5171         * tests/test-carray_list.c: New file.
5172         * tests/test-linked_list.c: New file.
5173         * tests/test-avltree_list.c: New file.
5174         * tests/test-rbtree_list.c: New file.
5175         * tests/test-linkedhash_list.c: New file.
5176         * tests/test-avltreehash_list.c: New file.
5177         * tests/test-rbtreehash_list.c: New file.
5178         * tests/test-avltree_oset.c: New file.
5179         * tests/test-rbtree_oset.c: New file.
5180         * MODULES.html.sh (Container data structures): New section.
5181
5182 2006-07-17  Bruno Haible  <bruno@clisp.org>
5183
5184         * m4/gl_list.m4: New file.
5185
5186 2006-07-17  Bruno Haible  <bruno@clisp.org>
5187
5188         * lib/gl_list.h: New file.
5189         * lib/gl_list.c: New file.
5190         * lib/gl_array_list.h: New file.
5191         * lib/gl_array_list.c: New file.
5192         * lib/gl_carray_list.h: New file.
5193         * lib/gl_carray_list.c: New file.
5194         * lib/gl_linked_list.h: New file.
5195         * lib/gl_linked_list.c: New file.
5196         * lib/gl_anylinked_list1.h: New file.
5197         * lib/gl_anylinked_list2.h: New file.
5198         * lib/gl_avltree_list.h: New file.
5199         * lib/gl_avltree_list.c: New file.
5200         * lib/gl_anyavltree_list1.h: New file.
5201         * lib/gl_anyavltree_list2.h: New file.
5202         * lib/gl_rbtree_list.h: New file.
5203         * lib/gl_rbtree_list.c: New file.
5204         * lib/gl_anyrbtree_list1.h: New file.
5205         * lib/gl_anyrbtree_list2.h: New file.
5206         * lib/gl_anytree_list1.h: New file.
5207         * lib/gl_anytree_list2.h: New file.
5208         * lib/gl_linkedhash_list.h: New file.
5209         * lib/gl_linkedhash_list.c: New file.
5210         * lib/gl_anyhash_list1.h: New file.
5211         * lib/gl_anyhash_list2.h: New file.
5212         * lib/gl_avltreehash_list.h: New file.
5213         * lib/gl_avltreehash_list.c: New file.
5214         * lib/gl_rbtreehash_list.h: New file.
5215         * lib/gl_rbtreehash_list.c: New file.
5216         * lib/gl_anytreehash_list1.h: New file.
5217         * lib/gl_anytreehash_list2.h: New file.
5218
5219         * lib/gl_oset.h: New file.
5220         * lib/gl_oset.c: New file.
5221         * lib/gl_array_oset.h: New file.
5222         * lib/gl_array_oset.c: New file.
5223         * lib/gl_avltree_oset.h: New file.
5224         * lib/gl_avltree_oset.c: New file.
5225         * lib/gl_rbtree_oset.h: New file.
5226         * lib/gl_rbtree_oset.c: New file.
5227         * lib/gl_anytree_oset.h: New file.
5228
5229 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5230
5231         * m4/mkancesdirs.m4: New file.
5232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
5233         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
5234         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
5235         it.
5236
5237 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5238
5239         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
5240         * lib/mkancesdirs.h: New files.
5241         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
5242         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
5243         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
5244         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
5245         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
5246         callers changed.  Revamp internals significantly, by not
5247         attempting to create directories that are temporarily more
5248         permissive than the final results.  Do not attempt to use
5249         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
5250         This removes some race conditions, fixes some bugs, and simplifies
5251         things.  Use new dirchownmod function to do owner and mode changes.
5252         * lib/mkdir-p.h: Likewise.
5253         * lib/modechange.c (octal_to_mode): New function.
5254         (struct mode_change): New member mentioned.
5255         (make_node_op_equals): New arg mentioned.  All callers changed.
5256         (mode_compile): Keep track of which mode bits the user has explicitly
5257         mentioned.
5258         (mode_adjust): New arg DIR, so that we implement the X op correctly.
5259         New arg PMODE_BITS, to keep track of which mode bits the user
5260         mentioned; it treats S_ISUID and S_ISGID speciall.
5261         All callers changed.
5262         * lib/modechange.h: Likewise.
5263
5264 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5265
5266         * MODULES.html.sh: Add mkancestors.
5267         * modules/mkancesdirs: New module.
5268         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
5269         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
5270         The chdir-safer and afs files are now orphans; I'll remove them
5271         unless someone speaks up.
5272         Add lib/dirchownmod.c, lib/dirchownmod.h.
5273         (Depends-on): Remove alloca, chown, save-cwd, dirname.
5274         Add lchown, mkancesdirs.
5275         (Maintainer): Add self.
5276
5277 2006-07-15  Karl Berry  <karl@gnu.org>
5278
5279         * gnulib-tool: help message wording/arrangement.
5280
5281 2006-07-14  Simon Josefsson  <jas@extundo.com>
5282
5283         * doc/gnulib.texi (Libtool and Windows): New section.
5284
5285 2006-07-12  Simon Josefsson  <jas@extundo.com>
5286
5287         * modules/gendocs (License): Fix license, approved by Karl.
5288
5289 2006-07-12  Eric Blake  <ebb9@byu.net>
5290
5291         * MODULES.html.sh: Add gendocs.
5292
5293 2006-07-11  Eric Blake  <ebb9@byu.net>
5294
5295         * modules/fdl: New module, to install doc/fdl.texi.
5296         * MODULES.html.sh: Add new section for documentation modules.
5297         * gnulib-tool: Avoid space-tab.
5298         (--doc-base): New option, to manage files from doc.
5299
5300 2006-07-11  Eric Blake  <ebb9@byu.net>
5301
5302         * m4/absolute-header.m4: Fix comments to match recent change.
5303
5304 2006-07-11  Eric Blake  <ebb9@byu.net>
5305
5306         * gnulib-tool: List --doc-base before --tests-base.
5307
5308 2006-07-11  Derek R. Price  <derek@ximbiot.com>
5309
5310         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
5311
5312 2006-07-11  Bruno Haible  <bruno@clisp.org>
5313
5314         * README: Mention where to put documentation.
5315
5316 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5317
5318         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
5319
5320 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5321
5322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
5323         to stdint.m4.
5324
5325 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5326
5327         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
5328         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
5329         "no/such/file/stdint.h" when there is no such file, so that
5330         the resulting C code can be parsed by dodgy compilers.
5331         Problems reported by Bob Proulx.
5332
5333 2006-07-10  Derek R. Price  <derek@ximbiot.com>
5334
5335         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
5336         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
5337         macros into the GNU _D_EXACT_NAMLEN.
5338         * lib/savedir.c:  Likewise.
5339         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
5340
5341 2006-07-10  Derek R. Price  <derek@ximbiot.com>
5342         and Paul Eggert  <eggert@cs.ucla.edu>
5343
5344         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
5345         * m4/savedir.m4:
5346         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
5347         macros into the GNU _D_EXACT_NAMLEN.
5348
5349 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5350
5351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
5352         around the absolute name, to work around a problem with the HP-UX
5353         11.23 native C compiler, reported by Bob Proulx.
5354
5355 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         * doc/maintain.texi, make-stds.texi: Sync from
5358         <http://savannah.gnu.org/projects/gnustandards>.
5359
5360 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5361
5362         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
5363
5364 2006-07-09  Jim Meyering  <jim@meyering.net>
5365
5366         * m4/glob.m4: Remove a doubled word in a comment.
5367
5368 2006-07-09  Jim Meyering  <jim@meyering.net>
5369
5370         * lib/argp-pv.c: Remove a doubled word in a comment.
5371         * lib/check-version.c (check_version): Likewise.
5372         * lib/javacomp.c (compile_java_class): Likewise.
5373
5374 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5375
5376         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
5377         for the benefit of people using Autoconf 2.60.  If you want to
5378         support older Autoconf versions you can copy m4/onceonly_2_57.m4
5379         (or m4/onceonly.m4, if pre-2.57) manually.
5380
5381 2006-07-08  Jim Meyering  <jim@meyering.net>
5382
5383         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
5384         comment.
5385         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
5386         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
5387         comment.
5388
5389 2006-07-08  Jim Meyering  <jim@meyering.net>
5390
5391         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
5392
5393 2006-07-07  Simon Josefsson  <jas@extundo.com>
5394
5395         * tests/test-crc.c: Change expected crc value, the test vector
5396         were probably computed using the old broken crc.c?
5397
5398 2006-07-06  Simon Josefsson  <jas@extundo.com>
5399
5400         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
5401         now the canonical place for the M4 file).
5402
5403         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
5404         from the sys_socket dependency now.
5405
5406         * modules/inet_pton (Files): Ditto.
5407
5408         * modules/inet_ntop (Files): Ditto.
5409
5410 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
5411
5412         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
5413         not gl_PREREQ_GETUSERSHELL.
5414
5415 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5416
5417         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
5418         with only one argument, for Autoconf 2.60.
5419         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
5420         expand to nothing, so add a shell command to avoid syntax error.
5421         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5422
5423 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5424
5425         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
5426
5427 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5428
5429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
5430         no longer needed.  Check for isblank decl.
5431         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
5432         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
5433         of existence.
5434
5435 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5436
5437         * lib/getloadavg.c: Use __VMS, not VMS.
5438         * lib/getopt.c: Likewise.
5439         * lib/getpagesize.h: Likewise.
5440         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
5441         and probably does not work.
5442
5443 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5444
5445         * lib/.cppi-disable: Add wcwidth.
5446         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
5447         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
5448         (ISGRAPH): Remove.  All uses changed to isgraph.
5449         (FOLD) [!defined _LIBC]: Remove special case.
5450         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
5451         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
5452         HAVE_ISBLANK.
5453         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
5454         case.
5455
5456 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
5457
5458         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
5459         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
5460         brackets.  Other minor changes to suppress some compiler
5461         warnings.
5462
5463 2006-07-06  Derek R. Price  <derek@ximbiot.com>
5464         and Paul Eggert  <eggert@cs.ucla.edu>
5465
5466         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
5467         of invoking obsolescent AC_HEADER_DIRENT macro.
5468         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5469         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
5470         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5472         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
5473         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5474         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
5475         * m4/readdir.m4: Remove; no longer needed.
5476
5477 2006-07-06  Derek R. Price  <derek@ximbiot.com>
5478         and Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
5481         Don't worry about this obsolete case any more.
5482         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
5483         directories.
5484         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
5485         worry about this obsolete case any more.
5486         * lib/fts.c: Likewise.
5487         * lib/getcwd.c: Likewise.
5488         * lib/glob.h: Likewise.
5489         * lib/savedir.c: Likewise.
5490
5491 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5492
5493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
5494         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
5495         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
5496         needed.
5497         All uses removed.
5498         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5499         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
5500         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
5501         needed.
5502         * m4/getdate.m4 (gl_GETDATE): Likewise.
5503         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
5504         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
5505         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5506         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5507         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
5508         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
5509         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
5510         needed.
5511
5512 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5513
5514         * lib/memcasecmp.c: Include <limits.h>.
5515         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
5516         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
5517         Don't assume isdigit succeeds only on '0' through '9'.
5518
5519 2006-07-05  Eric Blake  <ebb9@byu.net>
5520
5521         * modules/getaddrinfo (Depends-on): Add snprintf.
5522
5523 2006-07-05  Eric Blake  <ebb9@byu.net>
5524
5525         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
5526         to avoid 'header present but could not be compiled' on cygwin.
5527
5528 2006-07-05  Eric Blake  <ebb9@byu.net>
5529
5530         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
5531         missing from netdb.h.
5532         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
5533
5534 2006-07-05  Derek R. Price  <derek@ximbiot.com>
5535
5536         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
5537         no longer needed.
5538         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
5539         * m4/getdate.m4 (gl_GETDATE): Likewise.
5540         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
5541         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
5542         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5543         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5544         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
5545
5546 2006-07-05  Derek R. Price  <derek@ximbiot.com>
5547
5548         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
5549         All uses of is_space replaced by isspace.
5550         * lib/exit.h: Don't talk about STDC_HEADERS.
5551         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
5552         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
5553         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
5554         replaced by isprint etc.
5555         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
5556         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
5557         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
5558         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
5559         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
5560         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
5561
5562 2006-07-05  Bruno Haible  <bruno@clisp.org>
5563
5564         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
5565         the function exists, before testing against AIX.
5566         Reported by Martin Lambers <marlam@marlam.de>.
5567
5568 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5569
5570         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
5571         From Mark D. Baushke.
5572
5573 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5574
5575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
5576         to the absolute name, not just one, to bypass Sun C 5.8's
5577         "warning: #include of /usr/include/... may be non-portable".
5578
5579 2006-07-04  Eric Blake  <ebb9@byu.net>
5580
5581         * modules/dirname-tests: New test module.
5582         * tests/test-dirname.c: New file, replacing dirname.c
5583         TEST_DIRNAME section that was recently deleted.
5584
5585 2006-07-04  Bruno Haible  <bruno@clisp.org>
5586
5587         Assume ANSI C header files and <ctype.h> functions.
5588         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
5589         (mbsnwidth): Use isprint, iscntrl instead.
5590
5591 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5592
5593         Merge from coreutils.
5594         * MODULES.html.sh: Add xstrtold.
5595         * modules/xstrtold: New file.
5596         * modules/cycle-check (Files): Add lib/same-inode.h.
5597         * modules/dirname (Files): Add m4/double-slash-root.m4.
5598         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
5599         * modules/mkdir-p (Files): Add lib/same-inode.h.
5600         * modules/same (Files): Add lib/same-inode.h.
5601
5602 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5603
5604         * m4/absolute-header.m4: Renamed from full-header-path.m4.
5605         This is to keep the terminology clean; POSIX talks about
5606         "absolute pathnames", not "full pathnames", but the GNU
5607         Coding Standards say to use "path" for something else;
5608         so use "absolute" to keep both sides happy.
5609         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
5610         Set gl_absolute_header, not gl_full_header_path.
5611         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
5612         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
5613         All uses changed.
5614
5615         Merge from coreutils.
5616
5617         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5618
5619         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
5620         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
5621         want to require the building of c-strtod.o.
5622         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
5623         needs -lm directly.
5624         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
5625
5626         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5627
5628         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
5629         --as-needed option if available.  Problem reported by Albert Chin in
5630         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
5631         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
5632         cc merely issues a bunch of annoying warnings for --as-needed
5633         (this problem was reported by Bob Proulx).  Also, try linking with
5634         -lm to detect a bug in binutils 2.16 (this problem was reported
5635         by Ralf Wildenhues).
5636
5637         2006-06-18  Jim Meyering  <jim@meyering.net>
5638
5639         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
5640         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
5641         macro.
5642         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
5643         also check for glibc-2.4's abort-inducing bug.
5644
5645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
5646         Low-probability clean-up should be to use rmdir to get rid of
5647         the just-created directory, not unlink.
5648
5649         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
5650         configure fail, and request a bug report to inform us about it.
5651         Add a comment that, barring reports to the contrary, in 2007 we'll
5652         assume ftruncate is universally available.
5653
5654         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
5655
5656         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
5657
5658         2006-03-12  Jim Meyering  <jim@meyering.net>
5659
5660         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
5661         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
5662         * m4/same.m4 (gl_SAME): Likewise.
5663         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
5664
5665         2006-03-11  Eric Blake  <ebb9@byu.net>
5666
5667         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
5668         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
5669         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
5670         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
5671
5672 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5673
5674         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
5675         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
5676         reported by Mark D. Baushke, one in
5677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
5678
5679         Merge from coreutils.
5680
5681         * lib/.cppi-disable: Add stdint_.h.
5682         * lib/.cvsignore: Add stdint.h.
5683
5684         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5685
5686         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
5687         both double and long double versions.
5688         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
5689         * lib/xstrtold.c: New file.
5690         * lib/xstrtod.h (xstrtold): New decl.
5691
5692         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5693
5694         * lib/filemode.c (setst): Remove.
5695         (strmode): Rewrite to avoid setst.  This makes the code shorter,
5696         (arguably) clearer, and the generated code is a bit smaller on my
5697         Debian GNU/Linux stable x86 host.
5698
5699         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
5700
5701         * lib/filemode.c: Include "filemode.h" first, to test the interface.
5702         Assume that filemode.h includes sys/types.h and sys/stat.h.
5703         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
5704         (ftypelet): Reorder to put common cases first, for efficiency.
5705         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
5706         to do 'M'.
5707         (strmode): Renamed from mode_string, and now stores 12 bytes instead
5708         of 10, for compatibility with FreeBSD.  All callers changed.
5709         (filemodestring): Now stores 12 bytes instead of 10, and sets file
5710         types that can't be deduced solely from st_mode.  First arg is now a
5711         const pointer.
5712         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
5713         (strmode): Renamed from mode_string.
5714         (filemodestring): New decl.
5715         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
5716         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
5717         needed.
5718         (S_ISPORT, S_ISWHT): New macros, if not already defined.
5719
5720         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5721
5722         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
5723         fsusage.h now does that.  Include fsusage.h first, to test interface.
5724         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
5725         at most one method (the old code could have generated decls that
5726         didn't conform to C89, not that this was ever exercised).
5727         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
5728
5729         2006-03-19  Jim Meyering  <jim@meyering.net>
5730
5731         Work even in a chroot where d_ino values for entries in "/"
5732         don't match the stat.st_ino values for the same names.
5733         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
5734         number, iterate through all entries again, using lstat instead.
5735         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
5736         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
5737
5738         * lib/getcwd.c (__getcwd): Clarify a comment.
5739         Use memcpy in place of a call to strcpy.
5740
5741         2006-03-12  Jim Meyering  <jim@meyering.net>
5742
5743         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
5744         matches that of the current directory (which we're about to chdir ".."
5745         out of), then save the dev-ino of the parent, instead.
5746
5747         * lib/same-inode.h (SAME_INODE): New file/macro.
5748         * lib/chdir-safer.c (SAME_INODE): Remove definition.
5749         Include "same-inode.h", instead.
5750         * lib/same.c: Likewise.
5751         * lib/cycle-check.h: Include "same-inode.h".
5752         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
5753         * lib/cycle-check.c (SAME_INODE): Remove definition.
5754         * lib/root-dev-ino.h: Include "same-inode.h".
5755
5756         2006-03-11  Eric Blake  <ebb9@byu.net>
5757
5758         * lib/same.c (same_name): s/base_name/last_component/
5759         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
5760         * lib/filenamecat.c (file_name_concat): Likewise.
5761
5762         2006-03-11  Eric Blake  <ebb9@byu.net>,
5763                     Paul Eggert  <eggert@cs.ucla.edu>
5764
5765         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
5766         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
5767         drive prefix.
5768         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
5769         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
5770         (last_component): New method.
5771         * lib/dirname.c (dir_len): Determine when drive letters need a
5772         subsequent slash.  Preserve // when it is special.
5773         (dir_name): Don't append dot when drive letter is absolute.
5774         [TEST_DIRNAME]: Move into a full-blown gnulib test.
5775         * lib/basename.c (base_name): New semantics - malloc the result.
5776         Preserve // when it is special.  Preserve relative files that look
5777         like drive letters.
5778         (base_len): Preserve // when it is special.
5779         (last_component): New method, similar to old base_name semantics.
5780         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
5781         base_name.  Strip redundant slashes from ///.
5782
5783 2006-07-03  Jim Meyering  <jim@meyering.net>
5784
5785         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
5786         macro is used before the first cycle_check call.
5787
5788 2006-07-03  Eric Blake  <ebb9@byu.net>
5789
5790         * modules/dirname (Depends-on): Add xstrndup.
5791
5792 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5793
5794         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
5795         test cases, so that config.log is a bit easier to follow.
5796
5797 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5798
5799         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
5800         both are 64 bits, since this seems to be the tradition, and this
5801         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
5802         we ever run into a host that prefers long long to long in this
5803         case, we'll need another configure-time test.  Problem reported by
5804         Jim Meyering.
5805
5806 2006-07-02  Eric Blake  <ebb9@byu.net>
5807
5808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
5809
5810 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5811
5812         * modules/inttypes (Depends-on): No longer depends on stdint.
5813         * modules/stdint (Description): Say more about assumptions.
5814         Say that the fast types might differ.  Say macros are used.
5815         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
5816         (Makefile.am): Revise list of substituted symbols to match
5817         new stdint.m4.
5818         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
5819         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
5820         * tests/test-stdint.c (verify_same_types)
5821         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
5822         the code conforms to C99/C89.
5823         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
5824         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
5825
5826 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5827
5828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
5829         but fix a bug, by requiring at least 64 bits.
5830         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5831         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
5832         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
5833         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
5834
5835         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
5836         changes.  Make 2.59 a prerequisite.  Check and substitute for
5837         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
5838         inttypes.h.  Do not use special include files; just use the
5839         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
5840         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
5841         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
5842         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
5843         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
5844         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
5845         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
5846         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
5847         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
5848         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
5849         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
5850         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
5851         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
5852         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
5853         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
5854         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
5855         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
5856         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
5857         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
5858         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
5859         WINT_MAX.  Check for C99 conformance more strictly, by detecting
5860         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
5861         not check for things that C99 does not require, e.g., int8_t.  If
5862         a test isn't needed unless <stdint.h> isn't working, and is
5863         unlikely to be needed for any other reason, then don't do it
5864         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
5865         size_t, since we assume C89 freestanding at least.  Do not check
5866         for sig_atomic_t, wchar_t, or wint_t, since the code now does
5867         the right thing even if the types are not defined.  Instead use:
5868         (gl_STDINT_TYPE_PROPERTIES): New macro.
5869         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
5870         testing whether <sys/types.h> clashes, as Autoconf does this for
5871         us now.  All uses removed.
5872         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
5873         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
5874         (gl_CHECK_TYPE_SAME):
5875         Remove; no longer needed.
5876         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
5877         exists, since we'll return 0 anyway in that case.
5878         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
5879
5880 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5881
5882         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
5883         possible collision with system files.
5884         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
5885         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
5886         WCHAR_MIN and WCHAR_MAX in this case.
5887         (<stddef.h>): Do not include; no longer needed.
5888         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
5889         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
5890         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
5891         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
5892         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
5893         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
5894         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
5895         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
5896         !defined(__c99))]: Include in this case too, since it's harmless
5897         now.
5898         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
5899         dangerous to do so.
5900         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
5901         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
5902         (_STDINT_MIN, _STDINT_MAX): New macros.
5903         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
5904         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
5905         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
5906         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
5907         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
5908         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
5909         macros, not typedefs; this simplifies things quite a bit.
5910         Use long int for all types narrower than int64_t.
5911         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
5912         Define in terms of long long int or int64_t or long int,
5913         not int64_t or int32_t.  This saves some compile-time testing.
5914         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
5915         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
5916         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
5917         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
5918         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
5919         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
5920         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
5921         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5922         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
5923         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
5924         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
5925         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
5926         undef any previous version and define our own version, for
5927         simplicity and consistency with the new macros for types.
5928         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
5929         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
5930         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
5931         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
5932         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
5933         @WINT_T_SUFFIX@ to keep things simple here.
5934         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
5935         Simplify by assuming typical 8/16/32/64 host, since we're
5936         already doing that elsewhere anyway.
5937         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
5938         and assume long long int is 64 bits if available.  This
5939         speeds up 'configure'.
5940
5941 2006-07-01  Eric Blake  <ebb9@byu.net>
5942
5943         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
5944         Reported by Andreas Buening.
5945
5946 2006-07-01  Eric Blake  <ebb9@byu.net>
5947
5948         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
5949
5950 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
5951
5952         * lib/getaddrinfo.c: fixed typo
5953
5954 2006-06-29  Jim Meyering  <jim@meyering.net>
5955
5956         * modules/strftime (Maintainer): Add my name, since with the
5957         FPRINTFTIME changes strftime.c has forked from glibc.
5958
5959 2006-06-29  Eric Blake  <ebb9@byu.net>
5960
5961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
5962
5963 2006-06-29  Eric Blake  <ebb9@byu.net>
5964
5965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
5966
5967 2006-06-29  Eric Blake  <ebb9@byu.net>
5968
5969         * lib/stat_.h: New file.
5970
5971 2006-06-29  Eric Blake  <ebb9@byu.net>
5972
5973         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
5974         unused static function.
5975
5976 2006-06-29  Eric Blake  <ebb9@byu.net>
5977
5978         * doc/functions.texi (Function Portability): Document missing lstat
5979         on mingw.
5980
5981 2006-06-29  Eric Blake  <ebb9@byu.net>
5982
5983         * MODULES.html.sh: Add sys_stat.
5984         * modules/sys_stat: New module.
5985         * modules/mkstemp (Depends-on): Add sys_stat.
5986
5987 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5988
5989         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
5990
5991 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5992
5993         * m4/c-bs-a.m4: Removed.
5994
5995 2006-06-29  Derek R. Price  <derek@ximbiot.com>
5996
5997         * lib/strftime.c: Assume strftime() exists.
5998
5999 2006-06-29  Derek Price  <derek@ximbiot.com>
6000
6001         * modules/c-bs-a: Removed - \a is C89.
6002         * MODULES.html.sh: Remove c-bs-a.
6003
6004 2006-06-29  Bruno Haible  <bruno@clisp.org>
6005
6006         * modules/wcwidth (License): Change to LGPL.
6007
6008 2006-06-28  Simon Josefsson  <jas@extundo.com>
6009
6010         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
6011         on _WIN32.
6012
6013         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
6014         getnameinfo.
6015
6016 2006-06-28  Simon Josefsson  <jas@extundo.com>
6017
6018         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
6019
6020 2006-06-28  Simon Josefsson  <jas@extundo.com>
6021
6022         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
6023         functions there.  It will succeed on Windows XP, but on Windows
6024         2000 and (presumably) earlier, it will fail, and use the internal
6025         re-implementation.
6026         (use_win32_p): New function.
6027         (getaddrinfo): Use strtoul on servname, to support numeric ports.
6028         Support AI_NUMERICSERV to disable getservbyname.
6029         (getnameinfo): New function, only supports
6030         NI_NUMERICHOST|NI_NUMERICSERV for now.
6031
6032         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
6033         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
6034         getnameinfo.
6035
6036 2006-06-28  Eric Blake  <ebb9@byu.net>
6037
6038         * modules/wcwidth: New file.
6039         * modules/mbchar (Depends-on): Add wcwidth.
6040         * modules/mbswidth (Depends-on): Add wcwidth.
6041         * MODULES.html.sh: Add wcwidth.
6042
6043 2006-06-28  Eric Blake  <ebb9@byu.net>
6044
6045         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
6046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
6047
6048 2006-06-28  Eric Blake  <ebb9@byu.net>
6049
6050         * lib/xvasprintf.h: Fix comments.
6051
6052 2006-06-28  Eric Blake  <ebb9@byu.net>
6053
6054         * lib/mbchar.h (wcwidth): Include wcwidth.h.
6055         * lib/mbswidth.c (wcwidth): Move from here...
6056         * lib/wcwidth.h: ...to this new file.
6057
6058 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6059
6060         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
6061
6062         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
6063         it's obsolete.
6064         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
6065
6066 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6067
6068         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
6069         Autoconf 2.60 says this stuff was obsolete.
6070
6071 2006-06-28  Bruno Haible  <bruno@clisp.org>
6072
6073         * modules/wcwidth (Files): Add m4/wchar_t.m4.
6074
6075 2006-06-28  Bruno Haible  <bruno@clisp.org>
6076
6077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
6078         gt_TYPE_WCHAR_T.
6079
6080 2006-06-28  Bruno Haible  <bruno@clisp.org>
6081
6082         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
6083         declaration for wcwidth.
6084         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
6085
6086 2006-06-28  Bruno Haible  <bruno@clisp.org>
6087
6088         * lib/mkdtemp.c [MINGW]: Include <io.h>.
6089         (mkdir): Define using _mkdir.
6090
6091 2006-06-28  Bruno Haible  <bruno@clisp.org>
6092
6093         * lib/getaddrinfo.h: Fix POSIX URL.
6094         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
6095         _WIN32.
6096         (use_win32_p): Make static.
6097         (getaddrinfo): Reject service name if it is empty or does not consist
6098         solely of decimal digits, or if its value is > 65535.
6099         (getnameinfo): Remove useless casts.
6100
6101 2006-06-27  Simon Josefsson  <jas@extundo.com>
6102
6103         * modules/sys_select: New file, suggested by Bruno Haible, Paul
6104         Eggert and Martin Lambers.
6105
6106 2006-06-27  Simon Josefsson  <jas@extundo.com>
6107
6108         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
6109         Eggert and Martin Lambers.
6110
6111 2006-06-27  Bruno Haible  <bruno@clisp.org>
6112
6113         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
6114         result to 0, not to empty.
6115         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
6116
6117 2006-06-27  Bruno Haible  <bruno@clisp.org>
6118
6119         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
6120
6121 2006-06-26  Simon Josefsson  <jas@extundo.com>
6122
6123         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
6124         present.
6125
6126 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
6127
6128         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
6129         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
6130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
6131
6132 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
6133
6134         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
6135
6136 2006-06-26  Bruno Haible  <bruno@clisp.org>
6137
6138         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
6139
6140 2006-06-26  Bruno Haible  <bruno@clisp.org>
6141
6142         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
6143
6144 2006-06-26  Bruno Haible  <bruno@clisp.org>
6145
6146         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
6147         SGI C compiler in pre-C99 mode.
6148         Suggested by Mark D. Baushke and Larry Jones.
6149
6150 2006-06-26  Bruno Haible  <bruno@clisp.org>
6151
6152         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
6153         WCHAR_MAX.
6154         Reported by Mark D. Baushke and Larry Jones.
6155
6156 2006-06-26  Bruno Haible  <bruno@clisp.org>
6157
6158         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
6159         in pre-C99 mode.
6160         Suggested by Mark D. Baushke and Larry Jones.
6161
6162 2006-06-23  Simon Josefsson  <jas@extundo.com>
6163             Bruno Haible  <bruno@clisp.org>
6164
6165         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
6166         Emit mostlyclean-local rule.
6167         (func_emit_tests_Makefile_am): Likewise.
6168         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
6169
6170 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
6171
6172         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
6173
6174 2006-06-23  Bruno Haible  <bruno@clisp.org>
6175
6176         * tests/test-stdint.c: Update to match ISO C 99 Technical
6177         Corrigendum 1.
6178
6179 2006-06-23  Bruno Haible  <bruno@clisp.org>
6180
6181         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
6182
6183 2006-06-23  Bruno Haible  <bruno@clisp.org>
6184
6185         * lib/stdint_.h: Treat IRIX like OpenBSD.
6186
6187 2006-06-23  Bruno Haible  <bruno@clisp.org>
6188
6189         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
6190         ISO C 99 Technical Corrigendum 1.
6191
6192 2006-06-22  Simon Josefsson  <jas@extundo.com>
6193
6194         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
6195         MinGW.
6196
6197 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
6198
6199         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
6200         needed.  Some compiler complained about some of them.  Problem reported
6201         by Larry Jones in
6202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
6203
6204 2006-06-21  Simon Josefsson  <jas@extundo.com>
6205
6206         * tests/test-getaddrinfo.c: New file.
6207
6208         * modules/getaddrinfo-tests: New file.
6209
6210         * MODULES.html.sh: Add inet_pton.
6211
6212         * modules/inet_pton: New file.
6213
6214 2006-06-21  Simon Josefsson  <jas@extundo.com>
6215
6216         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
6217         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
6218         of using the (limited) gnulib implementation on Windows XP.
6219
6220         * m4/inet_pton.m4: New file.
6221
6222 2006-06-21  Simon Josefsson  <jas@extundo.com>
6223
6224         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
6225         variable.
6226
6227         * lib/socket_.h: Don't define WINVER.
6228
6229         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
6230         slightly modified to work in gnulib.
6231
6232 2006-06-21  Simon Josefsson  <jas@extundo.com>
6233
6234         * doc/gnulib.texi (Windows sockets): Add.
6235
6236 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
6237
6238         * lib/read-file.c (fread_file): Start with buffer allocation of
6239         0 bytes rather than 1 byte; this simplifies the code.
6240         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
6241         code to free buffer and save/restore errno.
6242         (internal_read_file): Remove unused local.
6243
6244 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6245
6246         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
6247         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
6248         Problem reported by Denis Excoffier in
6249         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
6250
6251 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6252
6253         * modules/sys_socket, modules/socklen: Include sys/types since
6254         FreeBSD 4.x's sys/socket.h needs it.
6255
6256 2006-06-19  Simon Josefsson  <jas@extundo.com>
6257
6258         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
6259
6260 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
6261
6262         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
6263
6264 2006-06-19  Bruno Haible  <bruno@clisp.org>
6265
6266         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
6267         and FULL_PATH_INTTYPES_H in angle brackets.
6268         Reported by Mark D. Baushke <mdb@gnu.org>.
6269
6270 2006-06-17  Eric Blake  <ebb9@byu.net>
6271
6272         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
6273         errno.
6274
6275 2006-06-17  Bruno Haible  <bruno@clisp.org>
6276
6277         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
6278         <sys/inttypes.h>.
6279
6280 2006-06-17  Bruno Haible  <bruno@clisp.org>
6281
6282         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
6283         whether errno is declared. Assume <errno.h> declares errno.
6284
6285 2006-06-17  Bruno Haible  <bruno@clisp.org>
6286
6287         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
6288
6289 2006-06-17  Bruno Haible  <bruno@clisp.org>
6290
6291         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
6292         problem on Solaris 2.5.1.
6293
6294 2006-06-16  Eric Blake  <ebb9@byu.net>
6295
6296         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
6297         * lib/unicodeio.c [!defined errno]: Likewise.
6298         * lib/strtol.c [!defined errno]: Likewise.
6299         * lib/strtod.c [!defined errno]: Likewise.
6300
6301 2006-06-15  Eric Blake  <ebb9@byu.net>
6302
6303         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
6304
6305 2006-06-15  Eric Blake  <ebb9@byu.net>
6306
6307         * config/srclist.txt (ssize_t.m4): Lose sync.
6308
6309 2006-06-15  Bruno Haible  <bruno@clisp.org>
6310
6311         * modules/stdint (Files): Include m4/full-header-path.m4,
6312         m4/size_max.m4, m4/wchar_t.m4.
6313         (Makefile.am): Many more substitutions.
6314         * modules/stdint-tests: New file.
6315         * tests/test-stdint.c: New file.
6316
6317 2006-06-15  Bruno Haible  <bruno@clisp.org>
6318
6319         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
6320         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
6321         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
6322         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
6323         gl_CHECK_TYPE_SAME): New macros.
6324
6325 2006-06-15  Bruno Haible  <bruno@clisp.org>
6326
6327         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
6328
6329 2006-06-15  Bruno Haible  <bruno@clisp.org>
6330
6331         * lib/stdint_.h: Rewritten to be fully auto-configured.
6332         Fixes bug on HP-UX/IA64.
6333
6334 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6335
6336         * lib/getdate.y (__attribute__): Don't define if already defined.
6337         Problem reported by Larry Jones.
6338         * lib/utimens.c (__attribute__): Likewise.
6339
6340 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6341
6342         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
6343         reported by Andreas Schwab.
6344
6345 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6346             Bruno Haible  <bruno@clisp.org>
6347
6348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
6349         check for the declaration of strnlen and a run test that exposes the
6350         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
6351         rpl_strndup.
6352
6353 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6354             Bruno Haible  <bruno@clisp.org>
6355
6356         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
6357
6358 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6359
6360         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
6361         compile test, for Tru64 4.0D.
6362
6363 2006-05-28  Karl Berry  <karl@gnu.org>
6364
6365         * config/srclist.txt (printf-args.c): lose sync.
6366
6367 2006-05-26  Martin Lambers  <marlam@marlam.de>
6368
6369         * lib/getpass.c: Updates the test for the native W32 API, and adds
6370         missing includes, thus fixing compilation warnings.
6371
6372 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6373
6374         * lib/exclude.c (exclude_fnmatch): New function.
6375         (excluded_file_name): Call exclude_fnmatch.
6376         * lib/exclude.h (excluded_file_name): New prototype
6377
6378 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6379
6380         * lib/tempname.c (small_open, large_open): New macros.
6381         (__open, __open64) [!_LIBC]: Remove.
6382         (__gen_tempname): Use small_open and large_open instead of __open
6383         and __open64.  This fixes a portability bug on HP-UX 11.11i
6384         reported by Simon Wing-Tang in
6385         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
6386
6387 2006-05-24  Bruno Haible  <bruno@clisp.org>
6388
6389         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
6390         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
6391         Reported by Thorsten Maerz <torte@netztorte.de> via
6392         Aaron Stone <aaron@serendipity.cx>.
6393
6394 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6395
6396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
6397         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
6398         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
6399         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
6400         not really conditional on the cache.
6401         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
6402
6403 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6404
6405         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
6406         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
6407         (my_usleep): Don't mishandle maximum value.
6408
6409 2006-05-19  Jim Meyering  <jim@meyering.net>
6410
6411         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
6412
6413 2006-05-17  Bruno Haible  <bruno@clisp.org>
6414
6415         Cygwin portability.
6416         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
6417
6418 2006-05-17  Bruno Haible  <bruno@clisp.org>
6419
6420         * lib/stdint_.h: Fix recognition of Cygwin.
6421
6422 2006-05-15  Bruno Haible  <bruno@clisp.org>
6423
6424         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
6425         on libtool patch by Ralf Wildenhues.
6426
6427 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6428
6429         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
6430         test for C99 conformance; (bool) 0.5 is an integer constant
6431         expression, but (bool) -0.5 is not.  Problem reported by Fedor
6432         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
6433
6434 2006-05-11  Simon Josefsson  <jas@extundo.com>
6435
6436         * m4/xvasprintf.m4: Fix obvious typo.
6437
6438 2006-05-11  Jim Meyering  <jim@meyering.net>
6439
6440         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
6441         James Lemley.
6442
6443 2006-05-10  Simon Josefsson  <jas@extundo.com>
6444
6445         * lib/md4.c: Typo fix, update copyright years.
6446         (K1, K2): Don't use L because it turn computations into 64-bit on
6447         64-bit platforms.
6448
6449 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
6452         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
6453         unwanted sign propagation, e.g., on hosts with 64-bit int.
6454         There still are some problems with reeelly weird theoretical hosts
6455         (e.g., 33-bit int) but it's not worth worrying about now.
6456         * lib/sha1.c (rol): Likewise.
6457         (K1, K2, K3, K4): Remove unnecessary L suffix.
6458
6459 2006-05-10  Bruno Haible  <bruno@clisp.org>
6460
6461         * lib/des.c: Cast to avoid warnings.
6462
6463 2006-05-09  Bruno Haible  <bruno@clisp.org>
6464
6465         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
6466         (Depends-on): Depend also on xsize, stdarg.
6467         (configure.ac): Add gl_XVASPRINTF.
6468
6469 2006-05-09  Bruno Haible  <bruno@clisp.org>
6470
6471         * m4/xvasprintf.m4: New file.
6472
6473 2006-05-09  Bruno Haible  <bruno@clisp.org>
6474
6475         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
6476         (EOVERFLOW): Define fallback value.
6477         (xstrcat): New function.
6478         (xvasprintf): Recognize the special case of a string concatenation.
6479
6480 2006-05-08  Eric Blake  <ebb9@byu.net>
6481
6482         * gnulib-tool (func_version): Base copyright year on CVS date.
6483         (func_emit_copyright_notice): New function.
6484         (func_emit_lib_Makefile_am): Use it.
6485         (func_emit_tests_Makefile_am): Likewise.
6486         (func_import): Likewise.
6487
6488 2006-05-08  Bruno Haible  <bruno@clisp.org>
6489
6490         * modules/stdarg: New file.
6491         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
6492
6493 2006-05-08  Bruno Haible  <bruno@clisp.org>
6494
6495         * m4/stdarg.m4: New file, from GNU gettext.
6496
6497 2006-05-08  Bruno Haible  <bruno@clisp.org>
6498
6499         * config/srclist.txt (build-aux/config.rpath): different from latest
6500         release.
6501
6502 2006-05-08  Bruno Haible  <bruno@clisp.org>
6503
6504         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
6505
6506 2006-05-05  Jim Meyering  <jim@meyering.net>
6507
6508         * m4/warning.m4: New file, derived from bison's file by the same name.
6509
6510 2006-05-03  Bruno Haible  <bruno@clisp.org>
6511
6512         * lib/stdint_.h: Shorter URL.
6513         * lib/inttypes.h: Likewise.
6514
6515 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6516
6517         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
6518
6519 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         * lib/verify.h: Document the internals better.  Most of this change
6522         was written by Bruno Haible.
6523
6524 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         * doc/verify.texi: New file, partly based on a proposal by
6527         Bruno Haible.
6528
6529 2006-05-02  Bruno Haible  <bruno@clisp.org>
6530
6531         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
6532         test from here...
6533         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
6534
6535 2006-04-29  Bruno Haible  <bruno@clisp.org>
6536
6537         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
6538         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
6539
6540 2006-04-29  Bruno Haible  <bruno@clisp.org>
6541
6542         * gnulib-tool: Make --update option actually work.
6543
6544 2006-04-29  Bruno Haible  <bruno@clisp.org>
6545
6546         * doc/gcd.texi: New file.
6547         * doc/gnulib.texi: Include it.
6548
6549 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6550
6551         * lib/getdate.y (get_date): When adding relative date, start with the
6552         initial time, not with the result of the first mktime call.
6553
6554 2006-04-25  Bruno Haible  <bruno@clisp.org>
6555
6556         * gnulib-tool (func_import): Output the include directives in three
6557         blocks, sorted separately.
6558         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6559
6560 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6561
6562         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
6563         to define main with arguments, for C++.  Reported by Eric Blake.
6564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6565         Prefer 'int main ()' to 'int main (void)', for C++.
6566         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6567         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
6568         for 'main', for C99 and C++.
6569
6570 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6571
6572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
6573         Don't assume that exit status -1 is valid.
6574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6575         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6576         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6577         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
6578         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
6579         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
6580         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
6581         functions can be used without declaring them, or that you can
6582         exit with status -1.
6583         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
6584
6585 2006-04-24  Karl Berry  <karl@gnu.org>
6586
6587         * config/srclist.txt (longdouble.m4): sync lost.
6588
6589 2006-04-24  Eric Blake  <ebb9@byu.net>
6590
6591         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
6592
6593 2006-04-24  Bruno Haible  <bruno@clisp.org>
6594
6595         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
6596         poll() implementation in AIX.
6597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6598
6599 2006-04-24  Bruno Haible  <bruno@clisp.org>
6600
6601         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
6602         assigned exactly once.
6603
6604 2006-04-23  Claudio Fontana  <claudio@gnu.org>
6605             Bruno Haible  <bruno@clisp.org>
6606
6607         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
6608         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
6609         for AM_CPPFLAGS.
6610
6611 2006-04-23  Bruno Haible  <bruno@clisp.org>
6612
6613         * modules/copy-file: Depend on unistd.
6614         * modules/execute: Likewise.
6615         * modules/fatal-signal: Likewise.
6616         * modules/findprog: Likewise.
6617         * modules/mkdtemp : Likewise.
6618         * modules/pipe: Likewise.
6619         * modules/wait-process: Likewise.
6620
6621 2006-04-23  Bruno Haible  <bruno@clisp.org>
6622
6623         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
6624         condition was already detected.
6625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6626
6627 2006-04-23  Bruno Haible  <bruno@clisp.org>
6628
6629         * lib/copy-file.c: Include <unistd.h> unconditionally.
6630         * lib/execute.c: Likewise.
6631         * lib/fatal-signal.c: Likewise.
6632         * lib/findprog.c: Likewise.
6633         * lib/mkdtemp.c: Likewise.
6634         * lib/pipe.h: Likewise.
6635         * lib/pipe.c: Likewise.
6636         * lib/wait-process.h: Likewise.
6637
6638 2006-04-23  Bruno Haible  <bruno@clisp.org>
6639
6640         * gnulib-tool (func_usage): Fix --import description. Document
6641         --update.
6642         (func_import): Create temporary file in a temporary directory, if
6643         --dry-run is specified. Silence errors from 'grep' when there are no
6644         m4 files in $m4dir.
6645         (func_create_testdir): Silence errors from 'grep' when there are no
6646         m4 files in $m4dir.
6647         Reported by Karl Berry <karl@freefriends.org>.
6648
6649 2006-04-20  Bruno Haible  <bruno@clisp.org>
6650
6651         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
6652         one argument, so that the code will be portable to Autoconf 2.60.
6653         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
6654         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6655         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
6656
6657 2006-04-19  Derek Price  <derek@ximbiot.com>
6658             Eric Blake  <ebb9@byu.net>
6659
6660         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
6661         rather than "/full/path.h".  Update comment to match.  Shorten &
6662         generalize m4_translit call via AS_TR_CPP.
6663
6664 2006-04-19  Derek Price  <derek@ximbiot.com>
6665             Eric Blake  <ebb9@byu.net>
6666
6667         * lib/inttypes.h: Correct grammar in comment.
6668
6669 2006-04-18  Derek Price  <derek@ximbiot.com>
6670             Paul Eggert  <eggert@cs.ucla.edu>
6671
6672         * modules/inttypes: New file.
6673         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
6674
6675 2006-04-18  Derek Price  <derek@ximbiot.com>
6676             Paul Eggert  <eggert@cs.ucla.edu>
6677
6678         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
6679         New files.
6680
6681 2006-04-18  Derek Price  <derek@ximbiot.com>
6682             Paul Eggert  <eggert@cs.ucla.edu>
6683
6684         * lib/inttypes.h: New file.
6685         * lib/strtoimax.c: Assume <inttypes.h>.
6686
6687 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6688
6689         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
6690         isn't mounted.  Problem reported by Kir Kolyshkin.
6691
6692 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6693
6694         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
6695         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
6696         Derek R. Price.
6697         * lib/regex.h (RE_DUP_MAX): Update comment to match current
6698         implementation.
6699
6700 2006-04-12  Eric Blake  <ebb9@byu.net>
6701
6702         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
6703         is now done automatically by the corresponding Autoconf macro.
6704
6705 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6706
6707         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
6708         time_r.h.
6709
6710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6711
6712         Merge regex changes from libc, removing some of our
6713         POSIX-conformance changes that were rejected and redoing them in a
6714         less-intrusive way.
6715
6716         * lib/regcomp.c (re_compile_internal, init_dfa):
6717         Length arg is now size_t, not Idx.  All uses changed.
6718         (peek_token): Forward decl now says internal_function.
6719         (__re_error_msgid, __re_error_msgid_idx):
6720         Now static rather than extern with attribute_hidden.
6721         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
6722         For some reason libc prefers K&R style defns for external functions.
6723         (regerror) [!defined _LIBC]: Likewise.
6724         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
6725         (seek_collating_symbol_entry, lookup_collation_sequence_value):
6726         (build_range_exp, build_collating_symbol):
6727         Use K&R-style defn.
6728         (re_compile_fastmap): Use '\0' to memset, not 0.
6729         (utf8_sb_map): Make the calculations more obvious.
6730         (init_dfa, parse_bracket_exp, build_charclass_op):
6731         Call calloc and cast result, as glibc does.
6732         (init_word_char, fetch_token, peek_token, peek_token_bracket):
6733         (build_range_exp, build_collating_symbol):
6734         Now internal functions.
6735
6736         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
6737
6738         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
6739         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
6740         Don't depend on VMS; depend on __VMS instead, for POSIX
6741         namespace cleanness.
6742         (regoff_t): Define to ssize_t, not long int.
6743
6744         Remove the REG_ macros named below.  Instead, make the old names
6745         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
6746         __USE_GNU_REGEX.
6747         (REG_BACKSLASH_ESCAPE_IN_LISTS):
6748         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
6749         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
6750         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
6751         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
6752         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
6753         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
6754         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
6755         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
6756         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
6757         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
6758         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
6759         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
6760         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
6761         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
6762         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
6763         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
6764         (REG_NREGS):
6765         Remove.  All uses replaced by the old RE_* names.
6766         (RE_BACKSLASH_ESCAPE_IN_LISTS):
6767         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
6768         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
6769         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
6770         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
6771         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
6772         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
6773         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
6774         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
6775         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
6776         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
6777         Don't bother having these macros be independent of each others'
6778         values, since they no longer exist in the POSIX name space.
6779
6780         Rename the following member names back to their old names,
6781         unless !__USE_GNU_REGEX.  All uses changed back.
6782         (buffer): Renamed from re_buffer.
6783         (allocated): Renamed from re_allocated.
6784         (used): Renamed from re_used.
6785         (syntax): Renamed from re_syntax.
6786         (fastmap): Renamed from re_fastmap.
6787         (translate): Renamed from re_translate.
6788         (can_be_null): Renamed from re_can_be_null.
6789         (regs_allocated): Renamed from re_regs_allocated.
6790         (fastmap_accurate): Renamed from re_fastmap_accurate.
6791         (no_sub): Renamed from re_no_sub.
6792         (not_bol): Renamed from re_not_bol.
6793         (not_eol): Renamed from re_not_eol.
6794         (newline_anchor): Renamed from re_newline_anchor.
6795         (num_regs): Renamed from rm_num_regs.
6796         (start): Renamed from rm_start.
6797         (end): Renamed from rm_end.
6798
6799         (free_state): Move up a bit.
6800
6801         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
6802         #define to be empty.
6803         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
6804         when that is what is intended.
6805         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
6806         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
6807         (MAX): New macro.
6808         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
6809         All uses changed back to re_malloc, etc.  It's now the caller's
6810         responsibility to check for overflow; all callers changed.
6811         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
6812         (re_x2nrealloc): Remove.
6813         (free_state): Remove decl.
6814
6815         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
6816         (re_set_registers, re_exec):
6817         Use K&R-style defn.
6818
6819         2006-01-31  Roland McGrath  <roland@redhat.com>
6820
6821         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
6822         Reported by Mike Frysinger <vapier@gentoo.org>.
6823
6824         2006-01-15  Andreas Jaeger  <aj@suse.de>
6825
6826         [BZ #1950]
6827         * lib/regex_internal.c (re_string_reconstruct): Adjust for
6828         build_wcs_upper_buffer change.
6829         (build_wcs_upper_buffer): Change return type.
6830
6831         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
6832
6833         * lib/regex_internal.h: Include <stdint.h> if available.
6834
6835         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
6836
6837         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
6838
6839         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
6840
6841         * lib/regcomp.c: Adjust for changed secondary hash function.
6842
6843         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
6844
6845         * lib/regex.h: Pretty printing.
6846         Clean up namespace a bit.
6847
6848         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
6849
6850         * lib/regexec.c (update_cur_sifted_state, check_arrival,
6851         check_arrival_add_next_nodes): Avoid using uninitialized variable.
6852
6853         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6854                     Ulrich Drepper  <drepper@redhat.com>
6855
6856         [BZ #1302]
6857         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
6858         changed.
6859         (bitset_word_t): Renamed from bitset_word.  All uses changed.
6860
6861         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
6862
6863         [BZ #281]
6864         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
6865         * lib/regcomp.c: Remove unnecessary uses of
6866         unsigned RE_TRANSLATE_TYPE.
6867         * lib/regex_internal.h: Likewise.
6868         * lib/regex_internal.c: Likewise.
6869         * lib/regexec.c: Likewise.
6870         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
6871
6872         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
6873
6874         * lib/regexec.c (find_recover_state): Remove unnecessary
6875         initialization.
6876         (transit_state_bkref): Make DFA a const pointer.
6877         (get_subexp): Likewise.
6878         (check_arrival): Likewise.
6879         (update_cur_sifted_state): Likewise.
6880         (re_search_internal): Likewise.
6881         (prune_impossible_nodes): Likewise.
6882         (acquire_init_state_context): Likewise.
6883         (proceed_next_node): Likewise.
6884         (set_regs): Likewise.
6885         (free_fail_stack_return): Likewise.
6886         (check_arrival_expand_ecl): Mark DFA parameter as const.
6887         (check_arrival_expand_ecl_sub): Likewise.
6888         (check_subexp_limits): Likewise.
6889         (sub_epsilon_src_nodes):  Likewise.
6890         (add_epsilon_src_nodes):  Likewise.
6891         (merge_state_array): Likewise.
6892         (update_regs): Likewise.
6893         (build_trtable): Likewise.
6894         (sift_states_backward): Mark MCTX parameter as const.
6895         (build_sifted_states): Likewise.
6896         (update_cur_sifted_state): Likewise.
6897         (sift_states_mkref): Likewise.
6898         (check_arrival_expand_ecl): Mark eclosure as const.
6899         (check_dst_limits_calc_pos_1): Likewise.
6900         * lib/regex_internal.h (re_match_context_t): Make dfa a const
6901         pointer.
6902
6903         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
6904
6905         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
6906         (transit_state_sb): Likewise.
6907         (transit_state_mb): Likewise.
6908         (sift_states_iter_mb): Likewise.
6909         (check_arrival_add_next_nodes): Likewise.
6910         (check_node_accept_bytes): Change first parameter to pointer-to-const.
6911         [_LIBC] (re_search_2_stub): Use mempcpy.
6912
6913         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
6914         mbrtowc for very simple UTF-8 case.
6915
6916         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
6917         a pointer-to-const.
6918         (re_acquire_state_context): Likewise.
6919         * lib/regex_internal.h: Adjust prototypes.
6920
6921         * lib/regex.c: Prevent using C++ compilers.
6922
6923         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
6924         (re_acquire_state_context): Likewise.
6925
6926 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6927
6928         * modules/regex (Depends-on): Add ssize_t.
6929
6930 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6931
6932         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
6933         translation table.
6934
6935 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6936
6937         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
6938
6939 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
6940             Bruno Haible  <bruno@clisp.org>
6941
6942         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
6943         <sys/types.h> and <inttypes.h>.
6944
6945 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6946
6947         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
6948         `__error_t_defined', so argp.h will not typedef the former.
6949
6950 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6951
6952         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
6953         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
6954         glibc names.  Even if glibc is changed to conform to POSIX, the
6955         traditional names will be available anyway, since regex depends on
6956         the extensions module.  Also, fix a longstanding typo in the
6957         implementation of Spencer ERE test #75 from grep 2.3.  Problems
6958         reported by Emanuele Giaquinta.  Also, change sense of cached
6959         variable, so that the message makes sense.
6960
6961 2006-03-24  Simon Josefsson  <jas@extundo.com>
6962
6963         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
6964         including some doc fixes.
6965         (base64_encode_alloc): Fix +1 bug on allocation failures.
6966
6967 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6968
6969         * lib/base64.c (base64_encode): Do not read past end of array with
6970         unsanitized input on systems with CHAR_BIT > 8.
6971
6972 2006-03-24  Eric Blake  <ebb9@byu.net>
6973
6974         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
6975
6976 2006-03-22  Karl Berry  <karl@gnu.org>
6977
6978         * config/srclist.txt (*setenv.[ch]): get from coreutils.
6979         * config/srclistvars.sh (COREUTILS): new var.
6980
6981 2006-03-17  Jim Meyering  <jim@meyering.net>
6982
6983         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
6984         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
6985
6986 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6987
6988         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
6989         no longer needs it.  Instead, check that regoff_t is as least
6990         as wide as ptrdiff_t.
6991
6992         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
6993         so that our regex.h stays compatible with the installed regex.
6994         This is helpful for installers who configure --without-included-regex.
6995         Problem reported by Emanuele Giaquinta.
6996
6997 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6998
6999         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
7000         Typedef to long int, not to off_, as POSIX will likely change
7001         in that direction.
7002
7003 2006-03-15  Eric Blake  <ebb9@byu.net>
7004
7005         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
7006
7007 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7008
7009         * lib/argp-help.c (validate_uparams): Fix typo
7010         * lib/argp-parse.c (argp_default_options): Consistently begin help
7011         messages with a lowercase letter.
7012
7013 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7014
7015         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
7016         overrun buffers and shouldn't be used (much as gets shouldn't be
7017         used).
7018         * lib/time_r.c (asctime_r, ctime_r): Likewise.
7019
7020 2006-03-08  Simon Josefsson  <jas@extundo.com>
7021
7022         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
7023         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7024
7025 2006-03-08  Simon Josefsson  <jas@extundo.com>
7026
7027         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
7028         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7029
7030 2006-03-08  Simon Josefsson  <jas@extundo.com>
7031
7032         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
7033         signal that configure disabled the device.
7034
7035 2006-03-08  Simon Josefsson  <jas@extundo.com>
7036
7037         * build-aux/maint.mk: Fix refresh-po, to handle no translated
7038         languages.
7039
7040 2006-03-07  Simon Josefsson  <jas@extundo.com>
7041
7042         * modules/getopt (Depends-on): Add unistd.
7043
7044         * modules/unistd: New file.
7045
7046 2006-03-07  Simon Josefsson  <jas@extundo.com>
7047
7048         * modules/gc-random: New file.
7049
7050 2006-03-07  Simon Josefsson  <jas@extundo.com>
7051
7052         * m4/unistd_h.m4: New file.
7053
7054 2006-03-07  Simon Josefsson  <jas@extundo.com>
7055
7056         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
7057         test to be side-effect free by storing the result in the cache
7058         variable gl_cv_lib_readline, and moving the assignment of
7059         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
7060         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7061
7062 2006-03-07  Simon Josefsson  <jas@extundo.com>
7063
7064         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
7065         error on missing devices (the functions will return an error).
7066
7067         * m4/gc.m4: Move random stuff to gc-random.m4
7068
7069 2006-03-07  Simon Josefsson  <jas@extundo.com>
7070
7071         * lib/unistd_.h: New file.
7072
7073 2006-03-07  Simon Josefsson  <jas@extundo.com>
7074
7075         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
7076
7077 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7078
7079         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
7080         Problem reported by Juan Manuel Guerrero.
7081
7082 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7083
7084         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
7085         the unistd module.
7086         * lib/getlogin_r.c: Likewise.
7087         * lib/getlogin_r.h: Likewise.
7088         * lib/glob.c: Likewise.
7089         * lib/pagealign_alloc.c: Likewise.
7090         * lib/unistd_.h: Remove; no longer needed.
7091
7092 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7093
7094         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7095         Add unistd.
7096         * modules/c-stack (Depends-on): Add unistd.
7097         * modules/getlogin_r: Likewise.
7098         * modules/glob: Likewise.
7099         * modules/pagealign_alloc: Likewise.
7100         * modules/unistd (Files): Remove lib/unistd_.h.
7101         (EXTRA_DIST): Remove.
7102         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
7103         need unistd_.h.
7104         (MOSTLYCLEANFILES): Remove unistd.h-t.
7105
7106 2006-03-03  Simon Josefsson  <jas@extundo.com>
7107
7108         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
7109
7110 2006-03-03  Simon Josefsson  <jas@extundo.com>
7111
7112         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
7113         libidn and bison.
7114
7115 2006-03-03  Simon Josefsson  <jas@extundo.com>
7116
7117         * build-aux/maint.mk: Add indent target.
7118
7119 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
7120
7121         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
7122         our replacement poll.h in any case, to avoid a differing
7123         declaration from a system header.  Seen on AIX.
7124
7125 2006-03-01  Simon Josefsson  <jas@extundo.com>
7126
7127         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
7128         <kasal@ucw.cz>.
7129
7130 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7131
7132         * modules/gettime (Depends-on): Add extensions module.
7133         * modules/nanosleep (Depends-on): Likewise.
7134         * modules/settime (Depends-on): Likewise.
7135
7136 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7137
7138         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
7139         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
7140         pedantically.
7141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7142         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
7143
7144         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
7145         not "==".  Reported by Ralf Wildenhues.
7146
7147 2006-03-01  Karl Berry  <karl@gnu.org>
7148
7149         * doc/Copyright/request-*: new files, synced from gnuorg.
7150
7151 2006-03-01  Karl Berry  <karl@gnu.org>
7152
7153         * config/srclist.txt (Copyright/*): new entries.
7154
7155 2006-02-28  Simon Josefsson  <jas@extundo.com>
7156
7157         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
7158
7159 2006-02-27  Simon Josefsson  <jas@extundo.com>
7160
7161         * lib/base64.h: Indent #define's.  From Jim Meyering
7162         <jim@meyering.net>.
7163
7164 2006-02-27  Jim Meyering  <jim@meyering.net>
7165
7166         Revert the change of 2006-02-24, so these files can continue
7167         to be sync'd from gettext.
7168         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
7169         of `config.h'.
7170
7171 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7172
7173         * modules/intprops: New file.
7174         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
7175         Add intprops.
7176         * modules/getloadavg (Files): Remove lib/intprops.h.
7177         (Depends-on): Add intprops.
7178         * modules/human: Likewise.
7179         * modules/inttostr: Likewise.
7180         * modules/openat: Likewise.
7181         * modules/sig2str: Likewise.
7182         * modules/userspec: Likewise.
7183         * modules/utimecmp: Likewise.
7184         * modules/xnanosleep: Likewise.
7185         * modules/xstrtol: Likewise.
7186
7187 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
7188
7189         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
7190         * modules/lock-tests (TESTS): Use $(EXEEXT).
7191         * modules/tls-tests: Likewise.
7192         * modules/argp-tests: Likewise.
7193         (check_PROGRAMS): New var, replacing...
7194         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
7195
7196 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7197
7198         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
7199         `config.h'.
7200
7201 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7202
7203         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
7204
7205 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7206
7207         Sync from coreutils.
7208         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
7209         gl_CHDIR_SAFER.
7210
7211 2006-02-22  Jim Meyering  <jim@meyering.net>
7212
7213         Sync from coreutils.
7214         * m4/chdir-safer.m4: New file.
7215
7216 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7217
7218         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
7219         AT_FDCWD exceeds INT_MAX.
7220         * lib/openat.h (AT_FDCWD): Likewise.
7221
7222 2006-02-17  Eric Blake  <address@hidden>
7223
7224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
7225
7226 2006-02-16  Simon Josefsson  <jas@extundo.com>
7227
7228         * modules/getaddrinfo (Depends-on): Add sys_socket.
7229
7230 2006-02-15  Simon Josefsson  <jas@extundo.com>
7231
7232         * build-aux/maint.mk: Add dsyntax-check rule.
7233
7234 2006-02-15  Eric Blake  <ebb9@byu.net>
7235
7236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
7237         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
7238         'present but cannot compile' warnings on cygwin.
7239         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
7240         use ws2tcpip.h if sys/socket.h works.
7241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
7242         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
7243
7244 2006-02-14  Simon Josefsson  <jas@extundo.com>
7245
7246         * modules/maintainer-makefile (Files): Rename.
7247
7248         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
7249         and (the local) Makefile.cfg to maint-cfg.mk.
7250
7251         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
7252         to the latter.
7253
7254         * modules/maintainer-makefile: New module.
7255
7256         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
7257         severaly stripped to make it possible to build it up from scratch
7258         with reliable tests.
7259
7260         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
7261         fixes to permit overriding the default actions when configure and
7262         makefile are not available.
7263
7264 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7265
7266         Sync from coreutils.
7267         * modules/lstat (Depends-on): Don't depend on xalloc.
7268         (License): Change from GPL to LGPL, since this is now simply a
7269         replacement for a libc function.
7270
7271 2006-02-14  Jim Meyering  <jim@meyering.net>
7272
7273         Sync from coreutils.
7274
7275         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
7276         failure on deficient systems, and simplify gnulib lgpl dependencies.
7277         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
7278         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
7279
7280         * lib/xalloc-die.c: Remove unused definition of N_.
7281
7282 2006-02-14  Jim Meyering  <jim@meyering.net>
7283
7284         Sync from coreutils.
7285         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
7286         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7287         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
7288         double-quote uses of that variable, to accommodate the rare case in
7289         which getmntent is available in none of the libraries checked.  This
7290         happens at least on FreeBSD 5.0.
7291
7292 2006-02-13  Simon Josefsson  <jas@extundo.com>
7293
7294         * gnulib-tool (Usage): Fix --import, from
7295         karl@freefriends.org (Karl Berry).
7296
7297 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7298
7299         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
7300
7301 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
7302
7303         * lib/argp-namefrob.h: Restore changes accidentally lost during the
7304         "autoupdate" on 2005-12-12.
7305
7306 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7307
7308         * modules/closeout (Depends-on): Remove atexit.
7309
7310 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7311
7312         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
7313         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
7314
7315 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7316
7317         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
7318         __EXTENSIONS__ if this causes compilation to fail.  Problem
7319         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
7320         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
7321
7322 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7323
7324         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
7325         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
7326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
7327         All uses changed.
7328
7329 2006-01-26  Simon Josefsson  <jas@extundo.com>
7330
7331         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
7332         prototype is visible on mingw32.
7333
7334         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
7335         for mingw32.
7336
7337         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
7338         mingw32).
7339
7340 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
7341
7342         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
7343         attempt to open for write; this always fails, at least on POSIX
7344         hosts.  This reinstates the 2006-01-09 change, which was
7345         inadvertently removed.
7346
7347 2006-01-26  Bruno Haible  <bruno@clisp.org>
7348
7349         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
7350         Reported by Paul Eggert.
7351
7352 2006-01-26  Bruno Haible  <bruno@clisp.org>
7353             Paul Eggert  <eggert@cs.ucla.edu>
7354
7355         * lib/stdbool_.h (_Bool)
7356         [(! (defined __cplusplus || defined __BEOS__)
7357           && !defined __GNUC__
7358           && !(defined __HP_cc || defined __xlc__
7359                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
7360                || defined __sgi))]:
7361         #define to signed char in these cases too; this simplifies
7362         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
7363         etc., separately) and makes it more conservative.
7364
7365 2006-01-25  Simon Josefsson  <jas@extundo.com>
7366
7367         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
7368         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
7369         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
7370
7371 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7372
7373         * lib/argp-namefrob.h: Bugfix. Remove stray #
7374
7375 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7376
7377         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
7378         so that we test the test.
7379         Check for yet another HP-UX cc bug involving *bool |= bool.
7380
7381 2006-01-25  Karl Berry  <karl@gnu.org>
7382
7383         * config/srclist.txt (vasnprintf.c): sync lost.
7384
7385 2006-01-25  Jim Meyering  <jim@meyering.net>
7386
7387         Sync from the stable (b5) branch of coreutils:
7388
7389         * lib/fts.c (fts_children): Don't let close() clobber errno from
7390         failed fchdir().
7391
7392         * lib/fts.c (fts_stat): When following a symlink-to-directory,
7393         don't necessarily interpret stat-fails+lstat-succeeds as indicating
7394         a dangling symlink.  That can also happen at least for ELOOP.
7395         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
7396         FYI, this bug predates the inclusion of fts.c in coreutils.
7397
7398         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
7399         in their own block, so pre-c99 compilers don't object.
7400
7401         Avoid the double-free (first in fts_read, second in fts_close) that
7402         would occur when an `active' directory is made inaccessible (e.g.,
7403         via chmod a-x) during a traversal.
7404         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7405         before returning.  Reproduce this failure by
7406         mkdir -p a/b; cd a; chmod a-x . b
7407         Reported by Stavros Passas.
7408
7409 2006-01-25  Jim Meyering  <jim@meyering.net>
7410
7411         * lib/fileblocks.c: Remove more useless parentheses.
7412         * lib/readutmp.h: Likewise.
7413
7414 2006-01-25  Bruno Haible  <bruno@clisp.org>
7415
7416         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
7417         warnings.
7418         Reported by Paul Eggert.
7419
7420 2006-01-25  Bruno Haible  <bruno@clisp.org>
7421
7422         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
7423         rid of a trap command. For Solaris sh.
7424         Reported by Mark D. Baushke <mdb@gnu.org>.
7425
7426 2006-01-24  Simon Josefsson  <jas@extundo.com>
7427
7428         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
7429         Bruno.
7430
7431 2006-01-24  Karl Berry  <karl@gnu.org>
7432
7433         * config/srclist.txt (argp-namefrob.h): sync lost.
7434
7435 2006-01-24  Jim Meyering  <jim@meyering.net>
7436
7437         * modules/openat (Files): Add lib/intprops.h.
7438         From Mark D. Baushke.
7439
7440 2006-01-24  Jim Meyering  <jim@meyering.net>
7441
7442         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
7443         Reported by Mark D. Baushke.
7444
7445 2006-01-24  Jim Meyering  <jim@meyering.net>
7446
7447         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
7448
7449 2006-01-24  Bruno Haible  <bruno@clisp.org>
7450
7451         * modules/strnlen (Maintainer): Change from glibc to all.
7452
7453 2006-01-24  Bruno Haible  <bruno@clisp.org>
7454
7455         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
7456         Patch by Paul Eggert.
7457
7458 2006-01-24  Bruno Haible  <bruno@clisp.org>
7459
7460         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
7461         already has it.
7462         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
7463         2005-11-26.
7464
7465         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
7466         'signed char' to avoid problems with the built-in _Bool type.
7467         Reported by Paul Eggert on 2005-11-26.
7468
7469 2006-01-24  Bruno Haible  <bruno@clisp.org>
7470
7471         * gnulib-tool (func_import): Avoid constructing complicated sed
7472         expressions inside backquote.
7473         Report and solution by Mark D. Baushke <mdb@gnu.org>.
7474
7475 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
7476
7477         These changes imported from libc.
7478         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
7479         test and two separate function calls.
7480         * lib/strndup.c (__strndup): Add libc_hidden_def.
7481
7482 2006-01-23  Simon Josefsson  <jas@extundo.com>
7483
7484         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
7485         Remove the test_*_SOURCES variable: automake infers it by default.
7486         * modules/tls-tests: Likewise.
7487
7488 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7489
7490         Work around porting bugs reported by Dieter in
7491         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
7492         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
7493         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
7494         Include "getopt.h" first, to check interface.
7495         (getenv): Declare only if defined HAVE_DECL_GETENV &&
7496         !HAVE_DECL_GETENV.
7497         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
7498         (__strndup): Revert to K&R-style function dfns, the glibc style.
7499         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
7500         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
7501         Include strnlen.h first, to get prototype properly.
7502         (strnlen): Renamed from __strnlen.
7503         Remove weak alias.
7504
7505 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7506
7507         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
7508
7509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7510
7511         * config/srclist.txt: Adjust to reflect glibc reorganization.
7512         This affects only comments.
7513
7514 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7515
7516          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
7517          Reported by Bruce Korb <bkorb@gnu.org>.
7518
7519 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
7520
7521         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
7522         to pacify gcc -Wswitch-default.
7523
7524 2006-01-22  Bruno Haible  <bruno@clisp.org>
7525
7526         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
7527         temporary buffer for sprintf, take into account the precision also
7528         for 'd', 'i', 'u', 'o', 'x', 'X'.
7529
7530 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
7531
7532         * modules/argp-tests: New module
7533         * tests/test-argp.c: New file
7534         * tests/test-argp-2.sh: New file
7535
7536 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
7537
7538         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
7539         (__argp_base_name): Removed
7540         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
7541         typo.
7542         (__argp_base_name): Provide macro definition or extern declaration
7543         depending on the configuration
7544
7545 2006-01-20  Simon Josefsson  <jas@extundo.com>
7546
7547         * modules/inet_ntop (Depends-on): Depend on sys_socket.
7548
7549 2006-01-20  Simon Josefsson  <jas@extundo.com>
7550
7551         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
7552
7553 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7554
7555         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
7556         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
7557         Suggested by Bruno Haible.
7558
7559 2006-01-20  Karl Berry  <karl@gnu.org>
7560
7561         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
7562         until changes propagate, I guess.
7563
7564 2006-01-19  Simon Josefsson  <jas@extundo.com>
7565
7566         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
7567
7568 2006-01-19  Simon Josefsson  <jas@extundo.com>
7569
7570         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
7571
7572 2006-01-19  Simon Josefsson  <jas@extundo.com>
7573
7574         * gnulib-tool: Set check_PROGRAMS.
7575
7576         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
7577         modules/des-tests, modules/gc-arcfour-tests,
7578         modules/gc-arctwo-tests, modules/gc-des-tests,
7579         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
7580         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
7581         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
7582         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
7583         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
7584         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
7585         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
7586         test_*_SOURCES.
7587
7588 2006-01-18  Simon Josefsson  <jas@extundo.com>
7589
7590         * modules/socklen (Depends-on): Depend on sys_socket.
7591
7592 2006-01-18  Simon Josefsson  <jas@extundo.com>
7593
7594         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
7595         modules/des-tests, modules/gc-arcfour-tests,
7596         modules/gc-arctwo-tests, modules/gc-des-tests,
7597         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
7598         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
7599         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
7600         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
7601         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
7602         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
7603         $(EXEEXT) to automake TESTS variable, for mingw32.
7604
7605 2006-01-17  Simon Josefsson  <jas@extundo.com>
7606
7607         * modules/socklen (Include): Need sys/socket.h.
7608
7609 2006-01-17  Bruno Haible  <bruno@clisp.org>
7610
7611         * modules/ssize_t (Include): Add <sys/types.h>.
7612
7613 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7614
7615         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
7616         it's not portable and it doesn't work with cross-compiles.
7617         Problem reported by Bruno Haible.  Fix missing-$ typo in
7618         'test "gl_cv_ignore_unused_libraries" ...' that prevented
7619         -zignore from being used with Sun's C compiler.
7620
7621 2006-01-12  Simon Josefsson  <jas@extundo.com>
7622
7623         * lib/base64.c: Fix warning, reported by Bruno Haible
7624         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
7625
7626 2006-01-12  Bruno Haible  <bruno@clisp.org>
7627
7628         * modules/ldd: New file.
7629         * build-aux/ldd.sh.in: New file.
7630         * MODULES.html.sh (Support for building libraries and executables): Add
7631         ldd.
7632
7633 2006-01-12  Bruno Haible  <bruno@clisp.org>
7634
7635         * m4/ldd.m4: New file.
7636
7637 2006-01-12  Bruno Haible  <bruno@clisp.org>
7638
7639         * gnulib-tool (func_import, func_create_testdir): Don't go into an
7640         endless loop while replacing $auxdir with build-aux.
7641
7642 2006-01-11  Simon Josefsson  <jas@extundo.com>
7643
7644         * lib/stdint_.h (SIZE_MAX): Add missing (.
7645
7646 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7647
7648         Sync from coreutils.
7649         * lib/md5.c: Fix commentary typos.
7650         (alignof, UNALIGNED_P): No need for a GCC-specific version.
7651         * lib/md5.h (__attribute__): Remove; unused.
7652         * lib/sha1.c: Fix commentary to match md5 better.
7653         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
7654         so that we don't need to worry about alignment.  All uses changed.
7655         This merges the 2005-10-28 md5 change into sha1.
7656
7657 2006-01-11  Jim Meyering  <jim@meyering.net>
7658
7659         Sync from coreutils.
7660         * lib/md5.c (OP): Fix spacing.
7661
7662 2006-01-11  Bruno Haible  <bruno@clisp.org>
7663
7664         Ensure automatic ordering between gl_LOCK and gl_ARGP.
7665         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
7666         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
7667
7668 2006-01-11  Bruno Haible  <bruno@clisp.org>
7669
7670         Ensure automatic ordering between gl_LOCK and gl_ARGP.
7671         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
7672         the "early" section as well.
7673
7674 2006-01-11  Bruno Haible  <bruno@clisp.org>
7675
7676         Avoid "ar: no archive members specified" error on MacOS X.
7677         * gnulib-tool (func_modules_add_dummy): New function.
7678         (func_import, func_create_testdir): Invoke it.
7679
7680 2006-01-11  Bruno Haible  <bruno@clisp.org>
7681
7682         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
7683         with $auxdir in AC_CONFIG_FILES statements.
7684
7685 2006-01-11  Bruno Haible  <bruno@clisp.org>
7686
7687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7688         Initialize also noinst_HEADERS to empty.
7689
7690 2006-01-11  Bruno Haible  <bruno@clisp.org>
7691
7692         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
7693         variables.
7694         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
7695         autoreconf.
7696
7697 2006-01-11  Bruno Haible  <bruno@clisp.org>
7698
7699         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
7700         overridable by the user.
7701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7702
7703 2006-01-10  Simon Josefsson  <jas@extundo.com>
7704
7705         * modules/sys_socket: New file.
7706
7707 2006-01-10  Simon Josefsson  <jas@extundo.com>
7708
7709         * m4/sys_socket_h.m4: New file.
7710
7711 2006-01-10  Simon Josefsson  <jas@extundo.com>
7712
7713         * lib/socket_.h: New file.
7714
7715 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7716
7717         * modules/readutmp (Maintainer): Add myself.
7718
7719 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7720
7721         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
7722         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
7723         People who are still concerned with buggy memcmp implementations
7724         can invoke gl_FUNC_MEMCMP themselves.
7725
7726 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7727
7728         * lib/regex_internal.h (BITSET_WORD_BITS):
7729         Work around a bug in 64-bit PGC (before version 6.1-2), where the
7730         preprocessor mishandles large unsigned values as if they were signed.
7731         Problem reported by Claudio Fontana in
7732         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
7733
7734 2006-01-10  Jim Meyering  <jim@meyering.net>
7735
7736         Avoid the double-free (first in fts_read, second in fts_close) that
7737         would occur when an `active' directory is made inaccessible (e.g.,
7738         via chmod a-x) during a traversal.
7739         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7740         before returning.  Reproduce this failure by
7741         mkdir -p a/b; cd a; chmod a-x . b
7742         Reported by Stavros Passas.
7743
7744         Sync from coreutils.
7745         * lib/sha1.c: Tweak grammar in a comment.
7746
7747 2006-01-10  Jim Meyering  <jim@meyering.net>
7748
7749         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
7750         Patch by Joerg Sonnenberger.
7751
7752 2006-01-10  Bruno Haible  <bruno@clisp.org>
7753
7754         * modules/readutmp: Depend on module free.
7755         * modules/strtok_r: Depend on module restrict.
7756
7757 2006-01-10  Bruno Haible  <bruno@clisp.org>
7758
7759         * modules/gettext (configure.ac): Add an invocation of
7760         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
7761
7762 2006-01-10  Bruno Haible  <bruno@clisp.org>
7763
7764         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
7765         Reported by Werner Lemberg <wl@gnu.org>.
7766
7767 2006-01-10  Bruno Haible  <bruno@clisp.org>
7768
7769         * lib/localcharset.c: Update from GNU gettext.
7770
7771 2006-01-10  Bruno Haible  <bruno@clisp.org>
7772
7773         * lib/argp.h (__const): Remove macro. Use const instead.
7774         * lib/argp-fmtstream.h (__const): Likewise.
7775         * lib/glob_.h (__const): Remove macro.
7776         * lib/glob-libc.h: Use const instead of __const.
7777
7778 2006-01-10  Bruno Haible  <bruno@clisp.org>
7779
7780         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
7781         variable.
7782         Needed to avoid an automake error regarding the 'gettext' module.
7783
7784 2006-01-09  Simon Josefsson  <jas@extundo.com>
7785
7786         * modules/inet_ntop (Depends-on): Add restrict.
7787
7788 2006-01-09  Simon Josefsson  <jas@extundo.com>
7789
7790         * modules/gc-rijndael-tests (License): Put under LGPL.
7791
7792         * modules/gc-des-tests (License): Likewise.
7793
7794         * modules/gc-arcfour-tests (License): Likewise.
7795
7796         * modules/gc-arctwo-tests (License): Likewise.
7797
7798         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
7799
7800         * modules/gc-hmac-sha1-tests (Files): Likewise.
7801
7802         * modules/gc-hmac-md5-tests (License): Likewise.
7803
7804         * modules/gc-sha1-tests (License): Likewise.
7805
7806         * modules/gc-md5-tests (License): Likewise.
7807
7808         * modules/gc-md4-tests (License): Likewise.
7809
7810         * modules/gc-md2-tests (License): Likewise.
7811
7812         * modules/gc-tests (License): Likewise.
7813
7814         * modules/des-tests (License): Likewise.
7815
7816         * modules/md4-tests (License): Likewise.
7817
7818         * modules/md2-tests (License): Likewise.
7819
7820 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7821
7822         Sync from coreutils:
7823
7824         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
7825         * modules/lib-ignore: New file.
7826         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
7827         chdir-safer.m4, lchmod.m4.
7828         * modules/openat: Add mkdirat.c, openat-priv.h.
7829
7830 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7831
7832         Sync from coreutils.
7833         * m4/lib-ignore.m4: New file.
7834         * m4/lchmod.m4: New file.
7835
7836 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7837
7838         Sync from coreutils.
7839         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
7840         for write access: POSIX says that must fail.
7841         * lib/fts.c (diropen): Likewise.
7842         * lib/save-cwd.c (save_cwd): Likewise.
7843         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
7844         well, for minor improvements on hosts that lack O_DIRECTORY.
7845         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
7846         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
7847         Fall back on chown if open failed with EACCES.
7848
7849         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
7850         Report an error at compile-time if only a 1-second nominal clock
7851         resolution is found.
7852
7853         * lib/lchmod.h: New file.
7854         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
7855         (make_dir_parents): Use lchown rather than chown, and
7856         lchmod rather than chmod.
7857
7858         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
7859         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
7860         "proc" reported by n0dalus.
7861
7862         * lib/mountlist.c: Include <limits.h>.
7863         (dev_from_mount_options)
7864         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
7865         New function.  It no longer assumes "dev=" has the System V meaning
7866         on Linux (since it doesn't).  It also parses "dev=" more carefully.
7867         (read_file_system_list)
7868         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
7869         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
7870         dev= in that case.
7871
7872         * lib/posixtm.h (PDS_PRE_2000): New macro.
7873         * lib/posixtm.c (year): Arg is now syntax_bits rather than
7874         allow_century.  All usages changed.  Reject dates outside the range
7875         1969-1999 if PDS_PRE_2000 is used.
7876
7877 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7878
7879         Sync from coreutils.
7880         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
7881         (Time of day items): Mention the possibility of leap seconds.
7882         Problem reported by Dr. David Alan Gilbert.
7883
7884 2006-01-09  Jim Meyering  <jim@meyering.net>
7885
7886         Sync from coreutils.
7887
7888         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
7889
7890         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
7891
7892         * lib/modechange.c (mode_compile): Reject an invalid mode string
7893         that starts with an octal digit.  From Andreas Gruenbacher.
7894
7895         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
7896         and dup to open_safer and dup_safer, respectively.
7897         (openat_permissive): Fix typo in comment.
7898
7899         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
7900         "gettext.h"; either no longer needed or are guaranteed by openat.h.
7901         (_): Remove; no longer needed.
7902         (openat): Renamed from rpl_openat; no need for rpl_openat
7903         since openat.h renames openat for us.
7904         Replace most of the body with a call to openat_permissive,
7905         to avoid duplicate code.
7906         Port to (probably hypothetical) environments were mode_t is
7907         wider than int.
7908         (openat_permissive): Require mode arg, so that we can check
7909         types better.  Put it just after flags.  Change cwd failure
7910         indicator from pointer-to-bool to pointer-to-errno-value.
7911         All callers changed.
7912         Invoke openat_save_fail and/or openat_restore_fail if
7913         cwd_errno is null, so that openat can call us.
7914         (openat_permissive, fdopendir, fstatat, unlinkat):
7915         Simplify errno handling to avoid some duplicate code,
7916         as it's OK to set errno on success.
7917         * lib/openat.h: Revamp code so that function macros depend on
7918         __OPENAT_PREFIX only, not also on AT_FDCWD.
7919         (openat_ro): Remove.  Caller changed to use openat_permissive.
7920         (openat_permissive): Now a macro, if not a function.
7921         (openat_restore_fail, openat_save_fail): Now always functions,
7922         since mkdirat needs them even if __OPENAT_PREFIX is defined.
7923
7924         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
7925         and openat.c.
7926         * lib/mkdirat.c: Include openat-priv.h.
7927         Remove definitions of macros defined therein.
7928         * lib/openat.c: Likewise.
7929
7930         * lib/mkdirat.c (mkdirat): New file and function.
7931         * lib/openat.h (mkdirat): Declare.
7932
7933         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
7934
7935         * lib/openat.h (openat_permissive): Declare.
7936         (openat_ro): Define.
7937
7938         * lib/openat.c (EXPECTED_ERRNO): New macro.
7939         (openat_permissive): New function -- used in remove.c rewrite.
7940         (all functions): Set errno just before returning, only if there
7941         was an actual failure.
7942         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
7943
7944         Emulate openat-family functions using Linux's procfs, if possible.
7945         Idea and some code based on Ulrich Drepper's glibc changes.
7946
7947         * lib/openat.c: (BUILD_PROC_NAME): New macro.
7948         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
7949         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
7950         before falling back on save_cwd and restore_cwd.
7951         (fdopendir, fstatat, unlinkat): Likewise.
7952
7953         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
7954         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
7955
7956         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
7957         as second argument to va_arg.  Otherwise, some versions of gcc
7958         warn that `if this code is reached, the program will abort'.
7959
7960 2006-01-09  Jim Meyering  <jim@meyering.net>
7961
7962         Sync from coreutils.
7963         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
7964         Require openat-priv.h.
7965
7966 2006-01-09  Bruno Haible  <bruno@clisp.org>
7967
7968         * modules/strnlen (Include): Use strnlen.h.
7969
7970 2006-01-09  Bruno Haible  <bruno@clisp.org>
7971
7972         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
7973
7974 2006-01-09  Bruno Haible  <bruno@clisp.org>
7975
7976         * lib/sysexit_.h (EX_OK): New macro.
7977         Suggested by Martin Lambers <marlam@marlam.de>.
7978
7979 2006-01-09  Bruno Haible  <bruno@clisp.org>
7980
7981         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
7982         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
7983
7984 2006-01-09  Bruno Haible  <bruno@clisp.org>
7985
7986         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
7987         numbers.
7988
7989 2006-01-09  Bruno Haible  <bruno@clisp.org>
7990
7991         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
7992         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
7993         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
7994         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
7995
7996 2006-01-09  Bruno Haible  <bruno@clisp.org>
7997
7998         * build-aux/javacomp.sh.in: New file, moved from lib/.
7999         * modules/javacomp-script (Files): Update.
8000         (configure.ac): Add AC_CONFIG_FILES invocation.
8001         (EXTRA_DIST): Remove variable.
8002
8003         * build-aux/javaexec.sh.in: New file, moved from lib/.
8004         * modules/javaexec (Files): Update.
8005         (configure.ac): Add AC_CONFIG_FILES invocation.
8006         (EXTRA_DIST): Remove javaexec.sh.in.
8007
8008         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
8009         * modules/csharpcomp-script (Files): Update.
8010         (configure.ac): Add AC_CONFIG_FILES invocation.
8011         (EXTRA_DIST): Remove variable.
8012
8013         * build-aux/csharpexec.sh.in: New file, moved from lib/.
8014         * modules/csharpexec (Files): Update.
8015         (configure.ac): Add AC_CONFIG_FILES invocation.
8016         (EXTRA_DIST): Remove csharpexec.sh.in.
8017
8018 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8019
8020         Sync from coreutils.
8021
8022         Add POSIX ACL support
8023         * lib/acl.h (copy_acl, set_acl): Add declarations.
8024         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
8025         systems other than Linux.
8026         (chmod_or_fchmod): New function: use fchmod when possible,
8027         and chmod otherwise.
8028         (file_has_acl): Add a POSIX ACL implementation, with a
8029         Linux-specific subcase.
8030         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
8031         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
8032         acls are unsupported.
8033         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
8034         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
8035         are unsupported.
8036
8037 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8038
8039         Sync from coreutils.
8040         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
8041
8042 2006-01-07  Bruno Haible  <bruno@clisp.org>
8043
8044         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
8045         gl_EARLY.
8046
8047 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8048
8049         * lib/strftime.c (tzname): Don't declare if it is already #defined.
8050         Problem reported for Mingw by Mark Junker.
8051
8052 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8053
8054         * README: Gnulib normally doesn't generate a tarball.
8055
8056 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8057
8058         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
8059         long int, not int, for nanosecond counts, so that people who are
8060         used to POSIX struct timespec won't be surprised.  Reported by Jim
8061         Meyering.
8062
8063 2005-12-28  Bruno Haible  <bruno@clisp.org>
8064
8065         * build-aux/config.rpath: Update from GNU gettext.
8066
8067 2005-12-16  Jim Meyering  <jim@meyering.net>
8068
8069         * modules/fprintftime: New module.
8070         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
8071
8072 2005-12-16  Jim Meyering  <jim@meyering.net>
8073
8074         * m4/fprintftime.m4: New file.
8075
8076 2005-12-16  Jim Meyering  <jim@meyering.net>
8077
8078         * lib/fprintftime.c, lib/fprintftime.h: New files.
8079
8080 2005-12-15  Simon Josefsson  <jas@extundo.com>
8081
8082         * modules/socklen (configure.ac): Fix M4 macro name, to align with
8083         new m4/socklen.m4.
8084
8085 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8086
8087         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
8088         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
8089
8090 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8091
8092         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
8093         * lib/argp-help.c (fill_in_uparams): Check if the constructed
8094         struct uparams is valid. Fall back to the default values if it is
8095         not.
8096
8097 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8098
8099         * modules/argp (Files): Add argp-pin.c
8100         (Depends-on): dirname
8101         (lib_SOURCES): Add argp-pin.c
8102
8103 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8104
8105         * m4/argp.m4:  Check if program_invocation_name and
8106         program_invocation_short_name are declared and define appropriate
8107         macros if they are not.
8108
8109 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8110
8111         * lib/argp-help.c (__argp_base_name): New function
8112         (__argp_short_program_name): Rewrite using __argp_base_name
8113         * lib/argp-namefrob.h: Define program_invocation_name and
8114         program_invocation_short_name if requested
8115         (__argp_base_name): Add prototype
8116         * lib/argp-parse.c (argp_def): Use gettext wrappers
8117         (argp_default_parser): Use __argp_base_name
8118         * lib/argp-pin.c: New file. Defines program_invocation_name and
8119         program_invocation_short_name on systems that lack them.
8120
8121 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8122
8123         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
8124         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8125         porting problem reported by Georg Schwarz in
8126         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8127
8128 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8129
8130         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
8131         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8132         porting problem reported by Georg Schwarz in
8133         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8134
8135 2005-12-05  Bruno Haible  <bruno@clisp.org>
8136
8137         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
8138         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
8139         Reported by Mark Junker <mjscod@gmx.de>.
8140
8141 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
8144         Use implementation from Albert Chin, with some
8145         comments/corrections by Stepan Kasal and myself.
8146
8147 2005-12-02  Bruno Haible  <bruno@clisp.org>
8148
8149         * gnulib-tool (func_import): Accept GPLed build tool modules when
8150         --lgpl is given.
8151         * modules/csharpcomp-script: New file.
8152         * modules/csharpcomp: Depend on it.
8153         * modules/javacomp-script: New file.
8154         * modules/javacomp: Depend on it.
8155         Suggested by Simon Josefsson.
8156
8157 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8158
8159         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
8160         statement, to work around an HP-UX 10.20 compiler bug reported by
8161         Peter O'Gorman.
8162
8163 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8164
8165         * modules/savedir (Depends-on): Add openat.
8166
8167 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8168
8169         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
8170         (uintmax_t) [defined uintmax_t]: Do not declare.
8171         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
8172         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
8173         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
8174         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
8175         sake of portability to weird hosts that C allows (though we don't
8176         know of any practical examples).
8177
8178         * lib/savedir.h (fdsavedir): New decl.
8179         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
8180         contains most of the former guts of savedir.
8181         (savedir): Use savedirstream.
8182         Include "openat.h".
8183
8184 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         * modules/obstack (Files): Add m4/ulonglong.m4.
8187         Problem reported by Davide Angelocola.
8188
8189 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8190
8191         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
8192         coreutils no longer futzes with rounding modes.
8193
8194 2005-11-14  Jim Meyering  <jim@meyering.net>
8195
8196         * lib/mkstemp-safer.c: Include <config.h>, required for possible
8197         replacement of mkstemp.
8198
8199 2005-11-10  Simon Josefsson  <jas@extundo.com>
8200
8201         * lib/readline.c: Remove EOL.
8202
8203 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8204
8205         * modules/gethrxtime (Depends-on): Add gettime.
8206
8207 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8208
8209         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
8210         or gettimeofday; no longer needed.
8211
8212 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8213
8214         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
8215         time business.
8216         (gethrxtime) [! (HAVE_NANOUPTIME
8217         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
8218         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
8219         our own approximation.
8220
8221 2005-11-08  Eric Blake  <ebb9@byu.net>
8222
8223         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8224
8225 2005-11-08  Eric Blake  <ebb9@byu.net>
8226
8227         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8228
8229 2005-11-04  Bruno Haible  <bruno@clisp.org>
8230
8231         * gnulib-tool: Implement --update mode.
8232
8233 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8234
8235         Fix porting problem reported by Theodoros V. Kalamatianos.
8236         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
8237         Don't assume that futimes failing means we must fail.
8238
8239 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8240
8241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
8242         variables to suggest the intended function of the PATH_MAX check.
8243
8244 2005-10-30  Kean Johnston  <jkj@sco.com>
8245
8246         Trivial changes to support SCO systems.
8247         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
8248         as PATH_MAX.
8249         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
8250         where __ptr is null when no I/O is pending.
8251
8252 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
8253
8254         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
8255         leave errno alone.  Problem reported by Dmitry V. Levin.
8256
8257 2005-10-28  Simon Josefsson  <jas@extundo.com>
8258
8259         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
8260         Test more.
8261
8262         * tests/test-gc-md2.c, tests/test-md2.c: New files.
8263
8264         * modules/md2, modules/md2-tests: New files.
8265
8266 2005-10-28  Simon Josefsson  <jas@extundo.com>
8267
8268         * m4/inet_ntop.m4: More tests.
8269
8270         * m4/gc-md2.m4, md2.m4: New file.
8271
8272 2005-10-28  Simon Josefsson  <jas@extundo.com>
8273
8274         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
8275         "restrict" keywords, as per POSIX.  Protect the function
8276         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
8277         Don't use K&R prototypes.  Check the sprintf return values.
8278         Re-define EAFNOSUPPORT if not present.  Indent.
8279
8280         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
8281         suggested by Bruno Haible <bruno@clisp.org>.
8282
8283         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
8284
8285         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
8286
8287         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
8288         libgcrypt).
8289
8290         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
8291
8292         * lib/md2.h, lib/md2.c: New files.
8293
8294 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
8295
8296         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
8297         errno alone.  Problem reported by Frederic Jolliton.
8298
8299 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8300
8301         * modules/verify (License): Change from GPL to LGPL.  This is a
8302         tiny module and there are apparently near-equivalents that are
8303         under the BSD license.
8304
8305 2005-10-24  Simon Josefsson  <jas@extundo.com>
8306
8307         * modules/sha1: Relicense to LGPL.
8308
8309 2005-10-24  Simon Josefsson  <jas@extundo.com>
8310
8311         * lib/md4.h: Shrink buffer size, now that we changed the type.
8312
8313 2005-10-23  Simon Josefsson  <jas@extundo.com>
8314
8315         * gnulib-tool (func_import): Fix --tests-base.
8316
8317 2005-10-22  Simon Josefsson  <jas@extundo.com>
8318
8319         * modules/arcfour (Depends-on): Need stdint.
8320
8321 2005-10-22  Simon Josefsson  <jas@extundo.com>
8322
8323         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
8324         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
8325
8326 2005-10-22  Simon Josefsson  <jas@extundo.com>
8327
8328         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
8329         suggested by Bruno Haible <bruno@clisp.org>.
8330
8331 2005-10-22  Simon Josefsson  <jas@extundo.com>
8332
8333         * lib/crc.h: Include stddef.h, for size_t.
8334
8335 2005-10-22  Simon Josefsson  <jas@extundo.com>
8336
8337         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
8338         arcfour_context struct (simplify test vector testing in GNU
8339         Shishi).
8340
8341 2005-10-21  Simon Josefsson  <jas@extundo.com>
8342
8343         * modules/des, modules/des-tests: New files.
8344
8345         * modules/gc-des, modules/gc-des-tests: New files.
8346
8347         * tests/test-des.c, tests/test-gc-des.c: New file.
8348
8349 2005-10-21  Simon Josefsson  <jas@extundo.com>
8350
8351         * modules/arctwo, modules/arctwo-tests: New files.
8352
8353         * tests/test-arctwo.c: New file.
8354
8355         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
8356
8357         * tests/test-gc-arctwo.c: New file.
8358
8359 2005-10-21  Simon Josefsson  <jas@extundo.com>
8360
8361         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
8362         Bruno Haible <bruno@clisp.org>.
8363
8364         * m4/gc-des.m4: New file.
8365
8366 2005-10-21  Simon Josefsson  <jas@extundo.com>
8367
8368         * m4/arctwo.m4: New file.
8369
8370         * m4/gc-arctwo.m4: New file.
8371
8372 2005-10-21  Simon Josefsson  <jas@extundo.com>
8373
8374         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
8375         block.
8376
8377 2005-10-21  Simon Josefsson  <jas@extundo.com>
8378
8379         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
8380         <bruno@clisp.org>.
8381
8382         * lib/hmac-sha1.c (hmac_sha1): Likewise.
8383
8384         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
8385         Bruno Haible <bruno@clisp.org>.
8386
8387         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
8388         <bruno@clisp.org>.
8389
8390 2005-10-21  Simon Josefsson  <jas@extundo.com>
8391
8392         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
8393
8394 2005-10-21  Simon Josefsson  <jas@extundo.com>
8395
8396         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
8397
8398 2005-10-21  Simon Josefsson  <jas@extundo.com>
8399
8400         * lib/des.h, lib/des.c: New files.
8401
8402         * lib/gc-gnulib.c: Support DES.c
8403
8404 2005-10-21  Simon Josefsson  <jas@extundo.com>
8405
8406         * lib/arctwo.h, lib/arctwo.c: New files.
8407
8408         * lib/gc-gnulib.c: Support ARCTWO.
8409
8410 2005-10-21  Simon Josefsson  <jas@extundo.com>
8411
8412         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
8413         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8414
8415 2005-10-21  Simon Josefsson  <jas@extundo.com>
8416
8417         * gnulib-tool (func_import, func_create_testdir): Define automake
8418         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
8419         Makefile.am snippet),
8420         suggested by Bruno Haible <bruno@clisp.org>.
8421
8422         * modules/gc (Makefile.am): Use it.
8423
8424 2005-10-21  Bruno Haible  <bruno@clisp.org>
8425
8426         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
8427         patch.
8428
8429 2005-10-19  Simon Josefsson  <jas@extundo.com>
8430
8431         * tests/test-gc-rijndael.c: New file.
8432
8433         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
8434
8435 2005-10-19  Simon Josefsson  <jas@extundo.com>
8436
8437         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
8438         interface too.
8439
8440 2005-10-19  Simon Josefsson  <jas@extundo.com>
8441
8442         * tests/test-gc-arcfour.c: New file.
8443
8444         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
8445
8446 2005-10-19  Simon Josefsson  <jas@extundo.com>
8447
8448         * modules/gc-md4, modules/gc-md4-tests: New file.
8449
8450         * tests/test-gc-md4.c: New file.
8451
8452 2005-10-19  Simon Josefsson  <jas@extundo.com>
8453
8454         * m4/gc-md4.m4: New file.
8455
8456 2005-10-19  Simon Josefsson  <jas@extundo.com>
8457
8458         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
8459         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
8460         <kasal@ucw.cz>.
8461
8462 2005-10-19  Simon Josefsson  <jas@extundo.com>
8463
8464         * m4/gc-arcfour.m4: New file.
8465
8466         * m4/gc-rijndael.m4: New file.
8467
8468 2005-10-19  Simon Josefsson  <jas@extundo.com>
8469
8470         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
8471
8472 2005-10-19  Simon Josefsson  <jas@extundo.com>
8473
8474         * lib/gc-gnulib.c: Support ARCFOUR.
8475
8476 2005-10-19  Simon Josefsson  <jas@extundo.com>
8477
8478         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
8479         support.
8480
8481         * lib/gc.h: Add ECB enum type.
8482
8483         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
8484
8485 2005-10-18  Simon Josefsson  <jas@extundo.com>
8486
8487         * tests/test-md5.c: New file.
8488
8489         * modules/md5-tests: New file.
8490
8491 2005-10-18  Simon Josefsson  <jas@extundo.com>
8492
8493         * tests/test-md4.c: New file.
8494
8495         * modules/md4, modules/md4-tests: New files.
8496
8497 2005-10-18  Simon Josefsson  <jas@extundo.com>
8498
8499         * m4/md4.m4: New file.
8500
8501 2005-10-18  Simon Josefsson  <jas@extundo.com>
8502
8503         * lib/md4.h, lib/md4.c: New files, based on md5.?.
8504
8505 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
8506
8507         * gnulib-tool (func_create_testdir): Omit the second check whether
8508         BUILT_SOURCES in nonempty.
8509
8510 2005-10-17  Simon Josefsson  <jas@extundo.com>
8511
8512         * tests/test-rijndael.c: New file.
8513
8514 2005-10-17  Simon Josefsson  <jas@extundo.com>
8515
8516         * modules/sha1: Depend on stdint instead of md5.
8517
8518         * modules/md5: Depend on stdint, remove uint32_t.
8519
8520 2005-10-17  Simon Josefsson  <jas@extundo.com>
8521
8522         * modules/gc-sha1-tests: New file.
8523
8524         * tests/test-gc-sha1.c: New file.
8525
8526 2005-10-17  Simon Josefsson  <jas@extundo.com>
8527
8528         * m4/md5.m4: Remove call to uint32_t.m4.
8529
8530 2005-10-17  Simon Josefsson  <jas@extundo.com>
8531
8532         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
8533
8534         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
8535         md5.h.
8536
8537         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
8538
8539         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
8540
8541 2005-10-17  Simon Josefsson  <jas@extundo.com>
8542
8543         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
8544
8545 2005-10-17  Simon Josefsson  <jas@extundo.com>
8546
8547         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
8548
8549 2005-10-17  Simon Josefsson  <jas@extundo.com>
8550
8551         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
8552
8553         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
8554
8555 2005-10-17  Bruno Haible  <bruno@clisp.org>
8556
8557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
8558         that it can also be used in a test.
8559
8560 2005-10-16  Bruno Haible  <bruno@clisp.org>
8561
8562         * gnulib-tool (func_emit_tests_Makefile_am): Also define
8563         TESTS_ENVIRONMENT, so that individual tests can augment it.
8564
8565         * gnulib-tool (func_create_testdir): Use an intermediate target for
8566         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
8567         macros, like $(ALLOCA_H), which cannot be passed through the command
8568         line.
8569
8570 2005-10-15  Simon Josefsson  <jas@extundo.com>
8571
8572         * modules/rijndael-tests: New file.
8573
8574         * modules/rijndael: New file.
8575
8576 2005-10-15  Simon Josefsson  <jas@extundo.com>
8577
8578         * m4/rijndael.m4: New file.
8579
8580 2005-10-15  Simon Josefsson  <jas@extundo.com>
8581
8582         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
8583
8584         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
8585
8586 2005-10-14  Simon Josefsson  <jas@extundo.com>
8587
8588         * tests/test-arcfour.c: New file.
8589
8590         * modules/arcfour, modules/arcfour-tests: New files.
8591
8592 2005-10-14  Simon Josefsson  <jas@extundo.com>
8593
8594         * m4/arcfour.m4: New file.
8595
8596 2005-10-14  Simon Josefsson  <jas@extundo.com>
8597
8598         * lib/arcfour.h, lib/arcfour.c: New files.
8599
8600 2005-10-14  Roland McGrath  <roland@redhat.com>
8601
8602         Import from libc.  [BZ #1331]
8603         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
8604         macro argument.
8605         Reported by Matej Vela <vela@debian.org>.
8606
8607 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8608
8609         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
8610         include <wchar.h>; no longer needed.
8611
8612 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8613
8614         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
8615
8616 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
8617         and  Ulrich Drepper  <drepper@redhat.com>
8618
8619         Import from libc.
8620         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
8621         instead of inline stream orientation test and two separate
8622         function calls.  Pay no attention to USE_IN_LIBIO.
8623
8624 2005-10-13  Simon Josefsson  <jas@extundo.com>
8625
8626         * modules/gc-hmac-md5-tests: New file.
8627
8628         * tests/test-gc-hmac-sha1.c: New file.
8629
8630         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
8631
8632         * modules/gc-hmac-md5-tests: New file.
8633
8634         * tests/test-gc-md5.c: New file.
8635
8636         * modules/gc-md5-tests: New file.
8637
8638 2005-10-13  Simon Josefsson  <jas@extundo.com>
8639
8640         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
8641         Move memory allocation outside of loop.
8642
8643 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8644
8645         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
8646         intermediate directory is in a read-only file system.  Problem
8647         reported by Eric Blake.
8648
8649 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
8650
8651         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
8652
8653 2005-10-12  Simon Josefsson  <jas@extundo.com>
8654
8655         * tests/test-hmac-sha1.c: New file.
8656
8657         * modules/hmac-sha1-tests: New file.
8658
8659         * modules/hmac-sha1: New file.
8660
8661 2005-10-12  Simon Josefsson  <jas@extundo.com>
8662
8663         * modules/gc-sha1: New file.
8664
8665 2005-10-12  Simon Josefsson  <jas@extundo.com>
8666
8667         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
8668
8669         * tests/test-gc-pbkdf2-sha1.c: New file.
8670
8671 2005-10-12  Simon Josefsson  <jas@extundo.com>
8672
8673         * modules/gc-md5, modules/gc-hmac-md5: New files.
8674
8675         * modules/gc (Files): Remove md5, memxor and hmac files.
8676
8677 2005-10-12  Simon Josefsson  <jas@extundo.com>
8678
8679         * m4/gc-pbkdf2-sha1.m4: New file.
8680
8681         * m4/gc-hmac-sha1.m4: New file.
8682
8683         * m4/gc-sha1: New file.
8684
8685         * m4/hmac-sha1.m4: New file.
8686
8687 2005-10-12  Simon Josefsson  <jas@extundo.com>
8688
8689         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
8690
8691         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
8692
8693 2005-10-12  Simon Josefsson  <jas@extundo.com>
8694
8695         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
8696         suggested by Bruno Haible <bruno@clisp.org>.
8697
8698 2005-10-12  Simon Josefsson  <jas@extundo.com>
8699
8700         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
8701
8702 2005-10-12  Simon Josefsson  <jas@extundo.com>
8703
8704         * lib/gc-pbkdf2-sha1.c: New file.
8705
8706         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
8707
8708 2005-10-12  Simon Josefsson  <jas@extundo.com>
8709
8710         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
8711
8712         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
8713
8714 2005-10-12  Simon Josefsson  <jas@extundo.com>
8715
8716         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
8717         GC_USE_HMAC_MD5, respectively.
8718
8719         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
8720         (gc_md5): Fix typo.
8721
8722         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
8723
8724         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
8725
8726         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
8727
8728 2005-10-12  Bruno Haible  <bruno@clisp.org>
8729
8730         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
8731         Reported by Stepan Kasal <kasal@ucw.cz>.
8732
8733 2005-10-11  Simon Josefsson  <jas@extundo.com>
8734
8735         * tests/test-crc.c: New file.
8736
8737         * modules/crc, modules/crc-tests: New files.
8738
8739 2005-10-11  Simon Josefsson  <jas@extundo.com>
8740
8741         * m4/crc.m4: New file.
8742
8743 2005-10-11  Simon Josefsson  <jas@extundo.com>
8744
8745         * lib/gc.h: Add gc_hash and gc_hash_buffer.
8746
8747         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
8748
8749         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
8750
8751 2005-10-11  Simon Josefsson  <jas@extundo.com>
8752
8753         * lib/crc.h, lib/crc.c: New files.
8754
8755         * lib/gc.h (gc_hash_buffer): Add doc.
8756
8757 2005-10-11  Bruno Haible  <bruno@clisp.org>
8758
8759         * modules/c-strcasestr: New file.
8760         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
8761
8762 2005-10-11  Bruno Haible  <bruno@clisp.org>
8763
8764         * modules/c-strcase: New file.
8765         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
8766
8767 2005-10-11  Bruno Haible  <bruno@clisp.org>
8768
8769         * lib/strcasecmp.c: Include limits.h.
8770         (strcasecmp): Avoid integer overflow on exotic platforms.
8771         * lib/strncasecmp.c: Include limits.h.
8772         (strncasecmp): Avoid integer overflow on exotic platforms.
8773         Reported by Paul Eggert.
8774
8775 2005-10-11  Bruno Haible  <bruno@clisp.org>
8776
8777         * lib/c-strcasestr.h: New file, from GNU gettext.
8778         * lib/c-strcasestr.c: New file, from GNU gettext.
8779
8780 2005-10-11  Bruno Haible  <bruno@clisp.org>
8781
8782         * lib/c-strcase.h: New file, from GNU gettext.
8783         * lib/c-strcasecmp.c: New file, from GNU gettext.
8784         * lib/c-strncasecmp.c: New file, from GNU gettext.
8785
8786 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8787
8788         * modules/mempcpy (License): GPL -> LGPL.
8789         * modules/strchrnul (License): Likewise.
8790         * modules/sysexits (License): Likewise.
8791
8792 2005-10-08  Simon Josefsson  <jas@extundo.com>
8793
8794         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
8795
8796 2005-10-07  Simon Josefsson  <jas@extundo.com>
8797
8798         * m4/memxor.m4: Remove gl_C_RESTRICT call.
8799
8800 2005-10-06  Simon Josefsson  <jas@extundo.com>
8801
8802         * tests/test-hmac-md5.c: New file.
8803
8804         * modules/hmac-md5-tests: New file.
8805
8806         * modules/hmac-md5: New file.
8807
8808 2005-10-06  Simon Josefsson  <jas@extundo.com>
8809
8810         * m4/hmac-md5.m4: New file.
8811
8812         * m4/memxor.m4: Require gl_C_RESTRICT.
8813
8814 2005-10-06  Simon Josefsson  <jas@extundo.com>
8815
8816         * lib/memxor.c (memxor): Avoid casts and warnings.
8817
8818 2005-10-06  Simon Josefsson  <jas@extundo.com>
8819
8820         * lib/hmac-md5.c: New file.
8821
8822         * lib/hmac.h: New file.
8823
8824 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
8827         promotes to int, not unsigned int, to catch the AIX 5.3
8828         compiler bug.
8829
8830 2005-10-05  Simon Josefsson  <jas@extundo.com>
8831
8832         * modules/memxor: New file.
8833
8834         * modules/iconv (Files): Move config.rpath to havelib, it is used
8835         there.
8836
8837         * modules/havelib (Files): Add config.rpath.
8838
8839 2005-10-05  Simon Josefsson  <jas@extundo.com>
8840
8841         * m4/memxor.m4: New file.
8842
8843 2005-10-05  Simon Josefsson  <jas@extundo.com>
8844
8845         * lib/memxor.c (memxor): Fix compiler error.
8846
8847         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
8848         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
8849
8850         * lib/memxor.h, lib/memxor.c: New files.
8851
8852         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
8853         we assume all systems have it, suggested by Jim Meyering
8854         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
8855         any systems lack sys/socket.h; mingw32 is known to lack it, but we
8856         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
8857         same reasons.
8858
8859 2005-10-05  Simon Josefsson  <jas@extundo.com>
8860
8861         * config/srclist.txt: Add glibc bug 1423 for md5.h.
8862
8863 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8864
8865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
8866         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
8867         needed, since the source code now assumes these .h files.
8868
8869 2005-10-05  Derek Price  <derek@ximbiot.com>
8870
8871         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
8872
8873 2005-10-05  Bruno Haible  <bruno@clisp.org>
8874
8875         * modules/stdint (License): Change to LGPL.
8876
8877 2005-10-04  Simon Josefsson  <jas@extundo.com>
8878
8879         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
8880         D. Baushke" <mdb@gnu.org>.
8881
8882 2005-10-04  Bruno Haible  <bruno@clisp.org>
8883
8884         * lib/verify.h (verify_true): Provide alternative definition for C++.
8885
8886 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8887
8888         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
8889         (SSIZE_MAX): New macro, if not already defined.
8890         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
8891         than 2 GiB.
8892
8893 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8894
8895         Sync from coreutils.
8896         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
8897         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
8898         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
8899         ULLONG_MAX doesn't work with 2.7.2.1.
8900
8901 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8902
8903         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
8904         From Ben Pfaff.
8905
8906         * modules/exclude (Depends-on): Depend on verify.
8907         * modules/strtoimax (Depends-on): Likewise.
8908         * modules/utimecmp (Depends-on): Likewise.
8909
8910 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8911
8912         * lib/exclude.c: Include verify.h.
8913         (verify): Remove.  All callers changed to use verify.h's version.
8914         * lib/strtoimax.c: Likewise.
8915         * lib/utimecmp.c: Likewis.e
8916
8917         Sync from coreutils.
8918         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
8919         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
8920         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
8921         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
8922         bother returning ENOSYS if settimeofday or stime fails; just let
8923         them return whatever errno they want to return.
8924         * lib/utimens.c: Include unistd.h, for dup2.
8925         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
8926         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
8927
8928 2005-10-02  Jim Meyering  <jim@meyering.net>
8929
8930         Sync from coreutils.
8931         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
8932         from glibc-2.2.5 that fails for read-only files.
8933
8934 2005-10-02  Jim Meyering  <jim@meyering.net>
8935
8936         Sync from coreutils.
8937         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
8938         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
8939         `#if HAVE_CONFIG_H'.
8940         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
8941         Remove AT_FDCWD test.
8942         Do not consume the fd unless successful.
8943         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
8944         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
8945         block, so that we don't even try to compile it if settimeofday is
8946         available.  This works around a compilation failure on OSF1 V5.1,
8947         due to stime requiring a `long int*' while tv_sec is `int'.
8948
8949 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
8950
8951         Sync from coreutils.
8952         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
8953         against `yes', rather than just testing for nonempty.
8954
8955 2005-10-01  Simon Josefsson  <jas@extundo.com>
8956
8957         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
8958         and Darwin.
8959
8960         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
8961         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
8962         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
8963         freeaddrinfo and gai_strerror are declared by the POSIX headers.
8964         Check if struct addrinfo is declared.
8965
8966 2005-10-01  Simon Josefsson  <jas@extundo.com>
8967
8968         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
8969         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
8970         AI_* and EAI_* definitions.  Protect function declarations.
8971
8972 2005-10-01  Jim Meyering  <jim@meyering.net>
8973
8974         Sync from coreutils.
8975
8976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
8977         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
8978         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
8979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
8980         in the inet and nsl libraries.  Required on Solaris 5.7.
8981
8982 2005-10-01  Jim Meyering  <jim@meyering.net>
8983
8984         Sync from coreutils.
8985         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
8986         in the inet and nsl libraries.  Required on Solaris 5.7.
8987
8988 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
8989
8990         * lib/getdelim.c (getdelim): Remove unused variables.
8991
8992 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
8993
8994         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
8995         so that the code works even with ancient cpp.  Portability problem
8996         with GCC 2.7.2.1 reported by Thomas M.Ott.
8997
8998 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
8999
9000         * modules/regex (Depends-on): Add strcase.
9001
9002         * modules/gethostname (Licence): Change from GPL to LGPL, since
9003         gethostname.c is a trivial implementation of a standard library
9004         function.
9005         * modules/poll (License): Change from GPL to LGPL, since it's
9006         derived from LGPL code.
9007
9008 2005-09-27  Jim Meyering  <jim@meyering.net>
9009
9010         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
9011         HAVE_CONFIG_H.
9012
9013         * lib/intprops.h (signed_type_or_expr__): Define.
9014         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
9015         for unsigned types.
9016
9017 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9018
9019         * lib/verify.h (verify_expr): Remove, replacing with:
9020         (verify_true): New macro that returns true instead of void.
9021         (verify_type__): Remove.
9022         (verify): Use verify_true rather than verify_type__.
9023
9024 2005-09-26  Bruno Haible  <bruno@clisp.org>
9025
9026         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
9027         is necessary.
9028         (lib_SOURCES): Remove mbchar.c.
9029         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
9030         (Files): Add m4/mbrtowc.m4.
9031         * modules/mbiter: Likewise.
9032         * modules/mbuiter: Likewise.
9033
9034 2005-09-26  Bruno Haible  <bruno@clisp.org>
9035
9036         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
9037         compile mbchar.c if they are not both present.
9038         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
9039         * m4/mbiter.m4 (gl_MBITER): Likewise.
9040         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
9041         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
9042         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
9043
9044 2005-09-25  Jim Meyering  <jim@meyering.net>
9045
9046         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
9047         also uses socklen_t.
9048
9049 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9050
9051         * lib/utimens.c (ENOSYS): Define if not already defined.
9052         (futimens): Support having a null PATH if the file descriptor
9053         is nonnegative.
9054
9055         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
9056         Remove.
9057         (__attribute): Define to empty unless GCC 3.1 or later.
9058         This works around a core dump on OpenBSD 3.4, which has GCC
9059         2.95.3, which dumps core when given __attribute__(()).  It also
9060         simplifies other tests, since we really don't want to bother with
9061         worrying about which ancient version of GCC supported what.
9062         Original problem reported by Yoann Vandoorselaere, with part of
9063         the fix suggested by Derek Price.
9064
9065 2005-09-24  Jim Meyering  <jim@meyering.net>
9066
9067         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
9068         so we can once again use a positive bitfield width of 1 -- now we
9069         don't have to explain why we were using a bitfield width of 2.
9070
9071 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
9074         and similarly for the other external symbols.  Problem reported
9075         by James Gallager.
9076
9077         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
9078         bug reported by Jim Meyering.
9079
9080         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
9081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
9082         not needed, since socklen is a prerequisite module.
9083
9084 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9085
9086         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
9087         Problem reported by Eric Blake.
9088         (getaddrinfo): Initialize se so that it's not garbage.
9089         Redo internal storage allocation so that it doesn't make unportable
9090         assumptions about alignment.
9091         Fix a memory leak.
9092
9093         * lib/utimens.c (futimens): Use futimesat if available.
9094         Prefer it to futimes since it doesn't have the futimes bug.
9095
9096         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
9097         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
9098         Instead, declare a function that returns a pointer to an array,
9099         and use verify_type__ to declare the size of the array.
9100         Problem and germ of a solution reported by Bruno Haible.
9101         (verify_type__): Use 2, not 1, for bitfield size, to avoid
9102         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
9103
9104 2005-09-23  Jim Meyering  <jim@meyering.net>
9105
9106         Sync from coreutils.
9107         Correct build failure (socklen_t not defined) on at least
9108         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
9109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
9110
9111 2005-09-23  Jim Meyering  <jim@meyering.net>
9112
9113         * modules/getaddrinfo (Depends-on): Add socklen.
9114
9115 2005-09-23  Bruno Haible  <bruno@clisp.org>
9116
9117         * tests/test-verify.c: New file.
9118
9119 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9120
9121         Sync from coreutils.
9122
9123         * modules/argmatch (Depends-on): Add verify.
9124         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
9125         unistd-safer.
9126         * modules/save-cwd (Depends-on): Likewise.
9127
9128         * modules/openat (Files): Add lib/openat-die.c.
9129         (Depends-on): Remove error, exitfail.
9130         Add dirname.
9131
9132         * modules/verify: New file.
9133         * MODULES.html.sh (Diagnostics <assert.h>): New section,
9134         with "verify" module.
9135
9136 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9137
9138         Sync from coreutils.
9139
9140         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
9141         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
9142         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
9143         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
9144         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
9145         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
9146         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
9147         Don't bother checking for string.h, stdlib.h, unistd.h.
9148         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
9149         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
9150         module's job.
9151         * m4/jm-macros.m4 (gl_MACROS): Likewise.
9152         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
9153
9154         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
9155         (gl_GETDATE): Use it.
9156
9157         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
9158
9159 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9160
9161         Sync from coreutils.
9162
9163         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
9164         stat-time.h.
9165         * lib/argmatch.h: Include verify.h
9166         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
9167         (ARGMATCH_ASSERT): Remove; unused.
9168         * lib/canonicalize.c: Assume STDC_HEADERS.
9169         * lib/exclude.c: Include "strcase.h".
9170         * lib/regex_internal.h [!defined _LIBC]: Likewise.
9171         * lib/getusershell.c: Include stdio--.h rather than stdio.h
9172         and stdio-safer.h.
9173         (getusershell): Call fopen, not fopen_safer.
9174         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
9175         Do not include unistd-safer.h.
9176         (save_cwd): Don't call fd_safer; no longer needed
9177         now that we include fcntl--.h.
9178
9179         * lib/getdate.y (relative_time): New type.
9180         (RELATIVE_TIME_0): New constant.
9181         (parser_control): Use relative_time instead of doing it ourselves.
9182         (%union): Add new relative_time rel member.
9183         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
9184         Now typeless.
9185         (relunit, relunit_snumber): Now of type rel.
9186         (zone, rel, relunit, get_date): Adjust to above changes.
9187
9188         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
9189         Do not include unistd-safer.h.
9190         (getloadavg): Don't call fd_safer; no longer needed
9191         now that we include fcntl--.h.
9192
9193         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
9194         (make_dir_parents): Treat ENOSYS like EEXIST.
9195
9196         Improve quality of diagnostics on restore_cwd failure.
9197         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
9198         (make_dir_parents): Last arg is now int * (for errno), not bool *.
9199         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
9200         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
9201         each time through the loop.  Do not diagnose restore_cwd failure;
9202         that is the caller's job (and perhaps the caller does not care).
9203
9204         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
9205         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
9206         If the file already exists but is not a directory, don't bother
9207         to try to make its parents.
9208         Close potential file descriptor leak if we can't chdir("/") (!).
9209         Don't always return true if chdir($PWD) fails; return true only
9210         if the requested action was done successfully (except for the
9211         chdir($PWD)).
9212         Don't log final directory unless we actually made it.
9213         Refactor to avoid duplicate code to fix up permissions.
9214         Don't attempt to fix up parent permissions if chdir($PWD) fails.
9215
9216         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
9217         to make it a bit faster and (I hope) clearer.
9218         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
9219         Fix bug in formats like %2N.
9220
9221         * lib/verify.h: New file.
9222
9223 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9224
9225         Sync from coreutils.
9226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
9227
9228 2005-09-22  Jim Meyering  <jim@meyering.net>
9229
9230         Sync from coreutils.
9231
9232         * m4/lstat.m4 (gl_FUNC_LSTAT):
9233         Use AC_LIBSOURCES to require lstat.c and lstat.h.
9234         Remove obsolete comment.
9235         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
9236         * m4/xstrtod.m4: Likewise.
9237
9238         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
9239
9240 2005-09-22  Jim Meyering  <jim@meyering.net>
9241
9242         Sync from coreutils.
9243
9244         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
9245
9246         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
9247         the .tm_year member, since otherwise gcc-4.0 would now warn about
9248         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
9249
9250         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
9251         order to avoid an unsuppressible warning from gcc on 64-bit systems.
9252
9253         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
9254         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
9255         when run in a time zone for which daylight savings time is in effect
9256         for the starting date.
9257
9258         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
9259         stop us from restricting permissions of just-created absolute-named
9260         directories.
9261         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
9262         to restore initial working directory.
9263         * lib/mkdir-p.c (make_dir_parents): New parameter:
9264         different_working_dir, to tell caller if/when we change the working
9265         directory and are unable to return to the initial one.
9266         * lib/mkdir-p.h (make_dir_parents): Update prototype.
9267         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
9268         `return false'.  This fixes a bug introduced on 2004-07-30.
9269
9270         * lib/openat.c (fdopendir): Be sure to close the supplied
9271         file descriptor before returning.  This makes our replacement
9272         implementation a little closer to Solaris's, where fdopendir
9273         ties the file descriptor to the returned DIR* pointer.
9274         * lib/openat.c (unlinkat): New function.
9275         * lib/openat.h (unlinkat): Add prototype.
9276         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
9277         (openat_restore_fail): Rename from openat_restore_die.
9278         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
9279
9280         Provide an alternative to exiting immediately upon save_cwd or
9281         restore_cwd failure.  Now, an application can arrange e.g.,
9282         to perform a longjump in that case.
9283         * lib/openat.c: Include dirname.h.
9284         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
9285         (rpl_openat, fdopendir, fstatat): Call openat_save_die
9286         and openat_restore_die rather than calling error directly.
9287         Don't include "error.h" or "exitfail.h"; they're no longer needed.
9288
9289         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
9290         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
9291         define.
9292
9293         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
9294         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
9295                             int utc, int nanoseconds);
9296         Background:
9297         date should not have to allocate a megabyte of virtual memory to
9298         handle a format argument like +%1048575T.  When implemented with
9299         strftime, it must allocate such a buffer, use strftime to fill it
9300         in, print it, then free it.
9301         With fprintftime, it simply prints everything and exits.
9302         With no need for memory allocation, that's one fewer way to fail.
9303         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
9304         optional field width, not before, so we accept %9:z, not %:9z.
9305         (my_strftime): Be sure to use L_('x') for literals.
9306
9307         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
9308         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
9309         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
9310         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
9311         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
9312         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
9313         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
9314         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
9315         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
9316         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
9317         * lib/xgethostname.c, lib/xreadlink.c:
9318         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
9319
9320         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
9321         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
9322         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
9323         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9324         and don't include <sys/file.h>).
9325
9326 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
9327
9328         Sync from coreutils.
9329
9330         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
9331         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
9332         [!LDAV_DONE]: Avoid unused variable warning.
9333
9334 2005-09-21  Bruno Haible  <bruno@clisp.org>
9335
9336         * lib/unicodeio.h (unicode_to_mb): New declaration.
9337
9338 2005-09-20  Derek Price  <derek@ximbiot.com>
9339
9340         * lib/getaddrinfo.c: Don't include <netdb.h> included from
9341         getaddrinfo.h.
9342
9343 2005-09-20  Bruno Haible  <bruno@clisp.org>
9344
9345         * gnulib-tool: Remove trailing slashes from the values specified for
9346         --source-base, --m4-base, --tests-base, --aux-dir.
9347         Suggested by Simon Josefsson <jas@extundo.com>.
9348
9349 2005-09-20  Bruno Haible  <bruno@clisp.org>
9350
9351         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
9352         func_modules_to_filelist, func_import, func_create_testdir): Make all
9353         sorting results locale-independent, so that gnulib-cache.m4 doesn't
9354         change when gnulib-tool is invoked in a different locale.
9355
9356 2005-09-19  Simon Josefsson  <jas@extundo.com>
9357
9358         * m4/socklen.m4: Fix typo.
9359
9360 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9361
9362         Use a consistent style for including <config.h>.
9363         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
9364         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
9365         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
9366         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
9367         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
9368         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
9369         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
9370         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
9371         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
9372         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
9373         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
9374         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
9375         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
9376         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
9377         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
9378         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
9379         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
9380         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
9381         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
9382         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
9383         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
9384         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
9385         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
9386         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
9387         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
9388         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
9389         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
9390         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
9391         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
9392         lib/xstrtoumax.c, lib/yesno.c:
9393         Standardize inclusion of config.h.
9394         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
9395         lib/inttostr.h:  Removed inclusion of config.h from header files.
9396         * lib/inttostr.c:  Adjusted in-tree users.
9397         * lib/timespec.h: Remove superfluous warning to include config.h.
9398         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
9399         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
9400         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
9401         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
9402         config.h with HAVE_CONFIG_H.
9403
9404 2005-09-19  Jim Meyering  <jim@meyering.net>
9405
9406         * modules/pathmax (License): Change to LGPL.
9407
9408 2005-09-19  Derek Price  <derek@ximbiot.com>
9409
9410         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
9411
9412 2005-09-19  Bruno Haible  <bruno@clisp.org>
9413
9414         * gnulib-tool (import): Provide default for --tests-base.
9415
9416 2005-09-19  Bruno Haible  <bruno@clisp.org>
9417
9418         * doc/quote.texi: New file, extracted from gnulib.texi.
9419         * doc/ctime.texi: New file, extracted from gnulib.texi.
9420         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
9421         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
9422         * doc/gnulib.texi: Include them.
9423
9424 2005-09-18  Bruno Haible  <bruno@clisp.org>
9425
9426         Portability fix.
9427         * gnulib-tool (func_readlink): New function.
9428         (func_ln_if_changed): Use it.
9429
9430 2005-09-18  Bruno Haible  <bruno@clisp.org>
9431
9432         * gnulib-tool: Support --with-tests also with --import.
9433         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
9434         (func_import): Use variables $testsbase and $inctests. Emit a
9435         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
9436         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
9437         SUBDIRS += $testsdir.
9438         (func_create_testdir): Update.
9439
9440 2005-09-18  Bruno Haible  <bruno@clisp.org>
9441
9442         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
9443         instead of $dry_run.
9444         (func_cp_if_changed, func_mv_if_changed): Remove functions.
9445         (func_ln_if_changed): Don't handle dry-run here.
9446         (func_import): In dry-run mode, detect more precisely which actions
9447         would be performed, and don't use "...ing" verbs.
9448
9449 2005-09-18  Bruno Haible  <bruno@clisp.org>
9450
9451         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
9452         (func_import): Use join on two temporary files instead of three nested
9453         loops, in order to determine which files are new or old.
9454
9455 2005-09-18  Bruno Haible  <bruno@clisp.org>
9456
9457         * gnulib-tool (func_import): Comment out code that spits out the
9458         new files with --dry-run.
9459
9460 2005-09-18  Bruno Haible  <bruno@clisp.org>
9461
9462         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
9463
9464 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9465
9466         * lib/stat-time.h: New file.
9467         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
9468         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
9469         in a different way.
9470         (timespec_cmp): New function.
9471         * lib/utimecmp.c: Include stat-time.h.
9472         (SYSCALL_RESOLUTION): Depend on whether various struct stat
9473         members exist, not on the obsolescent ST_MTIM_NSEC.
9474         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
9475
9476 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9477
9478         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
9479
9480 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9481
9482         * MODULES.html.sh (File system functions): Add stat-time.
9483         * modules/stat-time: New file.
9484         * modules/timespec (Files): Remove m4/st_mtim.m4; this
9485         is now done in a different way, by the stat-time module.
9486         * modules/utimecmp (Depends-on): Add stat-time.
9487
9488 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9489
9490         * m4/st_mtim.m4: Remove.  Superseded by...
9491         * m4/stat-time.m4: New file.
9492         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
9493         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
9494
9495 2005-09-15  Derek Price  <derek@ximbiot.com>
9496
9497         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
9498
9499 2005-09-15  Derek Price  <derek@ximbiot.com>
9500
9501         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
9502         * lib/regex_internal.c: Ditto, using this...
9503         (__GNUC_PREREQ): ...new macro.
9504         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
9505         using...
9506         (__GNUC_PREREQ): ...this new macro.
9507
9508         * lib/strstr.h: Include string.h. Define strstr as a macro here.
9509
9510 2005-09-15  Derek Price  <derek@ximbiot.com>
9511             Paul Eggert  <eggert@cs.ucla.edu>
9512
9513         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
9514         changes, consolidating in...
9515         * lib/regex_internal.h: ...this file.
9516
9517 2005-09-13  Jim Meyering  <jim@meyering.net>
9518
9519         * lib/canon-host.c: Filter through gnu indent and reword comments
9520         slightly.
9521         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
9522
9523 2005-09-13  Derek Price  <derek@ximbiot.com>
9524
9525         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
9526         failure.
9527         Reported by Jim Meyering  <jim@meyering.net>.
9528
9529 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9530
9531         * lib/base64.c: Typo.
9532         (base64_encode): Put b64str in initialized data section.
9533
9534 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9535
9536         Merge glibc and coreutils changes into gnulib, plus a few
9537         extra fixes.
9538         * lib/md5.c: Use #error rather than a string.
9539         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
9540         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
9541         (__attribute__): Define to empty for non recent-GCC.
9542         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
9543         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
9544         Renamed from their non-__ counterparts, with new macros replacing
9545         them if not _LIBC.  Add __THROW attribute.
9546         (rol): Remove.
9547         (struct md5_ctx): Align buffer if using GCC.
9548         * lib/sha1.h (struct sha1_ctx): Likewise.
9549         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
9550         The old name was backwards.
9551         (NOTSWAP): Remove; not used.
9552         (rol): New macro, moved here from md5.h.
9553         (sha1_process_block): Remove a FIXME that doesn't make sense.
9554
9555 2005-09-12  Derek Price  <derek@ximbiot.com>
9556
9557         Return usable errors from canon-host.
9558         * lib/canon-host.h: New file.
9559         * lib/canon-host.c (canon_host): Wrap...
9560         (canon_host_r): ...this new function, which now relies exclusively on
9561         getaddrinfo.
9562         (ch_strerror): New function.
9563         (last_cherror): New global.
9564         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
9565         interface.
9566         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
9567         void *.
9568         (freeaddrinfo): Free ai->ai_canonname when set.
9569
9570 2005-09-12  Derek Price  <derek@ximbiot.com>
9571
9572         Make canon-host require getaddrinfo.
9573         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
9574         AC_LIBSOURCE canon-host.h.  Call...
9575         (gl_PREREQ_CANON_HOST): ...this new function, which requires
9576         gl_GETADDRINFO.
9577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
9578
9579 2005-09-12  Derek Price  <derek@ximbiot.com>
9580
9581         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
9582         LGPL.
9583         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
9584
9585 2005-09-12  Derek Price  <derek@ximbiot.com>
9586
9587         * lib/gai_strerror.c: Include config.h when available.  Include
9588         getaddrinfo.h before other headers to test interface.
9589         Reported by Larry Jones <lawrence.jones@ugs.com>.
9590
9591 2005-09-12  Derek Price  <derek@ximbiot.com>
9592             Paul Eggert  <eggert@cs.ucla.edu>
9593
9594         * modules/glob (Files): Add glob-libc.h.
9595
9596 2005-09-12  Derek Price  <derek@ximbiot.com>
9597             Paul Eggert  <eggert@cs.ucla.edu>
9598
9599         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
9600         glob_.h, glob-libc.h.
9601         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
9602
9603 2005-09-12  Derek Price  <derek@ximbiot.com>
9604             Paul Eggert  <eggert@cs.ucla.edu>
9605
9606         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
9607         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
9608         protecting things that should be done only in gnulib contexts.
9609         * lib/glob_.h: New file, containing only the glob things needed for
9610         gnulib.
9611         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
9612         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
9613         (glob, globfree, glob_pattern_p): Now defined simply in terms of
9614         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
9615         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
9616         and to respect the namespace rules better.
9617
9618 2005-09-08  Simon Josefsson  <jas@extundo.com>
9619
9620         * modules/socklen: New file.
9621
9622 2005-09-08  Simon Josefsson  <jas@extundo.com>
9623
9624         * m4/socklen.m4: New file.
9625
9626 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9627
9628         * modules/utimens (Files): Add m4/utimbuf.m4, since
9629         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
9630         Reported by Sergey Poznyakoff.
9631
9632 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
9635         definitions, since that's the preferred style in glibc.
9636         Fix a minor spacing issue, and update copyright notice to match
9637         glibc's.
9638
9639 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9640
9641         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
9642
9643 2005-09-06  Simon Josefsson  <jas@extundo.com>
9644
9645         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
9646         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
9647
9648 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9649
9650         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
9651         warning.
9652
9653 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9654
9655         * config/srclist.txt: Add glibc bug 1302.
9656
9657 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9658
9659         Change bitset word type from unsigned int to unsigned long int,
9660         as this has better performance on typical 64-bit hosts.
9661         Port bitset code to hosts with unusual word sizes.
9662         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
9663         (build_collating_symbol):
9664         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
9665         argument is a bitset.  This is merely a style issue, but it makes
9666         it clearer that an entire array is expected.
9667         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
9668         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
9669         Port to the case where bitset_word is not the same as unsigned int.
9670         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
9671         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
9672         Likewise.
9673         * lib/regexec.c (check_dst_limits_calc_pos_1,
9674         check_subexp_matching_top):
9675         (build_trtable, group_nodes_into_DFAstates):
9676         Likewise.
9677         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
9678         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
9679         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
9680         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
9681         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
9682         * lib/regcomp.c (optimize_subexps, lower_subexp):
9683         Work even if bitset_word has holes in its bitwise representation.
9684         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
9685         * lib/regexec.c (check_dst_limits_calc_pos_1,
9686         check_subexp_matching_top):
9687         Likewise.
9688         * lib/regex_internal.c (re_string_reconstruct):
9689         Don't assume UCHAR_MAX == 255.
9690         * lib/regex_internal.h (bitset_set_all): Likewise.
9691         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
9692         All uses changed.
9693         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
9694         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
9695         All uses changed.
9696         (BITSET_WORD_MAX): New macro.
9697         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
9698         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
9699         (bitset_empty, bitset_copy):
9700         Prefer sizeof (bitset) to multiplying it out ourselves.
9701         (bitset_not_merge): Remove; unused.
9702         (bitset_contain): Return bool, not unsigned int with one bit on.
9703         All callers changed.
9704         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
9705         alignment than re_node_set; do this by defining a new internal
9706         type struct dests_alloc and using it to allocate memory.
9707
9708 2005-09-05  Bruno Haible  <bruno@clisp.org>
9709
9710         * gnulib-tool (func_import): Fix comparison in handling of symbolic
9711         links.
9712
9713 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
9714
9715         * modules/size_max (Makefile.am): Add size_max.h
9716
9717 2005-09-04  Derek Price  <derek@ximbiot.com>
9718
9719         * gnulib-tool (func_import): Fix reversed $symbolic logic.
9720
9721 2005-09-03  Simon Josefsson  <jas@extundo.com>
9722
9723         * gnulib-tool: Fix typo.
9724
9725 2005-09-03  Simon Josefsson  <jas@extundo.com>
9726
9727         * config/srclist.txt: Add glibc bug 1293.
9728
9729 2005-09-03  Derek Price  <derek@ximbiot.com>
9730
9731         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
9732         From Larry Jones <lawrence.jones@ugs.com>.
9733
9734 2005-09-02  Simon Josefsson  <jas@extundo.com>
9735
9736         * modules/socklen: New file.
9737
9738 2005-09-02  Simon Josefsson  <jas@extundo.com>
9739
9740         * modules/havelib: New module.
9741
9742         * modules/gettext, modules/iconv, modules/lock, modules/readline:
9743         Use havelib.
9744
9745 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         Check for arithmetic overflow when calculating sizes, to prevent
9748         some buffer-overflow issues.  These patches are conservative, in the
9749         sense that when I couldn't determine whether an overflow was possible,
9750         I inserted a run-time check.
9751         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
9752         macros.
9753         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
9754         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
9755         (re_xnrealloc, re_x2nrealloc): New inline functions.
9756         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
9757         parse_bracket_exp):
9758         (build_equiv_class, build_charclass): Check for arithmetic overflow
9759         in size expression calculations.
9760         * lib/regex_internal.c (re_string_realloc_buffers):
9761         (build_wcs_upper_buffer, re_node_set_add_intersect):
9762         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
9763         (re_dfa_add_node, register_state): Likewise.
9764         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
9765         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
9766         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
9767         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
9768
9769 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
9772         m4/ulonglong.m4.  Problem reported by Martin Lambers.
9773
9774 2005-09-02  Bruno Haible  <bruno@clisp.org>
9775
9776         Support for lib vs. lib64 distinction on biarch platforms.
9777         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
9778         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
9779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
9780
9781 2005-09-02  Bruno Haible  <bruno@clisp.org>
9782
9783         * gnulib-tool (import): In the other first-use case, provide defaults
9784         as well.
9785
9786 2005-09-02  Bruno Haible  <bruno@clisp.org>
9787
9788         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
9789         patches not yet found in the latest gettext release.
9790
9791 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9792
9793         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
9794         to avoid a collision with bits/local_lim.h in glibc.
9795         All uses changed.  Problem reported by Dmitry V. Levin in
9796         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
9797
9798         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
9799         bugs in int versus size_t comparisons.
9800         (re_string_context_at): Fix bug where the code assumed that
9801         Idx is signed.
9802
9803         Use bool where appropriate.
9804         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
9805         All callers changed.
9806         (calc_eclosure_iter): Likewise, for ROOT arg.
9807         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
9808         (build_charclass_op): Likewise, for NON_MATCH arg.
9809         * lib/regex_internal.c (re_string_allocate, re_string_construct):
9810         (re_string_construct_common): Likewise, for ICASE arg.
9811         * lib/regexec.c (re_search_2_stub, re_search_stub):
9812         Likewise, for RET_LEN arg.
9813         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
9814         (set_regs): Likewise, for FL_BACKTRACK arg.
9815         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
9816         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
9817         (calc_eclosure_iter, parse_bracket_exp):
9818         Use bool for internal variables that are booleans.
9819         * lib/regexec.c (re_search_internal, check_matching,
9820         proceed_next_node):
9821         (set_regs, build_sifted_states, sift_states_bkref):
9822         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
9823         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9824         (find_collation_sequence_value):
9825         Likewise.
9826         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
9827         (re_node_set_compare):
9828         Return bool, not int. All callers changed.
9829         * lib/regexec.c (check_halt_node_context, check_dst_limits):
9830         (build_trtable, check_node_accept): Likewise.
9831         * lib/regex_internal.h: Include stdbool.h.
9832
9833         Fix bugs uncovered when converting to bool.
9834         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
9835         failure instead of charging ahead blindly.
9836         * lib/regex_internal.c (register_state): Likewise.
9837         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
9838         for freeing internal storage.
9839         (group_nodes_into_DFA_states): Use unsigned int, not int, for
9840         bitset pieces used as boolean, to avoid undefined behavior
9841         on hosts that do int overflow checking.
9842
9843 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9844
9845         * config/srclist.txt: Add glibc bugs 1285-1287.
9846
9847 2005-09-01  Jim Meyering  <jim@meyering.net>
9848
9849         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
9850         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
9851         Require gl_STAT_MACROS, too.
9852
9853 2005-09-01  Bruno Haible  <bruno@clisp.org>
9854
9855         * gnulib-tool (import): In the first-use case, provide defaults.
9856
9857 2005-09-01  Bruno Haible  <bruno@clisp.org>
9858
9859         * gnulib-tool (func_import): Remove the .tmp files.
9860
9861 2005-09-01  Bruno Haible  <bruno@clisp.org>
9862
9863         * gnulib-tool (func_import): Fix handling of symbolic links.
9864
9865 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9866
9867         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
9868         old glibc regex code mishandles strings longer than 2**31 bytes.
9869         This patch fixes this when the regex code is used in gnulib
9870         (i.e., outside glibc).
9871
9872         This patch should not affect the use of the regex code inside
9873         glibc.  No doubt this problem also needs to be handled for glibc
9874         as well, but the result will be an incompatible change to the
9875         glibc ABI, and the old ABI will have to be supported too.  That
9876         can be the the subject for another patch.
9877
9878         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
9879         governing whether the rest of this patch is active.  By default,
9880         the macro is disabled and the patch has no effect.
9881         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
9882         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
9883         (struct re_pattern_buffer, re_search, re_search_2, re_match):
9884         (re_match_2, re_set_registers): Use the new types.
9885         * lib/regex_internal.h (Idx, re_hashval_t): New types.
9886         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
9887         New macros.
9888         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
9889         (re_string_context_at, bin_tree_t, re_dfastate_t):
9890         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
9891         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
9892         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
9893         (re_string_char_size_at, re_string_wchar_at):
9894         (re_string_elem_size_at):
9895         Use the new types and macros to port to 64-bit hosts.
9896         Use unsigned types for internal values, so that the code
9897         mostly works even for arrays larger than SSIZE_MAX.
9898         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
9899         (search_duplicated_node, calc_eclosure_iter, fetch_number):
9900         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
9901         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
9902         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
9903         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
9904         (calc_inveclosure, parse_dup_op, build_range_exp):
9905         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
9906         (fetch_number, create_token_tree, mark_opt_subexp):
9907         Likewise.
9908         * lib/regex_internal.c (re_string_construct_common,
9909         create_ci_newstate):
9910         (create_cd_newstate, re_string_allocate, re_string_construct):
9911         (re_string_realloc_buffers, build_wcs_upper_buffer):
9912         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
9913         (re_string_reconstruct, re_string_peek_byte_case):
9914         (re_string_fetch_byte_case, re_string_context_at):
9915         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
9916         (re_node_set_init_copy, re_node_set_add_intersect):
9917         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
9918         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
9919         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
9920         (re_acquire_state, re_acquire_state_context, register_state):
9921         Likewise.
9922         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
9923         search_cur_bkref_entry):
9924         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
9925         (re_search_internal, re_search_2_stub, re_search_stub)
9926         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
9927         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
9928         (update_cur_sifted_state, check_dst_limits):
9929         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
9930         (check_subexp_limits, sift_states_bkref, merge_state_array):
9931         (check_subexp_matching_top, get_subexp, get_subexp_sub):
9932         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
9933         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
9934         (expand_bkref_cache, check_node_accept_bytes):
9935         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
9936         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
9937         (acquire_init_state_context, check_halt_node_context):
9938         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
9939         (sift_states_backward, clean_state_log_if_needed):
9940         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
9941         (find_recover_state, transit_state_sb, transit_state_mb):
9942         (transit_state_bkref, build_trtable, match_ctx_clean):
9943         Likewise.
9944         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
9945         to work around an assumption that REG_MISSING is negative.
9946
9947         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
9948         (seek_collating_symbol_entry) [defined _LIBC]:
9949         (lookup_collation_sequence_value) [defined _LIBC]:
9950         (build_range_exp, build_collating_symbol) [defined _LIBC]:
9951         Use prototypes rather than old-style function definitions.
9952         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
9953         (transit_state_sb) [0]:
9954         (find_collation_sequence_value) [defined _LIBC]: Likewise.
9955
9956         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
9957         rm_eo.
9958
9959         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
9960         (optimize_subexps, lower_subexp):
9961         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
9962         since the signed shift might overflow.  Use 1u<<31 instead.
9963         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
9964         Likewise.
9965         * lib/regexec.c (check_dst_limits_calc_pos_1,
9966         check_subexp_matching_top): Likewise.
9967
9968         * lib/regcomp.c (optimize_subexps, lower_subexp):
9969         Use CHAR_BIT rather than 8, for clarity.
9970         * lib/regexec.c (check_dst_limits_calc_pos_1):
9971         (check_subexp_matching_top): Likewise.
9972         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
9973         have to worry about portability issues when shifting it left.
9974         Remove no-longer-needed test for table_size > 0.
9975         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
9976         in a word, as the resulting behavior is undefined.
9977         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
9978         in one case, a <= should have been an <, and in another case the
9979         whole test was missing.
9980         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
9981         the standard name CHAR_BIT.
9982         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
9983         this is not true on one's complement and signed-magnitude hosts.
9984
9985         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
9986         next_last_offset.
9987         (struct re_dfa_t): Remove unused member states_alloc.
9988         * lib/regcomp.c (init_dfa): Don't initialize unused members.
9989
9990 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9991
9992         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
9993         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
9994         and large-file glibc and in 32-bit large-file Solaris.
9995
9996 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9997
9998         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
9999         lengths fit in regoff_t; this isn't true if regoff_t is the same
10000         width as size_t.
10001         * lib/regex.c (re_search_internal): 5th arg is LAST_START
10002         (= START + RANGE) instead of RANGE.  This avoids overflow
10003         problems when regoff_t is the same width as size_t.
10004         All callers changed.
10005         (re_search_2_stub): Check for overflow when adding the
10006         sizes of the two strings.
10007         (re_search_stub): Check for overflow when adding START
10008         to RANGE; if it occurs, substitute the extreme value.
10009
10010 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10011
10012         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
10013
10014 2005-08-31  Jim Meyering  <jim@meyering.net>
10015
10016         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
10017         a pointer-to-const.
10018         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
10019         (register_state): Likewise.
10020         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
10021         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10022         (group_nodes_into_DFAstates): Likewise.
10023
10024 2005-08-31  Jim Meyering  <jim@meyering.net>
10025
10026         * check-module: Add a FIXME comment.
10027
10028 2005-08-31  Eric Blake  <ebb9@byu.net>
10029
10030         * modules/unistd-safer (Files): Add unistd--.h.
10031         * modules/stdio-safer (Files): Add stdio--.h.
10032
10033 2005-08-31  Derek Price  <derek@ximbiot.com>
10034
10035         * lib/getdelim.c (getdelim): Return EOF on EOF.
10036         Reported by Larry Jones <lawrence.jones@ugs.com>.
10037
10038 2005-08-31  Bruno Haible  <bruno@clisp.org>
10039
10040         Avoid unnecessary diffs in the generated lib/Makefile.am.
10041         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
10042         the generated files.
10043         (func_import): Don't set cmd.
10044
10045 2005-08-31  Bruno Haible  <bruno@clisp.org>
10046
10047         * lib/strstr.c: Include <stddef.h>, for NULL.
10048         * lib/strcasestr.c: Likewise.
10049         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10050
10051 2005-08-31  Bruno Haible  <bruno@clisp.org>
10052
10053         * gnulib-tool: New option --macro-prefix.
10054         (func_import): Use macro_prefix.
10055         (import): Handle option --macro-prefix.
10056
10057 2005-08-31  Bruno Haible  <bruno@clisp.org>
10058
10059         * gnulib-tool (import): Rename most ac_* variables to cached_*.
10060         Also use new variables cached_lgpl, cached_libtool.
10061
10062 2005-08-31  Bruno Haible  <bruno@clisp.org>
10063
10064         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
10065         always instantiating them.
10066
10067 2005-08-31  Bruno Haible  <bruno@clisp.org>
10068
10069         * gnulib-tool (func_import): Read the previous cached settings
10070         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
10071         earlier added by gnulib but are now dropped. Warn when a gnulib file
10072         overwrites a non-gnulib file.
10073
10074 2005-08-31  Bruno Haible  <bruno@clisp.org>
10075
10076         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
10077         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
10078         projects that don't keep autogenerated files in CVS. Put into
10079         actioncmd only the specified modules, not the transitive closure.
10080
10081 2005-08-31  Bruno Haible  <bruno@clisp.org>
10082
10083         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
10084         Create directories that shall be filled.
10085         (import): Don't look for gl_* macros in configure.ac. Recurse across
10086         all directories containing a gnulib-cache.m4 files, if meaningful.
10087
10088 2005-08-31  Bruno Haible  <bruno@clisp.org>
10089
10090         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
10091         (import): Set seen_libtool when we see gl_LIBTOOL.
10092
10093 2005-08-31  Bruno Haible  <bruno@clisp.org>
10094
10095         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
10096         declaration macro definitions from generated gnulib.m4.
10097
10098 2005-08-30  "Oskar Liljeblad"  <oskar@osk.mine.nu>
10099
10100         * lib/iconvme.h: Add prototype for iconv_alloc.
10101
10102 2005-08-29  Simon Josefsson  <jas@extundo.com>
10103
10104         * lib/iconvme.c: Fix errno.
10105
10106 2005-08-29  Bruno Haible  <bruno@clisp.org>
10107
10108         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
10109         that it works when the directory contains spaces.
10110
10111 2005-08-29  Bruno Haible  <bruno@clisp.org>
10112
10113         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
10114
10115 2005-08-29  Bruno Haible  <bruno@clisp.org>
10116
10117         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
10118         Emit more advice.
10119
10120 2005-08-29  Bruno Haible  <bruno@clisp.org>
10121         and Stepan Kasal  <kasal@ucw.cz>
10122
10123         * check-module: If more parameters are given, check each of them
10124         separately; add more exceptions, as noted by Jim Meyering.
10125         (check_module): New procedure.
10126         (%exempt_header): Now contains all exceptions.
10127
10128 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
10129
10130         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
10131
10132 2005-08-29  "Oskar Liljeblad"  <oskar@osk.mine.nu>
10133
10134         * lib/iconvme.c: Split iconv_string into iconv_alloc.
10135
10136 2005-08-28  Bruno Haible  <bruno@clisp.org>
10137
10138         * m4/gnulib-tool.m4: New file.
10139
10140 2005-08-27  Jim Meyering  <jim@meyering.net>
10141
10142         * modules/unistd-safer (Files): Add pipe-safer.c.
10143         * modules/fcntl-safer (Files): Add creat-safer.c.
10144
10145 2005-08-27  Jim Meyering  <jim@meyering.net>
10146
10147         * m4/stdlib-safer.m4: New file.  From coreutils.
10148         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
10149         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
10150         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
10151         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
10152         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
10153
10154 2005-08-27  Jim Meyering  <jim@meyering.net>
10155
10156         * lib/fopen-safer.c: Merge minor changes from coreutils.
10157         * lib/dup-safer.c: Likewise.
10158         * lib/fd-safer.c: Likewise.
10159
10160         Merge from coreutils.
10161         * lib/stdio--.h: New file.
10162         * lib/stdlib--.h: New file.
10163         * lib/mkstemp-safer.c: New file.
10164
10165         GNU tar needs these.
10166         * lib/pipe-safer.c: New file.
10167         * lib/creat-safer.c: New file.
10168         * lib/fcntl--.h (creat): Define to creat_safer.
10169         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
10170         * lib/unistd--.h (pipe): Define to pipe_safer.
10171         * lib/unistd-safer.h: Declare pipe_safer.
10172
10173 2005-08-26  Simon Josefsson  <jas@extundo.com>
10174
10175         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
10176         Haible <bruno@clisp.org>.
10177
10178 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
10179
10180         * lib/regex_internal.h: Remove all references to
10181         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
10182         or better.
10183         (bitset_not, bitset_merge, bitset_not_merge):
10184         (bitset_mask, re_string_allocate, re_string_construct):
10185         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
10186         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
10187         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
10188         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
10189         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10190         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10191         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
10192         (re_acquire_state_context):
10193         Remove unnecessary forward decls.
10194         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
10195         Put __attribute at function definition,
10196         now that the function decl has been removed.
10197         * lib/regex_internal.c (re_string_peek_byte_case):
10198         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
10199         Likewise.
10200
10201 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
10202
10203         * m4/regex.m4: Add AC_PREREQ(2.50).
10204         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
10205
10206 2005-08-25  Simon Josefsson  <jas@extundo.com>
10207
10208         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
10209         __fsetlocking.
10210
10211 2005-08-25  Simon Josefsson  <jas@extundo.com>
10212
10213         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
10214         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
10215         GLIBC specific code.
10216
10217 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10218
10219         Make regex safe for g++.  This fixes one real bug (an "err"
10220         that should have been "*err").  g++ problem reported by
10221         Sam Steingold.
10222         * lib/regex_internal.h (re_calloc): New macro, consistent with
10223         re_malloc etc.  All callers of calloc changed to use re_calloc.
10224         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
10225         not int.  All callers changed.
10226         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
10227         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
10228         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
10229         (find_recover_state): Change "err" to "*err"; this fixes what
10230         appears to be a real bug.
10231         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
10232         versus int.
10233
10234 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10235
10236         * modules/regex (Depends-on): Add malloc, since the code
10237         assumes that !malloc(0) means failure.
10238
10239 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10240
10241         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
10242
10243         alloca modernization/simplification for regex.
10244         * lib/regex.c: Remove portability cruft for alloca.  This no longer
10245         needs to be at the start of the file, and can be moved into
10246         regex_internal.h and simplified.
10247         * lib/regex_internal.h: Include <alloca.h>.
10248         (__libc_use_alloca) [!defined _LIBC]: New macro.
10249         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
10250         now works outside glibc.
10251
10252 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10253
10254         * config/srclist.txt: Add glibc bugs 1241, 1245.
10255
10256 2005-08-25  Jim Meyering  <jim@meyering.net>
10257
10258         * lib/open-safer.c: Include <config.h>.
10259         Otherwise, we'd lose LARGEFILE support in any file using
10260         e.g. "fcntl--.h"
10261
10262 2005-08-25  Bruno Haible  <bruno@clisp.org>
10263
10264         * m4/minmax.m4: Require autoconf 2.52.
10265         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
10266         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
10267         alternatives of translit over the alphabet.
10268         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
10269
10270 2005-08-24  Simon Josefsson  <jas@extundo.com>
10271
10272         * tests/test-getpass.c: New file.
10273
10274 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10275
10276         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
10277         for GNU regex features.
10278
10279 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10280
10281         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
10282         * lib/regex.h (regerror): Likewise.
10283
10284         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
10285         requires this.  (The code never needed it.)
10286
10287         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
10288         All uses of recently-renamed identifiers changed to use the new,
10289         POSIX-compliant names.  The code will build and run just fine
10290         without these changes, but it's better to eat our own dog food
10291         and use the standard-conforming names.
10292
10293         * lib/regex.h: Fix a multitude of POSIX name space violations.
10294         These changes have an effect only for programs that define
10295         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
10296         do not change anything for programs compiled in the normal way.
10297         Also, there is no effect on the ABI.
10298
10299         (_REGEX_SOURCE): New macro.
10300         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
10301         defined and _GNU_SOURCE is not; this fixes a name space violation.
10302
10303         Rename the following macros to obey POSIX requirements.
10304         The old names are still visible as macros if _REGEX_SOURCE is defined.
10305         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
10306         RE_BACKSLASH_ESCAPE_IN_LISTS.
10307         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
10308         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
10309         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
10310         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
10311         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
10312         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
10313         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
10314         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
10315         (REG_INTERVALS): renamed from RE_INTERVALS.
10316         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
10317         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
10318         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
10319         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
10320         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
10321         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
10322         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
10323         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
10324         RE_UNMATCHED_RIGHT_PAREN_ORD.
10325         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
10326         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
10327         (REG_DEBUG): renamed from RE_DEBUG.
10328         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
10329         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
10330         unusual, since we can't clash with the POSIX REG_ICASE.
10331         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
10332         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
10333         (REG_NO_SUB): renamed from RE_NO_SUB.
10334         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
10335         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
10336         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
10337         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
10338         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
10339         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
10340         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
10341         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
10342         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
10343         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
10344         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
10345         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
10346         RE_SYNTAX_POSIX_MINIMAL_BASIC.
10347         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
10348         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
10349         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
10350         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
10351         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
10352         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
10353         (REG_FIXED): Renamed from REGS_FIXED.
10354         (REG_NREGS): Renamed from RE_NREGS.
10355
10356         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
10357         of other REG_* macros, since POSIX says the user is allowed to
10358         #undef these macros selectively.
10359
10360         (reg_errcode_t): Update comment stating what other tables need
10361         to be consistent.
10362
10363         Rename the following enum values to obey POSIX requirements.
10364         The old names are still visible as macros.
10365         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
10366         is not defined, since GNU is supposed to be a superset of POSIX as
10367         much as possible, and since we want reg_errcode_t to be a signed
10368         type for implementation consistency.
10369         (_REG_NOERROR): Renamed from REG_NOERROR.
10370         (_REG_NOMATCH): Renamed from REG_NOMATCH.
10371         (_REG_BADPAT): Renamed from REG_BADPAT.
10372         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
10373         (_REG_ECTYPE): Renamed from REG_ECTYPE.
10374         (_REG_EESCAPE): Renamed from REG_EESCAPE.
10375         (_REG_ESUBREG): Renamed from REG_ESUBREG.
10376         (_REG_EBRACK): Renamed from REG_EBRACK.
10377         (_REG_EPAREN): Renamed from REG_EPAREN.
10378         (_REG_EBRACE): Renamed from REG_EBRACE.
10379         (_REG_BADBR): Renamed from REG_BADBR.
10380         (_REG_ERANGE): Renamed from REG_ERANGE.
10381         (_REG_ESPACE): Renamed from REG_ESPACE.
10382         (_REG_BADRPT): Renamed from REG_BADRPT.
10383         (_REG_EEND): Renamed from REG_EEND.
10384         (_REG_ESIZE): Renamed from REG_ESIZE.
10385         (_REG_ERPAREN): Renamed from REG_ERPAREN.
10386         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
10387         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
10388         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
10389         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
10390
10391         (_REG_RE_NAME, _REG_RM_NAME): New macros.
10392         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
10393         changed.  But support the old name if the new one is not defined
10394         and if _REGEX_SOURCE.
10395
10396         Change the following member names in struct re_pattern_buffer.
10397         The old names are still supported if !_REGEX_SOURCE.
10398         The new names are always supported, regardless of _REGEX_SOURCE.
10399         (re_buffer): Renamed from buffer.
10400         (re_allocated): Renamed from allocated.
10401         (re_used): Renamed from used.
10402         (re_syntax): Renamed from syntax.
10403         (re_fastmap): Renamed from fastmap.
10404         (re_translate): Renamed from translate.
10405         (re_can_be_null): Renamed from can_be_null.
10406         (re_regs_allocated): Renamed from regs_allocated.
10407         (re_fastmap_accurate): Renamed from fastmap_accurate.
10408         (re_no_sub): Renamed from no_sub.
10409         (re_not_bol): Renamed from not_bol.
10410         (re_not_eol): Renamed from not_eol.
10411         (re_newline_anchor): Renamed from newline_anchor.
10412
10413         Change the following member names in struct re_registers.
10414         The old names are still supported if !_REGEX_SOURCE.
10415         The new names are always supported, regardless of _REGEX_SOURCE.
10416         (rm_num_regs): Renamed from num_regs.
10417         (rm_start): Renamed from start.
10418         (rm_end): Renamed from end.
10419
10420         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
10421         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
10422         Prepend __ to parameter names.
10423
10424         Undo yesterday's changes.
10425
10426 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10427
10428         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
10429         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
10430         lib/regex.c.
10431
10432 2005-08-24  Jim Meyering  <jim@meyering.net>
10433
10434         Sync from coreutils.
10435         * m4/fcntl-safer.m4: New file.
10436
10437         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
10438         and object files for this module.
10439
10440 2005-08-24  Jim Meyering  <jim@meyering.net>
10441
10442         Sync from coreutils.
10443         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
10444
10445 2005-08-24  Jim Meyering  <jim@meyering.net>
10446
10447         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
10448         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
10449
10450 2005-08-24  Jim Meyering  <jim@meyering.net>
10451
10452         * modules/fcntl-safer: New module.
10453         * modules/fts (Depends-on): Add fcntl-safer.
10454         * MODULES.html.sh (File descriptor based Input/Output):
10455         Add fcntl-safer.
10456
10457 2005-08-24  Bruno Haible  <bruno@clisp.org>
10458
10459         Support for unit test modules.
10460         * modules/README: Mention tests modules.
10461         * modules/TEMPLATE-TESTS: New file.
10462         * gnulib-tool: New options --extract-tests-module, --with-tests and
10463         --tests-base (unused for the moment).
10464         (testsbase, inctests): New variables.
10465         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
10466         (func_verify_module): Exclude TEMPLATE-TESTS.
10467         (func_verify_nontests_module, func_verify_tests_module): New functions.
10468         (func_get_dependencies): Add implicit dependency for tests modules.
10469         (func_get_tests_module): New function.
10470         (func_modules_transitive_closure): When --with-tests was specified,
10471         include the unit tests as well, unless explicitly avoided.
10472         (func_emit_lib_Makefile_am): Ignore the tests modules here.
10473         (func_emit_tests_Makefile_am): New function.
10474         (func_create_testdir): When --with-tests was specified, emit a
10475         tests/ directory.
10476         * MODULES.html.sh (Future developments): Update.
10477
10478 2005-08-24  Bruno Haible  <bruno@clisp.org>
10479
10480         * modules/tls-tests: New file.
10481         * tests/test-tls.c: New file, from GNU gettext.
10482
10483 2005-08-24  Bruno Haible  <bruno@clisp.org>
10484
10485         * modules/lock-tests: New file.
10486         * tests/test-lock.c: New file, from GNU gettext.
10487
10488 2005-08-24  Bruno Haible  <bruno@clisp.org>
10489
10490         * lib/lock.h: Add multiple inclusion guard.
10491         * lib/tls.h: Add multiple inclusion guard.
10492
10493 2005-08-24  Bruno Haible  <bruno@clisp.org>
10494
10495         * gnulib-tool: Add support for the --aux-dir option to
10496         --create-testdir, --create-megatestdir, --test, --megatest.
10497         (func_create_testdir, func_create_megatestdir): Optionally emit a
10498         AC_CONFIG_AUX_DIR directive.
10499         (create-testdir, create-megatestdir, test, megatest): Provide a
10500         default value for $auxdir.
10501
10502 2005-08-24  Bruno Haible  <bruno@clisp.org>
10503
10504         * gnulib-tool (import): Use compound statement instead of subshell
10505         where possible.
10506
10507 2005-08-24  Bruno Haible  <bruno@clisp.org>
10508
10509         * gnulib-tool (import): Change --aux-dir default to "build-aux".
10510
10511 2005-08-24  Bruno Haible  <bruno@clisp.org>
10512
10513         * gnulib-tool (func_version): Update.
10514
10515 2005-08-24  Bruno Haible  <bruno@clisp.org>
10516
10517         * gnulib-tool (func_import, func_create_testdir,
10518         func_create_megatestdir): Quote all autoconf macro arguments.
10519
10520 2005-08-24  Bruno Haible  <bruno@clisp.org>
10521
10522         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
10523         option --force, because --force causes the aclocal.m4 of each
10524         subdirectory to be newer than the corresponding config.h.in.
10525
10526 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10527
10528         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
10529         All contents moved to gl_REGEX.
10530         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
10531         assume that it does.
10532
10533 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10534
10535         * lib/regex.h (REG_NOSYS)
10536         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
10537         Define, since POSIX requires it as of 2001.
10538         (_REG_ENOSYS)
10539         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
10540         New private symbol, used to keep the enum signed in all cases.
10541         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
10542         Youngman in
10543         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
10544
10545         * lib/regex_internal.c (re_string_skip_chars, register_state):
10546         (calc_state_hash):
10547         Remove forward decls; no longer needed now that we use prototypes.
10548         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
10549         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
10550         (clean_state_log_if_needed): Likewise.
10551
10552 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10553
10554         * config/srclist.txt: Add glibc bugs 1231-1233.
10555
10556 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10557
10558         Fix problems reported by Sam Steingold in
10559         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
10560         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
10561         assumed that reg_errcode_t is a signed type, which is not
10562         necessarily true if _XOPEN_SOURCE is not defined.
10563         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
10564         since some compilers warn about it otherwise.
10565
10566 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10567
10568         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
10569         (init_word_char, create_initial_state, duplicate_node_closure):
10570         (fetch_token, peek_token_bracket, build_range_exp):
10571         (build_collating_symbol): Remove forward decls; no longer needed
10572         now that we use prototypes.
10573
10574         * lib/regcomp.c:
10575         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
10576         (re_compile_fastmap_iter, regcomp, regerror, regfree):
10577         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
10578         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
10579         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
10580         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
10581         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
10582         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
10583         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
10584         (build_range_exp, build_collating_symbol, parse_bracket_exp):
10585         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
10586         (build_charclass, build_charclass_op, fetch_number, create_tree):
10587         (create_token_tree, mark_opt_subexp, duplicate_tree):
10588         Use prototypes rather than old-style definitions.
10589
10590         * lib/regex_internal.c:
10591         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
10592         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
10593         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10594         (re_string_reconstruct, re_string_peek_byte_case):
10595         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
10596         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10597         (re_node_set_init_copy, re_node_set_add_intersect):
10598         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10599         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10600         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10601         (re_acquire_state, re_acquire_state_context, register_state):
10602         (create_ci_newstate, create_cd_newstate, free_state):
10603         Likewise.
10604         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
10605         re_search_2):
10606         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
10607         (re_search_internal, prune_impossible_nodes):
10608         (acquire_init_state_context, check_matching, static):
10609         (check_halt_node_context, check_halt_state_context, proceed_next_node):
10610         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
10611         (update_regs, sift_states_backward, build_sifted_states):
10612         (clean_state_log_if_needed, merge_state_array):
10613         (update_cur_sifted_state, add_epsilon_src_nodes):
10614         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
10615         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
10616         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
10617         (find_recover_state, check_subexp_matching_top, transit_state_mb):
10618         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
10619         (check_arrival, check_arrival_add_next_nodes):
10620         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10621         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
10622         (check_node_accept_bytes, check_node_accept, extend_buffers):
10623         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
10624         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
10625         (sift_ctx_init):
10626         Likewise.
10627
10628         * lib/regex_internal.h:
10629         (re_string_allocate, re_string_construct, re_string_reconstruct):
10630         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
10631         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
10632         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
10633         (re_string_context_at, re_string_peek_byte_case):
10634         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
10635         is defined, since we now use prototypes always.
10636
10637         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
10638         C89 or better.  All uses removed.
10639
10640 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         * config/srclist.txt: Add glibc bugs 1220-1227.
10643
10644 2005-08-20  Jim Meyering  <jim@meyering.net>
10645
10646         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
10647         of unused local, dfa.
10648
10649 2005-08-20  Bruno Haible  <bruno@clisp.org>
10650
10651         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
10652
10653 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10654
10655         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
10656         (re_node_set_insert_last, re_dfa_add_node):
10657         Rename local variables to avoid GCC shadowing warnings.
10658
10659 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
10662         [defined lint]: Suppress bogus uninitialized-variable warnings.
10663
10664         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
10665         and let the caller return REG_ESPACE if out of space.  This
10666         removes an uninitialied-variable warning with GCC 4.0.1, and also
10667         avoids taking the address of a local variable.  All callers
10668         changed.
10669
10670 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10671
10672         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
10673         $LIBCSRC/posix/regexec.c.
10674         Add glibc bug 1217 for regcomp.c.
10675
10676 2005-08-19  Jim Meyering  <jim@meyering.net>
10677
10678         * lib/regexec.c (proceed_next_node): Redo local variables to
10679         avoid GCC shadowing warnings.
10680
10681 2005-08-18  Bruno Haible  <bruno@clisp.org>
10682
10683         * lib/strstr.c (strstr): Fix return value in multibyte case.
10684         * lib/strcasestr.c (strcasestr): Likewise.
10685
10686 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10687
10688         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
10689
10690 2005-08-17  Jim Meyering  <jim@meyering.net>
10691
10692         Make the %s format (seconds since the epoch) work for a negative
10693         number and when used with a zero-padded field width, e.g. %015s.
10694
10695         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
10696         label so that it precedes the code to set `digits'.  Otherwise,
10697         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
10698         print `00-22'.  Now, it prints `-0022', as it should.
10699
10700 2005-08-17  Bruno Haible  <bruno@clisp.org>
10701
10702         * modules/strstr (Files): Add m4/mbrtowc.m4.
10703         (Depends-on): Add mbuiter.
10704
10705 2005-08-17  Bruno Haible  <bruno@clisp.org>
10706
10707         * modules/strcasestr: New file.
10708         * MODULES.html.sh (String handling, based on ANSI C 89): Add
10709         strcasestr.
10710
10711 2005-08-17  Bruno Haible  <bruno@clisp.org>
10712
10713         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
10714
10715 2005-08-17  Bruno Haible  <bruno@clisp.org>
10716
10717         * modules/mbuiter: New file.
10718         * MODULES.html.sh (Extended multibyte and wide character utilities):
10719         Add mbuiter.
10720
10721 2005-08-17  Bruno Haible  <bruno@clisp.org>
10722
10723         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
10724         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
10725
10726 2005-08-17  Bruno Haible  <bruno@clisp.org>
10727
10728         * m4/strcasestr.m4: New file.
10729
10730 2005-08-17  Bruno Haible  <bruno@clisp.org>
10731
10732         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
10733         * lib/strstr.c: Completely rewritten, with multibyte locale support.
10734
10735 2005-08-17  Bruno Haible  <bruno@clisp.org>
10736
10737         * lib/strcasestr.h: New file.
10738         * lib/strcasestr.c: New file.
10739
10740 2005-08-17  Bruno Haible  <bruno@clisp.org>
10741
10742         * lib/strcasecmp.c: Use mbuiter.h.
10743
10744 2005-08-17  Bruno Haible  <bruno@clisp.org>
10745
10746         * lib/mbuiter.h: New file.
10747
10748 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10749
10750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
10751         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
10752         and gl_GETOPT are both invoked via different paths (as happens
10753         with GNU tar CVS because it uses both argp and getopt), the former
10754         wins.
10755
10756 2005-08-16  Bruno Haible  <bruno@clisp.org>
10757
10758         * modules/tls: New file.
10759         * MODULES.html.sh (Multithreading): Add tls.
10760
10761 2005-08-16  Bruno Haible  <bruno@clisp.org>
10762
10763         * modules/strnlen1: New file.
10764         * MODULES.html.sh (String handling): Add strnlen1.
10765
10766 2005-08-16  Bruno Haible  <bruno@clisp.org>
10767
10768         * modules/strcase (Files): Add m4/mbrtowc.m4.
10769         (Depends-on): Add strnlen1, mbchar.
10770
10771 2005-08-16  Bruno Haible  <bruno@clisp.org>
10772
10773         * modules/mbiter: New file.
10774         * MODULES.html.sh (Extended multibyte and wide character utilities):
10775         Add mbiter.
10776
10777 2005-08-16  Bruno Haible  <bruno@clisp.org>
10778
10779         * modules/mbfile: New file.
10780         * MODULES.html.sh (Extended multibyte and wide character utilities):
10781         Add mbfile.
10782
10783 2005-08-16  Bruno Haible  <bruno@clisp.org>
10784
10785         * modules/mbchar: New file.
10786         * MODULES.html.sh (Extended multibyte and wide character utilities):
10787         New section.
10788
10789 2005-08-16  Bruno Haible  <bruno@clisp.org>
10790
10791         * m4/tls.m4: New file, from GNU gettext.
10792
10793 2005-08-16  Bruno Haible  <bruno@clisp.org>
10794
10795         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
10796         always.
10797         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
10798
10799 2005-08-16  Bruno Haible  <bruno@clisp.org>
10800
10801         * m4/mbiter.m4: New file.
10802
10803 2005-08-16  Bruno Haible  <bruno@clisp.org>
10804
10805         * m4/mbfile.m4: New file.
10806
10807 2005-08-16  Bruno Haible  <bruno@clisp.org>
10808
10809         * m4/mbchar.m4: New file.
10810
10811 2005-08-16  Bruno Haible  <bruno@clisp.org>
10812
10813         * lib/tls.h: New file, from GNU gettext.
10814         * lib/tls.c: New file, from GNU gettext.
10815
10816 2005-08-16  Bruno Haible  <bruno@clisp.org>
10817
10818         * lib/strnlen1.h: New file.
10819         * lib/strnlen1.c: New file.
10820
10821 2005-08-16  Bruno Haible  <bruno@clisp.org>
10822
10823         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
10824         (mbi_init): Update.
10825         (mbi_avail, mbi_advance): Let the iteration end before the terminating
10826         NUL byte, not after it.
10827
10828 2005-08-16  Bruno Haible  <bruno@clisp.org>
10829
10830         * lib/strcase.h (strcasecmp): Add note in comments.
10831         * lib/strncasecmp.c: Use code from strcasecmp.c.
10832         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
10833         (strcasecmp): Work correctly in multibyte locales.
10834
10835 2005-08-16  Bruno Haible  <bruno@clisp.org>
10836
10837         * lib/mbiter.h: New file.
10838
10839 2005-08-16  Bruno Haible  <bruno@clisp.org>
10840
10841         * lib/mbfile.h: New file.
10842
10843 2005-08-16  Bruno Haible  <bruno@clisp.org>
10844
10845         * lib/mbchar.h: New file.
10846         * lib/mbchar.c: New file.
10847
10848 2005-08-16  Bruno Haible  <bruno@clisp.org>
10849
10850         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
10851         the valid ones. Makes the comparison operations transitive:
10852         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
10853         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
10854
10855 2005-08-15  Simon Josefsson  <jas@extundo.com>
10856
10857         * modules/ssize_t (License): Change to 'unlimited'.
10858
10859         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
10860
10861 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10862
10863         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
10864         Add comments for each pending glibc patch.
10865
10866 2005-08-15  Bruno Haible  <bruno@clisp.org>
10867
10868         * lib/regex.h (__restrict_arr): Don't define to __restrict if
10869         __cplusplus is defined.
10870
10871 2005-08-14  Jim Meyering  <jim@meyering.net>
10872
10873         Sync from coreutils.
10874
10875         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
10876         Use the hash-table-based cycle-detection code not just when
10877         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
10878         Reported by James Youngman in
10879         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
10880         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
10881         FTS_TIGHT_CYCLE_CHECK.
10882         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
10883         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
10884         once again.
10885         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
10886         * lib/fts.c (fd_safer): Remove decl.
10887         Include fcntl--.h rather than unistd-safer.h
10888         (fts_safe_changedir): Don't call fd_safer; no longer needed
10889         now that we include fcntl--.h.
10890
10891 2005-08-12  Simon Josefsson  <jas@extundo.com>
10892
10893         * modules/getndelim2: Use ssize_t module.
10894         * modules/getnline: Likewise.
10895         * modules/safe-read: Likewise.
10896         * modules/xreadlink: Likewise.
10897
10898         * modules/ssize_t: New file.
10899
10900 2005-08-12  Simon Josefsson  <jas@extundo.com>
10901
10902         * m4/readline.m4: Look for termcap, curses or ncurses if required.
10903
10904 2005-08-12  Simon Josefsson  <jas@extundo.com>
10905
10906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10907         ssize_t.
10908
10909 2005-08-12  Simon Josefsson  <jas@extundo.com>
10910
10911         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
10912         readline, getdelim and check_version.
10913         (Support for systems lacking ISO C 99: Sizes of integer types):
10914         Add size_max.
10915
10916 2005-08-12  Bruno Haible  <bruno@clisp.org>
10917
10918         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
10919
10920 2005-08-11  Simon Josefsson  <jas@extundo.com>
10921
10922         * modules/readline: New file.
10923
10924         * modules/strnlen (Files): Add strnlen.h.
10925
10926 2005-08-11  Simon Josefsson  <jas@extundo.com>
10927
10928         * m4/readline.m4: New file.
10929
10930 2005-08-11  Simon Josefsson  <jas@extundo.com>
10931
10932         * lib/readline.h, readline.c: New file.
10933
10934 2005-08-11  Simon Josefsson  <jas@extundo.com>
10935
10936         * doc/gnulib.texi (Initial import, Finishing touches): Mention
10937         gl_AVOID.
10938
10939 2005-08-11  Bruno Haible  <bruno@clisp.org>
10940
10941         * lib/strnlen.h (strnlen): Change parameter name to match comment.
10942
10943 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
10944
10945         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
10946
10947 2005-08-10  Simon Josefsson  <jas@extundo.com>
10948
10949         * tests/test-iconvme.c: New file.
10950
10951 2005-08-10  Simon Josefsson  <jas@extundo.com>
10952
10953         * m4/strnlen.m4: New file.
10954
10955         * m4/strndup.m4: Don't check for strnlen declaration, done in
10956         strnlen.m4.
10957
10958 2005-08-10  Simon Josefsson  <jas@extundo.com>
10959
10960         * lib/strndup.c: Use strnlen.h.
10961
10962         * lib/strnlen.h: New file.
10963
10964 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10965
10966         * README: Typos.
10967
10968 2005-08-02  Simon Josefsson  <jas@extundo.com>
10969
10970         * modules/readline: New file.
10971
10972 2005-08-02  Simon Josefsson  <jas@extundo.com>
10973
10974         * modules/getdelim: New file.
10975
10976         * modules/getline: Rewrite, don't use getndelim2.
10977
10978 2005-08-02  Simon Josefsson  <jas@extundo.com>
10979
10980         * m4/getline.m4: Separate out getdelim stuff into separate module.
10981
10982         * m4/getdelim.m4: New file.
10983
10984 2005-08-02  Simon Josefsson  <jas@extundo.com>
10985
10986         * lib/getline.h, getline.c: Rewrite.
10987
10988         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
10989
10990 2005-07-31  Bruno Haible  <bruno@clisp.org>
10991
10992         * lib/lock.h (gl_lock_initializer): New macro.
10993         (gl_lock_define_initialized): Use it.
10994         (gl_rwlock_initializer): New macro.
10995         (gl_rwlock_define_initialized): Use it.
10996         (gl_recursive_lock_initializer): New macro.
10997         (gl_recursive_lock_define_initialized): Use it.
10998
10999 2005-07-30  Karl Berry  <karl@gnu.org>
11000
11001         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
11002         Report from Ben Pfaff, regarding getopt.
11003
11004 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11005
11006         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
11007         normal way.
11008         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
11009         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
11010         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
11011         (gl_GETOPT): Use the new macros.  Most of the implementation
11012         is moved to the new macros.  This is for programs like Emacs
11013         that don't want all the functionality of gl_GETOPT.
11014
11015 2005-07-26  Bruno Haible  <bruno@clisp.org>
11016
11017         * m4/lock.m4: Update from GNU gettext.
11018
11019 2005-07-26  Bruno Haible  <bruno@clisp.org>
11020
11021         * lib/lock.h: Update from GNU gettext.
11022         * lib/lock.c: Update from GNU gettext.
11023
11024 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11025
11026         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
11027         obsolescent AC_TRY_RUN.  Include the default includes files, for
11028         'exit'.
11029
11030 2005-07-24  Bruno Haible  <bruno@clisp.org>
11031
11032         * modules/visibility: New file.
11033         * MODULES.html.sh (Misc): Add visibility.
11034
11035 2005-07-24  Bruno Haible  <bruno@clisp.org>
11036
11037         * m4/visibility.m4: New file.
11038
11039 2005-07-24  Bruno Haible  <bruno@clisp.org>
11040
11041         * doc/visibility.texi: New file.
11042
11043 2005-07-22  Bruno Haible  <bruno@clisp.org>
11044
11045         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
11046         $(ALLOCA_H), redundant through BUILT_SOURCES.
11047         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
11048         redundant through BUILT_SOURCES.
11049         * modules/byteswap (Makefile.am): Remove explicit dependency on
11050         $(BYTESWAP_H), redundant through BUILT_SOURCES.
11051         * modules/fnmatch (Makefile.am): Remove explicit dependency on
11052         $(FNMATCH_H), redundant through BUILT_SOURCES.
11053         * modules/getopt (Makefile.am): Remove explicit dependency on
11054         $(GETOPT_H), redundant through BUILT_SOURCES.
11055         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
11056         redundant through BUILT_SOURCES.
11057         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
11058         redundant through BUILT_SOURCES.
11059         * modules/stdbool (Makefile.am): Remove explicit dependency on
11060         $(STDBOOL_H), redundant through BUILT_SOURCES.
11061         * modules/stdint (Makefile.am): Remove explicit dependency on
11062         $(STDINT_H), redundant through BUILT_SOURCES.
11063         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
11064         Remove explicit dependency on $(SYSEXITS_H).
11065         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
11066
11067 2005-07-18  Simon Josefsson  <jas@extundo.com>
11068
11069         * lib/check-version.c (check_version): Accept identical versions too.
11070
11071 2005-07-18  Bruno Haible  <bruno@clisp.org>
11072
11073         * modules/lock: New file.
11074         * MODULES.html.sh (Multithreading): New section.
11075
11076 2005-07-18  Bruno Haible  <bruno@clisp.org>
11077
11078         * m4/lock.m4: New file, from GNU gettext.
11079
11080 2005-07-18  Bruno Haible  <bruno@clisp.org>
11081
11082         * lib/lock.h: New file, from GNU gettext.
11083         * lib/lock.c: New file, from GNU gettext.
11084
11085 2005-07-18  Bruno Haible  <bruno@clisp.org>
11086
11087         * lib/lock.h (gl_once_t): New type.
11088         (gl_once_define, gl_once): New macros.
11089         * lib/lock.c (fresh_once): New variable.
11090         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
11091         functions.
11092
11093 2005-07-16  Simon Josefsson  <jas@extundo.com>
11094
11095         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
11096         workaround, suggested by Bruno.
11097
11098 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11099
11100         * modules/xalloc (Depends-on): Add xalloc-die.
11101         * modules/xvasprintf (Depends-on): Add xalloc-die.
11102
11103 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11104
11105         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
11106         with a minor change.
11107
11108 2005-07-15  Bruno Haible  <bruno@clisp.org>
11109
11110         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
11111         When using lib/poll.c, define poll as rpl_poll.
11112
11113 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
11114
11115         * modules/argp (Depends-on): Remove unlocked-io.
11116
11117 2005-07-14  Derek Price  <derek@ximbiot.com>
11118
11119         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
11120         for glob symlink bug.
11121
11122 2005-07-14  Bruno Haible  <bruno@clisp.org>
11123
11124         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
11125         Instead, test for *_unlocked function declarations directly.
11126
11127 2005-07-11  Simon Josefsson  <jas@extundo.com>
11128
11129         * modules/size_max: New file.
11130
11131         * modules/xsize: Depend on size_max module for size_max.m4.
11132
11133 2005-07-11  Simon Josefsson  <jas@extundo.com>
11134
11135         * lib/size_max.h: New file.
11136
11137 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
11138
11139         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
11140         copyright symbol and the year.
11141         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
11142         (version_etc_va): Use parameterized copyright notice.
11143         Reword to conform to the current GNU coding standards.
11144
11145 2005-07-11  Karl Berry  <karl@gnu.org>
11146
11147         * doc/gnulib.texi (Quoting): new node.
11148         (Initial import): more info, from Patrice.
11149
11150 2005-07-11  Bruno Haible  <bruno@clisp.org>
11151
11152         * gnulib-tool (func_usage): Document option --avoid.
11153         (Command line options): Handle --avoid.
11154         (func_acceptable): New function.
11155         (func_modules_transitive_closure): Use it.
11156
11157 2005-07-11  Bruno Haible  <bruno@clisp.org>
11158
11159         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
11160         Reported by Jim Meyering.
11161
11162 2005-07-10  Bruno Haible  <bruno@clisp.org>
11163
11164         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
11165         Needed when size_t is smaller than 'unsigned int'.
11166         Reported by Paul Eggert.
11167
11168 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11169
11170         * modules/argp (Depends-on): Add unlocked-io
11171
11172 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11173
11174         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
11175         block of defines.
11176
11177 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         * config/srclist.txt: Comment out regcomp.c, since we have a porting
11180         fix now.
11181
11182 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
11183         and Paul Eggert  <eggert@cs.ucla.edu>
11184
11185         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
11186         in wint_t, not wchar_t.  Remove now-unnecessary cast.
11187
11188 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11189
11190         * modules/regex (Files): Add lib/regex_internal.c,
11191         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
11192         (Depends-on): Add extensions.
11193         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
11194
11195 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11196
11197         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
11198         pathconf.
11199         * m4/same.m4 (gl_SAME): Likewise.
11200         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
11201
11202         * m4/regex.m4: Adjust to new libc regex implementation.
11203         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
11204         all the .c and .h parts of (the new) regex.
11205         Quote the m4 stuff better.
11206         Check for RE_ICASE bug of old gnulib.
11207         Check for REG_STARTEND of recent libc.
11208         Rename local variables from jm_* to gl_*.
11209         Quote operand of "test -f".
11210         Say "recent enough" version of libc, not "version 2".
11211         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
11212         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
11213         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
11214         Remove check for btowc, isascii.
11215         Require AM_LANGINFO_CODESET.
11216
11217 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11218
11219         * lib/regex.c, regex.h: Sync from libc.
11220         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
11221         * lib/regexec.c:
11222         New files, synced from libc, except that regex_internal.h
11223         currently has a small porting fix.
11224
11225 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11226
11227         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
11228         regex_internal.c, regexec.c.
11229         Add regex_internal.h too, but as a comment, since the libc version
11230         is currently broken in gnulib mode.
11231
11232 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11233
11234         Support programs like Emacs that use gnulib but not gettext.
11235         * MODULES.html.sh (Internationalization functions): Add gettext-h.
11236         * modules/gettext-h: New file.
11237         * modules/gettext (Files): Remove lib/gettext.h.
11238         (Depends-on): Add gettext-h.
11239         (Makefile.am): Remove lib_SOURCES.
11240         * modules/argmatch, modules/c-stack, modules/closeout:
11241         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
11242         * modules/execute, modules/file-type, modules/getaddrinfo:
11243         * modules/getopt, modules/human, modules/javacomp:
11244         * modules/javaexec, modules/mkdir-p, modules/obstack:
11245         * modules/openat, modules/pagealign_alloc, modules/pipe:
11246         * modules/quotearg, modules/regex, modules/rpmatch:
11247         * modules/unicodeio, modules/userspec, modules/version-etc:
11248         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
11249         * modules/xsetenv:
11250         Depend on gettext-h, not gettext.
11251
11252 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         * gnulib-tool (func_import): Add support for 'public domain' license.
11255         * modules/alloca, modules/atexit, modules/memmove:
11256         Now public domain, not GPL.
11257         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
11258         * modules/realloc, modules/strerror, modules/strtod:
11259         Now LGPL, not GPL.
11260
11261 2005-07-05  Bruno Haible  <bruno@clisp.org>
11262
11263         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
11264         autoconf CVS. Needed for mingw.
11265
11266 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11267
11268         Remove the dependency of the strftime module on the tzset module.
11269         * modules/strftime (Depends-on): Remove dependency on tzset.
11270
11271 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11272
11273         Remove the dependency of the strftime module on the tzset module.
11274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
11275         gl_FUNC_TZSET_CLOBBER.
11276
11277 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11278
11279         Remove the dependency of the strftime module on the tzset module.
11280         * lib/strftime.c (my_strftime)
11281         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
11282         Copy the input structure, to work around some of the bug with
11283         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
11284         Solaris releases, you should also use the tzset module, but we won't
11285         require it as a dependency any more since we don't want LGPLed code
11286         to depend on GPLed code.
11287
11288 2005-07-02  Jim Meyering  <jim@meyering.net>
11289
11290         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
11291         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
11292         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
11293         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
11294
11295 2005-07-02  Jim Meyering  <jim@meyering.net>
11296
11297         * lib/backupfile.c (backup_args): Change a `0' to NULL.
11298
11299 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11300
11301         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
11302         declares only 'struct timespec;' (!).
11303
11304 2005-07-01  Jim Meyering  <jim@meyering.net>
11305
11306         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
11307         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
11308         * lib/save-cwd.c, tempname.c:
11309         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11310         and don't include <sys/file.h>).
11311
11312 2005-06-29  Jim Meyering  <jim@meyering.net>
11313
11314         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
11315         type name.  Use the variable name instead.
11316         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11317         Likewise.
11318
11319 2005-06-28  Simon Josefsson  <jas@extundo.com>
11320
11321         * modules/check-version (Files): Add check-version.m4.
11322
11323 2005-06-28  Simon Josefsson  <jas@extundo.com>
11324
11325         * m4/check-version.m4: New file, suggested by Jim Meyering
11326         <jim@meyering.net>.
11327
11328 2005-06-28  Simon Josefsson  <jas@extundo.com>
11329
11330         * lib/check-version.h, lib/check-version.c: New files.
11331
11332 2005-06-28  Simon Josefsson  <jas@extundo.com>
11333
11334         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
11335         collision with global variable.  Better indentation.  Don't
11336         increment buffer pointer beyond buffer end.  Based on comments
11337         from Paul Eggert <eggert@cs.ucla.edu>.
11338
11339         * lib/base64.h: Indent.
11340
11341 2005-06-28  Simon Josefsson  <jas@extundo.com>
11342
11343         * doc/gnulib.texi (Library version handling): New section.
11344
11345 2005-06-28  Jim Meyering  <jim@meyering.net>
11346
11347         * check-module (find_included_lib_files): Hard-code another
11348         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
11349         but modules/fts-lgpl (correctly) does not list those files.
11350
11351         * modules/canonicalize (Files): Add lib/pathmax.h.
11352
11353 2005-06-25  Simon Josefsson  <jas@extundo.com>
11354
11355         * modules/check-version: New file.
11356
11357 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11358
11359         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
11360         initializer of struct addrinfo, as an indication that we don't
11361         care how many members the structure has.
11362
11363 2005-06-24  Derek Price  <derek@ximbiot.com>
11364         and Bruno Haible  <bruno@clisp.org>
11365
11366         Remove stat module & update lstat.
11367         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
11368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11369         * m4/stat.m4: Remove this file.
11370
11371 2005-06-24  Derek Price  <derek@ximbiot.com>
11372         and Bruno Haible  <bruno@clisp.org>
11373
11374         Remove stat module & update lstat.
11375         * lib/stat.c: Remove this file...
11376         (slash_aware_lstat): ...moving this content and its support...
11377         * lib/lstat.c (rpl_lstat): ...into here.
11378         * lib/lstat.h: New file.
11379
11380 2005-06-24  Derek Price  <derek@ximbiot.com>
11381         and Bruno Haible  <bruno@clisp.org>
11382
11383         Remove stat module & update lstat.
11384         * config/srclist.txt (libc sources): Remove stat.
11385
11386 2005-06-24  Derek Price  <derek@ximbiot.com>
11387         and Bruno Haible  <bruno@clisp.org>
11388
11389         Remove stat module & update lstat.
11390         * MODULES.html.sh (stat): Remove.
11391         * MODULES.html: Regenerated.
11392         * modules/lstat (Description): Correct function name.
11393         (Files): Add "lstat.h".
11394         (Depends-on): Remove stat, add xalloc, stat-macros.
11395         * modules/stat: Remove this file.
11396         (Include): Add "lstat.h", remove <sys/stat.h>.
11397
11398 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11399
11400         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
11401         (ranged_convert): Don't save conversion in a temporary struct.
11402         This causes a warning with GCC 4.0.0, and anyway in the typical
11403         case it's not worth the extra 100 bytes or so of code.
11404         (ranged_convert, __mktime_internal): When calling a function via a
11405         pointer P, use P () rather than (*P) (), as we now assume C89 or
11406         better.
11407
11408 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
11409
11410         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
11411         "who -r" failed to give output.  Problem reported by Tim Waugh.
11412
11413         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
11414         (xcalloc): Use it to avoid needless tests.
11415         Problem reported by Jim Meyering.
11416
11417 2005-06-20  Derek Price  <derek@ximbiot.com>
11418
11419         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
11420         unnecessary for Autoconfs > 2.59c.
11421
11422 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11423
11424         * lib/argp.h (__option_is_short): Check upper limit of
11425         __key. Isprint() requires its argument to have the value
11426         of an unsigned char or EOF.
11427
11428 2005-06-16  Jim Meyering  <jim@meyering.net>
11429
11430         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
11431         when either N or S is zero.
11432
11433 2005-06-16  Derek Price  <derek@ximbiot.com>
11434
11435         * m4/bison.m4: Declare YACC & YFLAGS precious.
11436
11437 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
11438
11439         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
11440         multibyte string or pattern, fall back on unibyte matching.
11441         Problem reported by James Youngman.
11442
11443 2005-06-08  Bruno Haible  <bruno@clisp.org>
11444
11445         * modules/csharpcomp: New file.
11446         * MODULES.html.sh (C#): Add csharpcomp.
11447
11448 2005-06-08  Bruno Haible  <bruno@clisp.org>
11449
11450         * m4/csharpcomp.m4: New file, from GNU gettext.
11451
11452 2005-06-08  Bruno Haible  <bruno@clisp.org>
11453
11454         * lib/csharpcomp.h: New file, from GNU gettext.
11455         * lib/csharpcomp.c: New file, from GNU gettext.
11456         * lib/csharpcomp.sh.in: New file, from GNU gettext.
11457
11458 2005-06-08  Bruno Haible  <bruno@clisp.org>
11459
11460         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
11461         warning on mingw.
11462
11463 2005-06-07  Derek Price  <derek@ximbiot.com>
11464
11465         Sync from CVS.
11466         * lib/glob_.h: Indent nested #ifdef.
11467
11468 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11469
11470         Sync from coreutils.
11471         Use "file name" when talking about file names, instead of "filename"
11472         or "path", as per the GNU coding standards.
11473         * lib/mkdir-p.c: Renamed from makepath.c.
11474         (make_dir_parents): Renamed from make_path.  All callers changed.
11475         * lib/mkdir-p.h: Likewise.  All includers changed.
11476         * lib/filenamecat.c: Renamed from path-concat.c.
11477         (file_name_concat): Renamed from path_concat.  All callers changed.
11478         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
11479         * lib/filenamecat.h: Likewise.  All includers changed.
11480         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
11481         in comments or local variable names.
11482         * lib/basename.c: Likewise.
11483         * lib/canonicalize.c, canonicalize.h: Likewise.
11484         * lib/dirname.c, dirname.h: Likewise.
11485         * lib/euidaccess.c: Likewise.
11486         * lib/exclude.c: Likewise
11487         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
11488         * lib/fsusage.c, fsuage.h: Likewise.
11489         * lib/fts.c, fts_.h: Likewise.
11490         * lib/getcwd.c: Likewise.
11491         * lib/getloadavg.c: Likewise.
11492         * lib/mkstemp.c: Likewise.
11493         * lib/mountlist.c, mountlist.h: Likewise.
11494         * lib/openat.c, openat.h: Likewise.
11495         * lib/readlink-stub.c: Likewise.
11496         * lib/readutmp.c, readutmp.h: Likewise.
11497         * lib/rename.c: Likewise.
11498         * lib/rmdir.c: Likewise.
11499         * lib/same.c: Likewise.
11500         * lib/savedir.c: Likewise.
11501         * lib/stripslash.c: Likewise.
11502         * lib/tempname.c: Likewise.
11503         * lib/xreadlink.c: Likewise.
11504         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
11505         All uses changed.
11506         * lib/exclude.h: Likewise.
11507
11508         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
11509         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11510         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
11511         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11512         * lib/pathmax.h: Include <limits.h> unconditionally, since other
11513         files have been getting away with it for years (MORE/BSD 4.3
11514         is extinct now).
11515         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
11516         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11517
11518         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
11519         Define to 256, not 255, as per modern POSIX.
11520
11521 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11522
11523         Sync from coreutils.
11524         Use "file name" when talking about file names, instead of "filename"
11525         or "path", as per the GNU coding standards.
11526         * MODULES.html.sh: mkdir-p renamed from makepath.
11527         filenamecat renamed from path-concat.
11528         * modules/filenamecat: Renamed from modules/path-concat.
11529         (Files): filenamecat.h and filenamecat.c renamed from
11530         path-concat.h and path-concat.c.
11531         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
11532         (Include): filenamecat.h, not path-concat.h.
11533         * modules/mkdir-p: Renamed from modules/makepath.
11534         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
11535         makepath.c.
11536         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
11537         (Include): mkdir-p.h, not makepath.h.
11538
11539 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11540
11541         Sync from coreutils.
11542         * m4/mkdir-p.m4: Renamed from makepath.m4.
11543         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
11544         Rename files from makepath.c to mkdir-p.c, and from
11545         makepath.h to mkdir-p.h.
11546         * m4/filenamecat.m4: Renamed from path-concat.m4.
11547         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
11548         Rename files from path-concat.c to filenamecat.c,
11549         and from path-concat.h to filenamecat.h.
11550         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
11551         "file name" in local variables or comments.
11552         * m4/rename.m4: Likewise.
11553
11554 2005-06-01  Bruno Haible  <bruno@clisp.org>
11555
11556         * modules/csharpexec: New file.
11557         * MODULES.html.sh (C#): New section.
11558
11559 2005-06-01  Bruno Haible  <bruno@clisp.org>
11560
11561         * m4/csharp.m4: New file, from GNU gettext.
11562         * m4/csharpexec.m4: New file, from GNU gettext.
11563
11564 2005-06-01  Bruno Haible  <bruno@clisp.org>
11565
11566         * lib/csharpexec.h: New file, from GNU gettext.
11567         * lib/csharpexec.c: New file, from GNU gettext.
11568         * lib/csharpexec.sh.in: New file, from GNU gettext.
11569
11570 2005-05-31  Derek Price  <derek@ximbiot.com>
11571             Paul Eggert  <eggert@cs.ucla.edu>
11572
11573         Sync from cvs.
11574         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
11575
11576 2005-05-31  Derek Price  <derek@ximbiot.com>
11577             Paul Eggert  <eggert@cs.ucla.edu>
11578
11579         Sync from cvs.
11580         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
11581
11582 2005-05-29  Derek Price  <derek@ximbiot.com>
11583
11584         * config/srclist.txt (glob_.h, glob.c): Add these files.
11585
11586 2005-05-29  Derek Price  <derek@ximbiot.com>
11587
11588         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
11589         * modules/glob: New file.
11590         * modules/getlogin_r: Add link to POSIX spec in description.
11591
11592 2005-05-29  Derek Price  <derek@ximbiot.com>
11593             Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         * m4/glob.m4: New file.
11596
11597 2005-05-29  Derek Price  <derek@ximbiot.com>
11598             Paul Eggert  <eggert@cs.ucla.edu>
11599
11600         * lib/glob_.h, lib/glob.c: New files.
11601
11602 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11603
11604         * modules/fts (Files): Remove m4/inttypes-pri.m4.
11605         * modules/fts-lgpl (Depends-on): Remove gettext.
11606
11607 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11608
11609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
11610         and don't require gt_INTTYPES_PRI.
11611
11612 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11613
11614         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
11615
11616         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
11617         the configuration hassle isn't worth it.
11618         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
11619         (LONGEST_MODIFIER, PRIuMAX): Remove.
11620
11621 2005-05-27  Bruno Haible  <bruno@clisp.org>
11622
11623         * lib/getlogin_r.h: Remove second include of <stddef.h>.
11624
11625 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
11626
11627         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
11628         _POSIX_PTHREAD_SEMANTICS for Solaris.
11629
11630 2005-05-25  Derek Price  <derek@ximbiot.com>
11631
11632         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
11633
11634 2005-05-25  Derek Price  <derek@ximbiot.com>
11635             Paul Eggert  <eggert@cs.ucla.edu>
11636
11637         * modules/getlogin_r, m4/getlogin_r.m4: New files.
11638         * lib/getlogin_r.c, getlogin_r.h: New files.
11639
11640 2005-05-25  Bruno Haible  <bruno@clisp.org>
11641             Derek Price  <derek@ximbiot.com>
11642
11643         * lib/getlogin_r.h: Simplify API documentation.
11644
11645 2005-05-23  Derek Price  <derek@ximbiot.com>
11646
11647         * modules/minmax (Files): Add m4/minmax.m4.
11648         (configure.ac): Add gl_MINMAX.
11649
11650 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11651
11652         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
11653         so that unistd-safer.h (GPL'ed code) need not be included.
11654
11655 2005-05-22  Bruno Haible  <bruno@clisp.org>
11656
11657         * m4/minmax.m4: New file.
11658         Based on a patch by Derek Price <derek@ximbiot.com>.
11659
11660 2005-05-22  Bruno Haible  <bruno@clisp.org>
11661
11662         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
11663         (INT64_MIN): Fix definition.
11664         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11665
11666         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
11667         NEED_SIGNED_INT_TYPES.
11668
11669         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
11670         HAVE_SYSTEM_INTTYPES.
11671
11672 2005-05-22  Bruno Haible  <bruno@clisp.org>
11673
11674         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
11675         Also include <sys/param.h> if it defines MIN, MAX.
11676         Based on a patch by Derek Price <derek@ximbiot.com>.
11677
11678 2005-05-21  Jim Meyering  <jim@meyering.net>
11679
11680         * modules/fts (Files): Add m4/inttypes-pri.m4.
11681         (Depends-on): Add lstat and remove gettext.  Alphabetize.
11682
11683 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11684
11685         New fts module.
11686         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
11687         (setup_dir, free_dir): New functions.
11688         (enter_dir, leave_dir): Define trivial
11689         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
11690         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
11691         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
11692         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
11693         Move to fts-cycle.c.
11694         (fts_open): Use setup_dir.
11695         (fts_close): Use free_dir.
11696         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
11697         This adds a label and some gotos, but the alternatives were messier.
11698         Check for memory allocation failure when entering a dir.
11699         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
11700         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
11701         (FTS): New member fts_cycle, that is a union that contains the
11702         old active_dir_ht and cycle_state.  All uses changed to mention
11703         fts_cycle.ht and fts_cycle.state.
11704         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
11705         fts.c, with the following changes:
11706         (setup_dir, free_dir): New functions.
11707         (enter_dir): Now returns bool.  Return true if successful, false
11708         if memory exhausted.  All callers changed.
11709         Do not bother partly cleaning up on
11710         memory allocation failure; that is free_dir's job.
11711         However, free ad if hash_insert fails, to avoid memory leak.
11712         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
11713         fts->fts_options to see which union member to use.
11714
11715 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11716
11717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
11718         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
11719
11720 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11721
11722         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
11723
11724 2005-05-20  Jim Meyering  <jim@meyering.net>
11725
11726         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
11727         Now a macro, to pacify GCC.
11728
11729 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
11730
11731         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
11732         of -1.
11733
11734 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
11735
11736         * lib/chown.c (rpl_chown): Return -1 on failure.
11737
11738 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11739
11740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
11741         Don't check for stddef.h.
11742         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
11743         don't use its results.
11744         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
11745         since we include them unconditionally.  Don't require
11746         AM_STDBOOL_H, since stdbool is a prerequisite.
11747         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
11748         since we assume C89 or better.
11749         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
11750         as we don't use their results.
11751         Don't check for fchdir, memmove, memset, strrchr, as we use
11752         them unconditionally.
11753         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
11754         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
11755
11756 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11757
11758         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
11759         Include <stddef.h> unconditionally, since we assume C89 now.
11760         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
11761         * lib/fts.c: Include fts_.h first, to check interface.
11762         Do not include intprops.h; no longer needed.
11763         Include cycle-check.h and hash.h, since fts_.h no longer does.
11764         Remove unnecessary casts of closedir to void.
11765         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
11766         decide whether to decrement nlinks.
11767         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
11768         (FTS): Use struct hash_table * instead of Hash_table, so that
11769         we no longer need to include hash.h here.
11770
11771 2005-05-18  Jim Meyering  <jim@meyering.net>
11772
11773         * modules/dirfd (License): Change to LGPL.  Most of the code
11774         is already in the public domain.
11775
11776 2005-05-18  Jim Meyering  <jim@meyering.net>
11777
11778         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
11779         Reported by Yoann Vandoorselaere.
11780
11781 2005-05-17  Jim Meyering  <jim@meyering.net>
11782
11783         * m4/fts.m4: New file, from coreutils.
11784
11785 2005-05-17  Jim Meyering  <jim@meyering.net>
11786
11787         * lib/fts.c, lib/fts_.h: New files, from coreutils.
11788
11789 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         Sync from coreutils.
11792         * m4/unlinkdir.m4: New file.
11793
11794 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11795
11796         Sync from coreutils.
11797         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
11798         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
11799         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
11800         White space changes only.
11801         * lib/makepath.c (make_path): Port to hosts where leading "//" is
11802         special.
11803         * lib/yesno.c: Include getline.h, not ctype.h.
11804         (yesno): Don't remove leading white space; POSIX doesn't allow it.
11805         Use getline to remove arbitrary restriction on response length.
11806
11807 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         * config/srclist-update: Spell out "Street" in FSF postal
11810         mail address; this is the style the FSF seems to prefer.
11811
11812         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
11813         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
11814         this updates FSF postal mail address.
11815
11816         Sync from coreutils.
11817         * modules/unlinkdir: New file.
11818         * modules/yesno (Depends-on): Add getline.
11819         * MODULES.html.sh (File system functions): Add unlinkdir.
11820
11821 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
11824         lib/strsep.h:
11825         Change the initial comment to refer to GPL, not LGPL.
11826         gnulib-tool will change it to LGPL as needed.
11827
11828         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
11829         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
11830         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
11831         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
11832         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
11833         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
11834         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
11835         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
11836         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
11837         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
11838         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
11839         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
11840         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
11841         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
11842         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
11843         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
11844         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
11845         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
11846         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
11847         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
11848         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
11849         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
11850         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
11851         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
11852         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
11853         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
11854         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
11855         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
11856         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
11857         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
11858         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
11859         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
11860         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
11861         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
11862         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
11863         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
11864         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
11865         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
11866         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
11867         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
11868         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
11869         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
11870         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
11871         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
11872         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
11873         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
11874         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
11875         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
11876         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
11877         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
11878         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
11879         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
11880         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
11881         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
11882         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
11883         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
11884         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
11885         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
11886         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
11887         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
11888         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
11889         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
11890         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
11891         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
11892         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
11893         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
11894         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
11895         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
11896         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
11897         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
11898         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
11899         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
11900         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
11901         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
11902         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
11903         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
11904         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
11905         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
11906         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
11907         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
11908         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
11909         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
11910         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
11911         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
11912         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
11913         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
11914         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
11915         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
11916         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
11917         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
11918         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
11919         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
11920         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
11921         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
11922         lib/yesno.c, lib/yesno.h:
11923         Update FSF postal mail address.
11924
11925 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11926
11927         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
11928         tests/test-memmem.c, tests/test-stpncpy.c:
11929         Update FSF postal mail address.
11930
11931 2005-05-13  Bruno Haible  <bruno@clisp.org>
11932
11933         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
11934         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
11935         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
11936         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
11937         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
11938         Add support for 64-bit integers in the MSVC compiler.
11939
11940 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11941
11942         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
11943
11944 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
11945
11946         * gnulib-tool (func_import): Sort and uniquify recommended includes.
11947
11948 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11949
11950         * doc/getdate.texi (General date syntax): Don't say that date
11951         date --iso-8601=ns generates acceptable dates; it doesn't yet.
11952         Problem reported by Nic Ferrier.
11953
11954 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11955
11956         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
11957         specified in ai_socktype. Fix invalid ai_protocol
11958         check. ai_protocol is usually set to 0 or depending on
11959         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
11960         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
11961         ai_socktype / ai_protocol in the returned addrinfo structure.
11962
11963 2005-05-10  Simon Josefsson  <jas@extundo.com>
11964
11965         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
11966         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11967
11968 2005-05-10  Karl Berry  <karl@gnu.org>
11969
11970         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
11971         (from http://www.gnu.org/licenses).
11972         * doc/COPYING.LIB: also rename to COPYING.LESSER.
11973         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
11974         fdl.texi suffices.
11975
11976 2005-05-10  Karl Berry  <karl@gnu.org>
11977
11978         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
11979         (COPYING.DOC): remove.
11980
11981         * config/srclist-update: new FSF address.
11982
11983 2005-05-10  Derek Price  <derek@ximbiot.com>
11984
11985         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
11986         possible.
11987
11988 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11989             Bruno Haible  <bruno@clisp.org>
11990
11991         * modules/inet_ntop: New file.
11992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11993         inet_ntop.
11994
11995 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11996             Bruno Haible  <bruno@clisp.org>
11997
11998         * m4/inet_ntop.m4: New file.
11999
12000 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12001             Bruno Haible  <bruno@clisp.org>
12002
12003         * lib/inet_ntop.h: New file.
12004         * lib/inet_ntop.c: New file, from glibc with modifications.
12005
12006 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         * modules/time_r (License): Change to LGPL.
12009         * modules/extensions (License): Change to LGPL.  Actually,
12010         the license is more permissive than that, but currently gnulib-tool
12011         doesn't know how to handle more-permissive licenses.
12012
12013         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
12014         Problem reported by Dave Love.
12015
12016 2005-05-08  Jim Meyering  <jim@meyering.net>
12017
12018         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
12019         blank.
12020
12021 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
12022
12023         * modules/argmatch (Depends-on): Add stdbool.
12024         * modules/backupfile (Depends-on): Likewise.
12025         * modules/chdir-long (Depends-on): Likewise.
12026         * modules/closeout (Depends-on): Likewise.
12027         * modules/cycle-check (Depends-on): Likewise.
12028         * modules/dirname (Depends-on): Likewise.
12029         * modules/fnmatch (Depends-on): Likewise.
12030         * modules/fsusage (Depends-on): Likewise.
12031         * modules/fwriteerror (Depends-on): Likewise.
12032         * modules/getcwd (Depends-on): Likewise.
12033         * modules/getloadavg (Depends-on): Likewise.
12034         * modules/hard-locale (Depends-on): Likewise.
12035         * modules/makepath (Depends-on): Likewise.
12036         * modules/mountlist (Depends-on): Likewise.
12037         * modules/nanosleep (Depends-on): Likewise.
12038         * modules/posixtm (Depends-on): Likewise.
12039         * modules/quotearg (Depends-on): Likewise.
12040         * modules/readtokens (Depends-on): Likewise.
12041         * modules/readtokens0 (Depends-on): Likewise.
12042         * modules/readutmp (Depends-on): Likewise.
12043         * modules/save-cwd (Depends-on): Likewise.
12044         * modules/strftime (Depends-on): Likewise.
12045         * modules/userspec (Depends-on): Likewise.
12046         * modules/utimecmp (Depends-on): Likewise.
12047         * modules/xgetcwd (Depends-on): Likewise.
12048         * modules/xnanosleep (Depends-on): Likewise.
12049         * modules/xstrtod (Depends-on): Likewise.
12050         * modules/yesno (Depends-on): Likewise.
12051
12052 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12053
12054         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
12055         needless checks.
12056
12057 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         Merge from coreutils.  Among other things,
12060         add bulletproofing for cases where stdin, stdout, or stderr are closed.
12061         * lib/fd-safer.c: New file.
12062         * lib/fcntl-safer.h, open-safer.c: Remove.
12063         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
12064         * lib/dup-safer.c: Include unistd-safer.h first.
12065         Don't include errno.h.
12066         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
12067         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
12068         * lib/file-type.c: Rely on file-type.h change.
12069         * lib/getloadavg.c: Include unistd-safer.h.
12070         (getloadavg): Use safer open.
12071         * lib/getusershell.c: Include "stdio-safer.h".
12072         (getusershell): Use safer fopen.
12073         * lib/long-options.c (long_options): Use NULL rather than 0.
12074         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
12075         'free'.
12076         * lib/modechange.c: Likewise.
12077         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
12078         (MODE_DONE): New constant.
12079         (struct mode_change): Remove 'next' member.
12080         (make_node_op_equals): New function; like the old one of the
12081         same name, except it allocates an array.
12082         (mode_compile, mode_create_from_ref): Use it.
12083         (mode_compile): Allocate result as an array, not a linked list.
12084         Parse octal string ourself, so that we catch mistakes like "+0".
12085         (mode_adjust): Arg is an array, not a linked list.
12086         * lib/modechange.c: Include stat-macros.h, xalloc.h.
12087         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
12088         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
12089         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
12090         Remove.  This is now stat-macros.h's job.
12091         (talloc): Remove.  All callers replaced by xalloc, so that
12092         our invokers don't have to worry about reporting memory failures.
12093         (make_node_op_equals): Remove.
12094         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12095         New constants.
12096         (struct mode_change): Moved here from modechange.h.
12097         (mode_append_entry): Remove.
12098         (mode_compile): Remove MASKED_OPS arg, since it encouraged
12099         apps to have incorrect behavior.  Use simpler algorithm for head
12100         and tail.  Don't futz with umask; that's now the job of mode_adjust.
12101         Detect more invalid usages rather than having somewhat-random behavior.
12102         Don't insert an "a=" action, as that leads to incorrect behavior.
12103         (mode_compile, mode_create_from_ref): Return NULL on error instead
12104         of an enum, since now there's only one way to have an error.  All
12105         callers changed.
12106         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
12107         at the correct time.  Simplify calculation of "+u" and its ilk.
12108         Don't mishandle "+X".
12109         (mode_free): Remove "register" and localize decls.
12110         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12111         (struct mode_change): Move to modechange.c; callers don't
12112         need to see this stuff.
12113         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
12114         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
12115         (mode_change, mode_adjust): Reflect the new signatures noted above.
12116         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
12117         that might redefine system include files.
12118         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
12119         (my_usleep): Use NULL rather than (void *) 0.
12120         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
12121         Use siginterrupt to specify that system calls should be interrupted.
12122         (rpl_nanosleep): Move initialization of suspended closer to call of
12123         my_usleep.
12124         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
12125         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
12126         (desirable_utmp_entry): New function.
12127         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
12128         using x2nrealloc, to simplify logic.
12129         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
12130         size calculation.  Do not assume utmp file is a regular file.
12131         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
12132         (READ_UTMP_CHECK_PIDS): New constant.
12133         * lib/save-cwd.c: Include unistd-safer.h.
12134         (save_cwd): Use fd_safer.
12135         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
12136         [!_LIBC] Include "stat-macros.h" instead.
12137         * lib/unistd-safer.h (fd_safer): New decl.
12138
12139 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         * modules/getloadavg (Depends-on): Add unistd-safer.
12142         * modules/getusershell (Depends-on): Add stdio-safer.
12143         * modules/lstat (Depends-on): Remove xalloc.
12144         * modules/mkstemp (Depends-on): Add stat-macros.
12145         * modules/modechange (Depends-on): Remove xstrtol.
12146         Add stat-macros, xalloc.
12147         * modules/save-cwd (Depends-on): Add unistd-safer.
12148         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
12149         * modules/unistd-safer (Files): Add lib/fd-safer.c
12150         (Makefile.am): Remove lib_SOURCES.
12151
12152         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
12153         Remove fcntl-safer; unistd-safer supersedes it.
12154
12155 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12156
12157         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
12158         AC_HEADER_STAT.
12159         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
12160         (gl_PREREQ_CHOWN): Remove.
12161         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
12162         it.  Don't require AC_HEADER_STAT.
12163         (gl_PREREQ_LSTAT): Remove.
12164         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
12165         Don't require AC_HEADER_STAT.
12166         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
12167         (gl_PREREQ_RMDIR): Remove.
12168         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
12169         mention stat-macros.h or AC_HEADER_STAT, since we'll make
12170         the stat-macros module a prerequisite.
12171         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
12172         * m4/filemode.m4 (gl_FILEMODE): Likewise.
12173         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
12174         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
12175         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
12176         variable names.
12177         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
12178         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
12179         variable prefixes.
12180         * m4/fcntl-safer.m4: Remove.
12181         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
12182         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
12183         Invoke gl_PREREQ_FD_SAFER.
12184         (gl_PREREQ_FD_SAFER): New macro.
12185         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
12186         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
12187         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
12188         Remove duplicate call to AC_LIBOBJ(readutmp).
12189         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
12190
12191         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
12192         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
12193
12194 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12195
12196         * MODULES.html.sh (Misc): Add byteswap.
12197
12198 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12199
12200         * modules/getcwd (Depends-on): Add extensions.
12201         * modules/openat (Depends-on): Likewise.
12202
12203 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12204
12205         * modules/byteswap: New file.
12206
12207 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12208
12209         * m4/byteswap.m4: New file.
12210
12211 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12212
12213         * lib/byteswap_.h: New file.
12214
12215 2005-04-25  Karl Berry  <karl@gnu.org>
12216
12217         * m4/gettext.m4: Update from GNU gettext 0.14.4.
12218
12219 2005-04-25  Albert Chin  <china@thewrittenword.com>
12220
12221         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
12222         Toolkit C bug.
12223
12224 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
12225
12226         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
12227         (func_ln_if_changed) Remove forcibly for no error message
12228         in case file does not exist.
12229
12230 2005-04-19  Simon Josefsson  <jas@extundo.com>
12231
12232         * gnulib-tool (Options): Make --symlink mean --symbolic.
12233
12234 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
12235
12236         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
12237
12238 2005-04-16  Simon Josefsson  <jas@extundo.com>
12239
12240         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
12241
12242 2005-04-15  Simon Josefsson  <jas@extundo.com>
12243
12244         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
12245
12246 2005-04-15  Simon Josefsson  <jas@extundo.com>
12247
12248         * gnulib-tool: Rename --symlink to --symbolic.
12249
12250 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
12251
12252         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
12253         symbolic links to files instead of copying/moving.  Add --aux-dir,
12254         specifying directory relative --dir where auxiliary build tools
12255         are placed.
12256
12257 2005-04-14  Bruno Haible  <bruno@clisp.org>
12258
12259         * modules/allocsa (License): Change to LGPL.
12260         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12261
12262 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
12265         that "UTC +1 second" continues to work.  Problem reported
12266         by Dmitry V. Levin.
12267         (relunit_snumber): New rule.
12268         (relunit): Use it.
12269
12270 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
12271
12272         * lib/getdate.y (universal_time_zone_table): New constant.
12273         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
12274         universal_time_zone_table.
12275         (lookup_zone): Prefer universal_time_zone_table to
12276         local_time_zone_table, so that "GMT" time stamps are allowed in
12277         London during the summer.  Problem reported by Ian Abbott.
12278
12279 2005-04-12  Jim Meyering  <jim@meyering.net>
12280
12281         * lib/human.c (humblock): Set *options even when returning due to
12282         xstrtoumax conversion failure.  Thanks to a used-uninitialized
12283         warning from gcc-4.
12284
12285 2005-04-09  Jim Meyering  <jim@meyering.net>
12286
12287         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
12288         -Wuninitialized: initialize tm0.tm_year.
12289
12290 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
12291
12292         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
12293         count, since there's no maximum.  All uses changed.
12294         Add member dsts_seen.
12295         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
12296         not being INT_MAX.
12297         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
12298         Use pc_rels_seen to decide whther a date is absolute.
12299
12300         * lib/getdate.y (number): Don't overwrite year.
12301         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
12302         check.
12303
12304 2005-04-02  Simon Josefsson  <jas@extundo.com>
12305
12306         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
12307         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
12308
12309 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
12310
12311         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
12312         where no absolute path name can be longer than PATH_MAX.
12313
12314 2005-03-27  Jim Meyering  <jim@meyering.net>
12315
12316         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
12317
12318 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
12319
12320         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
12321         "one's complement" -> "ones' complement" in comment, as per Knuth.
12322         "value of type" -> "type or expression" in comment.
12323         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
12324
12325 2005-03-26  Jim Meyering  <jim@meyering.net>
12326
12327         Comment nits.
12328         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
12329         Correct typos: s/or/of/.
12330
12331 2005-03-26  Jim Meyering  <jim@meyering.net>
12332
12333         * modules/check-include-files: Move to ../ and rename to...
12334         * check-module: ...this.
12335
12336 2005-03-25  Jim Meyering  <jim@meyering.net>
12337
12338         * modules/xvasprintf (Files): Add xalloc.h.
12339
12340 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12341
12342         * modules/gettext (Files): config/config.rpath ->
12343         build-aux/config.rpath
12344         * modules/iconv (Files): Likewise.
12345         Problem reported by Oskar Liljeblad.
12346
12347 2005-03-23  Jim Meyering  <jim@meyering.net>
12348
12349         * modules/check-include-files: New script to check for
12350         missing dependencies, multiple includes, etc.
12351
12352         * modules/c-strtold (Depends-on): Add xalloc.
12353         * modules/c-strtod (Depends-on): Add xalloc.
12354         * modules/hash (Depends-on): Add xalloc.
12355         (Files): Remove lib/xalloc.h.
12356
12357         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
12358         * modules/userspec (Files): Add lib/inttostr.h.
12359
12360 2005-03-23  Jim Meyering  <jim@meyering.net>
12361
12362         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
12363
12364 2005-03-22  Jim Meyering  <jim@meyering.net>
12365
12366         * modules/stat-macros: New module.
12367         * modules/canonicalize, modules/euidaccess, modules/file-type,
12368         * modules/filemode, modules/lchown, modules/makepath,
12369         * modules/rmdir, modules/stat: Depend on new stat-macros module
12370         rather than listing lib/stat-macros.h manually.
12371         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
12372
12373 2005-03-22  Jim Meyering  <jim@meyering.net>
12374
12375         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
12376
12377 2005-03-22  Bruno Haible  <bruno@clisp.org>
12378
12379         * config/srclist.txt: Replace target directory 'config' with
12380         'build-aux'.
12381         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
12382         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
12383         ../build-aux/.
12384
12385 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12386
12387         * modules/chdir-long (Depends-on): Add mempcpy.
12388
12389         * modules/acl, modules/backupfile, modules/c-strtod,
12390         modules/c-strtold, modules/canon-host, modules/canonicalize,
12391         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
12392         modules/exclude, modules/exitfail, modules/file-type,
12393         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
12394         modules/getdate, modules/getline, modules/getpagesize,
12395         modules/getpass, modules/getugroups, modules/group-member,
12396         modules/hard-locale, modules/hash, modules/human, modules/idcache,
12397         modules/inttostr, modules/long-options, modules/makepath,
12398         modules/md5, modules/memcasecmp, modules/memcoll,
12399         modules/modechange, modules/mountlist, modules/path-concat,
12400         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
12401         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
12402         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
12403         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
12404         modules/strftime, modules/strndup, modules/strverscmp,
12405         modules/timespec, modules/unlocked-io, modules/userspec,
12406         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
12407         modules/yesno:
12408         Remove lib_SOURCES line from Makefile.am section, as this is now
12409         done automatically by the corresponding Autoconf macro.
12410
12411 2005-03-21  Jim Meyering  <jim@meyering.net>
12412
12413         Changes imported from coreutils.
12414
12415         * lib/cycle-check.c: Don't include xalloc.h.
12416
12417         * lib/path-concat.c: Don't include assert.h.
12418         (path_concat): Remove assertion that would have triggered
12419         for ABASE starting with more than one slash.
12420         Reported by Andreas Schwab.
12421
12422         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
12423         properly when ABASE is an absolute file name.
12424         Correct the description of this function.
12425         Include <assert.h>.
12426         Add an assertion and a test driver.
12427         This fixes a bug introduced on 2004-07-02.
12428         Andreas Schwab reported the resulting failure of cp --parents:
12429         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
12430
12431 2005-03-21  Jim Meyering  <jim@meyering.net>
12432
12433         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
12434         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
12435
12436 2005-03-21  Jim Meyering  <jim@meyering.net>
12437         and  Paul Eggert  <eggert@cs.ucla.edu>
12438
12439         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
12440         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
12441         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
12442         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
12443         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
12444         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
12445         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
12446         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
12447         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
12448         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
12449         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
12450         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
12451         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
12452         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
12453         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
12454         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
12455         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
12456         for these modules.
12457
12458 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12459
12460         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
12461         (which shouldn't happen), generate nothing instead of returning 0
12462         immediately, so that nstrftime (NULL, ...) doesn't return 0.
12463
12464 2005-03-16  Bruno Haible  <bruno@clisp.org>
12465
12466         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
12467         HAVE_LONGLONG_64BIT.
12468
12469 2005-03-16  Bruno Haible  <bruno@clisp.org>
12470
12471         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
12472         HAVE_LONGLONG_64BIT.
12473
12474 2005-03-16  Bruno Haible  <bruno@clisp.org>
12475
12476         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
12477         HAVE_LONGLONG_64BIT.
12478
12479 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12480
12481         * lib/strftime.c (my_strftime): Prepend space to format so that we can
12482         reliably distinguish strftime failure from empty output on POSIX
12483         hosts.
12484
12485 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12486
12487         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
12488         (iconv_string): Don't guess a size-zero buffer, as that might cause
12489         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
12490         result would be 'too large', where 'too large' is (heuristically)
12491         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
12492         overflow concerns.  This will prevent some unwanted malloc failures
12493         when the inputs are very large.
12494
12495 2005-03-15  Karl Berry  <karl@gnu.org>
12496
12497         * config/srclist.txt (config.rpath): from gettext.
12498         * config/config.rpath: update.
12499
12500 2005-03-15  Bruno Haible  <bruno@clisp.org>
12501
12502         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
12503         to 'negate'.
12504
12505         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
12506         variable.
12507
12508         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
12509         results.
12510
12511 2005-03-14  Simon Josefsson  <jas@extundo.com>
12512
12513         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
12514         <fx@gnu.org>.
12515
12516 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12517
12518         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
12519         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
12520         intprops.h.
12521         * lib/strtol.c: Likewise.
12522
12523 2005-03-14  Jim Meyering  <jim@meyering.net>
12524
12525         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
12526         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
12527         to be nonzero so that we (and caller) can detect the difference
12528         between a valid zero-length expansion and an error return, even
12529         when the underlying strftime fails before writing anything into
12530         that location.
12531
12532 2005-03-14  Bruno Haible  <bruno@clisp.org>
12533
12534         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
12535         Update from GNU gettext 0.14.3.
12536
12537 2005-03-10  Jim Meyering  <jim@meyering.net>
12538
12539         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
12540
12541 2005-03-10  Jim Meyering  <jim@meyering.net>
12542
12543         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
12544         so that this module works on systems without fchdir.
12545
12546 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12547
12548         Factor int-properties macros into a single file, except for
12549         glibc-related files.
12550         * lib/intprops.h: New file.
12551         * lib/getloadavg.c: Include it instead of limits.h.
12552         (INT_STRLEN_BOUND): Remove.
12553         * lib/human.c: Include intprops.h.
12554         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
12555         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
12556         302/1000.
12557         * lib/inttostr.h: Include intprops.h instead of limits.h.
12558         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
12559         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
12560         for consistency with intprops.h.
12561         (time_t_is_integer, twos_complement_arithmetic): Use them.
12562         * lib/sig2str.h: Include <signal.h>, intprops.h.
12563         (INT_STRLEN_BOUND): Remove.
12564         * lib/strftime.c (TYPE_SIGNED): Remove.
12565         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
12566         * lib/strtol.c: Adjust comments to match intprops.h.
12567         * lib/userspec.c: Include intprops.h.
12568         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
12569         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
12570         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
12571         instead of rolling our own expressions.
12572         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
12573
12574         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
12575         instead of int.
12576         (my_strftime): Do not mishandle years close to INT_MAX, by doing
12577         the right thing even if adding 1900 would overflow.  Similarly
12578         for tm_mon + 1 and tm_yday + 1.
12579         Make %Y always equivalent to %C%y, and similarly for %G and %g.
12580         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
12581         (DO_SIGNED_NUMBER): New macro.
12582         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
12583
12584 2005-03-07  Bruno Haible  <bruno@clisp.org>
12585
12586         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
12587
12588 2005-03-07  Bruno Haible  <bruno@clisp.org>
12589
12590         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
12591
12592 2005-03-04  Derek R. Price  <derek@ximbiot.com>
12593
12594         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
12595         (func_import): Only replace files via --import when they have actually
12596         changed.
12597
12598 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12599
12600         * m4/mmap-anon.m4: New file.
12601         * m4/pagealign_alloc.m4: New file.
12602
12603 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12604             Bruno Haible  <bruno@clisp.org>
12605
12606         * modules/pagealign_alloc: New file.
12607         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
12608
12609 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12610             Bruno Haible  <bruno@clisp.org>
12611
12612         * lib/pagealign_alloc.h: New file.
12613         * lib/pagealign_alloc.c: New file.
12614
12615 2005-03-03  Bruno Haible  <bruno@clisp.org>
12616
12617         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
12618         Use an all-permissive copyright notice, recommended by RMS.
12619
12620 2005-03-02  Bruno Haible  <bruno@clisp.org>
12621
12622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
12623         of AIX, the replacement has to be done only after <string.h> is
12624         included, therefore not in config.h. stpncpy.h does the replacement,
12625         and stpncpy.c uses it.
12626
12627 2005-03-02  Bruno Haible  <bruno@clisp.org>
12628
12629         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
12630         stpncpy.c uses it.
12631
12632 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12633
12634         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
12635         The workaround isn't strictly needed for POSIX conformance, and
12636         it's too much of a pain to configure and maintain.  We'll ask
12637         people to fix their kernels instead.
12638         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
12639         (NANOSLEEP_BUG_WORKAROUND): Remove.
12640         (xnanosleep): Remove the workaround.
12641
12642 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12643
12644         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
12645         Reported by Derek Price.
12646         (Include): Add "timespec.h".
12647
12648         * modules/xnanosleep (Depends-on): Remove gethrxtime.
12649
12650 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12651
12652         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
12653         to detect nanosleep bug.
12654
12655 2005-03-01  Bruno Haible  <bruno@clisp.org>
12656
12657         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
12658
12659 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12660
12661         * modules/gethrxtime: New file.
12662         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
12663         (Depends-on): Add gethrxtime.
12664         (configure.ac): Add gl_XNANOSLEEP.
12665         (Makefile.am): Remove lib_SOURCES line.
12666
12667 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12668
12669         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
12670         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
12671
12672 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12673
12674         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
12675         * lib/timespec.h (gettime): Return void, since it always
12676         succeeds now.  All uses changed.
12677         * lib/gettime.c (gettime) Likewise.
12678         [HAVE_NANOTIME]: Prefer nanotime.
12679         Assume gettimeofday succeeds, as POSIX requires.
12680         Assime time () succeeds, since other code already does.
12681         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
12682         (timespec_subtract): Remove.
12683         (NANOSLEEP_BUG_WORKAROUND): New constant.
12684         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
12685         things considerably.  Use it only on GNU/Linux hosts, since the
12686         workaround shouldn't be needed elsewhere.
12687
12688 2005-02-24  Bruno Haible  <bruno@clisp.org>
12689
12690         * modules/gettext (Files): Add m4/glibc2.m4.
12691
12692 2005-02-24  Bruno Haible  <bruno@clisp.org>
12693
12694         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
12695         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
12696         * m4/progtest.m4:
12697         Update from GNU gettext 0.14.2.
12698         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
12699
12700 2005-02-24  Bruno Haible  <bruno@clisp.org>
12701
12702         * lib/localcharset.c: Update from GNU gettext 0.14.2.
12703         * lib/config.charset: Update from GNU gettext 0.14.2.
12704
12705 2005-02-24  Bruno Haible  <bruno@clisp.org>
12706
12707         * lib/gettext.h: Update from GNU gettext 0.14.2.
12708
12709 2005-02-23  Simon Josefsson  <jas@extundo.com>
12710
12711         * m4/iconvme.m4: New file.
12712
12713 2005-02-23  Jim Meyering  <jim@meyering.net>
12714
12715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
12716         change.
12717         Thanks to Bruno Haible for catching it.
12718
12719 2005-02-22  Simon Josefsson  <jas@extundo.com>
12720
12721         * modules/iconvme: New file.
12722
12723         * MODULES.html.sh: Add iconvme.
12724
12725 2005-02-22  Simon Josefsson  <jas@extundo.com>
12726
12727         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
12728
12729 2005-02-22  Simon Josefsson  <jas@extundo.com>
12730
12731         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
12732
12733 2005-02-22  Jim Meyering  <jim@meyering.net>
12734
12735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
12736         s/ifndef/ifdef/.
12737
12738 2005-02-20  Neil Conway  <neilc@samurai.com>
12739
12740         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
12741         returned by OSX/Darwin if the specified buffer is not large
12742         enough for the hostname.
12743
12744 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12745
12746         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
12747         pass it to _help, otherwise the latter coredumps trying to
12748         dereference state.root_argp.
12749
12750 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12751
12752         * modules/chdir-long (Depends-on): Add memrchr.
12753         * modules/memrchr (Files): Add lib/memrchr.h.
12754         (Include): "memrchr.h".
12755
12756 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12757
12758         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
12759
12760 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12761
12762         * lib/memrchr.h: New file.
12763         * lib/chdir-long.c: Include it.
12764         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
12765         Don't bother including stddef.h.
12766
12767 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
12768
12769         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
12770         inclusion.
12771         Include <sys/types.h>, for dev_t.
12772         (ME_DUMMY, ME_REMOTE): Move from here....
12773         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
12774         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
12775         Dmitry V. Levin.
12776         Include mountlist.h first, to test the interface.
12777
12778 2005-01-29  Bruno Haible  <bruno@clisp.org>
12779
12780         * lib/progname.c (program_name): Initialize.
12781         Needed when linking statically on MacOS X.
12782
12783 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12784
12785         Sync from coreutils.
12786         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
12787         (Depends-on): Add c-strtod.
12788         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
12789
12790 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12791
12792         Sync from coreutils.
12793         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
12794
12795         Remove files that are specific to coreutils.
12796         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
12797
12798 2005-01-28  Bruno Haible  <bruno@clisp.org>
12799
12800         * modules/javacomp: New file.
12801         * MODULES.html.sh (Java): Add javacomp.
12802
12803 2005-01-28  Bruno Haible  <bruno@clisp.org>
12804
12805         * m4/javacomp.m4: New file, from GNU gettext.
12806
12807 2005-01-28  Bruno Haible  <bruno@clisp.org>
12808
12809         * lib/javacomp.sh.in: New file, from GNU gettext.
12810         * lib/javacomp.h: New file, from GNU gettext.
12811         * lib/javacomp.c: New file, from GNU gettext.
12812
12813 2005-01-26  Simon Josefsson  <jas@extundo.com>
12814
12815         * lib/gai_strerror.c: Use GPL in header.
12816
12817 2005-01-26  Bruno Haible  <bruno@clisp.org>
12818
12819         * modules/javaexec: New file.
12820         * MODULES.html.sh (Java): Add javaexec.
12821
12822 2005-01-26  Bruno Haible  <bruno@clisp.org>
12823
12824         * m4/javaexec.m4: New file, from GNU gettext.
12825
12826 2005-01-26  Bruno Haible  <bruno@clisp.org>
12827
12828         * lib/javaexec.sh.in: New file, from GNU gettext.
12829         * lib/javaexec.h: New file, from GNU gettext.
12830         * lib/javaexec.c: New file, from GNU gettext.
12831
12832 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12833
12834         * modules/lchown (Depends-on): Remove lchown.h
12835
12836 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12837
12838         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
12839         must be defined if the header file was not found, in order
12840         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
12841
12842 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12843
12844         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
12845         initializers for struct pentry_state.
12846         (__argp_error): Check return value of __asprintf
12847         (__argp_failure): Translate error message
12848
12849         * lib/argp-parse.c: Removed braces around the expansion of N_()
12850
12851 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12852
12853         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
12854         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
12855         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
12856         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
12857         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
12858         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
12859         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
12860         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
12861         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
12862         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
12863         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
12864         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
12865         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
12866         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
12867         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
12868         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
12869         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
12870         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
12871         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
12872         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
12873         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
12874         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
12875         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
12876         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
12877         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
12878         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
12879         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
12880         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
12881         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
12882         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
12883         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
12884         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
12885         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
12886         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
12887         xstrtol.m4, xstrtoumax.m4, yesno.m4:
12888         Use an all-permissive copyright notice, recommended by RMS.
12889
12890 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12891
12892         * modules/chdir-long (Depends-on): Remove mempcpy.
12893
12894 2005-01-21  Jim Meyering  <jim@meyering.net>
12895
12896         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
12897         same value as for Solaris 9.
12898
12899         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
12900         component length.  This included changing the parameter to be
12901         of type `char *' rather than `char const *'.
12902         * lib/chdir-long.h (chdir_long): Update prototype.
12903
12904         * lib/openat.c (fdopendir, fstatat): New functions.
12905         * lib/openat.h: Include headers required for use of DIR and struct
12906         stat.
12907         [AT_SYMLINK_NOFOLLOW]: Define.
12908         (fdopendir, fstatat): Add prototypes.
12909
12910 2005-01-21  Bruno Haible  <bruno@clisp.org>
12911
12912         * modules/classpath: New file.
12913         * MODULES.html.sh (Java): Add classpath.
12914
12915 2005-01-21  Bruno Haible  <bruno@clisp.org>
12916
12917         * lib/classpath.h: New file, from GNU gettext.
12918         * lib/classpath.c: New file, from GNU gettext.
12919
12920 2005-01-20  Simon Josefsson  <jas@extundo.com>
12921
12922         * modules/version-etc-fsf: New file.
12923
12924 2005-01-20  Simon Josefsson  <jas@extundo.com>
12925
12926         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
12927         * lib/version-etc.c: Remove version_etc_copyright.
12928         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
12929         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
12930
12931 2005-01-20  Simon Josefsson  <jas@extundo.com>
12932
12933         * lib/base64.h (isbase64): Add.
12934
12935         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
12936         using a unsigned prototype, don't inline.
12937         (base64_decode): Use it.
12938
12939 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12940
12941         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
12942         it.
12943
12944 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12945
12946         * lib/save-cwd.c (save_cwd): Remove code to support the case
12947         where fchdir is missing or flaky.
12948
12949 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12950
12951         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
12952
12953 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12954
12955         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
12956         AC_LIBSOURCES now does this.
12957         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
12958         with new ullong_max module.
12959
12960 2005-01-19  Bruno Haible  <bruno@clisp.org>
12961
12962         * modules/sh-quote: New file.
12963         * MODULES.html.sh (Executing programs): Add sh-quote.
12964
12965 2005-01-19  Bruno Haible  <bruno@clisp.org>
12966
12967         * lib/sh-quote.h: New file, from GNU gettext.
12968         * lib/sh-quote.c: New file, from GNU gettext.
12969
12970 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12971
12972         Merge from coreutils.
12973         * m4/ullong_max.m4: New file.
12974         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
12975         (gl_MACROS): Assume localeconv exists.
12976
12977 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12978
12979         Merge changes from coreutils, as described below in several
12980         changelogs dated today.
12981
12982         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
12983         (O_DIRECTORY): Remove; not needed here, since "." must be
12984         a directory.  All uses removed.
12985         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
12986         universal on Suns, and we also need to test for IRIX.
12987         Revamp code to use 'if' rather than '#if'.
12988         Avoid unnecessary comparison of cwd->desc to 0.
12989
12990         * lib/utimens.c (futimens): Robustify the previous patch, by checking
12991         for known valid error numbers rather than observed invalid ones.
12992
12993 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12994
12995         * modules/ullong_max: New file.
12996
12997         * modules/chdir-long, modules/openat: New files.
12998         * modules/save-cwd (Depends-on): Depend on chdir-long.
12999         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
13000
13001 2005-01-18  Jim Meyering  <jim@meyering.net>
13002
13003         Merge from coreutils.
13004         * m4/chdir-long.m4, m4/openat.m4: New files.
13005         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
13006         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
13007         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
13008         is sane and DOES follow symlinks.  Besides, testing 20 different
13009         systems found no broken chown implementations.
13010         Prompted by a change in rsync's copy of this macro.
13011         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
13012
13013         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
13014
13015         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
13016         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
13017         NULL-means-set-to-current-time semantics.
13018         Remove temporary file immediately, rather than waiting
13019         for configure's at-exit trap code to do it.
13020
13021 2005-01-18  Jim Meyering  <jim@meyering.net>
13022
13023         * lib/version-etc.c (version_etc_copyright): Update copyright date.
13024
13025         * lib/utimens.c (futimens): Account for the fact that futimes
13026         can also fail with errno == ENOSYS or errno == ENOENT.
13027         Patch from Dmitry V. Levin.
13028
13029         Change the name of the robust chdir function from chdir to chdir_long.
13030         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
13031         (restore_cwd): Use chdir_long, not chdir.
13032         * lib/chdir-long.c: Renamed from chdir.c.
13033         * lib/chdir-long.h: Renamed from chdir.h.
13034         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
13035         Hurd.
13036
13037 2005-01-18  Bruno Haible  <bruno@clisp.org>
13038
13039         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
13040         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
13041         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
13042         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
13043         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
13044         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
13045         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
13046         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
13047         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
13048         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
13049         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
13050         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
13051         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
13052         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
13053         Use an all-permissive copyright notice, recommended by RMS.
13054
13055 2005-01-18  Bob Proulx  <bob@proulx.com>
13056
13057         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
13058         simplify offsetof() macro construct to avoid compile failure with
13059         native HP-UX 11.0 ANSI C compiler.
13060
13061 2005-01-17  Bruno Haible  <bruno@clisp.org>
13062
13063         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
13064         redundant because stpncpy.m4 takes care of it.
13065
13066 2005-01-17  Bruno Haible  <bruno@clisp.org>
13067
13068         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
13069
13070 2005-01-17  Bruno Haible  <bruno@clisp.org>
13071
13072         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
13073         used.
13074
13075 2005-01-17  Bruno Haible  <bruno@clisp.org>
13076
13077         * lib/fwriteerror.h (fwriteerror): Change specification to include
13078         fclose.
13079         * lib/fwriteerror.c: Include <stdbool.h>.
13080         (fwriteerror): At the end, close the file stream. Record whether
13081         stdout was already closed.
13082
13083 2005-01-17  Bruno Haible  <bruno@clisp.org>
13084
13085         * lib/execute.c (environ): Declare if needed.
13086         * lib/pipe.c (environ): Likewise.
13087         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
13088
13089 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13090
13091         * modules/argp: Depend on vsnprintf
13092
13093 2005-01-10  Jim Meyering  <jim@meyering.net>
13094
13095         * modules/closeout (Depends-on): Add atexit.
13096
13097 2005-01-06  Bruno Haible  <bruno@clisp.org>
13098
13099         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
13100
13101 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13102
13103         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
13104         definitions to be after all include files, to avoid collisions.
13105         Problem reported by Bob Proulx.
13106
13107 2005-01-04  Jim Meyering  <jim@meyering.net>
13108
13109         Changes imported from coreutils.
13110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
13111         as the mkstemp template, use a temporary directory and an
13112         8.3-friendly template to avoid trouble on systems like DJGPP.
13113         Reported by Juan M. Guerrero via Stepan Kasal.
13114         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
13115         close. Remove the temporary directory right away, rather than waiting
13116         for configure's at-exit trap code to do it.
13117         Suggestion from Stepan Kasal.
13118
13119 2005-01-01  Simon Josefsson  <jas@extundo.com>
13120
13121         * gnulib-tool: Print #include directives when --import'ing.
13122
13123 2004-12-28  Simon Josefsson  <jas@extundo.com>
13124
13125         * tests/test-base64.c: Include required header files.  Remove
13126         unused variables.
13127
13128 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13129
13130         * modules/error (Depends-on): Remove gettext.
13131
13132 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13133
13134         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
13135         not needed.  This removes a dependency on the gettext module.
13136         [defined _LIBC]: Do not include <libintl.h>; not needed.
13137
13138 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
13141         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
13142
13143 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
13144
13145         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
13146         HAVE_DECL_STRTOLD.
13147
13148 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13149
13150         * modules/getdate (Depends-on): Remove alloca-opt.
13151
13152 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13153
13154         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
13155
13156 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13157
13158         * lib/argp-parse.c: Include <stddef.h>.
13159         (alignof, alignto): New macros.
13160         (parser_init): Don't assume that void * is aligned sufficiently
13161         for struct option.
13162
13163         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
13164         need to extend the stack.
13165         (YYINITDEPTH): New macro, so that the initial stack isn't overly
13166         large.
13167
13168 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13169
13170         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
13171
13172 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13173
13174         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
13175         (2004-10-24) change.  Apparently this was a false alarm.
13176
13177         * modules/getdate: Depend on alloca-opt, not alloca.
13178
13179 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13180
13181         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
13182         Remove now-obsolete comment about AIX.
13183         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
13184         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
13185         (YYMAXDEPTH): New macro.
13186
13187 2004-12-18  Simon Josefsson  <jas@extundo.com>
13188
13189         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
13190
13191 2004-12-18  Bruno Haible  <bruno@clisp.org>
13192
13193         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
13194
13195 2004-12-18  Bruno Haible  <bruno@clisp.org>
13196
13197         * lib/fatal-signal.c (fatal_signals): Make non-const.
13198         (init_fatal_signals): New function.
13199         (uninstall_handlers, install_handlers): Ignore signals that were set to
13200         SIG_IGN.
13201         (at_fatal_signal): Call init_fatal_signals.
13202         (init_fatal_signal_set): Likewise. Ignore signals that were set to
13203         SIG_IGN.
13204         Reported by Paul Eggert.
13205
13206 2004-12-18  Bruno Haible  <bruno@clisp.org>
13207
13208         * doc/alloca.texi: New file.
13209         * doc/alloca-opt.texi: New file.
13210
13211 2004-12-17  Jim Meyering  <jim@meyering.net>
13212
13213         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
13214         Otherwise, install-sh could exit with improper exit status when
13215         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
13216
13217 2004-12-16  Simon Josefsson  <jas@extundo.com>
13218
13219         * tests/test-base64.c: Add license.
13220
13221 2004-12-15  Stepan Kasal  <address@hidden>
13222
13223         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
13224
13225 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13226
13227         * modules/getcwd (Files): Add m4/d-ino.m4.
13228         Suggested by Mark D. Baushke.
13229
13230 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13231
13232         * lib/getdate.y (textint): New member "negative".
13233         (time_zone_hhmm): New function.
13234         Expect 14 shift-reduce conflicts, not 13.
13235         (o_colon_minutes): New rule.
13236         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
13237         (yylex): Set the "negative" member of signed numbers.
13238
13239 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13240
13241         * doc/getdate.texi (Time of day items, Time zone items):
13242         Describe new formats +00:00, UTC+00:00.
13243
13244 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13245
13246         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
13247         spurious "-l"s.  Problem reported by Stepan Kasal.
13248
13249 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
13250
13251         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
13252         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
13253
13254 2004-12-04  Simon Josefsson  <jas@extundo.com>
13255
13256         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
13257         Vandoorselaere <yoann@prelude-ids.org>.
13258
13259 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13260
13261         Changes imported from coreutils.
13262         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
13263         exist.
13264         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
13265
13266 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13267
13268         Changes imported from coreutils.
13269         * lib/hard-locale.c: Assume <locale.h> exists.
13270         Include "strdup.h".
13271         (GLIBC_VERSION): New macro.
13272         (hard_locale): Assume setlocale exists.
13273         Rewrite to avoid #ifdef.
13274         Use strdup rather than malloc + strcpy.
13275         * lib/human.c: Assume <locale.h> exists.
13276         (human_readable): Assume localeconv exists.
13277
13278 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13279
13280         * modules/hard-locale (Depends-on): Add strdup.
13281
13282 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
13283
13284         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
13285         convert T2, not T.  (Imported from libc.)
13286
13287 2004-11-30  Simon Josefsson  <jas@extundo.com>
13288
13289         * modules/restrict (License): Change to LGPL.
13290
13291 2004-11-30  Simon Josefsson  <jas@extundo.com>
13292
13293         * m4/restrict.m4: Add copyright and copying conditions.
13294
13295 2004-11-30  Simon Josefsson  <jas@extundo.com>
13296
13297         * m4/base64.m4: New file.
13298
13299 2004-11-30  Simon Josefsson  <jas@extundo.com>
13300
13301         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
13302         base64.
13303
13304         * tests/test-base64.c: New file.
13305
13306         * modules/base64: New file.
13307
13308 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13309
13310         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13311         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
13312
13313         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
13314
13315 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13316
13317         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
13318         (__getcwd.c): Don't restore errno; glibc doesn't.
13319         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
13320         first, falling back to our code only if its results look suspicious.
13321         Ensure that the resulting buffer is only as large as necessary.
13322
13323         * lib/readutmp.c: Include readutmp.h first.
13324         Include <errno.h>, since readutmp.h no longer does that.
13325         * lib/readutmp.h: Don't include <errno.h>,
13326         <sys/param.h>, <time.h>; not needed to establish interface.
13327         (errno): Remove decl.
13328         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
13329         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
13330         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
13331
13332 2004-11-28  Simon Josefsson  <jas@extundo.com>
13333
13334         * lib/base64.h, base64.c: New file.
13335
13336 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13337
13338         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
13339
13340 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
13341
13342         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
13343         (Depends-on): Remove pathmax, same.  Add mempcpy.
13344         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
13345         (Makefile.am): Append getcwd.h to lib_SOURCES.
13346         (Include): Add getcwd.h.
13347         (Maintainer): Change from Jim Meyering to "all, glibc",
13348         since getdate now uses intended-for-glibc code.
13349         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
13350         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
13351
13352 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13353
13354         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
13355         HP's ANSI C compiler.
13356         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
13357         Declaring int functions causes warnings on some modern systems and
13358         shouldn't be needed to compile on ancient ones.
13359         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
13360         defined.
13361
13362         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
13363         with the following changes.
13364         (__set_errno): Parenthesize properly.
13365         Include <stdbool.h>.
13366         (MIN, MAX, MATCHING_INO): New macros.
13367         (__getcwd): Define with prototype, not K&R form.
13368         Use heuristics to allocate default buffer on stack if possible.
13369         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
13370         behavior, and to avoid the PATH_MAX limit when computing
13371         ../../../../...
13372         Use MATCHING_INO to compare inode number to file.
13373         Check for arithmetic overflow in size calculations.
13374         Fix bug in reallocation of dot array that caused getcwd to fail
13375         on directories nested deeper than 75.
13376         Be more careful about saving errno on error.
13377         Do not use realloc; use only free+malloc, as this is a bit
13378         more flexible and avoids a needless copy operation.
13379         Do not inspect st_dev and st_ino for symbolic links; POSIX
13380         doesn't specify the latter.
13381         Check for closedir errors.
13382         Avoid needless casts.
13383         Use "#ifdef weak_alias" around weak_alias, to be like other
13384         glibc code.
13385         The following changes to getcwd.c have effect only when used in
13386         gnulib; they have no effect inside glibc proper.
13387         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
13388         as alloca isn't used.
13389         (alloca, __alloca): Likewise.
13390         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
13391         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
13392         unconditionally, as gnulib assumes C89 or better.
13393         Do not include <sys/param.h>.
13394         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
13395         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
13396         better.
13397         (NULL) [!defined NULL]: Remove; we assume C89 or better.
13398         Include <dirent.h> in a way that is compatible with modern Autoconf.
13399         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
13400         New macros, if not already defined.
13401         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
13402         Use "_LIBC", not "defined _LIBC", for consistency.
13403         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
13404         a mempcpy module.
13405         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
13406         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
13407         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
13408         credit only to Jim Meyering and adjust the copyright dates.
13409         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
13410         <stdlib.h>, <unistd.h>, "pathmax.h".
13411         Instead, include "xgetcwd.h" (first) and "getcwd.h".
13412         (INITIAL_BUFFER_SIZE): Remove.
13413         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
13414
13415 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13416
13417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
13418         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
13419         Use the _ONCE methods, for efficiency.
13420         Check for fcntl.h.  In test program, include <errno.h>
13421         and <fcntl.h> if available.  Remove old K&R cruft from
13422         test program.  Check for common errors in GNU/Linux,
13423         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
13424         don't do AC_LIBOBJ, as that's getcwd.m4's job.
13425         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
13426         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
13427         name accordingly.
13428         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
13429         accommodate new getcwd.c.
13430         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
13431         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
13432         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
13433         that's all we need now.
13434
13435 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13436
13437         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
13438         argp-parse.c depends on getopt internals, that means we should
13439         always use our getopt, to be on the safe side.
13440         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
13441         order not to spoil the result of an eventual previous invocation
13442         of gl_GETOPT_SUBSTITUTE.
13443
13444 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13445
13446         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
13447         redefinition warnings. To avoid them, include the defines
13448         in `#if !defined __need_getopt ... #endif'. The only place
13449         where __getopt_argv_const is used is in definitions
13450         of getopt_long and getopt_long_only below, which are as well
13451         protected by `#ifndef __need_getopt'.
13452         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
13453         __need_getopt after including <stdio.h> and <unistd.h> These
13454         headers might have defined it.
13455
13456 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13457
13458         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
13459
13460 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
13463         (futimens): New function, which uses futimes if available.
13464         (futimens, utimens): Support timespec==NULL, with same semantics
13465         as utime and utimens.
13466         * lib/utimens.h (futimens): New decl.
13467
13468 2004-11-23  Jim Meyering  <jim@meyering.net>
13469
13470         * lib/getopt_.h: Remove trailing blanks.
13471
13472 2004-11-23  Jim Meyering  <jim@meyering.net>
13473
13474         * lib/__fpending.c: Add comment.
13475
13476 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
13477
13478         * modules/canonicalize (Depends-on): Add xreadlink.
13479         Problem reported by James Youngman.
13480
13481 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13482
13483         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
13484         New macros.
13485         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
13486         optopt): Use them instead of invoking ## directly; otherwise, the
13487         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
13488
13489 2004-11-19  Bruno Haible  <bruno@clisp.org>
13490
13491         * lib/strtok_r.c: Move comments from here...
13492         * lib/strtok_r.h: ... to here.
13493
13494 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13495
13496         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
13497         implementations that mishandle size_t overflow.
13498
13499 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13500
13501         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
13502         might fail.  Problem reported by Yoann Vandoorselaere.
13503         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
13504         implementations that mishandle size_t overflow.
13505
13506 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13507
13508         * modules/canon-host (Depends-on): Add strdup.
13509
13510 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13511
13512         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
13513
13514 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13515
13516         * lib/canon-host.c: Include "strdup.h".
13517         (canon_host): Use getaddrinfo if available, so that IPv6 works.
13518         Use strdup instead of malloc/strcpy to duplicate strings.
13519
13520         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
13521         (human_space_before_unit): New constant.
13522         * lib/human.c (human_readable): Support it.
13523
13524         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
13525         (xgetcwd): Set errno correctly when failing.
13526         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
13527         the failure is actually due to a PATH_MAX problem.
13528
13529         Further getopt changes to make it more likely that glibc will
13530         buy the changes back.
13531         * lib/getopt.c (POSIXLY_CORRECT): New constant.
13532         (getopt): Use it, so to preserve glibc semantic
13533         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
13534         when compiling for libc.
13535         * lib/getopt_.h (__getopt_argv_const): Bring it back.
13536         (getopt_long, getopt_long_only): Use it.
13537
13538         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
13539         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
13540         (getopt): Argv is now char * const *, as per standard.
13541         (_getopt_internal_r, _getopt_internal): Argv is now char **,
13542         not char *__getopt_argv_const *.
13543         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
13544         _getopt_long_only_r): Likewise.
13545         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
13546         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
13547         _getopt_long_r, _getopt_long_only_r): Likewise.
13548         * lib/getopt_.h (__getopt_argv_const): Remove.
13549         (getopt): Argv is now char * const *, as per standard.
13550
13551         * lib/getdate.y (tORDINAL): New token.
13552         (day, relunit): Allow it for relative times.
13553         (relative_time_table): Use tORDINAL for ordinals.
13554
13555 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13556
13557         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
13558         Document that "second" isn't allowed as an ordinal number.
13559
13560 2004-11-16  Jim Meyering  <jim@meyering.net>
13561
13562         * modules/closeout (Depends-on): Add fpending.
13563
13564 2004-11-15  Jim Meyering  <jim@meyering.net>
13565
13566         * lib/closeout.c: Include "__fpending.h" once again.
13567         Include <stdbool.h>.
13568         (close_stdout): Don't fail just because stdout was closed initially,
13569         since some programs don't write to stdout in the normal course of
13570         operation (other than --version and --help), and we don't want this
13571         function to make e.g. `touch file >&-' fail.
13572         But do fail if it was closed and someone has tried to write to it.
13573         E.g., `printf foo >&-' must fail.
13574
13575 2004-11-13  Jim Meyering  <jim@meyering.net>
13576
13577         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
13578
13579 2004-11-12  Simon Josefsson  <jas@extundo.com>
13580
13581         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
13582         small doc fix is still pending.
13583
13584 2004-11-11  Simon Josefsson  <jas@extundo.com>
13585
13586         * modules/strtok_r: New file.
13587
13588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13589         strtok_r.
13590
13591 2004-11-11  Simon Josefsson  <jas@extundo.com>
13592
13593         * m4/strtok_r.m4: New file.
13594
13595         * m4/getopt.m4: Replace opterr.
13596
13597 2004-11-11  Simon Josefsson  <jas@extundo.com>
13598
13599         * lib/strtok_r.h, strtok_r.c: New file.
13600
13601 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13602
13603         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
13604         of replacing opterr, getopt, etc.  This should handle the
13605         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
13606
13607 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13608
13609         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
13610         we can stop lying to compilers about the constness of argv when we
13611         are compiled outside glibc.
13612         (getopt, getopt_long, getopt_long_only): Use it.
13613         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
13614         _getopt_internal, getopt): Likewise.
13615         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
13616         _getopt_long_only_r): Likewise.
13617         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
13618         _getopt_long_r, _getopt_long_only_r): Likewise.
13619
13620         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
13621         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
13622         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
13623         the other external symbols.
13624         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
13625         declaration, since the above renaming now works around collisions.
13626
13627 2004-11-11  Jim Meyering  <jim@meyering.net>
13628
13629         * lib/linebreak.c: Remove trailing blanks.
13630         * lib/alloca_.h: Likewise.
13631         * lib/acosl.c: Likewise.
13632         * lib/euidaccess.c: Likewise.
13633         * lib/allocsa.h: Likewise.
13634
13635 2004-11-10  Simon Josefsson  <jas@extundo.com>
13636
13637         * m4/getaddrinfo.m4: New file.
13638
13639 2004-11-10  Simon Josefsson  <jas@extundo.com>
13640
13641         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
13642
13643 2004-11-10  Simon Josefsson  <jas@extundo.com>
13644
13645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13646         getaddrinfo.
13647
13648         * modules/getaddrinfo: New file.
13649
13650 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13651
13652         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
13653
13654 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13655
13656         * lib/mktime.c (SHR): New macro, which is a portable
13657         substitute for >> that should work even on Crays.
13658         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
13659         Problem reported by Mark D. Baushke in
13660         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
13661         * lib/getdate.y (SHR): Likewise.
13662         (tm_diff): Use it.
13663         * lib/strftime.c (SHR): Likewise.
13664         (tm_diff): Use it.
13665         * lib/quotearg.c (struct quoting_options): Use unsigned int for
13666         quote_these_too, so that right shifts are well defined.  All uses
13667         changed.
13668
13669 2004-11-10  Jim Meyering  <jim@meyering.net>
13670
13671         Ensure that no close failure goes unreported.
13672         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
13673         return early when it seems there's nothing to flush.
13674         Don't include __fpending.h.
13675
13676 2004-11-10  Jim Meyering  <jim@meyering.net>
13677
13678         * modules/closeout (Depends-on): Remove fpending.
13679
13680 2004-11-10  Jim Meyering  <jim@meyering.net>
13681
13682         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
13683
13684 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13685
13686         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
13687         gl_FUNC_STRFTIME.
13688         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
13689         and AC_REQUIRE when possible, to avoid duplicate checks.
13690         Check for <wchar.h>.
13691
13692 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13693
13694         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
13695
13696 2004-11-09  Bruno Haible  <bruno@clisp.org>
13697
13698         * m4/sockpfaf.m4: New file.
13699
13700 2004-11-05  Bruno Haible  <bruno@clisp.org>
13701
13702         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
13703         Reported by Mark D. Baushke <mdb@cvshome.org>.
13704
13705 2004-11-04  Bruno Haible  <bruno@clisp.org>
13706
13707         2004-09-11  Bruno Haible  <bruno@clisp.org>
13708                 * allocsa.valgrind: New file.
13709         2004-02-06  Bruno Haible  <bruno@clisp.org>
13710                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
13711                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
13712                 Reported by Christopher Seip <chris.seip@hp.com>.
13713
13714 2004-11-04  Bruno Haible  <bruno@clisp.org>
13715
13716         * modules/allocsa (Files): Add lib/allocsa.valgrind.
13717         (Makefile.am): Distribute it.
13718
13719 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13720
13721         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
13722         with errno == ERANGE if the buffer is too small.
13723         Problem reported by Mark D. Baushke.
13724
13725 2004-11-03  Albert Chin  <china@thewrittenword.com>
13726             Paul Eggert  <eggert@cs.ucla.edu>
13727
13728         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
13729         equivalent, substitute $ac_type for equivalent type rather than
13730         blindly using uint32_t *always* which won't work if uint32_t is not
13731         available.  Define _UINT32_T to work around typedef of uint32_t if
13732         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
13733         2.5.1.
13734
13735 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13736
13737         * m4/jm-macros.m4: Sync from coreutils.
13738         (gl_MACROS): Check for mbrlen, for pathchk.
13739         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
13740
13741 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13742
13743         * lib/xreadlink.c (MAXSIZE): New macro.
13744         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
13745         size does not exceed MAXSIZE.  Avoid cast.
13746         As suggested by Mark D. Baushke in
13747         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
13748         if readlink fails with buffer size just under MAXSIZE, try again
13749         with MAXSIZE.
13750
13751 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13752
13753         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
13754
13755 2004-11-02  Derek R. Price  <derek@ximbiot.com>
13756         and  Paul Eggert  <eggert@cs.ucla.edu>
13757
13758         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
13759         (get_date): Overparenthesize to avoid GCC warning.
13760
13761 2004-11-02  Bruno Haible  <bruno@clisp.org>
13762
13763         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
13764         returns void.
13765
13766 2004-11-02  Bruno Haible  <bruno@clisp.org>
13767
13768         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
13769         function returns void.
13770
13771 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13772
13773         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
13774         fflush_unlocked, flockfile, funlockfile, funlockfile,
13775         fputs_unlocked, putc_unlocked.
13776
13777 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13778
13779         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
13780         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
13781         already declared.
13782
13783 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         * modules/getdate (Files): Add doc/getdate.texi.
13786         (Depends-on): Add setenv, xalloc.
13787
13788 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         * lib/getdate.y: Add support for TZ="foo" within a date string.
13791         Fix some bugs near time_t boundaries.  Reject dates with
13792         out-of-range components, e.g., "Sept 31".
13793         Include <stdlib.h>, "setenv.h", "xalloc.h".
13794         (ISDIGIT_LOCALE): Remove; unused.
13795         Note that the TZ and time functions used here are not reentrant.
13796         (mktime_ok, get_tz): New functions.
13797         (TZBUFSIZE): New constant.
13798         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
13799         This requires that we sometimes generate our own TZ="XXX..." setting.
13800
13801 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13802
13803         * doc/getdate.texi: New file, from coreutils with modifications for
13804         the new TZ parsing.
13805
13806 2004-10-27  Derek R. Price  <derek@ximbiot.com>
13807
13808         * lib/mktime.c (not_equal_tm): Remove redundant check.
13809
13810 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13811
13812         * modules/regex (lib_SOURCES): Add regex.c.
13813         Reported by James Youngman in
13814         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
13815
13816 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13817
13818         * lib/getdate.y: Use Bison 1.875 features, and some minor
13819         code cleanups.  This change does not affect semantics.
13820         Don't include <stdlib.h>; no longer needed.
13821         Don't include unlocked-io.h; only the "#if TEST" code uses
13822         stdio, and performance isn't crucial there.
13823         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
13824         Bison 1.875 features as described below.
13825         All uses of "PC." replaced by "pc->".
13826         (YYSTYPE): Add a forward declaration.
13827         (yylex, yyerror): Use full prototypes in forward decls.
13828         Use "%pure-parser" rather than obsolescent "%pure_parser".
13829         Use %parse-param and %lex-param instead of obsolescent
13830         YYPARSE_PARAM and YYLEX_PARAM.
13831         (meridian_table, month_and_day_table, time_units_table,
13832         relative_time_table, time_zone_table, military_table,
13833         lookup_zone, lookup_word, get_date):
13834         Use NULL instead of 0 where appropriate.
13835         (to_hour): Avoid abort (), to avoid a dependency on
13836         stdlib.h.
13837         (yyerror, yylex): Now accepts parser_control * arg.
13838         (main) [TEST]: Use '\0' rather than 0 for char.
13839
13840 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
13843
13844 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13845
13846         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
13847         It's now the caller's responsibility to handle the case where
13848         !HAVE_GETPAGESIZE && !defined getpagesize.
13849
13850         * lib/mktime.c (leapyear): Arg is long int, not int.
13851
13852 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
13855
13856 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
13857
13858         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
13859         missing.  Problem reported by James Youngman.
13860
13861 2004-10-16  Simon Josefsson  <jas@extundo.com>
13862
13863         * gnulib-tool: Fix comments.  Fix parse problem.
13864         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
13865
13866 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13867
13868         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
13869         implementation of getopt_long.  Problem reported by Alexander Taler in:
13870         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
13871
13872 2004-10-15  Bruno Haible  <bruno@clisp.org>
13873
13874         * gnulib-tool: Untabify. Initialize supplied_libname.
13875         (func_usage): More homogenous output.
13876         (func_modules_transitive_closure, func_modules_to_filelist,
13877         func_emit_lib_Makefile_am): New functions.
13878         (func_import): New function, extracted from big case statement. Use
13879         func_get_license, func_modules_transitive_closure,
13880         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
13881         opt_lgpl. Don't use test -a, as it's not portable.
13882         (func_create_testdir): Use func_modules_transitive_closure,
13883         func_modules_to_filelist, func_emit_lib_Makefile_am.
13884
13885 2004-10-15  Bruno Haible  <bruno@clisp.org>
13886
13887         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
13888
13889 2004-10-15  Bruno Haible  <bruno@clisp.org>
13890
13891         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
13892         the portions belonging to each module.
13893         Suggested by Derek Robert Price <derek@ximbiot.com>.
13894
13895 2004-10-12  Simon Josefsson  <jas@extundo.com>
13896
13897         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
13898         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
13899         to real functions.
13900
13901 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13902
13903         * modules/vsnprintf: New file.
13904
13905 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13906
13907         * m4/vsnprintf.m4: New file.
13908
13909 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13910
13911         * lib/vsnprintf.h: New file.
13912         * lib/vsnprintf.c: New file.
13913
13914 2004-10-11  Bruno Haible  <bruno@clisp.org>
13915
13916         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
13917         vsnprintf.
13918
13919 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13920
13921         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
13922
13923 2004-10-07  Bruno Haible  <bruno@clisp.org>
13924
13925         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
13926         fits into the provided buffer.
13927
13928 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13929
13930         * lib/diacrit.c, diacrit.h: Add GPL notice.
13931
13932         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
13933         notice.
13934         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
13935         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
13936         This avoids a potential constant-folding bug.
13937
13938 2004-10-05  Bruno Haible  <bruno@clisp.org>
13939
13940         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
13941         for the declaration of strsep.
13942
13943 2004-10-05  Bruno Haible  <bruno@clisp.org>
13944
13945         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
13946
13947 2004-10-04  Simon Josefsson  <jas@extundo.com>
13948
13949         * modules/memmem: New file.
13950         * tests/test-memmem.c: New file.
13951         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
13952
13953 2004-10-04  Simon Josefsson  <jas@extundo.com>
13954
13955         * m4/memmem.m4: New file.
13956
13957 2004-10-04  Simon Josefsson  <jas@extundo.com>
13958
13959         * lib/memmem.h: New file.
13960         * lib/memmem.c: New file, taken from glibc.
13961
13962 2004-10-04  Simon Josefsson  <jas@extundo.com>
13963
13964         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
13965         '#ifdef USE_UNLOCKED_IO'.
13966
13967 2004-10-04  Simon Josefsson  <jas@extundo.com>
13968
13969         * config/srclist.txt: Add memmem from glibc.
13970
13971 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
13974
13975         * modules/argmatch, modules/argp, modules/closeout, modules/error,
13976         modules/exclude, modules/getdate, modules/getline,
13977         modules/getndelim2, modules/getpass, modules/getpass-gnu,
13978         modules/getusershell, modules/linebuffer, modules/md5,
13979         modules/mountlist, modules/posixtm, modules/readtokens,
13980         modules/readutmp, modules/regex, modules/sha1,
13981         modules/version-etc, modules/yesno:
13982         Remove dependency on unlocked-io.
13983
13984 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13985
13986         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
13987
13988         * m4/unlocked-io.m4: Add copyright notice.
13989         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
13990
13991 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13992
13993         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
13994         * lib/xmalloc.c (xmemdup): Likewise.
13995         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
13996         XFREE): Remove these long-obsolescent macros.
13997         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
13998         * lib/xstrdup.c: Remove.
13999
14000         * lib/regex.c (re_comp): Cast gettext return value to char *,
14001         Problem reported by Martin Neitzel via Mark D. Baushke.
14002
14003 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14004
14005         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
14006         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
14007         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
14008         regex.c, sha1.c, version-etc.c, yesno.c:
14009         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
14010         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
14011         the includer's responsibility.
14012
14013         Sync from coreutils.
14014
14015         * lib/modechange.c (mode_compile): Don't decrement a pointer that
14016         points to the start of a string, as the C Standard says the
14017         resulting behavior is undefined.
14018
14019         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
14020         simple -> simple_backups, numbered_existing ->
14021         numbered_existing_backups, numbered -> numbered_backups
14022         to avoid shadowing problems.  All uses changed.
14023         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
14024         * lib/backupfile.c (check_extension, numbered_backup):
14025         Rename locals to avoid shadowing 'basename'.
14026         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
14027         once.
14028
14029         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
14030         * lib/.cvsignore: Add getopt.h.
14031
14032 2004-10-04  Bruno Haible  <bruno@clisp.org>
14033
14034         * modules/README: New file.
14035         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
14036         not a module.
14037
14038 2004-10-02  Jim Meyering  <jim@meyering.net>
14039
14040         * lib/dirfd.h, getpagesize.h: Add copyright notice.
14041
14042 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14043
14044         * modules/strsep: New file.
14045
14046 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14047
14048         * m4/strsep.m4: New file.
14049
14050 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14051
14052         * lib/strsep.h: New file.
14053         * lib/strsep.c: New file.
14054
14055 2004-10-01  Simon Josefsson  <jas@extundo.com>
14056
14057         * lib/snprintf.c (snprintf): Handle size==0.
14058
14059 2004-10-01  Simon Josefsson  <jas@extundo.com>
14060             Bruno Haible  <bruno@clisp.org>
14061
14062         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
14063         (snprintf): Declare 'args'.
14064
14065 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
14066
14067         * lib/snprintf.c: Remove comments as to why each header is needed.
14068
14069 2004-10-01  Bruno Haible  <bruno@clisp.org>
14070
14071         * MODULES.html.sh: Add strsep.
14072
14073 2004-09-30  Simon Josefsson  <jas@extundo.com>
14074
14075         * modules/snprintf: New file.
14076
14077 2004-09-30  Simon Josefsson  <jas@extundo.com>
14078
14079         * m4/snprintf.m4: New file.
14080
14081 2004-09-30  Simon Josefsson  <jas@extundo.com>
14082
14083         * lib/snprintf.h, lib/snprintf.c: New files.
14084
14085 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14086
14087         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
14088         (hol_entry_help): Never translate an empty string.
14089         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
14090         * lib/argp.h (OPTION_NO_TRANS): New option.
14091
14092 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14093
14094         * modules/argp (Maintainer): Replace Simon Josefsson
14095         by Sergey Poznyakoff.
14096
14097 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14098
14099         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
14100         changes merged back into glibc.
14101
14102 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14103
14104         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
14105
14106 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
14107
14108         * lib/xvasprintf.c: Include xalloc.h.
14109         (xvasprintf): Use xalloc_die, not xmalloc_die.
14110
14111 2004-09-29  Bruno Haible  <bruno@clisp.org>
14112
14113         * modules/alloca-opt: New file, derived from modules/alloca.
14114         * modules/allocsa: Depend on alloca-opt instead of alloca.
14115         * modules/setenv: Likewise.
14116         * modules/vasnprintf: Likewise.
14117         * MODULES.html.sh: Add alloca-opt.
14118
14119 2004-09-28  Simon Josefsson  <jas@extundo.com>
14120
14121         * gnulib-tool: New parameter --lgpl, to asseert that modules are
14122         LGPL, and to replace license template from GPL to LGPL.
14123
14124 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14125
14126         * modules/dummy: Change license to LGPL.
14127
14128 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14129
14130         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
14131
14132 2004-09-24  Simon Josefsson  <jas@extundo.com>
14133
14134         * modules/minmax (License): Change from GPL to LGPL.
14135
14136 2004-09-23  Simon Josefsson  <jas@extundo.com>
14137
14138         * gnulib-tool (--import): Typo.
14139
14140 2004-09-23  Simon Josefsson  <jas@extundo.com>
14141
14142         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
14143
14144 2004-09-22  Bruno Haible  <bruno@clisp.org>
14145
14146         * modules/*: Add 'License' field.
14147         * gnulib-tool: Accept --extract-license option.
14148         (func_get_license): New function.
14149
14150 2004-09-21  Bruno Haible  <bruno@clisp.org>
14151
14152         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
14153         Reported by Simon Josefsson.
14154
14155 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
14158         gl_AC_TYPE_LONG_LONG.
14159
14160 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14161
14162         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
14163
14164 2004-09-18  Simon Josefsson  <jas@extundo.com>
14165         and  Paul Eggert  <eggert@cs.ucla.edu>
14166
14167         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
14168         calls with autoreconf.  Define GL_LIB.
14169
14170 2004-09-14  Karl Berry  <karl@gnu.org>
14171
14172         * config/srclist.txt: unsync setenv.c, sigh.
14173
14174 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14175
14176         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
14177         Problem reported by Bruno Haible in:
14178         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
14179
14180 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14181
14182         * config/srclist.txt: Comment out argp-pvh.c.
14183
14184 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14185
14186         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
14187         in case some system header has #define'd it.  Problem reported by
14188         Soeren D. Schulze in
14189         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
14190
14191 2004-09-09  Karl Berry  <karl@gnu.org>
14192
14193         * regex.[ch]: delete from the root.  These were supposed to be
14194                 synced with emacs cvs, but this has not happened for about
14195                 a year, and anyway nothing else uses emacs regex.[ch].
14196                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
14197                 lib/regex[.ch] is untouched.
14198
14199 2004-09-09  Bruno Haible  <bruno@clisp.org>
14200
14201         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
14202
14203 2004-09-09  Bruno Haible  <bruno@clisp.org>
14204
14205         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
14206         modifications.
14207         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
14208
14209 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
14210
14211         * modules/xvasprintf: New file.
14212         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
14213
14214 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
14215
14216         * lib/xvasprintf.h: New file.
14217         * lib/xvasprintf.c: New file.
14218         * lib/xasprintf.c: New file.
14219
14220 2004-09-08  Bruno Haible  <bruno@clisp.org>
14221
14222         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
14223
14224 2004-09-08  Bruno Haible  <bruno@clisp.org>
14225
14226         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
14227         length is > INT_MAX.
14228         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
14229         more.
14230
14231 2004-09-08  Bruno Haible  <bruno@clisp.org>
14232
14233         * lib/stdint_.h: New file, taken from GNU clisp.
14234
14235 2004-09-08  Bruno Haible  <bruno@clisp.org>
14236             Oskar Liljeblad  <oskar@osk.mine.nu>
14237
14238         * modules/stdint: New file.
14239         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
14240
14241 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14242
14243         Import from coreutils.
14244         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
14245         strings on unbounded length.  alloca's performance benefits aren't
14246         that important here.
14247         (V_STRDUP): Remove.
14248         (parse_with_separator): New function, with most of the internals
14249         of the old parse_user_spec.  Allow user to omit both user and group,
14250         for compatibility with FreeBSD.
14251         Clone only the user name, not the entire spec.
14252         Do not set *uid, *gid unless entirely successful.
14253         Avoid memory leak in some failing cases.
14254         Fix regression for USER.GROUP reported by Dmitry V. Levin in
14255         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
14256         (parse_user_spec): Rewrite to use parse_with_separator.
14257
14258 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14259
14260         * modules/userspec: Don't depend on alloca.
14261
14262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14263
14264         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
14265
14266 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14267
14268         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
14269         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
14270         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
14271
14272 2004-08-16  Simon Josefsson  <jas@extundo.com>
14273
14274         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
14275         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
14276         Add --dry-run for --import.
14277         Let user provided command line parameters override configure.ac
14278         settings.
14279
14280 2004-08-12  Simon Josefsson  <jas@extundo.com>
14281
14282         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
14283         as discussed with Paul Eggert in threads rooted at
14284         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
14285         and
14286         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
14287         Before, the test was empty, and relied on ELIDE_CODE in source
14288         code.)
14289         (gl_PREREQ_GETOPT): New macro.
14290         (gl_GETOPT): Use them.
14291
14292 2004-08-12  Simon Josefsson  <jas@extundo.com>
14293
14294         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
14295         * lib/getopt_.h: Renamed from getopt.h.
14296
14297 2004-08-12  Simon Josefsson  <jas@extundo.com>
14298
14299         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
14300         Change default library name from libfoo to libgnu.
14301         Now, if you have a configure.ac that says:
14302                 gl_SOURCE_BASE(gl)
14303                 gl_M4_BASE(gl/m4)
14304                 gl_MODULES(error getopt etcetera)
14305                 gl_INIT
14306         you can import all you need by running:
14307                 ../gnulib/gnulib-tool --import
14308
14309         * modules/getopt (Files): Rename getopt.h to getopt_.h.
14310         (Makefile.am): Rewrite, use logic from argz.
14311         (Include): Use <getopt.h> instead of "getopt.h".
14312
14313 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14314
14315         * modules/argp (Files): Add m4/unlocked-io.m4.
14316         (Depends-on): Add extensions.
14317
14318 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14319
14320         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
14321         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
14322         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
14323         Check for program_invocation_name, program_invocation_short_name,
14324         flockfile, funlockfile, features.h, _getopt_long_only_r.
14325
14326 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14327
14328         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
14329         its complicated substitute.
14330         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
14331         and program_invocation_name.
14332         (__argp_basename) [!_LIBC]: Remove; the only use was
14333         replaced by its body.
14334         (__argp_short_program_name): Change condition from
14335         !defined __argp_short_program_name to
14336         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
14337         to match argp-namefrob.h.
14338         (__argp_failure): Don't assume strerror_r returns char *.
14339         * lib/argp-parse.c (N_): Define unconditionally.
14340         (argp_default_options): Fill out initializers with 0 to avoid
14341         gcc warnings.
14342
14343 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
14346         getopt1.c.
14347
14348 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14349
14350         Merge from coreutils.
14351
14352         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
14353
14354         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
14355         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
14356
14357 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14358
14359         Merge from coreutils.
14360
14361         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
14362         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
14363         for Reliant Unix 5.43.
14364
14365         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
14366         (union fooround): Use uintmax_t, not long int.
14367         The rest is a merge from libc:
14368         [defined _LIBC]: Include <shlib-compat.h>.
14369         (_obstack) [defined _LIBC]: Remove after 2.3.4.
14370
14371         * lib/settime.c (settime): Recode to avoid warning with
14372         Sun Forte C 6U2.
14373
14374         * lib/strverscmp.c: Convert to UTF-8.
14375
14376 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14377
14378         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
14379         m4/uintmax_t.m4.
14380
14381 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         * modules/xalloc-die: New file.
14384         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
14385
14386         * modules/md5 (Files): Add m4/uint32_t.m4.
14387         * modules/sha1: Renamed from modules/sha.
14388         (Files):
14389         Rename lib/sha.h to lib/sha1.h.
14390         Rename lib/sha.c to lib/sha1.c.
14391         Rename m4/sha.m4 to m4/sha1.m4.
14392         (lib_SOURCES): Likewise.
14393         (configure.ac): Rename gl_SHA to gl_SHA1.
14394         (Include): sha.h -> sha1.h.
14395
14396 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14397
14398         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
14399         * m4/sha1.m4: Renamed from sha.m4.
14400         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
14401
14402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14403
14404         * lib/obstack.h (obstack_empty_p):
14405         Don't assume that chunk->contents is suitably aligned.
14406         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
14407         Likewise. Problem reported by Benno in
14408         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
14409
14410         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
14411         readable.  This could be improved further but it'd take some work.
14412
14413 2004-08-08  Simon Josefsson  <jas@extundo.com>
14414
14415         * modules/xgethostname (Depends-on): Remove exit and error (not
14416         used).
14417
14418         * modules/getpass-gnu: Add getpass.h.
14419         (Depends-on): Add stdbool.
14420         * modules/getpass: Add getpass.h.
14421
14422 2004-08-08  Simon Josefsson  <jas@extundo.com>
14423
14424         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
14425         Check getpass declaration.
14426
14427 2004-08-08  Simon Josefsson  <jas@extundo.com>
14428
14429         * lib/xgethostname.c: Don't include error.h (not used).
14430
14431         * lib/getpass.h: Add.
14432         * lib/getpass.c: Include getpass.h first.
14433
14434 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         * lib/xalloc-die.c: New file.
14437         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
14438         All uses removed.
14439         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
14440         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
14441         xalloc-die.c.
14442         (_, N_, xalloc_die): Move to xalloc-die.c.
14443         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
14444         so that we needn't mess with xalloc_msg_memory_exhausted.
14445
14446         * lib/sha1.h: Renamed from sha.h.
14447         (SHA1_H): Renamed from _SHA_H.
14448         (sha1_ctx): Renamed from sha_ctx.
14449         (sha1_init_ctx): Renamed from sha_init_ctx.
14450         (sha1_process_block): Renamed from sha_process_block.
14451         (sha1_process_bytes): Renamed from sha_process_bytes.
14452         (sha1_finish_ctx): Renamed from sha_finish_ctx.
14453         (sha1_read_ctx): Renamed from sha_read_ctx.
14454         (sha1_stream): Renamed from sha_stream.
14455         (sha1_buffer): Renamed from sha_buffer.
14456         * lib/sha1.c: Likewise; renamed from sha.c.
14457         Do not include <sys/types.h>.
14458         Include <stddef.h> rather than <stdlib.h>.
14459
14460 2004-08-08  Bruno Haible  <bruno@clisp.org>
14461
14462         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
14463         FILESYSTEM_PREFIX_LEN.
14464         * lib/progreloc.c: Likewise.
14465         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
14466
14467 2004-08-06  Simon Josefsson  <jas@extundo.com>
14468
14469         * modules/progname (Depends-on): Don't depend on stdbool.
14470
14471 2004-08-06  Simon Josefsson  <jas@extundo.com>
14472
14473         * modules/getsubopt: New file.
14474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14475         getsubopt.
14476
14477 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         More merge from coreutils.
14480
14481         * m4/utimens.m4, m4/utimecmp.m4: New files.
14482         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
14483         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
14484         prereq.m4, sha.m4: Import changes from coreutils.
14485
14486 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14487
14488         More merge from coreutils.
14489         * modules/raise, modules/readtokens0, modules/utimens:
14490         * modules/utimecmp, module/xnanosleep: New files.
14491         * modules/strftime: Add lib/strftime.h.
14492         Change include from <time.h> to "strftime.h".
14493         * modules/yesno: Add lib/yesno.h.
14494         * modules/backupfile: Remove lib/addext.c.
14495         * modules/euidaccess: Add stat-macros.h.
14496         * modules/canonicalize, modules/euidaccess,
14497         modules/filemode, modules/lchown, modules/makepath,
14498         modules/rmdir, modules/stat: Likewise.
14499
14500 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14501
14502         Merge from tar.
14503         * lib/argp-help.c (make_hol, hol_append): Don't assume that
14504         SIZE_MAX is a valid preprocessor constant.
14505         (__argp_basename): Change from "#ifndef _LIBC"
14506         to "#ifndef __argp_short_program_name", so that
14507         we don't compile these functions for tar.
14508
14509         More merges from coreutils.
14510         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
14511         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
14512         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
14513         * lib/addext.c: Remove; no longer needed.
14514         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
14515         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
14516         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
14517         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
14518         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
14519         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
14520         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
14521         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
14522         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
14523         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
14524         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
14525         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
14526         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
14527         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
14528         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
14529         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
14530         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
14531         Import changes from coreutils.
14532
14533 2004-08-05  Simon Josefsson  <jas@extundo.com>
14534
14535         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
14536
14537 2004-08-05  Simon Josefsson  <jas@extundo.com>
14538
14539         * m4/getsubopt.m4: New file.
14540
14541 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14542
14543         Merge from coreutils.
14544
14545         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
14546         * m4/getcwd-path-max.m4: New files.
14547
14548         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
14549         FILESYSTEM_PREFIX_LEN ->
14550         FILE_SYSTEM_PREFIX_LEN.
14551         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
14552         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
14553         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
14554         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
14555
14556         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
14557         prerequisite modules now handle the DOS stuff.
14558         Don't check for unistd.h.
14559
14560 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         Merge from coreutils.
14563
14564         * lib/.gdb-history: Remove; this doesn't belong here.
14565
14566         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
14567         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
14568         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
14569         * lib/getcwd.c: New files.
14570
14571         * lib/dirname.h: Include <stdbool.h>.
14572         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
14573         for consistency with POSIX terminology.  All uses changed.
14574         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
14575         (strip_trailing_slashes): Use bool for booleans.
14576         * lib/stripslash.c (strip_trailing_slashes): Likewise.
14577
14578         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
14579         sometimes returns a positive errno value even when it succeeds.
14580         (print_errno_message) [!LIBC]: Fall back on strerror if
14581         __strerror_r fails.
14582
14583         * lib/path-concat.c (mempcpy): Don't define if a system header defines
14584         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
14585         (longest_relative_suffix): New function.
14586         (path_concat): Use it.  Assume first argument is not NULL.
14587         Port to DOS.  Omit redundant separators.
14588         Report an error instead of returning NULL.
14589         Use mempcpy instead of memcpy.
14590         (xpath_concat): Remove: not declared or used.
14591
14592         * lib/same.h: Include <stdbool.h>
14593         (same_name): Return bool, not int.
14594         * lib/same.c (same_name): Likewise.
14595         (errno): Don't declare; we assume C89 or better now.
14596
14597         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
14598         if not already defined.
14599
14600         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
14601         * lib/dup-safer.c (errno): Likewise.
14602
14603 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14604
14605         Merge from coreutils.
14606         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
14607         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
14608         * modules/path-concat: Don't depend on strdup.
14609
14610 2004-08-03  Simon Josefsson  <jas@extundo.com>
14611
14612         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
14613         * lib/progname.h: Don't include stdbool.h.
14614
14615 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14616
14617         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
14618         * MODULES.html.sh (func_all_modules): Remove fatal.
14619
14620 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14621
14622         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
14623
14624 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14625
14626         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
14627         working.
14628
14629 2004-08-02  Simon Josefsson  <jas@extundo.com>
14630
14631         * lib/getsubopt.h: New file, with comments from Bruno Haible.
14632         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
14633         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
14634
14635 2004-08-01  Simon Josefsson  <jas@extundo.com>
14636
14637         * lib/xgetdomainname.c: Include stdlib.h, for free().
14638
14639 2004-07-19  Bruno Haible  <bruno@clisp.org>
14640
14641         * MODULES.html.sh (func_all_modules): Add dummy.
14642
14643 2004-07-16  Simon Josefsson  <jas@extundo.com>
14644
14645         * modules/dummy: New file.
14646
14647 2004-07-16  Simon Josefsson  <jas@extundo.com>
14648
14649         * lib/dummy.c: New file.
14650
14651 2004-07-16  Bruno Haible  <bruno@clisp.org>
14652
14653         * lib/backupfile.h: Add extern "C" for C++.
14654         * lib/closeout.h: Likewise.
14655         * lib/copy-file.h: Likewise.
14656         * lib/findprog.h: Likewise.
14657         * lib/full-write.h: Likewise.
14658         * lib/pathname.h: Likewise.
14659         * lib/progname.h: Likewise.
14660         * lib/stpcpy.h: Likewise.
14661         * lib/stpncpy.h: Likewise.
14662         * lib/strcase.h: Likewise.
14663         * lib/strstr.h: Likewise.
14664         * lib/xalloc.h: Likewise.
14665
14666         * lib/mbswidth.h: Add extern "C" for C++.
14667         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
14668
14669 2004-07-13  Robert Millan  <robertmh@gnu.org>
14670
14671         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
14672
14673 2004-07-09  Simon Josefsson  <jas@extundo.com>
14674
14675         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
14676         failed without this.)
14677
14678 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14679
14680         * modules/chown (Files): Add lib/fchown-stub.c, since
14681         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
14682
14683 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         * lib/fchown-stub.c: New file.
14686
14687 2004-06-24  Jim Meyering  <jim@meyering.net>
14688
14689         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
14690
14691 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14692
14693         * modules/argz: Omit "#include".
14694
14695         * MODULES.html.sh (func_all_modules): Add calloc, to match
14696         2004-06-01 addition of calloc module.
14697
14698 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14699
14700         * m4/argz.m4: New file, which is autoupdated from libtool.
14701
14702 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14703
14704         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
14705         libtool.
14706
14707 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14708
14709         * config/srclist-update: Don't insist on "USA." before the
14710         close-comment, as libtool omits the period and puts the */ on a
14711         separate line.
14712         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
14713         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
14714
14715 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
14716
14717         * modules/argz: New file.
14718         * MODULES.html.sh (func_all_modules): Add argz.
14719
14720 2004-06-12  Jim Meyering  <jim@meyering.net>
14721         and  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         * modules/hash (Files): Add lib/xalloc.h.
14724         * modules/pipe (Depends-on): Add wait-process.
14725         * modules/stat (Depends-on): Add xalloc.
14726         * modules/userspec (Files): Add lib/userspec.h.
14727         * modules/xstrto
14728
14729         Upgrade from gettext-0.13.
14730         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
14731         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
14732         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
14733
14734 2004-06-10  Jim Meyering  <jim@meyering.net>
14735
14736         * lib/calloc.c: New file.
14737
14738 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14739
14740         * lib/getdate.y (yylex): Allow space between sign and number.
14741         Problem reported by Dan Jacobson.
14742
14743 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14744
14745         Merge from coreutils CVS.
14746
14747         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
14748         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
14749         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
14750         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
14751         xstrtol.m4: Fix copyright date and/or serial number.
14752
14753         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
14754         See if we need an fchown replacement.
14755         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
14756         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
14757         and use the replacement function if we detect either defect.
14758
14759         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
14760         gl_UTIMECMP.
14761
14762 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14763         and  Jim Meyering  <jim@meyering.net>
14764
14765         Merge from coreutils CVS.
14766
14767         * lib/stat-macros.h: New file, with contents from file-type.h
14768         and coreutils' system.h.
14769         * lib/file-type.c: Include "stat-macros.h".
14770         * lib/file-type.h (file_type): Move all macro definitions to new file,
14771         stat-macros.h.
14772
14773         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
14774         Wrap old code with this conditional.
14775         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
14776         function that does not dereference symlinks.
14777         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
14778
14779         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
14780         dependency problems.
14781         (xreadlink): Accept new arg SIZE, for efficiency.
14782         All decls and uses changed.
14783         * lib/xreadlink.h: Include <stddef.h>, for size_t.
14784
14785         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
14786         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
14787
14788         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
14789         sysexits.h.
14790
14791 2004-06-01  Jim Meyering  <jim@meyering.net>
14792
14793         * m4/calloc.m4: New file.
14794
14795 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14796
14797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
14798         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
14799         Also, fix a typo in a diagnostic.
14800
14801 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14802
14803         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
14804         or AC_FUNC_REALLOC.
14805
14806 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14807
14808         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
14809         macros to be defined.
14810         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
14811         the allocator returns NULL because the requested size is zero.
14812
14813 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
14816         var.  Add comment explaining why libc still defines it.  This
14817         merges the following patch from glibc:
14818         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
14819
14820 2004-05-20  Andreas Schwab  <schwab@suse.de>
14821
14822         * m4/free.m4: Replace free if it not known to work, not the other
14823         way round.
14824
14825 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14826
14827         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
14828         present in glibc since revision 1.1 of this file.
14829         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
14830         obstack_alignment_mask, obstack_alloc, obstack_base,
14831         obstack_blank, obstack_blank_fast, obstack_chunk_size,
14832         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
14833         obstack_grow0, obstack_init, obstack_int_grow,
14834         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
14835         obstack_next_free, obstack_object_size, obstack_ptr_grow,
14836         obstack_ptr_grow_fast, obstack_room): Remove declarations of
14837         nonexistent functions.
14838
14839 2004-05-18  Karl Berry  <karl@gnu.org>
14840
14841         * config/srclist.txt: break link for vasnprintf.c.
14842
14843 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14844
14845         Port obstack to the AS/400, where pointers are 16 bytes wide and
14846         you cannot cast an integer to a valid pointer.  This patch is
14847         currently waiting to be integrated into glibc; see
14848         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
14849
14850         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
14851         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
14852         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
14853         (struct obstack): temp member is now a union of a pointer and
14854         an integer, instead of an integer.  All integer uses changed.
14855         This does not affect the physical layout of struct obstack,
14856         except on hosts (like the AS/400) where the size or alignment of
14857         void * is greater than that of ptrdiff_t.
14858         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
14859         __STDC__)]: Store temporary in pointer member of union, not
14860         integer member.
14861         * lib/obstack.c: Include <stddef.h>, for offsetof.
14862         (struct fooalign): Remove; it doesn't need a name.
14863         (union fooround): Change double to long double, and add void *.
14864         (DEFAULT_ALIGNMENT): Use offsetof to compute.
14865         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
14866         not a macro.  Hence the values are always int; so remove all
14867         casts-to-int in uses.
14868
14869 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14870
14871         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
14872         we can get this patch merged into glibc.
14873
14874 2004-05-17  Derek R. Price  <derek@ximbiot.com>
14875             Paul Eggert  <eggert@cs.ucla.edu>
14876
14877         * m4/argp: Depend on alloca.
14878
14879 2004-05-17  Derek R. Price  <derek@ximbiot.com>
14880             Paul Eggert  <eggert@cs.ucla.edu>
14881
14882         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
14883         freecoding.
14884
14885 2004-05-17  Bruno Haible  <bruno@clisp.org>
14886
14887         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
14888         precision that consists of a '.' followed by an empty digit string.
14889         Patch by Tor Lillqvist <tml@iki.fi>.
14890
14891 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
14894         for backward compatibility with older code.  We need our own
14895         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
14896         it under some other name, and our alloca.h will define it.
14897
14898 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14899             Derek Price  <derek@ximbiot.com>
14900
14901         * lib/alloca.c: Include <alloca.h>, to get our interface.
14902         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
14903         include <alloca.h> first.  Use C89 prototype for alloca; this
14904         requires including <stddef.h> for size_t.  Use extern "C" if C++.
14905         Use #elif for simplicity, since we can assume C89 now.
14906         Don't try to source the system alloca.h since it will not be found
14907         and to prevent recursively including its replacement.
14908         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
14909         * lib/regex.c: Likewise.
14910
14911 2004-05-16  Derek Price  <derek@ximbiot.com>
14912             Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         getline cleanup.  This changes the getndelim2 API: both order of
14915         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
14916         no delimiter).
14917
14918         * lib/getline.c: Don't include stddef.h or stdio.h, since our
14919         interface does that.
14920         (getline): Always use getdelim, so that we don't have two
14921         copies of this code.
14922         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
14923         if available.
14924         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
14925         (GETNDELIM2_MAXIMUM): New macro.
14926         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
14927         instead of the old practice of delim2==0.  All callers changed.
14928         Return -1 on overflow, instead of returning junk.
14929         Do not set *linesize unless allocation succeeds.
14930         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
14931         that we include sys/types.h.
14932         * lib/getnline.h: Likewise.
14933         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
14934         (getndelim2): Reorder arguments.
14935         * lib/getnline.c (getnline, getndelim):
14936         Don't discard the NMAX argument.
14937         (getnline): Invoke getndelim, to avoid code duplication.
14938         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
14939         of (size_t) -1 by callers of the getnline family.
14940
14941 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14942
14943         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
14944         Check for gettimeofday.
14945         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
14946         Check for settimeofday, stime.
14947
14948 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14949
14950         * lib/nanosleep.c (suspended): Change its type from int to
14951         sig_atomic_t volatile.
14952         (first_call): Make it private to rpl_nanosleep, and have it
14953         be zero initially as that's a bit faster.
14954         (my_usleep): Round up fractional times instead of truncating them,
14955         as this is the usual meaning for 'sleep'.
14956
14957         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
14958         doesn't work.
14959         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
14960         (ENOSYS): Define if not defined.
14961         (settime): Fall back on stime if it exists and settimeofday fails.
14962         But don't bother with fallbacks if a method fails with errno == EPERM.
14963
14964 2004-05-11  Jim Meyering  <jim@meyering.net>
14965
14966         Prior to this change, the save_cwd caller required read access to the
14967         current directory on most systems (ones with the fchdir function).
14968
14969         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
14970         fails, try write-only, and finally, resort to using xgetcwd.
14971
14972 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14973
14974         * lib/obstack.c, obstack.h: Import changes from libc.
14975
14976 2004-04-28  Bruno Haible  <bruno@clisp.org>
14977
14978         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
14979         also implicitly appends .exe to executables.
14980         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
14981         accepts Windows pathnames.
14982         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
14983         Treat Cygwin like Windows, since it now accepts Windows pathnames.
14984         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
14985         Treat Cygwin like Windows, since it now accepts Windows pathnames.
14986         Reported by Derek Robert Price <derek@ximbiot.com>.
14987
14988 2004-04-21  Karl Berry  <karl@gnu.org>
14989
14990         * config/srclist.txt (localcharset.c): break sync.
14991
14992 2004-04-20  Paul Eggert  <eggert@twinsun.com>
14993
14994         * m4/host-os.m4: Add a copyright notice.
14995
14996 2004-04-20  Jim Meyering  <jim@meyering.net>
14997
14998         Change UTILS_ to gl_ in AC_DEFINE'd names.
14999         Change utils_- and jm_-prefixed variables, too.
15000         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
15001         UTILS_FUNC_MKDIR_TRAILING_SLASH.
15002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
15003
15004         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
15005         Don't emit trailing blanks.
15006         Also rename jm_-prefixed variables to have gl_ prefix.
15007
15008         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
15009         Also rename jm_-prefixed variables to have gl_ prefix.
15010
15011         * m4/jm-macros.m4: Reflect the renamings.
15012         * m4/prereq.m4: Likewise.
15013
15014 2004-04-20  Jim Meyering  <jim@meyering.net>
15015
15016         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
15017         memory.
15018
15019 2004-04-20  Jim Meyering  <jim@meyering.net>
15020             Bruno Haible  <bruno@clisp.org>
15021
15022         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
15023         memory when realloc fails.
15024
15025 2004-04-19  Jim Meyering  <jim@meyering.net>
15026
15027         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
15028         now that readutmp.c may call `free (0)'.
15029
15030 2004-04-19  Bruno Haible  <bruno@clisp.org>
15031
15032         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
15033         * m4/inttypes_h.m4: Likewise.
15034         * m4/stdint_h.m4: Likewise.
15035         * m4/intmax_t.m4: Likewise.
15036         * m4/uintmax_t.m4: Likewise.
15037
15038 2004-04-18  Jim Meyering  <jim@meyering.net>
15039
15040         * m4/prereq.m4: Don't forbid jm_ prefix.
15041
15042         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
15043         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
15044         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
15045         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
15046         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
15047         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
15048         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
15049         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
15050         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
15051         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
15052         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
15053         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
15054         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
15055         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
15056         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
15057         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
15058         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
15059         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
15060         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
15061
15062 2004-04-18  Jim Meyering  <jim@meyering.net>
15063
15064         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
15065         failure, don't leak memory and do call END_UTMP_ENT.
15066
15067 2004-04-16  Jim Meyering  <jim@meyering.net>
15068
15069         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
15070         coreutils' stat program.
15071         (gl_PREREQ): Don't require jm_PREREQ_STAT.
15072
15073 2004-04-11  Paul Eggert  <eggert@twinsun.com>
15074
15075         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
15076         C89.
15077         (CHAR_BIT): Remove, since we assume C89.
15078         Include <stdint.h> if available, as per current Autoconf CVS advice.
15079
15080 2004-03-31  Jim Meyering  <jim@meyering.net>
15081
15082         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
15083         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
15084         * m4/xalloc.m4: Likewise.
15085
15086 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15087
15088         Merge from coreutils.
15089
15090         * m4/inttostr.m4: New file.
15091         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
15092         Require AM_STDBOOL_H and gl_TIMESPEC instead.
15093         Require gl_CLOCK_TIME.
15094         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
15095
15096 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15097
15098         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
15099         not bool, to be more consistent with Unix conventions.
15100         Suggested by Bruno Haible.
15101
15102         Merge from coreutils.
15103
15104         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
15105         * lib/umaxtostr.c: New files.
15106
15107         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
15108         the usual <time.h> dance.
15109         (get_date): Change signature to support fractional time stamps.
15110         All callers changed.
15111         * lib/getdate.y: Include "getdate.h" first, as we can now
15112         assume C89 and don't need to worry about 'const'.
15113         Similarly, include "unlocked-io.h" near start, not in middle.
15114         Include <limits.h>.
15115         (textint.value): Use long int rather than int.
15116         (textint.digits): Use size_t rather than int.
15117         (BILLION, LOG10_BILLION): New constants.
15118         (parser_control): New member rel_ns.  Members day_ordinal,
15119         time_zone, month, day, hour, minutes, rel_year, rel_month,
15120         rel_day, rel_hour, rel_minutes, rel_seconds
15121         are now long int, not int.  Member seconds is now struct timespec,
15122         not int.  New member timespec_seen.  Members dates_seen, days_seen,
15123         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
15124         not int.
15125         (%union.intval): Now long int, not int.
15126         New member timespec.
15127         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
15128         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
15129         (spec): Now is a timespec or an item list.
15130         (timespec, items): New nonterminals.
15131         (time, rel, relunit, number, get_date):
15132         Add support for fractional seconds.
15133         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
15134         (gmtime, localtime, mktime): Remove decls; not needed with C89.
15135         (to_hour): First arg is now long int, not int.
15136         (to_year): Returns long int, not int.
15137         Don't treat year -70 like 70.
15138         (tm_diff): Returns long int, not int.
15139         (lookup_word): Use bool instead of int when appropriate.
15140         (yylex): Use size_t for count, not int.
15141         Detect overflow when parsing large integer constants.
15142         Add support for fractions.
15143         (get_date): Make pointers 'const' if possible.
15144         Use more-portable code to detect integer overflow.
15145         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
15146         Don't use ctime; it's not reliable if the year has >4 digits.
15147
15148         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
15149         This is for compatibility with BSD.
15150
15151         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
15152         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
15153         From coreutils' system.h.
15154
15155         * lib/userspec.c: Don't include "posixver.h".
15156         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
15157         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
15158         compatible extension.  Simplify code by removing a boolean int
15159         that was always nonzero if a string was nonnull.
15160
15161 2004-03-30  Jim Meyering  <jim@meyering.net>
15162
15163         Merge from coreutils.
15164
15165         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
15166         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
15167         on some systems one must include <grp.h> before it.
15168         Reported by Christian Krackowizer.
15169
15170 2004-03-30  Jim Meyering  <jim@meyering.net>
15171
15172         Merge from coreutils.
15173
15174         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
15175
15176         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
15177         an empty input stream.
15178
15179         * lib/readtokens.c: Include <stdbool.h>.
15180         (readtoken): Use `size_t' rather than int/long.
15181         All callers adjusted.
15182         Use `bool' rather than `int' where appropriate.
15183         Use memset rather than an explicit loop.
15184         Use x2nrealloc rather than xrealloc.
15185         Allow the use of `\0' as a delimiter.
15186         (readtokens): Likewise.
15187         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
15188
15189 2004-03-30  Jim Meyering  <jim@meyering.net>
15190
15191         * m4/realloc.m4: Remove file, since now it does no more than
15192         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
15193         the `configure.ac' section of module/realloc.
15194         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
15195
15196 2004-03-30  Bruno Haible  <bruno@clisp.org>
15197
15198         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
15199         nonnull.
15200
15201 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15202
15203         Merge changes to getloadavg.c from coreutils and Emacs.
15204
15205         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
15206         Define to an expression, not to the empty string.
15207         Include cloexec.h and xalloc.h.
15208         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
15209         Use set_cloexec_flag rather than rolling our own.
15210         * lib/cloexec.c, lib/cloexec.h: New files.
15211
15212 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15213
15214         * m4/cloexec.m4: New file.
15215
15216 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15217
15218         * lib/getopt.h: Sync with libc CVS.
15219
15220 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15221             Bruno Haible  <bruno@clisp.org>
15222
15223         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
15224         mbswidth.
15225
15226 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15227             Bruno Haible  <bruno@clisp.org>
15228
15229         * lib/mbswidth.h: Include <wchar.h> only if
15230         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
15231         <wchar.h>.
15232         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
15233
15234 2004-03-09  Paul Eggert  <eggert@twinsun.com>
15235
15236         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
15237         Sync with libc CVS.
15238         * lib/getopt_int.h: New file, also synced from libc.
15239
15240 2004-03-09  Paul Eggert  <eggert@twinsun.com>
15241
15242         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
15243         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
15244         Bring back getopt.c, getopt.h, getopt1.c.
15245
15246 2004-03-07  Paul Eggert  <eggert@twinsun.com>
15247
15248         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
15249         All uses changed.  Check for sa_sigaction member; this fixes
15250         a bug first reported by Jason Andrade in
15251         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15252
15253 2004-03-07  Paul Eggert  <eggert@twinsun.com>
15254
15255         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
15256         '#if' expressions.  Unlike the code it replaces, it does not
15257         depend on (defined _SC_PAGESIZE).  However, it does depend on
15258         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
15259         first reported by Jason Andrade in
15260         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15261
15262 2004-02-25  Simon Josefsson  <jas@extundo.com>
15263
15264         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
15265
15266 2004-02-25  Simon Josefsson  <jas@extundo.com>
15267
15268         * lib/strdup.h: New file.
15269         * lib/strdup.c: Include it.
15270         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
15271         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
15272
15273 2004-02-23  Karl Berry  <karl@gnu.org>
15274
15275         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
15276         (from fencepost.gnu.org:/gd/gnuorg).
15277
15278 2004-02-23  Karl Berry  <karl@gnu.org>
15279
15280         * config/srclistvars.sh (GNUORG) [karl]: redefine.
15281         * config/srclist.txt: add maintain/standards documents.
15282
15283 2004-02-18  Bruno Haible  <bruno@clisp.org>
15284
15285         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
15286         Reported by Derek Robert Price <derek@ximbiot.com>.
15287
15288 2004-02-16  Karl Berry  <karl@gnu.org>
15289
15290         * config/mkinstalldirs, install-sh: update from automake.
15291
15292 2004-02-06  Karl Berry  <karl@gnu.org>
15293
15294         * m4/po.m4: update from gettext 0.14.1.
15295
15296 2004-02-06  Karl Berry  <karl@gnu.org>
15297
15298         * lib/config.charset: update from gettext 0.14.1.
15299
15300 2004-02-05  Paul Eggert  <eggert@twinsun.com>
15301
15302         Add comments and code, prompted by suggestions from Bruno Haible
15303         for sh-quote.
15304         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
15305         describing the enum quoting_style values.
15306         * lib/quotearg.c (quotearg_alloc): New function.
15307         (quotearg_buffer_restyled): Treat lone { and } as special.
15308         Treat = as special.  Work around bug with older shells
15309         that "see" a '\' that is really the 2nd byte of a multibyte char.
15310         Quote empty string with shell_quoting_style.
15311
15312 2004-02-03  Bruno Haible  <bruno@clisp.org>
15313
15314         * m4/pipe.m4: New file, from GNU gettext.
15315
15316 2004-02-03  Bruno Haible  <bruno@clisp.org>
15317
15318         * lib/pipe.h: New file, from GNU gettext.
15319         * lib/pipe.c: New file, from GNU gettext.
15320
15321 2004-01-27  Bruno Haible  <bruno@clisp.org>
15322
15323         * m4/execute.m4: New file, from GNU gettext.
15324
15325 2004-01-27  Bruno Haible  <bruno@clisp.org>
15326
15327         * lib/execute.h: New file, from GNU gettext.
15328         * lib/execute.c: New file, from GNU gettext.
15329         * lib/w32spawn.h: New file, from GNU gettext.
15330
15331 2004-01-24  Paul Eggert  <eggert@twinsun.com>
15332
15333         Merge from diffutils.
15334
15335         * lib/file-type.c (file_type): Add typed memory objects.
15336         * lib/file-type.h (S_TYPEISTMO): New macro.
15337
15338         * lib/c-stack.h (c_stack_action): Remove argv argument.
15339         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
15340         (die): Don't calculate message unless segv_action returns.
15341         (get_stack_location, min_address_from_argv, max_address_from_argv,
15342         volatile stack_base, volatile_stack_size): Remove.
15343         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
15344         that every segmentation violation is a stack overflow.  (Ouch!)
15345         See Debian bug 136249 (still outstanding) for more info about why
15346         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
15347
15348 2004-01-24  Paul Eggert  <eggert@twinsun.com>
15349
15350         Exit-status fix from coreutils.
15351
15352         Use exit_failure consistently in place of EXIT_FAILURE,
15353         so that program exit statuses are consistent on failure.
15354
15355         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
15356         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
15357         * lib/argmatch.h: Comment fix to match the above.
15358         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
15359         Now a macro referring to exit_failure, instead of a separate
15360         variable.  Include "exitfail.h" to get it.
15361         * lib/xstrtol.h: Include "exitfail.h".
15362         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
15363
15364         * lib/long-options.c (parse_long_options): Use prototype
15365         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
15366         for clarity.
15367
15368 2004-01-21  Jim Meyering  <jim@meyering.net>
15369
15370         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
15371         so as not to conflict with a different-sized __mktime_internal
15372         function in GNU libc.
15373         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
15374         Problem building statically-linked `ls' reported by Michael Brunnbauer.
15375
15376 2004-01-20  Karl Berry  <karl@gnu.org>
15377
15378         * config/config.guess: update from config.
15379
15380         * config/srclistvars.sh: GNUWWWLICENSES for karl.
15381
15382 2004-01-20  Bruno Haible  <bruno@clisp.org>
15383
15384         Safer stack allocation.
15385         * lib/setenv.c: Include allocsa.h.
15386         (alloca): Remove fallback definition.
15387         (freea): Remove macro.
15388         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
15389         instead of freea.
15390
15391 2004-01-20  Bruno Haible  <bruno@clisp.org>
15392
15393         * m4/eealloc.m4: New file, from GNU gettext.
15394
15395 2004-01-20  Bruno Haible  <bruno@clisp.org>
15396
15397         * m4/allocsa.m4: New file, from GNU gettext.
15398
15399 2004-01-20  Bruno Haible  <bruno@clisp.org>
15400
15401         * lib/xallocsa.h: New file, from GNU gettext.
15402         * lib/xallocsa.c: New file, from GNU gettext.
15403
15404 2004-01-20  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
15407
15408 2004-01-20  Bruno Haible  <bruno@clisp.org>
15409
15410         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
15411         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
15412         specially.
15413
15414 2004-01-20  Bruno Haible  <bruno@clisp.org>
15415
15416         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
15417         patch.
15418
15419 2004-01-20  Bruno Haible  <bruno@clisp.org>
15420
15421         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
15422
15423 2004-01-20  Bruno Haible  <bruno@clisp.org>
15424
15425         * lib/eealloc.h: New file.
15426
15427 2004-01-20  Bruno Haible  <bruno@clisp.org>
15428
15429         * lib/binary-io.h: Avoid warnings on Cygwin.
15430
15431 2004-01-20  Bruno Haible  <bruno@clisp.org>
15432
15433         * lib/allocsa.h: New file, from GNU gettext.
15434         * lib/allocsa.c: New file, from GNU gettext.
15435
15436 2004-01-18  Karl Berry  <karl@gnu.org>
15437
15438         * doc/gpl.texi, doc/lgpl.texi: new files.
15439
15440 2004-01-18  Karl Berry  <karl@gnu.org>
15441
15442         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
15443         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
15444
15445 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15446
15447         Merge from coreutils.
15448
15449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
15450         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
15451         (gl_DEFAULT_POSIX2_VERSION): Move
15452         the documentation from 'configure' into 'config.hin',
15453         so that 'configure --help' isn't burdened by it and
15454         we don't have to worry about its formatting there.
15455         Reword the documentation so that it's more succinct
15456         and can be run together into a single paragraph.
15457         * m4/same.m4 (gl_SAME): Check for pathconf.
15458
15459 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15460
15461         Merge from coreutils.
15462
15463         * lib/posixver.c: Include posixver.h.
15464
15465         * lib/same.c: Include <stdbool.h>, <limits.h>.
15466         (_POSIX_NAME_MAX): Define if not defined.
15467         (MIN): New macro.
15468         (same_name): If file names are silently truncated, report
15469         that the file names are the same if they are the same after
15470         the silent truncation.
15471
15472         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
15473         conversion function.
15474         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
15475         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
15476         longer needed.
15477
15478 2004-01-15  Jim Meyering  <jim@meyering.net>
15479
15480         Merge from coreutils.
15481
15482         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
15483         if no library is required.
15484         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
15485         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
15486         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
15487         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
15488         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
15489         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
15490         value, $ac_cv_search_crypt, if it's "none required".
15491         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
15492         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
15493         not gl_FUNC_GETLOADAVG.
15494         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
15495         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
15496
15497 2004-01-15  Jim Meyering  <jim@meyering.net>
15498
15499         Merge from coreutils.
15500
15501         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
15502         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
15503         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
15504
15505         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
15506         optional configure-time default.
15507
15508         * lib/version-etc.c (version_etc_copyright): Update copyright date.
15509
15510         * lib/xreadlink.c (xreadlink): Correct outdated comment.
15511
15512 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
15513
15514         Merge from coreutils.
15515
15516         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
15517         value, $ac_cv_search_nanosleep, if it's "none required".
15518
15519 2004-01-14  Paul Eggert  <eggert@twinsun.com>
15520
15521         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
15522         with like-named macro in fnmatch.c.
15523         (EXT): Use an internal constant instead.
15524
15525         Merge fnmatch patches from glibc.
15526         * lib/fnmatch.c (mbsinit): Remove define.
15527         Add libc_hidden_ver (__fnmatch, fnmatch).
15528         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
15529         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
15530
15531 2004-01-14  Karl Berry  <karl@gnu.org>
15532
15533         * config/install-sh: update from automake.
15534
15535 2004-01-13  Karl Berry  <karl@gnu.org>
15536
15537         * config/install-sh: update from automake.
15538
15539 2004-01-09  Karl Berry  <karl@gnu.org>
15540
15541         * config/install-sh: update from automake.
15542
15543 2004-01-05  Karl Berry  <karl@gnu.org>
15544
15545         * config/config.{sub,guess}: update from config.
15546
15547 2003-12-31  Karl Berry  <karl@gnu.org>
15548
15549         * config/depcomp: update from automake.
15550
15551 2003-12-14  Karl Berry  <karl@gnu.org>
15552
15553         * lib/config.charset: update from gettext-runtime.
15554
15555 2003-12-03  Paul Eggert  <eggert@twinsun.com>
15556
15557         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
15558         Bug reported by Alfred M. Szmidt.
15559
15560 2003-12-03  Bruno Haible  <bruno@clisp.org>
15561
15562         * m4/gettext.m4: Upgrade from gettext-0.13.
15563         * m4/po.m4: Upgrade from gettext-0.13.
15564         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
15565         * m4/intmax.m4: New file, from gettext-0.13.
15566         * m4/printf-posix.m4: New file, from gettext-0.13.
15567
15568 2003-11-29  Karl Berry  <karl@gnu.org>
15569
15570         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
15571
15572 2003-11-25  Paul Eggert  <eggert@twinsun.com>
15573             Bruno Haible  <bruno@clisp.org>
15574
15575         * lib/printf-parse.h: Don't include sys/types.h.
15576         (ARG_NONE): New macro.
15577         (char_directive): Change type of *arg_index fields to size_t.
15578         * lib/printf-parse.c: Don't include sys/types.h.
15579         (SSIZE_MAX): Remove macro.
15580         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
15581         Remove unnecessary overflow check.
15582         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
15583         fields.
15584
15585 2003-11-25  Bruno Haible  <bruno@clisp.org>
15586
15587         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
15588
15589 2003-11-25  Bruno Haible  <bruno@clisp.org>
15590
15591         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
15592         gt_TYPE_SSIZE_T.
15593
15594 2003-11-24  Paul Eggert  <eggert@twinsun.com>
15595
15596         * modules/alloca: Remove dependency on xalloc.
15597
15598 2003-11-24  Paul Eggert  <eggert@twinsun.com>
15599
15600         * lib/alloca.c: Remove dependency on xalloc module.
15601         (xalloc_die): Remove.
15602         (memory_full) [!defined emacs]: New macro.
15603         [!defined emacs]: Don't include xalloc.h.
15604         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
15605         address arithmetic overflows.  Change datatypes a bit to avoid
15606         unnecessary casts.
15607
15608 2003-11-22  Jim Meyering  <jim@meyering.net>
15609
15610         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
15611         s/size/size_t/.
15612
15613 2003-11-21  Karl Berry  <karl@gnu.org>
15614
15615         * config/config.{sub,guess}: update from config.
15616
15617 2003-11-18  Karl Berry  <karl@gnu.org>
15618
15619         * config/config.{sub,guess}: update from config.
15620
15621         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
15622
15623 2003-11-17  Paul Eggert  <eggert@twinsun.com>
15624
15625         * README: Mention that S+T cannot overflow if S is the size of
15626         an existing object and T is sufficiently small.
15627
15628 2003-11-17  Jim Meyering  <jim@meyering.net>
15629
15630         On systems without utime and without a utimes function capable of
15631         dealing with a NULL struct utimbuf* argument, this utime replacement
15632         could -- in unusual circumstances -- leak a file descriptor.
15633         * lib/utime.c: Include <unistd.h> and <errno.h>.
15634         (utime_null): Be sure to close `fd' and to preserve errno.
15635         Reported by Geoff Collyer via Arnold Robbins.
15636
15637 2003-11-17  Bruno Haible  <bruno@clisp.org>
15638
15639         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
15640         (Depends-on): Add xsize.
15641
15642 2003-11-17  Bruno Haible  <bruno@clisp.org>
15643
15644         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
15645
15646 2003-11-17  Bruno Haible  <bruno@clisp.org>
15647
15648         * lib/vasnprintf.c (alloca): Remove fallback definition.
15649         (freea): Remove definition.
15650         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
15651         Reported by Paul Eggert.
15652
15653 2003-11-16  Paul Eggert  <eggert@twinsun.com>
15654             Bruno Haible  <bruno@clisp.org>
15655
15656         Protect against address arithmetic overflow.
15657         * lib/printf-args.h: Include stddef.h.
15658         (arguments): Change type of field 'count' to size_t.
15659         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
15660         'unsigned int' where appropriate.
15661         * lib/printf-parse.h: Include sys/types.h.
15662         (char_directive): Change type of *arg_index fields to ssize_t.
15663         (char_directives): Change type of fields 'count', max_*_length to
15664         size_t.
15665         * lib/printf-parse.c: Include sys/types.h and xsize.h.
15666         (SSIZE_MAX): Define fallback value.
15667         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
15668         instead of 'int' where appropriate. Check a_allocated, d_allocated
15669         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
15670         * lib/vasnprintf.c: Include xsize.h.
15671         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
15672         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
15673         overflow. Avoid wraparound when converting a width or precision from
15674         decimal to binary.
15675
15676 2003-11-16  Bruno Haible  <bruno@clisp.org>
15677
15678         Update from GNU gettext.
15679         * lib/printf-parse.c: Generalize to it can be compiled for wide
15680         strings.
15681         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
15682         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
15683         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
15684         SNPRINTF): New macros.
15685         Don't include <alloca.h> if the file is used inside libintl.
15686         (local_wcslen): New function, for Solaris 2.5.1.
15687         (VASNPRINTF): Use it instead of wcslen.
15688
15689 2003-11-16  Bruno Haible  <bruno@clisp.org>
15690
15691         * lib/xsize.h (xmax): New function.
15692         (xsum, xsum3, xsum4): Declare as "pure" functions.
15693
15694 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15695
15696         * modules/xalloc (Files): Undo latest change, since xalloc.h
15697         no longer needs SIZE_MAX or PTRDIFF_MAX.
15698
15699 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15700
15701         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
15702         gl_PTRDIFF_MAX.
15703
15704 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15705
15706         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
15707         "return", to pacify some unknown compiler.  Problem reported
15708         by Joerg Schilling.
15709
15710 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15711
15712         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
15713         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
15714         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
15715         heuristic is just as accurate as far as we know, and it removes a
15716         dependency on size_max.m4 and ptrdiff_max.m4.
15717
15718 2003-11-11  Bruno Haible  <bruno@clisp.org>
15719
15720         * modules/xsize (Files): Add m4/size_max.m4.
15721         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
15722
15723 2003-11-11  Bruno Haible  <bruno@clisp.org>
15724
15725         * m4/size_max.m4: New file.
15726         * m4/ptrdiff_max.m4: New file.
15727         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
15728         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
15729         (gl_XALLOC): Invoke it.
15730
15731 2003-11-11  Bruno Haible  <bruno@clisp.org>
15732
15733         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
15734         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
15735         defined.
15736
15737 2003-11-10  Paul Eggert  <eggert@twinsun.com>
15738
15739         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
15740         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
15741         rejected some allocations of exactly SIZE_MAX - 2 bytes.
15742         From Bruno Haible.
15743         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
15744         not (size_t) -1, since it's defined here.
15745
15746 2003-11-09  Karl Berry  <karl@gnu.org>
15747
15748         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
15749
15750 2003-11-06  Paul Eggert  <eggert@twinsun.com>
15751
15752         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
15753         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
15754         Reject sizes of exactly SIZE_MAX bytes.
15755         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
15756         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
15757
15758 2003-11-05  Bruno Haible  <bruno@clisp.org>
15759
15760         * lib/xsize.h: Include limits.h, to avoid a possible collision with
15761         SIZE_MAX defined in <limits.h> on Solaris.
15762
15763 2003-11-04  Jim Meyering  <jim@meyering.net>
15764
15765         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
15766         variable names, rather than @VAR@.
15767         * modules/poll: Likewise.
15768
15769 2003-11-04  Bruno Haible  <bruno@clisp.org>
15770
15771         * modules/xsize: New file.
15772         * modules/linebreak: Depend on xsize.
15773         * MODULES.html.sh (func_all_modules): Add xsize.
15774
15775 2003-11-04  Bruno Haible  <bruno@clisp.org>
15776
15777         * m4/xsize.m4: New file.
15778
15779 2003-11-04  Bruno Haible  <bruno@clisp.org>
15780
15781         * lib/xsize.h: New file.
15782         * lib/linebreak.c: Include xsize.h.
15783         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
15784         argument for overflow.
15785         Suggested by Paul Eggert.
15786
15787 2003-11-03  Karl Berry  <karl@gnu.org>
15788
15789         * config/config.{guess,sub}: update from config.
15790
15791 2003-11-03  Jim Meyering  <jim@meyering.net>
15792
15793         * modules/userspec (lib_SOURCES): Add userspec.h.
15794         (Include): Add "userspec.h".
15795         Improve description.
15796
15797 2003-11-03  Jim Meyering  <jim@meyering.net>
15798
15799         * lib/userspec.c: Include "userspec.h".
15800         * lib/userspec.h: New file.
15801
15802 2003-11-03  Bruno Haible  <bruno@clisp.org>
15803
15804         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
15805
15806 2003-11-03  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
15809         available, to avoid (extremely rare) race condition.
15810         Suggested by Paul Eggert.
15811
15812 2003-11-02  Karl Berry  <karl@gnu.org>
15813
15814         * config/srclist.txt (vasprintf.c): sync broken, sigh.
15815
15816 2003-10-31  Paul Eggert  <eggert@twinsun.com>
15817
15818         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
15819         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
15820         (read_filesystem_list): Set and use me_type_malloced.
15821         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
15822         whatever the type happens to be), for brevity and consistency.
15823         Check for size calculation overflow on Alphas running OSF/1.
15824
15825 2003-10-31  Jim Meyering  <jim@meyering.net>
15826
15827         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
15828
15829         * lib/linebuffer.c: Include <string.h> for declaration of memset.
15830
15831 2003-10-30  Paul Eggert  <eggert@twinsun.com>
15832             Bruno Haible  <bruno@clisp.org>
15833
15834         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
15835         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
15836
15837 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
15840         netbsd*-gnu*.  Suggested by Robert Millan.
15841
15842 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15843
15844         * modules/group-member: Depend on stdbool.
15845
15846 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15847
15848         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
15849
15850 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15851
15852         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
15853         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
15854         after the 'gnu' in these cases.  This fixes some bugs in the
15855         previous change, and is based on suggestions by Robert Millan.
15856
15857 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15858
15859         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
15860         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
15861         no longer needed.
15862         * lib/quotearg.c (quotearg_n_options): Use it.
15863         * lib/group-member.c: Include <stdbool.h>.
15864         (free_group_info): Arg is now const *; don't free arg.
15865         (get_group_info): Now returns bool and accepts struct group_info *,
15866         rather than returning a malloc'ed struct group_info *.
15867         All uses changed.  Check for overflow in internal size calculation.
15868
15869         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
15870         rather than xmalloc/xrealloc.
15871         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
15872         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
15873         conformance bug: the old code used a pointer after freeing the
15874         storage that it addressed.
15875         * lib/hash.c (hash_initialize): Simplify the code by using
15876         xalloc_oversized rather than doing it by hand.
15877         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
15878         the buffer preserved.  Use free and xmalloc instead.
15879         * lib/quotearg.c (quotearg_n_options): Likewise.
15880         Use a simpler test for size overflow.  Don't use xalloc_oversized
15881         because unsigned int might be wider than size_t (!); this suggests
15882         that we should switch from unsigned int to size_t for slot numbers.
15883
15884 2003-10-28  Paul Eggert  <eggert@twinsun.com>
15885
15886         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
15887         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
15888         NetBSD kernels.  Requested by Richard Stallman.
15889
15890 2003-10-27  Paul Eggert  <eggert@twinsun.com>
15891
15892         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
15893         to allocate the returned structure.  Do not allocate a subarray,
15894         as x2nrealloc will do that.
15895         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
15896         instead of xnrealloc.
15897         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
15898
15899 2003-10-27  Bruno Haible  <bruno@clisp.org>
15900
15901         * lib/stdbool_.h: Better support for BeOS.
15902
15903 2003-10-26  Paul Eggert  <eggert@twinsun.com>
15904
15905         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
15906         now uses inline.
15907
15908 2003-10-26  Paul Eggert  <eggert@twinsun.com>
15909
15910         * lib/xalloc.h (xalloc_oversized): New static inline function, for
15911         callers that want to do their own size-overflow checking.  Include
15912         <stdbool.h>, since xalloc_oversized returns bool.
15913         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
15914         to use xalloc_oversized.
15915
15916         Add two functions x2realloc, x2nrealloc, for programs that grow
15917         arrays dynamically by doubling their sizes.
15918         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
15919         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
15920         New functions.
15921
15922         Port to C99 semantics for 'inline' of external functions.
15923         Bug reported by Bruno Haible.
15924         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
15925         with the old contents of xnmalloc.
15926         (xnmalloc, xmalloc): Use it.
15927         (xnrealloc_inline): New static inline function,
15928         with the old contents of xnrealloc.
15929         (xnrealloc, xrealloc): Use it.
15930
15931         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
15932         that.
15933
15934 2003-10-26  Karl Berry  <karl@gnu.org>
15935
15936         * config/srclist.txt (COPYING.DOC): no longer available from
15937         /gd/gnuorg; don't know where the ultimate source is.
15938
15939 2003-10-25  Paul Eggert  <eggert@twinsun.com>
15940
15941         Fix several address-calculation bugs in the hash modules,
15942         plus some minor code cleanup.
15943
15944         * lib/hash.h: Include <stdbool.h>, for bool.
15945         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
15946         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
15947         hash_get_n_entries, hash_get_max_bucket_length,
15948         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
15949         hash_rehash): Use size_t rather than unsigned.
15950         * lib/hash.c (struct hash_table, hash_get_n_buckets,
15951         hash_get_n_buckets_used, hash_get_n_entries,
15952         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
15953         hash_get_entries, hash_do_for_each, hash_string, is_prime,
15954         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
15955         Likewise.
15956         (SIZE_MAX): Define if not defined.
15957         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
15958         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
15959         hash_print):
15960         Use const * when possible.
15961         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
15962         (check_tuning): Fix bug: if tuning parameters were very close to
15963         0 or 1, rounding errors could have caused subscript violations.
15964         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
15965         (hash_initialize): Add 'fail:' label
15966         to free table and return NULL, and use it to simplify code.
15967         Use calloc rather than clearing the storage ourself.
15968         (hash_initialize, hash_rehash): Check for arithmetic overflow in
15969         buffer size calculations.
15970         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
15971         Include <stddef.h>, for size_t.
15972         * lib/hash-pjw.c (hash_pjw): Likewise.
15973         Switch to method described by Bruno Haible.
15974         Include <limits.h>, for CHAR_BIT.
15975         (SIZE_BITS): New macro.
15976
15977 2003-10-23  Paul Eggert  <eggert@twinsun.com>
15978
15979         * m4/getline.m4 (AM_FUNC_GETLINE):
15980         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
15981         hosts.  Problem reported by Derek Robert Price in
15982         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
15983         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
15984         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
15985
15986 2003-10-21  Paul Eggert  <eggert@twinsun.com>
15987
15988         * lib/getndelim2.c (getndelim2): When size calculation overflows,
15989         ceiling the allocation at NMAX bytes rather than silently
15990         discarding input bytes before NMAX is reached.  This makes
15991         a difference only if NMAX exceeds SIZE_MAX / 2.
15992
15993         * lib/obstack.c: Merge from glibc.
15994         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
15995         Add libc_hidden_def (_obstack_newchunk).
15996         (_obstack_free) [! defined _LIBC]: Remove.
15997         [defined _LIBC]: Make a strong alias from obstack_free, rather than
15998         a clone of the function body.
15999         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
16000         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
16001
16002         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
16003         glibc.
16004         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
16005         arg to memcpy.
16006
16007         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
16008         (obstack_ptr_grow_fast, obstack_int_grow_fast):
16009         Don't use lvalue casts, as GCC plans to remove support for them
16010         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
16011         was also present in the non-GCC version, indicating that this
16012         code had always been buggy and had never been widely used.
16013         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
16014         Use the fast variant of each macro, rather than copying the
16015         definiens of the fast variant; that way, we'll be more likely to
16016         catch future bugs in the fast variants.
16017
16018 2003-10-20  Bruno Haible  <bruno@clisp.org>
16019
16020         * modules/wait-process: New file.
16021         * MODULES.html.sh (func_all_modules): Add wait-process.
16022
16023 2003-10-20  Bruno Haible  <bruno@clisp.org>
16024
16025         * m4/wait-process.m4: New file.
16026
16027 2003-10-20  Bruno Haible  <bruno@clisp.org>
16028
16029         * lib/wait-process.h: New file, from GNU gettext.
16030         * lib/wait-process.c: New file, from GNU gettext.
16031
16032 2003-10-19  Jim Meyering  <jim@meyering.net>
16033
16034         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
16035         HPUX 10.20.
16036
16037 2003-10-18  Karl Berry  <karl@gnu.org>
16038
16039         * config/config.guess: update from config.
16040
16041 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16042
16043         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
16044         (getgroups): First arg is int, not size_t.
16045         Don't let 'free' mangle errno.
16046
16047 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16048
16049         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
16050
16051 2003-10-16  Karl Berry  <karl@gnu.org>
16052
16053         * config/config.{guess,sub}: update from config.
16054
16055 2003-10-16  Jim Meyering  <jim@meyering.net>
16056
16057         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
16058         memcpy.
16059
16060 2003-10-15  Paul Eggert  <eggert@twinsun.com>
16061
16062         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
16063         (SIZE_MAX): Remove.
16064         (new_exclude, add_exclude_file): Initial size no longer needs to
16065         be a power of 2.
16066         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
16067         our own address arithmetic overflow checking.
16068
16069         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
16070         (fnmatch): Do not alloca more than 2000 wide characters;
16071         instead, use malloc for large buffers.
16072         Check for address arithmetic overflow, and return -1
16073         with errno set to ENOMEM in that case.
16074         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
16075         (NEW_PATTERN): Do not alloca more than 8000 bytes;
16076         instead, return -1.  Check for address arithmetic overflow.
16077
16078 2003-10-14  Paul Eggert  <eggert@twinsun.com>
16079
16080         Handle invalid suffixes and overflow independently, so that
16081         callers can treat them independently as needed.  Fix some bugs in
16082         suffix handling, e.g., "100k@" was not diagnosed as an invalid
16083         suffix for a human-readable blocksize.  The major caller-visible
16084         change is the addition of a new
16085         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
16086         that both overflow and suffix chars were found.
16087
16088         * lib/human.c (humblock): Don't check separately for invalid suffix
16089         char; that is xstrtoumax's job (now that its bug is fixed).
16090         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
16091         INTMAX_MAX]: New macros.
16092         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
16093         TYPE_MAXIMUM): New macros.
16094         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
16095         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
16096         if overflow occurs, as it's what __strtol does and it's more useful
16097         in practice.
16098         (__xstrtol): If __strtol reports some error other than ERANGE,
16099         reflect it to the caller as LONGINT_INVALID.  If it reports
16100         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
16101         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
16102         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
16103         value.
16104         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
16105         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
16106         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
16107         [defined UINTMAX_MAX]: New macros.
16108
16109 2003-10-14  Bruno Haible  <bruno@clisp.org>
16110
16111         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
16112
16113 2003-10-14  Bruno Haible  <bruno@clisp.org>
16114
16115         * m4/sig_atomic_t: New file, from GNU gettext.
16116         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
16117
16118 2003-10-14  Bruno Haible  <bruno@clisp.org>
16119
16120         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
16121         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
16122         Also use volatile where needed.
16123
16124 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16125
16126         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
16127         Change maintainer from Bruno Haible to 'all'.
16128
16129 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16130
16131         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
16132
16133 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16134
16135         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
16136         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
16137         and define in terms of the other primitives.
16138         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
16139         (SIZE_MAX): Define if not already defined.
16140         (array_size_overflow): New function.
16141         (xalloc_die): Abort instead of exiting if 'error' returns.
16142         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
16143         (xmalloc, xrealloc): Use them.
16144         (xcalloc): Check for address arithmetic overflow.
16145         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
16146         a bit faster than strcpy.
16147
16148 2003-10-10  Simon Josefsson  <jas@extundo.com>
16149
16150         * modules/argp (Depends-on): Add restrict and strcase.
16151
16152 2003-10-10  Simon Josefsson  <jas@extundo.com>
16153
16154         * m4/argp.m4: Add AC_C_INLINE.
16155
16156 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16157
16158         Merge getpass from libc, plus a few fixes.
16159
16160         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
16161         Include <stdbool.h>.
16162         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
16163         __fsetlocking to empty.
16164         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
16165         do include <bits/libc-lock.h>.
16166         Do not include <fcntl.h>; not needed.
16167         [_LIBC]: Include <wchar.h>.
16168         (NOTCANCEL_MODE): New macro.
16169         (flockfile, funlockfile) [_LIBC]: New macros.
16170         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
16171         [!_LIBC]: New macros.
16172         (call_fclose): New function.
16173         (getpass): Use it.  Save tty stream separately; this simplifies the
16174         code and makes it more reliable if stdin happens to equal stdout.
16175         Invoke __fsetlocking on tty.
16176         Handle thread cancellation if needed.
16177         Namespace cleanup (use __tcgetattr, __getline).
16178         Use bool for Booleans.
16179         [USE_IN_LIBIO]: Handle wide streams.
16180         [!_LIBC]: Unconditionally do the fseek, since we don't know what
16181         stream might go where.
16182
16183         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
16184         doesn't have to include <stdio.h> before us.
16185         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
16186         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
16187         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
16188         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
16189         if not declared, so that we can use getpass.c code from libc without
16190         rewriting it.
16191         (flockfile, ftrylockfile, funlockfile): New macros.
16192
16193 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16194
16195         * modules/getpass: Depend on stdbool.
16196
16197 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16198
16199         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
16200
16201 2003-10-07  Karl Berry  <karl@gnu.org>
16202
16203         * config/config.{guess,sub}: update from config.
16204
16205 2003-10-06  Jim Meyering  <jim@meyering.net>
16206             Bruno Haible  <bruno@clisp.org>
16207
16208         This lets translators provide better translations for the
16209         "Written by ..." part of --version output.
16210         * lib/version-etc.h: Include stdarg.h.
16211         (version_etc_copyright): Declare as readonly.
16212         (version_etc): Make this function variadic with a NULL-terminated list
16213         of author name strings.
16214         (version_etc_va): New declaration.
16215         * lib/version-etc.c: Include stdarg.h, stdlib.h.
16216         (version_etc_copyright): Declare as readonly.
16217         (version_etc_va): New function. Provide a different translatable string
16218         for each possible number of authors < 10. Abbreviate when there are 10
16219         authors or more.
16220         (version_etc): Make this function variadic. Call version_etc_va.
16221         Suggestion from Gary V. Vaughan.
16222
16223         * lib/long-options.h (parse_long_options): Change prototype: the
16224         authors string is moved to the end and becomes variadic.
16225         * lib/long-options.c: Include stdarg.h.
16226         (parse_long_options): Make this function variadic, too.
16227         Call version_etc_va, not version_etc.
16228
16229 2003-10-06  Bruno Haible  <bruno@clisp.org>
16230
16231         * modules/version-etc-2: Remove file.
16232         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
16233
16234 2003-10-06  Bruno Haible  <bruno@clisp.org>
16235
16236         * modules/fatal-signal: New file.
16237         * MODULES.html.sh (func_all_modules): Add fatal-signal.
16238
16239 2003-10-06  Bruno Haible  <bruno@clisp.org>
16240
16241         * m4/fatal-signal.m4: New file.
16242         * m4/signalblocking.m4: New file, from GNU gettext.
16243
16244 2003-10-06  Bruno Haible  <bruno@clisp.org>
16245
16246         * lib/version-etc-2.h: Remove file.
16247         * lib/version-etc-2.c: Remove file.
16248
16249 2003-10-06  Bruno Haible  <bruno@clisp.org>
16250
16251         * lib/fatal-signal.h: New file, from GNU gettext.
16252         * lib/fatal-signal.c: New file, from GNU gettext.
16253
16254 2003-10-05  Paul Eggert  <eggert@twinsun.com>
16255
16256         * README: Rework advice for preventing empty .o files.
16257         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
16258         not <sys/types.h>.
16259
16260 2003-10-04  Karl Berry  <karl@gnu.org>
16261
16262         * lib/argp*: update from libc.
16263
16264 2003-10-04  Karl Berry  <karl@gnu.org>
16265
16266         * config/config.{guess,sub}: update from config.
16267
16268 2003-10-02  Bruno Haible  <bruno@clisp.org>
16269
16270         * modules/lchown (Include): Add lchown.h.
16271         * modules/time_r (Include): Use "..." syntax.
16272         * modules/xgetdomainname (Include): Add xgetdomainname.h.
16273
16274 2003-10-01  Simon Josefsson  <jas@extundo.com>
16275
16276         * MODULES.html.sh (func_all_modules): Move gethostname from section
16277         'based on' to section 'lacking' POSIX:2001.
16278
16279 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
16280
16281         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
16282         to output mode on the same stream.
16283
16284 2003-09-29  Paul Eggert  <eggert@twinsun.com>
16285
16286         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
16287         Fix arg typo in previous patch.
16288
16289 2003-09-28  Jim Meyering  <jim@meyering.net>
16290
16291         * lib/error.c: Correct cpp indentation.
16292
16293 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16294
16295         * modules/free: New file.
16296
16297 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16298
16299         * m4/free.m4: New file.
16300
16301 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16302
16303         * lib/minmax.h (MIN, MAX)
16304         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
16305         Omit the special code that used __typeof__, since we worry that
16306         it could be more trouble than it's worth.  See:
16307         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
16308         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
16309
16310         * lib/free.c: New file.
16311
16312 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
16313
16314         Trivial fixes to Makefile.am parts of module listings.
16315         * modules/strstr: Append strstr.h to lib_SOURCES.
16316         * modules/strcase: Likewise, for strcase.h.
16317
16318 2003-09-27  Karl Berry  <karl@gnu.org>
16319
16320         * config/mkinstalldirs: update from automake.
16321
16322 2003-09-26  Paul Eggert  <eggert@twinsun.com>
16323
16324         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
16325         (error_tail): Do not loop, reallocating temporary buffer, since
16326         the output cannot contain more wide characters than the input
16327         contains bytes, the size must be big enough already.  This avoids
16328         one potential size overflow calculation.  Check for size overflow
16329         when calculating temporary buffer size.  Free temporary buffer
16330         when done, if it was allocated with malloc; this plugs a memory
16331         leak.  Remove casts from void * to pointers, that are no longer
16332         needed now that we're assuming C89 or better.
16333
16334         Merge error changes from glibc.
16335
16336         * lib/error.c, error.h: Update copyright notice header to match glibc.
16337         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
16338         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
16339         Disable cancellation while printing error.
16340         * lib/error.h: Prepend __ to parameter names.
16341
16342 2003-09-26  Jim Meyering  <jim@meyering.net>
16343
16344         * lib/error.c (error_tail): Move some declarations
16345         into inner scope where the local variables are used.
16346
16347 2003-09-26  Bruno Haible  <bruno@clisp.org>
16348
16349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
16350         stpncpy().
16351         Don't define stpncpy through config.h; it's now done through stpncpy.h.
16352
16353 2003-09-26  Bruno Haible  <bruno@clisp.org>
16354
16355         * lib/stpncpy.h (gnu_stpncpy): New declaration.
16356         (stpncpy): Define as alias for gnu_stpncpy.
16357         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
16358
16359 2003-09-25  Simon Josefsson  <jas@extundo.com>
16360
16361         * lib/xgetdomainname.h: New file.
16362         * lib/xgetdomainname.c: New file.
16363
16364 2003-09-25  Simon Josefsson  <jas@extundo.com>
16365             Bruno Haible  <bruno@clisp.org>
16366
16367         * modules/getdomainname: New file.
16368         * modules/xgetdomainname: New file.
16369         * MODULES.html.sh (func_all_modules): Add getdomainname,
16370         xgetdomainname.
16371
16372 2003-09-25  Simon Josefsson  <jas@extundo.com>
16373             Bruno Haible  <bruno@clisp.org>
16374
16375         * m4/getdomainname.m4: New file.
16376
16377 2003-09-25  Simon Josefsson  <jas@extundo.com>
16378             Bruno Haible  <bruno@clisp.org>
16379
16380         * lib/getdomainname.h: New file.
16381         * lib/getdomainname.c: New file.
16382
16383 2003-09-25  Karl Berry  <karl@gnu.org>
16384
16385         * lib/argp-fmtstream.c, argp-help.c: update from libc.
16386
16387 2003-09-25  Karl Berry  <karl@gnu.org>
16388
16389         * config/install-sh: update from automake.
16390
16391 2003-09-25  Bruno Haible  <bruno@clisp.org>
16392
16393         * modules/version-etc-2: New file, from modules/version-etc with
16394         modifications.
16395         * MODULES.html.sh (func_all_modules): Add version-etc-2.
16396
16397 2003-09-25  Bruno Haible  <bruno@clisp.org>
16398
16399         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
16400         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
16401
16402 2003-09-24  Simon Josefsson  <jas@extundo.com>
16403
16404         * modules/xgethostname: Add xgethostname.h.
16405
16406 2003-09-24  Paul Eggert  <eggert@twinsun.com>
16407
16408         * lib/linebuffer.c (freebuffer): Don't free the argument, just
16409         the buffer associated with the argument.  Bug reported by
16410         Simon Josefsson.
16411
16412 2003-09-24  Paul Eggert  <eggert@twinsun.com>
16413
16414         * README: Document assumptions that 'int' is at least 32 bits
16415         wide, that integer arithmetic is 2's complement without overflow,
16416         that there are no holes in integer values, that adding sizes of
16417         two nonoverlapping objects can't overflow, and that all-bits-zero
16418         yields scalar zero.  Fix spelling and capitalization typos.
16419
16420 2003-09-19  Karl Berry  <karl@gnu.org>
16421
16422         * lib/argp.h: update from libc.
16423
16424 2003-09-17  Paul Eggert  <eggert@twinsun.com>
16425
16426         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
16427         to avoid spurious warnings like "AC_RUN_IFELSE was called before
16428         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
16429
16430 2003-09-17  Paul Eggert  <eggert@twinsun.com>
16431
16432         * gnulib-tool: Use "test -h", not "test -L", for portability
16433         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
16434         (tags_regexp): Remove, since \| doesn't conform to POSIX.
16435         (sed_extract_prog): Issue s commands one-by-one, rather than
16436         using \| in one s command.
16437
16438 2003-09-16  Paul Eggert  <eggert@twinsun.com>
16439
16440         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
16441         input error, instead of returning NULL the next time we are called
16442         (and therefore losing track of errno).
16443
16444 2003-09-16  Bruno Haible  <bruno@clisp.org>
16445
16446         * gnulib-tool (func_create_testdir): Warn about duplicated
16447         dependencies.
16448
16449 2003-09-15  Paul Eggert  <eggert@twinsun.com>
16450
16451         * modules/argmatch, modules/fatal, modules/obstack,
16452         modules/xalloc, modules/xgethostname: Sort dependencies by
16453         importance, not alphabetically.
16454
16455 2003-09-15  Paul Eggert  <eggert@twinsun.com>
16456
16457         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
16458         fails, so that the caller gets the proper errno.
16459
16460         * lib/readutmp.c (read_utmp): Likewise.
16461         Check for fstat error.  Close stream and free storage
16462         when failing.
16463
16464 2003-09-14  Karl Berry  <karl@gnu.org>
16465
16466         * config/srclist.txt (strdup.c): disable for c89 changes.
16467
16468 2003-09-14  Jim Meyering  <jim@meyering.net>
16469
16470         * lib/getloadavg.c: Correct cpp indentation.
16471         * lib/strdup.c: Likewise.
16472         * lib/vasnprintf.c: Likewise.
16473
16474 2003-09-14  Bruno Haible  <bruno@clisp.org>
16475
16476         * modules/fwriteerror: New file.
16477         * MODULES.html.sh (func_all_modules): Add fwriteerror.
16478
16479 2003-09-14  Bruno Haible  <bruno@clisp.org>
16480
16481         * lib/fwriteerror.h: New file.
16482         * lib/fwriteerror.c: New file.
16483
16484 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16485
16486         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
16487         modules/xgethostname, modules/xalloc: Depend on exit.
16488
16489 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16490
16491         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
16492
16493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
16494         and AC_MINIX, too, so that their extensions are available.
16495
16496         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
16497         This macro has been superseded by gl_BACKUPFILE.
16498
16499         More patches to assume C89 or better.
16500
16501         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
16502
16503         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
16504         unconditionally.
16505         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
16506         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
16507         Include <string.h>, <stdlib.h> unconditionally.
16508         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
16509         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
16510         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
16511         headers or for string.h.
16512         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
16513         or strtoul.
16514
16515         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
16516         headers.
16517         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
16518         * m4/userspec.m4 (gl_USERSPEC): Likewise.
16519         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
16520         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
16521         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16522         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
16523         memcpy, memset.
16524         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
16525         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
16526         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
16527         strtol.
16528         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
16529         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
16530         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
16531         strtoul.
16532
16533 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16534
16535         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
16536         * lib/obstack.c [!defined _LIBC]: Likewise.
16537         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
16538         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
16539         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
16540
16541         More changes to assume C89 or better.
16542
16543         * lib/error.c (error_tail): Assume vprintf.
16544
16545         * lib/argmatch.c (getenv): Remove decl.
16546         * lib/progreloc.c (get_full_program_name): Define via prototype.
16547         * lib/setenv.c (clearenv): Likewise.
16548         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
16549         needed.
16550         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
16551         (malloc, memcpy): Remove decls.
16552         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
16553         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
16554         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
16555         (memcpy): Remove macro.
16556         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
16557         (__P): Remove.  All uses removed.
16558         (PTR): Remove.  All uses changed to void *.
16559         (CHAR_BIT, NULL): Remove.
16560         (spaces, zeros, memset_space, memset_zero)
16561         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
16562         Remove.
16563         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
16564         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
16565         Define with prototype.
16566         Remove now-unnecessary prototype decl.
16567         (extra_args_spec): Assume ANSI C.  All uses changed.
16568         (extra_args_spec_iso): Remove.
16569         (my_strftime, emacs_strftimeu): Define via prototype.
16570         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
16571         unconditionally.
16572         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
16573         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
16574         (strtoul, strtol): Remove decls.
16575         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
16576         LONG_MAX): Remove.
16577         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
16578         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
16579         (LOCALE_PARAM_PROTO): New macro.
16580         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
16581         (INTERNAL (strtol), strtol): Define with a prototype.
16582         (PARAMS): Remove.  All uses removed.
16583         * lib/tempname.c: Include <string.h> unconditionally.
16584         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
16585         * lib/xgethostname.c (main): Define with a prototype.
16586         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
16587         Include <stdlib.h> unconditionally.
16588         (calloc, malloc, realloc, free): Remove decls.
16589         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
16590         Include <stdlib.h> unconditionally.  Sort include file names.
16591         (strtod): Remove.
16592         (xstrtod): Define with a prototype.
16593         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
16594         (strtol, strtoul): Remove decls.
16595
16596 2003-09-11  Paul Eggert  <eggert@twinsun.com>
16597
16598         More patches to assume C89 or better.
16599         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
16600         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
16601         string.h, memchr, STDC_HEADERS.
16602
16603 2003-09-11  Paul Eggert  <eggert@twinsun.com>
16604
16605         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
16606         Include <stdlib.h>, <string.h> unconditionally.
16607         Remove now-unnecessary cast to char *.
16608         * lib/strnlen.c: Include <string.h> unconditionally.
16609         * lib/yesno.c (yesno): Define with a prototype.
16610
16611 2003-09-11  Bruno Haible  <bruno@clisp.org>
16612
16613         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
16614
16615 2003-09-10  Jim Meyering  <jim@meyering.net>
16616
16617         * lib/error.c: Correct indentation of cpp directives.
16618
16619 2003-09-10  Bruno Haible  <bruno@clisp.org>
16620
16621         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
16622         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
16623         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
16624         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
16625         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
16626         <stdlib.h> and <string.h> checks.
16627         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
16628         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
16629
16630 2003-09-10  Bruno Haible  <bruno@clisp.org>
16631
16632         * lib/strcspn.c: Include <string.h> unconditionally.
16633         * lib/strpbrk.c: Include <string.h> unconditionally.
16634         * lib/strstr.c: Include <string.h> unconditionally.
16635         * lib/unicodeio.c: Include <string.h> unconditionally.
16636         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
16637         * lib/unsetenv.c: Likewise.
16638         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
16639         * lib/yesno.c: Include <stdlib.h> unconditionally.
16640         (rpmatch): Add prototype.
16641
16642 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16643
16644         More patches to assume C89 or better.
16645         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
16646         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
16647         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
16648         or for string.h.
16649         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
16650         stdlib.h.
16651         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
16652         C headers.
16653         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
16654         string.h.
16655         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
16656         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
16657         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
16658         or for string.h.
16659         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
16660         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
16661         C headers.
16662         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
16663         memcpy.
16664         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
16665         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
16666         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
16667         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
16668         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
16669         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
16670         string.h, free.
16671         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
16672         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
16673         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
16674         C headers, or for string.h.
16675         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
16676         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
16677         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
16678         headers, memory.h, stdlib.h, string.h, strings.h.
16679         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
16680         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
16681         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
16682         strchr.
16683         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
16684         headers, memory.h, string.h.
16685         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
16686         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
16687         free.
16688         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
16689         headers.
16690         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
16691         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
16692         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
16693         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
16694         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
16695
16696 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16697
16698         More K&R removal.
16699
16700         * lib/acosl.c (main): Use a prototype.
16701         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
16702         tanl.c: Likewise.
16703
16704         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
16705
16706         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
16707         (getopt, etopt_long, getopt_long_only, _getopt_internal)
16708         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
16709         with a prototype.
16710         * lib/getopt.c (const): Remove macro.
16711         Include <string.h> unconditionally.
16712         (my_index): Remove; all uses changed to strchr.
16713         (strlen): Remove decl.
16714         (exchange): Remove forward decl; no longer needed.
16715         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
16716         Define with prototype.
16717         * lib/getopt1.c (const): Remove macro.
16718         (getopt_long, getopt_long_only, main): Define with prototype.
16719
16720         * lib/getugroups.c: Include <string.h> unconditionally.
16721
16722         * lib/getusershell.c: Include <stdlib.h> unconditionally.
16723         (getusershell, setusershell, endusershell, readname, main):
16724         Define with prototypes.
16725
16726         * lib/group-member.c: Include group-member.h first.
16727         Include <stdlib.h> unconditionally.
16728
16729         * lib/hard-locale.c: Include hard-locale.h first.
16730         Include <stdlib.h>, <string.h> unconditionally.
16731
16732         * lib/hash.c (free, malloc): Remove decls.
16733         Include <stdlib.h> unconditionally.
16734
16735         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
16736         (getenv): Do not declare.
16737
16738         * lib/idcache.c: Include <string.h> unconditionally.
16739
16740         * lib/long-options.c: Include long-options.h first, to test interface.
16741         Include <stdlib.h> unconditionally.
16742
16743         * lib/makepath.c: Include makepath.h first, to test interface.
16744         Include <stdlib.h> and <string.h> unconditionally.
16745
16746         * lib/linebuffer.c: Include <stdlib.h>.
16747         (free): Remove decl.
16748
16749         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
16750         stddef.h. rpl_malloc returns void *, not char *.
16751         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
16752         prototype.
16753
16754         * lib/md5.h: Include <limits.h> unconditionally.
16755         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
16756         (__P): Remove; all uses removed.
16757         * lib/md5.c: Include "md5.h" first.
16758         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
16759         md5_buffer, md5_process_bytes, md5_process_block):
16760         Define with prototypes.
16761         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
16762         * lib/sha.c: Include "sha.h" first.
16763         Include <stdlib.h>, <string.h> unconditionally.
16764
16765         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
16766         * lib/memcmp.c (__ptr_t): Likewise.
16767         * lib/memrchr.c (__ptr_t): Likewise.
16768         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
16769         Include <string.h> unconditionally.
16770         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
16771         * lib/memchr.c: Include <stdlib.h> unconditionally.
16772         * lib/memchr.c (LONG_MAX): Remove.
16773         * lib/memrchr.c (LONG_MAX): Likewise.
16774         * lib/memchr.c (__memchr): Define via a prototype.
16775         * lib/memrchr.c (__memrchr): Likewise.
16776         * lib/memcmp.c (__P): Remove, and remove all uses.
16777         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
16778         Remove forward decls; no longer needed.
16779         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
16780         Use types required by C89 in prototype.
16781
16782         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
16783         * lib/savedir.c: Likewise.
16784         * lib/mkdir.c (free): Remove decl.
16785         * lib/rmdir.c (rmdir): Define with a prototype.
16786         * lib/savedir.c: Include savedir.h first, to test interface.
16787
16788         * lib/mktime.c (STDC_HEADERS): Remove.
16789         Include <stdlib.h>, <string.h> unconditionally.
16790
16791         * lib/modechange.c: Include <stdlib.h> unconditionally.
16792         (malloc): Remove decl.
16793
16794         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
16795         (free): Remove decl.
16796
16797         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
16798         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
16799         (This type really should be intptr_t, but that's a C99ism.)
16800         (_obstack_memcpy): Remove: all uses changed to memcpy.
16801         Include <string.h> unconditionally.
16802         (struct obstack): Assume __STDC__ for types of members
16803         chunkfun, freefun, extra_arg.
16804         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
16805         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
16806         obstack_begin, obstack_specify_allocation,
16807         obstack_specify_allocation_with_arg, obstack_chunkfun,
16808         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
16809         Remove unprototyped decls and the macros that use them.
16810         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
16811         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
16812         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
16813         (defined __STDC__ && __STDC__)]:
16814         Remove nonprototyped code.
16815         Include <stdlib.h> unconditionally.
16816         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
16817         _obstack_allocated_p, _obstack_free, obstack_free,
16818         _obstack_memory_used, print_and_abort):
16819         Define using prototypes.
16820         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
16821         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
16822         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
16823         obstack_next_free, obstack_object_size, obstack_room) [0]:
16824         Remove unused, unprototyped code.
16825
16826         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
16827
16828         * lib/physmem.c (physmem_total, physmem_available, main): Define
16829         with prototypes.
16830
16831         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
16832         (main): Define with a prototype.
16833
16834         * lib/posixver.c (getenv): Remove decl.
16835
16836         * lib/putenv.c (malloc): Returns void *, not char *.
16837         Include <string.h> unconditionally.
16838         (strchr, memcpy, NULL): Do not define.
16839
16840         * lib/readtokens.c: Include readtokens.h first, to test interface.
16841         Include <stdlib.h>, <string.h> unconditionally.
16842         (init_tokenbuffer): Define with a prototype.
16843
16844         * lib/regex.c (PARAMS): Remove.  All uses removed.
16845         All uses of _RE_ARGS removed, too.
16846         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16847         unconditionally.
16848         (bzero): Assume memset exists.
16849         (memcmp, memcpy, NULL): Remove.
16850         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
16851         char, or assignments to local vars of type signed char.
16852         (init_syntax_once, PREFIX(extract_number_and_incr),
16853         PREFIX(print_partial_compiled_pattern),
16854         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
16855         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
16856         PREFIX(regex_grow_registers), PREFIX(regex_compile),
16857         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
16858         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
16859         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
16860         wcs_compile_range, byte_compile_range, truncate_wchar,
16861         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
16862         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
16863         count_mbs_length, wcs_re_match_2_internal,
16864         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
16865         PREFIX(alt_match_null_string_p),
16866         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
16867         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
16868         regfree, PREFIX(extract_number)): Define with prototype.  Remove
16869         now-unnecessary declaration, if any.
16870         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
16871         regcomp, regexec):
16872         Remove now-unnecessary casts among pointer types.
16873         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
16874
16875         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
16876         (free): Remove decl.
16877
16878         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
16879
16880         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
16881         (free): Remove decl.
16882
16883         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
16884         * lib/xgetcwd.c: Likewise.
16885
16886         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
16887         (free): Remove decl.
16888
16889         * lib/strchrnul.c (strchrnul): Define with a prototype.
16890         Fix bug: c_in was not converted to char before searching.
16891
16892         The following changes are not K&R related:
16893
16894         * lib/group-member.h: Include <sys/types.h>, so that this file is
16895         self-contained.
16896         * lib/makepath.h: Likewise.
16897
16898         * lib/getusershell.c (readname, default_index, line_size, readname):
16899         Use size_t, not int, for sizes.
16900         (readname): If the size overflows, report an error instead of
16901         looping forever.
16902
16903 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16904
16905         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
16906         libc.
16907
16908 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16909
16910         * README: New section: portability guidelines.
16911
16912 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
16913
16914         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
16915         C89 spec.
16916
16917 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
16918
16919         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
16920
16921 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16922
16923         Assume C89 or better; remove K&R cruft.
16924         A few of these changes were first proposed by Derek Robert Price
16925         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
16926
16927         * lib/addext.c: Include <string.h> unconditionally.
16928         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
16929         Don't declare getenv or malloc.
16930
16931         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
16932         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
16933         (NULL): Remove.
16934         (find_stack_direction, alloca): Use prototypes.
16935
16936         * lib/atexit.c (atexit): Define using a prototype.
16937
16938         * lib/basename.c, dirname.c, stripslash.c:
16939         Include <string.h> unconditionally.
16940
16941         * lib/bcopy.c: Include <stddef.h>.
16942         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
16943
16944         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
16945
16946         * lib/error.h (error, error_at_line, error_print_progname)
16947         [! (defined (__STDC__) && __STDC__)]: Remove decls.
16948         * lib/error.c: Include error.h first, to check interface.
16949         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
16950         (VA_START): Remove; all uses changeed to va_start.
16951         (exit, strerror): Remove decls.
16952         (error_print_progname): Prototype uncondionally.
16953         Don't include <errno.h>; no longer needed.
16954         (private_strerror): Remove.
16955         (error_tail): Always define.
16956         (error, error_at_line): Assume C89 or better; always use prototypes.
16957         * lib/fatal.c: Include "fatal.h" first, to test interface.
16958         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
16959         (VA_START): Remove; all uses changed to va_start.
16960         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
16961         this case.
16962         (exit): Remove decl.
16963         (fatal): Prototype unconditionally.  Assume va_start works.
16964         Abort at end, to pacify gcc.
16965
16966         * lib/euidaccess.c (main): Define with a prototype.
16967
16968         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
16969
16970         * lib/exitfail.c: Include <stdlib.h> unconditionally.
16971
16972         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
16973         prototypes.
16974         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
16975         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
16976         (getenv): Remove decl.
16977         (fnmatch): Define using a prototype.
16978         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
16979         (FCT): Define using a prototype.
16980
16981         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
16982
16983         * lib/gethostname.c: Include <stddef.h>.
16984         (gethostname): Define with prototype.  Length is size_t, not int.
16985
16986 2003-09-08  Paul Eggert  <eggert@twinsun.com>
16987
16988         Assume C89 or better; remove K&R cruft.
16989         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
16990         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
16991         string.h, getenv, malloc.
16992         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
16993         headers.
16994         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
16995         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
16996         do not check for strerror.
16997         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
16998         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
16999         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
17000         do not check for doprnt or vprintf.
17001         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
17002         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
17003
17004 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17005
17006         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
17007         getversion.c should have been removed then, but was accidentally
17008         preserved.
17009
17010         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
17011         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
17012
17013 2003-09-08  Karl Berry  <karl@gnu.org>
17014
17015         * config/config.sub, config.guess, srclistvars.sh: update from savannah
17016                 config, forget about prep.
17017
17018         * config/depcomp, missing: update from automake.
17019
17020 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17021
17022         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
17023         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17024
17025 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17026
17027         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
17028         copy_tm_result.  Bug reported by Simon Josefsson in
17029         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17030
17031 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17032
17033         * m4/time_r.m4: New file.
17034         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
17035         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
17036         is. Check for timegm declaration.
17037         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
17038         Do not check for gmtime_r.
17039         Replace mktime if __mktime_internal does not exist and if mktime
17040         hasn't been replaced already.
17041
17042 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17043
17044         * lib/time_r.c, lib/time_r.h: New files.
17045
17046         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
17047         __localtime_r.
17048         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
17049         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
17050
17051         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
17052         __gmtime_r.
17053         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
17054         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
17055         Include <time_r.h>.
17056
17057         * lib/timegm.c: Switch to glibc implementation, with the following
17058         changes:
17059         [defined HAVE_CONFIG_H]: Include <config.h>.
17060         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
17061         (__mktime_internal) [!defined _LIBC]: New decl.
17062         (__gmtime_r) [!defined _LIBC]: New macro and function.
17063         (timegm): Use a prototype, since gnulib assumes C89.
17064         Do not bother declaring tmp to be const, as it's not really usefu.
17065         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
17066         (timegm): Declare only if HAVE_DECL_TIMEGM.
17067
17068 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17069
17070         * MODULES.html.sh (func_all_modules): Add time_r.
17071         * modules/time_r: New file.
17072         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
17073         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
17074
17075 2003-09-03  Paul Eggert  <eggert@twinsun.com>
17076
17077         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
17078         Bug reported by Lute Kamstra in
17079         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
17080
17081         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
17082         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
17083         course with correspondingly smaller numbers for tomorrow and
17084         yesterday.  From Tadayoshi Funaba.  Originally installed into
17085         sh-utils on 1999-08-07, but the patch got lost (I guess during the
17086         coreutils merge?).
17087
17088 2003-08-31  Simon Josefsson  <jas@extundo.com>
17089
17090         * modules/timegm: New file.
17091         * MODULES.html.sh (func_all_modules): Add timegm.
17092
17093 2003-08-31  Simon Josefsson  <jas@extundo.com>
17094
17095         * m4/timegm.m4: New file.
17096
17097 2003-08-31  Simon Josefsson  <jas@extundo.com>
17098
17099         * lib/timegm.h: New file.
17100         * lib/timegm.c: New file.  Based on
17101         wget-1.8.2/src/http.c:mktime_from_utc.
17102
17103 2003-08-31  Karl Berry  <karl@gnu.org>
17104
17105         * lib/argp.h: update from libc.
17106
17107 2003-08-28  Bruno Haible  <bruno@clisp.org>
17108
17109         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
17110         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
17111         followed by '#define fnmatch fnmatch_posix' gives an error.
17112
17113 2003-08-28  Bruno Haible  <bruno@clisp.org>
17114
17115         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
17116         warning on QNX, which defines O_BINARY to 000000.
17117
17118 2003-08-27  Jim Meyering  <jim@meyering.net>
17119
17120         * m4/mkstemp.m4: Require that the system mkstemp be able to create
17121         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
17122         would fail after 32.  Reported by Danny Levinson.  Details here:
17123         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
17124
17125 2003-08-24  Bruno Haible  <bruno@clisp.org>
17126
17127         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
17128         MSVC7 <stdio.h> is included later.
17129
17130 2003-08-22  Simon Josefsson  <jas@extundo.com>
17131
17132         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
17133
17134 2003-08-20  Karl Berry  <karl@gnu.org>
17135
17136         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
17137
17138 2003-08-20  Bruno Haible  <bruno@clisp.org>
17139
17140         * modules/progname: New file.
17141         * MODULES.html.sh (func_all_modules): Add progname.
17142
17143 2003-08-20  Bruno Haible  <bruno@clisp.org>
17144
17145         * lib/progname.h: New file, from GNU gettext.
17146         * lib/progname.c: New file, from GNU gettext.
17147         * lib/progreloc.c: New file, from GNU gettext.
17148
17149 2003-08-19  Jim Meyering  <jim@meyering.net>
17150
17151         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
17152         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
17153
17154 2003-08-19  Bruno Haible  <bruno@clisp.org>
17155
17156         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
17157         more.
17158
17159 2003-08-19  Bruno Haible  <bruno@clisp.org>
17160
17161         * lib/xstrdup.c: Assume <string.h> exists.
17162
17163 2003-08-18  Paul Eggert  <eggert@twinsun.com>
17164
17165         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
17166         in makefile rules.
17167
17168 2003-08-18  Jim Meyering  <jim@meyering.net>
17169
17170         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
17171         * m4/lib-ld.m4: Likewise.
17172
17173 2003-08-18  Jim Meyering  <jim@meyering.net>
17174
17175         * lib/setenv.h: Indent nested cpp directive.
17176         * lib/vasnprintf.c: Remove trailing blanks.
17177
17178 2003-08-17  Simon Josefsson  <jas@extundo.com>
17179
17180         * modules/xstrndup: New file.
17181         * MODULES.html.sh (func_all_modules): Add xstrndup.
17182
17183 2003-08-17  Simon Josefsson  <jas@extundo.com>
17184
17185         * modules/argp: Fix autoconf macro name. Add more dependencies.
17186
17187 2003-08-17  Simon Josefsson  <jas@extundo.com>
17188
17189         * m4/xstrndup.m4: New file.
17190
17191 2003-08-17  Simon Josefsson  <jas@extundo.com>
17192
17193         * m4/argp.m4: New file.
17194
17195 2003-08-17  Simon Josefsson  <jas@extundo.com>
17196             Bruno Haible  <bruno@clisp.org>
17197
17198         * lib/xstrndup.h: New file.
17199         * lib/xstrndup.c: New file.
17200
17201 2003-08-17  Bruno Haible  <bruno@clisp.org>
17202
17203         * modules/strndup (Files, Include): Add lib/strndup.h.
17204
17205 2003-08-17  Bruno Haible  <bruno@clisp.org>
17206
17207         * modules/euidaccess (Files): Add lib/euidaccess.h.
17208
17209 2003-08-17  Bruno Haible  <bruno@clisp.org>
17210
17211         * lib/strndup.h: New file.
17212
17213 2003-08-17  Bruno Haible  <bruno@clisp.org>
17214
17215         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
17216         like AC_GNU_SOURCE.
17217         * modules/extensions (configure.ac): Comment out the invocation of
17218         gl_USE_SYSTEM_EXTENSIONS.
17219
17220 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17221
17222         Merges from coreutils, etc.
17223         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
17224         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
17225         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
17226         fixing a typo.
17227         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
17228         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
17229
17230 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17231
17232         Document merge from coreutils.
17233         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
17234         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
17235         * modules/utime: Add m4/utimes-null.m4.
17236
17237 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17238
17239         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
17240         space, undoing this 2003-08-12 change:
17241         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17242
17243 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17244
17245         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
17246         strtoul.c from libc, undoing this 2003-08-12 change:
17247         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17248
17249 2003-08-16  Jim Meyering  <jim@meyering.net>
17250
17251         Merges from coreutils.
17252         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
17253         prefix.  Adjust cache variables similarly.  Create 500 rather than
17254         just 300 files, to exercise bug on Darwin6.5, too.
17255         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
17256         $missing_dir.
17257         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
17258         AM_SYS_POSIX_TERMIOS.
17259         Reported by mkc@mathdogs.com.
17260         Also change use of $am_cv_sys_posix_termios
17261         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
17262         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
17263         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
17264         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
17265         in /proc/mounts until it finds one with matching device number.  This
17266         is unnecessary when the FILE argument *is* a mount point.  No stat call
17267         is necessary in that case.  So, disable the statvfs-testing code on
17268         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
17269         as RedHat bug# 84846.
17270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17271         to 1MB, so as not to render systems with no stack size limit (e.g.,
17272         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
17273         Include <unistd.h>.  On some systems,
17274         it is required for the definition of _SC_PAGESIZE.
17275
17276 2003-08-16  Jim Meyering  <jim@meyering.net>
17277
17278         Merge from coreutils.
17279         * lib/xstrtoimax.c: #else #if -> #elif.
17280         * lib/xstrtoumax.c: Likewise.
17281
17282 2003-08-16  Jim Meyering  <jim@meyering.net>
17283
17284         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
17285         * m4/utimes.m4: Removed.
17286         * m4/utimes-null.m4: Renamed from utimes.m4.
17287
17288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17289         to 1MB, so as not to render systems with no stack size limit (e.g.,
17290         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
17291         Include <unistd.h>.  On some systems,
17292         it is required for the definition of _SC_PAGESIZE.
17293
17294 2003-08-16  Jim Meyering  <jim@meyering.net>
17295         and Paul Eggert  <eggert@cs.ucla.edu>
17296
17297         Merges from coreutils, etc.
17298
17299         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
17300         using the latest version from cvs.  This avoids problems with #line
17301         directives using a vendor (Sun) compiler.
17302         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
17303         Don't set GETGROUPS_LIB here; now it's
17304         done via getgroups.m4's wrapper function.
17305         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
17306         rather than just in sh-util/configure.in, so that the
17307         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
17308         same.
17309         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
17310         AC_FUNC_GETLOADAVG where to find getloadavg.c.
17311         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
17312         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
17313         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
17314         Remove code that is now done by the newly-required macros.
17315         Append $(EXEEXT) to DF_PROG.
17316         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
17317         Do not invoke or require the following here,
17318         since prereq.m4 or some gnulib .m4 now does this for us:
17319         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
17320         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
17321         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
17322         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
17323         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
17324         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
17325         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
17326         AC_FUNC_OBSTACK.
17327         Do not replace the following functions, as this is now the job
17328         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
17329         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
17330         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
17331         atexit getpass, strdup, getpagesize.
17332         Replace 'raise'.
17333         Do not check for the following functions, as this is now the job
17334         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
17335         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
17336         setregid.
17337         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
17338         Check for sys/sysctl.h.
17339         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
17340         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
17341         of checking for ssize_t ourselves.
17342
17343         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
17344         Require every macro that gnulib/modules/* suggests for us.
17345         (jm_PREREQ_ADDEXT): New macro.
17346         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
17347         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
17348
17349         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
17350         (gl_PHYSMEM): Use it.
17351         Also check for `table' function.
17352         Check for new headers and functions.
17353         Add check for sys/sysmp.h.
17354         With suggestions from Kaveh Ghazi.
17355         Ignore headers that are present but cannot be compiled.  This
17356         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
17357         C 5.4.
17358
17359 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17360
17361         Document merge from coreutils.
17362         * modules/userspec: Depend on posixver.
17363         * modules/strftime: Depend on tzset.
17364
17365 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17366
17367         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
17368         rather than tab, after '#' in shell-script copyright notices.
17369         Suggested by Bruno Haible.
17370
17371 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17372
17373         * config/srclist-update: Use three spaces, rather than tab, after '#'
17374         in shell-script copyright notices.  Suggested by Bruno Haible.
17375         Remove unnecessary parenthesization in regular expression.
17376
17377 2003-08-15  Jim Meyering  <jim@meyering.net>
17378
17379         Merge from coreutils.
17380         * lib/xgethostname.c: Include <stdlib.h>.
17381         (xghostname): Don't exit for anything other than memory-related
17382         failure; just return NULL.
17383         * lib/userspec.c: Include "posixver.h".
17384         (parse_user_spec): Accept `.' as a separator only
17385         in pre-POSIX-200112 mode.
17386         * lib/strtoimax.c: Use #elif rather than #else #if.
17387         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
17388         Remove function, now that we can rely on a working tzset function.
17389         [!_LIBC]: Ensure that the required autoconf test has been run.
17390         [!defined _NL_CURRENT && HAVE_STRFTIME]:
17391         Use underlying_strftime for %r.
17392         * lib/sha.c: Merge in some clean-up and optimization changes from
17393         glibc.
17394         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
17395         Ensure that it is a multiple of 64.
17396         Rearrange loop exit tests so as to avoid performing an
17397         additional fread after encountering an error or EOF.
17398         * lib/realloc.c: Update copyright date.
17399
17400 2003-08-15  Jim Meyering  <jim@meyering.net>
17401         and Paul Eggert  <eggert@twinsun.com>
17402
17403         Merge from coreutils.
17404         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
17405         member but strut utmpx does not.  Needed for AIX 4.3.3.
17406         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
17407
17408 2003-08-15  Jim Meyering  <jim@meyering.net>
17409         and Paul Eggert  <eggert@cs.ucla.edu>
17410
17411         Merges from coreutils, etc.
17412         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
17413         Require gl_FUNC_TZSET_CLOBBER.
17414         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
17415         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
17416         members.
17417
17418 2003-08-14  Paul Eggert  <eggert@twinsun.com>
17419
17420         Help the merge from coreutils.
17421         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
17422         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
17423         * m4/tzset.m4: Use it too.
17424
17425 2003-08-14  Paul Eggert  <eggert@twinsun.com>
17426
17427         * modules/tzset: New file.
17428
17429 2003-08-14  Jim Meyering  <jim@meyering.net>
17430
17431         Merges from coreutils.
17432         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
17433         variable names, rather than @FNMATCH_H@.
17434         * modules/alloca: Likewise for $(ALLOCA_H).
17435
17436         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
17437         the three copies of the literal target, `fnmatch.h'.
17438         * modules/alloca (alloca.h): Likewise.
17439
17440 2003-08-14  Jim Meyering  <jim@meyering.net>
17441
17442         Merge from coreutils.
17443         * m4/tzset.m4: New file.
17444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
17445         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
17446         otherwise, AIX 5.1 systems would end up using the latter.
17447         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
17448         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
17449         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
17450         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
17451
17452 2003-08-14  Jim Meyering  <jim@meyering.net>
17453
17454         Merge from coreutils.
17455         * lib/obstack.h: Whitespace changes.
17456         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
17457         and xcalloc return values.
17458         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
17459         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
17460         hang on OSF/1 5.1 for DIR on both local and remote file systems.
17461         Reported by (and fix confirmed by) Nelson H. F. Beebe.
17462         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17463         error from mntctl.
17464         Use mntctl's return value to drive the entry-processing loop, since
17465         we can't rely on the value of the vmt_length member in the last
17466         entry.  On some systems doing so could result in exhausting
17467         virtual memory.  Based in part on a patch from Mike Jetzer.
17468
17469 2003-08-14  Jim Meyering  <jim@meyering.net>
17470         and Paul Eggert  <eggert@twinsun.com>
17471
17472         Merges from coreutils, plus other fixes.
17473         * lib/physmem.c: Merge in portability changes from gcc/libiberty
17474         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
17475         for credits and details.  Thanks to Kaveh Ghazi for helping
17476         to keep these files in sync.
17477         (ARRAY_SIZE): Define it.
17478         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
17479         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
17480         (memcasecmp): Don't assume size_t fits in unsigned int.
17481         Remove casts and duplicate code.
17482         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
17483         (memcpy): Remove definition.
17484         Merge in some clean-up and optimization changes from glibc.
17485         [BLOCKSIZE]: Move definition to top of file.
17486         Ensure that it is a multiple of 64.
17487         Rearrange loop exit tests so as to avoid performing an
17488         additional fread after encountering an error or EOF.
17489         * lib/md5.h (md5_uintptr): Define.
17490         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
17491         return to the initial working directory.  Preserve errno
17492         for caller.
17493         * lib/idcache.c: Include "xalloc.h".
17494         (xmalloc, xrealloc): Remove decls.
17495         (getuser): Remove casts no longer required in C89.
17496         * lib/human.c: Include stdio.h, for sprintf.
17497         * lib/group-member.c: Include "xalloc.h".
17498         (xmalloc, xrealloc): Remove decls.
17499         (get_group_info): Remove casts no longer required in C89.
17500         * lib/getusershell.c (readname): Remove casts no longer required in
17501         C89.
17502         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
17503         * lib/getline.c: Whitespace fix, from coreutils.
17504
17505 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17506
17507         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
17508         Check for isascii.
17509
17510         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
17511         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
17512         Undo previous (whitespace-only) change.
17513
17514 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17515
17516         * lib/exclude.c: Include <ctype.h>
17517         (IN_CTYPE_DOMAIN): New macro.
17518         (is_space): New fn.
17519         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
17520         and empty lines.
17521
17522         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
17523         Undo previous (whitespace-only) change.
17524
17525 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17526
17527         * config/srclist-update: Change update back to the old behavior,
17528         leaving whitespace alone.  Use one 'sed' command rather than a
17529         pipeline.
17530         (fixlicense): Now a variable, not a function.
17531         (remove_trailing_blanks): Remove.
17532         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
17533         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
17534         Undo previous (whitespace-only) change.
17535
17536 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17537
17538         Merge from coreutils.
17539         * modules/euidaccess: Add lib_SOURCES, include for new
17540         file euidaccess.h
17541
17542 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17543
17544         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
17545         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
17546         Normalize leading white space and remove trailing white space.
17547
17548         Merge from coreutils
17549         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
17550
17551         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
17552         0.12.1.  These files are now being upgraded automatically by
17553         ../config/srclist-update.
17554
17555 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17556
17557         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
17558         Normalize leading white space and remove trailing white space.
17559         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
17560         notice, as per ../config/srclist-update.
17561
17562         Merge from coreutils.
17563         * lib/euidaccess.h: New file.
17564         * lib/euidaccess.c: Include it.
17565         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
17566         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
17567         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
17568
17569 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17570
17571         * config/srclist-update: Add copyright notice.
17572         (remove_id_lines, remove_trailing_blanks): New constants.
17573         (fixfile): Use them to normalize spacing a bit in copied files.
17574         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
17575         Normalize leading white space and remove trailing white space.
17576
17577         * config/texinfo.tex: Sync with texinfo.
17578
17579         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
17580         strtoul.c from libc, to merge coreutils whitespace changes.
17581
17582         * config/srclist.txt: Get the following m4 files from gettext:
17583         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
17584         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
17585         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
17586         wint_t.m4.
17587
17588 2003-08-12  Karl Berry  <karl@gnu.org>
17589
17590         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
17591         been made.
17592
17593 2003-08-11  Paul Eggert  <eggert@twinsun.com>
17594
17595         * modules/gnu-source, m4/gnu-source.m4:
17596         Remove; we're assuming Autoconf 2.54 or later now.
17597         Suggested by Bruno Haible.
17598         * MODULES.html.sh (func_all_modules): Remove gnu-source.
17599
17600 2003-08-11  Bruno Haible  <bruno@clisp.org>
17601
17602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
17603
17604 2003-08-11  Bruno Haible  <bruno@clisp.org>
17605
17606         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
17607         (vasnprintf): Use it instead of wcslen.
17608
17609 2003-08-11  Bruno Haible  <bruno@clisp.org>
17610
17611         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
17612         value to ensure that _Bool promotes to int. Use #define for _Bool when
17613         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
17614
17615 2003-08-10  Karl Berry  <karl@gnu.org>
17616
17617         * lib/regex.h: update from libc (whitespace fix).
17618
17619 2003-08-09  Paul Eggert  <eggert@twinsun.com>
17620
17621         Merge some files from coreutils.  These changes were
17622         originally made by Jim Meyering.
17623         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
17624         many older Unixes require this.
17625         * lib/alloca.c (alloca): Remove cast to argument of free;
17626         no longer needed in C89.
17627         * lib/alloca_.h, regex.h: Fix white space to match
17628         what GNU indent does.
17629
17630 2003-08-09  Paul Eggert  <eggert@twinsun.com>
17631
17632         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
17633         apparently Emacs's Unicode mode got confused before my 2003-08-05
17634         checkin.
17635
17636 2003-08-08  Paul Eggert  <eggert@twinsun.com>
17637
17638         * m4/extensions.m4: New file.
17639         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
17640         Require gl_USE_SYSTEM_EXTENSIONS.
17641         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
17642         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
17643
17644 2003-08-08  Paul Eggert  <eggert@twinsun.com>
17645
17646         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
17647         * modules/extensions, modules/gnu-source: New files.
17648         * modules/timespec, modules/unlocked-io: Depend on extensions.
17649
17650 2003-08-07  Paul Eggert  <eggert@twinsun.com>
17651
17652         * modules/restrict: New file.
17653         * MODULES.html.sh (func_all_modules): Add restrict.
17654         * modules/regex: Depend on restrict.
17655
17656 2003-08-07  Paul Eggert  <eggert@twinsun.com>
17657
17658         * m4/restrict.m4: New file.
17659         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
17660
17661 2003-08-07  Bruno Haible  <bruno@clisp.org>
17662
17663         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
17664         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
17665
17666 2003-08-07  Bruno Haible  <bruno@clisp.org>
17667
17668         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
17669         makes the module 'getndelim2' compatible with the module 'getline'.
17670
17671 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17672
17673         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
17674         byte with "\201" to avoid glitches when editing that source file
17675         with multi-gnome-terminal.
17676
17677 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17678
17679         * lib/bumpalloc.h: Remove.
17680
17681 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17682
17683         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
17684         * modules/bumpalloc: Remove.
17685
17686 2003-08-04  Paul Eggert  <eggert@twinsun.com>
17687
17688         * lib/getloadavg.c: Change copyright notice and spacing to conform to
17689         GNU coding style.
17690
17691         Merge from coreutils.
17692         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
17693         1. From glibc.
17694         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
17695         from Karl Berry, implemented by Jim Meyering.
17696         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
17697         from Dmitry V. Levin.
17698         Remove anachronistic cast of xrealloc.
17699         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
17700         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
17701         type. Otherwise, it wouldn't compile with at least /bin/cc on
17702         ymp-cray-unicos9.0.2.X.
17703         Combine two mostly-identical uses of alloca into one.
17704         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
17705
17706 2003-08-04  Dave Love  <d.love@dl.ac.uk>
17707
17708         [From Emacs.]
17709
17710         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
17711         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
17712         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
17713         obsolete NLIST_NAME_UNION.
17714         [__GNU__]: Undef BSD and FSCALE.
17715         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
17716
17717 2003-08-03  Paul Eggert  <eggert@twinsun.com>
17718
17719         * lib/stdbool_.h (_Bool): Make it signed char, instead of
17720         an enum type, so that it's guaranteed to promote to int.  See:
17721         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
17722
17723 2003-08-03  Karl Berry  <karl@gnu.org>
17724
17725         * config/depcomp: update from automake.
17726
17727 2003-07-31  Paul Eggert  <eggert@twinsun.com>
17728
17729         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
17730         (strerror): Don't assume that a printable int fits in 14 bytes.
17731
17732 2003-07-31  Bruno Haible  <bruno@clisp.org>
17733
17734         * modules/getpass-gnu: New file.
17735         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
17736
17737 2003-07-31  Bruno Haible  <bruno@clisp.org>
17738
17739         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
17740
17741 2003-07-24  Karl Berry  <karl@gnu.org>
17742
17743         * config/missing: update from automake.
17744
17745 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
17746             Bruno Haible  <bruno@clisp.org>
17747
17748         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
17749         * lib/getline.c (getline, getdelim): Likewise.
17750         Remove _GNU_SOURCE define; now it's defined in config.h through
17751         m4/getline.m4.
17752
17753 2003-07-23  Karl Berry  <karl@gnu.org>
17754
17755         * config/config.sub: update from prep.
17756
17757 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17758
17759         * modules/xalloc (Depends-on): Add exitfail.
17760         * modules/xmemcoll: Likewise.
17761
17762 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17763
17764         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
17765         over-parenthesization in macros.
17766
17767         Sync with coreutils.
17768
17769         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
17770         required by C99.
17771
17772         Use `exit_failure' for xalloc and xmemcoll instead of their own
17773         private exit-failure variables.
17774         * lib/xalloc.h (xalloc_exit_failure): Remove.
17775         * lib/xmalloc.c: Likewise.  Include exitfail.h.
17776         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
17777         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
17778         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
17779         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
17780
17781 2003-07-20  Jim Meyering  <jim@meyering.net>
17782
17783         * modules/closeout (Depends-on): Add exitfail.
17784         Suggestion from Bruno Haible.
17785
17786 2003-07-19  Karl Berry  <karl@gnu.org>
17787
17788         * config/config.sub: update from prep.
17789
17790 2003-07-18  Paul Eggert  <eggert@twinsun.com>
17791
17792         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
17793         Remove.
17794         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
17795         to test that it can stand by itself.  Include "exitfail.h".
17796         Clients should set exit_failure instead.
17797         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
17798
17799 2003-07-18  Bruno Haible  <bruno@clisp.org>
17800
17801         * modules/getndelim2: New file.
17802         * modules/getline: Share files with module getndelim2.
17803         * modules/getnline: Depend on getndelim2 instead of sharing files with
17804         it. Add getnline.c to lib_SOURCES.
17805         * MODULES.html.sh (func_all_modules): Add getndelim2.
17806
17807 2003-07-18  Bruno Haible  <bruno@clisp.org>
17808
17809         * m4/getndelim2.m4: New file.
17810         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
17811         invoke gl_PREREQ_GETNDELIM2.
17812         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
17813         gl_PREREQ_GETNDELIM2.
17814         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
17815         gl_GETNDELIM2.
17816
17817 2003-07-18  Bruno Haible  <bruno@clisp.org>
17818
17819         * lib/getndelim2.h: New file.
17820         * lib/getndelim2.c: Make into a module of its own. Include config.h,
17821         getndelim2.h.
17822         (getndelim2): Make non-static. Change return type to ssize_t.
17823         * lib/getline.h: Change argument names.
17824         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
17825         * lib/getnline.c: Include getndelim2.h.
17826
17827 2003-07-18  Andreas Schwab  <schwab@suse.de>
17828
17829         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
17830
17831 2003-07-17  Karl Berry  <karl@gnu.org>
17832
17833         * config/config.sub: update from prep.
17834
17835 2003-07-17  Bruno Haible  <bruno@clisp.org>
17836
17837         * modules/getnline: New file.
17838         * modules/getline: Add lib/getndelim2.c to source file list.
17839         * MODULES.html.sh (func_all_modules): Add getnline.
17840
17841 2003-07-17  Bruno Haible  <bruno@clisp.org>
17842
17843         * m4/getnline.m4: New file.
17844
17845 2003-07-17  Bruno Haible  <bruno@clisp.org>
17846
17847         * m4/Makefile.am.in: Remove file.
17848         * m4/Makefile.am: Remove file.
17849         * m4/Makefile.in: Remove file.
17850
17851 2003-07-17  Bruno Haible  <bruno@clisp.org>
17852
17853         * lib/getnline.h: New file.
17854         * lib/getnline.c: New file.
17855         * lib/getndelim2.c: New file, extracted from getline.c.
17856         (getndelim2): Renamed from getdelim2, with added nmax argument.
17857         * lib/getline.c: Include getndelim2.c.
17858         (getdelim2): Moved out to getndelim2.c.
17859         (getline, getdelim): Update.
17860
17861 2003-07-17  Bruno Haible  <bruno@clisp.org>
17862
17863         * lib/Makefile.am: Remove file.
17864         * lib/Makefile.in: Remove file.
17865
17866 2003-07-17  Bruno Haible  <bruno@clisp.org>
17867
17868         * configure.in: Remove file.
17869         * Makefile.in: Remove file.
17870
17871 2003-07-17  Bruno Haible  <bruno@clisp.org>
17872
17873         * MODULES.html.sh: Put the </BODY> right before </HTML>.
17874
17875 2003-07-16  Karl Berry  <karl@gnu.org>
17876
17877         * config/srclist-update: was running fixlicense twice, which caused
17878                 texinfo.tex to be nullified for some reason.  Simplify,
17879                 $gplsrc is no longer needed as far as I can see?
17880
17881 2003-07-16  Jim Meyering  <jim@meyering.net>
17882
17883         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
17884
17885 2003-07-15  Paul Eggert  <eggert@twinsun.com>
17886
17887         * config/srclist.txt: Get the following files from gettext-runtime/intl
17888         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
17889         ref-del.sin.  From Bruno Haible.
17890         * config/srclist-update (fixfile): Change grep pattern again, since the
17891         previous fix didn't work (there was another trailing $).  Use
17892         '[$]' to escape the $s.
17893
17894 2003-07-15  Karl Berry  <karl@gnu.org>
17895
17896         * lib/vasnprintf.c: update from gettext.
17897
17898 2003-07-15  Karl Berry  <karl@gnu.org>
17899
17900         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
17901         gets expanded when surrounded by '$'.
17902
17903 2003-07-15  Jim Meyering  <jim@meyering.net>
17904
17905         * modules/save-cwd: Don't depend on error.  From Derek Price.
17906
17907 2003-07-15  Jim Meyering  <jim@meyering.net>
17908
17909         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
17910
17911 2003-07-14  Simon Josefsson  <jas@extundo.com>
17912
17913         * modules/mempcpy: New file.
17914         * MODULES.html.sh (func_all_modules): Add mempcpy.
17915
17916 2003-07-14  Simon Josefsson  <jas@extundo.com>
17917
17918         * m4/mempcpy.m4: New file.
17919
17920 2003-07-14  Simon Josefsson  <jas@extundo.com>
17921
17922         * lib/mempcpy.h: New file.
17923         * lib/mempcpy.c: New file.
17924
17925 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17926
17927         * modules/getdate, modules/posixtm: Depend on mktime.
17928
17929 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17930
17931         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
17932         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
17933         unicodeio.c, unicodeio.h, unlocked-io.h:
17934         Switch from LGPL to GPL.
17935
17936 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17937
17938         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
17939         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
17940         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
17941         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
17942         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
17943         updated automatically by ../config/srclist-update.  This changes
17944         their license from LPGL to GPL.
17945
17946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
17947
17948         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
17949         assumed to refer to the root of the most recent stable gettext version.
17950         * config/srclistvars.sh: Add defaults for eggert.
17951         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
17952         Match "This program" as well as "The program".  This is needed
17953         for gettext.
17954
17955 2003-07-14  Jim Meyering  <jim@meyering.net>
17956
17957         Don't emit diagnostics.  Let callers do that.
17958         * lib/save-cwd.c: Don't include "error.h".
17959         (save_cwd): Don't call error.  Ensure that errno is valid
17960         when returning nonzero.
17961
17962         * lib/save-cwd.h (restore_cwd): Update prototype.
17963         * lib/save-cwd.c (restore_cwd): Remove two parameters.
17964         Simplify.  Don't call error upon failure.  Let callers do that.
17965         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
17966         when auditing is enabled.  But don't bother updating the #if.
17967
17968 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
17969
17970         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
17971         it breaks C++ compilation.
17972         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
17973
17974 2003-07-10  Simon Josefsson  <jas@extundo.com>
17975
17976         * modules/strchrnul (Makefile.am): Add strchrnul.h.
17977
17978 2003-07-10  Jim Meyering  <jim@meyering.net>
17979
17980         * m4/clock_time.m4: Remove trailing blank.
17981         * m4/intmax_t.m4: Likewise.
17982
17983 2003-07-10  Jim Meyering  <jim@meyering.net>
17984
17985         * lib/vasnprintf.c: Remove trailing blanks.
17986         Make cpp indentation consistent.
17987
17988 2003-07-09  Paul Eggert  <eggert@twinsun.com>
17989
17990         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
17991         posixver.c, strftime.c, strnlen.c, strverscmp.c:
17992         Switch from LGPL to GPL.
17993
17994 2003-07-09  Paul Eggert  <eggert@twinsun.com>
17995
17996         * config/srclist.txt: Sort sublists.  Add
17997         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
17998         that differ from gnulib for one reason or another; we'd like this list
17999         to be smaller but for now let's document what we have.
18000
18001 2003-07-08  Paul Eggert  <eggert@twinsun.com>
18002
18003         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
18004         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
18005         and sweeter "eval x=$x".
18006         * config/srclist.txt: Get lib/argp* from glibc.
18007
18008 2003-07-07  Paul Eggert  <eggert@twinsun.com>
18009
18010         * lib/mktime.c: Fix some boundary cases and remove need for floating
18011         point.
18012
18013         Issue a compile-time diagnostic if time_t is floating point, or if
18014         two's complement arithmetic is not in effect, or if arithmetic
18015         right shift does not propagate the sign.  These assumptions were
18016         all in the original code but they weren't checked.
18017
18018         (TIME_T_MIDPOINT, verify): New macros.
18019         (__isleap): Remove; it has integer overflow problems.
18020         (leapyear): New function, without those problems.
18021         (ydhms_tm_diff): Remove; splitting into two parts.
18022         (ydhms_diff): New function, containing the arithmetic part of
18023         the old ydhms_tm_diff function.  Issue a compile-time
18024         diagnostic if we are not using C99 integer division.
18025         Avoid casts when possible.
18026         (guess_time_tm): New function, containing the checking part of
18027         the old ydhms_tm_diff function.  Return the new value, rather than
18028         the difference between it and the old.  Accept a new argument T
18029         so that *T specifies the old value.  Check for overflow in the result.
18030
18031         (__mktime_internal): Use a time_t offset, not a long int offset.
18032         This undoes the 2003-06-04 change, which is no longer needed now
18033         that we have better overflow checking.
18034         (localtime_offset): Likewise.
18035
18036         (__mktime_internal): Avoid harmful overflow on hosts where time_t
18037         and long are 64-bit but int is only 32-bit.
18038         (ydhms_diff): Use long int to store year1 and yday1.
18039         Issue a compile-time diagnostic if long int is not wide enough.
18040
18041         (__mktime_internal): Use long int to store adjusted year and yday.
18042         Use plain C rather than preprocessor commands, if that doesn't
18043         affect efficiency.
18044         Check for overflow (and try to repair) after each probe
18045         rather than checking only at the very end.  This avoids some bugs
18046         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
18047         does not equal GMT offset at maximum time).
18048         Use integer to check for overflow rather than floating point; this
18049         is more portable to non-IEEE hosts, and is a tad faster.
18050         When we detect that we are oscillating between two values,
18051         don't check whether tm_isdst has the requested value, since
18052         we already know the answer.  When tm_isdst has the wrong value,
18053         use a different heuristic to find the right one, based on the
18054         extreme values actually observed in practice in tz2003a,
18055         rather than the (overly optimistic) "previous 3 calendar quarters".
18056
18057         (not_equal_tm, print_tm, check_result): Use "const T" rather than
18058         "T const" to accommodate glibc style.
18059         (check_result): Use less-confusing report format.  "long" -> "long int.
18060         (main): Likewise.
18061         Don't loop if the iteration overflows time_t.
18062         Allow a negative step in the iteration.
18063
18064 2003-07-06  Karl Berry  <karl@gnu.org>
18065
18066         * config/depcomp: update from automake.
18067         * config/config.sub: update from prep.
18068
18069 2003-07-03  Karl Berry  <karl@gnu.org>
18070
18071         * config/config.guess: update from prep.
18072
18073 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18074
18075         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
18076         xreadlink.c now includes it unconditionally.
18077
18078 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18079
18080         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
18081         having it depend on HAVE_SYS_TYPES_H.
18082
18083 2003-07-01  Bruno Haible  <bruno@clisp.org>
18084
18085         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
18086         <sys/types.h> should be sufficient.
18087         Reported by Paul Eggert.
18088
18089 2003-06-26  Karl Berry  <karl@gnu.org>
18090
18091         * config/depcomp: update from automake.
18092
18093 2003-06-26  Bruno Haible  <bruno@clisp.org>
18094
18095         * modules/human: Depend on module stdbool.
18096
18097 2003-06-25  Bruno Haible  <bruno@clisp.org>
18098
18099         * modules/readlink: New file.
18100         * modules/xreadlink: Depend on it.
18101         * MODULES.html.sh (func_all_modules): Add readlink.
18102
18103 2003-06-25  Bruno Haible  <bruno@clisp.org>
18104
18105         * m4/readlink.m4: New file.
18106
18107 2003-06-25  Bruno Haible  <bruno@clisp.org>
18108
18109         * lib/readlink.c: New file.
18110
18111 2003-06-22  Karl Berry  <karl@gnu.org>
18112
18113         * config/srclist.txt: update mkinstalldirs from automake.
18114         * config/mkinstalldirs: update.
18115
18116 2003-06-22  Bruno Haible  <bruno@clisp.org>
18117
18118         Portability to mingw32.
18119         * m4/ssize_t.m4: New file, from GNU gettext.
18120         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
18121         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
18122
18123 2003-06-22  Bruno Haible  <bruno@clisp.org>
18124
18125         * modules/safe-read: Add m4/ssize_t.m4.
18126         * modules/xreadlink: Add m4/ssize_t.m4.
18127
18128 2003-06-20  Bruno Haible  <bruno@clisp.org>
18129
18130         Assume C89, so PARAMS isn't needed.
18131         * lib/unicodeio.h (PARAMS): Remove.
18132         * lib/unicodeio.c: Don't use PARAMS.
18133
18134 2003-06-18  Karl Berry  <karl@gnu.org>
18135
18136         * config/config.{guess,sub}: update from prep.
18137
18138 2003-06-18  Jim Meyering  <jim@meyering.net>
18139
18140         Merge changes from coreutils.
18141         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
18142         Remove explicit declarations of xmalloc and realloc.
18143         Include xalloc.h.
18144         (read_utmp): Remove anachronistic cast of xmalloc.
18145
18146 2003-06-17  Paul Eggert  <eggert@twinsun.com>
18147
18148         Assume C89, so PARAMS isn't needed.
18149         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
18150         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
18151         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
18152         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
18153         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
18154         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
18155         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
18156         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
18157         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
18158         lib/xstrtod.h, lib/xstrtol.h: Likewise.
18159         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
18160         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
18161         no longer needed. Anyway, config.h should always be included before any
18162         other file.
18163
18164 2003-06-11  Simon Josefsson  <jas@extundo.com>
18165
18166         * modules/sysexits: New file.
18167         * MODULES.html.sh (func_all_modules): Add sysexits.
18168
18169 2003-06-11  Simon Josefsson  <jas@extundo.com>
18170
18171         * lib/sysexit_.h: New file.
18172
18173 2003-06-11  Derek Price  <derek@ximbiot.com>
18174
18175         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
18176         necessary.
18177
18178 2003-06-11  Bruno Haible  <bruno@clisp.org>
18179
18180         * m4/sysexits.m4: New file.
18181
18182 2003-06-10  Simon Josefsson  <jas@extundo.com>
18183
18184         * lib/argp.h: New file, from glibc.
18185         * lib/argp-ba.c: New file, from glibc.
18186         * lib/argp-eexst.c: New file, from glibc.
18187         * lib/argp-fmtstream.c: New file, from glibc.
18188         * lib/argp-fmtstream.h: New file, from glibc.
18189         * lib/argp-fs-xinl.c: New file, from glibc.
18190         * lib/argp-help.c: New file, from glibc.
18191         * lib/argp-namefrob.h: New file, from glibc.
18192         * lib/argp-parse.c: New file, from glibc.
18193         * lib/argp-pv.c: New file, from glibc.
18194         * lib/argp-pvh.c: New file, from glibc.
18195         * lib/argp-xinl.c: New file, from glibc.
18196
18197 2003-06-10  Simon Josefsson  <jas@extundo.com>
18198
18199         * modules/strchrnul: New file.
18200
18201 2003-06-10  Simon Josefsson  <jas@extundo.com>
18202
18203         * modules/argp: New file.
18204
18205 2003-06-10  Simon Josefsson  <jas@extundo.com>
18206
18207         * m4/strchrnul.m4: New file.
18208
18209 2003-06-10  Simon Josefsson  <jas@extundo.com>
18210
18211         * lib/strchrnul.h: New file.
18212         * lib/strchrnul.c: New file.
18213
18214 2003-06-10  Bruno Haible  <bruno@clisp.org>
18215
18216         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
18217
18218 2003-06-07  Karl Berry  <karl@gnu.org>
18219
18220         * config/config.{guess,sub}: update from prep.
18221
18222 2003-06-07  Jim Meyering  <jim@meyering.net>
18223
18224         * modules/strtod: Use $(...) notation, not @...@ for
18225         AC_REPLACE'd variables.
18226         * modules/localcharset: Likewise.
18227
18228 2003-06-07  Jim Meyering  <jim@meyering.net>
18229
18230         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
18231         in place of my name in the copyright comment.
18232         Remove definition and uses of __P.
18233
18234         From coreutils.
18235         * lib/stat.c: Don't declare xmalloc explicitly.
18236         Instead, include "xalloc.h".
18237         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
18238         xrealloc, and xcalloc return values.
18239         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
18240         Improve comment.
18241         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
18242
18243 2003-06-07  Bruno Haible  <bruno@clisp.org>
18244
18245         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
18246         avoid AC_CONFIG_LINKS.
18247         * modules/fnmatch (Makefile.am): Use explicit creation rule for
18248         fnmatch.h, to avoid AC_CONFIG_LINKS.
18249         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
18250
18251 2003-06-07  Bruno Haible  <bruno@clisp.org>
18252
18253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
18254         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
18255         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18256         directory.
18257         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
18258         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18259         directory.
18260
18261 2003-06-06  Jim Meyering  <jim@meyering.net>
18262
18263         Merge from coreutils.
18264         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
18265         Consolidate declarations and initializations of *_base* locals.
18266
18267         Merge from coreutils.
18268         This avoids a core dump on systems without GNU putenv,
18269         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
18270         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
18271         (unsetenv): New static function, from GNU libc.
18272         (rpl_putenv): Use it.
18273
18274         * lib/modechange.c: Remove trailing blanks.
18275
18276         Merge from coreutils.
18277         * lib/fsusage.c: Remove declaration of statfs.
18278         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
18279
18280         * lib/posixtm.c: Include <stdbool.h> unconditionally.
18281
18282 2003-06-06  Jim Meyering  <jim@meyering.net>
18283
18284         * lib/stdbool_.h: Renamed from stdbool.h.in.
18285
18286 2003-06-06  Jim Meyering  <jim@meyering.net>
18287             Bruno Haible  <bruno@clisp.org>
18288
18289         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
18290         Adjust Makefile.am snippet not to redirect directly to target.
18291         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
18292
18293 2003-06-05  Paul Eggert  <eggert@twinsun.com>
18294
18295         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
18296         mismatch, look in future quarters as well as past.  This fixes a
18297         bug when processing fall-backwards gaps immediately after a long
18298         period of daylight-saving time.
18299
18300         * lib/mktime.c: Assume freestanding C89 or better.
18301         (HAVE_LIMITS_H): Remove.  Assume it's 1.
18302         (__P): Remove; not used.
18303         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
18304         (mktime, not_equal_tm, print_tm, check_result,
18305         main): Use prototypes.  Use const * where appropriate.
18306         (main): Fix typo in testing code that uncovered by above changes.
18307         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
18308
18309 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18310
18311         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
18312         locale.h, localeconv.  This merges changes from coreutils.
18313
18314         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
18315         It can be removed after the next Autoconf is released.
18316         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
18317         needed.
18318
18319 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18320
18321         * lib/mktime.c: Fix Debian bug 177940
18322         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
18323         (localtime_offset): Now long int, not time_t, because we want it
18324         to be guaranteed to be signed.  All uses changed.
18325         (__mktime_internal): If overflow would occur when adding offset,
18326         don't add it.
18327
18328         Merge 'human' changes from coreutils.  Rewrite to support
18329         locale-specific notations like thousands separators.
18330         * lib/human.c: Simplify authorship notice.
18331         Include human.h immediately after config.h.
18332         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
18333         <limits.h>: Do not include, since human.h does.
18334         (SIZE_MAX, UINTMAX_MAX): New macros.
18335         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
18336         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
18337         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
18338         (power_letter): Renamed from suffixes.
18339         (generate_suffix_backwards): Remove.
18340         (adjust_value): Now takes int style (because of human.h changes)
18341         and long double value (for greater precision on some platforms).
18342         (group_number): New function.
18343         (human_readable): Use it.  Use integer options, not enum.
18344         Put the options before the sizes in the arg list.
18345         Support all the new options.
18346         The old human_readable function has been removed;
18347         use inttostr.h instead.
18348         (human_readable, default_block_size, humblock):
18349         Use uintmax_t, not int, for block sizes.
18350         (human_readable_inexact, block_size_types): Remove.
18351         (block_size_opts): New constant.
18352         (human_options): Renamed from human_block_size, with new signature
18353         that allows block sizes up to UINTMAX_MAX.  All callers changed.
18354         * lib/human.h: Add copyright and authorship notice.
18355         Include <limits.h> and <stdbool.h> unconditionally.
18356         (PARAMS): Remove.  All uses removed.
18357         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
18358         (enum human_inexact_style): Remove tag; now a nameless enum.
18359         (human_floor, human_ceiling, human_round_to_even): Now have
18360         values 2, 0, 1 rather than -1, 1, 0.
18361         (human_group_digits, human_suppress_point_zero, human_autoscale,
18362         human_base_1024, human_SI, human_B): New constants.
18363         (human_readable_inexact, human_block_size): Remove.
18364         (human_readable): Size args are now uintmax_t, not int.
18365         (human_options): New decl.
18366
18367         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
18368         unnecessary now that we assume C89 or better.  This change
18369         imported from coreutils.
18370
18371         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
18372         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
18373         in the 2003-05-30 sync from glibc.
18374
18375         .h files should stand alone, but we shouldn't include <sys/types.h>
18376         if we can get away with just <stddef.h>.
18377
18378         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
18379         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
18380         rather than <sys/types.h>, as we merely need size_t.
18381         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
18382         to get size_t.
18383         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
18384         Include <stdio.h>, to get FILE.
18385         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
18386         memcasecmp.h has included <stddef.h> and all we need is size_t.
18387         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
18388         our interface, instead of including <sys/types.h>
18389
18390 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18391
18392         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
18393         now, as glibc mktime is buggy on non-glibc systems.
18394
18395 2003-06-03  Karl Berry  <karl@gnu.org>
18396
18397         * config/config.sub: update from prep.
18398
18399 2003-06-02  Paul Eggert  <eggert@twinsun.com>
18400
18401         [from coreutils]
18402         Fix some minor time-related bugs with POSIX time arguments.
18403         Some valid time stamps were being rejected (notably -1, and
18404         time stamps before 1900 on 64-bit hosts).  And some invalid
18405         time stamps were being accepted, e.g. September 31.
18406
18407         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
18408         that we can return (time_t) -1 successfully.
18409         * lib/posixtm.c: Likewise.
18410         [HAVE_STDBOOL_H]: Include <stdbool.h>.
18411         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
18412         (t): Remove static var.
18413         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
18414         of static var.  All uses changed.
18415         (year): Do not reject years before 1900; they can occur with
18416         64-bit time_t.
18417         (posix_time_parse): Do not check for out-of-range components;
18418         that is now the caller's responsibility, since our checks were
18419         only approximations.
18420         (posixtime): Use mktime to check for out-of-range components,
18421         since it knows them exactly.
18422         If mktime returns (time_t) -1, check whether an error actually occurred
18423         by invoking localtime on -1.
18424         (main) [TEST_POSIXTIME]: Check for input data errors, and report
18425         posixtime failures better.
18426         Improve the test data (in comments only).
18427
18428 2003-06-02  Karl Berry  <karl@gnu.org>
18429
18430         * config/mkinstalldirs (version): new variable.
18431         (--version): new option.
18432         (usage): improve message.
18433
18434 2003-05-30  Karl Berry  <karl@gnu.org>
18435
18436         * lib/mktime.c: update from libc.
18437
18438 2003-05-30  Bruno Haible  <bruno@clisp.org>
18439
18440         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
18441         * config/config.rpath: Upgrade to gettext-0.12.1.
18442
18443 2003-05-30  Bruno Haible  <bruno@clisp.org>
18444
18445         * m4/gettext.m4: Upgrade to gettext-0.12.1.
18446         * m4/nls.m4: New file, from gettext-0.12.1.
18447         * m4/po.m4: New file, from gettext-0.12.1.
18448         * m4/progtest.m4: Upgrade to gettext-0.12.1.
18449
18450 2003-05-30  Bruno Haible  <bruno@clisp.org>
18451
18452         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
18453         * lib/localcharset.h: Likewise.
18454         * lib/localcharset.c: Likewise.
18455
18456 2003-05-29  Karl Berry  <karl@gnu.org>
18457
18458         * config/config.rpath: update from gettext.
18459
18460 2003-05-28  Paul Eggert  <eggert@twinsun.com>
18461
18462         Assume the headers required for C89 freestanding compilers.
18463         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
18464         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
18465         * m4/human.m4 (gl_HUMAN): Likewise.
18466         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
18467         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
18468         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18469         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
18470         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18471         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
18472
18473 2003-05-28  Paul Eggert  <eggert@twinsun.com>
18474
18475         Assume the headers required for C89 freestanding compilers.
18476         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
18477         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
18478         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
18479         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
18480         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
18481         define, since <limits.h> is guaranteed to do that.
18482         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
18483         * lib/exclude.c: Include <stdbool.h> unconditionally.
18484         * lib/tempname.c: Include <stddef.h> unconditionally.
18485         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
18486         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
18487         <stddef.h> does that.
18488         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
18489         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
18490         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
18491         needed.
18492         * lib/xstrtol.c: Likewise.
18493         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
18494         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
18495
18496         * lib/addext.c (addext): Use assignment rather than cast, to avoid
18497         warnings on some platforms.
18498
18499         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
18500         arbitrarily.
18501
18502 2003-05-26  Jim Meyering  <jim@meyering.net>
18503
18504         Merge in a change from coreutils:
18505         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
18506         that is guaranteed to be `no'.  Use `no_such_member' to indicate
18507         that condition, rather than `-1' which is slightly misleading.
18508         Change the name of the cache variable to have the gl_ prefix.
18509         Prompted by a patch from Richard Dawe for DJGPP.
18510
18511 2003-05-24  Karl Berry  <karl@gnu.org>
18512
18513         * config/config.guess: update from prep.
18514
18515 2003-05-22  Karl Berry  <karl@gnu.org>
18516
18517         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
18518
18519 2003-05-20  Karl Berry  <karl@gnu.org>
18520
18521         * config/config.guess: update from prep.
18522
18523 2003-05-18  Karl Berry  <karl@gnu.org>
18524
18525         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
18526         might actually be set by the user.
18527
18528         * config/depcomp, install-sh, mdate-sh: update from automake.
18529
18530 2003-05-17  Bruno Haible  <bruno@clisp.org>
18531
18532         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
18533         invalid expansion for AC_EGREP_CPP.
18534         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18535         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18536         Suggested by Akim Demaille <akim@epita.fr> in
18537         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
18538
18539 2003-05-12  Jim Meyering  <jim@meyering.net>
18540
18541         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
18542         the space-padded-by-default conversion specifiers, %e, %k, %l.
18543
18544 2003-05-12  Bruno Haible  <bruno@clisp.org>
18545
18546         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
18547         the string is longer than 4 KB.
18548
18549 2003-05-11  Karl Berry  <karl@gnu.org>
18550
18551         * config/config.{guess,sub}: update from prep.
18552
18553 2003-05-09  Bruno Haible  <bruno@clisp.org>
18554
18555         * modules/error: Add m4/strerror_r.m4 to file list.
18556
18557 2003-05-03  Bruno Haible  <bruno@clisp.org>
18558
18559         Upgrade to Unicode-4.0.
18560         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
18561         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
18562         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
18563         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
18564         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
18565         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
18566         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
18567         Change width of U+E0100..U+E01EF from 1 to 0.
18568
18569 2003-04-25  Jim Meyering  <jim@meyering.net>
18570
18571         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
18572         of type size_t, not int.
18573
18574 2003-04-25  Bruno Haible  <bruno@clisp.org>
18575
18576         * lib/copy-file.c: Include <stddef.h>, for size_t.
18577
18578 2003-04-21  Paul Eggert  <eggert@twinsun.com>
18579
18580         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
18581         code which expansion is under static control.  Patch imported from
18582         Akim Demaille's patch to Bison; see
18583         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
18584
18585 2003-04-14  Bruno Haible  <bruno@clisp.org>
18586
18587         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
18588
18589 2003-04-11  Jim Meyering  <jim@meyering.net>
18590
18591         Merge changes from Coreutils.
18592
18593         2003-03-22  Jim Meyering  <jim@meyering.net>
18594
18595         * lib/strftime.c (widen): Cast alloca return value to proper type.
18596
18597         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
18598
18599         From GNU libc.
18600         * lib/strftime.c (my_strftime): Handle very large width
18601         specifications for numeric values correctly.  Improve checks for
18602         overflow.
18603
18604         2003-01-19  Jim Meyering  <jim@meyering.net>
18605
18606         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
18607         definitions.
18608         (nl_get_alt_digit) [! defined my_strftime]: Define.
18609         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
18610         _nl_get_alt_digit and _nl_get_walt_digit.
18611
18612         * lib/strftime.c (my_strftime): Merge in locale-related changes from
18613         libc. These changes have no effect outside of _LIBC.
18614
18615 2003-04-10  Bruno Haible  <bruno@clisp.org>
18616
18617         * modules/findprog: New file.
18618         * MODULES.html.sh (func_all_modules): Add it.
18619
18620 2003-04-10  Bruno Haible  <bruno@clisp.org>
18621
18622         * m4/findprog.m4: New file.
18623         * m4/eaccess.m4: New file.
18624
18625 2003-04-10  Bruno Haible  <bruno@clisp.org>
18626
18627         * lib/findprog.h: New file, from GNU gettext.
18628         * lib/findprog.c: New file, from GNU gettext.
18629
18630 2003-04-05  Jim Meyering  <jim@meyering.net>
18631
18632         Merge changes from Coreutils.
18633
18634         * lib/exclude.h (PARAMS): Remove definition and uses.
18635         * lib/exclude.c: Remove uses of `PARAMS'.
18636
18637         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
18638         Add test-cases for DOS filenames. Declare program_name.
18639         (main): Set up program_name.  Patch by Rich Dawe.
18640
18641         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18642         error from mntctl.
18643         Use mntctl's return value to drive the entry-processing loop, since
18644         we can't rely on the value of the vmt_length member in the last
18645         entry.  On some systems doing so could result in exhausting
18646         virtual memory.  Based in part on a patch from Mike Jetzer.
18647
18648 2003-04-04  Bruno Haible  <bruno@clisp.org>
18649
18650         * modules/linebreak: New file.
18651         * MODULES.html.sh (func_all_modules): Add it.
18652
18653 2003-04-04  Bruno Haible  <bruno@clisp.org>
18654
18655         * m4/linebreak.m4: New file.
18656
18657 2003-04-04  Bruno Haible  <bruno@clisp.org>
18658
18659         * lib/linebreak.h: New file, from GNU gettext.
18660         * lib/linebreak.c: New file, from GNU gettext with slight
18661         modifications.
18662         * lib/lbrkprop.h: New file, from GNU gettext.
18663
18664 2003-04-03  Bruno Haible  <bruno@clisp.org>
18665
18666         * modules/utf8-ucs4: New file.
18667         * modules/utf16-ucs4: New file.
18668         * modules/ucs4-utf8: New file.
18669         * modules/ucs4-utf16: New file.
18670         * MODULES.html.sh (func_all_modules): Add them.
18671
18672 2003-04-03  Bruno Haible  <bruno@clisp.org>
18673
18674         * m4/utf-ucs4.m4: New file.
18675         * m4/ucs4-utf.m4: New file.
18676
18677 2003-04-03  Bruno Haible  <bruno@clisp.org>
18678
18679         * lib/utf8-ucs4.h: New file, from GNU gettext.
18680         * lib/utf16-ucs4.h: New file, from GNU gettext.
18681         * lib/ucs4-utf8.h: New file, from GNU gettext.
18682         * lib/ucs4-utf16.h: New file, from GNU gettext.
18683
18684 2003-04-02  Bruno Haible  <bruno@clisp.org>
18685
18686         * modules/binary-io: New file.
18687         * MODULES.html.sh (func_all_modules): Add it.
18688
18689 2003-04-02  Bruno Haible  <bruno@clisp.org>
18690
18691         * lib/binary-io.h: New file, from GNU gettext.
18692
18693 2003-04-01  Bruno Haible  <bruno@clisp.org>
18694
18695         * modules/pathname: New file.
18696         * MODULES.html.sh (func_all_modules): Add it.
18697
18698 2003-04-01  Bruno Haible  <bruno@clisp.org>
18699
18700         * lib/pathname.h: New file, from GNU gettext.
18701         * lib/concatpath.c: New file, from GNU gettext.
18702
18703 2003-03-30  Bruno Haible  <bruno@clisp.org>
18704
18705         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
18706
18707 2003-03-30  Bruno Haible  <bruno@clisp.org>
18708
18709         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
18710         function chown() doesn't exist.
18711
18712 2003-03-28  Bruno Haible  <bruno@clisp.org>
18713
18714         * modules/copy-file: New file.
18715         * MODULES.html.sh (func_all_modules): Add it.
18716
18717 2003-03-28  Bruno Haible  <bruno@clisp.org>
18718
18719         * m4/copy-file.m4: New file.
18720
18721 2003-03-28  Bruno Haible  <bruno@clisp.org>
18722
18723         * lib/copy-file.h: New file, from GNU gettext.
18724         * lib/copy-file.c: New file, from GNU gettext.
18725
18726 2003-03-18  Jim Meyering  <jim@meyering.net>
18727
18728         * lib/quote.c (quote_n): Fix typo in comment.
18729
18730 2003-03-18  Bruno Haible  <bruno@clisp.org>
18731
18732         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
18733         checking.
18734         * m4/onceonly_2_57.m4: Likewise.
18735
18736 2003-03-17  Bruno Haible  <bruno@clisp.org>
18737
18738         * m4/onceonly.m4: Require autoconf 2.54 or newer.
18739         (m4_quote): Remove macro.
18740         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
18741
18742 2003-03-14  Jim Meyering  <jim@meyering.net>
18743
18744         Merge changes from Coreutils.
18745         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
18746         to be const, in order to avoid warnings.
18747         (obstack_room): Likewise.
18748         (obstack_empty_p): Likewise.
18749
18750 2003-03-14  Bruno Haible  <bruno@clisp.org>
18751
18752         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
18753         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
18754
18755 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18756
18757         Merge changes from Bison.
18758         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
18759         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
18760         when compiling Bison 1.875's `bitset bset = obstack_alloc
18761         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
18762         * lib/hash.c: Include <stdbool.h> unconditionally.
18763
18764 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18765
18766         * m4/onceonly.m4 (m4_quote): New macro.
18767         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
18768         Quote AC_FOREACH variable-expansions properly.
18769
18770 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18771
18772         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
18773
18774 2003-03-09  Paul Eggert  <eggert@twinsun.com>
18775
18776         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
18777         Reported by Bruce Becker; see:
18778         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
18779
18780 2003-03-03  Paul Eggert  <eggert@twinsun.com>
18781             Bruno Haible  <bruno@clisp.org>
18782
18783         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
18784         Reported by John Hughes, see
18785         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
18786
18787 2003-02-20  Bruno Haible  <bruno@clisp.org>
18788
18789         * MODULES.html.sh (func_all_modules): Add poll.
18790
18791 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18792
18793         * modules/poll: New file.
18794
18795 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18796
18797         * lib/poll_.h: New file.
18798         * lib/poll.c: New file.
18799
18800 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18801
18802         * m4/poll.m4: New file.
18803
18804 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18805
18806         * modules/mathl: New file.
18807
18808 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18809
18810         * lib/mathl.h: New file.
18811         * lib/acosl.c: New file.
18812         * lib/asinl.c: New file.
18813         * lib/atanl.c: New file.
18814         * lib/ceill.c: New file.
18815         * lib/cosl.c: New file.
18816         * lib/expl.c: New file.
18817         * lib/floorl.c: New file.
18818         * lib/frexpl.c: New file.
18819         * lib/ldexpl.c: New file.
18820         * lib/logl.c: New file.
18821         * lib/sincosl.c: New file.
18822         * lib/sinl.c: New file.
18823         * lib/sqrtl.c: New file.
18824         * lib/tanl.c: New file.
18825         * lib/trigl.c: New file.
18826         * lib/trigl.h: New file.
18827
18828 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18829
18830         * m4/mathl.m4: New file.
18831
18832 2003-02-18  Bruno Haible  <bruno@clisp.org>
18833
18834         * MODULES.html.sh (func_all_modules): Add mathl.
18835
18836 2003-02-17  Bruno Haible  <bruno@clisp.org>
18837
18838         * modules/mkdtemp: New module.
18839         * MODULES.html.sh (func_all_modules): Add it.
18840
18841 2003-02-17  Bruno Haible  <bruno@clisp.org>
18842
18843         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
18844
18845 2003-02-17  Bruno Haible  <bruno@clisp.org>
18846
18847         * lib/mkdtemp.h: New file, from GNU gettext.
18848         * lib/mkdtemp.c: New file, from GNU gettext.
18849
18850 2003-02-02  Jim Meyering  <jim@meyering.net>
18851
18852         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
18853         e.g. glibc-2.2.93.
18854
18855 2003-01-31  Bruno Haible  <bruno@clisp.org>
18856
18857         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
18858         'rpl_rename'.
18859         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
18860         'rpl_strnlen'.
18861         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
18862         'rpl_strtod'.
18863         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
18864         'rpl_utime'.
18865
18866 2003-01-31  Bruno Haible  <bruno@clisp.org>
18867
18868         * lib/rename.c: #undef rename before defining rpl_rename.
18869         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
18870
18871 2003-01-30  Bruno Haible  <bruno@clisp.org>
18872
18873         * modules/vasnprintf, modules/vasprintf: New modules.
18874         * MODULES.html.sh (func_all_modules): Add them.
18875
18876 2003-01-30  Bruno Haible  <bruno@clisp.org>
18877
18878         * m4/signed.m4: New file, from GNU gettext.
18879         * m4/longdouble.m4: New file, from GNU gettext.
18880         * m4/wchar_t.m4: New file, from GNU gettext.
18881         * m4/wint_t.m4: New file, from GNU gettext.
18882         * m4/vasnprintf.m4: New file.
18883         * m4/vasprintf.m4: New file.
18884
18885 2003-01-30  Bruno Haible  <bruno@clisp.org>
18886
18887         * lib/printf-args.h: New file, from GNU gettext.
18888         * lib/printf-args.c: New file, from GNU gettext.
18889         * lib/printf-parse.h: New file, from GNU gettext.
18890         * lib/printf-parse.c: New file, from GNU gettext.
18891         * lib/vasnprintf.h: New file, from GNU gettext.
18892         * lib/vasnprintf.c: New file, from GNU gettext.
18893         * lib/asnprintf.c: New file, from GNU gettext.
18894         * lib/vasprintf.h: New file, from GNU gettext with modifications.
18895         * lib/vasprintf.c: New file, from GNU gettext.
18896         * lib/asprintf.c: New file, from GNU gettext.
18897
18898 2003-01-29  Bruno Haible  <bruno@clisp.org>
18899
18900         * modules/stpncpy: New module.
18901         * MODULES.html.sh (func_all_modules): Add it.
18902
18903 2003-01-29  Bruno Haible  <bruno@clisp.org>
18904
18905         * m4/stpncpy.m4: New file.
18906
18907 2003-01-29  Bruno Haible  <bruno@clisp.org>
18908
18909         * lib/stpncpy.h: New file, from GNU gettext with modifications.
18910         * lib/stpncpy.c: New file, from GNU gettext with modifications.
18911
18912 2003-01-28  Bruno Haible  <bruno@clisp.org>
18913
18914         * modules/c-ctype: New module.
18915         * MODULES.html.sh (func_all_modules): Add it.
18916
18917 2003-01-28  Bruno Haible  <bruno@clisp.org>
18918
18919         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
18920         Paul Eggert.
18921         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
18922         Paul Eggert.
18923
18924 2003-01-27  Bruno Haible  <bruno@clisp.org>
18925
18926         * modules/xsetenv: New module.
18927         * MODULES.html.sh (func_all_modules): Add it.
18928
18929 2003-01-27  Bruno Haible  <bruno@clisp.org>
18930
18931         * lib/xsetenv.h: New file, from GNU gettext.
18932         * lib/xsetenv.c: New file, from GNU gettext.
18933
18934 2003-01-23  Jim Meyering  <jim@meyering.net>
18935
18936         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
18937         from working on systems without dirfd (at least Irix and OSF1/Tru64).
18938
18939 2003-01-23  Bruno Haible  <bruno@clisp.org>
18940
18941         * modules/minmax: New module.
18942         * MODULES.html.sh (func_all_modules): Add it.
18943
18944 2003-01-23  Bruno Haible  <bruno@clisp.org>
18945
18946         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
18947         Eggert.
18948
18949 2003-01-22  Bruno Haible  <bruno@clisp.org>
18950
18951         * modules/exit: New module.
18952         * MODULES.html.sh (func_all_modules): Add it.
18953
18954 2003-01-22  Bruno Haible  <bruno@clisp.org>
18955
18956         * lib/exit.h: New file, from GNU gettext.
18957
18958 2003-01-19  Bruno Haible  <bruno@clisp.org>
18959
18960         * gnulib-tool: Recognize option --extract-maintainer.
18961         (func_get_maintainer): New function.
18962         * modules/*: Add Maintainer entry.
18963
18964 2003-01-16  Jim Meyering  <jim@meyering.net>
18965
18966         * m4/regex.m4: The `regex' struct is both input and output.
18967         Initialize it before each use.  Patch by Tim Waugh.
18968
18969 2003-01-16  Bruno Haible  <bruno@clisp.org>
18970
18971         * MODULES.html.sh: Add a table of contents. Add the module name as
18972         leftmost column. Add hyperlinks.
18973
18974 2003-01-15  Bruno Haible  <bruno@clisp.org>
18975
18976         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
18977
18978 2003-01-15  Bruno Haible  <bruno@clisp.org>
18979
18980         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
18981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
18982         suffix.
18983
18984 2003-01-15  Bruno Haible  <bruno@clisp.org>
18985
18986         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
18987
18988 2003-01-15  Bruno Haible  <bruno@clisp.org>
18989
18990         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
18991         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
18992
18993 2003-01-14  Jim Meyering  <jim@meyering.net>
18994
18995         * lib/same.c (same_name): Tweak a comment.
18996
18997 2003-01-14  Bruno Haible  <bruno@clisp.org>
18998
18999         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
19000         when a string comparison is sufficient.
19001
19002 2003-01-14  Bruno Haible  <bruno@clisp.org>
19003
19004         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
19005         'unsigned int'.
19006
19007 2003-01-14  Bruno Haible  <bruno@clisp.org>
19008
19009         * lib/hash-pjw.c: Add comment about low quality of this function.
19010
19011 2003-01-13  Bruno Haible  <bruno@clisp.org>
19012
19013         * modules/stpcpy: Distribute lib/stpcpy.h.
19014         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
19015
19016 2003-01-13  Bruno Haible  <bruno@clisp.org>
19017
19018         * modules/*: Add a description.
19019         * modules/strpbrk: Fix Makefile.am snippet.
19020         * modules/strtoimax: Fix dependencies.
19021         * modules/strtoumax: Likewise.
19022
19023 2003-01-13  Bruno Haible  <bruno@clisp.org>
19024
19025         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
19026         * modules/alloca (Makefile.am): All object files depend on alloca.h.
19027         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
19028
19029 2003-01-13  Bruno Haible  <bruno@clisp.org>
19030
19031         * gnulib-tool (func_create_testdir): Store config/* files in the main
19032         directory.
19033         * config.rpath: Move to ...
19034         * config/config.rpath: ... here.
19035         * modules/gettext: Contains config/config.rpath, not config.rpath.
19036         * modules/iconv: Likewise.
19037
19038 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19039
19040         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19041         to avoid collisions with libcurses and libreadline.
19042
19043         * m4/getstr.m4: Remove.
19044         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
19045
19046 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19047
19048         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19049         to avoid collisions with libcurses and libreadline.
19050
19051         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
19052         * lib/getstr.h, getstr.c: Remove.
19053         * lib/getline.c: Include "getline.h", to check interface.
19054         Move body of old getstr.c here: this defines MIN_CHUNK and
19055         declares getdelim2, which is renamed from getstr.
19056         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
19057
19058         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
19059         All uses changed.
19060         * lib/linebuffer.h: Likewise.
19061         (readline): Remove backward-compatibility macro.
19062
19063 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19064
19065         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19066         to avoid collisions with libcurses and libreadline.
19067         * getstr: Remove.
19068         * MODULES.html.sh: Remove getstr.
19069         * modules/getline: Depend on unlocked-io, not getstr.
19070
19071 2003-01-12  Jim Meyering  <jim@meyering.net>
19072
19073         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
19074
19075 2003-01-10  Bruno Haible  <bruno@clisp.org>
19076
19077         * modules/alloca: Change Makefile.am requirements. Simplify Include
19078         requirements. Add lib/alloca_.h to file list.
19079
19080 2003-01-10  Bruno Haible  <bruno@clisp.org>
19081
19082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
19083
19084 2003-01-10  Bruno Haible  <bruno@clisp.org>
19085
19086         * lib/alloca_.h: New file.
19087         * lib/getdate.y: Unconditionally include alloca.h.
19088         * lib/makepath.c: Likewise.
19089         * lib/setenv.c: Likewise.
19090         * lib/userspec.c: Likewise.
19091
19092 2003-01-09  Karl Berry  <karl@gnu.org>
19093
19094         * MODULES.html.sh: include `dirname $0` in PATH, to find
19095         gnulib-tool.
19096
19097 2003-01-09  Bruno Haible  <bruno@clisp.org>
19098
19099         * modules/stdbool: Change configure.ac, Makefile.am requirements.
19100         Simplify Include requirements. Add lib/stdbool.h.in to file list.
19101
19102 2003-01-09  Bruno Haible  <bruno@clisp.org>
19103
19104         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
19105
19106 2003-01-09  Bruno Haible  <bruno@clisp.org>
19107
19108         * lib/stdbool.h.in: New file.
19109
19110 2003-01-09  Bruno Haible  <bruno@clisp.org>
19111
19112         * gnulib-tool (func_all_modules): Ignore files ending in ~.
19113         * MODULES.html.sh: Likewise.
19114
19115 2003-01-08  Jim Meyering  <jim@meyering.net>
19116
19117         * lib/full-write.c: Undefine and define-away `const' after inclusion
19118         of errno.h, not before.  Suggestion from Bruno Haible.
19119
19120 2003-01-08  Bruno Haible  <bruno@clisp.org>
19121
19122         * modules/full-read: Depend on full-write.
19123
19124 2003-01-08  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/safe-read.c: Include specification header first, to ensure its
19127         selfcontainedness.
19128         * lib/full-write.c: Likewise.
19129
19130 2003-01-07  Jim Meyering  <jim@meyering.net>
19131
19132         * lib/full-write.c: Rework so that it may serve to define full_read,
19133         too.
19134         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
19135
19136 2003-01-07  Bruno Haible  <bruno@clisp.org>
19137
19138         * lib/strtoimax.c: Include <stdint.h> as an alternative to
19139         <inttypes.h>.
19140         * lib/xstrtol.h: Likewise.
19141         * lib/xstrtoimax.c: Likewise.
19142         * lib/xstrtoumax.c: Likewise.
19143         * lib/human.h: Likewise.
19144
19145         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
19146         on systems that have <inttypes.h> but not <stdint.h>.
19147
19148 2003-01-07  Bruno Haible  <bruno@clisp.org>
19149
19150         * MODULES.html.sh: Add copyright notice.
19151         (missed_files): Omit CVS directory entries.
19152         (func_module): Make it work with sed-3.02.
19153         * MODULES.txt: Remove file.
19154
19155 2003-01-06  Jim Meyering  <jim@meyering.net>
19156
19157         * lib/version-etc.c: Update year in translatable copyright string.
19158
19159 2003-01-03  Karl Berry  <karl@gnu.org>
19160
19161         * config/config.{guess,sub}: update from prep.
19162
19163 2003-01-02  Karl Berry  <karl@gnu.org>
19164
19165         * doc/COPYING.DOC: belatedly updated to 1.2.
19166
19167 2003-01-01  Karl Berry  <karl@gnu.org>
19168
19169         * gnulib-tool (func_verify_module): report module name $module in
19170         error message, not $1.
19171         * gnulib-tool (create-testdir): don't complain if destdir couldn't
19172         be created, only if it doesn't exist.
19173         * gnulib-tool (last_checkin_date): don't expand the $Date here.
19174
19175 2002-12-31  Paul Eggert  <eggert@twinsun.com>
19176
19177         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
19178
19179 2002-12-31  Paul Eggert  <eggert@twinsun.com>
19180
19181         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
19182         memcmp if strcoll doesn't work.
19183
19184 2002-12-31  Bruno Haible  <bruno@clisp.org>
19185
19186         * lib/utime.c (utime_null): No need to call ftruncate if the file was
19187         nonempty.
19188
19189 2002-12-31  Bruno Haible  <bruno@clisp.org>
19190
19191         * lib/memcoll.c (STRCOLL): New macro.
19192         (memcoll): Use it.
19193
19194 2002-12-31  Bruno Haible  <bruno@clisp.org>
19195
19196         * lib/localcharset.h: New file.
19197         * lib/localcharset.c: Include it.
19198         * lib/unicodeio.c: Likewise.
19199
19200 2002-12-31  Bruno Haible  <bruno@clisp.org>
19201
19202         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
19203         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
19204
19205 2002-12-31  Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/getline.h: Include <stddef.h>, for size_t.
19208
19209         * lib/unicodeio.h: Include <stddef.h>, for size_t.
19210         * lib/unicodeio.c: Don't include <stddef.h>.
19211
19212 2002-12-31  Bruno Haible  <bruno@clisp.org>
19213
19214         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
19215         HAVE_TM_ZONE.
19216
19217 2002-12-24  Karl Berry  <karl@gnu.org>
19218
19219         * config/config.guess: update from prep.
19220
19221 2002-12-24  Bruno Haible  <bruno@clisp.org>
19222
19223         General infrasructure.
19224         * m4/README: Rewritten.
19225         * m4/onceonly.m4: New file.
19226         * m4/onceonly_2_57.m4: New file.
19227
19228         Module atexit.
19229         * m4/atexit.m4: New file.
19230
19231         Module strtod.
19232         * m4/strtod.m4: New file.
19233
19234         Module strtol.
19235         * m4/strtol.m4: New file.
19236
19237         Module strtoul.
19238         * m4/strtoul.m4: New file.
19239
19240         Module memchr.
19241         * m4/memchr.m4: New file.
19242
19243         Module memcmp.
19244         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
19245         (jm_FUNC_MEMCMP): Invoke it.
19246
19247         Module memcpy.
19248         * m4/memcpy.m4: New file.
19249
19250         Module memmove.
19251         * m4/memmove.m4: New file.
19252
19253         Module memset.
19254         * m4/memset.m4: New file.
19255
19256         Module strcspn.
19257         * m4/strcspn.m4: New file.
19258
19259         Module strpbrk.
19260         * m4/strpbrk.m4: New file.
19261
19262         Module strstr.
19263         * m4/strstr.m4: New file.
19264
19265         Module strerror.
19266         * m4/strerror.m4: New file.
19267
19268         Module mktime.
19269         * m4/mktime.m4: Renamed from jm-mktime.m4.
19270         (gl_PREREQ_MKTIME): New macro.
19271         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
19272
19273         Module malloc.
19274         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
19275         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
19276         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
19277
19278         Module realloc.
19279         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
19280         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
19281         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
19282
19283         Module strftime.
19284         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
19285         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
19286         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
19287         gl_TM_GMTOFF.
19288         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
19289
19290         Module xalloc.
19291         * m4/xalloc.m4: New file.
19292
19293         Module alloca.
19294         * m4/alloca.m4: New file.
19295
19296         Module putenv.
19297         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19298         (jm_FUNC_PUTENV): Invoke it.
19299
19300         Module setenv.
19301         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
19302         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
19303         when invoked twice.
19304         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
19305         gt_FUNC_SETENV.
19306
19307         Module memrchr.
19308         * m4/memrchr.m4: New file.
19309
19310         Module stpcpy.
19311         * m4/stpcpy.m4: New file.
19312
19313         Module strcase.
19314         * m4/strcase.m4: New file.
19315
19316         Module strdup.
19317         * m4/strdup.m4: New file.
19318
19319         Module strnlen.
19320         * m4/strnlen.m4: New file.
19321
19322         Module strndup.
19323         * m4/strndup.m4: New file.
19324
19325         Module xstrtod.
19326         * m4/xstrtod.m4: New file.
19327
19328         Module xstrtol.
19329         * m4/xstrtol.m4: New file.
19330
19331         Module getdate.
19332         * m4/getdate.m4: New file.
19333
19334         Module unlocked-io.
19335         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
19336         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
19337         * m4/jm-glibc-io.m4n: Remove file.
19338
19339         Module long-options.
19340         * m4/long-options.m4: New file.
19341
19342         Module md5.
19343         * m4/md5.m4: New file.
19344
19345         Module sha.
19346         * m4/sha.m4: New file.
19347
19348         Module getstr.
19349         * m4/getstr.m4: New file.
19350
19351         Module getline.
19352         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
19353         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
19354         <sys/types.h>, for size_t. Use the function name gnu_getline, not
19355         simply getline. Infoke gl_PREREQ_GETLINE.
19356
19357         Module obstack.
19358         * m4/obstack.m4: New file.
19359
19360         Module hash.
19361         * m4/hash.m4: New file.
19362
19363         Module readtokens.
19364         * m4/readtokens.m4: New file.
19365
19366         Module strverscmp.
19367         * m4/strverscmp.m4: New file.
19368
19369         Module stdbool.
19370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
19371         OSF/1.
19372
19373         Module strtoll.
19374         * m4/strtoll.m4: New file.
19375
19376         Module strtoull.
19377         * m4/strtoull.m4: New file.
19378
19379         Module strtoimax.
19380         * m4/strtoimax.m4: New file.
19381
19382         Module strtoumax.
19383         * m4/strtoumax.m4: New file.
19384
19385         Module xstrtoimax.
19386         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
19387         jm_AC_PREREQ_XSTRTOIMAX.
19388         Moved the strtol prerequisites to strtol.m4.
19389         Moved the strtoll prerequisites to strtoll.m4.
19390         Moved the strtoimax prerequisites to strtoimax.m4.
19391
19392         Module xstrtoumax.
19393         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
19394         jm_AC_PREREQ_XSTRTOUMAX.
19395         Moved the strtoul prerequisites to strtoul.m4.
19396         Moved the strtoull prerequisites to strtoull.m4.
19397         Moved the strtoumax prerequisites to strtoumax.m4.
19398
19399         Module chown.
19400         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
19401         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
19402
19403         Module dup2.
19404         * m4/dup2.m4: New file.
19405
19406         Module ftruncate.
19407         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
19408         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
19409
19410         Module getgroups.
19411         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
19412         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
19413
19414         Module gettimeofday.
19415         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
19416         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
19417         gl_PREREQ_GETTIMEOFDAY.
19418
19419         Module mkdir.
19420         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
19421         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
19422
19423         Module mkstemp.
19424         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
19425         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
19426         jm_AC_TYPE_UINTMAX_T.
19427         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
19428
19429         Module stat.
19430         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
19431         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
19432
19433         Module lstat.
19434         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
19435         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
19436
19437         Module timespec.
19438         * m4/timespec.m4 (gl_TIMESPEC): New macro.
19439         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
19440         * m4/st_mtim.m4: Indentation.
19441
19442         Module nanosleep.
19443         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
19444         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
19445         gl_PREREQ_NANOSLEEP.
19446
19447         Module regex.
19448         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
19449         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
19450         (gl_REGEX): New macro.
19451
19452         Module rename.
19453         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
19454         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
19455
19456         Module rmdir.
19457         * m4/rmdir.m4: New file.
19458
19459         Module utime.
19460         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
19461         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
19462         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
19463
19464         Module dirname.
19465         * m4/dirname.m4: New file.
19466
19467         Module getopt.
19468         * m4/getopt.m4: New file.
19469
19470         Module unistd-safer.
19471         * m4/unistd-safer.m4: New file.
19472
19473         Module fnmatch.
19474         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
19475         declaration.
19476         (gl_PREREQ_FNMATCH_EXTRA): New macro.
19477         (gl_FUNC_FNMATCH_POSIX): New macro.
19478         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
19479         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
19480         simply fnmatch.
19481
19482         Module exclude.
19483         * m4/exclude.m4: New file.
19484
19485         Module human.
19486         * m4/human.m4: New file.
19487
19488         Module acl.
19489         * m4/acl.m4: Nop.
19490
19491         Module backupfile.
19492         * m4/backupfile.m4: New file.
19493         * m4/d-ino.m4: Indentation.
19494
19495         Module fsusage.
19496         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
19497         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
19498         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
19499
19500         Module dirfd.
19501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
19502         requirements.
19503
19504         Module euidaccess.
19505         * m4/euidaccess.m4: New file.
19506
19507         Module file-type.
19508         * m4/file-type.m4: New file.
19509
19510         Module fileblocks.
19511         * m4/fileblocks.m4: New file.
19512
19513         Module filemode.
19514         * m4/filemode.m4: New file.
19515
19516         Module isdir.
19517         * m4/isdir.m4: New file.
19518
19519         Module lchown.
19520         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
19521         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
19522
19523         Module makepath.
19524         * m4/makepath.m4: New file.
19525
19526         Module modechange.
19527         * m4/modechange.m4: New file.
19528
19529         Module mountlist.
19530         * m4/mountlist.m4: New file.
19531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
19532         Indentation.
19533
19534         Module path-concat.
19535         * m4/path-concat.m4: New file.
19536
19537         Module pathmax.
19538         * m4/pathmax.m4: New file.
19539
19540         Module same.
19541         * m4/same.m4: New file.
19542
19543         Module save-cwd.
19544         * m4/save-cwd.m4: New file.
19545
19546         Module savedir.
19547         * m4/savedir.m4: New file.
19548
19549         Module xgetcwd.
19550         * m4/xgetcwd.m4: New file.
19551         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
19552
19553         Module xreadlink.
19554         * m4/xreadlink.m4: New file.
19555
19556         Module safe-read.
19557         * m4/safe-read.m4: New file.
19558
19559         Module safe-write.
19560         * m4/safe-write.m4: New file.
19561
19562         Module closeout.
19563         * m4/closeout.m4: New file.
19564
19565         Module stdio-safer.
19566         * m4/stdio-safer.m4: New file.
19567
19568         Module getpass.
19569         * m4/getpass.m4: New file.
19570
19571         Module getugroups.
19572         * m4/getugroups.m4: New file.
19573
19574         Module group-member.
19575         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
19576         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
19577
19578         Module idcache.
19579         * m4/idcache.m4: New file.
19580
19581         Module userspec.
19582         * m4/userspec.m4: New file.
19583
19584         Module gettime.
19585         * m4/clock_time.m4: New file.
19586         * m4/gettime.m4: New file.
19587
19588         Module settime.
19589         * m4/settime.m4: New file.
19590
19591         Module posixtm.
19592         * m4/posixtm.m4: New file.
19593
19594         Module gethostname.
19595         * m4/gethostname.m4: New file.
19596
19597         Module canon-host.
19598         * m4/canon-host.m4: New file.
19599
19600         Module gettext.
19601         * m4/codeset.m4: New file, from gettext-0.11.5.
19602         * m4/gettext.m4: New file, from gettext-0.11.5.
19603         * m4/glibc21.m4: New file, from gettext-0.11.5.
19604         * m4/iconv.m4: New file, from gettext-0.11.5.
19605         * m4/intdiv0.m4: New file, from gettext-0.11.5.
19606         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
19607         * m4/inttypes.m4: New file, from gettext-0.11.5.
19608         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
19609         * m4/isc-posix.m4: New file, from gettext-0.11.5.
19610         * m4/lcmessage.m4: New file, from gettext-0.11.5.
19611         * m4/lib-ld.m4: New file, from gettext-0.11.5.
19612         * m4/lib-link.m4: New file, from gettext-0.11.5.
19613         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
19614         * m4/progtest.m4: New file, from gettext-0.11.5.
19615         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
19616         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
19617         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
19618
19619         Module localcharset.
19620         * m4/localcharset.m4: New file.
19621
19622         Module hard-locale.
19623         * m4/hard-locale.m4: New file.
19624
19625         Module mbswidth.
19626         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
19627         onceonly macros.
19628         * m4/mbrtowc.m4: Add comment.
19629
19630         Module memcasecmp.
19631         * m4/memcasecmp.m4: New file.
19632
19633         Module memcoll.
19634         * m4/memcoll.m4: New file.
19635
19636         Module unicodeio.
19637         * m4/unicodeio.m4: New file.
19638
19639         Module rpmatch.
19640         * m4/rpmatch.m4: New file.
19641
19642         Module yesno.
19643         * m4/yesno.m4: New file.
19644
19645         Module exitfail.
19646         * m4/exitfail.m4: New file.
19647
19648         Module c-stack.
19649         * m4/c-stack.m4 (gl_C_STACK): New macro.
19650         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
19651
19652         Module error.
19653         * m4/error.m4 (gl_ERROR): New macro.
19654         (jm_PREREQ_ERROR): Use onceonly macros.
19655
19656         Module fatal.
19657         * m4/fatal.m4: New file.
19658
19659         Module getloadavg.
19660         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
19661         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
19662
19663         Module getpagesize.
19664         * m4/getpagesize.m4: New file.
19665
19666         Module getusershell.
19667         * m4/getusershell.m4: New file.
19668
19669         Module physmem.
19670         * m4/physmem.m4: New file.
19671
19672         Module posixver.
19673         * m4/posixver.m4: New file.
19674
19675         Module quotearg.
19676         * m4/quotearg.m4: New file.
19677
19678         Module quote.
19679         * m4/quote.m4: New file.
19680
19681         Module readutmp.
19682         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
19683
19684         Module sig2str.
19685         * m4/sig2str.m4: New file.
19686
19687         Other.
19688         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
19689         ulonglong.m4.
19690         * m4/intmax_t.m4: New file.
19691         * m4/d-type.m4: Indentation.
19692         * m4/jm-macros.m4: Update.
19693         * m4/prereq.m4 (jm_PREREQ): Update.
19694         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
19695         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
19696         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
19697         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
19698         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
19699         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
19700         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
19701         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
19702         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
19703         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
19704         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
19705         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
19706         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
19707         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
19708         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
19709         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
19710         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
19711         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
19712         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
19713
19714 2002-12-24  Bruno Haible  <bruno@clisp.org>
19715
19716         * MODULES.txt: Update according to m4/ changes.
19717
19718         Module gettext.
19719         * config.rpath: New file, from gettext-0.11.5.
19720
19721         * modules/*: New module descriptions.
19722         * gnulib-tool: New file.
19723         * MODULES.html.sh: New file.
19724
19725 2002-12-21  Karl Berry  <karl@gnu.org>
19726
19727         * doc/fdl.texi: update to version 1.2.
19728
19729 2002-12-19  Karl Berry  <karl@gnu.org>
19730
19731         * config/config.guess: update from prep.
19732
19733 2002-12-18  Bruno Haible  <bruno@clisp.org>
19734
19735         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
19736         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
19737
19738 2002-12-17  Bruno Haible  <bruno@clisp.org>
19739
19740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
19741         stdlib.h, string.h.
19742
19743 2002-12-17  Bruno Haible  <bruno@clisp.org>
19744
19745         * lib/canon-host.c (strdup): Remove unused declaration.
19746
19747         * lib/fsusage.c: Include full_read.h.
19748         (get_fs_usage): Use full_read instead of safe_read.
19749
19750         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
19751
19752 2002-12-12  Karl Berry  <karl@gnu.org>
19753
19754         * config/config.guess: update from prep.
19755
19756 2002-12-11  Bruno Haible  <bruno@clisp.org>
19757
19758         * m4/setenv.m4: New file, from gettext-0.11.5.
19759
19760 2002-12-11  Bruno Haible  <bruno@clisp.org>
19761
19762         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
19763         not unsetenv().
19764         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
19765         modifications:
19766
19767         2002-12-11  Bruno Haible  <bruno@clisp.org>
19768
19769                 * setenv.c (alloca): Fall back to malloc.
19770                 (freea): New macro.
19771                 (setenv): Use freea() to free memory allocated with alloca().
19772
19773         2002-11-13  Bruno Haible  <bruno@clisp.org>
19774
19775                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
19776                 function declarations.
19777                 * unsetenv.c (unsetenv): Likewise.
19778
19779         2002-03-04  Bruno Haible  <bruno@clisp.org>
19780
19781                 Portability to AIX 4.3.3.
19782                 * unsetenv.c: New file, extracted from setenv.c.
19783                 * setenv.c: Move the unsetenv() function to unsetenv.c.
19784
19785         2001-12-20  Bruno Haible  <bruno@clisp.org>
19786
19787                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
19788                 use malloc instead. For SunOS 4.
19789
19790         2001-12-11  Bruno Haible  <bruno@clisp.org>
19791
19792                 * setenv.c: Declare alloca.
19793                 (compar_fn_t): New typedef.
19794                 (KNOWN_VALUE, STORE_VALUE): Use it.
19795
19796         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
19797         setenv.h.
19798
19799 2002-12-10  Paul Eggert  <eggert@twinsun.com>
19800
19801         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
19802         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
19803         Choose values that are less likely to collide with system fnmatch
19804         options.
19805         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
19806         defined (e.g., a pure POSIX system).
19807         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
19808         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
19809
19810 2002-12-06  Paul Eggert  <eggert@twinsun.com>
19811
19812         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
19813         a pain in practice to deal with generated m4 files.  This change
19814         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
19815
19816         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
19817         and jm-glibc-io.m4, as they are no longer a special case.
19818         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
19819         kludge and the auto-generation stuff.  Check only whether the
19820         functions are declared, not whether they exist, since older hosts
19821         that don't declare the functions can't use the optimization anyway.
19822
19823 2002-12-06  Jim Meyering  <jim@meyering.net>
19824
19825         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
19826
19827         Merge in changes from libc's misc/error.c, in preparation
19828         for the merge of gnulib's changes back into libc.
19829
19830         * lib/error.c (_): Define only if not already defined.
19831         Move definition to follow all #include directives.
19832         Include unlocked-io.h only if !_LIBC.
19833         [_LIBC]: Include <libio/libioP.h>.
19834         [USE_IN_LIBIO]: Include <libio/iolibio.h>
19835         (fflush): Tweak definition to use INTUSE.
19836         (putc): Define.
19837
19838 2002-12-05  Paul Eggert  <eggert@twinsun.com>
19839
19840         * lib/alloca.c [defined emacs]: Include "lisp.h".
19841         (xalloc_die) [defined emacs]: New macro.
19842         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
19843         [! defined emacs]: Include <xalloc.h>.
19844         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
19845         (pointer): Typedef to POINTER_TYPE *.
19846         (malloc): Remove decl; we now always use xmalloc.
19847         (alloca): Use old-style definition, since Emacs needs this.
19848         Check for arithmetic overflow when computing combined size.
19849
19850 2002-12-04  Paul Eggert  <eggert@twinsun.com>
19851
19852         Do not generate unlocked-io.h automatically, since it's easier to
19853         maintain it by hand.
19854
19855         * lib/unlocked-io.h: New file, from GNU diffutils,
19856         but with proper copyright notice and attribution.
19857         * lib/gen-uio: Remove.
19858         * lib/Makefile.am: Add copyright notice.
19859         (libfetish_a_SOURCES): Add unlocked-io.h.
19860         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
19861         (DISTCLEANFILES, io_functions): Remove macros.
19862         (EXTRA_DIST): Remove gen_uio.
19863         (unlocked-io.h): Remove rule.
19864
19865 2002-12-04  Jim Meyering  <jim@meyering.net>
19866
19867         Reflect the fact that stat.c and lstat.c are no longer generated.
19868         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
19869         (DISTCLEANFILES): Likewise.
19870         (EXTRA_DIST): Likewise.
19871         (all_local): Don't depend on stat.c or lstat.c.
19872         (stat.c, lstat.c): Remove rules.
19873         (EXTRA_DIST): Remove xstat.in.
19874
19875         * lib/xstat.in: Remove file.  Contents moved into stat.c.
19876         * lib/stat.c: New file.  Contents mostly from xstat.in.
19877         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
19878         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
19879
19880         * lib/safe-read.c: Rework so that it may serve to define safe_write,
19881         too.
19882         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
19883
19884 2002-12-03  Jim Meyering  <jim@meyering.net>
19885
19886         * lib/safe-read.c, safe-write.c: Change variable names and comments,
19887         but not semantics, to minimize the differences between these two files.
19888         (safe_read): Change comment to mention SAFE_READ_ERROR.
19889
19890         * lib/safe-read.c (IS_EINTR): Define.
19891         (safe_read): Use IS_EINTR in place of in-function cpp directives.
19892
19893 2002-12-02  Jim Meyering  <jim@meyering.net>
19894
19895         * lib/safe-read.c (EINTR): Define.
19896         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
19897         (INT_MAX): Provide fallback.
19898         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
19899
19900         * lib/safe-read.h (SAFE_READ_ERROR): Define.
19901
19902 2002-12-02  Bruno Haible  <bruno@clisp.org>
19903
19904         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
19905         Define, taken from safe-read.c.
19906         (INT_MAX): Provide fallback.
19907         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
19908         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
19909
19910         * lib/safe-read.c (EINTR): Remove definition.
19911         (safe_read): Don't use EINTR if it is absent.
19912
19913 2002-12-01  Jim Meyering  <jim@meyering.net>
19914
19915         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
19916         zero.
19917         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
19918
19919 2002-11-27  Paul Eggert  <eggert@twinsun.com>
19920
19921         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
19922         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
19923         with `if (! (value < limit)) abort ();', for readability.
19924
19925 2002-11-26  Karl Berry  <karl@gnu.org>
19926
19927         * lib/strdup.c: copy from libc again, with jim's ok.
19928         * lib/.cppi-disable: re-add strdup.c
19929
19930 2002-11-25  Karl Berry  <karl@gnu.org>
19931
19932         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
19933         instead of "strtol.c".
19934
19935 2002-11-25  Karl Berry  <karl@gnu.org>
19936
19937         * config/install-sh: update from automake for variable quoting, $0 in
19938         error msgs, etc.
19939
19940         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
19941         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
19942         entry.
19943
19944 2002-11-25  Jim Meyering  <jim@meyering.net>
19945
19946         * lib/mktime.c: Sync from libc, now that it has the latest fix.
19947
19948 2002-11-24  Karl Berry  <karl@gnu.org>
19949
19950         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
19951         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
19952
19953 2002-11-24  Jim Meyering  <jim@meyering.net>
19954
19955         Update from coreutils:
19956
19957         * lib/mktime.c: Merge in changes from libc.
19958
19959         Avoid a link-time failure on some Linux systems.
19960         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
19961         (otherwise).
19962         (__mon_yday): Declare with the STATIC attribute.
19963         (__mktime_internal): Likewise.
19964         Based on a report from Greg Schafer.
19965
19966 2002-11-23  Jim Meyering  <jim@meyering.net>
19967
19968         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
19969         Use `unsigned', not `int', as type of index.
19970
19971         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
19972
19973         * lib/fsusage.c: Remove unneeded parentheses around operands of
19974         `defined'.
19975
19976 2002-11-22  Paul Eggert  <eggert@twinsun.com>
19977
19978         * lib/quotearg.h: Allow multiple inclusion by surrounding with
19979         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
19980         so that we can be included first.
19981         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
19982         * lib/quotearg.c: Include quotearg.h immediately after config.h.
19983         No need to include stddef.h or sys/types.h any more.
19984         Surround local include files with "", not "<>".
19985         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
19986         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
19987         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
19988         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
19989         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
19990         (ISPRINT): Remove; no longer needed now that we assume C89.
19991
19992         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
19993         Preserve errno.
19994
19995         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
19996         quotearg_char): Use SIZE_MAX rather than
19997         (size_t) -1 when we are talking about "infinity".
19998
19999         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
20000
20001 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20002
20003         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
20004         hint that one should use `if (! x) abort ();' rather than `assert
20005         (x);', and anyway it's one less thing to worry about configuring.
20006         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
20007         hash_rehash, hash_insert): Use abort rather than assert.
20008
20009 2002-11-22  Bruno Haible  <bruno@clisp.org>
20010
20011         * lib/safe-read.h: Assume C89. Add comments.
20012         (safe_read): Change return type to size_t.
20013         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
20014         byte counts > SSIZE_MAX correctly.
20015         * lib/safe-write.h: New file.
20016         * lib/safe-write.c: New file.
20017         * lib/full-read.h: New file.
20018         * lib/full-read.c: New file.
20019         * lib/full-write.h: Assume C89. Add comments.
20020         * lib/full-write.c: Include safe-write.h.
20021         (full_write): Rewritten to use safe_write.
20022         Suggested by Jim Meyering and Paul Eggert.
20023
20024 2002-11-21  Jim Meyering  <jim@meyering.net>
20025
20026         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
20027
20028         Merge in changes from the coreutils.
20029
20030         2002-09-25  Paul Eggert  <eggert@twinsun.com>
20031         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
20032         <stdint.h>.
20033         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
20034         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
20035         int.  Work more efficiently if X is the same width as uintmax_t.
20036         Do not compare X to -1, to avoid bogus compiler warning.
20037         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
20038         Don't assume that f_frsize and f_bsize are the same type.
20039
20040         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
20041         warning on FreeBSD.
20042
20043         * lib/makepath.c (make_path): Restore umask *before* creating the final
20044         component.
20045         (make_path): Minor reformatting.
20046
20047         * lib/xmalloc.c: Adjust to work with new autoconf macros,
20048         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
20049         HAVE_MALLOC/HAVE_REALLOC.
20050
20051         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
20052         dummy ones.  At least on GNU/Linux systems, `auto' means something
20053         else.
20054         From Michael Stone.
20055
20056 2002-11-21  Bruno Haible  <bruno@clisp.org>
20057
20058         Remove case insensitive option matching.
20059         * lib/argmatch.h (argcasematch): Remove declaration.
20060         (ARGCASEMATCH): Remove macro.
20061         (__xargmatch_internal): Remove case_sensitive argument.
20062         (XARGMATCH): Update.
20063         (XARGCASEMATCH): Remove macro.
20064         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
20065         case_sensitive argument.
20066         (argcasematch): Remove function.
20067         (__xargmatch_internal): Remove case_sensitive argument.
20068         (main): Use XARGMATCH instead of XARGCASEMATCH.
20069
20070         * lib/xmalloc.c: Change compile-time error message. Add comment about
20071         required autoconf version.
20072
20073 2002-11-20  Paul Eggert  <eggert@twinsun.com>
20074
20075         Merge argmatch cleanups from Bison.  Assume C89.
20076
20077         * lib/argmatch.c: Include config.h here, not in argmatch.h.
20078         Include stdlib.h, for EXIT_FAILURE.
20079         Always include <string.h>, since we assume C89.
20080         (EXIT_FAILURE): Remove pre-C89 bug workaround.
20081         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
20082         Include <stddef.h> instead, since it's all we need for size_t.
20083         (PARAMS): Remove.  All uses removed.
20084         (ARRAY_CARDINALITY): Do not bother to #undef.
20085         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
20086         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20087         Remove unnecessary parentheses.
20088         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20089         Insert necessary parentheses.
20090         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
20091         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
20092
20093 2002-11-19  Bruno Haible  <bruno@clisp.org>
20094
20095         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
20096         * lib/mbswidth.h: Include <stddef.h>, for size_t.
20097
20098         * lib/mbswidth.h (PARAMS): Remove macro.
20099         (mbswidth, mbsnwidth): Use ANSI C function declarations.
20100         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
20101
20102         * lib/gcd.h (PARAMS): Remove macro.
20103         (gcd): Use ANSI C function declarations.
20104         * lib/gcd.c (gcd): Likewise.
20105
20106 2002-11-15  Bruno Haible  <bruno@clisp.org>
20107
20108         * lib/strcspn.c: Include <stddef.h>.
20109         (strcspn): Use ANSI C function declaration. Change return type to
20110         size_t. Use NULL.
20111         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
20112         (strpbrk): Use NULL.
20113         * lib/strpbrk.h (PARAMS): Remove macro.
20114         (strpbrk): Use ANSI C function declaration.
20115         * lib/strstr.c: Don't include <sys/types.h>.
20116         * lib/strstr.h (PARAMS): Remove macro.
20117         (strstr): Use ANSI C function declarations.
20118
20119 2002-11-14  Karl Berry  <karl@gnu.org>
20120
20121         * config/mkinstalldirs: `do' on separate line, instead of
20122         `for var; do'.
20123
20124 2002-11-06  Bruno Haible  <bruno@clisp.org>
20125
20126         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
20127         * lib/gcd.c (gcd): Likewise.
20128
20129 2002-11-05  Bruno Haible  <bruno@clisp.org>
20130
20131         * lib/gcd.h: New file, from gettext-0.11.5.
20132         * lib/gcd.c: New file, from gettext-0.11.5.
20133
20134 2002-11-05  Bruno Haible  <bruno@clisp.org>
20135
20136         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20137         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20138         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20139         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20140
20141         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
20142         <libintl.h>.
20143         * lib/makepath.c: Include gettext.h instead of <locale.h> and
20144         <libintl.h>.
20145
20146         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
20147         * lib/human.c: Include gettext.h instead of <libintl.h>.
20148         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
20149         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
20150         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
20151         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
20152         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
20153         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
20154         (textdomain): Remove definition.
20155         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
20156
20157         * lib/long-options.c: Remove include of <libintl.h> and definition of
20158         _.
20159         * lib/same.c: Remove include of <libintl.h> and definition of _.
20160
20161 2002-11-04  Owen Taylor  <otaylor@redhat.com>
20162
20163         * lib/config.charset: A few additions for Solaris.
20164
20165 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
20166
20167         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
20168         * lib/localcharset.c (locale_charset): Declare as extern "C".
20169
20170 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
20171
20172         * lib/config.charset: msdos in uk_UA uses CP1125.
20173
20174 2002-11-04  Bruno Haible  <bruno@clisp.org>
20175
20176         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
20177         * lib/strcase.h: New file, from GNU gettext-0.11.5.
20178         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
20179         * lib/strstr.h: New file, from GNU gettext-0.11.5.
20180         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
20181
20182 2002-11-04  Bruno Haible  <bruno@clisp.org>
20183
20184         * lib/localcharset.c (locale_charset): Don't return an empty string.
20185
20186 2002-11-04  Bruno Haible  <bruno@clisp.org>
20187
20188         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
20189         aliases.
20190
20191 2002-11-04  Bruno Haible  <bruno@clisp.org>
20192
20193         * lib/config.charset: Update for newest glibc. Add canonical names
20194         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
20195
20196 2002-11-04  Bruno Haible  <bruno@clisp.org>
20197
20198         * lib/config.charset: Add support for NetBSD.
20199
20200 2002-11-04  Bruno Haible  <bruno@clisp.org>
20201
20202         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
20203
20204 2002-11-01  Bruno Haible  <bruno@clisp.org>
20205
20206         * configure.in: Add AC_CONFIG_AUX_DIR call.
20207         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
20208         test/Makefile.
20209         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
20210
20211 2002-09-28  Karl Berry  <karl@gnu.org>
20212
20213         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
20214         installed automake until the next release, since changes have been
20215         made.
20216
20217 2002-09-25  Karl Berry  <karl@gnu.org>
20218
20219         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
20220         * lib/getopt*: copy from libc/posix.
20221         * lib/gettext.h: copy from gettext.
20222         * lib/.cppi-disable: add strdup.c, gettext.h.
20223
20224 2002-09-25  Karl Berry  <karl@gnu.org>
20225
20226         * config/srclist.txt: enable gettext.h check.
20227         * config/config.{guess,sub}: update from prep.
20228         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
20229                 from automake 1.6.3.
20230         See srclist*.
20231
20232 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
20233
20234         * regex.c (PATFETCH): Remove the translating fetch.
20235         (PATFETCH_RAW): Rename to PATFETCH.
20236         (set_image_of_range): New fun.
20237         (SET_RANGE_TABLE_WORK_AREA): Use it.
20238         (regex_compile): Don't translate the pattern chars so eagerly.
20239         Only do it when inserting an `exactn' bytecode or when handling
20240         a char-range.
20241         (mutually_exclusive_p): Avoid empty statement.
20242
20243 2002-07-06  Jim Meyering  <meyering@lucent.com>
20244
20245         * m4/README: Don't mention Makefile.am.in.
20246         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
20247
20248 2002-07-01  Jim Meyering  <meyering@lucent.com>
20249
20250         * lib/c-stack.c: Include sys/time.h.
20251         From Volker Borchert.
20252
20253 2002-06-26  Paul Eggert  <eggert@twinsun.com>
20254
20255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
20256
20257 2002-06-26  Paul Eggert  <eggert@twinsun.com>
20258
20259         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
20260         New macro.  Use it uniformly instead of
20261         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
20262         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
20263         reported by Vin Shelton.
20264
20265 2002-06-22  Paul Eggert  <eggert@twinsun.com>
20266
20267         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
20268         Do not assume SA_SIGINFO behavior.
20269         Bug reported by Jim Meyering on NetBSD 1.5.2.
20270
20271 2002-06-22  Jim Meyering  <meyering@lucent.com>
20272
20273         * m4/c-stack.m4: New file, from diffutils-2.8.2.
20274         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
20275
20276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
20277         now that configure.ac uses AC_GNU_SOURCE.
20278         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
20279         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
20280
20281         Update to latest tools.  Suggestions from Paul Eggert.
20282         * m4/stdbool.m4: New file, from diffutils-2.8.2.
20283         * m4/gnu-source.m4: Update from diffutils-2.8.2.
20284         * m4/fnmatch.m4: Likewise.
20285         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
20286         to AC_HEADER_STDBOOL
20287
20288 2002-06-22  Jim Meyering  <meyering@lucent.com>
20289
20290         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
20291         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
20292
20293 2002-06-22  Jim Meyering  <meyering@lucent.com>
20294
20295         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
20296
20297         * lib/exitfail.c, exitfail.h: Likewise.
20298         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
20299
20300         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
20301         of fnmatch.h.
20302         (EXTRA_DIST): Add fnmatch_loop.c.
20303         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
20304
20305         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
20306         * lib/fnmatch.c: Update from diffutils-2.8.2.
20307         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
20308         * lib/fnmatch.h: Remove file.
20309
20310 2002-06-21  Jim Meyering  <meyering@lucent.com>
20311
20312         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
20313         * m4/mbrtowc.m4: Likewise.
20314
20315         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
20316         * m4/mbswidth.m4: Reflect name change:
20317         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
20318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20319
20320         * m4/lib-link.m4: Update from gettext-0.11.2.
20321         * m4/gettext.m4: Likewise.
20322
20323         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
20324         From Alfred M. Szmidt.
20325
20326 2002-06-18  Paul Eggert  <eggert@twinsun.com>
20327
20328         * lib/file-type.h: Report an error if neither S_ISREG nor
20329         S_IFREG is defined, instead of using a test specific to glibc
20330         2.2.  This should be safe, since POSIX requires S_ISREG and
20331         Unix Version 7 had S_IFREG.  We don't need to check for
20332         <sys/types.h> since we don't use any symbols that it defines.
20333
20334 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
20335
20336         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
20337         $@-t, so that each temporary file name is unique and valid in the first
20338         8 characters, for operation under DOS.
20339
20340 2002-06-15  Paul Eggert  <eggert@twinsun.com>
20341
20342         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
20343
20344 2002-06-15  Jim Meyering  <meyering@lucent.com>
20345
20346         Work even with DJGPP 2.03, which lacks support for symlinks.
20347         From Richard Dawe.
20348         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
20349         is defined.
20350         * lib/lchown.c (S_ISLNK): Likewise.
20351
20352 2002-06-15  Jim Meyering  <meyering@lucent.com>
20353
20354         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
20355         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
20356         have been included before this file.
20357
20358 2002-06-14  Jim Meyering  <meyering@lucent.com>
20359
20360         * lib/file-type.h: Use the version from diffutils-2.8.2.
20361         * lib/file-type.c: Likewise.
20362
20363 2002-06-07  Jim Meyering  <meyering@lucent.com>
20364
20365         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
20366         They're needed at least for NetBSD 1.5.2.
20367         ($statxfs_includes): Include those same headers.
20368         ($statxfs_includes): Include sys/vfs.h if available.
20369         ($statxfs_includes): Likewise for sys/statvfs.h.
20370         Check for the following members in both structs statfs and statvfs:
20371         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
20372
20373 2002-06-01  Jim Meyering  <meyering@lucent.com>
20374
20375         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
20376         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
20377
20378 2002-05-28  Jim Meyering  <meyering@lucent.com>
20379
20380         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
20381         Reported by Volker Borchert.
20382
20383 2002-05-27  Jim Meyering  <meyering@lucent.com>
20384
20385         Fix a problem seen only on nonconforming systems whereby ls.c's
20386         use of localtime, and then of gettimeofday would cause trouble:
20387         the localtime call used to initialize rpl_gettimeofday's save
20388         mechanism would clobber ls's current local time information so
20389         that in any long listing the first file would always be listed
20390         with date 1970-01-01.  Analysis by Volker Borchert.
20391
20392         * lib/gettimeofday.c (localtime): Undefine.
20393         (rpl_localtime): New function.
20394
20395 2002-05-27  Jim Meyering  <meyering@lucent.com>
20396
20397         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
20398         localtime.
20399
20400         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
20401         use the replacement function; it wouldn't resolve at link time.
20402         Reported by Volker Borchert.
20403
20404 2002-05-22  Jim Meyering  <meyering@lucent.com>
20405
20406         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
20407         file-type.h.
20408         * lib/file-type.h: New file.
20409         * lib/file-type.c (file_type): New file/function.  Extracted from
20410         diffutils.
20411
20412 2002-04-30  Jim Meyering  <meyering@lucent.com>
20413
20414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
20415
20416 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20417
20418         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
20419
20420 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20421
20422         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
20423         Do not check for alloca.h (no longer used) or stdbool.h (was never
20424         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
20425
20426 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20427
20428         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
20429
20430 2002-04-29  Jim Meyering  <meyering@lucent.com>
20431
20432         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
20433         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
20434         Use AC_FUNC_STRNLEN here instead.
20435
20436         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
20437         With autoconf-2.53a, it's part of AC_PROG_CC.
20438
20439 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20440
20441         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
20442         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
20443
20444 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20445
20446         * lib/sig2str.h, lib/sig2str.c: New files.
20447         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
20448
20449 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20450
20451         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
20452         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
20453         of 127, since 64 is the largest conceivable number for ancient
20454         nonstandard hosts.
20455         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
20456
20457 2002-04-28  Jim Meyering  <meyering@lucent.com>
20458
20459         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
20460
20461 2002-04-24  Jim Meyering  <meyering@lucent.com>
20462
20463         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
20464         (jm_PREREQ): Use it.
20465
20466         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
20467         mach/mach.h fcntl.h.
20468         Check for this function: setlocale.
20469
20470 2002-04-24  Jim Meyering  <meyering@lucent.com>
20471
20472         * lib/gettext.h: New file, from Gettext.
20473         * lib/Makefile.am (INCLUDES): Remove -I../intl.
20474         (libfetish_a_SOURCES): Add gettext.h.
20475
20476 2002-04-16  Jim Meyering  <meyering@lucent.com>
20477
20478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
20479         ut_pid, ut_id, ut_exit.
20480
20481 2002-04-16  Jim Meyering  <meyering@lucent.com>
20482
20483         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
20484         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
20485         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
20486
20487 2002-04-12  Jim Meyering  <meyering@lucent.com>
20488
20489         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
20490         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
20491         existence of the getmntinfo function.  Needed for Darwin 5.3.
20492
20493         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
20494         This is necessary at least on Darwin 5.3.
20495
20496         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
20497         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
20498         strnlen.o in the library, and that makes some versions of ranlib
20499         object.
20500
20501 2002-04-12  Jim Meyering  <meyering@lucent.com>
20502
20503         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
20504
20505 2002-04-09  Jim Meyering  <meyering@lucent.com>
20506
20507         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
20508         to be more precise.  Rather than saying we're checking whether the
20509         function `works', say what we're testing.
20510         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
20511         Reported by Bruno Haible.
20512
20513 2002-03-10  Jim Meyering  <meyering@lucent.com>
20514
20515         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
20516         Suggestion from Santiago Vila.
20517
20518 2002-03-08  Jim Meyering  <meyering@lucent.com>
20519
20520         * lib/rename.c: Mention that this wrapper is needed also on
20521         mips-dec-ultrix4.4 systems.
20522
20523 2002-03-02  Jim Meyering  <meyering@lucent.com>
20524
20525         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
20526         not HAVE_CLOCK_SETTIME.
20527
20528 2002-02-27  Paul Eggert  <eggert@twinsun.com>
20529
20530         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
20531         Check for clock_settime.
20532
20533 2002-02-27  Paul Eggert  <eggert@twinsun.com>
20534
20535         * lib/nanosleep.h: Rename to....
20536         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
20537
20538         * lib/gettime.c: New file.
20539         * lib/settime.c: New file.
20540         * lib/stime.c: Remove.
20541
20542         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
20543         timespec.h.  Remove nanosleep.h.
20544
20545 2002-02-25  Paul Eggert  <eggert@twinsun.com>
20546
20547         * m4/acl.m4: New file.
20548         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
20549         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
20550
20551 2002-02-25  Paul Eggert  <eggert@twinsun.com>
20552
20553         * lib/acl.c, lib/acl.h: New files.
20554         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
20555
20556 2002-02-24  Jim Meyering  <meyering@lucent.com>
20557
20558         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
20559         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
20560         cause trouble.  Reported by Nelson Beebe.
20561
20562 2002-02-23  Paul Eggert  <eggert@twinsun.com>
20563
20564         * lib/path-concat.c (xpath_concat): Reorder code to pacify
20565         compilers that don't know that xalloc_die never returns.
20566
20567 2002-02-20  Jim Meyering  <meyering@lucent.com>
20568
20569         * lib/getdate.c: Regenerate using bison-1.33.
20570
20571 2002-02-17  Jim Meyering  <meyering@lucent.com>
20572
20573         * config/config.guess (main): Don't use `head -1'; it's no longer
20574         portable. Use `sed 1q' instead.
20575
20576 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
20577
20578         * m4/codeset.m4: Upgrade to gettext-0.11.
20579         * m4/gettext.m4: Upgrade to gettext-0.11.
20580         * m4/glibc21.m4: Upgrade to gettext-0.11.
20581         * m4/iconv.m4: Upgrade to gettext-0.11.
20582         * m4/isc-posix.m4: Upgrade to gettext-0.11.
20583         * m4/lcmessage.m4: Upgrade to gettext-0.11.
20584         * m4/lib-ld.m4: New file, from gettext-0.11.
20585         * m4/lib-link.m4: New file, from gettext-0.11.
20586         * m4/lib-prefix.m4: New file, from gettext-0.11.
20587         * m4/progtest.m4: Upgrade to gettext-0.11.
20588
20589 2002-02-15  Paul Eggert  <eggert@twinsun.com>
20590
20591         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
20592         (jm_PREREQ): Use it.
20593
20594 2002-02-15  Paul Eggert  <eggert@twinsun.com>
20595
20596         * lib/posixver.c, lib/posixver.h: New files.
20597         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
20598
20599 2002-02-02  Paul Eggert  <eggert@twinsun.com>
20600             Bruno Haible  <bruno@clisp.org>
20601
20602         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
20603         (fwrite_success_callback): New declaration.
20604         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
20605         print_unicode_char. Call failure callback instead of error.
20606         (fwrite_success_callback): New function.
20607         (exit_failure_callback): New function.
20608         (fallback_failure_callback): New function.
20609         (print_unicode_char): Call unicode_to_mb.
20610
20611 2002-01-26  Jim Meyering  <meyering@lucent.com>
20612
20613         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
20614         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
20615
20616 2002-01-26  Jim Meyering  <meyering@lucent.com>
20617
20618         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
20619
20620 2002-01-22  Paul Eggert  <eggert@twinsun.com>
20621
20622         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
20623
20624 2002-01-22  Jim Meyering  <meyering@lucent.com>
20625
20626         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
20627         Otherwise, some versions of automake would omit the rule that makes
20628         Makefile from Makefile.in.
20629
20630 2002-01-21  Paul Eggert  <eggert@twinsun.com>
20631
20632         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
20633         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
20634         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
20635         (memcoll): Set errno to zero if there is no error.
20636
20637         * lib/quotearg.c (quotearg_buffer_restyled):
20638         Fix bug with quoting buffers containing NUL when backslashing escapes.
20639         This bug was exposed by the other changes in this patch.
20640         (quotearg_n_options): New arg ARGSIZE.
20641         All callers changed.
20642         (quoting_options_from_style): New function.
20643         (quotearg_n_style): Use it.
20644         (quotearg_n_style_mem): New function.
20645
20646         * lib/quotearg.h (quotearg_n_style_mem): New function.
20647
20648 2002-01-19  Jim Meyering  <meyering@lucent.com>
20649
20650         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
20651         Remove useless quotes: DF_PROG="df".
20652         * m4/strnlen.m4: New file.
20653
20654 2002-01-16  Paul Eggert  <eggert@twinsun.com>
20655
20656         * lib/backupfile.c (ISDIGIT): Comment fix.
20657         * lib/getdate.y (ISDIGIT): Likewise.
20658         * lib/posixtm.c (ISDIGIT, year): Likewise.
20659         * lib/strverscmp.c (ISDIGIT): Likewise.
20660         * lib/userspec.c (ISDIGIT): Likewise.
20661
20662 2002-01-16  Jim Meyering  <meyering@lucent.com>
20663
20664         * lib/getdate.y: Add three semicolons, each just before a closing
20665         brace. Bison (as of version 1.31) no longer papers over that mistake.
20666
20667 2002-01-05  Jim Meyering  <meyering@lucent.com>
20668
20669         * lib/version-etc.c (version_etc_copyright): Update copyright year.
20670
20671 2001-12-19  Paul Eggert  <eggert@twinsun.com>
20672
20673         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
20674         not silently exit merely because the output buffer happens to
20675         have nothing pending.
20676
20677 2001-12-18  Paul Eggert  <eggert@twinsun.com>
20678
20679         See the big note in ../ChangeLog.
20680         * lib/human.c (suffixes): Prefer K to k for 1024.
20681         (generate_suffix_backwards): New function.
20682         (human_readable_inexact): Use it.
20683         * lib/xstrtol.c (__xstrtol): If there is no number but there
20684         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
20685         Accept 'K' as well as 'k'.
20686
20687 2001-12-15  Jim Meyering  <meyering@lucent.com>
20688
20689         * lib/regex.h (__restrict_arr): Update from libc.
20690
20691         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
20692         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
20693         (STREQ): Define.
20694
20695 2001-12-14  Jim Meyering  <meyering@lucent.com>
20696
20697         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
20698         Suggestion from Bruno Haible.
20699
20700 2001-12-10  Jim Meyering  <meyering@lucent.com>
20701
20702         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
20703         xrealloc, Instead, include "xalloc.h".
20704         (initbuffer): Don't cast xmalloc return value to char*.
20705         (readline): Reword comment.
20706         Don't cast xrealloc return value to char*
20707         Return NULL, not 0.
20708
20709 2001-12-09  Jim Meyering  <meyering@lucent.com>
20710
20711         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
20712         about `signed and unsigned type in conditional expression'.
20713         * lib/posixtm.c (posix_time_parse): Likewise.
20714
20715         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
20716
20717         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
20718         to avoid a pedantic warning.
20719
20720         * lib/getstr.c: Don't include assert.h.
20721         (getstr): Remove warning-evoking assertions.
20722         Return -1 if offset parameter is out of bounds.
20723         Change the type of a local from int to size_t.
20724
20725         * lib/strftime.c (my_strftime_localtime_r): Include this function
20726         definition in the `#if ! HAVE_TM_GMTOFF' block.
20727
20728         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
20729         Include xalloc.h instead.
20730
20731 2001-12-02  Jim Meyering  <meyering@lucent.com>
20732
20733         * lib/tempname.c: Don't declare getenv, thus reverting the change of
20734         2001-11-18.  It's no longer necessary, now that stdlib.h is always
20735         included.
20736
20737         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
20738         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
20739
20740 2001-11-30  Akim Demaille  <akim@epita.fr>
20741
20742         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
20743         before being defined.
20744
20745 2001-11-27  Paul Eggert  <eggert@twinsun.com>
20746
20747         * lib/quotearg.h (quotearg_n, quotearg_n_style):
20748         First arg is int, not unsigned.
20749         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
20750         (SIZE_MAX, UINT_MAX): New macros.
20751         (quotearg_n_options): Abort if N is negative.
20752         Avoid overflow check on hosts where size_t is 64 bits and int
20753         is 32 bits, as overflow is impossible there.
20754         Fix off-by-one typo that caused unnecessary reallocation.
20755
20756 2001-11-27  Jim Meyering  <meyering@lucent.com>
20757
20758         * lib/tempname.c: Merge with version from libc.
20759         * lib/regex.c: Likewise.
20760
20761         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
20762         systems for which STDC_HEADERS is 0, it was not included, resulting in
20763         a warning about an integer-to-pointer conversion problem with getenv.
20764         Reported by Volker Borchert.
20765
20766 2001-11-26  Jim Meyering  <meyering@lucent.com>
20767
20768         * lib/gtod.h: Remove file.
20769         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
20770         * lib/gettimeofday.c: Don't include gtod.h.
20771         (GTOD_init): Remove function.
20772         (rpl_gettimeofday): Do its job here instead, rather than aborting.
20773         Suggestion from Volker Borchert.
20774
20775 2001-11-23  Jim Meyering  <meyering@lucent.com>
20776
20777         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
20778         it.
20779         * lib/hash.c (struct hash_table): Define it here instead.
20780
20781 2001-11-22  Jim Meyering  <meyering@lucent.com>
20782
20783         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
20784
20785 2001-11-20  Jim Meyering  <meyering@lucent.com>
20786
20787         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
20788         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
20789
20790 2001-11-19  Jim Meyering  <meyering@lucent.com>
20791
20792         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
20793         directory.  Use "conftestXXXXXX" as the template.
20794         Suggestion from Paul Eggert.
20795
20796         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
20797         immediately, so the test doesn't mistakenly hit the max-open-files
20798         limit.
20799
20800 2001-11-18  Paul Eggert  <eggert@twinsun.com>
20801
20802         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
20803         (TEMPORARIES): New macro.
20804         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
20805         removes an artificial limitation (e.g. HP-UX 10.20, where
20806         TMP_MAX is 17576).
20807
20808 2001-11-18  Jim Meyering  <meyering@lucent.com>
20809
20810         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
20811
20812 2001-11-18  Jim Meyering  <meyering@lucent.com>
20813
20814         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
20815         on SunOS 4.
20816
20817         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
20818         files will be created before anything else.
20819
20820 2001-11-17  Paul Eggert  <eggert@twinsun.com>
20821
20822         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
20823         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
20824
20825 2001-11-17  Jim Meyering  <meyering@lucent.com>
20826
20827         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
20828         Prompted by a report from Bob Proulx.
20829
20830         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
20831         Instead, require UTILS_FUNC_MKSTEMP.
20832
20833 2001-11-17  Jim Meyering  <meyering@lucent.com>
20834
20835         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
20836         Now, that's done as part of AC_FUNC_STRTOD.
20837
20838 2001-11-17  Jim Meyering  <meyering@lucent.com>
20839
20840         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
20841         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
20842         rather than group writable.  Patch by Juan F. Codagnone.
20843
20844         * lib/readtokens.c: Remove explicit declarations of xmalloc and
20845         xrealloc, Instead, include "xalloc.h".
20846
20847         * lib/mountlist.c: Include unlocked-io.h after all system headers.
20848         Remove explicit declarations of xmalloc, xrealloc,
20849         and xstrdup.  Instead, include "xalloc.h".
20850
20851         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
20852         unlocked-io.h.
20853         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
20854         Likewise.
20855         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
20856
20857         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
20858         Reported by Padraig Brady.
20859
20860         * lib/mkstemp.c: #undef mkstemp.
20861         Include config.h.
20862         (rpl_mkstemp): Rename from mkstemp.
20863         Protoize.
20864
20865 2001-11-16  Jim Meyering  <meyering@lucent.com>
20866
20867         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
20868         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
20869         determine the amount of total physical memory, use pstat_getstatic.
20870         HPUX-11 doesn't define _SC_PHYS_PAGES.
20871         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
20872         If sysconf couldn't be used to determine the amount of available
20873         physical memory, use both pstat_getstatic and pstat_getdynamic.
20874         Based on a patch from Bob Proulx.
20875
20876 2001-11-10  Jim Meyering  <meyering@lucent.com>
20877
20878         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
20879         (jm_PREREQ): Use it.
20880
20881 2001-11-09  Jim Meyering  <meyering@lucent.com>
20882
20883         * m4/jm-macros.m4: Require autoconf-2.52f.
20884         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
20885         Use these AC_-prefixed names, not the AM_-prefixed ones.
20886
20887         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
20888
20889 2001-11-05  Jim Meyering  <meyering@lucent.com>
20890
20891         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
20892
20893 2001-11-04  Jim Meyering  <meyering@lucent.com>
20894
20895         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
20896         $DEFS.
20897
20898 2001-11-03  Jim Meyering  <meyering@lucent.com>
20899
20900         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
20901         of AC_DEFUN.
20902
20903         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
20904         know the name of the variable in the macro definition.
20905
20906 2001-11-03  Jim Meyering  <meyering@lucent.com>
20907
20908         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
20909         in argmatch_to_argument call.
20910
20911         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
20912         argument.
20913
20914         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
20915         e.g., a fault due to an attempt to free a NULL pointer.
20916
20917 2001-11-01  Jim Meyering  <meyering@lucent.com>
20918
20919         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
20920         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
20921
20922 2001-11-01  Jim Meyering  <meyering@lucent.com>
20923
20924         * lib/dirfd.c, lib/dirfd.h: New files.
20925         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
20926
20927         * lib/hash.c (hash_print) [TESTING]: Clean up.
20928
20929 2001-10-22  Paul Eggert  <eggert@twinsun.com>
20930
20931         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
20932         to avoid a warning if -Wall.
20933
20934 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
20935
20936         * README: New file
20937         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
20938         (per RMS's instructions, this is now the canonical source)
20939         * lgpl/, gpl/: New directories.
20940
20941 2001-10-21  Paul Eggert  <eggert@twinsun.com>
20942
20943         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
20944
20945 2001-10-21  Jim Meyering  <meyering@lucent.com>
20946
20947         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
20948         this code would end up calling gettext even in packages built
20949         with --disable-nls.
20950         * lib/getopt.c (_): Likewise.
20951         * lib/regex.c (_): Likewise.
20952
20953 2001-10-20  Paul Eggert  <eggert@twinsun.com>
20954
20955         * m4/error.m4 (jm_PREREQ_ERROR):
20956         Do not invoke AC_CHECK_FUNCS with strerror_r, as
20957         AC_FUNC_STRERROR_R does that.
20958         Check for strerror declaration.
20959
20960         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
20961         are supposed to have them these days.
20962         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
20963         Merge changes from latest Autoconf CVS.
20964         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
20965         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
20966         POSIX decided to standardize on the int flavor of strerror_r.
20967
20968 2001-10-20  Paul Eggert  <eggert@twinsun.com>
20969
20970         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
20971         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
20972         Use strerror_r that is only a macro, even if it is not a function.
20973         (strerror): Check for HAVE_DECL_STRERROR before declaring.
20974         (private_strerror): Use prototypes, not old-style function definition.
20975         (print_errno_message): New function.
20976         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
20977         char*-flavored one.
20978         (error_tail, error, error_at_line): Use it.
20979
20980 2001-10-11  Jim Meyering  <meyering@lucent.com>
20981
20982         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
20983         and quote_n (1, ... to avoid clobbering a buffer.
20984
20985 2001-10-05  Jim Meyering  <meyering@lucent.com>
20986
20987         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
20988         hash-pjw.h.
20989         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
20990         * lib/hash-pjw.h: New file.
20991
20992 2001-09-30  Jim Meyering  <meyering@lucent.com>
20993
20994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
20995         `struct fsstat' has the `f_fstypename' member.
20996         Use that to define FS_TYPE, which is now used to make
20997         the getfsstat link test tighter.
20998
20999 2001-09-30  Jim Meyering  <meyering@lucent.com>
21000
21001         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
21002         Include <sys/ucred.h>, for Apple Darwin.
21003         Include sys/mount.h and sys/fs_types.h only if available.
21004         (FS_TYPE): Define.
21005         (read_filesystem_list): Use FS_TYPE.
21006
21007 2001-09-29  Paul Eggert  <eggert@twinsun.com>
21008
21009         * lib/exclude.c (excluded_filename): 0 -> false, since it's
21010         a boolean context.
21011
21012 2001-09-29  Jim Meyering  <meyering@lucent.com>
21013
21014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21015         [one-argument getmntent function]): Include stdio.h before mntent.h.
21016         SunOS 4.1.x needs it for the declaration of `FILE'.
21017         Patch by Volker Borchert.
21018
21019         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21020         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
21021         sys/fs_types.h, and make the link-test for getfsstat guard #include
21022         directives with appropriate #if HAVE_*_H tests so that we can
21023         detect getfsstat on Apple Darwin1.3.7 systems.
21024         Reported by Nelson Beebe.
21025         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
21026
21027 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21028
21029         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21030         #defines strtoimax.  Also treat the other strto* functions
21031         like strtoimax.
21032
21033         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21034         Check for strtoul and strtoumax,
21035         as those declarations are made even in the signed case.
21036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
21037         Likewise, for strtol and strtoimax.
21038
21039 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21040
21041         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21042         #defines strtoimax.  Also treat the other strto* functions
21043         like strtoimax.
21044
21045         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
21046         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
21047         (strtoimax, strtoumax): Do not declare if already defined as a macro.
21048
21049 2001-09-26  Jim Meyering  <meyering@lucent.com>
21050
21051         Most macros in unlocked-io.h had the wrong number of arguments.
21052         * lib/gen-uio: New script.
21053         (USE_UNLOCKED_IO): Define to 1 if not already defined.
21054         * lib/unlocked-io.hin: Remove file.
21055         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
21056         rather than trying to embed it here.
21057         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
21058         Reported by Padraig Brady.
21059
21060 2001-09-25  Volker Borchert  <bt@teknon.de>
21061
21062         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
21063         `result'.
21064
21065 2001-09-24  Jim Meyering  <meyering@lucent.com>
21066
21067         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
21068
21069 2001-09-23  Jim Meyering  <meyering@lucent.com>
21070
21071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
21072         instead of the mere test for existence of mntent.h.  The latter
21073         would get a false-positive on AIX 3.4 systems.
21074         In the outer getmntent if-block, don't die if neither of the getmntent
21075         tests succeeds.  Instead, just fall through and continue with the
21076         remaining tests.
21077
21078 2001-09-23  Jim Meyering  <meyering@lucent.com>
21079
21080         * lib/mountlist.c: Remove useless parentheses in #if directives.
21081         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
21082         the deprecated MOUNTED symbol is no longer defined in mntent.h.
21083
21084 2001-09-22  Jim Meyering  <meyering@lucent.com>
21085
21086         * m4/gettext.m4: New file.  From gettext.
21087         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
21088         * m4/progtest.m4: Likewise
21089         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
21090         * m4/glibc21.m4: Likewise.
21091
21092         * m4/libintl.m4: Remove.  No longer used.
21093
21094 2001-09-22  Jim Meyering  <meyering@lucent.com>
21095
21096         * lib/localcharset.c: Update from latest gettext.
21097         * lib/config.charset: Likewise.
21098
21099 2001-09-20  Jim Meyering  <meyering@lucent.com>
21100
21101         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
21102         strtoimax.
21103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
21104         strtoumax.
21105
21106 2001-09-20  Jim Meyering  <meyering@lucent.com>
21107
21108         * lib/xstrtol.c (strtoimax): Guard declaration with
21109         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
21110         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
21111         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
21112         (strtoumax): Likewise, for completeness (it wasn't necessary).
21113
21114 2001-09-17  Paul Eggert  <eggert@twinsun.com>
21115
21116         * lib/strtoimax.c (HAVE_LONG_LONG):
21117         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
21118         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
21119         to work around bug in IBM C compiler.
21120
21121 2001-09-17  Jim Meyering  <meyering@lucent.com>
21122
21123         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
21124         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
21125         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
21126         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
21127         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
21128         whenever the right hand side need not be expanded by the shell.
21129
21130 2001-09-16  Paul Eggert  <eggert@twinsun.com>
21131
21132         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
21133         library.  It's not correct, as some older glibcs are buggy.
21134         fnmatch wasn't fixed until glibc 2.2.
21135
21136         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
21137         special shell magic here.
21138
21139 2001-09-16  Jim Meyering  <meyering@lucent.com>
21140
21141         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
21142         * m4/jm-macros.m4: Require it.
21143
21144 2001-09-16  Jim Meyering  <meyering@lucent.com>
21145
21146         * lib/mkdir.c: New file.
21147
21148 2001-09-15  Jim Meyering  <meyering@lucent.com>
21149
21150         * m4/jm-macros.m4: Check for help2man.
21151
21152 2001-09-11  Jim Meyering  <meyering@lucent.com>
21153
21154         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
21155         The body, by Paul Eggert, was moved here from configure.in.
21156         * m4/jm-macros.m4: Require UTILS_HOST_OS.
21157
21158 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21159
21160         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
21161         (jm_PREREQ): Use it.
21162
21163 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21164
21165         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
21166         Use ssize_t, not int, to store result of readlink.
21167         Check for ssize_t overflow as well as size_t overflow,
21168         as POSIX says the result of readlink is implementation-defined
21169         when ssize_t overflows.
21170         Remove unnecessary cast to char*.
21171         Use free+malloc instead of realloc, as the storage doesn't need
21172         to be preserved and it's clearer and can be more efficient that way.
21173         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
21174         * lib/xreadlink.h (xreadlink): Update prototype.
21175
21176 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21177
21178         * lib/xgetcwd.c: Revert some of the previous change; intead,
21179         fix the HAVE_GETCWD_NULL code to behave more like the
21180         !HAVE_GETCWD_NULL code used to.
21181
21182         Include "xalloc.h".
21183         (xgetcwd): Do not return NULL when memory is exhausted; instead,
21184         invoke xalloc_die.
21185
21186 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21187
21188         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
21189         sys/param.h, as pathmax.h includes them.
21190
21191 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21192
21193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
21194         (jm_PREREQ_XGETCWD): New macro.
21195
21196         * m4/getcwd.m4: New file.
21197
21198 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21199
21200         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
21201         like the HAVE_GETCWD_NULL code.
21202         Include pathmax.h if not HAVE_GETCWD.
21203         Do not include xalloc.h.
21204         (INITIAL_BUFFER_SIZE): New symbol.
21205         Do not use xmalloc / xrealloc, since the caller is responsible for
21206         handling errors.  Preserve errno around `free' during failure.
21207         Do not overrun buffer when using getwd.
21208
21209 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21210
21211         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
21212         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
21213         getcwd (NULL, 0).
21214
21215 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21216
21217         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
21218         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
21219         spotted by Jim Meyering.
21220
21221 2001-09-03  Jim Meyering  <meyering@lucent.com>
21222
21223         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
21224         failure.
21225
21226 2001-09-02  Jim Meyering  <meyering@lucent.com>
21227
21228         * lib/error.c: Update from GNU libc.
21229
21230 2001-09-01  Jim Meyering  <meyering@lucent.com>
21231
21232         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
21233         Used by df.
21234
21235 2001-09-01  Jim Meyering  <meyering@lucent.com>
21236
21237         * lib/xreadlink.c: New file.
21238         * lib/xreadlink.h: New file.
21239         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
21240         xreadlink.h.
21241
21242         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
21243         doesn't conflict with sparc Solaris 7's definition in
21244         /usr/include/sys/int_types.h.
21245
21246         * lib/exclude.c: Use `""', not `<>' to #include non-system header
21247         files.
21248         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
21249         and strncasecmp as r-values.  Unixware didn't have declarations.
21250
21251 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21252
21253         * lib/xstrtol.h: Add copyright notice.
21254         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
21255         LONGINT_INVALID_SUFFIX_CHAR.
21256
21257 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21258
21259         * lib/xstrtol.c (strtoimax): New decl.
21260
21261 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21262
21263         * lib/xgetcwd.c: Don't include pathmax.h.
21264         Include stdlib.h and unistd.h if available.
21265         Include xalloc.h.
21266         (xmalloc, xstrdup, free): Remove decls.
21267         (xgetcwd): Don't assume sizes fit in unsigned.
21268         Check for overflow when computing sizes.
21269         Simplify reallocation code.
21270
21271 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21272
21273         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
21274         a directory's st_size can have an arbitrary value, so the old
21275         usage could waste an arbitrary amount of memory.  All uses
21276         changed.
21277         * lib/savedir.h: Update prototype.
21278
21279 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21280
21281         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
21282
21283         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
21284         old strtoimax.c.
21285
21286         Also, make the following further changes to make this file's
21287         configuration more similar to that of strtol.c:
21288         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
21289         (strtoumax, uintmax_t, strtoull, strtol): Remove.
21290         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
21291         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
21292         changed to signed values.
21293
21294         And make the following changes as well:
21295         Fix copyright notice, as 1999 was missing.
21296         (verify): New macro.
21297         (strtoimax): Check sizes at compile-time, not run-time.
21298         Prefer strtol to strtoll if both work.
21299         (main): Remove; it was not that useful and was a pain to maintain.
21300
21301         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
21302
21303 2001-08-31  Jim Meyering  <meyering@lucent.com>
21304
21305         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
21306         Use an initial, malloc'd, buffer of length 128 rather than
21307         a statically allocated one of length 1024.
21308
21309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21310
21311         Simplify code, partly by assuming autoconf 2.52 semantics.
21312
21313         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
21314
21315         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
21316         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
21317         All uses removed.
21318         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
21319         Move AC_REQUIRE to next-to-top level, to avoid confusion.
21320         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
21321         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
21322         jm_AC_HEADER_INTTYPES_H.
21323         * m4/jm-macros.m4 (jm_MACROS): Likewise.
21324
21325         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
21326
21327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21328         Quote first arg of AC_DEFUN.
21329         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
21330         since they are needed to parse the include file even if we need
21331         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
21332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
21333         but with opposite signedness.
21334
21335 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21336
21337         Merge 'exclude' changes from tar 1.13.22.
21338         This fixes one or two unlikely storage allocation overflow bugs,
21339         but doesn't change user-visible behavior otherwise.
21340
21341 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21342
21343         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
21344         (jm_PREREQ_EXCLUDE): New macro.
21345
21346 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21347
21348         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
21349         tm to be declared.
21350
21351 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21352
21353         * lib/hash.c: Remove '2001' from copyright notice.
21354
21355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21356
21357         * lib/full-write.h: New file.
21358         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
21359         * lib/full-write.c: Correct credits, as cccp.c no longer
21360         exists and anyway it was so heavily changed from the old cccp
21361         code as to be unrecognizable.  Include full-write.h.
21362         (full_write) Return size_t, with short writes meaning failure.
21363         All callers changed.  This fixes a bug with large buffers
21364         on 64-bit hosts.
21365         * lib/utime.c: Include full-write.h.
21366
21367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21368
21369         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
21370         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
21371         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
21372         Include if available.
21373         (<xalloc.h>): Include
21374         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
21375         (verify): New macro.  Use it to verify that EXCLUDE macros do not
21376         collide with FNM macros.
21377         (struct patopts): New struct.
21378         (struct exclude): Use it, as exclude patterns now come with options.
21379         (new_exclude): Support above changes.
21380         (new_exclude, add_exclude_file):
21381         Initial size must now be a power of two to simplify overflow checking.
21382         (free_exclude, fnmatch_no_wildcards): New function.
21383         (excluded_filename): No longer requires options arg, as the options
21384         are determined by add_exclude.  Now returns bool, not int.
21385         (excluded_filename, add_exclude):
21386         Add support for the fancy new exclusion options.
21387         (add_exclude, add_exclude_file): Now takes int options arg.
21388         Check for arithmetic overflow when computing sizes.
21389         (add_exclude_file): xrealloc might modify errno, so don't
21390         realloc until after errno might be used.
21391
21392         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
21393         New macros.
21394         (free_exclude): New decl.
21395         (add_exclude, add_exclude_file): Now takes int options arg.
21396         (excluded_filename): No longer requires options arg, as the options
21397         are determined by add_exclude.  Now returns bool, not int.
21398
21399 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21400
21401         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
21402
21403 2001-08-27  Jim Meyering  <meyering@lucent.com>
21404
21405         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
21406
21407         * lib/version-etc.c (N_): Remove definition.
21408         Revert most of last change.
21409         Instead, simply don't mark the `Copyright...' string for translation.
21410         Based on advice from Paul Eggert.
21411
21412         * lib/strtoxmax.c: Tweak comment.
21413
21414 2001-08-26  Jim Meyering  <meyering@lucent.com>
21415
21416         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
21417
21418         * m4/xstrtoimax.m4: New file.
21419         * m4/xstrtoumax.m4: Add comments explaining why we
21420         AC_REPLACE_FUNCS(strtol).
21421
21422 2001-08-26  Jim Meyering  <meyering@lucent.com>
21423
21424         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
21425         of copyright with `%s' so translators don't get an untranslated
21426         message in 2002.
21427         (COPYRIGHT_YEAR): Define.
21428         (version_etc): Use fprintf rather than fputs.
21429         Suggestion from Ulrich Drepper.
21430
21431         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
21432
21433         * lib/strtoll.c: New file, from GNU libc.
21434         * lib/xstrtoimax.c: New file.
21435
21436         * lib/xstrtol.h: Add xstrtoimax.
21437         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
21438         * lib/strtoimax.c: New file.  Likewise, but first define
21439         STRTOUXMAX_SIGNED.
21440
21441         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
21442         ...
21443         * lib/strtoxmax.c: ... then renamed to this.
21444
21445 2001-08-18  Paul Eggert  <eggert@twinsun.com>
21446
21447         * m4/inttypes.m4: Add AC_PREREQ(2.13).
21448         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
21449         (jm_AC_TYPE_INTMAX_T): New macro.
21450         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
21451
21452         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
21453
21454         * m4/longlong.m4: Renamed from ulonglong.m4.
21455         * m4/inttypes.m4: Renamed from inttypes_h.m4.
21456         * m4/uintmax_t.m4: Removed.
21457
21458 2001-08-13  Paul Eggert  <eggert@twinsun.com>
21459
21460         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
21461         Port to Solaris 8, where 'sed' requires a space after the 'r'
21462         command, and where sh dislikes "$/".  Clean up the spacing a bit.
21463         Redirect output to $tmp just once.
21464
21465 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
21466
21467         * lib/addext.c (<errno.h>): Include.
21468         (errno): Declare if not defined.
21469         (addext): Work correctly when pathconf returns -1 and leaves
21470         errno alone because there is no limit.  Also, work even if
21471         pathconf returns a value greater than SIZE_MAX.
21472
21473 2001-08-12  Jim Meyering  <meyering@lucent.com>
21474
21475         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
21476         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
21477         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
21478         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
21479         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
21480         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
21481         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
21482         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
21483         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
21484         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
21485         utime.m4, utimes.m4, xstrtoumax.m4:
21486         Quote the first argument in each use of AC_DEFUN.
21487
21488 2001-08-12  Jim Meyering  <meyering@lucent.com>
21489
21490         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
21491         Simply `return getcwd (NULL, 0);'.
21492         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
21493         Use 1300 as initial value for length, not PATH_MAX.
21494
21495         * lib/pathmax.h: Clean up cpp syntax.
21496
21497 2001-08-12  Jim Meyering  <meyering@lucent.com>
21498
21499         * lib/gettimeofday.c: New file.
21500         * lib/gtod.h: New file.
21501         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
21502
21503 2001-08-05  Jim Meyering  <meyering@lucent.com>
21504
21505         * m4/jm-macros.m4: Require autoconf-2.52.
21506
21507 2001-08-04  Jim Meyering  <meyering@lucent.com>
21508
21509         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
21510         stmt, to get in sync with glibc.
21511
21512 2001-08-03  Paul Eggert  <eggert@twinsun.com>
21513
21514         The following changes are from gettext 0.10.39 as maintained by
21515         Bruno Haible.
21516
21517         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
21518         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
21519         with inverted sense.  All uses changed.
21520
21521         * lib/mbswidth.c: Don't include <limits.h>.
21522         Include <stdlib.h> and <string.h> unconditionally.
21523         (iswcntrl, mbsinit, ISCNTRL): New macros.
21524         (mbsnwidth): Use K&R style function declarations.
21525         Don't bother checking for MB_LEN_MAX == 1, since the compiler
21526         can optimize it when MB_CUR_MAX == 1.
21527         The width of control characters is zero, not 1.
21528
21529 2001-08-03  Paul Eggert  <eggert@twinsun.com>
21530
21531         The following changes are from gettext 0.10.39 as maintained by
21532         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
21533
21534         * m4/codeset.m4: Upgrade to serial AM1.
21535         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
21536         all uses changed.  Quote first arg of AC_DEFUN.
21537         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
21538
21539         * m4/iconv.m4: Upgrade to serial AM2.
21540         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
21541         Add --with-libconv-prefix.
21542         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
21543         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
21544         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
21545         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
21546         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
21547
21548         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
21549         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
21550         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
21551         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
21552         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
21553         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
21554         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21555         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
21556         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
21557
21558         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
21559         string.h any more.
21560
21561         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
21562         not the default value.
21563
21564         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
21565         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
21566         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
21567         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
21568         Also check for iswcntrl, used for wcwidth fallback.
21569         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
21570         to Autoconf 2.13.
21571
21572 2001-08-03  Jim Meyering  <meyering@lucent.com>
21573
21574         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
21575         as it was in the original.  Reported by Paul Eggert.
21576
21577 2001-07-16  Jim Meyering  <meyering@lucent.com>
21578
21579         * m4/gettimeofday.m4: New file.
21580         Prompted by a report from Bernhard Baehr.
21581
21582 2001-07-15  Jim Meyering  <meyering@lucent.com>
21583
21584         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
21585         stuff. Now it's in ../Makefile.cfg.
21586
21587 2001-07-15  Jim Meyering  <meyering@lucent.com>
21588
21589         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
21590         (BUILT_SOURCES): Add unlocked-io.h.
21591         (io_functions): Define.
21592         (unlocked-io.h): New rule.
21593         (DISTCLEANFILES): Add unlocked-io.h.
21594         (all-local): Depend on unlocked-io.h, to ensure it is created.
21595
21596         * lib/unlocked-io.hin: New file
21597
21598         * lib/regex.c: Update from glibc.
21599
21600 2001-07-05  Jim Meyering  <meyering@lucent.com>
21601
21602         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
21603         recommendation.
21604         (libfetish_a_SOURCES): Put all .h files here instead.
21605         Remove a thus-exposed (better checks in automake) duplicate and
21606         two unnecessary .h files.
21607
21608 2001-07-04  Jim Meyering  <meyering@lucent.com>
21609
21610         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
21611         that generates jm-glibc-io.m4 so that it doesn't trigger any make
21612         distcheck failure.
21613
21614 2001-07-02  Jim Meyering  <meyering@lucent.com>
21615
21616         The following changes were prompted by suggestions from Bruno Haible.
21617
21618         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
21619         is now generated.
21620         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
21621         definition of EXTRA_DIST.
21622         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
21623         ensure that the generated file is created/updated whenever the list
21624         of $(unlocked_functions) is changed.
21625         (jm-glibc-io.m4): New rule.
21626         (unlocked-io.h): New rule -- currently unused.
21627
21628 2001-06-24  Jim Meyering  <meyering@lucent.com>
21629
21630         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
21631         unmatched right bracket, rather than kludging it with an extra,
21632         falsely-matching quote in a comment.  Patch by Akim Demaille.
21633
21634 2001-06-11  Jim Meyering  <meyering@lucent.com>
21635
21636         * lib/regex.c: Update from GNU libc.
21637
21638 2001-05-27  Jim Meyering  <meyering@lucent.com>
21639
21640         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
21641         Check for ut_type in struct utmp.
21642
21643 2001-05-27  Jim Meyering  <meyering@lucent.com>
21644
21645         * lib/readutmp.h (UT_TYPE): Define.
21646
21647 2001-05-24  Jim Meyering  <meyering@lucent.com>
21648
21649         * lib/argmatch.c: Include "quote.h".
21650         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
21651         quote function.  Reported by Göran Uddeborg.
21652
21653 2001-05-22  Jim Meyering  <meyering@lucent.com>
21654
21655         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
21656         now that we use the package-supplied version unconditionally.
21657         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
21658
21659 2001-05-21  Jim Meyering  <meyering@lucent.com>
21660
21661         * m4/regex.m4: Change a couple backticks to single quotes to avoid
21662         shell syntax errors.
21663
21664 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21665
21666         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
21667
21668 2001-05-20  Paul Eggert  <eggert@twinsun.com>
21669
21670         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
21671         Don't bother to check library strftime, since
21672         we'll be using our own my_strftime function anyway.
21673         Define my_strftime instead of strftime.
21674
21675 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
21676
21677         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
21678         which is not yet declared.
21679
21680 2001-05-15  Jim Meyering  <meyering@lucent.com>
21681
21682         * m4/regex.m4: Use proper quoting so brackets appear in the test
21683         program.
21684         Reported by, and with help from, Bruno Haible.
21685
21686 2001-05-13  Jim Meyering  <meyering@lucent.com>
21687
21688         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
21689         undefined.
21690
21691 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21692
21693         dirname code cleanup.  base_name now behaves more compatibly
21694         with POSIX basename when given file names that have trailing
21695         slashes, and similarly for dir_name.  Add new primitives
21696         base_len and dir_len.  Put the directory-name-related decls
21697         into dirname.h.
21698
21699         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
21700         * lib/backupfile.c (base_name): Likewise.
21701         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
21702         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
21703         * lib/makepath.c (strip_trailing_slashes): Likewise.
21704         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
21705         ISSLASH): Likewise.
21706         * lib/rename.c (strip_trailing_slashes): Likewise.
21707         * lib/same.c (base_name): Likewise.
21708         * lib/stripslash.c (ISSLASH): Likewise.
21709
21710         * lib/addext.c: Include <dirname.h> after size_t is defined.
21711         * lib/backupfile.c: Likewise.
21712
21713         * lib/addext.c (addext): Use base_len to trim redundant
21714         trailing slashes instead of doing it ourselves.
21715         But do not trim the last slash if it is not redundant.
21716
21717         * lib/backupfile.c (find_backup_file_name,
21718         max_backup_version): Use base_len instead of rolling it ourselves.
21719         Handle the case of "" and (on DOS) "C:" correctly.
21720
21721         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
21722         needed. Include <string.h>, <dirname.h>.
21723         (base_name): Allow file names ending in slashes, other than names
21724         that are all slashes.  In this case, return the basename followed
21725         by the slashes.  This is more general, and can be used in places
21726         where the original base_name purposely had an assertion failure.
21727         (base_len): New function.
21728
21729         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
21730         Do not include <assert.h>; no longer needed.
21731         Include xalloc.h.
21732         (memrchr): Remove decl.
21733         (dir_name_r): Remove.
21734         (dir_len): Renamed from dirlen.  All callers changed.
21735         Rewrite in terms of base_name, for simplicity and consistency.
21736         (dir_name): Never return NULL.  All callers changed.
21737         Do not include <stdlib.h> in test program; no longer needed.
21738         return 0; is fine for test program.
21739
21740         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
21741         New macros.
21742         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
21743
21744         * lib/path-concat.c (path_concat): Use base_len to compute
21745         base length, not strlen; this means we cannot rely on memcpy
21746         to null-terminate.
21747
21748         * lib/same.c (STREQ): Remove.
21749         (same_name): Handle the case where the basename ends in trailing '/'.
21750
21751         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
21752         a slash was stripped.  Do not strip the last slash after a
21753         file system prefix.
21754
21755 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21756
21757         * lib/Makefile.am (libfetish_a_SOURCES):
21758         Add strftime.c, since we now compile it on all hosts.
21759
21760         * lib/strftime.c (my_strftime):
21761         Define to nstrftime if emacs, but only if my_strftime is not defined.
21762         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
21763         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
21764         Add one more extra argument: a nanoseconds value.
21765         All uses changed.
21766         (ns): New macro.
21767         (my_strftime function): Add %N format.
21768         (emacs_strftimeu): Renamed from emacs_strftime,
21769         with extra ut argument.
21770
21771 2001-05-09  Paul Eggert  <eggert@twinsun.com>
21772
21773         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
21774
21775 2001-04-21  Jim Meyering  <meyering@lucent.com>
21776
21777         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
21778         doesn't interfere.
21779
21780 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21781
21782         * m4/ftruncate.m4: Check for chsize.
21783         Link with ftruncate.o unconditionally if ftruncate is missing.
21784         This was required when cross-compiling to i586-mingw32msvc.
21785
21786 2001-04-08  Jim Meyering  <meyering@lucent.com>
21787
21788         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
21789         recomputed; that's necessary when the offset spans a DST transition.
21790         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
21791
21792 2001-04-02  Jim Meyering  <meyering@lucent.com>
21793
21794         * lib/regex.h, regex.c: Update from GNU libc.
21795
21796 2001-03-24  Jim Meyering  <meyering@lucent.com>
21797
21798         * m4/jm-macros.m4: Require autoconf-2.49d.
21799
21800 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
21801
21802         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
21803
21804 2001-03-19  Paul Eggert  <eggert@twinsun.com>
21805
21806         * lib/version-etc.c (version_etc_copyright): Update to 2001.
21807
21808 2001-03-17  Jim Meyering  <meyering@lucent.com>
21809
21810         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
21811         now that the version in autoconf is equivalent.
21812         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
21813
21814         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
21815         Suggestion from Akim Demaille.
21816
21817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
21818         (jm_PREREQ_TEMPNAME): New function.
21819
21820 2001-03-16  Paul Eggert  <eggert@twinsun.com>
21821
21822         * lib/tempname.c (uint64_t): Define to uintmax_t if
21823         not defined, and if UINT64_MAX is not defined.
21824         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
21825         Reported by John David Anglin.
21826
21827 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
21828
21829         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
21830         resolve alias if codeset is empty.
21831         * lib/config.charset (BeOS): Use wildcard syntax.
21832
21833 2001-03-13  Jim Meyering  <meyering@lucent.com>
21834
21835         * lib/path-concat.c (path_concat)
21836         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
21837         concatenating e.g., `C:' and `foo'.
21838         From Bruno Haible.
21839
21840 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21841
21842         * lib/localcharset.c (locale_charset): Don't use
21843         setlocale(LC_CTYPE,NULL). Don't return NULL.
21844         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
21845
21846 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21847
21848         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
21849         support for DOS/DJGPP.
21850
21851 2001-03-01  Paul Eggert  <eggert@twinsun.com>
21852
21853         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
21854         lacks mkstemp.  Compile our own tempname.c if we compile our own
21855         mkstemp.c, as mkstemp relies on tempname.
21856
21857 2001-03-01  Jim Meyering  <meyering@lucent.com>
21858
21859         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
21860         AH_VERBATIM really does output its argument verbatim.
21861
21862 2001-02-28  Paul Eggert  <eggert@twinsun.com>
21863
21864         * lib/Makefile.am (libfetish_a_SOURCES):
21865         Add dup-safer.c, fopen-safer.c.
21866         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
21867
21868         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
21869         * lib/unistd-safer.h: New files.
21870
21871 2001-02-25  Paul Eggert  <eggert@twinsun.com>
21872
21873         The mkstemp replacement is taken from glibc 2.2.2, with some
21874         portability fixes for use outside glibc, as follows:
21875
21876         * lib/tempname.c (struct_stat64): New macro.
21877         (direxists, __gen_tempname): Use it.
21878         This avoids a portability problem with Solaris 8.
21879
21880         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
21881         (<stddef.h>, <stdint.h>, <string.h>):
21882         Include only if STDC_HEADERS || _LIBC.
21883         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
21884         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
21885         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
21886         (__set_errno): Define this macro if <errno.h> doesn't.
21887         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
21888         Define these macros if <stdio.h> doesn't.
21889         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
21890         Define these macros if <sys/stat.h>
21891         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
21892         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
21893         __xstat64): Define if not _LIBC.
21894         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
21895         (__gen_tempname): Invoke gettimeofday only if
21896         HAVE_GETTIMEOFDAY || _LIBC;
21897         otherwise, fall back on plain "time".
21898         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
21899
21900         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
21901
21902         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
21903
21904 2001-02-18  Paul Eggert  <eggert@twinsun.com>
21905
21906         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
21907
21908 2001-02-17  Paul Eggert  <eggert@twinsun.com>
21909
21910         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
21911         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
21912         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
21913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21914
21915 2001-02-17  Paul Eggert  <eggert@twinsun.com>
21916
21917         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
21918         Remove workaround macros for hosts that have mbrtowc but not
21919         mbstate_t, as we now insist on proper declarations for both
21920         before using mbrtowc.
21921
21922 2001-02-17  Jim Meyering  <meyering@lucent.com>
21923
21924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
21925         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
21926         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
21927         UnixWare 7.1.1.
21928
21929         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
21930         rather than AC_CACHE_VAL.
21931
21932 2001-02-17  Jim Meyering  <meyering@lucent.com>
21933
21934         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
21935         around included file name.
21936
21937         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
21938
21939         * lib/strftime.c: Update from GNU libc (the only changes were to
21940         comments).
21941
21942 2001-02-17  Jim Meyering  <meyering@lucent.com>
21943
21944         * lib/regex.c: Update from libc.
21945
21946 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
21947
21948         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
21949         clash.
21950
21951 2001-02-16  Paul Eggert  <eggert@twinsun.com>
21952
21953         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
21954         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
21955         Reported by Mark Hounschell via Paul Eggert.
21956
21957 2001-02-07  Jim Meyering  <meyering@lucent.com>
21958
21959         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
21960
21961 2001-02-05  Jim Meyering  <meyering@lucent.com>
21962
21963         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
21964         it includes the patch required for `large file' support with at least
21965         HP-UX's 10.20 /bin/cc.
21966
21967 2001-02-03  Jim Meyering  <meyering@lucent.com>
21968
21969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
21970         AS_IF, now that it works once again (mysteriously).
21971         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
21972
21973 2001-01-30  Jim Meyering  <meyering@lucent.com>
21974
21975         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
21976         * m4/chown.m4: Rename conftestchown to conftest.chown.
21977         * m4/rename.m4: s/conftestdir/conftest.d1/ and
21978         s/conftestdir2/conftest.d2/.
21979         * m4/utimes.m4: s/conftestdata/conftest.data/
21980         Inspired by Pavel Roskin's change in autoconf.
21981
21982 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
21983
21984         * lib/config.charset: Update for FreeBSD 4.2.
21985
21986 2001-01-27  Jim Meyering  <meyering@lucent.com>
21987
21988         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
21989         a use of AS_IF.
21990         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
21991
21992 2001-01-26  Jim Meyering  <meyering@lucent.com>
21993
21994         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
21995         quotearg.c includes it.
21996
21997 2001-01-26  Jim Meyering  <meyering@lucent.com>
21998
21999         * lib/quotearg.c: Include stddef.h.
22000         * lib/quote.c: Include stddef.h.
22001         Reported by Axel Kittenberger.
22002
22003         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
22004         line in double quotes so that it evokes a better diagnostic.
22005         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
22006         Reported by Axel Kittenberger.
22007
22008 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
22009
22010         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
22011         as if it was a `charset'.
22012
22013 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22014
22015         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
22016         has const.
22017
22018 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22019
22020         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
22021         to avoid a warning.  Add back 'const' to inptr.
22022
22023 2001-01-20  Jim Meyering  <meyering@lucent.com>
22024
22025         Be sure that headers are checked before used in code compiled
22026         for the type checks.
22027         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
22028         In place of that, invoke jm_CHECK_ALL_TYPES.
22029         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
22030         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
22031         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
22032         The check for ssize_t was mistakenly run before the test for unistd.h.
22033
22034         The configure-time check for stdbool.h was missing.
22035         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
22036         (jm_PREREQ_HASH): New function.
22037
22038 2001-01-17  Jim Meyering  <meyering@lucent.com>
22039
22040         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
22041         for autoconf-2.49c.
22042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
22043
22044 2001-01-16  Jim Meyering  <meyering@lucent.com>
22045
22046         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
22047         From Bruno Haible.
22048
22049 2001-01-14  Jim Meyering  <meyering@lucent.com>
22050
22051         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
22052         foo and bar.  Create conftestdir/ in the script, not in the C code.
22053         Remove directories in the script, not in the C code.
22054         Remove conftestdir{,2} before trying to create the directory.
22055         Make the entire configure script fail if the mkdir fails.
22056
22057 2001-01-14  Jim Meyering  <meyering@lucent.com>
22058
22059         * lib/rename.c: New file.  From Volker Borchert.
22060         Include stdlib.h, string.h or strings.h, and xalloc.h.
22061         Use strip_trailing_slashes rather than open-coding it.
22062
22063 2001-01-03  Paul Eggert  <eggert@twinsun.com>
22064
22065         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
22066
22067 2001-01-03  Jim Meyering  <meyering@lucent.com>
22068
22069         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
22070         of local `inptr' to avoid warning with some system declarations of
22071         iconv.
22072
22073 2001-01-02  Volker Borchert  <bt@teknon.de>
22074
22075         * m4/rename.m4: New file.
22076         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
22077
22078 2001-01-01  Jim Meyering  <meyering@lucent.com>
22079
22080         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
22081         even on systems with utmpx.h.  It's necessary for the declaration of
22082         utmp's ut_user member.  Reported by Andreas Jaeger.
22083
22084         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
22085         available. They are required for the declarations of getgrgid and
22086         getpwuid resp.
22087         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
22088         Reported by Andreas Jaeger.
22089
22090 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
22091
22092         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
22093         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
22094         so `make install' also works in VPATH builds.
22095
22096 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
22097
22098         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
22099         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
22100         can be used in subdirectories.
22101
22102 2000-12-29  Paul Eggert  <eggert@twinsun.com>
22103
22104         * lib/modechange.c: Do not assume that mode_t uses the
22105         traditional octal encoding.  E.g. "chmod 1 FOO" should set
22106         the other-execute bit of FOO even if S_IXOTH != 1.
22107
22108         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
22109         WOTH, XOTH, ALLM): New macros.
22110         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
22111          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
22112         Use them.
22113         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
22114         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
22115         (mode_compile):
22116         No need to use uintmax_t; unsigned long is long enough.
22117         Don't bother to get suffix since we don't use it.
22118
22119 2000-12-26  Jim Meyering  <meyering@lucent.com>
22120
22121         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
22122         better with autoheader.
22123
22124 2000-12-24  Jim Meyering  <meyering@lucent.com>
22125
22126         * lib/hash.c (is_prime): Return explicit boolean values.
22127         (hash_get_first): Return NULL to appease Irix5.6's 89.
22128         Reported by Nelson Beebe.
22129
22130 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
22131
22132         * lib/localcharset.c (locale_charset): Add support for Win32.
22133
22134 2000-12-18  Paul Eggert  <eggert@twinsun.com>
22135
22136         * lib/physmem.h, lib/physmem.c: New files.
22137
22138         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
22139         (noinst_HEADERS): Add physmem.h.
22140
22141         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
22142         't' for compatibility with Solaris 8 sort.
22143
22144 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
22145
22146         * lib/config.charset: Add support for BeOS.
22147
22148 2000-12-17  Jim Meyering  <meyering@lucent.com>
22149
22150         * m4/dos.m4 (jm_AC_DOS): New file and macro.
22151         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
22152
22153 2000-12-16  Jim Meyering  <meyering@lucent.com>
22154
22155         This bug had a serious impact on chown: `chown N:M FILE' (for integer
22156         N and M) would have treated it like `chown N:N FILE'.
22157
22158         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
22159
22160 2000-12-16  Jim Meyering  <meyering@lucent.com>
22161
22162         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
22163         SHELLS_FILE to a file name that's useful on djgpp systems.
22164         Include stdlib.h.
22165         (ADDITIONAL_DEFAULT_SHELLS): Define.
22166         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
22167         Based mostly on a patch from Prashant TR.
22168
22169 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
22170
22171         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
22172         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
22173         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
22174
22175 2000-12-08  Andreas Schwab  <schwab@suse.de>
22176
22177         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
22178         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
22179
22180 2000-12-07  Jim Meyering  <meyering@lucent.com>
22181
22182         * lib/stripslash.c (ISSLASH): Define.
22183         (strip_trailing_slashes): Use ISSLASH rather than comparing against
22184         `/'.
22185         From Prashant TR.
22186
22187         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
22188         (dir_name_r): Declare this function as static.
22189         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
22190         manifest itself on a name containing a mix of slashes and
22191         backslashes.
22192         Make this function work with names starting with a DOS-style
22193         drive letter and colon prefix.
22194         (dir_name): Append `.' if necessary.
22195         Based mostly on patches from Prashant TR and Eli Zaretskii.
22196
22197         * lib/dirname.h (dir_name_r): Remove prototype.
22198
22199 2000-12-06  Paul Eggert  <eggert@twinsun.com>
22200
22201         * m4/off_t-format.m4: Remove this file.
22202         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
22203
22204 2000-12-06  Jim Meyering  <meyering@lucent.com>
22205
22206         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
22207         replacement strtoull, we may well need the replacement strtoul, too.
22208         Check for declarations of strtoul and strtoull.
22209         Check for strtol.  Mainly as a cue to cause automake to include
22210         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
22211         Check for limits.h -- strtol.c needs it.
22212
22213 2000-12-05  Jim Meyering  <meyering@lucent.com>
22214
22215         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
22216
22217 2000-12-04  Jim Meyering  <meyering@lucent.com>
22218
22219         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
22220         Also include memory.h, stdlib.h, unistd.h if appropriate.
22221         Reported by Andreas Jaeger (conflicting declaration of malloc).
22222
22223 2000-12-02  Jim Meyering  <meyering@lucent.com>
22224
22225         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
22226         * m4/jm-macros.m4 (jm_MACROS): require it.
22227
22228 2000-12-02  Jim Meyering  <meyering@lucent.com>
22229
22230         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
22231
22232 2000-12-01  Paul Eggert  <eggert@twinsun.com>
22233
22234         * lib/memrchr.c: Include <config.h> before any system include file.
22235
22236 2000-11-30  Jim Meyering  <meyering@lucent.com>
22237
22238         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
22239
22240 2000-11-30  Jim Meyering  <meyering@lucent.com>
22241
22242         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
22243
22244 2000-11-29  Paul Eggert  <eggert@twinsun.com>
22245
22246         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
22247
22248 2000-11-26  Jim Meyering  <meyering@lucent.com>
22249
22250         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
22251
22252 2000-11-22  Paul Eggert  <eggert@twinsun.com>
22253
22254         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
22255         size of (size_t) -1; it's not portable.
22256
22257 2000-11-17  Jim Meyering  <meyering@lucent.com>
22258
22259         * lib/strstr.c: Update from GNU libc.
22260
22261 2000-11-17  Akim Demaille  <akim@epita.fr>
22262
22263         * lib/obstack.h: Formatting changes.
22264         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
22265         prevent type checking.
22266         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
22267         cast the value to (void *): assigning a `foo *' to a `void *'
22268         variable is valid.
22269         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
22270
22271 2000-11-16  Jim Meyering  <meyering@lucent.com>
22272
22273         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
22274
22275 2000-11-11  Jim Meyering  <meyering@lucent.com>
22276
22277         * lib/error.c: Add a couple #includes, merging from GNU libc version.
22278
22279 2000-11-10  Jim Meyering  <meyering@lucent.com>
22280
22281         * lib/obstack.h: Update from GNU libc.
22282         * lib/obstack.c: Likewise.
22283
22284 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
22285
22286         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
22287
22288 2000-11-06  Paul Eggert  <eggert@twinsun.com>
22289
22290         * lib/getusershell.c (setusershell): Use rewind rather than
22291         fseek/fseeko, to avoid configuration hassles with fseeko.
22292         Don't bother opening SHELLS_FILE if shellstream is NULL;
22293         it's not necessary.
22294
22295 2000-11-05  Jim Meyering  <meyering@lucent.com>
22296
22297         * lib/makepath.h (make_dir): Declare.
22298         * lib/makepath.c (make_dir): Remove `static' attribute.
22299         Tweak a comment.
22300
22301 2000-11-04  Jim Meyering  <meyering@lucent.com>
22302
22303         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
22304
22305 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
22306
22307         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
22308         last one in a bucket, advance to the next bucket.
22309
22310 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
22311
22312         * lib/fnmatch.c: Do not comment out all the code if we are using
22313         the GNU C library, because in some cases we are replacing buggy
22314         code in the GNU C library itself.
22315
22316 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
22317
22318         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
22319         (regex_compile): Catch bogus \(\1\).
22320
22321 2000-10-30  Paul Eggert  <eggert@twinsun.com>
22322
22323         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
22324         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
22325         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
22326
22327 2000-10-30  Paul Eggert  <eggert@twinsun.com>
22328
22329         * lib/error.h, getline.h, modechange.h:
22330         Remove "2000" from Copyright line, as the file hasn't been
22331         changed this year other than in the copyright notice.
22332
22333         * lib/xalloc.h: Add "2000" to Copyright line, as this file
22334         was changed this year.
22335
22336 2000-10-29  Jim Meyering  <meyering@lucent.com>
22337
22338         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
22339         renaming.
22340         * m4/ls-mntd-fs.m4: Likewise
22341
22342 2000-10-29  Jim Meyering  <meyering@lucent.com>
22343
22344         * lib/xstat.in: Fix grammar in comment.
22345
22346 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
22347
22348         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
22349         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
22350         doesn't define __restrict_arr.
22351
22352 2000-10-28  Jim Meyering  <meyering@lucent.com>
22353
22354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
22355         (jm_PREREQ_MEMCHR): New function.
22356
22357 2000-10-28  Jim Meyering  <meyering@lucent.com>
22358
22359         * lib/memchr.c: Update from libc.
22360         Adjust for portability:
22361         [HAVE_STDLIB_H]: Include stdlib.h.
22362         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
22363         Undef __memchr, too.
22364         [!weak_alias]: Define __memchr to memchr.
22365
22366         * lib/regex.c: Update from libc.
22367         * lib/regex.h: Likewise.
22368         * lib/getopt1.c: Likewise.
22369         * lib/memcmp.c: Likewise.
22370
22371         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
22372         Avoid using fseek, when possible -- it's broken by design.
22373         Patch by Ulrich Drepper.
22374
22375 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
22376
22377         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
22378         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
22379         Giving in to popular pressure to shut up the compiler with casts.
22380
22381 2000-10-26  Jim Meyering  <meyering@lucent.com>
22382
22383         * lib/strftime.c: Update from libc.
22384
22385 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
22386
22387         * regex.c: More `unsigned char' -> `re_char' changes.
22388         Also change several `int' into `re_wchar_t'.
22389         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
22390         (PUSH_FAILURE_POINTER): Don't cast any more.
22391         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
22392         We want GCC to complain, since this piece of code makes
22393         re_match non-reentrant, which *should* be fixed.
22394         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
22395         (EXTEND_BUFFER): Use RETALLOC.
22396         (SET_LIST_BIT): Don't cast.
22397         (re_wchar_t): New type.
22398         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
22399         that those two functions will always properly return.
22400         (IMMEDIATE_QUIT_CHECK): Cast to void.
22401         (analyse_first): Use recursion rather than an explicit stack.
22402         (re_compile_fastmap): Can't fail anymore.
22403         (re_search_2): Don't check re_compile_fastmap for failure.
22404         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
22405         Now also sets the new value (passed in a new argument).
22406         (re_match_2_internal): Use it.
22407         Also, use a new var `reg' of type size_t when looping through regs
22408         rather than reuse the inappropriate `mcnt'.
22409
22410 2000-10-25  Jim Meyering  <meyering@lucent.com>
22411
22412         * lib/obstack.c: Update from libc.
22413
22414 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
22415
22416         * regex.c (regex_compile): Change the way of handling a range from
22417         a char less than 256 to a char not less than 256.
22418
22419 2000-10-24  Andrew Innes  <andrewi@gnu.org>
22420
22421         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
22422         NT-Emacs only.
22423         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
22424         so that re_search functions only quit when callers expect them to.
22425
22426 2000-10-23  Jim Meyering  <meyering@lucent.com>
22427
22428         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
22429         wrong.  That set_locale call must not have any side effects.
22430         From Paul Eggert.
22431
22432 2000-10-22  Jim Meyering  <meyering@lucent.com>
22433
22434         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
22435         [CYCLIC]: Remove now-unused definition.
22436
22437         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
22438         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
22439         Suggestion from Ulrich Drepper.
22440
22441 2000-10-21  Jim Meyering  <meyering@lucent.com>
22442
22443         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
22444         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
22445         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
22446
22447 2000-10-21  Jim Meyering  <meyering@lucent.com>
22448
22449         * lib/dirname.c (memrchr): Declare if necessary.
22450         (dir_name): Remove the restriction that there be no
22451         trailing slashes.  Now, this code skips past them, effectively
22452         ignoring them.
22453         [TEST_DIRNAME] (main): New unit tests.
22454
22455         * lib/memrchr.c: New file from GNU libc.
22456         Undef __memrchr, too.
22457         [!weak_alias]: Define __memrchr to memrchr.
22458         Guard weak_alias use with `#ifdef weak_alias'.
22459
22460 2000-10-21  Jim Meyering  <meyering@lucent.com>
22461
22462         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
22463         (dir_name): Use dir_name_r.
22464         * lib/dirname.h (dir_name_r): Declare it.
22465
22466 2000-10-17  Jim Meyering  <meyering@lucent.com>
22467
22468         * lib/quote.h (PARAMS): Define and use.
22469         Reported by Akim Demaille.
22470
22471         * lib/getopt.c: Update from libc.
22472
22473 2000-10-16  Jim Meyering  <meyering@lucent.com>
22474
22475         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
22476         setlocale.
22477         From Jan Fedak.
22478
22479 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
22480
22481         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
22482
22483 2000-09-25  Jim Meyering  <meyering@lucent.com>
22484
22485         * lib/md5.h (rol): Define (from GnuPG).
22486
22487         * lib/sha.c: Give credit (GnuPG) where due.
22488         (M): Use rol rather than open-coding it.
22489         Add a FIXME comment.
22490
22491 2000-09-21  Jim Meyering  <meyering@lucent.com>
22492
22493         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
22494         Reported by Michael Stone.
22495
22496 2000-09-20  Jim Meyering  <meyering@lucent.com>
22497
22498         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
22499         (noinst_HEADERS): Add sha.h.
22500         Based on code from Scott G. Miller and from GnuPG.
22501
22502 2000-09-18  Jim Meyering  <meyering@lucent.com>
22503
22504         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
22505         LIBS. Otherwise, everyone ends up linking with -lelf for some
22506         configurations.
22507         Reported by Mike Stone.
22508
22509 2000-09-15  Jim Meyering  <meyering@lucent.com>
22510
22511         * lib/regex.c: Update from libc.
22512
22513 2000-09-10  Jim Meyering  <meyering@lucent.com>
22514
22515         * lib/getopt.c (_getopt_internal): Update from glibc.
22516
22517 2000-09-09  Jim Meyering  <meyering@lucent.com>
22518
22519         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
22520         think it should be used as a general replacement for isascii.
22521         * lib/fnmatch.c: Likewise.
22522         * lib/mbswidth.c: Likewise
22523         * lib/regex.c: Likewise.
22524
22525         Don't use atoi.
22526         * lib/userspec.c: Include sys/param.h and limits.h.
22527         Include xstrtol.h.
22528         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
22529         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
22530         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
22531         UID, GID.  Check range.
22532
22533 2000-09-06  Jim Meyering  <meyering@lucent.com>
22534
22535         * lib/getopt.c (_getopt_internal): Update from glibc.
22536
22537 2000-08-30  Jim Meyering  <meyering@lucent.com>
22538
22539         * lib/strftime.c: Merge in changes from GNU libc.
22540
22541 2000-08-26  Jim Meyering  <meyering@lucent.com>
22542
22543         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
22544         * m4/fpending.m4: New file.
22545
22546 2000-08-26  Jim Meyering  <meyering@lucent.com>
22547
22548         * lib/closeout.c: Include "__fpending.h".
22549         (close_stdout_status): Return right away if there's nothing to flush.
22550
22551         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
22552         * lib/__fpending.c: New file.
22553         * lib/__fpending.h: New file.
22554
22555 2000-08-20  Jim Meyering  <meyering@lucent.com>
22556
22557         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
22558         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
22559         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
22560
22561 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
22562
22563         Improve fileutils installation on systems where running
22564         programs (like install) can't be unlinked.
22565         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
22566         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
22567
22568 2000-08-07  Paul Eggert  <eggert@twinsun.com>
22569
22570         Standardize on "memory exhausted" instead of "Memory exhausted"
22571         or "virtual memory exhausted".
22572         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
22573         "virtual memory exhausted".
22574         * lib/same.c (same_name): Invoke xalloc_die instead of printing
22575         our own message.
22576         * lib/userspec.c (parse_user_spec): Likewise.
22577         * lib/bumpalloc.h: comment fix
22578         * lib/same.c, userspec.c: Include xalloc.h.
22579
22580         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
22581         not char *const and pointing to a constant array.
22582         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
22583         (xrealloc): Comment fix.
22584
22585         * lib/userspec.c (parse_user_spec):
22586         Don't translate a message until just before returning,
22587         to avoid unnecessary translation.
22588
22589 2000-08-07  Jim Meyering  <meyering@lucent.com>
22590
22591         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
22592         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
22593         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
22594         getgroups.c, gethostname.c, getopt.h, group-member.c,
22595         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
22596         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
22597         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
22598         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
22599         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
22600         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
22601         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
22602         yesno.c: Back out Copyright date changes for each file with no change
22603         this year.  This eases coordination with other programs using the same
22604         source code modules.  From Paul Eggert.
22605
22606 2000-08-06  Paul Eggert  <eggert@twinsun.com>
22607
22608         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
22609         not char, for compatibility with glibc 2.1.3 strftime.c.
22610
22611 2000-08-03  Greg McGary  <greg@mcgary.org>
22612
22613         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
22614         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
22615         (EXTEND_BUFFER): Use them.
22616
22617 2000-08-01  Jim Meyering  <meyering@lucent.com>
22618
22619         * lib/dirname.c (ISSLASH): Define.
22620         (BACKSLASH_IS_PATH_SEPARATOR): Define.
22621         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
22622         both `\' and `/' may be use as path separators.
22623         Based on a patch from Prashant TR.
22624
22625 2000-07-31  Paul Eggert  <eggert@twinsun.com>
22626
22627         * lib/quotearg.c (quotearg_n_options): Don't make the initial
22628         slot vector a constant, since it might get modified.
22629
22630 2000-07-31  Jim Meyering  <meyering@lucent.com>
22631
22632         * lib/xmalloc.c: Use `virtual memory exhausted', not
22633         `Memory exhausted'.
22634         * lib/obstack.c (print_and_abort): Likewise.
22635
22636 2000-07-30  Paul Eggert  <eggert@twinsun.com>
22637
22638         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
22639         buffer, so that the caller can always quote one small
22640         component of a "memory exhausted" message in slot 0.
22641         From a suggestion by Jim Meyering.
22642
22643 2000-07-30  Jim Meyering  <meyering@lucent.com>
22644
22645         * lib/makepath.c (make_path): Quote the other instance, too.
22646
22647         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
22648         (STATIC_BUF_SIZE): Define.
22649         (quotearg_n_options): Use only statically allocated storage when
22650         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
22651         than STATIC_BUF_SIZE.
22652
22653 2000-07-29  Jim Meyering  <meyering@lucent.com>
22654
22655         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
22656         * lib/dirname.c (dir_name): Likewise.
22657
22658         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
22659         `/'.
22660
22661         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
22662         (dir_name): Assert that there are no trailing slashes.
22663
22664 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
22665
22666         * lib/mbswidth.h (mbswidth): Add a flags argument.
22667         (mbswidth): New declaration.
22668         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
22669         * lib/mbswidth.c (mbswidth): Add a flags argument.
22670         (mbsnwidth): New function.
22671
22672 2000-07-24  Jim Meyering  <meyering@lucent.com>
22673
22674         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
22675
22676 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22677
22678         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
22679
22680 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22681
22682         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
22683         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
22684         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
22685         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
22686         invoke multibyte primitives.
22687
22688 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22689
22690         * lib/quotearg.c:
22691         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
22692         so that mbstate_t is always defined.
22693
22694         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
22695         be 1 in at least one GCC installation, and this configuration
22696         error is likely to be common.  Ignoring MB_LEN_MAX hurts
22697         performance on hosts that have mbrtowc but have only unibyte
22698         locales, but I assume these hosts are rare.
22699
22700 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22701
22702         * lib/mbswidth.c (_XOPEN_SOURCE):
22703         Don't define; this causes problems on Solaris 7.
22704         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
22705
22706 2000-07-23  Jim Meyering  <meyering@lucent.com>
22707
22708         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
22709         too: getgrgid, getpwuid, getuid.
22710
22711 2000-07-23  Jim Meyering  <meyering@lucent.com>
22712
22713         * lib/basename.c (base_name): Add an assertion.
22714
22715 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
22716
22717         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
22718         shadow its mbsinit function.
22719
22720 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
22721
22722         * lib/mbswidth.h: New file.
22723         * lib/mbswidth.c: New file.
22724         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
22725         (noinst_HEADERS): Add mbswidth.h.
22726
22727 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
22728
22729         * lib/config.charset: Add support for FreeBSD. Improve support for
22730         HP-UX and IRIX 6.
22731
22732 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
22733
22734         * m4/mbswidth.m4: New file.
22735         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
22736
22737 2000-07-15  Jim Meyering  <meyering@lucent.com>
22738
22739         * lib/makepath.c: Include quote.h.
22740         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
22741         corresponding argument in a `quote (...)' call.
22742         Give better diagnostics.
22743
22744         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
22745         (noinst_HEADERS): Add quote.h.
22746
22747         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
22748         from tar's src/misc.c.
22749         * lib/quote.h: New file.  Prototypes for same.
22750
22751 2000-07-14  Paul Eggert  <eggert@twinsun.com>
22752
22753         From a suggestion by Bruno Haible.
22754         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
22755         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
22756         to decide whether to define the BeOS workaround macro;
22757         this adjusts to the change to AC_MBSTATE_T.
22758
22759 2000-07-14  Jim Meyering  <meyering@lucent.com>
22760
22761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
22762         jm_AC_TYPE_UINTMAX_T.
22763
22764 2000-07-13  Paul Eggert  <eggert@twinsun.com>
22765
22766         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
22767
22768         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
22769         quotearg_buffer_restyled): Add support for
22770         clocale_quoting_style.  Undo previous change to
22771         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
22772         and "{RIGHT QUOTATION MARK}" msgids.
22773
22774 2000-07-10  Paul Eggert  <eggert@twinsun.com>
22775
22776         From a suggestion by Bruno Haible.
22777         * m4/mbstate_t.m4 (AC_MBSTATE_T):
22778         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
22779         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
22780         and mbstate_t, to a single-part test that simply defines mbstate_t.
22781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
22782         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
22783
22784 2000-07-10  Jim Meyering  <meyering@lucent.com>
22785
22786         * m4/strerror_r.m4: Mirror the correction made in autoconf.
22787
22788         * m4/gnu-source.m4: Output to confdefs.h directly.
22789         Suggestion from Akim Demaille.
22790
22791 2000-07-09  Paul Eggert  <eggert@twinsun.com>
22792
22793         The old behavior of quoting `like this' doesn't look good with
22794         newer, ISO-style fonts.  See:
22795         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
22796
22797         Instead, quote "like this" by default.  Let the translator
22798         tailor the locale-specific quoting behavior by providing
22799         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
22800
22801         * lib/quotearg.c (N_): New macro.
22802         (gettext_default): New function.
22803         (quotearg_buffer_restyled): Use
22804         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
22805         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
22806
22807 2000-07-09  Jim Meyering  <meyering@lucent.com>
22808
22809         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
22810         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
22811
22812         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
22813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
22814
22815 2000-07-09  Jim Meyering  <meyering@lucent.com>
22816
22817         * lib/Most files: Update copyright dates to include 2000.
22818
22819 2000-07-08  Jim Meyering  <meyering@lucent.com>
22820
22821         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
22822         if not defined.
22823         (xgethostname): Remove now-unnecessary #ifdef.
22824         Move declaration of `err' into loop where it's used.
22825
22826 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22827         and Bruno Haible  <haible@clisp.cons.org>
22828
22829         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
22830         only if the test for an object-type mbstate_t fails.  This
22831         prevents us from mistakenly reporting that mbstate_t is a
22832         system object type after we "#define mbstate_t int" to work
22833         around its lack.
22834
22835 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22836         and Bruno Haible  <haible@clisp.cons.org>
22837
22838         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
22839
22840 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22841
22842         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
22843         to strerror_r.
22844         Include <ctype.h> for use of isalpha.
22845
22846 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22847
22848         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
22849         by allocating a larger buffer. Test the gethostname return value for
22850         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
22851         returns an error and ENAMETOOLONG isn't defined.
22852
22853 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22854
22855         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
22856         dimension.
22857
22858 2000-07-04  Jim Meyering  <meyering@lucent.com>
22859
22860         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
22861         of the deprecated AC_CHECKING.
22862
22863 2000-07-04  Jim Meyering  <meyering@lucent.com>
22864
22865         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
22866         Reported by Bruno Haible.
22867
22868 2000-07-04  Jim Meyering  <meyering@lucent.com>
22869
22870         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
22871         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
22872         lacks mbrtowc.
22873
22874 2000-07-03  Paul Eggert  <eggert@twinsun.com>
22875
22876         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
22877         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
22878
22879 2000-07-03  Paul Eggert  <eggert@twinsun.com>
22880         and Bruno Haible  <haible@clisp.cons.org>
22881
22882         * lib/quotearg.c (mbrtowc):
22883         Assign to *pwc, and return 1 only if result is nonzero.
22884         (iswprint): Use ISPRINT when substituting our own mbrtowc.
22885
22886 2000-07-03  Jim Meyering  <meyering@lucent.com>
22887
22888         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
22889
22890 2000-07-03  Jim Meyering  <meyering@lucent.com>
22891
22892         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
22893         This is necessary to get a definition of e.g., UTMP_FILE on
22894         HP-UX 10.20.
22895         From Bob Proulx.
22896
22897 2000-07-02  Jim Meyering  <meyering@lucent.com>
22898
22899         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
22900
22901         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
22902         AC_LIBOBJ(function_name).
22903         * m4/chown.m4: Likewise.
22904         * m4/fnmatch.m4: Likewise.
22905         * m4/ftruncate.m4: Likewise.
22906         * m4/getgroups.m4: Likewise.
22907         * m4/getline.m4: Likewise.
22908         * m4/group-member.m4: Likewise.
22909         * m4/jm-macros.m4: Likewise.
22910         * m4/lstat.m4: Likewise.
22911         * m4/malloc.m4: Likewise.
22912         * m4/memcmp.m4: Likewise.
22913         * m4/nanosleep.m4: Likewise.
22914         * m4/putenv.m4: Likewise.
22915         * m4/realloc.m4: Likewise.
22916         * m4/regex.m4: Likewise.
22917         * m4/stat.m4: Likewise.
22918         * m4/strftime.m4: Likewise.
22919
22920 2000-07-02  Jim Meyering  <meyering@lucent.com>
22921
22922         * lib/quotearg.c (mbstate_t): Don't define here.
22923
22924 2000-07-02  Jim Meyering  <meyering@lucent.com>
22925
22926         * lib/nanosleep.c (SIGCONT): Define if not already defined.
22927
22928 2000-07-01  Jim Meyering  <meyering@lucent.com>
22929
22930         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
22931
22932 2000-07-01  Jim Meyering  <meyering@lucent.com>
22933
22934         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
22935         problem.
22936
22937 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
22938
22939         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
22940         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
22941
22942 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
22943
22944         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
22945         per change in ../m4/ls-mntd-fs.m4.
22946         (read_filesystem_list): Ignore symbolic links.
22947
22948 2000-06-29  Jim Meyering  <meyering@lucent.com>
22949
22950         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
22951         for declaration of strcmp.
22952
22953         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
22954
22955         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
22956         Avoid warning by casting result to `char *' to remove `const'.
22957
22958 2000-06-28  Jim Meyering  <meyering@lucent.com>
22959
22960         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
22961         included by quotearg.c, for which we perform this test.  From
22962         Bruno Haible.
22963
22964 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
22965
22966         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
22967         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
22968         <utmpx.h> exists, put readutmp.o into LIBOBJS.
22969
22970 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
22971
22972         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
22973
22974 2000-06-26  Paul Eggert  <eggert@twinsun.com>
22975
22976         savedir now sets errno on failure and invokes xmalloc to get memory.
22977         Fix a couple of other minor bugs while we're at it.
22978
22979         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
22980         (NAMLEN): Remove macro.
22981         (malloc, realloc): Remove decls.
22982         (stpcpy): Likewise.
22983         ("xalloc.h"): Include.
22984         (NAME_SIZE_DEFAULT): New macro.
22985         (savedir): Use xmalloc / xrealloc to allocate memory.
22986         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
22987         Skip "" directory entries.
22988         Use strlen to calculate directory entry length, since the old method
22989         is rarely used these days and isn't worth supporting.
22990         Don't use a pointer after freeing it.
22991         Check for integer overflow when calculating allocation size.
22992         Use memcpy to copy entries, instead of stpcpy.
22993         Set errno properly when returning NULL.
22994         Check for readdir error.
22995
22996 2000-06-26  Jim Meyering  <meyering@lucent.com>
22997
22998         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
22999
23000 2000-06-25  Jim Meyering  <meyering@lucent.com>
23001
23002         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
23003         Linux header bug when _XOPEN_SOURCE is defined to 500.
23004
23005 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23006
23007         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
23008         deficiency.
23009
23010 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23011
23012         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
23013         Include xalloc.h.
23014         Don't include <stdlib.h>.  Don't declare malloc, realloc.
23015
23016 2000-06-24  Jim Meyering  <meyering@lucent.com>
23017
23018         * m4/strerror_r.m4: Revive this file -- to try out an experimental
23019         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
23020         for which strerror does return char*, but which lacks a conveniently
23021         accessible declaration of the function.  If the compile-test says
23022         strerror_r doesn't work, then resort to a `run'-test that works on
23023         BeOS and segfaults on DEC Unix.
23024
23025 2000-06-24  Jim Meyering  <meyering@lucent.com>
23026
23027         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
23028
23029 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23030
23031         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
23032         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
23033
23034 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23035
23036         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
23037         (mbrtowc, mbstate_t): Define substitutes if
23038         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
23039         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
23040         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
23041
23042 2000-06-23  Jim Meyering  <meyering@lucent.com>
23043
23044         * m4/afs.m4: Add missing AC_MSG_RESULT.
23045         Reported by Bruno Haible.
23046
23047         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
23048         Suggestion from Bruno Haible.
23049
23050 2000-06-23  Jim Meyering  <meyering@lucent.com>
23051
23052         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
23053
23054 2000-06-21  Jim Meyering  <meyering@lucent.com>
23055
23056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
23057
23058 2000-06-21  Jim Meyering  <meyering@lucent.com>
23059
23060         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
23061         (noinst_HEADERS): Add getstr.h.
23062
23063         * lib/getline.c (getstr): Move into a separate file.
23064         * lib/getstr.c (getstr): New file, extracted from getline.c, with
23065         the following changes: new parameter, delim2; both delim[12]
23066         parameters have type `int', not `char'.  The latter would lose
23067         with 8-bit delimiters.
23068         * lib/getstr.h: New file.
23069
23070 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23071
23072         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
23073         than 1024, return a memory chunk of least possible size, instead
23074         of size PATH_MAX + 2. In the loop, increment the size proportionally.
23075         Use free/xmalloc instead of xrealloc to avoid copying for very long
23076         paths.
23077
23078 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23079
23080         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
23081         the empty string.
23082
23083 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23084
23085         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
23086         address, not strdup.  Include <stdlib.h> and don't declare free().
23087
23088 2000-06-19  Jim Meyering  <meyering@lucent.com>
23089
23090         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
23091
23092 2000-06-18  Jim Meyering  <meyering@lucent.com>
23093
23094         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
23095
23096         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
23097         `checking whether...' message to be consistent with that of the
23098         lstat test.
23099
23100 2000-06-18  Jim Meyering  <meyering@lucent.com>
23101
23102         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
23103         Besides, these days every porting target provides a mkdir function.
23104
23105         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
23106         needed. (this snippet comes from src/system.h).
23107
23108 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
23109
23110         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
23111
23112 2000-06-15  Paul Eggert  <eggert@twinsun.com>
23113
23114         * lib/human.c (adjust_value): New function.
23115         (human_readable_inexact): Apply rounding style even when
23116         printing approximate values.
23117
23118 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23119
23120         * lib/human.c (human_readable_inexact): Allow an input block
23121         size that is not a multiple of the output block size, and vice versa.
23122         Reported by Piergiorgio Sartor.
23123
23124 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23125
23126         * lib/getdate.y (get_date): Apply relative times after time
23127         zone indicator, not before.  Reported by Todd A. Jacobs.
23128
23129 2000-06-13  Jim Meyering  <meyering@lucent.com>
23130
23131         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
23132
23133         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
23134
23135 2000-06-12  Paul Eggert  <eggert@twinsun.com>
23136
23137         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
23138
23139 2000-06-12  Jim Meyering  <meyering@lucent.com>
23140
23141         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
23142         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
23143         optional argument.
23144         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
23145         the optional argument, `lib'.
23146
23147 2000-06-08  Jim Meyering  <meyering@lucent.com>
23148
23149         * m4/largefile.m4: Remove file (now that it's part of autoconf).
23150
23151 2000-06-04  Paul Eggert  <eggert@twinsun.com>
23152
23153         Rewrite largefile configuration so that we don't need to run
23154         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
23155         AC_CANONICAL_HOST in configure.in -- jmm]
23156
23157         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
23158         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
23159         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
23160         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
23161         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
23162         All uses changed.
23163         Instead of inspecting the output of getconf, try to compile the
23164         test program without and with the macro definition.
23165         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
23166         for getconf.  Instead, check for the needed flags by compiling
23167         test programs.
23168
23169 2000-06-04  Paul Eggert  <eggert@twinsun.com>
23170
23171         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
23172
23173 2000-06-04  Jim Meyering  <meyering@lucent.com>
23174
23175         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
23176         SunOS 4.1.4 for which gid_t is an unsigned type.
23177
23178 2000-06-03  Jim Meyering  <meyering@lucent.com>
23179
23180         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
23181         now that autoconf requires that.
23182
23183         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
23184         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
23185         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
23186
23187 2000-06-03  Jim Meyering  <meyering@lucent.com>
23188
23189         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
23190
23191 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
23192
23193         * m4/glibc21.m4: New file.
23194         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
23195
23196 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
23197
23198         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
23199         newer, don't install charset.alias.
23200         * lib/config.charset: Change the Linux/glibc rules so they become empty
23201         on glibc-2.1 or newer.
23202
23203 2000-06-02  Jim Meyering  <meyering@lucent.com>
23204
23205         * lib/mountlist.c: Back out last change.  Instead, do this...
23206         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
23207         me_dummy member using the same `ignore'-testing code.
23208         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
23209         fs_type strings.
23210         From Mark D. Roth.
23211
23212 2000-05-29  Jim Meyering  <meyering@lucent.com>
23213
23214         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
23215         mounts with the `ignore' attribute.  Based on a patch from
23216         Mark D. Roth.
23217
23218 2000-05-28  Jim Meyering  <meyering@lucent.com>
23219
23220         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
23221         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23222         * m4/stat.m4: Likewise.
23223         * m4/lstat.m4: Likewise.
23224         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
23225
23226         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
23227         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
23228
23229 2000-05-26  Jim Meyering  <meyering@lucent.com>
23230
23231         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
23232
23233 2000-05-24  Jim Meyering  <meyering@lucent.com>
23234
23235         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
23236         autoconf requires that.
23237         * m4/lib-check.m4: Likewise.
23238         * m4/jm-macros.m4: Likewise.
23239         * m4/strftime.m4: Likewise.
23240
23241         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
23242         AC_CHECK_DECLS, now that autoconf requires that.
23243
23244 2000-05-22  Jim Meyering  <meyering@lucent.com>
23245
23246         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23247         * m4/lstat.m4: Likewise.
23248
23249 2000-05-22  Jim Meyering  <meyering@lucent.com>
23250
23251         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
23252
23253 2000-05-20  Jim Meyering  <meyering@lucent.com>
23254
23255         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
23256         (jm_PREREQ): Use it.
23257
23258 2000-05-18  Jim Meyering  <meyering@lucent.com>
23259
23260         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
23261         back, too, since it may have been modified by allocate_entry.
23262         (hash_delete): Rewrite to use neither the assignment operator
23263         nor the comma operator in an if-expression.
23264
23265 2000-05-15  Paul Eggert  <eggert@twinsun.com>
23266
23267         * lib/closeout.c:
23268         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
23269         Remove; no longer needed.
23270         "quotearg.h": Add include.
23271         (file_name): Do not bother to explicitly initialize to NULL; it's less
23272         efficient on some hosts.
23273         (close_stdout_status): Remove test as to whether stdout was already
23274         closed; it breaks for the case "echo x | sort >&-".
23275         Quote file name colons.
23276         Do not assume that _("write error") lacks format strings.
23277
23278 2000-05-15  Jim Meyering  <meyering@lucent.com>
23279
23280         * lib/version-etc.c (version_etc_copyright): Update the copyright
23281         string used in all --version output.
23282
23283 2000-05-14  Jim Meyering  <meyering@lucent.com>
23284
23285         * lib/closeout.c (close_stdout_set_file_name): New function.
23286         (close_stdout_status): Use new file-scoped global.
23287         Return right away if fstat says the stdout file descriptor is invalid.
23288         * lib/closeout.h (close_stdout_set_file_name): Declare.
23289
23290 2000-05-10  Jim Meyering  <meyering@lucent.com>
23291
23292         * lib/closeout.c [default_exit_status]: New file-scoped variable.
23293         (close_stdout_set_status): New function.
23294         * lib/closeout.h (close_stdout_set_status): Declare.
23295
23296 2000-05-09  Jim Meyering  <meyering@lucent.com>
23297
23298         * m4/gettext.m4: Rename this...
23299         * m4/libintl.m4: ...to this.
23300
23301 2000-05-08  Jim Meyering  <meyering@lucent.com>
23302
23303         * lib/long-options.c: Don't include closeout.h.
23304         (parse_long_options): Don't call close_stdout for --version.
23305
23306 2000-05-06  Paul Eggert  <eggert@twinsun.com>
23307
23308         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
23309         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
23310         2.1.3 bug.  This avoids a clash when files like regex.c define
23311         _GNU_SOURCE.
23312
23313 2000-05-06  Jim Meyering  <meyering@lucent.com>
23314
23315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
23316         (AC_REPLACE_FUNCS): Add strnlen.
23317
23318         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
23319         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
23320
23321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
23322         AC_SEARCH_LIBS call for nanosleep.
23323         (LIB_NANOSLEEP): Set and AC_SUBST.
23324
23325 2000-05-06  Jim Meyering  <meyering@lucent.com>
23326
23327         * lib/strnlen.c: Undefine __strnlen and strnlen.
23328         [!weak_alias]: Define __strnlen to strnlen.
23329
23330         * lib/atexit.c: New file, from libiberty.
23331
23332 2000-05-06  Jim Meyering  <meyering@lucent.com>
23333
23334         * lib/closeout.c (close_stdout_status): Also check for errors on the
23335         stderr stream.
23336
23337 2000-05-05  Jim Meyering  <meyering@lucent.com>
23338
23339         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
23340         AC_SEARCH_LIBS call for clock_gettime.
23341         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
23342
23343         * m4/search-libs.m4: Update from autoconf.
23344
23345         su doesn't work on Solaris 2.6.
23346         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
23347         <shadow.h>.  Reported by Dragos Harabor.
23348
23349 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
23350
23351         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
23352         memcpy instead of xmalloc, xrealloc, path_concat.
23353         (locale_charset): Treat empty environment variables as absent.
23354         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
23355
23356 2000-05-04  Jim Meyering  <meyering@lucent.com>
23357
23358         * lib/getopt.c: Update from glibc.
23359         * lib/obstack.c: Likewise.
23360         * lib/obstack.h: Likewise.
23361         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
23362         file
23363
23364         * lib/regex.h: Likewise.
23365         * lib/strndup.c: Likewise.
23366         * lib/strnlen.c: New file, from glibc.
23367
23368 2000-05-03  Jim Meyering  <meyering@lucent.com>
23369
23370         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
23371
23372 2000-05-02  Paul Eggert  <eggert@twinsun.com>
23373
23374         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
23375         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
23376         compile-time test, rather than inspecting host and OS, to
23377         decide whether to define _LARGEFILE_SOURCE.
23378
23379 2000-05-01  Jim Meyering  <meyering@lucent.com>
23380
23381         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
23382
23383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
23384         Based on a patch from Bruno Haible.
23385
23386 2000-05-01  Jim Meyering  <meyering@lucent.com>
23387
23388         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
23389
23390 2000-04-29  Jim Meyering  <meyering@lucent.com>
23391
23392         * lib/path-concat.c: Declare strdup only if it's not defined.
23393         * lib/canon-host.c: Likewise.
23394
23395 2000-04-28  Jim Meyering  <meyering@lucent.com>
23396
23397         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
23398         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
23399         is included first, then limits.h is included by locale.h by libintl.h.
23400         From John David Anglin.
23401
23402 2000-04-25  Jim Meyering  <meyering@lucent.com>
23403
23404         * lib/makepath.c (S_IRWXUGO): Define.
23405         (make_path): Always perform explicit chmod if MODE specifies any
23406         of the `special' permission bits.  Prompted by a bug report against
23407         install from Mate Wierdl and Joost van Baal.
23408
23409 2000-04-18  Jim Meyering  <meyering@lucent.com>
23410
23411         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
23412         (jm_PREREQ): Use it.
23413
23414 2000-04-18  Jim Meyering  <meyering@lucent.com>
23415
23416         * lib/README: New file.
23417
23418         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
23419         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
23420
23421 2000-04-17  Jim Meyering  <meyering@lucent.com>
23422
23423         Get it right :-)
23424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
23425         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
23426         Suggestion from Akim Demaille.
23427
23428 2000-04-17  Jim Meyering  <meyering@lucent.com>
23429
23430         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
23431         the definition of it to rpl_strftime also defined-away the system's
23432         declaration.
23433
23434 2000-04-15  Jim Meyering  <meyering@lucent.com>
23435
23436         Use `C' to denote so-called `contiguous' files, the same way
23437         that tar does.
23438         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
23439         (ftypelet): Use S_ISCTG.
23440         From Michael Deutschmann.
23441
23442 2000-04-14  Jim Meyering  <meyering@lucent.com>
23443
23444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
23445         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
23446         clobbered.
23447
23448 2000-04-14  Jim Meyering  <meyering@lucent.com>
23449
23450         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
23451
23452 2000-04-13  Jim Meyering  <meyering@lucent.com>
23453
23454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
23455         AH_VERBATIM to insert required #ifndef into config.h.in.
23456         Suggestion from Akim Demaille.
23457
23458 2000-04-12  Jim Meyering  <meyering@lucent.com>
23459
23460         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
23461         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
23462         Christian Krackowizer.
23463
23464         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
23465         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
23466         (AC_SYS_LARGEFILE): Require.
23467         (AM_C_PROTOTYPES): Require.
23468
23469 2000-04-08  Jim Meyering  <meyering@lucent.com>
23470
23471         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
23472         names don't conflict.  Reported by Eli Zaretskii.
23473
23474 2000-04-07  Jim Meyering  <meyering@lucent.com>
23475
23476         * lib/putenv.c: Move inclusion of errno.h so it follows that of
23477         sys/types.h, to work around system header problems on AIX 3.2.5.
23478         From Bruno Haible.
23479
23480 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
23481
23482         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
23483         bug.  Deal with the different error behavior of Irix iconv.
23484
23485 2000-04-05  Paul Eggert  <eggert@twinsun.com>
23486
23487         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
23488         IRIX if the installer said otherwise.
23489
23490 2000-04-05  Jim Meyering  <meyering@lucent.com>
23491
23492         Portability tweaks required for ultrix4.3.
23493         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
23494         (jm_CHECK_DECLS): Add getutent to the list of functions.
23495         (_jm_DECL_HEADERS): Add utmpx.h.
23496         From John David Anglin.
23497
23498         * m4/strftime.m4: Back out the 2000-04-02 change.
23499         Instead of that change, simply undefine putenv in the test program.
23500
23501 2000-04-05  Jim Meyering  <meyering@lucent.com>
23502
23503         Portability tweaks required for ultrix4.3.
23504         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
23505         getutent.
23506         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
23507         * lib/canon-host.c: Declare strdup.
23508         * lib/path-concat.c: Likewise.
23509         From John David Anglin.
23510
23511 2000-04-04  Jim Meyering  <meyering@lucent.com>
23512
23513         Be more DOS 8.3-friendly.
23514         * lib/ref-add.sin: Renamed from ref-add.sed.in.
23515         * lib/ref-del.sin: Renamed from ref-del.sed.in.
23516         * lib/Makefile.am: Reflect renaming.
23517         Reported by Eli Zaretskii.
23518
23519         Use a temporary file name that won't clash with `charset.alias'
23520         in the DOS 8.3 name space.
23521         * lib/Makefile.am (charset_tmp): Define.
23522         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
23523         (uninstall-local): Likewise.
23524         Reported by Eli Zaretskii.
23525
23526 2000-04-03  Jim Meyering  <meyering@lucent.com>
23527
23528         * m4/gettext.m4: Fix typo in comment.
23529
23530         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
23531         textutils/configure.in).  Suggestion from Paul Eggert.
23532         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
23533
23534 2000-04-02  Paul Eggert  <eggert@twinsun.com>
23535
23536         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
23537         variable in the shell rather than using putenv, which isn't
23538         portable.  This avoids the configure-time inter-test dependency
23539         on the potentially-renamed putenv function.
23540
23541 2000-03-30  Paul Eggert  <eggert@twinsun.com>
23542
23543         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
23544         before checking struct stat.st_blksize, so that
23545         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
23546
23547 2000-03-29  Paul Eggert  <eggert@twinsun.com>
23548
23549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
23550         since strftime.c uses HAVE_STRFTIME to decide whether to use
23551         the underlying strftime.
23552
23553 2000-03-29  Paul Eggert  <eggert@twinsun.com>
23554
23555         * lib/time/strftime.c (my_strftime): Make sure we call the system
23556         strftime, not ourselves, when invoking the underlying strftime.
23557
23558 2000-03-24  Jim Meyering  <meyering@lucent.com>
23559
23560         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
23561         (charset_alias): Define.
23562         (install-exec-local): Factor out common code.
23563         (uninstall-local): Split lines longer than 80.
23564         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
23565         (SUFFIXES): Define.
23566         (.sed.in.sed): New rule.  Don't redirect directly to $@.
23567         (CLEANFILES): Add ref-add.sed and ref-del.sed.
23568
23569 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
23570
23571         * lib/config.charset: Output a line containing "Packages using this
23572         file".
23573         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
23574         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
23575         ref-del.sed): New rules.
23576
23577 2000-03-17  Jim Meyering  <meyering@lucent.com>
23578
23579         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
23580         Otherwise, include <strings.h>
23581
23582 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
23583
23584         * lib/unicodeio.c (utf8_wctomb): New function.
23585         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
23586         format instead of in UCS-4 with platform dependent endianness.
23587
23588 2000-03-10  Jim Meyering  <meyering@lucent.com>
23589
23590         * m4/lib-check.m4: Look for getspnam in -lgen, too.
23591         From Marco Franzen.
23592
23593 2000-03-07  Paul Eggert  <eggert@twinsun.com>
23594
23595         * lib/savedir.c (savedir): Work even if directory size is
23596         negative; this can happen with some screwy NFS configurations.
23597
23598 2000-03-06  Jim Meyering  <meyering@lucent.com>
23599
23600         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
23601         if it's NULL (because we ran out of memory).  From Bruno Haible.
23602
23603 2000-03-05  Jim Meyering  <meyering@lucent.com>
23604
23605         * lib/localcharset.c ("path-concat.h"): Include.
23606         (get_charset_aliases): Use path_concat instead of ANSI string
23607         concatenation.
23608
23609         * lib/unicodeio.h (PARAMS): Define.
23610         Use it to guard prototype.
23611
23612 2000-03-04  Jim Meyering  <meyering@lucent.com>
23613
23614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
23615         for lib/localcharset.c.
23616
23617 2000-03-04  Jim Meyering  <meyering@lucent.com>
23618
23619         * lib/Makefile.am (install-exec-local): Create $(libdir) before
23620         installing into it.
23621         (uninstall-local): Uncomment this rule so `make distcheck' works
23622         once again.
23623
23624         * lib/unicodeio.c (<errno.h>): Include it.
23625         (errno): Declare if not defined.
23626
23627         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
23628
23629         * lib/config.charset: New version, incorporating remarks from a linux
23630         i18n mailing list.  From Bruno Haible.
23631
23632 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
23633
23634         * m4/codeset.m4: New file.
23635         * m4/iconv.m4: New file.
23636         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
23637
23638 2000-03-03  Jim Meyering  <meyering@lucent.com>
23639
23640         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
23641
23642 2000-03-02  Jim Meyering  <meyering@lucent.com>
23643
23644         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
23645         the messages come out on separate lines.
23646
23647         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
23648         rather than jm_CHECK_DECLARATIONS.
23649         * m4/decl.m4: Remove now-unused file.
23650
23651         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
23652         geteuid.
23653
23654 2000-03-02  Jim Meyering  <meyering@lucent.com>
23655
23656         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
23657
23658 2000-03-01  Jim Meyering  <meyering@lucent.com>
23659
23660         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
23661         * lib/unicodeio.c: Likewise.
23662
23663 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
23664
23665         * lib/config.charset: New file.
23666         * lib/localcharset.c: New file.
23667         * lib/unicodeio.h, lib/unicodeio.c: New files.
23668         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
23669         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
23670         (noinst_HEADERS): Add unicodeio.h.
23671         (all-local, install-exec-local, charset.alias): New targets.
23672
23673 2000-02-28  Paul Eggert  <eggert@twinsun.com>
23674
23675         * lib/quotearg.c (ALERT_CHAR): New macro.
23676         (quotearg_buffer_restyled): Use it.
23677
23678 2000-02-27  Jim Meyering  <meyering@lucent.com>
23679
23680         * m4/check-decl.m4: Add getenv to the list.
23681
23682 2000-02-27  Jim Meyering  <meyering@lucent.com>
23683
23684         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
23685         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
23686
23687         * lib/backupfile.c: Guard inclusion of stdlib.h with
23688         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
23689         Declare malloc if needed.
23690
23691         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
23692         `#ifndef HAVE_DECL..'
23693         now that autoconf always defines the HAVE_DECL_ symbols.
23694         * lib/human.c: Likewise.
23695         * lib/same.c: Likewise.
23696         * lib/strtoumax.c: Likewise.
23697
23698         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
23699         declaration check was not run.
23700         * lib/hash.c: Likewise.
23701         * lib/human.c: Likewise.
23702         * lib/same.c: Likewise.
23703         * lib/strtoumax.c: Likewise.
23704
23705         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
23706         `.', then first look up the entire `.'-containing string as a login
23707         name.
23708
23709 2000-02-23  Jim Meyering  <meyering@lucent.com>
23710
23711         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
23712         in place of my hack.
23713
23714 2000-02-18  Paul Eggert  <eggert@twinsun.com>
23715
23716         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
23717         (textint): New typedef.
23718         (parser_control): Member year changed from int to textint.
23719         All uses changed.
23720         (YYSTYPE): Removed; replaced by %union with int and textint members.
23721         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
23722         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
23723         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
23724         (tSNUMBER, tUNUMBER): Now of type <textintval>.
23725         (date, number, to_year): Use width of number in digits, not its value,
23726         to determine whether it's a 2-digit year, or a 2-digit time.
23727         (yylex): Store number of digits of numeric tokens.
23728         Reported by John Kendall.
23729
23730         (parser_control): Changed from struct parser_control to typedef (for
23731         consistency).  All uses changed.
23732
23733         (tID): Removed; not used.
23734         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
23735
23736 2000-02-14  Paul Eggert  <eggert@twinsun.com>
23737
23738         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
23739         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
23740
23741 2000-02-12  Jim Meyering  <meyering@lucent.com>
23742
23743         * lib/userspec.c (ISDIGIT): Define it.
23744         (isdigit): Remove definition.
23745         (is_number): Use ISDIGIT, not isdigit.
23746         <libintl.h>: Include.
23747         (_ and N_): Define.
23748         (parse_user_spec): Mark translatable strings.
23749
23750 2000-02-10  Jim Meyering  <meyering@lucent.com>
23751
23752         With these changes, nanosleep.[ch] are finally enough like the other
23753         lib/* replacement files to compile on a few more losing systems.
23754
23755         * lib/nanosleep.h: Don't include config.h.
23756         Remove prototype from declaration of nanosleep.
23757         (PARAMS): Remove now-unneeded definition.
23758         * lib/nanosleep.c: #undef nanosleep.
23759         (rpl_nanosleep): Rename from nanosleep.
23760
23761 2000-02-10  Jim Meyering  <meyering@lucent.com>
23762
23763         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
23764         gnu_nanosleep to rpl_nanosleep.
23765
23766 2000-02-09  Jim Meyering  <meyering@lucent.com>
23767
23768         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
23769         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
23770
23771 2000-02-08  Akim Demaille  <akim@epita.fr>
23772
23773         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
23774         `[' and `]' and remove uses of `changequote'.
23775         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
23776         (AC_SYS_LARGEFILE): Likewise.
23777         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23778         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
23779         of changequote.
23780         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
23781         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
23782         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
23783         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
23784
23785 2000-02-05  Jim Meyering  <meyering@lucent.com>
23786
23787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
23788         Remove explicit use of AC_HEADER_TIME.  It is required by
23789         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
23790         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
23791         in autoconf whereby the expansion of the latter ended up preceding
23792         the expansion of its prerequisite, AC_HEADER_TIME.
23793         Reported by Volker Borchert.
23794
23795 2000-02-03  Jim Meyering  <meyering@lucent.com>
23796
23797         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
23798
23799 2000-02-03  Jim Meyering  <meyering@lucent.com>
23800
23801         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
23802         rather than with `#if HAVE_UTMPNAME'.
23803
23804 2000-02-02  Jim Meyering  <meyering@lucent.com>
23805
23806         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
23807         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
23808         Reported by Eli Zaretskii.
23809
23810 2000-02-01  Jim Meyering  <meyering@lucent.com>
23811
23812         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
23813
23814 2000-01-31  Jim Meyering  <meyering@lucent.com>
23815
23816         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
23817         functions.  Add the time.h and sys/time.h headers along with the
23818         AC_REQUIRE'ment of AC_HEADER_TIME.
23819
23820 2000-01-31  Jim Meyering  <meyering@lucent.com>
23821
23822         * lib/nanosleep.h (nanosleep): Guard declaration with
23823         `#if ! HAVE_DECL_NANOSLEEP'.
23824         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
23825         the declaration in that vendor's sys/timers.h.
23826         Reported by Christian Krackowizer.
23827
23828         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
23829         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
23830         (ISPRINT): Likewise.
23831         Reported by Tom Tromey.
23832
23833 2000-01-30  Jim Meyering  <meyering@lucent.com>
23834
23835         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
23836
23837         * m4/prereq.m4 (utmp_includes): Define.
23838         Check for ut_user and ut_name members in both struct utmpx
23839         and struct utmp.
23840
23841 2000-01-30  Jim Meyering  <meyering@lucent.com>
23842
23843         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
23844         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
23845         header files where only utmpx.ut_user is declared.
23846
23847         * lib/readutmp.h (UT_USER): Define.
23848
23849 2000-01-29  Jim Meyering  <meyering@lucent.com>
23850
23851         * m4/lib-check.m4: New file containing library-related checks from
23852         fileutils and sh-utils (textutils had none).
23853
23854 2000-01-28  Jim Meyering  <meyering@lucent.com>
23855
23856         * m4/perl.m4: Change format of warning message to look more like that
23857         from the missing script.  Suggestion from François Pinard.
23858
23859 2000-01-25  Jim Meyering  <meyering@lucent.com>
23860
23861         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
23862         well as time.h in the compile check.
23863         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
23864         Fix typo in cross-compiling case: s/yes/no/.
23865
23866 2000-01-23  Jim Meyering  <meyering@lucent.com>
23867
23868         * m4/jm-macros.m4: Move df-related tests here from
23869         fileutils/configure.in
23870
23871         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
23872         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
23873
23874         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
23875         s/space/ac_fsusage_space/.
23876         (jm_FILE_SYSTEM_USAGE): Take two parameters.
23877
23878         * m4/ftruncate.m4: New file (derived from part of
23879         fileutils/configure.in).
23880         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
23881         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
23882
23883         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
23884         AC_SUBST these here, rather than just in sh-util/configure.in, so
23885         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
23886         all the same.
23887         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
23888         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
23889         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
23890         (AC_SUBST(POW_LIBM)): Likewise.
23891         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
23892
23893 2000-01-23  Jim Meyering  <meyering@lucent.com>
23894
23895         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
23896         obstack.c.
23897
23898 2000-01-22  Jim Meyering  <meyering@lucent.com>
23899
23900         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
23901
23902         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
23903
23904         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
23905         configure.in
23906         (AC_CHECK_HEADERS): Likewise for sh-utils.
23907         (AC_CHECK_HEADERS): Likewise for textutils.
23908         Merge the three lists of headers.
23909
23910         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
23911         from fileutils' configure.in.
23912
23913         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
23914         code. Moved tests into their own function (_jm_DECL_HEADERS) in
23915         check-decl.m4.
23916
23917         * m4/check-decl.m4: Use #if rather than #ifdef.
23918         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
23919         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
23920         (_jm_DECL_HEADERS): Define new function.
23921         (jm_CHECK_DECLARATIONS): Require it.
23922
23923 2000-01-22  Jim Meyering  <meyering@lucent.com>
23924
23925         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
23926         [! HAVE_DECL_STRTOULL]: Declare strtoull.
23927         Required for some AIX systems.  Reported by Christian Krackowizer.
23928         [TESTING] (main): New function.
23929
23930         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
23931         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
23932         letters.
23933
23934         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
23935         iswprint.
23936
23937         * lib/strverscmp.c (ISDIGIT): Define.
23938         (strverscmp): Use ISDIGIT, not isdigit.
23939
23940 2000-01-19  Jim Meyering  <meyering@lucent.com>
23941
23942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
23943         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
23944         defines `struct timespec' in <sys/time.h>
23945
23946         * m4/c-bs-a.m4: Remove uses of changequote altogether.
23947         Thanks to Akim for explaining.
23948
23949 2000-01-17  Paul Eggert  <eggert@twinsun.com>
23950
23951         * lib/nanosleep.c (nanosleep):
23952         Don't use SA_INTERRUPT to decide whether to call sigaction, as
23953         POSIX.1 doesn't require SA_INTERRUPT and some systems
23954         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
23955         it's been part of POSIX.1 since day 1 (in 1988).
23956
23957 2000-01-17  Jim Meyering  <meyering@lucent.com>
23958
23959         * lib/interlock: Remove unused file.  Reported by François Pinard.
23960
23961 2000-01-16  Paul Eggert  <eggert@twinsun.com>
23962
23963         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
23964         alert, backslash, formfeed, and vertical tab unnecessarily in
23965         shell quoting style.
23966
23967 2000-01-16  Jim Meyering  <meyering@lucent.com>
23968
23969         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
23970         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
23971         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
23972         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
23973
23974 2000-01-16  Jim Meyering  <meyering@lucent.com>
23975
23976         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
23977         because the latter didn't work.
23978
23979 2000-01-15  Jim Meyering  <meyering@lucent.com>
23980
23981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
23982         (AC_REPLACE_FUNCS): Add memcpy and memset.
23983         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
23984         Add strpbrk.
23985         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
23986
23987 2000-01-12  Jim Meyering  <meyering@lucent.com>
23988
23989         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
23990         (jm_PREREQ): Use it.
23991         (jm_PREREQ_READUTMP): New macro.
23992         (jm_PREREQ): Use it.
23993
23994 2000-01-11  Paul Eggert  <eggert@twinsun.com>
23995
23996         Quote multibyte characters correctly.
23997         * m4/c-bs-a.m4: New file.
23998         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
23999         (jm_PREREQ): Use it.
24000
24001 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24002
24003         * m4/uintmax_t.m4: Port to autoconf 2.13.
24004
24005 2000-01-08  Jim Meyering  <meyering@ascend.com>
24006
24007         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
24008         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
24009
24010 2000-01-04  Jim Meyering  <meyering@ascend.com>
24011
24012         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
24013         jm_STRUCT_DIRENT_D_TYPE.
24014         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
24015         jm_STRUCT_DIRENT_D_INO.
24016         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
24017         jm_STRUCT_UTIMBUF.
24018         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
24019         renamings.
24020         * m4/utime.m4: Likewise.
24021
24022         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
24023         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
24024
24025 2000-01-03  Paul Eggert  <eggert@twinsun.com>
24026
24027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
24028         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
24029
24030 2000-01-02  Jim Meyering  <meyering@ascend.com>
24031
24032         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
24033         remember if this is necessary.
24034
24035 1999-12-26  Jim Meyering  <meyering@ascend.com>
24036
24037         * m4/jm-macros.m4: Use it here.
24038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
24039
24040 1999-12-23  Jim Meyering  <meyering@ascend.com>
24041
24042         * m4/jm-macros.m4: Check for clock_gettime (moved from
24043         fileutils/configure.in)
24044         Check for gettimeofday.
24045
24046 1999-12-20  Jim Meyering  <meyering@ascend.com>
24047
24048         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
24049         autoconf-2.14a-1999-12-20.
24050
24051 1999-12-19  Jim Meyering  <meyering@ascend.com>
24052
24053         * m4/lstat-slash.m4: New file.
24054         * m4/jm-macros.m4: Use the new macro:
24055         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24056
24057 1999-12-07  Jim Meyering  <meyering@ascend.com>
24058
24059         * m4/perl.m4: Require that File::Compare be available, too.
24060         Too many systems seem to lack it.
24061
24062         * m4/strftime.m4: Add checks for most of the cpp macros tested in
24063         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
24064
24065 1999-11-18  Paul Eggert  <eggert@twinsun.com>
24066
24067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
24068         problem with the QNX 4.25 shell, which doesn't propagate exit
24069         status of failed commands inside shell assignments.
24070
24071 1999-11-17  Jim Meyering  <meyering@ascend.com>
24072
24073         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
24074
24075 1999-11-07  Jim Meyering  <meyering@ascend.com>
24076
24077         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
24078
24079 1999-11-06  Jim Meyering  <meyering@ascend.com>
24080
24081         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
24082         * m4/jm-macros.m4 (jm_MACROS): Use it here.
24083
24084 1999-11-05  Jim Meyering  <meyering@ascend.com>
24085
24086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
24087         configure.in of textutils, fileutils, and sh-utils into this one
24088         (shared between those packages) file.
24089         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
24090         AC_STRUCT_ST_BLKSIZE.
24091
24092 1999-11-03  Jim Meyering  <meyering@ascend.com>
24093
24094         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
24095         of AC_CHECK_TYPE checks includes unistd.h.
24096         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
24097         Suggestion from Akim Demaille.
24098
24099 1999-10-30  Jim Meyering  <meyering@ascend.com>
24100
24101         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
24102         m4-quoted string.
24103         * m4/ls-mntd-fs.m4: Likewise.
24104         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
24105         * m4/jm-winsz1.m4: Likewise.
24106
24107         * m4/const.m4: Remove file, since the fix made it into the experimental
24108         version of autoconf.
24109         * m4/mktime.m4: Likewise.
24110
24111         * m4/check-type.m4: Remove file, now that the latest version of
24112         AC_CHECK_TYPE takes a third arg to specify additional #includes.
24113
24114         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
24115         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
24116         AC_CHECK_TYPE.
24117
24118 1999-10-04  Jim Meyering  <meyering@ascend.com>
24119
24120         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
24121
24122 1999-09-22  Paul Eggert  <eggert@twinsun.com>
24123
24124         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
24125         2.95.1 bug with HP-UX 10.20.
24126
24127 1999-09-17  Jim Meyering  <meyering@ascend.com>
24128
24129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
24130         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
24131         due to missing strdup (against sh-utils-2.0).
24132
24133 1999-08-29  Jim Meyering  <meyering@ascend.com>
24134
24135         * m4/jm-macros.m4: Require jm_BISON.
24136         * m4/bison.m4: New file.
24137
24138 1999-08-17  Paul Eggert  <eggert@twinsun.com>
24139
24140         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
24141         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
24142
24143 1999-08-05  Jim Meyering  <meyering@ascend.com>
24144
24145         * m4/getline.m4: Rename test file from conftestdata to conftest.data
24146         to avoid conflicts with `conftest' on 8+3 filesystems.
24147         Suggestion from Eli Zaretskii.
24148
24149 1999-08-04  Jim Meyering  <meyering@ascend.com>
24150
24151         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
24152         fileutils and sh-utils (textutils's getline test was inadequate).
24153         (AM_FUNC_GETLINE): Run this test.
24154         (AC_CHECK_FUNCS): Check for getdelim.
24155         Reported by Bob Proulx.
24156
24157 1999-08-02  Jim Meyering  <meyering@ascend.com>
24158
24159         * m4/jm-macros.m4: Add a comment.
24160
24161 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24162
24163         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
24164         <inttypes.h> defines strtoumax as a macro (and not as a
24165         function).
24166
24167 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24168
24169         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
24170         that we can shift, multiply and divide unsigned long long
24171         values; Ultrix cc can't do it.
24172
24173 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24174
24175         * m4/mktime.m4: New file, which is a preview of what should appear
24176         in the next public autoconf release.
24177
24178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24179
24180         * m4/lfs.m4: Remove this file.
24181         * m4/largefile.m4: New file.  It contains the old contents of
24182         lfs.m4, except that all names with prefix AC_LFS have been
24183         changed to use the prefix AC_SYS_LARGEFILE instead, to be
24184         compatible with future autoconf versions.  Also, some minor m4
24185         quoting problems have been fixed.
24186
24187 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24188
24189         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
24190         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
24191         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
24192         and simplify the shell code.
24193
24194 1999-08-01  Jim Meyering  <meyering@ascend.com>
24195
24196         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
24197         m4.
24198
24199 1999-07-20  Jim Meyering  <meyering@ascend.com>
24200
24201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
24202
24203 1999-07-15  Jim Meyering  <meyering@ascend.com>
24204
24205         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
24206
24207 1999-05-22  Jim Meyering  <meyering@ascend.com>
24208
24209         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
24210
24211 1999-05-20  Jim Meyering  <meyering@ascend.com>
24212
24213         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
24214         Add a colon after each `then' in case $4 is empty.
24215
24216 1999-05-16  Jim Meyering  <meyering@ascend.com>
24217
24218         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
24219
24220 1999-05-10  Jim Meyering  <meyering@ascend.com>
24221
24222         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
24223
24224         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
24225         AC_FUNC_MKTIME.
24226
24227 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
24228
24229         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
24230
24231 1999-05-04  Paul Eggert  <eggert@twinsun.com>
24232
24233         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
24234         not CPPFLAGS, so that linking works correctly in IRIX.
24235
24236 1999-04-30  Paul Eggert  <eggert@twinsun.com>
24237
24238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
24239
24240 1999-04-20  Paul Eggert  <eggert@twinsun.com>
24241
24242         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
24243         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
24244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
24245         jm_AC_TYPE_UNSIGNED_LONG_LONG.
24246         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
24247
24248         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
24249
24250 1999-04-20  Jim Meyering  <meyering@ascend.com>
24251
24252         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
24253         AC_REPLACE xstroull if necessary.  From Paul Eggert.
24254         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
24255
24256 1999-04-18  Jim Meyering  <meyering@ascend.com>
24257
24258         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
24259         * m4/jm-macros.m4: Use it.
24260
24261 1999-04-06  Jim Meyering  <meyering@ascend.com>
24262
24263         * m4/strftime.m4: Remove test for %f.
24264
24265 1999-03-29  Jim Meyering  <meyering@ascend.com>
24266
24267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
24268         superset of the AC_TYPE_* checks in the textutils, fileutils,
24269         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
24270         AC_TYPE_PID_T.
24271
24272 1999-03-28  Jim Meyering  <meyering@ascend.com>
24273
24274         * m4/jm-macros.m4: Define GNU_PACKAGE here.
24275         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
24276         replaced e.g., in the *.sh files of the sh-utils.
24277
24278 1999-03-20  Jim Meyering  <meyering@ascend.com>
24279
24280         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
24281         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
24282         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
24283
24284 1999-03-19  Jim Meyering  <meyering@ascend.com>
24285
24286         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
24287
24288 1999-03-12  Jim Meyering  <meyering@ascend.com>
24289
24290         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
24291
24292 1999-03-07  Jim Meyering  <meyering@ascend.com>
24293
24294         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
24295         declared.
24296
24297 1999-02-17  Jim Meyering  <meyering@ascend.com>
24298
24299         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
24300         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
24301
24302 1999-02-07  Jim Meyering  <meyering@ascend.com>
24303
24304         * m4/group-member.m4: New file -- extracted from sh-utils'
24305         configure.in.
24306
24307         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
24308         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
24309
24310 1999-02-06  Jim Meyering  <meyering@ascend.com>
24311
24312         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
24313         * m4/fnmatch.m4: Likewise.
24314         * m4/getgroups.m4: Likewise.
24315         * m4/lstat.m4: Likewise.
24316         * m4/malloc.m4: Likewise.
24317         * m4/putenv.m4: Likewise.
24318         * m4/realloc.m4: Likewise.
24319         * m4/regex.m4: Likewise.
24320         * m4/stat.m4: Likewise.
24321         * m4/strftime.m4: Likewise.
24322         Suggestion from Alain Magloire.
24323
24324         * m4/chown.m4: Use `.$ac_objext', not `.o'.
24325         * m4/fnmatch.m4: Likewise.
24326         * m4/getgroups.m4: Likewise.
24327         * m4/getline.m4: Likewise.
24328         * m4/lstat.m4: Likewise.
24329         * m4/malloc.m4: Likewise.
24330         * m4/memcmp.m4: Likewise.
24331         * m4/putenv.m4: Likewise.
24332         * m4/realloc.m4: Likewise.
24333         * m4/regex.m4: Likewise.
24334         * m4/stat.m4: Likewise.
24335         * m4/strftime.m4: Likewise.
24336         Suggestion from Alain Magloire.
24337
24338         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
24339         an argument.
24340
24341         * m4/regex.m4: Add a run-time Test for proper operation of
24342         re_compile_pattern.
24343
24344 1999-01-31  Jim Meyering  <meyering@ascend.com>
24345
24346         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
24347
24348 1999-01-30  Jim Meyering  <meyering@ascend.com>
24349
24350         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
24351
24352         * m4/jm-mktime.m4: Make this a wrapper around the official
24353         AM_FUNC_MKTIME rather than my private copy, now that the official one
24354         is up to date.
24355         * m4/mktime.m4: Remove file.
24356
24357         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
24358         * m4/uptime.m4: Likewise.
24359         * m4/uintmax_t.m4: Likewise.
24360
24361 1999-01-28  Jim Meyering  <meyering@ascend.com>
24362
24363         * m4/jm-macros.m4: Use jm_AFS.
24364         * m4/afs.m4: New file (from fileutils' configure.in).
24365
24366         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
24367         * m4/chown.m4: Likewise.
24368         * m4/d-ino.m4: Likewise.
24369         * m4/d-type.m4: Likewise.
24370         * m4/fnmatch.m4: Likewise.
24371         * m4/getgroups.m4: Likewise.
24372         * m4/gettext.m4: Likewise.
24373         * m4/jm-mktime.m4: Likewise.
24374         * m4/jm-winsz2.m4: Likewise.
24375         * m4/lcmessage.m4: Likewise.
24376         * m4/ls-mntd-fs.m4: Likewise.
24377         * m4/malloc.m4: Likewise.
24378         * m4/memcmp.m4: Likewise.
24379         * m4/putenv.m4: Likewise.
24380         * m4/realloc.m4: Likewise.
24381         * m4/st_mtim.m4: Likewise.
24382         * m4/strftime.m4: Likewise.
24383
24384 1999-01-16  Jim Meyering  <meyering@ascend.com>
24385
24386         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
24387         (ARGMATCH_DIE_DECL): Define.
24388
24389 1999-01-12  Jim Meyering  <meyering@ascend.com>
24390
24391         * m4/Makefile.am.in: Rewrite to avoid using fmt.
24392         Reported by Lars Hecking.
24393
24394 1999-01-10  Jim Meyering  <meyering@ascend.com>
24395
24396         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
24397         gross kludge.
24398         * m4/inttypes_h.m4: Likewise.
24399         * m4/lstat.m4: Likewise.
24400         * m4/malloc.m4: Likewise.
24401         * m4/readdir.m4: Likewise.
24402         * m4/realloc.m4: Likewise.
24403         * m4/st_dm_mode.m4: Likewise.
24404         * m4/stat.m4: Likewise.
24405         * m4/utimbuf.m4: Likewise.
24406         * m4/utimes.m4: Likewise.
24407
24408         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
24409         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
24410         comments in config.h.in are meaningful.
24411
24412         * m4/jm-macros.m4: Require autoconf-2.13 here.
24413
24414         * m4/regex.m4: By default, don't use the included regex.c on systems
24415         with glibc 2.  Suggestion from Uli Drepper.
24416
24417 1999-01-02  Jim Meyering  <meyering@ascend.com>
24418
24419         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
24420
24421 1998-12-18  Jim Meyering  <meyering@ascend.com>
24422
24423         * m4/Makefile.am.in (Makefile.am): Simplify rule.
24424         Based on a suggestion from Lars Hecking.
24425
24426 1998-11-16  Paul Eggert  <eggert@twinsun.com>
24427
24428         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
24429
24430 1998-11-16  Jim Meyering  <meyering@ascend.com>
24431
24432         * m4/lfs.m4: Double-quote the `uname...` expression.
24433
24434 1998-11-14  Jim Meyering  <meyering@ascend.com>
24435
24436         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
24437         * m4/stat.m4: Likewise.
24438
24439 1998-11-03  Jim Meyering  <meyering@ascend.com>
24440
24441         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
24442         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
24443
24444 1998-10-18  Jim Meyering  <meyering@ascend.com>
24445
24446         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
24447
24448 1998-10-17  Jim Meyering  <meyering@ascend.com>
24449
24450         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
24451         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
24452         calls for those previously hard-coded headers.  Instead, take a new
24453         parameter.
24454         (jm_CHECK_DECLARATIONS): Reflect interface change.
24455         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
24456         (jm_CHECK_DECL_LOCALTIME_R): New macro.
24457
24458         * m4/mktime.m4: Test for spring-forward gap before long-running test.
24459
24460 1998-10-14  Jim Meyering  <meyering@ascend.com>
24461
24462         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
24463         instead of "TZ=America/Vancouver".  From Paul Eggert.
24464
24465 1998-10-11  Jim Meyering  <meyering@ascend.com>
24466
24467         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
24468         This adds a test for a recently added compatibility fix for mktime.c.
24469         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
24470
24471 1998-09-27  Jim Meyering  <meyering@ascend.com>
24472
24473         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
24474
24475         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
24476         ../configure.in, including a change from Gordon Matzigkeit to allow
24477         cross-compiling for the Hurd.
24478
24479         * m4/glibc.m4: New file/macro to test for the GNU C Library
24480         versions 1 and 2.  From Gordon Matzigkeit.
24481         Indent.
24482
24483 1998-09-21  Jim Meyering  <meyering@ascend.com>
24484
24485         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
24486
24487 1998-08-18  Paul Eggert  <eggert@twinsun.com>
24488
24489         Port nanosecond-resolution times to UnixWare 2.1.2 and
24490         pedantic Solaris 2.6.
24491
24492         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
24493         AC_STRUCT_ST_MTIM.
24494         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
24495         Generate name of ns member, instead of just 1 or undef.
24496         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
24497
24498 1998-08-15  Jim Meyering  <meyering@ascend.com>
24499
24500         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
24501         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
24502         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
24503         instead of jm_TYPE_SSIZE_T.
24504
24505 1998-08-12  Jim Meyering  <meyering@ascend.com>
24506
24507         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
24508
24509 1998-08-02  Jim Meyering  <meyering@ascend.com>
24510
24511         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
24512         in acconfig.h manually.
24513
24514 1998-07-31  Paul Eggert  <eggert@twinsun.com>
24515
24516         * m4/st_mtim.m4: New file.
24517
24518 1998-07-28  Jim Meyering  <meyering@ascend.com>
24519
24520         * m4/utimes.m4: Undef stat.
24521
24522 1998-07-25  Jim Meyering  <meyering@ascend.com>
24523
24524         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
24525         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
24526
24527 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
24528
24529         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
24530         uid and gid actually remain unchanged.
24531
24532 1998-07-07  Jim Meyering  <meyering@ascend.com>
24533
24534         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
24535
24536 1998-07-04  Jim Meyering  <meyering@ascend.com>
24537
24538         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
24539         to prove that this macro can be used in packages without regex.c.
24540
24541 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
24542
24543         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
24544         is to be used.
24545
24546 1998-07-03  Jim Meyering  <meyering@ascend.com>
24547
24548         * m4/gettext.m4: Add -lintl if it's found to be necessary.
24549
24550         * m4/gettext.m4: New file -- from gettext-0.10.35.
24551         * m4/lcmessage.m4: Likewise.
24552         * m4/progtest.m4: Likewise.
24553
24554         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
24555         * m4/jm-macros.m4: Require the new macro.
24556
24557 1998-06-29  Jim Meyering  <meyering@ascend.com>
24558
24559         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
24560         for the definition of NGROUPS (used in a system header included
24561         by sys/mount.h).
24562
24563 1998-06-28  Jim Meyering  <meyering@ascend.com>
24564
24565         * m4/ls-mntd-fs.m4: New file.
24566         * m4/fstypename.m4: New file.
24567
24568         * m4/jm-macros.m4: Require the new macro.
24569         * m4/jm-glibc-io.m4: New file.
24570
24571 1998-05-19  Jim Meyering  <meyering@ascend.com>
24572
24573         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
24574         * m4/lchown.m4: New file.
24575
24576         * m4/Makefile.am.in: New file.
24577         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
24578
24579 1998-05-14  Jim Meyering  <meyering@ascend.com>
24580
24581         * m4/Makefile.am (EXTRA_DIST): Add them.
24582         * m4/jm-macros.m4: New file.
24583         * m4/utimbuf.m4: New file.
24584
24585 1998-05-12  Jim Meyering  <meyering@ascend.com>
24586
24587         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
24588
24589 1998-05-11  Jim Meyering  <meyering@ascend.com>
24590
24591         * m4/isc-posix.m4: New file.
24592
24593 1998-05-10  Jim Meyering  <meyering@ascend.com>
24594
24595         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
24596
24597 1998-05-09  Jim Meyering  <meyering@ascend.com>
24598
24599         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
24600         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
24601         with automake.
24602
24603         * m4/ssize_t.m4: New file.
24604         * m4/mktime.m4: Remove file -- the new automake has this now.
24605
24606 1998-04-26  Jim Meyering  <meyering@ascend.com>
24607
24608         * m4/assert.m4: New file.
24609         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
24610
24611 1998-04-05  Jim Meyering  <meyering@ascend.com>
24612
24613         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
24614         (jm_PREREQ): Use it here.
24615
24616 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
24617
24618         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
24619         in acconfig.h.
24620
24621 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
24622
24623         * m4/prereq.m4: New file.
24624         * m4/error.m4: New file.
24625         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
24626
24627 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
24628
24629         * m4/getline.m4: Don't set am_cv_func_working_getline before the
24630         cache-check for the same variable -- that defeated the purpose of
24631         the test; the test program was never run.  This was a problem only
24632         on systems with losing getline functions -- HP-UX 10.20 is one.
24633         Reported by Bjorn Helgaas.
24634
24635 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
24636
24637         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
24638
24639 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
24640
24641         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
24642
24643         * m4/const.m4: New file.  Use an initializer in this declaration
24644         typedef int charset[2]; const charset x;
24645         Reported by Bob Glickstein.
24646
24647 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
24648
24649         * m4/chown.m4: Fix reversed types on -1 args to chown.
24650         From Kaveh Ghazi.
24651
24652 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
24653
24654         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
24655         Add lseek and memchr.
24656
24657         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
24658         T.E.Dickey <dickey@clark.net> said that some older preprocessors
24659         have a 20-character limit on names.
24660
24661 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
24662
24663         * m4/inttypes_h.m4: New file.
24664         * m4/uintmax_t.m4: New file.
24665         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
24666
24667 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
24668   Free Software Foundation, Inc.
24669 Copying and distribution of this file, with or without modification,
24670 are permitted provided the copyright notice and this notice are preserved.