New module 'utf16-ucs4-safe'.
[gnulib.git] / ChangeLog
1 2006-12-25  Bruno Haible  <bruno@clisp.org>
2
3         * modules/utf8-ucs4-safe: New file.
4         * lib/utf8-ucs4-safe.h: New file.
5         * lib/unistr/utf8-ucs4-safe.c: New file.
6
7         * modules/utf16-ucs4-safe: New file.
8         * lib/utf16-ucs4-safe.h: New file.
9         * lib/unistr/utf16-ucs4-safe.c: New file.
10
11 2007-01-08  Bruno Haible  <bruno@clisp.org>
12
13         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14         (Depends-on): Add unitypes.
15         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16         (u8_mbtouc_aux): Move out to separate file.
17         (u8_mbtouc): Use ucs4_t, uint8_t types.
18         * lib/unistr/utf8-ucs4.c: New file.
19
20         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
21         (Depends-on): Add unitypes.
22         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
23         (u16_mbtouc_aux): Move out to separate file.
24         (u16_mbtouc): Use ucs4_t, uint16_t types.
25         * lib/unistr/utf16-ucs4.c: New file.
26
27         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
28         (Depends-on): Add unitypes.
29         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
30         (u8_uctomb_aux): Move out to separate file.
31         (u8_uctomb): Use ucs4_t, uint8_t types.
32         * lib/unistr/ucs4-utf8.c: New file.
33
34         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
35         (Depends-on): Add unitypes.
36         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
37         (u16_uctomb_aux): Move out to separate file.
38         (u16_uctomb): Use ucs4_t, uint16_t types.
39         * lib/unistr/ucs4-utf16.c: New file.
40
41 2007-01-08  Bruno Haible  <bruno@clisp.org>
42
43         Avoid variable names that conflict with those from libtool.
44         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47         library_names_spec to acl_library_names_spec, hardcode_* to
48         acl_hardcode_*.
49         Reported by Ralf Wildenhues.
50
51 2007-01-08  Bruno Haible  <bruno@clisp.org>
52
53         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54         definition.
55         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56         definition.
57         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59         definition.
60         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61         definition.
62         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66         definition.
67         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68         definition.
69         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71         GC_USE_<algorithm>.
72         * lib/gc-libgcrypt.c: Likewise.
73         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74         * modules/gc-arctwo (configure.ac): Likewise.
75         * modules/gc-des (configure.ac): Likewise.
76         * modules/gc-hmac-md5 (configure.ac): Likewise.
77         * modules/gc-hmac-sha1 (configure.ac): Likewise.
78         * modules/gc-md2 (configure.ac): Likewise.
79         * modules/gc-md4 (configure.ac): Likewise.
80         * modules/gc-md5 (configure.ac): Likewise.
81         * modules/gc-random (configure.ac): Likewise.
82         * modules/gc-rijndael (configure.ac): Likewise.
83         * modules/gc-sha1 (configure.ac): Likewise.
84
85 2007-01-08  Bruno Haible  <bruno@clisp.org>
86
87         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
88         macro definition.
89         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
90         definition.
91         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
92         definition.
93         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94         * modules/fcntl-safer (configure.ac): Likewise.
95         * modules/fopen-safer (configure.ac): Likewise.
96         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
97         GNULIB_FWRITEERROR macro definition.
98
99 2007-01-08  Bruno Haible  <bruno@clisp.org>
100
101         * m4/gnulib-common.m4: New file.
102         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
103         (func_get_filelist): Add m4/gnulib-common.m4.
104
105 2007-01-08  Bruno Haible  <bruno@clisp.org>
106
107         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
108         command.
109
110 2007-01-08  Jim Meyering  <jim@meyering.net>
111
112         Use a more robust test for a "can't happen" condition.
113         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
114         narrowed the st_size value.  Presuming the "can't happen" condition
115         is true, that narrowing could conceivably convert an invalid st_size
116         value into a valid one.  Instead, use a change based on Matthew
117         Woehlke's original patch.
118
119         Slight readability improvement: use an assert-like macro
120         in place of literal "abort ()" uses.
121         * lib/fts.c (fts_assert): Define.
122         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
123         Use this macro instead of a bare 'abort'.
124
125 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
126
127         Don't worry about using IRIX 5.3's wctype.h broken definitions;
128         simply work around them.
129         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
130         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
131         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
132         Don't bother to define as macros, since the standard doesn't require it.
133         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
134         longer worry about IRIX 5.3.
135         (HAVE_WCTYPE_CTMP_BUG): Remove.
136
137 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
138
139         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
140         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
141         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
142         Problems reported by Georg Schwarz for IRIX 5.3.
143
144         * gnulib-tool (autoconf_minversion): Take the maximum version number
145         found, not the minimum.  Problem reported by James Youngman.
146
147 2007-01-03  Karl Berry  <karl@gnu.org>
148
149         * doc/error.texi: new file, explaining interaction with progname.
150         * doc/gnulib.texi: include it.  Update copyright.
151
152 2007-01-03  Simon Josefsson  <simon@josefsson.org>
153
154         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
155         AC_CANONICAL_HOST, to improve autobuild outputs.
156
157 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
158             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
159
160         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
161         sockets, server sockets, and other file descriptors.  Count errors
162         to compute the return value.  Reorder the code a bit to be easier
163         to follow.  Don't set event bits that were not requested (except
164         POLLERR and POLLHUP).
165
166 2007-01-01  Bruno Haible  <bruno@clisp.org>
167
168         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
169
170 2007-01-03  Jim Meyering  <jim@meyering.net>
171
172         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
173
174 2007-01-02  Bruno Haible  <bruno@clisp.org>
175
176         * modules/settime (Include): Require timespec.h.
177         * modules/nanosleep (Include): Likewise.
178
179 2007-01-01  Bruno Haible  <bruno@clisp.org>
180
181         * gnulib-tool (func_emit_copyright_notice): Bump year.
182         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
183
184 2007-01-01  Bruno Haible  <bruno@clisp.org>
185
186         Improve support for OpenBSD.
187         * build-aux/config.rpath (libname_spec): Export.
188         (library_names_spec): New variable. Export.
189         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
190         library_names_spec from the config.rpath output. Locate shared library
191         through the name pattern in library_names_spec.
192
193 2007-01-01  Eric Blake  <ebb9@byu.net>
194
195         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
196
197 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
198
199         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
200         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
201         assume the C locale, and avoid an "eval" that could cause trouble.
202         Problem with SORT reported by Bob Proulx.
203
204         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
205         Define.  Trivial patch from Henning Nielsen Lund, originally
206         sent to bug-grep@gnu.org today.
207
208 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
209
210         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
211         struct stat.  Problem reported by Henning Nielsen Lund.
212         * lib/acl.c: Include acl.h first, to check interface.  Don't
213         bother to include sys/types.h and sys/stat.h again.
214
215 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
216
217         Import the following change from libc; problem reported by
218         Sven Verdoolaege.
219
220         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
221
222         [BZ #1373]
223         * lib/argp.h: Remove __NTH for __argp_usage inline function.
224
225 2006-12-28  Jim Meyering  <jim@meyering.net>
226
227         * build-aux/announce-gen: Do not assume that the package
228         builds any of tar.gz, tar.bz2, and .xdelta files.
229         Suggestion from Simon Josefsson.
230
231 2006-12-28  Simon Josefsson  <simon@josefsson.org>
232
233         * modules/announce-gen: New file.
234
235 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
236
237         * lib/mbchar.h: Just include <wctype.h>; the wctype module
238         handles its gotchas now.
239         * lib/mbswidth.c: Likewise.
240         * lib/wcwidth.h: Likewise.
241         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
242         and iswcntrl; the wctype module does this stuff now.
243         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
245         * modules/mbchar (Depends-on): Add wctype.
246         * modules/mbswidth (Depends-on): Likewise.
247         * modules/wcwidth (Depends-on): Likewise.
248
249 2006-12-27  Eric Blake  <ebb9@byu.net>
250
251         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
252         module uses more than what <wctype.h> is required to provide.
253
254 2006-12-26  Eric Blake  <ebb9@byu.net>
255
256         * gnulib-tool (sed_extract_prog): Avoid space-tab.
257
258 2006-12-26  Eric Blake  <ebb9@byu.net>
259
260         * modules/absolute-header: New module.
261         * modules/fcntl (Depends-on): Depend on it.
262         * modules/inttypes (Depends-on): Likewise.
263         * modules/stdint (Depends-on): Likewise.
264         * modules/sys_stat (Depends-on): Likewise.
265         * modules/wctype (Depends-on): Likewise.
266         * MODULES.html.sh (Support for building libraries and
267         executables): Document it.
268
269 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
270
271         * gnulib-tool (SED): Remove, undoing previous change.
272         The problem was that it broke coreutils on Solaris, because
273         "sed --posix" leaked into a makefile.
274         (sed): New alias, if 'alias' and GNU sed.
275
276 2006-12-24  Jim Meyering  <jim@meyering.net>
277
278         Work around an fchownat bug in glibc-2.4:
279         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
280         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
281         in spite of the -P option.
282         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
283         New macros.
284         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
285         * modules/openat (Files): Add lib/fchownat.c.
286         * lib/openat.c (fchownat): Don't define here.  Move to...
287         * lib/fchownat.c: ...this new file.
288
289 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
290
291         Fix bug reported by Bruno Haible in
292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
293         where quotearg.c didn't compile on Mac OS X 10.2 because it
294         lacks <wchar.h> and wint_t.
295         * lib/wctype_.h (__wctype_wint_t): New type.
296         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
297         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
298         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
299         Arg is now of type __wctype_wint_t, not wint_t.
300         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
301         substitute HAVE_WINT_T.
302         * modules/wctype (Files): Add m4/wint_t.m4.
303         (wctype.h): Substitute HAVE_WINT_T.
304
305 2006-12-23  Bruno Haible  <bruno@clisp.org>
306
307         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
308
309 2006-12-23  Bruno Haible  <bruno@clisp.org>
310
311         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
312         S_ISLNK.
313         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
314         mingw.
315
316 2006-12-22  Bruno Haible  <bruno@clisp.org>
317
318         * lib/copy-file.c: Include acl.h.
319         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
320         Close the file descriptors only after being done with copy_acl.
321         * modules/copy-file (Depends-on): Add acl.
322
323 2006-12-22  Bruno Haible  <bruno@clisp.org>
324
325         * gnulib-tool (SED): New variable.
326         Use $SED instead of sed everywhere.
327
328 2006-12-22  Bruno Haible  <bruno@clisp.org>
329
330         * modules/no-c++: New file.
331         * m4/no-c++.m4: New file.
332         * MODULES.html.sh (Support for building libraries and executables):
333         Add no-c++.
334
335 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
336
337         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
338         Include <limits.h>, and use its INT_MAX to rewrite the
339         j loop so that it does not overflow 'int'.  Problem reported by
340         Ralf Wildenhues in
341         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
342         Play it safe by shifting left by 1 rather than multiplying by 2,
343         as GCC is less likely to optimize this away when the value
344         is signed (when it assumes overflow leads to undefined behavior).
345         Also, don't assume time_t uses two's complement.
346
347 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
348
349         * MODULES.html.sh: New module wctype.
350         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
351         * lib/fnmatch.c: Don't bother to include <wchar.h> before
352         <wctype.h>, since the new wctype module should fix this.
353         * lib/quotearg.c: Include <wctype.h> unconditionally, since
354         the wctype module should arrange for it.
355         * lib/regex_internal.h: Likewise.
356         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
357         since the wctype module should handle this now.
358         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
359         * modules/fnmatch (Depends-on): Add wctype.
360         * modules/quotearg (Depends-on): Likewise.
361         * modules/regex (Depends-on): Likewise.
362
363 2006-12-19  Bruno Haible  <bruno@clisp.org>
364
365         * lib/strdup.h [C++]: Wrap definitions in extern "C".
366         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
367
368 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
369
370         * modules/savewd (Depends-on): Fix dependency on fcntl.
371
372 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
373
374         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
375         conforms to C99, rather than relying on the user's environment
376         setting of STDINT_H.
377
378 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
379         and Eric Blake  <ebb9@byu.net>
380
381         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
382         This is more consistent with the other defines here.
383         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
384         Port to z/OS.  Problem reported by Paul Gilmartin.
385         Change local vars to use gl_ prefix rather than ac_.
386         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
387         with other defines.
388         * modules/double-slash-root: New module.
389         * modules/dirname (Files): Remove m4/double-slash-root.m4.
390         (Depends-on): Add double-slash-root.
391         * MODULES.html.sh (File system functions): Mention new module.
392
393 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
394
395         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
396         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
397         This is for the benefit of gzip, which doesn't do i18n.
398
399 2006-12-12  Jim Meyering  <jim@meyering.net>
400
401         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
402         Reported by Andreas Schwab <schwab@suse.de>.
403
404 2006-12-12  Bruno Haible  <bruno@clisp.org>
405
406         Merge these changes.
407         2006-09-05  Bruno Haible  <bruno@clisp.org>
408         * lib/iconvme.c (iconv_string): No need to save and restore errno when
409         iconv_alloc succeeded.
410         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
411         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
412         test for " && dest " at the end - dest is always != NULL there. Call
413         iconv with 4xNULL arguments initially, to reset the state. Call iconv
414         with 2xNULL arguments, also to flush the state storage. Handle the
415         IRIX iconv behaviour. Realloc the final result, to throw away unused
416         memory.
417
418 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
419
420         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
421         and fchmodat unconditionally, since glibc 2.4 has them.
422         Problem reported by Arkadiusz Miskiewicz.
423
424 2006-12-10  Bruno Haible  <bruno@clisp.org>
425
426         * gnulib-tool (func_import): Show the include files only for those
427         modules that are copied and specified.
428         Reported by Karl Berry.
429
430 2006-12-08  Jim Meyering  <jim@meyering.net>
431
432         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
433         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
434
435         * build-aux/announce-gen: Add two new options, both optional:
436         --bootstrap-tools=TOOL_LIST
437               a comma-separated list of tools, e.g.,
438               autoconf,automake,bison,gnulib
439         --gnulib-snapshot-date=DATE
440               if gnulib is in the bootstrap tool list,
441               then report this as the snapshot date.
442               If not specified, use the current date/time.
443               If you specify a date here, be sure it's UTC.
444
445 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
446
447         * tests/test-argp-2.sh: Fix test to match actual output.
448         (func_compare): Fix sed script to be portable.
449
450 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
451
452         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
453         workaround for this case.  It is not autoconfigured now; offhand
454         it's hard to see how to autoconfigure it.
455
456 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
457
458         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
459         a directory that is about to be chowned.  Such a directory's
460         initial file permissions should permit the owner only and this
461         should not be changed until after the chown, since the group and
462         other bits would be incorrect if they granted permission before
463         the chown.
464
465         Fix porting problem for iswctype reported by Georg Schwarz in:
466         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
467         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
468         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
469         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
470         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
471
472 2006-12-03  Jim Meyering  <jim@meyering.net>
473
474         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
475         p->fts_statp may not yet be defined.
476         (fts_read): Instead, set it in the caller, once p->fts_statp is
477         sure to be defined, and corresponds to a top-level directory.
478         This bug made du -x fail.  Here's the coreutils test case:
479         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
480         Reported by Mike Frysinger.
481
482 2006-12-01  Jim Meyering  <jim@meyering.net>
483
484         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
485         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
486         Reported by Simon Josefsson.
487
488 2006-11-30  Jim Meyering  <jim@meyering.net>
489
490         * m4/warning.m4: Use the all-permissive copyright notice
491         recommended by RMS (rather than LGPL).
492         * m4/vararrays.m4: Likewise.
493         * m4/flexmember.m4: Likewise.
494
495 2006-11-29  Bruno Haible  <bruno@clisp.org>
496
497         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
498         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
499         using +=.
500         Reported by Simon Josefsson <simon@josefsson.org>.
501
502 2006-11-28  James Youngman <jay@gnu.org>
503
504         * README: Advise users that they might find the bug-gnulib@gnu.org
505         and autotools-announce@gnu.org mailing lists useful.
506
507 2006-11-28  Bruno Haible  <bruno@clisp.org>
508
509         * m4/ptrdiff_max.m4: Remove file.
510
511 2006-11-21  Bruno Haible  <bruno@clisp.org>
512
513         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
514         _AC_COMPUTE_INT.
515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
516         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
517         _AC_COMPUTE_INT.
518         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
519         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
520         _AC_COMPUTE_INT.
521         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
522
523 2006-11-28  Jim Meyering  <jim@meyering.net>
524
525         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
526         warning from "gcc -Wshadow" about shadowing the builtin.
527
528 2006-11-27  Bruno Haible  <bruno@clisp.org>
529
530         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
531         _AC_COMPUTE_INT.
532         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
533
534 2006-11-27  Bruno Haible  <bruno@clisp.org>
535             Paul Eggert  <eggert@cs.ucla.edu>
536
537         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
538
539 2006-11-26  Bruno Haible  <bruno@clisp.org>
540
541         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
542         noinst_LTLIBRARIES.
543
544 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
545             Bruno Haible  <bruno@clisp.org>
546
547         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
548         if compiling with "gcc -ansi".
549
550 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
551
552         Fix some incompatibilities with gcc -ansi -pedantic.
553         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
554         if compiling pedantically with GCC, unless it's C99 or later.
555         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
556         it mishandles gcc -ansi -pedantic as well.
557         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
558         if gcc -pedantic.
559         * lib/regexec.c (check_node_accept_bytes): Don't use auto
560         initializers for struct if -pedantic, unless it's C99 or later.
561
562 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
563
564         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
565         Don't close an fd more than once. Identical atimes indicate
566         success, not failure.
567
568 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
569
570         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
571
572 2006-11-23  Jim Meyering  <jim@meyering.net>
573
574         * build-aux/announce-gen: New file.  From coreutils.
575
576 2006-11-22  Jim Meyering  <jim@meyering.net>
577
578         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
579         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
580         (fts_read): Use a temporary to narrow the overused st_size member
581         before using it in a switch statement.  Reported by Matthew Woehlke.
582
583         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
584         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
585
586 2006-11-20  Bruno Haible  <bruno@clisp.org>
587
588         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
589         changequote instead of pairs of brackets.
590         Reported by Andreas Schwab <schwab@suse.de>.
591
592 2006-11-21  Jim Meyering  <jim@meyering.net>
593
594         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
595         so as to remain compatible with older compilers.
596         Patch from Michael Deutschmann.
597
598 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
599
600         * MODULES.html.sh (File system functions): Add openat.
601
602         * lib/openat.h (rpl_fstatat): New macro, if
603         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
604         (fstatat): Define to rpl_fstatat under the same conditions,
605         unless COMPILING_FSTATAT.
606         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
607         seems to have the bug.
608         * lib/fstatat.c: New file.
609         * modules/openat (Files): Add it.
610
611 2006-11-20  Bruno Haible  <bruno@clisp.org>
612
613         * Makefile: New file.
614
615 2006-11-20  Jim Meyering  <jim@meyering.net>
616
617         The beginnings of syntax-related checks for gnulib.
618         * lib/Makefile: New file.
619         * lib/t-idcache: New script.  Ensure that the two halves of
620         idcache.c stay in sync.
621
622         * lib/idcache.c: Adjust comments in user- and group- portions to
623         be more accurate, and to be consistent with one another.
624
625 2006-11-20  Jim Meyering  <jim@meyering.net>
626
627         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
628         continue using the flexible array member (thus, this module performs
629         half as many malloc calls), with the addition that...
630         (getgroup, getuser): Consistently record a non-match via an empty
631         "name" string, and map an empty string match to a NULL return value.
632         * modules/idcache (Depends-on): Re-add flexmember.
633
634         * lib/idcache.c (getuser): Remove all uses of the register keyword.
635         (getuidbyname, getgroup, getgidbyname): Likewise.
636
637         Use cleaner syntax: NULL rather than 0.
638         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
639
640 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
641
642         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
643         It mishandled the case where the group was missing.
644         Problem reported by Greg Schafer.
645         * modules/idcache: Likewise.
646
647 2006-11-18  Jim Meyering  <jim@meyering.net>
648
649         * check-module (%exempt_header): Add exception for some
650         conditionally-included headers.
651
652         * modules/i-ring (Depends-on): Add verify.
653         (License): Change to LGPL.
654
655 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
656
657         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
658         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
659         and inttostr.h.  Use snprintf rather than uinttostr, so that
660         LGPLed code doesn't depend on GPLed.
661
662 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
663
664         * modules/inline (License): Change from GPL to LGPL.
665
666 2006-11-17  Jim Meyering  <jim@meyering.net>
667
668         * modules/d-type (License): Switch to LGPL.
669
670 2006-11-15  Bruno Haible  <bruno@clisp.org>
671
672         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
673
674 2006-11-15  Eric Blake  <ebb9@byu.net>
675
676         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
677         the module dependency.
678
679 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
680             Bruno Haible  <bruno@clisp.org>
681
682         * gnulib-tool (func_create_testdir): Add license consistency check.
683
684 2006-11-15  Eric Blake  <ebb9@byu.net>
685
686         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
687         random "(cached)" in configure output.
688
689 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
690
691         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
692         test for conforming inttypes.h is both announced and cached.
693
694         * MODULES.html.sh (seen_modules, seen_files): New variables.
695         (func_module): Rewrite to use a few less gnulib-tool and sed
696         invocations.  Avoid a couple of quadratic algorithms for ...
697         (missed_modules, missed_files): ... these, with ...
698         (func_append, func_tmpdir): ... these new functions, from
699         gnulib-tool.  Analogously, install traps for cleanup.
700
701         * tests/test-gc.c (main): Remove unused variables.
702         * tests/test-read-file.c: Include stdlib.h, for 'free'.
703
704 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
705
706         * modules/inttostr (License): Change to LGPL.
707
708 2006-11-14  Eric Blake  <ebb9@byu.net>
709
710         * modules/tempname (License): Change to LGPL.
711
712 2006-11-14  Eric Blake  <ebb9@byu.net>
713
714         * doc/functions.texi (Function Portability): *printf functions on
715         Cygwin now understand all POSIX size specifiers.
716
717 2006-11-14  Bruno Haible  <bruno@clisp.org>
718
719         * modules/c-ctype (License): Change to LGPL.
720
721 2006-11-12  Bruno Haible  <bruno@clisp.org>
722
723         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
724         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
725         for GNOME libraries, for which the include files are installed in
726         subdirectories of $prefix/include.
727
728 2006-11-12  Bruno Haible  <bruno@clisp.org>
729
730         * m4/lib-link.m4: Require at least autoconf-2.54.
731         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
732         name to underscores for the --with option.
733
734 2006-11-13  Bruno Haible  <bruno@clisp.org>
735
736         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
737         the tests directory.
738         Reported by Ralf Wildenhues.
739
740 2006-11-13  Bruno Haible  <bruno@clisp.org>
741
742         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
743         (func_emit_initmacro_end): Undo the override here.
744         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
745         Works around the famous automake error in coreutils.
746
747 2006-11-13  Eric Blake  <ebb9@byu.net>
748
749         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
750         element, not its node.
751
752 2006-11-12  Bruno Haible  <bruno@clisp.org>
753
754         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
755         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
756
757 2006-11-12  Bruno Haible  <bruno@clisp.org>
758
759         * gnulib-tool: New option --local-symlink.
760         (func_usage): Document it.
761         (lsymbolic): New variable.
762         (func_import, func_create_testdir): If --symlink was not specified,
763         test whether --local-symlink was specified and the file comes from
764         the local_gnulib_dir.
765
766 2006-11-12  Bruno Haible  <bruno@clisp.org>
767
768         * gnulib-tool (func_ln): New function.
769         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
770
771 2006-11-12  Bruno Haible  <bruno@clisp.org>
772
773         Finish support for source files in subdirectories.
774         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
775         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
776         AUTOMAKE_OPTIONS.
777         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
778
779 2006-11-12  Bruno Haible  <bruno@clisp.org>
780
781         * gnulib-tool (func_get_automake_snippet): Synthesize also an
782         EXTRA_lib_SOURCES augmentation.
783         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
784
785 2006-11-12  Jim Meyering  <jim@meyering.net>
786
787         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
788         file descriptors.  This also averts a failure on systems with
789         native openat support when a traversed directory lacks "x" access.
790         * lib/fts_.h: Include "i-ring.h"
791         (struct FTS) [fts_fd_ring]: New member.
792         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
793         (FCHDIR): Add parentheses.
794         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
795         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
796         When descending, rather than simply closing the previous
797         fts_cwd_fd value, push that file descriptor onto the ring.
798         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
799         (fts_open): Initialize the new fd_ring member.
800         (fts_close): Clear the ring.
801         (fts_safe_changedir): When possible, use our new fd_ring to skip
802         the diropen and fstat and dev/ino comparison that would normally
803         accompany a virtual `chdir ("..")'.
804
805         * modules/fts (Depends-on): Add i-ring.
806         * modules/i-ring: New module.
807         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
808         * m4/i-ring.m4: New file.
809
810 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
811
812         * gnulib-tool (func_create_testdir): Fix replacement of
813         `build-aux' in configure.ac.  Run autotools in gltests
814         subdirectory.
815         (func_create_testdir, func_create_megatestdir, test): There is
816         no need for '--force' in most autotool invocations in a new
817         tree.  Actually fail the whole test if any of the tools, or the
818         configure or make stages fail.
819
820         Sync from Automake.
821         * build-aux/gnupload: Revert last change.  Add pointer to upload
822         instructions of the GNU Maintenance Instructions.
823         Suggestion by Karl Berry.
824
825 2006-11-10  Jim Meyering  <jim@meyering.net>
826
827         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
828
829 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
830
831         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
832         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
833         (bind_textdomain_codeset) [! ENABLE_NLS]:
834         Evaluate all the arguments.  That way, callers get compatible behavior
835         if the arguments have side effects.  Also, it avoids some GCC
836         diagnostics in some cases; Joel E. Denny reported problems when Bison
837         was configured with --enable-gcc-warnigs.
838
839 2006-11-10  Jim Meyering  <jim@meyering.net>
840
841         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
842         relevant options in CFLAGS (like -O, -fno-inline) are taken into
843         account.
844
845 2006-11-10  Jim Meyering  <jim@meyering.net>
846
847         * modules/inline: New file/module.
848         * modules/xalloc (Files): Remove m4/inline.m4.
849         (Depends-on): Add inline, instead.
850         * modules/oset: Likewise.
851         * modules/list: Likewise.
852
853 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
854
855         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
856         Problem reported by Matthew Woehlke.
857
858 2006-11-09  Bruno Haible  <bruno@clisp.org>
859
860         * lib/tempname.c (gen_tempname): Remove variant that invokes
861         __gen_tempname.
862         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
863         __gen_tempname.
864
865 2006-11-08  Bruno Haible  <bruno@clisp.org>
866
867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
868         to 'yes' instead of 'cross-compiling'.
869
870 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
871
872         * lib/quotearg.h (quotearg_free): New decl.
873         * lib/quotearg.c (quotearg_free): New function.
874         (slot0, nslots, slotvec0, slotvec):
875         Now file-scope so that quotearg_free can get at them.
876
877 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
878
879         Sync from Automake.
880         * build-aux/gnupload: Add missing 'gnu' to example URL.
881         Report by Karl Berry.
882
883 2006-11-08  Bruno Haible  <bruno@clisp.org>
884
885         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
886         Suggested by Paul Eggert.
887
888 2006-11-08  Jim Meyering  <jim@meyering.net>
889
890         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
891         It's already included if !_LIBC.
892         (fts_safe_changedir): Add a comment.
893
894 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
895
896         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
897         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
898         Matthew Woehlke.
899
900         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
901         definitions up, to avoid colliding with change below.
902         (static_inline) [HAVE_INLINE]: New macro.
903         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
904         Provide extern decls when !HAVE_INLINE.  Do not define unless
905         static_inline is defined, either by us or by xmalloc.c.  Use
906         static_inline rather than static inline.
907         (XCALLOC): Optimize sizeof(T) = 1 case.
908         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
909
910 2006-11-07  Bruno Haible  <bruno@clisp.org>
911
912         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
913         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
914         AC_C_INLINE.
915         * modules/xalloc (Files): Add m4/inline.m4.
916
917 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
918
919         * README: Fix typo.
920         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
921         (Miscellanous Notes): ...from this.
922
923 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
924
925         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
926         Mention that offsetof should be used instead of sizeof.
927         From Bruno Haible.
928
929 2006-11-07  Bruno Haible  <bruno@clisp.org>
930
931         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
932
933 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
934
935         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
936         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
937         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
938         (gl_tree_add_before, gl_tree_add_after):
939         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
940         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
941         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
942         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
943         (gl_linked_add_after, gl_linked_add_at): Likewise.
944         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
945         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
946         (gl_tree_add_before, gl_tree_add_after): Likewise.
947         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
948         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
949         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
950
951 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
952
953         * lib/gl_oset.h: Use C comment style, not C++ comment style.
954
955 2006-11-06  Bruno Haible  <bruno@clisp.org>
956
957         * m4/inline.m4: New file.
958         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
959         * modules/list (Files): Add m4/inline.m4.
960         * modules/oset (Files): Likewise.
961
962 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
963
964         * lib/idcache.c: Include <stddef.h>, for offsetof.
965         (struct userid.name): Change from char * to a flexible array member.
966         All uses changed.
967         * modules/idcache (Depends-on): Add flexmember.
968
969         * MODULES.html.sh (Core language properties): New module flexmember.
970         * modules/flexmember, m4/flexmember.m4: New files.
971
972         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
973         inline functions that are identical with the old xnmalloc_inline,
974         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
975         that we can avoid some unnecessary integer multiplications and
976         divisions in the common case where the element size is known at
977         compile time.
978         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
979         needed.
980         (xnboundedmalloc): Remove.
981         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
982         arguments, for consistency with rest of this header.
983         (xcharalloc): Rewrite using XNMALLOC.
984         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
985         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
986         versions have been moved to lib/xalloc.h and renamed to be the
987         non-*_inline versions.
988         (xmalloc, xrealloc): Implement without reference to the xnmalloc
989         and xnrealloc functions, since those functions are now inline and
990         now call us.
991         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
992         renaming described above.
993         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
994         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
995         captures the dependency in AC_C_INLINE.
996
997         New module canonicalize-lgpl, proposed by Charles Wilson in
998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
999         with a few small changes afterwards.
1000         * MODULES.html.sh (File system functions): New module
1001         canonicalize-lgpl.
1002         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
1003         and canonicalize_file_name.
1004         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
1005         * modules/canonicalize-lgpl: New files.
1006
1007 2006-11-05  Bruno Haible  <bruno@clisp.org>
1008
1009         * gnulib-tool (func_import, func_create_testdir): Create directories
1010         also for files in subdirectories of lib/.
1011
1012 2006-11-05  Bruno Haible  <bruno@clisp.org>
1013
1014         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
1015         ANSI C compliant.
1016
1017 2006-11-03  Bruno Haible  <bruno@clisp.org>
1018
1019         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
1020         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
1021         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
1022         (xnboundedmalloc): New inline function.
1023         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
1024         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
1025         xmalloc.
1026         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
1027         xmalloc.
1028         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
1029         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
1030         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
1031         xmalloc.
1032         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1033         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
1034         xmalloc.
1035         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
1036         gl_tree_add_after): Use XMALLOC instead of xmalloc.
1037         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
1038         xmalloc.
1039         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1040         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
1041         gl_tree_add_after): Use XMALLOC instead of xmalloc.
1042         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
1043         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
1044         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
1045         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
1046
1047 2006-11-03  Bruno Haible  <bruno@clisp.org>
1048
1049         * lib/c-ctype.h [C++]: Define functions without name mangling.
1050         * lib/fwriteerror.h [C++]: Likewise.
1051         * lib/gcd.h [C++]: Likewise.
1052         * lib/linebreak.h [C++]: Likewise.
1053
1054 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1055
1056         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
1057         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
1058         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
1059         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1060         Check for functions and headers just once.
1061         Check for declaration of canonicalize_file_name.
1062         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
1063
1064 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1065
1066         * gnulib-tool (func_import): Fix typo in actioncmd.
1067
1068 2006-11-02  Bruno Haible  <bruno@clisp.org>
1069
1070         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
1071         newline sequence in the Makefile.am snippet as a space, like "make"
1072         does.
1073         Reported by Roger Persson <perrog@gmail.com>.
1074
1075 2006-11-01  Bruno Haible  <bruno@clisp.org>
1076
1077         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
1078         already declared in <string.h>.
1079         * lib/strcase.h (strncasecmp): Don't declare it if yes.
1080
1081 2006-11-01  Bruno Haible  <bruno@clisp.org>
1082
1083         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
1084         * lib/strcase.h: Include <string.h>.
1085         (strcasecmp): Define to rpl_strcasecmp here.
1086
1087 2006-11-01  Bruno Haible  <bruno@clisp.org>
1088
1089         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
1090
1091 2006-11-01  Eric Blake  <ebb9@byu.net>
1092
1093         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
1094
1095         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
1096
1097 2006-10-29  Bruno Haible  <bruno@clisp.org>
1098
1099         Make it compile in C++ mode.
1100         * lib/full-write.c (full_rw): Add a cast.
1101
1102 2006-11-01  Bruno Haible  <bruno@clisp.org>
1103
1104         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
1105         be POSIX compliant.
1106         Reported by Roger Persson <perrog@gmail.com>.
1107
1108 2006-11-01  Eric Blake  <ebb9@byu.net>
1109
1110         * lib/getopt_.h: Fix comments.
1111
1112 2006-10-31  Eric Blake  <ebb9@byu.net>
1113
1114         * modules/tmpdir (Depends-on): Add sys_stat.
1115         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
1116         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
1117         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
1118         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
1119         tempname.
1120
1121 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1122
1123         Avoid some C++ diagnostics reported by Bruno Haible.
1124         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
1125         xmalloc.
1126         (quotearg_alloc): Use xcharalloc rather than xmalloc.
1127         (struct slotvec): Move to top level.
1128         (quotearg_n_options): Rewrite to avoid xmalloc.
1129         * lib/xalloc.h (xcharalloc): New function.
1130         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
1131         [defined __cplusplus]: Add function template that provides result
1132         type propagation.  This part of the change is from Bruno Haible.
1133
1134 2006-10-29  Bruno Haible  <bruno@clisp.org>
1135
1136         Make it compile in C++ mode.
1137         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
1138         * lib/strnlen1.c (strnlen1): Cast memchr result.
1139         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
1140         * lib/clean-temp.c (string_equals, string_hash): Add casts.
1141         (create_temp_dir): Rename local variable 'template'.
1142         (compile_csharp_using_sscli): Add cast.
1143         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
1144         * lib/findprog.c (find_in_path): Likewise.
1145         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
1146         * lib/wait-process.c (register_slave_subprocess): Likewise.
1147
1148 2006-10-22  Bruno Haible  <bruno@clisp.org>
1149
1150         * modules/tsearch: New file.
1151         * lib/tsearch.h: New file.
1152         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
1153         * m4/tsearch.m4: New file.
1154         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
1155
1156 2006-10-29  Eric Blake  <ebb9@byu.net>
1157
1158         * lib/arcfour.c: Assume config.h.
1159         * lib/arctwo.c: Likewise.
1160         * lib/base64.c: Likewise.
1161         * lib/check-version.c: Likewise.
1162         * lib/crc.c: Likewise.
1163         * lib/des.c: Likewise.
1164         * lib/gc-gnulib.c: Likewise.
1165         * lib/gc-libgcrypt.c: Likewise.
1166         * lib/gc-pbkdf2-sha1.c: Likewise.
1167         * lib/getaddrinfo.c: Likewise.
1168         * lib/getdelim.c: Likewise.
1169         * lib/getline.c: Likewise.
1170         * lib/hmac-md5.c: Likewise.
1171         * lib/hmac-sha1.c: Likewise.
1172         * lib/iconvme.c: Likewise.
1173         * lib/md2.c: Likewise.
1174         * lib/md4.c: Likewise.
1175         * lib/memxor.c: Likewise.
1176         * lib/read-file.c: Likewise.
1177         * lib/readline.c: Likewise.
1178         * lib/rijndael-alg-fst.c: Likewise.
1179         * lib/rijndael-api-fst.c: Likewise.
1180         * lib/xgetdomainname.c: Likewise.
1181
1182 2006-10-28  Eric Blake  <ebb9@byu.net>
1183
1184         * lib/xstrndup.c: Assume config.h.
1185
1186 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
1189         stat-macros.h is now for our own macros, whereas stat_h is for
1190         macros in the <sys/stat.h> name space.
1191         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
1192         (STAT_MACROS_H): Remove.
1193         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
1194         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
1195         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
1196         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
1197         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
1198         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
1199         Move these macros to ...
1200         * lib/stat_.h: here.  Don't include stat-macros.h.
1201         * lib/canonicalize.c: Don't include stat-macros.h.
1202         * lib/chown.c: Likewise.
1203         * lib/euidaccess.c: Likewise.
1204         * lib/file-type.c: Likewise.
1205         * lib/filemode.c: Likewise.
1206         * lib/glob.c: Likewise.
1207         * lib/isapipe.c: Likewise.
1208         * lib/lchown.c: Likewise.
1209         * lib/lstat.c: Likewise.
1210         * lib/mkdir-p.c: Likewise.
1211         * lib/rmdir.c: Likewise.
1212         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
1213         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
1214         unless mkdir isn't declared, to speed up 'configure'.
1215         Always create sys/stat.h, since it's unlikely any real sys/stat.h
1216         would define all the S_* symbols.
1217         * modules/canonicalize (Depends-on):
1218         Depend on sys_stat, not stat-macros.
1219         * modules/chown: Likewise.
1220         * modules/euidaccess: Likewise.
1221         * modules/filemode: Likewise.
1222         * modules/file-type: Likewise.
1223         * modules/glob: Likewise.
1224         * modules/isapipe: Likewise.
1225         * modules/lchown: Likewise.
1226         * modules/lstat: Likewise.
1227         * modules/mkancesdirs: Likewise.
1228         * modules/rmdir: Likewise.
1229         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
1230         * modules/modechange: Likewise.
1231         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
1232         (configure.ac): Remove gl_STAT_MACROS.
1233         * modules/sys_stat (Depends-on): Remove stat-macros.
1234
1235 2006-10-27  Bruno Haible  <bruno@clisp.org>
1236
1237         * m4/signed.m4: Remove file.
1238         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
1239         invocation.
1240         * modules/vasnprintf (Files): Remove m4/signed.m4.
1241
1242 2006-10-27  Bruno Haible  <bruno@clisp.org>
1243
1244         Update to GNU gettext 0.16.
1245         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
1246         m4/inttypes-h.m4, m4/signed.m4.
1247         * m4/gettext.m4: Update to GNU gettext 0.16.
1248         * m4/intl.m4: New file, from GNU gettext.
1249         * m4/intldir.m4: New file, from GNU gettext.
1250         * config/srclist.txt: Update
1251
1252 2006-10-27  Eric Blake  <ebb9@byu.net>
1253
1254         * MODULES.html.sh: Document tempname.
1255         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
1256         dependencies.
1257         (Files): Move lib/tempname.c...
1258         * modules/tempname: ...to this new module.
1259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
1260         (gl_PREREQ_TEMPNAME): Move...
1261         * m4/tempname.m4: ...to this new file.
1262         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
1263         * modules/sys_stat (Depends-on): Add stat-macros.
1264         * lib/stat_.h (includes): Pick up stat macros.
1265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
1266         if stat macros are broken.
1267         * lib/tempname.c (includes): No need to include "stat-macros.h".
1268         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
1269         (direxists, __path_search) [!_LIBC]: Don't compile these in
1270         gnulib; the tmpdir module covers that.
1271         * lib/tempname.h: New file.
1272
1273 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1274
1275         * COPYING: Explain how gnulib-tool converts licence headers.
1276         Almost all wording by Eric Blake.
1277
1278 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1279
1280         * lib/mbchar.h (is_basic_table): Make read-only.
1281         * lib/mbchar.c (is_basic_table): Likewise.
1282         Reported by John Darrington.
1283
1284 2006-10-25  Bruno Haible  <bruno@clisp.org>
1285
1286         * lib/progname.h (set_program_name): Undefine before defining.
1287
1288 2006-10-25  Bruno Haible  <bruno@clisp.org>
1289
1290         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
1291         false for non-gcc C++ compilers.
1292         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1293
1294 2006-10-24  Bruno Haible  <bruno@clisp.org>
1295
1296         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
1297         iconv implementations like Irix iconv.
1298
1299 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1300
1301         * modules/vararrays: New file.
1302         * m4/vararrays.m4: New file, taken from diffutils.
1303         * MODULES.html.sh: New module vararrays.
1304
1305 2006-10-24  Karl Berry  <karl@gnu.org>
1306
1307         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
1308         Don't call GNU Unix.
1309
1310 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1311
1312         * users.txt: Add Libtool.
1313
1314         Sync from Libtool:
1315
1316         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1317
1318         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
1319         to gnulib's policy of including config.h unconditionally.
1320
1321 2006-10-24  Bruno Haible  <bruno@clisp.org>
1322
1323         * modules/wcwidth (Files): Add m4/wint_t.m4.
1324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
1325         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
1326
1327 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
1330         to pacify GCC with some -W flags enabled.  Problem reported by
1331         Bruno Haible.
1332
1333 2006-10-24  Jim Meyering  <jim@meyering.net>
1334
1335         * MODULES.html.sh: Remove uinttostr.  It's not a module.
1336         Reported by Karl Berry.
1337
1338 2006-10-23  Bruno Haible  <bruno@clisp.org>
1339
1340         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
1341
1342 2006-10-24  Bruno Haible  <bruno@clisp.org>
1343
1344         * lib/gl_list.h: Use C comment style, not C++ comment style.
1345
1346 2006-10-23  Eric Blake  <ebb9@byu.net>
1347
1348         * lib/getaddrinfo.c (includes): Add missing include.
1349
1350 2006-10-23  Bruno Haible  <bruno@clisp.org>
1351             Paul Eggert  <eggert@cs.ucla.edu>
1352
1353         Ability to rename obstack_free.
1354         * lib/obstack.h (__obstack_free): New macro. Declare instead of
1355         obstack_free.
1356         (obstack_free): Invoke the __obstack_free macro.
1357         * lib/obstack.c (obstack_free): Use __obstack_free macro.
1358
1359 2006-10-23  Bruno Haible  <bruno@clisp.org>
1360             Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
1363         __argc, __argv from the declaration. (They are defined as macros on
1364         mingw.)
1365
1366 2006-10-22  Bruno Haible  <bruno@clisp.org>
1367
1368         * doc/gnulib-intro.texi: New file.
1369         * doc/gnulib.texi: Include it.
1370
1371 2006-10-21  Bruno Haible  <bruno@clisp.org>
1372
1373         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
1374         "Introduction", "Miscellanous Notes", "Particular Modules".
1375
1376 2006-10-21  Bruno Haible  <bruno@clisp.org>
1377
1378         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1379         Change mostlyclean-local rule to avoid sh syntax error from bash
1380         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
1381
1382 2006-10-23  Jim Meyering  <jim@meyering.net>
1383
1384         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
1385         in place of snprintf.
1386
1387         * modules/inttostr (Files): Add lib/uinttostr.c.
1388         * lib/uinttostr.c (inttostr): New file/function.
1389         * lib/inttostr.h (uinttostr): Declare.
1390         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
1391         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
1392         Add uinttostr.
1393         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
1394
1395 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1396
1397         * lib/canonicalize.c (ELOOP): Define if not already defined.
1398         Problem reported by Bruno Haible in
1399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
1400
1401 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
1404         Problem reported by Perry Smith and Ville Laurikari.
1405
1406         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
1407         uses.
1408
1409 2006-10-19  Bruno Haible  <bruno@clisp.org>
1410
1411         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
1412         for mingw.
1413
1414 2006-10-19  Bruno Haible  <bruno@clisp.org>
1415
1416         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
1417         Needed for mingw.
1418
1419 2006-10-19  Bruno Haible  <bruno@clisp.org>
1420
1421         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
1422
1423 2006-10-19  Bruno Haible  <bruno@clisp.org>
1424
1425         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
1426         it.
1427
1428 2006-10-19  Bruno Haible  <bruno@clisp.org>
1429
1430         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
1431         invocation.
1432
1433 2006-10-19  Bruno Haible  <bruno@clisp.org>
1434
1435         * gnulib-tool (func_create_testdir): Don't include ftruncate and
1436         mountlist by default.
1437
1438 2006-10-16  Bruno Haible  <bruno@clisp.org>
1439
1440         * lib/c-strstr.c: Include c-strstr.h.
1441
1442 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1443
1444         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
1445         in a slash.
1446
1447 2006-10-18  Bruno Haible  <bruno@clisp.org>
1448
1449         * lib/lock.h [C++]: Wrap definitions in extern "C".
1450
1451 2006-10-18  Bruno Haible  <bruno@clisp.org>
1452
1453         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
1454         gl_LIBOBJS list.
1455
1456 2006-10-18  Bruno Haible  <bruno@clisp.org>
1457
1458         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
1459
1460 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1461
1462         * lib/xstrtol.h: Include gettext.h.
1463         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
1464         Problem reported by Eric Blake.
1465         * modules/xstrtol (Depends-on): Add gettext-h.
1466
1467 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
1468
1469         * lib/strftime.c (advance): New macro.
1470         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
1471         incomplete type, so you can't add 0 to it.  Problem and patch
1472         reported by Eelco Dolstra for dietlibc.
1473
1474 2006-10-18  Jim Meyering  <jim@meyering.net>
1475
1476         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
1477         type for a local, and rename it: s/up/user_proc/.
1478
1479 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
1480
1481         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
1482         READ_UTMP_USER_PROCESS.
1483         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
1484
1485 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
1486
1487         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
1488         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
1489
1490 2006-10-17  Eric Blake  <ebb9@byu.net>
1491
1492         * lib/sigprocmask.c (sigprocmask): Fix typo.
1493
1494         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
1495
1496         * modules/clean-temp (Makefile.am): Don't add to make output...
1497         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
1498         config.h.
1499
1500 2006-10-17  Bruno Haible  <bruno@clisp.org>
1501
1502         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
1503         differently if DEFAULT_TEXT_DOMAIN is set.
1504
1505 2006-10-16  Bruno Haible  <bruno@clisp.org>
1506
1507         * lib/clean-temp.c: Include fwriteerror.h.
1508
1509 2006-10-16  Bruno Haible  <bruno@clisp.org>
1510
1511         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
1512
1513 2006-10-16  Bruno Haible  <bruno@clisp.org>
1514
1515         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
1516         * lib/sigprocmask.h: Include <sys/types.h>.
1517         (sigset_t): Use the system's definition if present.
1518
1519 2006-10-17  Eric Blake  <ebb9@byu.net>
1520
1521         * lib/xvasprintf.c (includes): Assume config.h.
1522         * lib/xasprintf.c (includes): Likewise.
1523
1524 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1525
1526         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
1527         at least as wide as intmax_t.
1528
1529 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
1530
1531         (Imported from Automake.)
1532         * build-aux/gnupload: Update to version 1.1 of directive file.
1533
1534 2006-10-16  Eric Blake  <ebb9@byu.net>
1535
1536         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
1537         match Automake 1.10a.
1538
1539 2006-10-14  Bruno Haible  <bruno@clisp.org>
1540
1541         * modules/sigprocmask: New file.
1542         * lib/sigprocmask.h: New file.
1543         * lib/sigprocmask.c: New file.
1544         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
1545         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
1546         request sigprocmask.o.
1547         (gl_PREREQ_SIGPROCMASK): New macro.
1548         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
1549         (Depends-on): Add sigprocmask.
1550         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
1551         gt_SIGNALBLOCKING. Test for 'raise' only once.
1552         * lib/fatal-signal.c: Include sigprocmask.h.
1553         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
1554         unblock_fatal_signals): Define always.
1555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1556         sigprocmask.
1557
1558 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         Sync from Automake.
1561         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
1562         which incorrectly sets the mode of an existing destination
1563         directory.  In some cases the unpatched install-sh could do the
1564         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
1565         system.  We hope this is rare in practice, but it's clearly worth
1566         fixing.  Problem reported by Alex Unleashed in
1567         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
1568         Also, don't bother to check for -m bugs unless we're using -m;
1569         suggested by Stepan Kasal.
1570
1571 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1572
1573         Sync from Automake.
1574         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
1575         `-c' flag, so they appear at the same position as in %FASTDEP%
1576         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
1577         which ignores unknown options only after the first non-option.
1578         Bug report against M4 by Nelson H. F. Beebe.
1579
1580 2006-10-13  Jim Meyering  <jim@meyering.net>
1581
1582         Fix a bug in yesterday's change.
1583         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
1584         p->fts_statp->st_dev would be used uninitialized.
1585         Ensures that we always call fts_stat on the very first entry.
1586         Miklos Szeredi reported that find -xdev stopped working.
1587
1588 2006-10-12  Bruno Haible  <bruno@clisp.org>
1589
1590         * gnulib-tool (func_get_automake_snippet): Append an automatically
1591         computed EXTRA_DIST augmentation.
1592         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
1593         * modules/alloca-opt (Makefile.am): Likewise.
1594         * modules/allocsa (Makefile.am): Likewise.
1595         * modules/arcfour (Makefile.am): Likewise.
1596         * modules/arctwo (Makefile.am): Likewise.
1597         * modules/argmatch (Makefile.am): Likewise.
1598         * modules/argz (Makefile.am): Likewise.
1599         * modules/atexit (Makefile.am): Likewise.
1600         * modules/backupfile (Makefile.am): Likewise.
1601         * modules/byteswap (Makefile.am): Likewise.
1602         * modules/c-strtod (Makefile.am): Likewise.
1603         * modules/c-strtold (Makefile.am): Likewise.
1604         * modules/calloc (Makefile.am): Likewise.
1605         * modules/canon-host (Makefile.am): Likewise.
1606         * modules/canonicalize (Makefile.am): Likewise.
1607         * modules/chdir-long (Makefile.am): Likewise.
1608         * modules/chdir-safer (Makefile.am): Likewise.
1609         * modules/check-version (Makefile.am): Likewise.
1610         * modules/chown (Makefile.am): Likewise.
1611         * modules/cloexec (Makefile.am): Likewise.
1612         * modules/close-stream (Makefile.am): Likewise.
1613         * modules/closeout (Makefile.am): Likewise.
1614         * modules/crc (Makefile.am): Likewise.
1615         * modules/csharpexec (Makefile.am): Likewise.
1616         * modules/cycle-check (Makefile.am): Likewise.
1617         * modules/des (Makefile.am): Likewise.
1618         * modules/dev-ino (Makefile.am): Likewise.
1619         * modules/dirfd (Makefile.am): Likewise.
1620         * modules/dirname (Makefile.am): Likewise.
1621         * modules/dup2 (Makefile.am): Likewise.
1622         * modules/eealloc (Makefile.am): Likewise.
1623         * modules/error (Makefile.am): Likewise.
1624         * modules/euidaccess (Makefile.am): Likewise.
1625         * modules/exclude (Makefile.am): Likewise.
1626         * modules/exitfail (Makefile.am): Likewise.
1627         * modules/fcntl-safer (Makefile.am): Likewise.
1628         * modules/fcntl (Makefile.am): Likewise.
1629         * modules/file-type (Makefile.am): Likewise.
1630         * modules/fileblocks (Makefile.am): Likewise.
1631         * modules/filemode (Makefile.am): Likewise.
1632         * modules/filenamecat (Makefile.am): Likewise.
1633         * modules/fnmatch (Makefile.am): Likewise.
1634         * modules/fopen-safer (Makefile.am): Likewise.
1635         * modules/fpending (Makefile.am): Likewise.
1636         * modules/fprintftime (Makefile.am): Likewise.
1637         * modules/free (Makefile.am): Likewise.
1638         * modules/fsusage (Makefile.am): Likewise.
1639         * modules/ftruncate (Makefile.am): Likewise.
1640         * modules/fts (Makefile.am): Likewise.
1641         * modules/gc-arcfour (Makefile.am): Likewise.
1642         * modules/gc-des (Makefile.am): Likewise.
1643         * modules/gc-hmac-md5 (Makefile.am): Likewise.
1644         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
1645         * modules/gc-md4 (Makefile.am): Likewise.
1646         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1647         * modules/gc-sha1 (Makefile.am): Likewise.
1648         * modules/gc (Makefile.am): Likewise.
1649         * modules/getaddrinfo (Makefile.am): Likewise.
1650         * modules/getcwd (Makefile.am): Likewise.
1651         * modules/getdelim (Makefile.am): Likewise.
1652         * modules/getdomainname (Makefile.am): Likewise.
1653         * modules/getgroups (Makefile.am): Likewise.
1654         * modules/gethostname (Makefile.am): Likewise.
1655         * modules/gethrxtime (Makefile.am): Likewise.
1656         * modules/getline (Makefile.am): Likewise.
1657         * modules/getloadavg (Makefile.am): Likewise.
1658         * modules/getlogin_r (Makefile.am): Likewise.
1659         * modules/getndelim2 (Makefile.am): Likewise.
1660         * modules/getopt (Makefile.am): Likewise.
1661         * modules/getpagesize (Makefile.am): Likewise.
1662         * modules/getpass-gnu (Makefile.am): Likewise.
1663         * modules/getpass (Makefile.am): Likewise.
1664         * modules/getsubopt (Makefile.am): Likewise.
1665         * modules/gettime (Makefile.am): Likewise.
1666         * modules/gettimeofday (Makefile.am): Likewise.
1667         * modules/getugroups (Makefile.am): Likewise.
1668         * modules/getusershell (Makefile.am): Likewise.
1669         * modules/glob (Makefile.am): Likewise.
1670         * modules/group-member (Makefile.am): Likewise.
1671         * modules/hard-locale (Makefile.am): Likewise.
1672         * modules/hash (Makefile.am): Likewise.
1673         * modules/hmac-md5 (Makefile.am): Likewise.
1674         * modules/hmac-sha1 (Makefile.am): Likewise.
1675         * modules/human (Makefile.am): Likewise.
1676         * modules/idcache (Makefile.am): Likewise.
1677         * modules/imaxabs (Makefile.am): Likewise.
1678         * modules/imaxdiv (Makefile.am): Likewise.
1679         * modules/inet_ntop (Makefile.am): Likewise.
1680         * modules/inet_pton (Makefile.am): Likewise.
1681         * modules/intprops (Makefile.am): Likewise.
1682         * modules/inttostr (Makefile.am): Likewise.
1683         * modules/inttypes (Makefile.am): Likewise.
1684         * modules/isapipe (Makefile.am): Likewise.
1685         * modules/javaversion (Makefile.am): Likewise.
1686         * modules/lchmod (Makefile.am): Likewise.
1687         * modules/lchown (Makefile.am): Likewise.
1688         * modules/localcharset (Makefile.am): Likewise.
1689         * modules/long-options (Makefile.am): Likewise.
1690         * modules/lstat (Makefile.am): Likewise.
1691         * modules/malloc (Makefile.am): Likewise.
1692         * modules/mathl (Makefile.am): Likewise.
1693         * modules/mbchar (Makefile.am): Likewise.
1694         * modules/md2 (Makefile.am): Likewise.
1695         * modules/md4 (Makefile.am): Likewise.
1696         * modules/md5 (Makefile.am): Likewise.
1697         * modules/memcasecmp (Makefile.am): Likewise.
1698         * modules/memchr (Makefile.am): Likewise.
1699         * modules/memcmp (Makefile.am): Likewise.
1700         * modules/memcoll (Makefile.am): Likewise.
1701         * modules/memcpy (Makefile.am): Likewise.
1702         * modules/memmem (Makefile.am): Likewise.
1703         * modules/memmove (Makefile.am): Likewise.
1704         * modules/mempcpy (Makefile.am): Likewise.
1705         * modules/memrchr (Makefile.am): Likewise.
1706         * modules/memset (Makefile.am): Likewise.
1707         * modules/memxor (Makefile.am): Likewise.
1708         * modules/mkancesdirs (Makefile.am): Likewise.
1709         * modules/mkdir-p (Makefile.am): Likewise.
1710         * modules/mkdir (Makefile.am): Likewise.
1711         * modules/mkdtemp (Makefile.am): Likewise.
1712         * modules/mkstemp (Makefile.am): Likewise.
1713         * modules/mktime (Makefile.am): Likewise.
1714         * modules/modechange (Makefile.am): Likewise.
1715         * modules/mountlist (Makefile.am): Likewise.
1716         * modules/nanosleep (Makefile.am): Likewise.
1717         * modules/obstack (Makefile.am): Likewise.
1718         * modules/openat (Makefile.am): Likewise.
1719         * modules/pagealign_alloc (Makefile.am): Likewise.
1720         * modules/pathmax (Makefile.am): Likewise.
1721         * modules/physmem (Makefile.am): Likewise.
1722         * modules/poll (Makefile.am): Likewise.
1723         * modules/posixtm (Makefile.am): Likewise.
1724         * modules/posixver (Makefile.am): Likewise.
1725         * modules/putenv (Makefile.am): Likewise.
1726         * modules/quote (Makefile.am): Likewise.
1727         * modules/quotearg (Makefile.am): Likewise.
1728         * modules/raise (Makefile.am): Likewise.
1729         * modules/read-file (Makefile.am): Likewise.
1730         * modules/readline (Makefile.am): Likewise.
1731         * modules/readlink (Makefile.am): Likewise.
1732         * modules/readtokens (Makefile.am): Likewise.
1733         * modules/readutmp (Makefile.am): Likewise.
1734         * modules/realloc (Makefile.am): Likewise.
1735         * modules/regex (Makefile.am): Likewise.
1736         * modules/rename-dest-slash (Makefile.am): Likewise.
1737         * modules/rename (Makefile.am): Likewise.
1738         * modules/rijndael (Makefile.am): Likewise.
1739         * modules/rmdir (Makefile.am): Likewise.
1740         * modules/rpmatch (Makefile.am): Likewise.
1741         * modules/safe-read (Makefile.am): Likewise.
1742         * modules/safe-write (Makefile.am): Likewise.
1743         * modules/same-inode (Makefile.am): Likewise.
1744         * modules/same (Makefile.am): Likewise.
1745         * modules/save-cwd (Makefile.am): Likewise.
1746         * modules/savedir (Makefile.am): Likewise.
1747         * modules/setenv (Makefile.am): Likewise.
1748         * modules/settime (Makefile.am): Likewise.
1749         * modules/sha1 (Makefile.am): Likewise.
1750         * modules/sig2str (Makefile.am): Likewise.
1751         * modules/snprintf (Makefile.am): Likewise.
1752         * modules/stat-macros (Makefile.am): Likewise.
1753         * modules/stat-time (Makefile.am): Likewise.
1754         * modules/stdbool (Makefile.am): Likewise.
1755         * modules/stdint (Makefile.am): Likewise.
1756         * modules/stdlib-safer (Makefile.am): Likewise.
1757         * modules/stpcpy (Makefile.am): Likewise.
1758         * modules/stpncpy (Makefile.am): Likewise.
1759         * modules/strcase (Makefile.am): Likewise.
1760         * modules/strcasestr (Makefile.am): Likewise.
1761         * modules/strchrnul (Makefile.am): Likewise.
1762         * modules/strcspn (Makefile.am): Likewise.
1763         * modules/strdup (Makefile.am): Likewise.
1764         * modules/strerror (Makefile.am): Likewise.
1765         * modules/strftime (Makefile.am): Likewise.
1766         * modules/strndup (Makefile.am): Likewise.
1767         * modules/strnlen (Makefile.am): Likewise.
1768         * modules/strpbrk (Makefile.am): Likewise.
1769         * modules/strsep (Makefile.am): Likewise.
1770         * modules/strstr (Makefile.am): Likewise.
1771         * modules/strtod (Makefile.am): Likewise.
1772         * modules/strtoimax (Makefile.am): Likewise.
1773         * modules/strtok_r (Makefile.am): Likewise.
1774         * modules/strtol (Makefile.am): Likewise.
1775         * modules/strtoll (Makefile.am): Likewise.
1776         * modules/strtoul (Makefile.am): Likewise.
1777         * modules/strtoull (Makefile.am): Likewise.
1778         * modules/strtoumax (Makefile.am): Likewise.
1779         * modules/strverscmp (Makefile.am): Likewise.
1780         * modules/sys_socket (Makefile.am): Likewise.
1781         * modules/sys_stat (Makefile.am): Likewise.
1782         * modules/sysexits (Makefile.am): Likewise.
1783         * modules/time_r (Makefile.am): Likewise.
1784         * modules/timegm (Makefile.am): Likewise.
1785         * modules/timespec (Makefile.am): Likewise.
1786         * modules/tmpfile-safer (Makefile.am): Likewise.
1787         * modules/trim (Makefile.am): Likewise.
1788         * modules/unistd-safer (Makefile.am): Likewise.
1789         * modules/unlinkdir (Makefile.am): Likewise.
1790         * modules/unlocked-io (Makefile.am): Likewise.
1791         * modules/userspec (Makefile.am): Likewise.
1792         * modules/utime (Makefile.am): Likewise.
1793         * modules/utimecmp (Makefile.am): Likewise.
1794         * modules/utimens (Makefile.am): Likewise.
1795         * modules/vasnprintf (Makefile.am): Likewise.
1796         * modules/vasprintf (Makefile.am): Likewise.
1797         * modules/vsnprintf (Makefile.am): Likewise.
1798         * modules/xalloc (Makefile.am): Likewise.
1799         * modules/xgetcwd (Makefile.am): Likewise.
1800         * modules/xnanosleep (Makefile.am): Likewise.
1801         * modules/xreadlink (Makefile.am): Likewise.
1802         * modules/xstrtod (Makefile.am): Likewise.
1803         * modules/xstrtol (Makefile.am): Likewise.
1804         * modules/xstrtold (Makefile.am): Likewise.
1805         * modules/yesno (Makefile.am): Likewise.
1806         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
1807
1808 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1809
1810         * modules/error (Makefile.am): Distribute files through
1811         EXTRA_DIST, not lib_SOURCES.
1812
1813 2006-10-12  Eric Blake  <ebb9@byu.net>
1814
1815         * modules/error (Makefile.am): Distribute files in /lib.
1816         * modules/obstack (Makefile.am): Likewise.
1817
1818 2006-10-12  Bruno Haible  <bruno@clisp.org>
1819
1820         * modules/acl (Makefile.am): Distribute all files in lib/ through
1821         EXTRA_DIST.
1822         * modules/arcfour (Makefile.am): Likewise.
1823         * modules/arctwo (Makefile.am): Likewise.
1824         * modules/argmatch (Makefile.am): Likewise.
1825         * modules/argz (Makefile.am): Likewise.
1826         * modules/atexit (Makefile.am): Likewise.
1827         * modules/backupfile (Makefile.am): Likewise.
1828         * modules/c-strtod (Makefile.am): Likewise.
1829         * modules/c-strtold (Makefile.am): Likewise.
1830         * modules/calloc (Makefile.am): Likewise.
1831         * modules/canon-host (Makefile.am): Likewise.
1832         * modules/canonicalize (Makefile.am): Likewise.
1833         * modules/chdir-long (Makefile.am): Likewise.
1834         * modules/chdir-safer (Makefile.am): Likewise.
1835         * modules/check-version (Makefile.am): Likewise.
1836         * modules/chown (Makefile.am): Likewise.
1837         * modules/cloexec (Makefile.am): Likewise.
1838         * modules/close-stream (Makefile.am): Likewise.
1839         * modules/closeout (Makefile.am): Likewise.
1840         * modules/crc (Makefile.am): Likewise.
1841         * modules/cycle-check (Makefile.am): Likewise.
1842         * modules/des (Makefile.am): Likewise.
1843         * modules/dirfd (Makefile.am): Likewise.
1844         * modules/dirname (Makefile.am): Likewise.
1845         * modules/dup2 (Makefile.am): Likewise.
1846         * modules/euidaccess (Makefile.am): Likewise.
1847         * modules/exclude (Makefile.am): Likewise.
1848         * modules/exitfail (Makefile.am): Likewise.
1849         * modules/fcntl-safer (Makefile.am): Likewise.
1850         * modules/file-type (Makefile.am): Likewise.
1851         * modules/fileblocks (Makefile.am): Likewise.
1852         * modules/filemode (Makefile.am): Likewise.
1853         * modules/filenamecat (Makefile.am): Likewise.
1854         * modules/fnmatch (Makefile.am): Likewise.
1855         * modules/fopen-safer (Makefile.am): Likewise.
1856         * modules/fpending (Makefile.am): Likewise.
1857         * modules/fprintftime (Makefile.am): Likewise.
1858         * modules/free (Makefile.am): Likewise.
1859         * modules/fsusage (Makefile.am): Likewise.
1860         * modules/ftruncate (Makefile.am): Likewise.
1861         * modules/fts (Makefile.am): Likewise.
1862         * modules/gc (Makefile.am): Likewise.
1863         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1864         * modules/getaddrinfo (Makefile.am): Likewise.
1865         * modules/getcwd (Makefile.am): Likewise.
1866         * modules/getdelim (Makefile.am): Likewise.
1867         * modules/getdomainname (Makefile.am): Likewise.
1868         * modules/getgroups (Makefile.am): Likewise.
1869         * modules/gethostname (Makefile.am): Likewise.
1870         * modules/gethrxtime (Makefile.am): Likewise.
1871         * modules/getline (Makefile.am): Likewise.
1872         * modules/getloadavg (Makefile.am): Likewise.
1873         * modules/getlogin_r (Makefile.am): Likewise.
1874         * modules/getopt (Makefile.am): Likewise.
1875         * modules/getpass (Makefile.am): Likewise.
1876         * modules/getpass-gnu (Makefile.am): Likewise.
1877         * modules/getsubopt (Makefile.am): Likewise.
1878         * modules/gettime (Makefile.am): Likewise.
1879         * modules/gettimeofday (Makefile.am): Likewise.
1880         * modules/getugroups (Makefile.am): Likewise.
1881         * modules/getusershell (Makefile.am): Likewise.
1882         * modules/glob (Makefile.am): Likewise.
1883         * modules/group-member (Makefile.am): Likewise.
1884         * modules/hard-locale (Makefile.am): Likewise.
1885         * modules/hash (Makefile.am): Likewise.
1886         * modules/hmac-md5 (Makefile.am): Likewise.
1887         * modules/hmac-sha1 (Makefile.am): Likewise.
1888         * modules/human (Makefile.am): Likewise.
1889         * modules/idcache (Makefile.am): Likewise.
1890         * modules/imaxabs (Makefile.am): Likewise.
1891         * modules/imaxdiv (Makefile.am): Likewise.
1892         * modules/inet_ntop (Makefile.am): Likewise.
1893         * modules/inet_pton (Makefile.am): Likewise.
1894         * modules/inttostr (Makefile.am): Likewise.
1895         * modules/isapipe (Makefile.am): Likewise.
1896         * modules/lchown (Makefile.am): Likewise.
1897         * modules/long-options (Makefile.am): Likewise.
1898         * modules/lstat (Makefile.am): Likewise.
1899         * modules/malloc (Makefile.am): Likewise.
1900         * modules/mathl (Makefile.am): Likewise.
1901         * modules/mbchar (Makefile.am): Likewise.
1902         * modules/md2 (Makefile.am): Likewise.
1903         * modules/md4 (Makefile.am): Likewise.
1904         * modules/md5 (Makefile.am): Likewise.
1905         * modules/memcasecmp (Makefile.am): Likewise.
1906         * modules/memchr (Makefile.am): Likewise.
1907         * modules/memcmp (Makefile.am): Likewise.
1908         * modules/memcoll (Makefile.am): Likewise.
1909         * modules/memcpy (Makefile.am): Likewise.
1910         * modules/memmem (Makefile.am): Likewise.
1911         * modules/memmove (Makefile.am): Likewise.
1912         * modules/mempcpy (Makefile.am): Likewise.
1913         * modules/memrchr (Makefile.am): Likewise.
1914         * modules/memset (Makefile.am): Likewise.
1915         * modules/memxor (Makefile.am): Likewise.
1916         * modules/mkancesdirs (Makefile.am): Likewise.
1917         * modules/mkdir (Makefile.am): Likewise.
1918         * modules/mkdir-p (Makefile.am): Likewise.
1919         * modules/mkdtemp (Makefile.am): Likewise.
1920         * modules/mkstemp (Makefile.am): Likewise.
1921         * modules/mktime (Makefile.am): Likewise.
1922         * modules/modechange (Makefile.am): Likewise.
1923         * modules/mountlist (Makefile.am): Likewise.
1924         * modules/nanosleep (Makefile.am): Likewise.
1925         * modules/openat (Makefile.am): Likewise.
1926         * modules/pagealign_alloc (Makefile.am): Likewise.
1927         * modules/physmem (Makefile.am): Likewise.
1928         * modules/poll (Makefile.am): Likewise.
1929         * modules/posixtm (Makefile.am): Likewise.
1930         * modules/posixver (Makefile.am): Likewise.
1931         * modules/putenv (Makefile.am): Likewise.
1932         * modules/quote (Makefile.am): Likewise.
1933         * modules/quotearg (Makefile.am): Likewise.
1934         * modules/raise (Makefile.am): Likewise.
1935         * modules/read-file (Makefile.am): Likewise.
1936         * modules/readline (Makefile.am): Likewise.
1937         * modules/readlink (Makefile.am): Likewise.
1938         * modules/readtokens (Makefile.am): Likewise.
1939         * modules/readutmp (Makefile.am): Likewise.
1940         * modules/realloc (Makefile.am): Likewise.
1941         * modules/regex (Makefile.am): Likewise.
1942         * modules/rename (Makefile.am): Likewise.
1943         * modules/rename-dest-slash (Makefile.am): Likewise.
1944         * modules/rijndael (Makefile.am): Likewise.
1945         * modules/rmdir (Makefile.am): Likewise.
1946         * modules/rpmatch (Makefile.am): Likewise.
1947         * modules/safe-read (Makefile.am): Likewise.
1948         * modules/safe-write (Makefile.am): Likewise.
1949         * modules/same (Makefile.am): Likewise.
1950         * modules/save-cwd (Makefile.am): Likewise.
1951         * modules/savedir (Makefile.am): Likewise.
1952         * modules/setenv (Makefile.am): Likewise.
1953         * modules/settime (Makefile.am): Likewise.
1954         * modules/sha1 (Makefile.am): Likewise.
1955         * modules/sig2str (Makefile.am): Likewise.
1956         * modules/snprintf (Makefile.am): Likewise.
1957         * modules/stdlib-safer (Makefile.am): Likewise.
1958         * modules/stpcpy (Makefile.am): Likewise.
1959         * modules/stpncpy (Makefile.am): Likewise.
1960         * modules/strcase (Makefile.am): Likewise.
1961         * modules/strcasestr (Makefile.am): Likewise.
1962         * modules/strchrnul (Makefile.am): Likewise.
1963         * modules/strcspn (Makefile.am): Likewise.
1964         * modules/strdup (Makefile.am): Likewise.
1965         * modules/strerror (Makefile.am): Likewise.
1966         * modules/strftime (Makefile.am): Likewise.
1967         * modules/strndup (Makefile.am): Likewise.
1968         * modules/strnlen (Makefile.am): Likewise.
1969         * modules/strpbrk (Makefile.am): Likewise.
1970         * modules/strsep (Makefile.am): Likewise.
1971         * modules/strstr (Makefile.am): Likewise.
1972         * modules/strtod (Makefile.am): Likewise.
1973         * modules/strtoimax (Makefile.am): Likewise.
1974         * modules/strtok_r (Makefile.am): Likewise.
1975         * modules/strtol (Makefile.am): Likewise.
1976         * modules/strtoll (Makefile.am): Likewise.
1977         * modules/strtoul (Makefile.am): Likewise.
1978         * modules/strtoull (Makefile.am): Likewise.
1979         * modules/strtoumax (Makefile.am): Likewise.
1980         * modules/strverscmp (Makefile.am): Likewise.
1981         * modules/time_r (Makefile.am): Likewise.
1982         * modules/timegm (Makefile.am): Likewise.
1983         * modules/tmpfile-safer (Makefile.am): Likewise.
1984         * modules/unistd-safer (Makefile.am): Likewise.
1985         * modules/unlinkdir (Makefile.am): Likewise.
1986         * modules/userspec (Makefile.am): Likewise.
1987         * modules/utime (Makefile.am): Likewise.
1988         * modules/utimecmp (Makefile.am): Likewise.
1989         * modules/utimens (Makefile.am): Likewise.
1990         * modules/vasnprintf (Makefile.am): Likewise.
1991         * modules/vasprintf (Makefile.am): Likewise.
1992         * modules/vsnprintf (Makefile.am): Likewise.
1993         * modules/xalloc (Makefile.am): Likewise.
1994         * modules/xgetcwd (Makefile.am): Likewise.
1995         * modules/xnanosleep (Makefile.am): Likewise.
1996         * modules/xreadlink (Makefile.am): Likewise.
1997         * modules/xstrtod (Makefile.am): Likewise.
1998         * modules/xstrtol (Makefile.am): Likewise.
1999         * modules/xstrtold (Makefile.am): Likewise.
2000         * modules/yesno (Makefile.am): Likewise.
2001
2002 2006-10-12  Jim Meyering  <jim@meyering.net>
2003
2004         * m4/getloadavg.m4: Revert the change below.
2005
2006         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
2007         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
2008         fail with a symlink, which is what coreutils' ./bootstrap now
2009         creates by default.
2010
2011 2006-10-12  Bruno Haible  <bruno@clisp.org>
2012
2013         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
2014         mingw.
2015         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
2016         MSVC and mingw explicitly.
2017
2018 2006-10-11  Simon Josefsson  <jas@extundo.com>
2019             Bruno Haible  <bruno@clisp.org>
2020
2021         Add support for multiple gnulib-tool invocations in the scope of a
2022         single configure.ac file.
2023         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
2024         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
2025         with the same contents as the _LIBADD variable.
2026         (func_emit_initmacro_start, func_emit_initmacro_end,
2027         func_emit_initmacro_done): New functions.
2028         (func_import, func_create_testdir): Invoke them. Allow the identifiers
2029         gl_LIBOBJS and gl_LTLIBOBJS.
2030
2031 2006-10-11  Bruno Haible  <bruno@clisp.org>
2032
2033         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
2034         (func_create_testdir): Don't create po/Makefile.am, don't invoke
2035         autoreconf. Instead, invoke autopoint explicitly but move back the
2036         *.m4 files from gnulib.
2037
2038 2006-10-11  Bruno Haible  <bruno@clisp.org>
2039
2040         * gnulib-tool (func_usage): Make module names after --create-testdir
2041         optional.
2042         (func_create_testdir): If no module was specified, use nearly all
2043         modules.
2044
2045 2006-10-12  Jim Meyering  <jim@meyering.net>
2046
2047         Big performance improvement for fts-based tools that use FTS_NOSTAT.
2048         Avoid spurious inode-mismatch problems on non-POSIX file systems.
2049         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
2050         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
2051         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
2052         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
2053         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
2054         (fts_set_stat_required): New function.
2055         (fts_open): Defer the calls to fts_stat, if possible or requested.
2056         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
2057         into fts_stat itself.
2058         (fts_read): Perform any required (deferred) fts_stat call.
2059         (fts_build): Likewise, for the directory we're about to open and read.
2060         In the readdir loop, carefully decide whether each entry will require
2061         an eventual call to fts_stat, using dirent.d_type info if available.
2062         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
2063         a command line argument into this function.  Update all callers.
2064         Map a return value of FTS_DOT to FTS_D for a command line argument.
2065         * modules/fts (Depends-on): Add d-type.  Alphabetize.
2066         Thanks to Miklos Szeredi for his tenacity and for the initial
2067         bug report about "find" failing on a FUSE-based file system.
2068
2069         * lib/fts.c (fts_open): Use consistent indentation.
2070
2071 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2072
2073         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
2074         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
2075         reported by Jim Meyering.  All uses of cache variables renamed
2076         to match Autoconf's.
2077         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
2078         the other one.
2079
2080         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2081         Fix misspelling in diagnostic.
2082
2083 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
2086         defined.  Problem reported by Matthew Woehlke.
2087
2088         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
2089         Add support for Tandem NonStop R series.
2090         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
2091         Use new macro.
2092
2093         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
2094         (has_trailing_slash): Omit size arg; all callers changed.
2095         Omit 'inline', since it doesn't help performance and we'd
2096         need to configure it.
2097         Don't count //, ///, etc. as having a trailing slash.
2098         As a side effect, this removes a C99ism reported by Matthew Woehlke.
2099         (rpl_rename_dest_slash): On failure, use rename's errno rather
2100         than (in some cases) an incorrect or junk errno.
2101         Simplify code by removing need to compute length; this does
2102         cause it to make two passes instead of one over the file name,
2103         but it's worth it.
2104
2105         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
2106         change, since Autoconf's version may no longer be appropriate now
2107         that we are using CVS Autoconf's version.  Add support for Tandem.
2108
2109 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2110             Bruno Haible  <bruno@clisp.org>
2111
2112         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
2113         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
2114         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
2115         gl_AC_TYPE_LONG_LONG.
2116
2117         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
2118         instead of HAVE_LONG_LONG.
2119         * lib/printf-args.c (printf_fetchargs): Likewise.
2120         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2121         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2122         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
2123         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
2124         gl_AC_TYPE_LONG_LONG.
2125
2126 2006-10-11  Bruno Haible  <bruno@clisp.org>
2127
2128         * m4/longlong.m4: Add comments.
2129         * m4/ulonglong.m4: Likewise.
2130
2131 2006-10-10  Bruno Haible  <bruno@clisp.org>
2132
2133         Make it possible to #define stpcpy, strdup to aliases.
2134         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
2135         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
2136
2137 2006-10-10  Bruno Haible  <bruno@clisp.org>
2138
2139         Make it possible to #define gcd to an alias.
2140         * lib/gcd.c: Include config.h.
2141
2142 2006-10-10  Bruno Haible  <bruno@clisp.org>
2143
2144         Make it possible to #define c_isascii to an alias.
2145         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
2146         defined. Undefine the macros before defining them, to avoid gcc
2147         warnings.
2148         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
2149         define NO_C_CTYPE_MACROS early.
2150
2151 2006-10-10  Bruno Haible  <bruno@clisp.org>
2152
2153         Make it possible to #define set_program_name to an alias.
2154         * lib/progname.c: Don't undefine set_program_name; instead, undefine
2155         ENABLE_RELOCATABLE early.
2156
2157 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2158
2159         Port to Tandem NSK OSS, which has 64-bit signed int but at most
2160         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
2161         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
2162         More generally, don't assume that 64-bit signed int is available
2163         if unsigned int is, and vice versa.
2164         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
2165         unsigned symbols, not on their signed counterparts.
2166         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
2167         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
2168         (UINT64_C, UINTMAX_C):
2169         Likewise.
2170         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
2171         unsigned counterparts.
2172         (Have_long_long, Unsigned): New macros.
2173         (Int): Renamed from INT.
2174         (strtoimax): Use the new macros.
2175         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
2176         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
2177         * modules/inttypes (inttypes.h): Substitute
2178         HAVE_UNSIGNED_LONG_LONG_INT.
2179         * modules/stdint (stdint.h): Likewise.
2180         (Files): Add m4/ulonglong.m4.
2181
2182 2006-10-10  Bruno Haible  <bruno@clisp.org>
2183
2184         Fix a gcc -Wshadow warning.
2185         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
2186         to 'bucket'.
2187         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
2188         gl_linked_indexof_from_to): Likewise.
2189         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
2190         Likewise.
2191         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
2192         Likewise.
2193         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
2194         Reported by Eric Blake.
2195
2196 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
2197
2198         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
2199         for NetBSD.  Problem reported by Bruno Haible.
2200
2201 2006-10-09  Jim Meyering  <jim@meyering.net>
2202
2203         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
2204         Patch from Bruno Haible.
2205
2206 2006-10-09  Jim Meyering  <jim@meyering.net>
2207
2208         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
2209         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
2210         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
2211
2212 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         Don't include <config.h> twice; this doesn't work in some cases,
2215         e.g., when config.h has "#define intmax_t long long int" and
2216         we include <config.h>, <inttypes.h>, <config.h> in that order.
2217         Problem reported by Matthew Woehlke in:
2218         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
2219         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
2220         * lib/fts-cycle.c: Don't include config.h.
2221         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
2222         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
2223         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
2224         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
2225         inttypes.h.
2226         * lib/xstrtoumax.c: Likewise.
2227         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
2228         __strtol and the like, so that this module is more like its siblings.
2229         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
2230         Remove; no longer needed now that we assume gnulib inttypes.h.
2231
2232 2006-10-08  Bruno Haible  <bruno@clisp.org>
2233
2234         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
2235         option.
2236
2237 2006-10-07  Jim Meyering  <jim@meyering.net>
2238
2239         * modules/inttypes (inttypes.h): Revert what seems to have been
2240         an inadvertent part of today's change: use "|", not "/" in the
2241         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
2242
2243 2006-10-07  Bruno Haible  <bruno@clisp.org>
2244
2245         * modules/sublist: New file.
2246
2247 2006-10-07  Bruno Haible  <bruno@clisp.org>
2248
2249         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
2250         * modules/argz (argz.h): Likewise.
2251         * modules/arpa_inet (arpa/inet.h): Likewise.
2252         * modules/byteswap (byteswap.h): Likewise.
2253         * modules/configmake (configmake.h): Likewise.
2254         * modules/fcntl (fcntl.h): Likewise.
2255         * modules/fnmatch (fnmatch.h): Likewise.
2256         * modules/getopt (getopt.h): Likewise.
2257         * modules/glob (glob.h): Likewise.
2258         * modules/inttypes (inttypes.h): Likewise.
2259         * modules/netinet_in (netinet/in.h): Likewise.
2260         * modules/poll (poll.h): Likewise.
2261         * modules/stdbool (stdbool.h): Likewise.
2262         * modules/stdint (stdint.h): Likewise.
2263         * modules/sys_select (sys/select.h): Likewise.
2264         * modules/sys_socket (sys/socket.h): Likewise.
2265         * modules/sys_stat (sys/stat.h): Likewise.
2266         * modules/sysexits (sysexits.h): Likewise.
2267         * modules/unistd (unistd.h): Likewise.
2268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2269         Add a "DO NOT EDIT" comment to the generated file.
2270         (func_import): Likewise for gnulib-comp.m4.
2271
2272 2006-10-07  Bruno Haible  <bruno@clisp.org>
2273
2274         * lib/gl_sublist.h: New file.
2275         * lib/gl_sublist.c: New file.
2276
2277 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
2278
2279         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
2280         name (relative to the original working directory) and the file
2281         name component (relative to the temporary working directory).  All
2282         callers changed.
2283         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
2284         * lib/mkdir-p.c (make_dir_parents): Likewise.
2285         * lib/mkdir-p.h (make_dir_parents): Likewise.
2286
2287 2006-10-06  Eric Blake  <ebb9@byu.net>
2288
2289         Define several macros for use by the clean-temp module.
2290         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
2291         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
2292         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
2293
2294         * lib/clean-temp.h (close_stream_temp): New declaration.
2295         * lib/clean-temp.c (includes): Pull in headers according to what
2296         other modules are in use.
2297         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
2298
2299 2006-10-06  Bruno Haible  <bruno@clisp.org>
2300
2301         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
2302         instead of fopen, fwriteerror.
2303
2304 2006-10-06  Bruno Haible  <bruno@clisp.org>
2305
2306         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
2307         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
2308         int.
2309         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
2310         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
2311         Return an error indicator.
2312         Suggested by Eric Blake.
2313
2314 2006-10-06  Bruno Haible  <bruno@clisp.org>
2315
2316         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
2317         Reported by Eric Blake.
2318
2319 2006-10-06  Bruno Haible  <bruno@clisp.org>
2320
2321         * modules/closeout (Description): Mention stderr too.
2322
2323 2006-10-06  Bruno Haible  <bruno@clisp.org>
2324         and Paul Eggert  <eggert@cs.ucla.edu>
2325
2326         * lib/closeout.c (close_stdout): Also close stderr.
2327         * lib/closeout.h: Update comment.
2328
2329 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2330
2331         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
2332         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
2333         * lib/dirchownmod.c: Include lchown.h.
2334         * lib/lchown.c: Don't include files that lchown.h now includes.
2335         Don't declare chown, since lchown.h now does that.
2336         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
2337         (lchown): Define to rpl_chown if lchown is declared but
2338         does not exist.  Declare using a prototype if lchown is not
2339         declared.  Add a copyright notice.
2340         * lib/mkstemp.h: Include <unistd.h>.
2341         * lib/openat.c: Include lchown.h.
2342
2343         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
2344         we now test for that separately.
2345         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
2346         rather than O_NOFOLLOW, when testing whether it's possible to
2347         avoid a race condition reliably.
2348         * lib/savewd.c (savewd_chdir): Likewise.
2349
2350         Remove macros that are no longer needed now that stdint.h is
2351         reliable.
2352         * lib/fsusage.c (UINTMAX_MAX): Remove.
2353         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
2354         * lib/utimecmp.c (SIZE_MAX): Remove.
2355
2356         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
2357
2358         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
2359         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
2360         O_NOATIME works.
2361
2362 2006-10-05  Bruno Haible  <bruno@clisp.org>
2363
2364         * lib/gl_list.h (gl_sortedlist_search_from_to,
2365         gl_sortedlist_indexof_from_to): New declarations.
2366         (gl_list_implementation): New fields sortedlist_search_from_to,
2367         sortedlist_indexof_from_to.
2368         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
2369         inline functions.
2370         * lib/gl_list.c (gl_sortedlist_search_from_to,
2371         gl_sortedlist_indexof_from_to): New functions.
2372         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
2373         function.
2374         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
2375         (gl_array_sortedlist_search_from_to): New function.
2376         (gl_array_list_implementation): Update.
2377         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
2378         function.
2379         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
2380         (gl_carray_sortedlist_search_from_to): New function.
2381         (gl_carray_list_implementation): Update.
2382         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
2383         gl_linked_sortedlist_indexof_from_to): New functions.
2384         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2385         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2386         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
2387         gl_tree_sortedlist_indexof_from_to): New functions.
2388         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2389         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2390         Update.
2391         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2392         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
2393         Update.
2394
2395 2006-10-05  Bruno Haible  <bruno@clisp.org>
2396
2397         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
2398         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
2399         (struct gl_list_implementation): Add fields search_from_to,
2400         indexof_from_to. Remove fields search, indexof.
2401         (gl_list_search): Use the search_from_to method.
2402         (gl_list_search_from, gl_list_search_from_to): New functions.
2403         (gl_list_indexof): Use the indexof_from_to method.
2404         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2405         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
2406         (gl_list_search_from, gl_list_search_from_to): New functions.
2407         (gl_list_indexof): Use the indexof_from_to method.
2408         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2409         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
2410         gl_array_indexof. Add start_index, end_index arguments.
2411         (gl_array_search_from_to): Renamed from gl_array_search. Add
2412         start_index, end_index arguments.
2413         (gl_array_remove, gl_array_list_implementation): Update.
2414         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
2415         gl_carray_indexof. Add start_index, end_index arguments.
2416         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
2417         start_index, end_index arguments.
2418         (gl_carray_remove, gl_carray_list_implementation): Update.
2419         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
2420         gl_linked_search. Add start_index, end_index arguments.
2421         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
2422         start_index, end_index arguments.
2423         (gl_linked_remove): Update.
2424         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2425         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2426         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
2427         field to 'size_t'.
2428         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
2429         gl_tree_search. Add start_index, end_index arguments.
2430         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2431         start_index, end_index arguments.
2432         (gl_tree_remove): Update.
2433         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2434         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2435         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
2436         function.
2437         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
2438         gl_tree_search. Add start_index, end_index arguments.
2439         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2440         start_index, end_index arguments.
2441         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2442         Update.
2443         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
2444
2445 2006-10-05  Bruno Haible  <bruno@clisp.org>
2446
2447         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
2448
2449         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2450         fwriteerror_temp): New declarations.
2451         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
2452         (descriptors): New variable.
2453         (cleanup): First, close the descriptors.
2454         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
2455         fclose_temp, fwriteerror_temp): New functions.
2456
2457 2006-10-04  Jim Meyering  <jim@meyering.net>
2458
2459         * lib/fts.c (fts_open): Tiny comment change.
2460
2461 2006-10-04  Bruno Haible  <bruno@clisp.org>
2462
2463         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
2464         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
2465         gl_LOCK_BODY.
2466         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
2467         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
2468         gl_LOCK_EARLY_BODY.
2469         (gl_LOCK): Require gl_LOCK_BODY.
2470
2471 2006-10-04  Bruno Haible  <bruno@clisp.org>
2472
2473         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
2474         (gl_oset_search_atleast): New declaration.
2475         (struct gl_oset_implementation): Add field 'search_atleast'.
2476         (gl_oset_search_atleast): New inline function.
2477         * lib/gl_oset.c (gl_oset_search_atleast): New function.
2478         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
2479         (gl_array_oset_implementation): Update.
2480         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
2481         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
2482         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
2483
2484 2006-10-04  Bruno Haible  <bruno@clisp.org>
2485
2486         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
2487
2488 2006-10-03  Bruno Haible  <bruno@clisp.org>
2489
2490         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
2491         from gl_avltreehash_list_implementation.
2492
2493 2006-10-03  Bruno Haible  <bruno@clisp.org>
2494
2495         * lib/gl_oset.c (gl_oset_add): Fix return type.
2496
2497 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
2498
2499         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
2500
2501 2006-10-02  Eric Blake  <ebb9@byu.net>
2502
2503         * modules/strnlen (Depends-on): Add extensions.
2504
2505 2006-10-02  Eric Blake  <ebb9@byu.net>
2506
2507         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
2508         definition in 2.60+.
2509
2510 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2511
2512         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
2513         checks.
2514
2515 2006-10-02  Bruno Haible  <bruno@clisp.org>
2516
2517         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
2518         to the AUTOMAKE_OPTIONS.
2519         Reported by Jim Meyering.
2520
2521 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
2522
2523         Work around bug in Solaris 10 /proc file system:
2524         /proc/self/fd/NNN/.. isn't the parent directory of
2525         the directory whose file descriptor is NNN.  This needs to
2526         be worked around at run time, not compile time, since a
2527         program might be built on Solaris 8, where things work, and
2528         run on Solaris 10.
2529         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
2530         to use the following interface instead:
2531         (OPENAT_BUFFER_SIZE): New macro.
2532         (openat_proc_name): New function.
2533         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
2534         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
2535         Likewise.
2536         * lib/openat-proc.c: New file.
2537         * modules/openat (Files): Add lib/openat-proc.c.
2538         (Depends-on): Add same-inode, stdbool.
2539         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
2540
2541 2006-09-29  Bruno Haible  <bruno@clisp.org>
2542
2543         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
2544         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
2545         argument. Set stdout_closed before testing for ferror, not after.
2546         (fwriteerror, fwriteerror_no_ebadf): New functions.
2547
2548 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2549
2550         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
2551
2552 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
2553
2554         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
2555         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
2556
2557 2006-09-28  Jim Meyering  <jim@meyering.net>
2558
2559         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
2560         Include <unistd.h>.
2561
2562 2006-09-28  Bruno Haible  <bruno@clisp.org>
2563
2564         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
2565         * modules/linkedhash-list (Depends-on): Likewise.
2566         * modules/rbtreehash-list (Depends-on): Likewise.
2567
2568 2006-09-28  Bruno Haible  <bruno@clisp.org>
2569
2570         * lib/strndup.h: Simplify the redefinition of strndup.
2571         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
2572         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
2573
2574 2006-09-28  Bruno Haible  <bruno@clisp.org>
2575
2576         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
2577         * lib/gl_linkedhash_list.c: Likewise.
2578         * lib/gl_rbtreehash_list.c: Likewise.
2579
2580 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
2581
2582         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
2583         getaddrinfo.
2584
2585         * lib/__fpending.h: Don't include <stdio_ext.h> unless
2586         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
2587         it causes <stdio_ext.h> to cause a compile-time error.
2588         Problem reported by Nelson H. F. Beebe.
2589         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
2590         of HAVE_DECL___PENDING.
2591
2592         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
2593         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
2594         declaration.
2595
2596 2006-09-27  Jim Meyering  <jim@meyering.net>
2597
2598         This file could end up with a definition for a function
2599         named __strndup, rather than rpl_strndup on a system with
2600         incomplete weak_alias support.
2601         * lib/strndup.c (strndup): Rename from __strndup.
2602         Remove #defines that used to map __strndup to strndup.
2603         Don't use K&R prototypes.
2604         Remove LIBC-related code, since this file is not sync'd with glibc.
2605         * lib/strndup.h: Revamp, accordingly.
2606         * m4/strndup.m4: Modernize.
2607
2608 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2609
2610         * modules/savewd (Depends-on): Add 'raise'.
2611         * lib/savewd.c: Include <signal.h>, for 'raise'.
2612
2613 2006-09-26  Jim Meyering  <jim@meyering.net>
2614
2615         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
2616         when we detect Darwin 8.7.0's acl_get_file bug.
2617         Rearrange to perform the new (below) run-test while $LIBS
2618         contains any acl-related library.  Set USE_ACL at the end.
2619         (gl_ACL_GET_FILE): New function.
2620
2621 2006-09-26  Eric Blake  <ebb9@byu.net>
2622
2623         * lib/verror.c: Include <config.h> unconditionally.
2624
2625 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2626
2627         * modules/clock-time (Maintainer): Add self.
2628         * modules/getlogin_r (Depends-on): Add extensions.
2629
2630 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2631
2632         * modules/clock-time: New module.
2633         * modules/nanosleep (Depends-on): Add clock-time.
2634         * modules/gethrxtime (Depends-on): Likewise.
2635         * modules/gettime (Depends-on): Likewise.
2636         * modules/settime (Depends-on): Likewise.
2637
2638         * modules/fts-lgpl: Depend on openat.
2639         * modules/mkancesdirs: Depend on savewd.
2640         * modules/mkdir-p: Likewise.
2641
2642 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2643
2644         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
2645
2646         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
2647         `gl_have_arbitrary_file_name_length_limit' to
2648         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
2649         actually works between configure runs.
2650
2651 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2652             Bruno Haible  <bruno@clisp.org>
2653
2654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
2655
2656 2006-09-25  Jim Meyering  <jim@meyering.net>
2657
2658         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
2659         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
2660
2661 2006-09-25  Eric Blake  <ebb9@byu.net>
2662
2663         * gnulib-tool (func_import, func_create_testdir): Fix typos in
2664         exec's in 2006-09-18 patch when shuffling fds.
2665
2666 2006-09-25  Bruno Haible  <bruno@clisp.org>
2667
2668         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
2669         Reported by Jim Meyering.
2670
2671 2006-09-24  Jim Meyering  <jim@meyering.net>
2672
2673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
2674         compare a pointer against a literal "0".  That caused failures with
2675         at least HP-UX's hpcc.
2676
2677 2006-09-22  Simon Josefsson  <jas@extundo.com>
2678
2679         * modules/gc-sha1:
2680         * modules/gc-md4:
2681         * modules/gc-hmac-sha1:
2682         * modules/gc-hmac-md5:
2683         * modules/gc-des:
2684         * modules/gc-arcfour: Distribute more files.
2685
2686 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2687
2688         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
2689         (gl_linked_iterator_from_to): Initialize struct completely.
2690         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
2691         (gl_tree_iterator_from_to): Likewise
2692         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
2693         * lib/gl_array_list.c [lint] (gl_array_iterator)
2694         (gl_array_iterator_from_to): Likewise.
2695         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
2696         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
2697         (gl_carray_iterator_from_to): Likewise.
2698
2699         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
2700         * lib/md4.c (md4_process_block): Remove unused variable.
2701         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
2702         parentheses for clarity.
2703
2704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2705
2706         * modules/bison-i18n (Depends-on): Add gettext.
2707
2708 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2709
2710         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
2711         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
2712         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
2713         also add missing comma that caused broken test.
2714         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
2715         stdlib.h, for `abort'.
2716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
2717         variables.
2718         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
2719         include unistd.h if present, for `rmdir'.
2720         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
2721         variables.
2722         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
2723         in the process include standard headers for prototypes.
2724         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
2725         gets declared on GNU/Linux.
2726         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
2727         unistd.h, for `rmdir'.
2728         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
2729
2730         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
2731         always true.
2732         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
2733
2734         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
2735
2736 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2737
2738         * gnulib-tool (func_version): Create output all at once.  This
2739         may help avoid triggering unnecessary SIGPIPEs, and at any
2740         rate it doesn't hurt.
2741
2742 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2743             Bruno Haible  <bruno@clisp.org>
2744
2745         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
2746         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2747         * m4/signed.m4 (bh_C_SIGNED): Likewise.
2748
2749         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
2750         (gl_FUNC_VASPRINTF): Invoke it.
2751
2752 2006-09-22  Bruno Haible  <bruno@clisp.org>
2753
2754         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
2755         getloadavg.c as first argument.
2756
2757 2006-09-22  Bruno Haible  <bruno@clisp.org>
2758
2759         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
2760         at the beginning of the gl_INIT macro.
2761         * modules/getloadavg (configure.ac): Pass $gl_source_base to
2762         gl_GETLOADAVG.
2763
2764 2006-09-22  Bruno Haible  <bruno@clisp.org>
2765
2766         * gnulib-tool (func_create_megatestdir): Don't include the config-h
2767         module.
2768         Suggested by Ralf Wildenhues.
2769
2770 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2771
2772         Import this patch from libc:
2773
2774         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
2775
2776         * lib/regex_internal.c (re_string_reconstruct): Handle
2777         offset < pstr->valid_raw_len && pstr->offsets_needed case.
2778         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
2779         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
2780         re_string_context_at.
2781
2782         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
2783         now requires it.
2784         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
2785         gl_REGEX now does it for us.
2786         (gl_REGEX): Add test taken from
2787         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
2788
2789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
2790         Check that large offsets work.  Modernize Autoconf usages.
2791         Prefer "yes" to mean a good thing rather than a bad.
2792         Don't put "#define mkstemp" in config.h, as this might interfere
2793         with standard system headers that "#define mkstemp mkstemp64".
2794
2795         * modules/mkstemp (Depends-on): Add extensions, so that
2796         mkstemp is visible on some platforms.
2797         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
2798         (Include): Change to "mkstemp.h" from <stdlib.h>.
2799         (Files): Add mkstemp.h.
2800
2801         * lib/mkstemp.h: New file, since some standard headers
2802         #define mkstemp.
2803         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
2804         Include "mkstemp.h".
2805         Make the _LIBC code resemble glibc original more,
2806         e.g., use K&R style.
2807         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
2808         (mkstemp): Remove, since mkstemp.h does this for us.
2809         * lib/stdlib--.h: Include mkstemp.h.
2810
2811         Import this patch from libc:
2812
2813         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
2814
2815         * lib/tempname.c (__gen_tempname): Change attempts_min
2816         into a macro.  Use preprocessor to decide how to initialize
2817         attempts [Coverity CID 67].
2818
2819 2006-09-20  Bruno Haible  <bruno@clisp.org>
2820
2821         * lib/mkdtemp.c: Import from libc.
2822         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
2823                 * sysdeps/posix/tempname.c (__gen_tempname): Change
2824                 attempts_min into a macro.  Use preprocessor to decide how to
2825                 initialize attempts [Coverity CID 67].
2826         2001-11-27  Paul Eggert  <eggert@twinsun.com>
2827                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2828                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2829
2830 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2831
2832         * gnulib-tool (func_exit): New function, to allow to pass the
2833         exit status portably through the trap.  Use everywhere.
2834         (--help, --version): Signal a write error.
2835         (trap): catch SIGPIPE, for write errors.
2836         Exit at the end of the trap, with the correct exit status.
2837
2838 2006-09-19  Karl Berry  <karl@gnu.org>
2839
2840         * doc/gnulib.texi: note about the license texinfo files.
2841
2842 2006-09-19  Eric Blake  <ebb9@byu.net>
2843
2844         * gnulib-tool: Avoid space-tab.
2845
2846 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2847
2848         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
2849         that prevented coreutils 6.1 from building.  Problem reported
2850         by Petter Reinholdtsen.
2851
2852 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2853
2854         * gnulib-tool (avoidlist): Fix typo that broke options like
2855         --avoid=lock that are used by coreutils bootstrap.
2856
2857 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
2858
2859         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
2860         more systematically.
2861
2862 2006-09-18  Jim Meyering  <jim@meyering.net>
2863
2864         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
2865
2866 2006-09-18  Bruno Haible  <bruno@clisp.org>
2867
2868         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
2869
2870 2006-09-18  Bruno Haible  <bruno@clisp.org>
2871
2872         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
2873         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
2874         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
2875         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
2876         * m4/gettext.m4: Require autoconf >= 2.52.
2877         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
2878         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
2879         of gl_cv_header_inttypes_h.
2880
2881 2006-09-18  Bruno Haible  <bruno@clisp.org>
2882
2883         * lib/javaversion.c: Include configmake.h.
2884
2885 2006-09-18  Bruno Haible  <bruno@clisp.org>
2886
2887         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
2888         avoid that the while loops be executed in a subshell.
2889
2890 2006-09-18  Bruno Haible  <bruno@clisp.org>
2891
2892         * MODULES.html.sh (func_module): Break long lines.
2893         Suggested by Bruce Korb <bkorb@gnu.org>.
2894
2895 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2896
2897         Speed up by a factor of 1.12.
2898         * gnulib-tool (nl): New variable.
2899         (func_import): Rewrite include directive extraction to only read each
2900         directive once.
2901
2902 2006-09-17  Bruno Haible  <bruno@clisp.org>
2903
2904         * modules/javaversion (Makefile.am): Remove DEFS setting.
2905         (Depends-on): Add configmake, for PKGDATADIR definition.
2906
2907 2006-09-17  Bruno Haible  <bruno@clisp.org>
2908
2909         * gnulib-tool (func_create_testdir): Rewrite all files at once.
2910
2911 2006-09-17  Bruno Haible  <bruno@clisp.org>
2912
2913         * gnulib-tool (func_append): New function, stolen from libtool.m4.
2914         (func_modules_transitive_closure, func_modules_add_dummy,
2915         func_modules_to_filelist, func_import, func_create_testdir,
2916         func_create_megatestdir, ...): Use it wherever possible.
2917         Suggested by Ralf Wildenhues.
2918
2919 2006-09-16  Karl Berry  <karl@gnu.org>
2920
2921         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
2922         to avoid sectioning errors.
2923         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
2924         [ifinfo]: blank line after @center-ed titles.
2925         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
2926         Spell FSF address consistently with others.
2927         (These changes approved by rms.)
2928
2929 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2930
2931         Speed up by a factor of 1.61.
2932         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
2933         already checked module names again.
2934
2935 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2936
2937         Speed up by a factor of 1.13.
2938         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
2939         for new_files, and the input to func_add_or_update.
2940
2941 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2942
2943         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
2944         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
2945
2946 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2947
2948         * modules/mkancesdirs (Depends-on): Add fcntl.
2949         * modules/savewd: New file.
2950         * MODULES.html.sh (File system functions): Add savewd.
2951
2952         * modules/configmake (Makefile.am): Add support for the
2953         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
2954
2955 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2956
2957         * m4/savewd.m4: New file.
2958
2959 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2960
2961         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
2962         (dirchownmod): New arg FD.  All callers changed.
2963         Use FD rather than opening the directory ourself, as opening is
2964         now the caller's responsibility.
2965         * lib/dirchownmod.h: Likewise.
2966         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
2967         hosts that require <sys/types.h> before <sys/stat.h>.  Include
2968         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
2969         (test_dir): Remove.
2970         (mkancesdirs): Return length of prefix of FILE that has already
2971         been made, or -2 if there is a child doing the work.  Redo
2972         algorithm so that it is O(N) rather than O(N**2).  Optimize away
2973         ".", and treat ".." specially since it might stray back into
2974         already-created areas.  Use a subprocess if necessary.  New arg
2975         WD; all users changed.  MAKE_DIR function should now return 1
2976         if it creates a directory that is not readable.  Return -2 if
2977         a child process is spun off.
2978         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
2979         Adjust signature to match code.
2980         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
2981         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
2982         all users changed.
2983         * lib/savewd.c, lib/savewd.h: New files.
2984
2985 2006-09-15  Jim Meyering  <jim@meyering.net>
2986
2987         * modules/rename-dest-slash: New module.
2988         * MODULES.html.sh (posix_compat): Add it here.
2989
2990         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
2991
2992 2006-09-15  Jim Meyering  <jim@meyering.net>
2993
2994         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
2995         file.
2996
2997         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
2998
2999 2006-09-15  Jim Meyering  <jim@meyering.net>
3000
3001         * lib/rename-dest-slash.c (has_trailing_slash): Use
3002         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
3003         (rpl_rename_dest_slash): Perform the cheaper trailing slash
3004         test before testing whether SRC is a directory.
3005         Suggestions from Bruno Haible.
3006
3007         Avoid a warning about an unused variable.
3008         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
3009         into the #ifdef block where it's used.
3010
3011         * lib/rename-dest-slash.c: New file.
3012
3013 2006-09-14  Bruno Haible  <bruno@clisp.org>
3014
3015         * lib/allocsa.c: Include <config.h> unconditionally.
3016         * lib/asnprintf.c: Likewise.
3017         * lib/asprintf.c: Likewise.
3018         * lib/c-strcasecmp.c: Likewise.
3019         * lib/c-strcasestr.c: Likewise.
3020         * lib/c-strncasecmp.c: Likewise.
3021         * lib/c-strstr.c: Likewise.
3022         * lib/classpath.c: Likewise.
3023         * lib/clean-temp.c: Likewise.
3024         * lib/concatpath.c: Likewise.
3025         * lib/copy-file.c: Likewise.
3026         * lib/csharpcomp.c: Likewise.
3027         * lib/csharpexec.c: Likewise.
3028         * lib/execute.c: Likewise.
3029         * lib/fatal-signal.c: Likewise.
3030         * lib/findprog.c: Likewise.
3031         * lib/fwriteerror.c: Likewise.
3032         * lib/gl_array_list.c: Likewise.
3033         * lib/gl_array_oset.c: Likewise.
3034         * lib/gl_avltree_list.c: Likewise.
3035         * lib/gl_avltree_oset.c: Likewise.
3036         * lib/gl_avltreehash_list.c: Likewise.
3037         * lib/gl_carray_list.c: Likewise.
3038         * lib/gl_linked_list.c: Likewise.
3039         * lib/gl_linkedhash_list.c: Likewise.
3040         * lib/gl_list.c: Likewise.
3041         * lib/gl_oset.c: Likewise.
3042         * lib/gl_rbtree_list.c: Likewise.
3043         * lib/gl_rbtree_oset.c: Likewise.
3044         * lib/gl_rbtreehash_list.c: Likewise.
3045         * lib/imaxabs.c: Likewise.
3046         * lib/imaxdiv.c: Likewise.
3047         * lib/javacomp.c: Likewise.
3048         * lib/javaexec.c: Likewise.
3049         * lib/javaversion.c: Likewise.
3050         * lib/linebreak.c: Likewise.
3051         * lib/localcharset.c: Likewise.
3052         * lib/lock.c: Likewise.
3053         * lib/mbchar.c: Likewise.
3054         * lib/mbswidth.c: Likewise.
3055         * lib/mkdtemp.c: Likewise.
3056         * lib/pipe.c: Likewise.
3057         * lib/printf-args.c: Likewise.
3058         * lib/printf-parse.c: Likewise.
3059         * lib/progname.c: Likewise.
3060         * lib/progreloc.c: Likewise.
3061         * lib/readlink.c: Likewise.
3062         * lib/sh-quote.c: Likewise.
3063         * lib/stpcpy.c: Likewise.
3064         * lib/stpncpy.c: Likewise.
3065         * lib/strcasecmp.c: Likewise.
3066         * lib/strcasestr.c: Likewise.
3067         * lib/strcspn.c: Likewise.
3068         * lib/striconv.c: Likewise.
3069         * lib/strncasecmp.c: Likewise.
3070         * lib/strnlen1.c: Likewise.
3071         * lib/strstr.c: Likewise.
3072         * lib/strtok_r.c: Likewise.
3073         * lib/tls.c: Likewise.
3074         * lib/tmpdir.c: Likewise.
3075         * lib/unicodeio.c: Likewise.
3076         * lib/unsetenv.c: Likewise.
3077         * lib/vasnprintf.c: Likewise.
3078         * lib/vasprintf.c: Likewise.
3079         * lib/wait-process.c: Likewise.
3080         * lib/xallocsa.c: Likewise.
3081         * lib/xsetenv.c: Likewise.
3082         * lib/xstriconv.c: Likewise.
3083
3084 2006-09-13  Simon Josefsson  <jas@extundo.com>
3085
3086         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
3087         that internally, suggested by Ralf Wildenhues
3088         <Ralf.Wildenhues@gmx.de>.
3089
3090 2006-09-13  Simon Josefsson  <jas@extundo.com>
3091
3092         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
3093         @LIBOBJS@.
3094         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3095
3096 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3097
3098         * lib/_fpending.c: Include <config.h> unconditionally, since we no
3099         longer worry about uses that don't define HAVE_CONFIG_H.
3100         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
3101         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
3102         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
3103         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
3104         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
3105         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
3106         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
3107         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
3108         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
3109         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
3110         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
3111         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
3112         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
3113         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
3114         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
3115         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
3116         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
3117         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
3118         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
3119         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
3120         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
3121         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
3122         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
3123         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
3124         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
3125         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
3126         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
3127         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
3128         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
3129         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
3130         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
3131         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
3132         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
3133         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
3134         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
3135         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
3136         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
3137         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
3138         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
3139         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
3140         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
3141         Likewise.
3142
3143 2006-09-13  Eric Blake  <ebb9@byu.net>
3144
3145         * lib/getopt.c: Fix typo in last commit.
3146
3147 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3148
3149         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
3150         dgettext.
3151
3152 2006-09-12  Jim Meyering  <jim@meyering.net>
3153
3154         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
3155         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
3156         Reported by Nelson H. F. Beebe.
3157
3158 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
3159
3160         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
3161         program_invocation_name and program_invocation_short_name are
3162         initialized.
3163         * lib/argp-namefrob.h: Move declarations of program_invocation_name
3164         and program_invocation_short_name to argp.h, so they are visible
3165         to user programs.
3166         * lib/argp.h: Likewise
3167
3168 2006-09-10  Bruno Haible  <bruno@clisp.org>
3169
3170         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3171         m4/inttypes_h.m4, m4/uintmax_t.m4.
3172
3173 2006-09-10  Bruno Haible  <bruno@clisp.org>
3174
3175         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
3176         gl_AC_TYPE_UINTMAX_T.
3177
3178 2006-09-10  Bruno Haible  <bruno@clisp.org>
3179
3180         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
3181
3182 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
3183
3184         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
3185         convention.  Text proposed by Bruno Haible.
3186         (struct argp_option): Document the use of N_() wrappers.
3187
3188         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
3189         '\v', and translate the two parts separately, instead of feeding
3190         the whole string to gettext.  This allows to exclude
3191         '\v' from the strings visible to the translator by writing doc
3192         strings as N_("..") "\v" N_("..").
3193
3194 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3195
3196         * config/srclist.txt: Undo latest change; the bug was fixed.
3197
3198 2006-09-09  Bruno Haible  <bruno@clisp.org>
3199
3200         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
3201         assignments if building a library without libtool.
3202         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
3203         in func_emit_lib_Makefile_am.
3204         (func_import): When building a static library libfoo.a, arrange to
3205         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
3206         (func_create_testdir): Likewise.
3207         * modules/gc (configure.ac, Makefile.am): If building statically,
3208         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
3209         * modules/iconvme (configure.ac, Makefile.am): Likewise.
3210         * modules/striconv (configure.ac, Makefile.am): Likewise.
3211         Based on a suggestion by Ralf Wildenhues.
3212
3213 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3214
3215         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3216         Check for unistd.h too, since Autoconf doesn't assume POSIX.
3217         Also:
3218
3219         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3220         Add year_2050_test to catch glibc bug 2821
3221         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3222
3223         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3224         Prefer #ifdef to #if.
3225
3226         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
3227         Return from 'main' instead of calling 'exit'.
3228
3229 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3230
3231         * lib/mktime.c (guess_time_tm): Fix bug where mktime
3232         returned the maximum time_t value rather than (time_t) -1.
3233         Problem originally reported by William Bardwell
3234         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3235
3236         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3237         Moved to here ...
3238         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3239         ... from here.
3240
3241 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3242
3243         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
3244         2821 is fixed.
3245
3246 2006-09-08  Jim Meyering  <jim@meyering.net>
3247
3248         Don't make generated files read-only.  That would bother too many
3249         people.  However, do retain the ability to work when targets are
3250         read-only: remove the destination and temporary files before writing
3251         them (when generated via sed or echo), or by using the -f option for
3252         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
3253         * modules/alloca-opt, modules/argz, modules/arpa_inet:
3254         * modules/byteswap, modules/configmake, modules/fcntl:
3255         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3256         * modules/localcharset, modules/netinet_in, modules/poll:
3257         * modules/stdbool, modules/stdint, modules/sys_select:
3258         * modules/sys_socket, modules/sys_stat, modules/sysexits:
3259
3260 2006-09-08  Jim Meyering  <jim@meyering.net>
3261
3262         Avoid new build failure on FreeBSD 6.0.
3263         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
3264         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
3265         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
3266
3267 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3268
3269         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
3270
3271 2006-09-07  Jim Meyering  <jim@meyering.net>
3272
3273         Fix global typo in last change: use chmod u-w, not chmod u-x.
3274         Spotted by Paul Eggert and Bruce Korb.
3275         * modules/alloca-opt, modules/argz, modules/arpa_inet:
3276         * modules/byteswap, modules/configmake, modules/fcntl:
3277         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3278         * modules/localcharset, modules/netinet_in, modules/poll:
3279         * modules/stdbool, modules/stdint, modules/sys_select:
3280         * modules/sys_socket, modules/sys_stat, modules/sysexits:
3281
3282 2006-09-06  Jim Meyering  <jim@meyering.net>
3283
3284         Make generated files be read-only.
3285         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
3286         Ensure that each generated file is now read-only.
3287         * modules/argz: Likewise.
3288         * modules/arpa_inet: Likewise.
3289         * modules/byteswap: Likewise.
3290         * modules/configmake: Likewise.
3291         * modules/fcntl: Likewise.
3292         * modules/fnmatch: Likewise.
3293         * modules/getopt: Likewise.
3294         * modules/glob: Likewise.
3295         * modules/inttypes: Likewise.
3296         * modules/netinet_in: Likewise.
3297         * modules/poll: Likewise.
3298         * modules/stdbool: Likewise.
3299         * modules/stdint: Likewise.
3300         * modules/sys_select: Likewise.
3301         * modules/sys_socket: Likewise.
3302         * modules/sys_stat: Likewise.
3303         * modules/sysexits: Likewise.
3304         * modules/localcharset: Same as above, but continue using temporary
3305         file named "t-$@" (why different?) rather than the "$@-t" used
3306         everywhere else.
3307
3308         * modules/sysexits (Makefile.am): Replace literal occurrences
3309         of "sysexit.h" more readable, and more consistent, "$@".
3310
3311 2006-09-06  Bruno Haible  <bruno@clisp.org>
3312
3313         * modules/striconv: New file.
3314         * modules/xstriconv: New file.
3315         * MODULES.html.sh (Internationalization functions): Add striconv,
3316         xstriconv.
3317
3318 2006-09-06  Bruno Haible  <bruno@clisp.org>
3319
3320         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
3321         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
3322         not using libtool correctly.
3323
3324 2006-09-06  Bruno Haible  <bruno@clisp.org>
3325
3326         * lib/striconv.h: New file.
3327         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
3328         iconvstring.c.
3329         * lib/xstriconv.h: New file.
3330         * lib/xstriconv.c: New file.
3331
3332 2006-09-06  Bruno Haible  <bruno@clisp.org>
3333
3334         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3335         lib_..._LDFLAGS.
3336
3337 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3338
3339         * lib/argz_.h: Sync from Libtool.
3340
3341         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
3342                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3343
3344         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
3345
3346 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
3347
3348         * modules/trim: New file.
3349
3350 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
3351
3352         * lib/trim.h: New file.
3353         * lib/trim.c: New file.
3354
3355 2006-09-05  Bruno Haible  <bruno@clisp.org>
3356
3357         * MODULES.html.sh (String handling): Add trim.
3358
3359 2006-09-04  Karl Berry  <karl@gnu.org>
3360
3361         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
3362         until next release.
3363
3364 2006-09-03  Bruno Haible  <bruno@clisp.org>
3365
3366         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
3367         correctly.
3368
3369 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3370
3371         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
3372         not gl_GETLOADAVG.  Omit unneeded semicolons.
3373         Problems reported by Ralf Wildenhues in
3374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3375         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
3376         at the end, which is the usual gnulib style.
3377
3378         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
3379         of doing all the work ourselves.
3380         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
3381         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
3382
3383 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3384
3385         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
3386         Problem reported by Ralf Wildenhues in
3387         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3388
3389         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
3390         HAVE_STRUCT_STATFS_F_FSTYPENAME.
3391
3392 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3393
3394         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
3395         yesterday's patch by changing test -n to test -z.
3396
3397 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3398
3399         * modules/getloadavg (Files): Add m4/getloadavg.m4.
3400         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
3401         the former is now obsolescent.
3402
3403         * modules/chdir-long (Depends-on): Add fcntl.
3404
3405 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3406
3407         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
3408         obsolescent, and programs should use gnulib instead.
3409         * m4/getloadavg.m4: New file, with contents taken from Autoconf
3410         but with prefixes changed.
3411
3412 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3413
3414         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
3415         or stdbool.h, because they might not exist while configuring.
3416
3417         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
3418         Don't include unistd.h or limits.h; not needed, since chdir-long.h
3419         does that for us.
3420         (O_DIRECTORY): Remove.
3421
3422 2006-08-31  Eric Blake  <ebb9@byu.net>
3423
3424         * gnulib-tool: Don't let emacs change spaces to TAB.
3425
3426 2006-08-31  Bruno Haible  <bruno@clisp.org>
3427
3428         * gnulib-tool: When calling func_import more than once, do it in a
3429         subshell.
3430         Reported by Eric Blake <ebb9@byu.net>.
3431
3432 2006-08-31  Bruno Haible  <bruno@clisp.org>
3433
3434         * gnulib-tool (nl): Remove variable.
3435         (sed_transform_lib_file): Use more robust test for config-h module.
3436         (func_import): Fix typo in 2006-08-25 patch.
3437
3438 2006-08-31  Bruno Haible  <bruno@clisp.org>
3439
3440         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
3441         specified, augment Makefile.am variables instead of assigning them.
3442
3443 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         Work around a bug in both the Linux and SunOS 64-bit kernels:
3446         nanosleep mishandles sleeps for longer than 2**31 seconds.
3447         Problem reported by Frank v Waveren in
3448         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
3450         Check for nanosleep bug.
3451         (LIB_NANOSLEEP): Append clock_gettime library if needed.
3452
3453 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3454
3455         Work around a bug in both the Linux and SunOS 64-bit kernels:
3456         nanosleep mishandles sleeps for longer than 2**31 seconds.
3457         Problem reported by Frank v Waveren in
3458         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3459         * lib/nanosleep.c (BILLION): New constant.
3460         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
3461         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
3462         implementation.
3463
3464 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3465
3466         * modules/nanosleep (Depends-on): Add gettime.
3467
3468 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3469         and Simon Josefsson  <jas@extundo.com>
3470         and Oskar Liljeblad  <oskar@osk.mine.nu>
3471
3472         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
3473         * gnulib-tool (func_import): New license type 'unmodifiable license
3474         text'.
3475         * modules/fdl: Use it.  Longer description.
3476         * module/gpl, module/lgpl: New files.
3477
3478 2006-08-30  Jim Meyering  <jim@meyering.net>
3479
3480         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
3481         shadowing the parameter.
3482
3483 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3484
3485         Sync from Libtool:
3486
3487         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3488
3489         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
3490         sharing with gnulib.  Report by Eric Blake.
3491
3492 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3493
3494         * modules/isapipe: New file.
3495         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
3496
3497 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3498
3499         * modules/configmake (Makefile.am): Add a comment, and omit
3500         the CONFIGMAKE_ prefix from generated macro names.  Suggested
3501         by Bruno Haible.
3502
3503 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3504
3505         * m4/isapipe.m4: New file.
3506
3507 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3508
3509         * lib/isapipe.c, lib/isapipe.h: New files.
3510
3511 2006-08-29  Jim Meyering  <jim@meyering.net>
3512
3513         * modules/configmake (Makefile.am): Make configmake.h depend on
3514         Makefile.  Otherwise, a stale configmake.h could hang around.
3515
3516 2006-08-29  Eric Blake  <ebb9@byu.net>
3517
3518         * lib/error.c (error_at_line, print_errno_message): Match libc, after
3519         resolution of upstream bug 3044.
3520
3521 2006-08-29  Bruno Haible  <bruno@clisp.org>
3522
3523         * modules/localcharset (Depends-on): Add configmake.
3524         (Makefile.am): Remove setting of LIBDIR through DEFS.
3525
3526 2006-08-29  Bruno Haible  <bruno@clisp.org>
3527
3528         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
3529         defined.
3530
3531 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3532
3533         * modules/fcntl: New file.
3534         * modules/chdir-safer (Depends-on): Add fcntl.
3535         * modules/fts: Likewise.
3536         * modules/mkdir-p: Likewise.
3537
3538         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
3539         This undoes the most recent change, since we're now addressing the
3540         problem in a different way.
3541
3542         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
3543         into output, since the output might be called Makefile.am even
3544         if $makefile_name is something different.
3545         (func_import): Use $makefile_am rather than
3546         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
3547         empty.
3548
3549         * modules/inttypes (Files): Add m4/inttypes-h.m4.
3550
3551 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3552
3553         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
3554         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
3555         recent change to stdint.m4, since we're now addressing the problem in a
3556         different way.
3557
3558 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3559
3560         * m4/fcntl_h.m4: New file.
3561
3562 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3563
3564         * lib/fcntl_.h: New file.
3565         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
3566         the fcntl module.
3567         * lib/dirchownmod.c: Likewise.
3568         * lib/fts.c: Likewise.
3569
3570         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
3571         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
3572         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
3573         just before including <inttypes.h>, to avoid circular inclusion.
3574
3575 2006-08-28  Jim Meyering  <jim@meyering.net>
3576
3577         * doc/visibility.texi: Actually read and correct the grammar of the
3578         sentence affected by yesterday's change.
3579
3580 2006-08-28  Eric Blake  <ebb9@byu.net>
3581
3582         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
3583         needs wrapper.
3584
3585 2006-08-28  Eric Blake  <ebb9@byu.net>
3586
3587         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
3588
3589 2006-08-28  Eric Blake  <ebb9@byu.net>
3590
3591         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
3592
3593 2006-08-28  Bruno Haible  <bruno@clisp.org>
3594
3595         * modules/c-strstr: New file, from GNU gettext.
3596         * MODULES.html.sh (String handling): Add c-strstr.
3597
3598 2006-08-28  Bruno Haible  <bruno@clisp.org>
3599
3600         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
3601         macros.
3602         Reported by Eric Blake.
3603
3604 2006-08-28  Bruno Haible  <bruno@clisp.org>
3605
3606         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
3607         (VASNPRINTF): Return a string of length > INT_MAX without failing.
3608         * lib/vasprintf.c: Include errno.h, limits.h.
3609         (EOVERFLOW): New fallback definition.
3610         (vasprintf): Test here whether the string length is > INT_MAX.
3611         * lib/vsnprintf.c: Include errno.h, limits.h.
3612         (EOVERFLOW): New fallback definition.
3613         (vsnprintf): Fix bug when generated string was too long for the buffer.
3614         Test here whether the string length is > INT_MAX.
3615
3616 2006-08-28  Bruno Haible  <bruno@clisp.org>
3617
3618         * lib/inttypes_.h (SCNX*): Remove definitions.
3619         Reported by Eric Blake.
3620
3621 2006-08-28  Bruno Haible  <bruno@clisp.org>
3622
3623         * lib/c-strstr.h: New file, from GNU gettext.
3624         * lib/c-strstr.c: New file, from GNU gettext.
3625
3626 2006-08-28  Bruno Haible  <bruno@clisp.org>
3627
3628         * gnulib-tool: Reorder some statements.
3629
3630 2006-08-28  Bruno Haible  <bruno@clisp.org>
3631
3632         * gnulib-tool: New option --makefile-name.
3633         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
3634         $makefile_name.
3635         (func_import): Write $makefile_name to the cache file, and read it from
3636         there unless explicitly specified. Use $makefile_name as file name
3637         instead of Makefile.am. Adjust the recommendations accordingly.
3638
3639 2006-08-28  Bruno Haible  <bruno@clisp.org>
3640
3641         * gnulib-tool (func_verify_module): Check against misapplying patch.
3642
3643 2006-08-28  Bruno Haible  <bruno@clisp.org>
3644
3645         * gnulib-tool (func_relativize, func_relconcat): New functions.
3646         Give an error if --local-dir is given with --update.
3647         Remove trailing slashes from $local_gnulib_dir.
3648         (func_import): Store the relativized $local_gnulib_dir in
3649         gnulib-cache.m4, and read it from there if not specified explicitly.
3650
3651 2006-08-28  Bruno Haible  <bruno@clisp.org>
3652
3653         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
3654         is the current directory. Respect also $local_gnulib_dir.
3655
3656 2006-08-28  Bruno Haible  <bruno@clisp.org>
3657             Simon Josefsson  <jas@extundo.com>
3658
3659         BeOS portability.
3660         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
3661
3662 2006-08-27  Jim Meyering  <jim@meyering.net>
3663
3664         * doc/visibility.texi: Remove duplicate word: "pointer".
3665
3666 2006-08-26  Bruno Haible  <bruno@clisp.org>
3667
3668         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
3669         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
3670         (Makefile.am): Create inttypes.h from inttypes_.h.
3671         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
3672
3673         * modules/imaxabs: New file.
3674
3675         * modules/imaxdiv: New file.
3676
3677 2006-08-26  Bruno Haible  <bruno@clisp.org>
3678
3679         * m4/inttypes.m4: New file.
3680         * m4/_inttypes_h.m4: Remove file.
3681         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
3682         PRI_MACROS_BROKEN.
3683         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
3684
3685         * m4/imaxabs.m4: New file.
3686
3687         * m4/imaxdiv.m4: New file.
3688
3689 2006-08-26  Bruno Haible  <bruno@clisp.org>
3690
3691         * lib/inttypes_.h: New file.
3692         * lib/inttypes.h: Remove file.
3693         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
3694
3695         * lib/imaxabs.c: New file.
3696
3697         * lib/imaxdiv.c: New file.
3698
3699 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3700
3701         New config-h module, so that "make" output needn't be cluttered
3702         by -DHAVE_CONFIG_H.
3703         * MODULES.html.sh (Support for building libraries and executables):
3704         Add config-h.
3705         * modules/config-h: New file.
3706         * gnulib-tool (nl, sed_transform_lib_file): New vars.
3707         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
3708         the config-h module is used.
3709
3710         New configmake module, so that "make" output needn't be cluttered
3711         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
3712         * MODULES.html.sh (Support for building libraries and executables):
3713         Add configmake.
3714         * modules/configmake: New file.
3715
3716 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3717
3718         * m4/config-h.m4: New file.
3719
3720 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         * config/srclist.txt: Add elisp-comp.
3723
3724 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3725
3726         * MODULES.html.sh (Support for building libraries and executables):
3727         Add elisp-comp.
3728         * build-aux/elisp-comp: New file.
3729         * modules/elisp-comp: New file.
3730
3731 2006-08-24  Bruno Haible  <bruno@clisp.org>
3732
3733         * gnulib-tool (func_create_testdir): Use non-default values of
3734         sourcebase and m4base.
3735
3736 2006-08-24  Bruno Haible  <bruno@clisp.org>
3737
3738         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
3739         HTML structure.
3740
3741 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3742
3743         * modules/openat (Depends-on): Add lchown.
3744
3745 2006-08-23  Bruno Haible  <bruno@clisp.org>
3746
3747         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
3748         of gl_LOCK_EARLY instead of gl_LOCK.
3749
3750 2006-08-23  Bruno Haible  <bruno@clisp.org>
3751
3752         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
3753         on OSF/1 to no.
3754         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
3755
3756 2006-08-23  Bruno Haible  <bruno@clisp.org>
3757
3758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
3759         as unusable.
3760
3761         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
3762         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
3763         (gl_LOCK): New macro.
3764
3765 2006-08-22  Simon Josefsson  <jas@extundo.com>
3766
3767         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
3768         to md5 module.
3769
3770 2006-08-22  Simon Josefsson  <jas@extundo.com>
3771
3772         * MODULES.html.sh: Add "Support for maintaining and release
3773         projects".
3774
3775         * build-aux/gnupload: New file, from coreutils.
3776
3777 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3778
3779         Avoid the need for AC_LIBSOURCES in m4 macros.
3780         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
3781         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
3782         * modules/check-version (EXTRA_DIST): Add check-version.h.
3783         * modules/crc (EXTRA_DIST): Add crc.h.
3784         * modules/des (EXTRA_DIST): Add des.h.
3785         * modules/gc (EXTRA_DIST): Add gc.h.
3786         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
3787         * modules/getline (EXTRA_DIST): Add getline.h.
3788         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
3789         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
3790         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
3791         * modules/md2 (EXTRA_DIST): Add md2.h.
3792         * modules/md4 (EXTRA_DIST): Add md4.h.
3793         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
3794         * modules/read-file (EXTRA_DIST): Add read-file.h.
3795         * modules/readline (EXTRA_DIST): Add readline.h.
3796         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
3797         rijndael-api-fst.h.
3798
3799 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3800
3801         * m4/rijndael.m4 (gl_ARCFOUR):
3802         * m4/arctwo.m4 (gl_ARCTWO):
3803         * m4/check-version.m4 (gl_CHECK_VERSION):
3804         * m4/crc.m4 (gl_CRC):
3805         * m4/des.m4 (gl_DES):
3806         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
3807         * m4/gc.m4 (gl_GC):
3808         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
3809         * m4/getline.m4 (gl_FUNC_GETLINE):
3810         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
3811         * m4/hmac-md5.m4 (gl_HMAC_MD5):
3812         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
3813         * m4/md2.m4 (gl_MD2):
3814         * m4/md4.m4 (gl_MD4):
3815         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
3816         * m4/read-file.m4 (gl_FUNC_READ_FILE):
3817         * m4/readline.m4 (gl_FUNC_READLINE):
3818         * m4/rijndael.m4 (gl_RIJNDAEL):
3819         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
3820         to get the necessary .h files and whatnot.
3821
3822 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3823
3824         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
3825         gnulib rather than the other way around.
3826         * config/srclistvars.sh (COREUTILS): Remove.
3827
3828 2006-08-22  Jim Meyering  <jim@meyering.net>
3829
3830         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
3831
3832         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
3833
3834 2006-08-22  Eric Blake  <ebb9@byu.net>
3835
3836         * modules/regexprops-generic: New file.
3837         * MODULES.html.sh (Support for building documentation): List it.
3838
3839 2006-08-22  Eric Blake  <ebb9@byu.net>
3840
3841         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
3842         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3843         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3844         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3845
3846 2006-08-22  Bruno Haible  <bruno@clisp.org>
3847
3848         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
3849         and lib_LTLIBRARIES like the other lib_* variables.
3850
3851 2006-08-22  Bruno Haible  <bruno@clisp.org>
3852
3853         * build-aux/x-to-1.in: New file, from GNU gettext.
3854
3855 2006-08-22  Bruno Haible  <bruno@clisp.org>
3856
3857         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
3858         <utmpx.h> exists.
3859
3860 2006-08-22  Bruno Haible  <bruno@clisp.org>
3861
3862         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
3863         <utmpx.h> exists.
3864
3865 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3866
3867         BeOS portability.
3868         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
3869         exist.
3870         Problem reported by Bruno Haible.
3871
3872 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3873
3874         Avoid the need for AC_LIBSOURCES in m4 macros.
3875         * modules/acl (EXTRA_DIST): Add acl.h.
3876         * modules/argmatch (Files): Add m4/argmatch.m4.
3877         (configure.ac): Add gl_ARGMATCH.
3878         (EXTRA_DIST): Renamed from lib_SOURCES, for
3879         consistency with the other modules.  Remove argmatch.c.
3880         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
3881         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
3882         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
3883         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
3884         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
3885         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
3886         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
3887         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
3888         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
3889         * modules/closeout (EXTRA_DIST): Add closeout.h.
3890         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
3891         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
3892         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
3893         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
3894         dirname.h; remove basename.c and stripslash.c.
3895         * modules/exclude (EXTRA_DIST): Add exclude.h.
3896         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
3897         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
3898         * modules/file-type (EXTRA_DIST): Add file-type.h.
3899         * modules/filemode (EXTRA_DIST): Add filemode.h.
3900         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
3901         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3902         * modules/fpending (EXTRA_DIST): Add __fpending.h.
3903         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
3904         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
3905         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
3906         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
3907         * modules/getdate (EXTRA_DIST): Add getdate.c.
3908         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
3909         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
3910         * modules/getpass (EXTRA_DIST): Add getpass.h.
3911         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
3912         * modules/group-member (EXTRA_DIST): Add group-member.h.
3913         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
3914         * modules/hash (EXTRA_DIST): Add hash.h.
3915         * modules/human (EXTRA_DIST): Add human.h.
3916         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
3917         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
3918         * modules/lchown (EXTRA_DIST): Add lchown.h.
3919         * modules/long-options (EXTRA_DIST): Add long-options.h.
3920         * modules/lstat (EXTRA_DIST): Add lstat.h.
3921         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
3922         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
3923         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
3924         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
3925         * modules/memxor (EXTRA_DIST): Add memxor.h.
3926         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
3927         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
3928         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
3929         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
3930         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
3931         * modules/physmem (EXTRA_DIST): Add physmem.h.
3932         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
3933         * modules/posixver (EXTRA_DIST): Add posixver.h.
3934         * modules/quote (EXTRA_DIST): Add quote.h.
3935         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
3936         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
3937         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
3938         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
3939         regex_internal.h regexec.c.
3940         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
3941         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
3942         * modules/same (EXTRA_DIST): Add same.h.
3943         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
3944         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
3945         * modules/savedir (EXTRA_DIST): Add savedir.h.
3946         * modules/sha1 (EXTRA_DIST): Add sha1.h.
3947         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
3948         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
3949         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
3950         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
3951         * modules/strdup (EXTRA_DIST): Add strdup.h.
3952         * modules/strftime (EXTRA_DIST): Add strftime.h.
3953         * modules/strndup (EXTRA_DIST): Add strndup.h.
3954         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
3955         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
3956         * modules/time_r (EXTRA_DIST): Add time_r.h.
3957         * modules/timespec (EXTRA_DIST): Add timespec.h.
3958         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3959         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
3960         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
3961         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
3962         * modules/userspec (EXTRA_DIST): Add userspec.h.
3963         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
3964         * modules/utimens (EXTRA_DIST): Add utimens.h.
3965         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
3966         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
3967         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
3968         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
3969         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
3970         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
3971         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
3972         * modules/yesno (EXTRA_DIST): Add yesno.h.
3973
3974 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3975
3976         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
3977
3978         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
3979         * m4/dev-ino.m4, same-inode.m4: Remove.
3980
3981         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
3982         * m4/acl.m4 (AC_FUNC_ACL):
3983         * m4/backupfile.m4 (gl_BACKUPFILE):
3984         * m4/c-strtod.m4 (gl_C99_STRTOLD):
3985         * m4/canon-host.m4 (gl_CANON_HOST):
3986         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
3987         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
3988         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
3989         * m4/cloexec.m4 (gl_CLOEXEC):
3990         * m4/close-stream.m4 (gl_CLOSE_STREAM):
3991         * m4/closeout.m4 (gl_CLOSEOUT):
3992         * m4/dirfd.m4 (gl_FUNC_DIRFD):
3993         * m4/dirname.m4 (gl_DIRNAME):
3994         * m4/exclude.m4 (gl_EXCLUDE):
3995         * m4/exitfail.m4 (gl_EXITFAIL):
3996         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
3997         * m4/file-type.m4 (gl_FILE_TYPE):
3998         * m4/filemode.m4 (gl_FILEMODE):
3999         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
4000         * m4/fpending.m4 (gl_FUNC_FPENDING):
4001         * m4/fprintftime.m4 (gl_FPRINTFTIME):
4002         * m4/fts.m4 (gl_FUNC_FTS):
4003         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
4004         * m4/getdate.m4 (gl_GETDATE):
4005         * m4/gethrxtime.m4 (gl_GETHRXTIME):
4006         * m4/getpagesize.m4 (gl_GETPAGESIZE):
4007         * m4/getpass.m4 (gl_FUNC_GETPASS):
4008         * m4/gettime.m4 (gl_GETTIME):
4009         * m4/getugroups.m4 (gl_GETUGROUPS):
4010         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
4011         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
4012         * m4/hard-locale.m4 (gl_HARD_LOCALE):
4013         * m4/hash.m4 (gl_HASH):
4014         * m4/idcache.m4 (gl_IDCACHE):
4015         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
4016         * m4/lchown.m4 (gl_FUNC_LCHOWN):
4017         * m4/long-options.m4 (gl_LONG_OPTIONS):
4018         * m4/lstat.m4 (gl_FUNC_LSTAT):
4019         * m4/md5.m4 (gl_MD5):
4020         * m4/memcasecmp.m4 (gl_MEMCASECMP):
4021         * m4/memcoll.m4 (gl_MEMCOLL):
4022         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
4023         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
4024         * m4/memxor.m4 (gl_MEMXOR):
4025         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
4026         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
4027         * m4/modechange.m4 (gl_MODECHANGE):
4028         * m4/mountlist.m4 (gl_MOUNTLIST):
4029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4030         * m4/openat.m4 (gl_FUNC_OPENAT):
4031         * m4/pathmax.m4 (gl_PATHMAX):
4032         * m4/physmem.m4 (gl_PHYSMEM):
4033         * m4/posixtm.m4 (gl_POSIXTM):
4034         * m4/posixver.m4 (gl_POSIXVER):
4035         * m4/quote.m4 (gl_QUOTE):
4036         * m4/quotearg.m4 (gl_QUOTEARG):
4037         * m4/readtokens.m4 (gl_READTOKENS):
4038         * m4/readutmp.m4 (gl_READUTMP):
4039         * m4/regex.m4 (gl_REGEX):
4040         * m4/safe-read.m4 (gl_SAFE_READ):
4041         * m4/safe-write.m4 (gl_SAFE_WRITE):
4042         * m4/same.m4 (gl_SAME):
4043         * m4/save-cwd.m4 (gl_SAVE_CWD):
4044         * m4/savedir.m4 (gl_SAVEDIR):
4045         * m4/settime.m4 (gl_SETTIME):
4046         * m4/sha1.m4 (gl_SHA1):
4047         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
4048         * m4/stat-macros.m4 (gl_STAT_MACROS):
4049         * m4/stat-time.m4 (gl_STAT_TIME):
4050         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
4051         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
4052         * m4/strdup.m4 (gl_FUNC_STRDUP):
4053         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
4054         * m4/strndup.m4 (gl_FUNC_STRNDUP):
4055         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
4056         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
4057         * m4/time_r.m4 (gl_TIME_R):
4058         * m4/timespec.m4 (gl_TIMESPEC):
4059         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
4060         * m4/unlinkdir.m4 (gl_UNLINKDIR):
4061         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
4062         * m4/userspec.m4 (gl_USERSPEC):
4063         * m4/utimecmp.m4 (gl_UTIMECMP):
4064         * m4/utimens.m4 (gl_UTIMENS):
4065         * m4/xalloc.m4 (gl_XALLOC):
4066         * m4/xgetcwd.m4 (gl_XGETCWD):
4067         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
4068         * m4/xreadlink.m4 (gl_XREADLINK):
4069         * m4/xstrtod.m4 (gl_XSTRTOD):
4070         * m4/yesno.m4 (gl_YESNO):
4071         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
4072         to get the necessary .h files and whatnot.
4073
4074 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
4075             Bruno Haible  <bruno@clisp.org>
4076
4077         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
4078         /bin/sh understanding of '!' conditional negation.
4079
4080 2006-08-21  Jim Meyering  <jim@meyering.net>
4081
4082         * modules/openat (Depends-on): Really alphabetize.
4083
4084         * modules/acl (Depends-on): Add error and quote.
4085
4086         * check-module (find_included_lib_files): Add at-func.c to the
4087         ok-to-include-more-than-once white list.
4088
4089         * modules/openat (Depends-on): Add lstat.  Alphabetize.
4090
4091 2006-08-21  Bruno Haible  <bruno@clisp.org>
4092
4093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4094         Emit a pkgdata_DATA variable only if some snippets add contents to it.
4095         Reported by Martin Lambers <marlam@marlam.de>.
4096
4097 2006-08-21  Bruno Haible  <bruno@clisp.org>
4098
4099         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
4100         specify an installation location, don't emit a noinst_LIBRARIES or
4101         noinst_LTLIBRARIES assignment.
4102
4103 2006-08-21  Bruno Haible  <bruno@clisp.org>
4104
4105         BeOS portability.
4106         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
4107         BeOS has mbrtowc() but no <wctype.h>.
4108
4109 2006-08-21  Bruno Haible  <bruno@clisp.org>
4110
4111         BeOS portability.
4112         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
4113         exist.
4114
4115 2006-08-21  Bruno Haible  <bruno@clisp.org>
4116
4117         BeOS portability.
4118         * lib/mbchar.h: Include <wctype.h> only if it exists.
4119
4120 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4121
4122         Remove files that are no longer needed by their respective modules.
4123         * m4/obstack.m4: Remove.
4124         * m4/strerror_r.m4: Remove.
4125         * m4/uint32_t.m4: Remove.
4126         * m4/uintptr_t.m4: Remove.
4127         * m4/ullong_max.m4: Remove.
4128         * m4/xstrtoimax.m4: Remove.
4129         * m4/xstrtoumax.m4: Remove.
4130
4131         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
4132         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
4133         dependencies now capture this.
4134
4135         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
4136         Do not use AC_LIBSOURCES, since gnulib modules now do this.
4137         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
4138         * m4/human.m4 (gl_HUMAN): Likewise.
4139         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
4140         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
4141
4142         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
4143
4144         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
4145         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
4146         stdint.
4147         * m4/human.m4 (gl_HUMAN): Likewise.
4148         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
4149         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
4150         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4151         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4152         * m4/xstrtol (gl_XSTRTOL): Likewise.
4153
4154         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
4155         AC_TYPE_LONG_LONG_INT.
4156         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4157         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
4158         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
4159         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4160
4161         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
4162         on stdbool.
4163
4164         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
4165         (gl_PREREQ_XSTRTOUL): Remove.
4166
4167         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
4168
4169         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
4170         mode.
4171
4172 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         Add and change modules to make it easier for coreutils to use
4175         gnulib-tool.
4176         * modules/backupfile (Files): Remove m4/d-ino.m4.
4177         (Depends-on): Add d-ino.
4178         * modules/cycle-check (Depends-on): Add stdint.
4179         (lib_SOURCES): Add cycle-check.h.
4180         * modules/d-ino: New module.
4181         * modules/d-type: New module.
4182         * modules/error (Files): Remove m4/strerror_r.m4.
4183         * modules/filemode (Files): Add m4/st_dm_mode.m4.
4184         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4185         m4/inttypes_h.m4, m4/uintmax_t.m4.
4186         (Depends-on): Add stdint.
4187         (lib_SOURCES): Add fsusage.h.
4188         * modules/getcwd (Files): Remove d-ino.m4.
4189         (Depends-on): Add d-ino.
4190         * modules/getndelim2 (Depends-on): Add stdint.
4191         * modules/glob (Files): Remove m4/d-type.m4.
4192         (Depends-on): Add d-type.
4193         * modules/host-os: New module.
4194         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
4195         m4/inttypes_h.m4, m4/uintmax_t.m4.
4196         * Depends-on: Add stdint.
4197         (lib_SOURCES): Add human.h.
4198         * modules/inttostr (Files): Remove m4/intmax_t.m4,
4199         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
4200         m4/uintmax_t.m4, m4/ulonglong.m4.
4201         (Depends-on): Add stdint.
4202         (EXTRA_DIST): Add inttostr.h.
4203         * modules/lchmod: New module.
4204         * modules/link-follow: New module.
4205         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
4206         (Depends-on): Add lchmod.
4207         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
4208         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
4209         (Depends-on): Add stdint.
4210         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
4211         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
4212         (Depends-on): Add stdint.
4213         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
4214         * modules/perl: New module.
4215         * modules/regex (Depends-on): Add stdint.
4216         * modules/rmdir-errno: New module.
4217         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4218         m4/intmax_t.m4.
4219         (Depends-on): Add stdint.
4220         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4221         m4/uintmax_t.m4.
4222         (Depends-on): Add stdint.
4223         * modules/unlink-busy: New module.
4224         * modules/utimecmp (Depends-on): Add stdint.
4225         * modules/uptime: New module.
4226         * modules/winsz-ioctl: New module.
4227         * modules/winsz-termios: New module.
4228         * modules/xnanosleep (Depends-on): Add nanosleep.
4229         * modules/ullong_max: Remove.
4230         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
4231         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
4232         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
4233         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
4234         (Depends-on): Add inttypes.
4235         (lib_SOURCES): Add xstrtol.h.
4236         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
4237         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
4238         * MODULES.html.sh: Move 'assert' into the assert section.
4239         Move 'dummy' into the linking section.
4240         Remove ullong_max.
4241         Add section for compatibility checks for POSIX:2001 functions,
4242         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
4243         winsz-ioctl, and winsz-termios into it.
4244         Add lchmod.
4245         Add top-level Misc section and put host-os, perl, and uptime
4246         into it.
4247
4248 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4249
4250         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
4251         now assume the stdint module.  Do not include inttypes.h.
4252         * lib/fsusage.h: Likewise.
4253         * lib/getndelim2.c: Likewise.
4254         * lib/human.h: Likewise.
4255         * lib/inttostr.h: Likewise.
4256         * lib/obstack.c: Likewise.
4257         * lib/regex_internal.h: Likewise.
4258         * lib/tempname.c: Likewise.
4259         * lib/utimecmp.c: Likewise.
4260         * lib/xstrtol.h: Likewise.
4261
4262         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
4263
4264         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
4265         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
4266         * lib/xtime.h: Likewise.
4267
4268 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4269
4270         * modules/openat (Files): Add lib/fchmodat.c.
4271         Fixes problem reported by Jay Youngman.
4272
4273 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4274
4275         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
4276         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
4277
4278 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4279             Bruno Haible  <bruno@clisp.org>
4280
4281         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
4282         and is a script that invokes bison. Tighten the code. Add comments.
4283
4284 2006-08-18  Jim Meyering  <jim@meyering.net>
4285
4286         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
4287         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
4288         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
4289         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
4290
4291 2006-08-18  Bruno Haible  <bruno@clisp.org>
4292
4293         * modules/bison-i18n: New file.
4294         * MODULES.html.sh (Internationalization functions): Add it.
4295
4296 2006-08-18  Bruno Haible  <bruno@clisp.org>
4297
4298         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
4299         sys/statvfs.h. When getmntinfo was found, check its declaration and
4300         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
4301
4302 2006-08-18  Bruno Haible  <bruno@clisp.org>
4303
4304         * m4/bison-i18n.m4: New file, from bison.
4305
4306 2006-08-18  Bruno Haible  <bruno@clisp.org>
4307
4308         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
4309         (ME_DUMMY): Treat "kernfs" as a dummy.
4310         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
4311
4312 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4313
4314         Update from coreutils.
4315
4316         2006-08-15  Jim Meyering  <jim@meyering.net>
4317
4318         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
4319
4320         2006-01-17  Jim Meyering  <jim@meyering.net>
4321
4322         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
4323
4324         2006-01-11  Jim Meyering  <jim@meyering.net>
4325
4326         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
4327         Check for the lchmod function.
4328
4329 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4330
4331         Update from coreutils.
4332
4333         * lib/__fpending.h: Add copyright notice.
4334         * lib/fprintftime.h: Likewise.
4335         * lib/savedir.c: Use (C) in copyright notice.
4336         * lib/savedir.h: Likewise.
4337
4338         2006-08-15  Jim Meyering  <jim@meyering.net>
4339
4340         * lib/at-func.c: New file, with the logic of all emulated at-functions.
4341         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
4342         in support of the EXPECTED_ERRNO macro.
4343         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
4344         definitions.  Instead, define the appropriate symbols and include
4345         "at-func.c".
4346         * lib/mkdirat.c (mkdirat): Likewise.
4347         * lib/fchmodat.c (fchmodat): Likewise.
4348         (ENOSYS): Remove definition.
4349         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
4350         it.  Don't include "unistd--.h" -- it wasn't ever used.
4351
4352         2006-01-17  Jim Meyering  <jim@meyering.net>
4353
4354         Rewrite fts.c not to change the current working directory,
4355         by using openat, fstatat, fdopendir, etc..
4356
4357         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
4358         (HAVE_OPENAT_SUPPORT): Define.
4359         [_LIBC] (fchdir): Don't undef or define; no longer used.
4360         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
4361         Now, this `function' always succeeds, and consumes its file descriptor
4362         parameter -- so callers must not close such FDs.  Update callers.
4363         (diropen_fd, opendirat, cwd_advance_fd): New functions.
4364         (diropen): Add parameter, SP.  Adjust all callers.
4365         Implement using diropen_fd, rather than open.
4366         (fts_open): Initialize new member, fts_cwd_fd.
4367         Remove fts_rft-setting code.
4368         (fts_close): Close fts_cwd_fd, if necessary.
4369         (__opendir2): Define in terms of opendir or opendirat,
4370         depending on whether the FST_NOCHDIR flag is set.
4371         (fts_build): Since fts_safe_changedir consumes its FD, and since
4372         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
4373         and close the dup'd file descriptor upon failure.
4374         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
4375         (fts_safe_changedir): Tweak semantics to reflect that this function
4376         now calls cwd_advance_fd and hence consumes its FD argument.
4377         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
4378         [struct FTS] (fts_rft): Remove now-unused member.
4379         [struct FTS] (fts_cycle.state): Improve comment.
4380
4381         * lib/openat.c (openat_needs_fchdir): New function.
4382         * lib/openat.h (openat_needs_fchdir): Declare it.
4383
4384 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
4387         Problem and fix reported by Pádraig Brady in
4388         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
4389
4390 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4391
4392         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
4393
4394 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         * lib/memcoll.c (memcoll): Optimize for the common case where the
4397         arguments are bytewise equal.
4398
4399 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4400
4401         * doc/regexprops-generic.texi: Add a copyright notice.
4402
4403 2006-08-15  Bruno Haible  <bruno@clisp.org>
4404
4405         * modules/tmpdir (License): Change to LGPL.
4406
4407 2006-08-15  Bruno Haible  <bruno@clisp.org>
4408
4409         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
4410         module.
4411
4412 2006-08-14  Simon Josefsson  <jas@extundo.com>
4413
4414         * config/srclist.txt: Add gnupload.
4415
4416 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4417
4418         Change copyright notice from LGPL 2 to GPL 2, since that's the
4419         standard form used in the gnulib repository.
4420         * tests/test-lock.c: Likewise.
4421         * tests/test-stdint.c: Likewise.
4422         * tests/test-tls.c: Likewise.
4423
4424         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
4425         prelude-manager.  User shorter URLs for GNU projects, without '?'.
4426         Add copyright notice.
4427
4428         * check-module: Add copyright notice.  Output a copyright
4429         notice if "--version" is specified.
4430         * modules/COPYING: New file.
4431         * tests/test-getaddrinfo.c: Add copyright notice.
4432         * tests/test-verify.c: Likewise.
4433
4434 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4435
4436         Change copyright notice from LGPL 2 to GPL 2, since that's the
4437         standard form used in the gnulib repository.
4438         * lib/lock.c: LGPL -> GPL.
4439         * lib/lock.h: Likewise.
4440         * lib/strnlen1.c: Likewise.
4441         * lib/strnlen1.h: Likewise.
4442         * lib/tls.c: Likewise.
4443         * lib/tls.h: Likewise.
4444         * lib/tmpdir.c: Likewise.
4445
4446         * lib/TODO: Remove; this belongs only in coreutils.
4447
4448 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4449
4450         Add copyright notices to long-enough files that lack them, since
4451         otherwise the files aren't clearly free.  Use the same notice that
4452         getdate.texi already uses.
4453         * doc/alloca-opt.texi: Add copyright notice.
4454         * doc/alloca.texi: Likewise.
4455         * doc/ctime.texi: Likewise.
4456         * doc/functions.texi: Likewise.
4457         * doc/gcd.texi: Likewise.
4458         * doc/gnulib-tool.texi: Likewise.
4459         * doc/inet_ntoa.texi: Likewise.
4460         * doc/visibility.texi: Likewise.
4461
4462         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
4463         * doc/quote.texi: Add copyright notice.
4464
4465         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
4466         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
4467         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
4468         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
4469         is now obsolete, and give a pointer to the Sun list.
4470         Add copyright notice.
4471
4472 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4473
4474         * config/srclistvars.sh: Add copyright notice.
4475
4476 2006-08-14  Eric Blake  <ebb9@byu.net>
4477
4478         Import the following change from libc:
4479
4480         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
4481
4482         Upstream bug 2997.
4483         * lib/misc/error.c: Add space between program name and message if file
4484         name is missing.
4485
4486 2006-08-12  Karl Berry  <karl@gnu.org>
4487
4488         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
4489         remove, these originate in gnulib now.
4490
4491 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4492
4493         * doc/Makefile (standards.info standards.html standards.dvi):
4494         Also depend on make-stds.texi.
4495
4496 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4497
4498         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
4499         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
4500
4501         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
4502         in wchar_t.  Problem reported by Eric Blake.
4503
4504         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
4505         LEN is smaller than SIZE.  Suggested by Bruno Haible.
4506         Also, help the compiler to keep LEN in a register.
4507
4508 2006-08-11  Eric Blake  <ebb9@byu.net>
4509
4510         * users.txt: Sort.  Add tar.
4511
4512 2006-08-11  Bruno Haible  <bruno@clisp.org>
4513
4514         * users.txt: New file.
4515
4516 2006-08-11  Bruno Haible  <bruno@clisp.org>
4517
4518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
4519         before <wchar.h>. Needed for OSF/1 and BSD/OS.
4520
4521 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4522
4523         * modules/snprintf (Depends-on): Remove minmax.
4524         (Maintainer): Add self and Bruno.
4525
4526 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4527
4528         * lib/.cppi-disable: Add snprintf.h, socket_.h.
4529         * lib/snprintf.c: Include <errno.h> and <limits.h>.
4530         (EOVERFLOW): Define if the system does not.
4531         Do not include "minmax.h"; it wasn't used.
4532         (snprintf): Don't assume size_t promotes to an unsigned type.
4533         Fix bug when generated string was too long for the buffer: the
4534         buffer's contents are supposed to be the initial prefix of the
4535         output.  Don't assume vasnprintf returns EOVERFLOW if the size
4536         exceeds INT_MAX; do the check ourselves.
4537
4538         Import the following changes from libc:
4539
4540         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
4541
4542         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
4543         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
4544         set wc to the byte which couldn't be converted.
4545         (re_string_reconstruct): Don't clear valid_raw_len before calling
4546         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
4547         tip_context using re_string_context_at.
4548
4549         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
4550
4551         * lib/posix/regex.h: g++ still cannot handled [restrict].
4552
4553         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
4554
4555         * lib/posix/regex.h: Remove special handling for VMS.
4556
4557 2006-08-10  Jim Meyering  <jim@meyering.net>
4558
4559         * modules/same-inode: New module.
4560         * modules/dev-ino: New module.
4561         * modules/cycle-check: Depend on these modules, rather than simply
4562         including their .h files.
4563         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
4564         required via m4/cycle-check.m4.
4565         * modules/same: Depend on new same-inode module, rather than
4566         including same-inode.h.
4567         * modules/chdir-safer: New file.
4568
4569         * modules/chown (Depends-on): Add stat-macros.
4570
4571 2006-08-10  Jim Meyering  <jim@meyering.net>
4572
4573         * m4/cycle-check.m4: New file.
4574         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
4575         * m4/dev-ino.m4, m4/same-inode.m4: New files.
4576
4577 2006-08-10  Eric Blake  <ebb9@byu.net>
4578
4579         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
4580         in from original proposal.
4581
4582 2006-08-10  Eric Blake  <ebb9@byu.net>
4583         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4584
4585         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
4586         namespace.
4587
4588 2006-08-10  Bruno Haible  <bruno@clisp.org>
4589
4590         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
4591         as well.
4592
4593 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         Sync from coreutils.
4596
4597         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
4598
4599         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
4600         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
4601
4602 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         * modules/restrict: Remove; no longer needed now that we assume
4605         Autoconf 2.59 or later.
4606         * MODULES.html.sh: Remove 'restrict'.
4607         * modules/argp (Depends-on): Remove 'restrict'.
4608         * modules/base64 (Depends-on): Likewise.
4609         * modules/gc (Depends-on): Likewise.
4610         * modules/getaddrinfo (Depends-on): Likewise.
4611         * modules/glob (Depends-on): Likewise.
4612         * modules/inet_ntop (Depends-on): Likewise.
4613         * modules/inet_pton (Depends-on): Likewise.
4614         * modules/memxor (Depends-on): Likewise.
4615         * modules/regex (Depends-on): Likewise.
4616         * modules/strtok_r (Depends-on): Likewise.
4617         * modules/time_r (Depends-on): Likewise.
4618
4619 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
4622         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
4623         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4624         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
4625         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4626         * m4/memxor.m4 (gl_MEMXOR): Likewise.
4627         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
4628         gl_C_RESTRICT replaced by AC_C_RESTRICT.
4629
4630         Merge from coreutils.
4631         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
4632         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
4633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4634         * m4/time_r.m4 (gl_TIME_R): Likewise.
4635
4636 2006-08-09  Karl Berry  <karl@gnu.org>
4637
4638         * config/srclist.txt: no more gettext-tools, per Bruno.
4639
4640 2006-08-08  Eric Blake  <ebb9@byu.net>
4641
4642         * modules/verror: New module.
4643         * MODULES.html.sh: Document it.
4644
4645 2006-08-08  Eric Blake  <ebb9@byu.net>
4646
4647         * lib/verror.h, lib/verror.c: New files.
4648
4649 2006-08-08  Eric Blake  <ebb9@byu.net>
4650
4651         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
4652         verror_at_line output complies with GNU Coding Standards even when
4653         file is NULL.
4654
4655 2006-08-07  Bruno Haible  <bruno@clisp.org>
4656
4657         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
4658         versions of AIX.
4659         Reported by Ralf Wildenhues.
4660
4661 2006-08-07  Bruno Haible  <bruno@clisp.org>
4662
4663         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
4664         in an AC_DEFUN. Needed so that the autoconf snippets can use
4665         AC_REQUIRE.
4666
4667 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4668
4669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4670         Initialize pkgdata_DATA.
4671         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
4672         overriding it.
4673
4674 2006-08-06  Eric Blake  <ebb9@byu.net>
4675
4676         * lib/error.h: Fold in some upstream changes from glibc.
4677         * lib/error.c: Likewise.
4678
4679 2006-08-04  Bruno Haible  <bruno@clisp.org>
4680
4681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4682         Make the mostlyclean-local rule depend on mostlyclean-generic.
4683         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
4684
4685 2006-07-31  Bruno Haible  <bruno@clisp.org>
4686
4687         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
4688         <stdlib.h>, <string.h>.
4689
4690 2006-07-30  Bruno Haible  <bruno@clisp.org>
4691
4692         * modules/readlink (License): Change to LGPL.
4693
4694 2006-07-30  Bruno Haible  <bruno@clisp.org>
4695
4696         * modules/javaversion (Makefile.am): Distribute javaversion.java and
4697         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
4698         set PKGDATADIR to point to it.
4699
4700 2006-07-30  Bruno Haible  <bruno@clisp.org>
4701
4702         * modules/csharpexec (configure.ac): Comment out macro invocation.
4703         * modules/javaexec (configure.ac): Likewise.
4704         * modules/javacomp-script (configure.ac): Likewise.
4705
4706         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
4707
4708 2006-07-30  Bruno Haible  <bruno@clisp.org>
4709
4710         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
4711         linked-list.
4712
4713 2006-07-30  Bruno Haible  <bruno@clisp.org>
4714
4715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
4716
4717 2006-07-30  Bruno Haible  <bruno@clisp.org>
4718
4719         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4720         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
4721         get removed.
4722
4723 2006-07-29  Bruno Haible  <bruno@clisp.org>
4724
4725         Make it possible for gnulib-tool to work with locally modified or
4726         augmented gnulib repositories.
4727         * gnulib-tool (func_usage): Document --local-dir option.
4728         (local_gnulib_dir): New variable.
4729         Handle --local-dir option.
4730         (func_lookup_file): New function.
4731         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
4732         (func_get_description, func_get_filelist, func_get_description,
4733         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
4734         func_get_automake_snippet, func_get_include_directive,
4735         func_get_license, func_get_maintainer): Use func_lookup_file.
4736         (func_import, func_create_testdir): Use func_lookup_file.
4737
4738 2006-07-29  Bruno Haible  <bruno@clisp.org>
4739
4740         * modules/setenv (Depends-on): Add unistd.
4741
4742 2006-07-29  Bruno Haible  <bruno@clisp.org>
4743
4744         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
4745
4746 2006-07-29  Bruno Haible  <bruno@clisp.org>
4747
4748         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
4749
4750 2006-07-29  Bruno Haible  <bruno@clisp.org>
4751
4752         * gnulib-tool (import, update): If there is no Makefile.am, look at
4753         aclocal.m4, instead of bailing out.
4754
4755 2006-07-29  Bruno Haible  <bruno@clisp.org>
4756
4757         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
4758         Categorize the options by when they are useful.
4759
4760 2006-07-29  Bruno Haible  <bruno@clisp.org>
4761
4762         * gnulib-tool (func_usage): Document option --no-libtool.
4763         Handle option --no-libtool.
4764         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
4765         for changed semantics of $libtool variable.
4766         (func_import): Likewise. If libtool is not used, show this through
4767         an option --no-libtool.
4768         (func_create_testdir): Update.
4769
4770 2006-07-29  Bruno Haible  <bruno@clisp.org>
4771
4772         * gnulib-tool (func_import): Extend error message about missing
4773         --doc-base.
4774
4775 2006-07-29  Bruno Haible  <bruno@clisp.org>
4776
4777         * gnulib-tool (func_import): Don't create the $docbase directory if
4778         there is no file to store there.
4779
4780 2006-07-29  Bruno Haible  <bruno@clisp.org>
4781
4782         * gnulib-tool (autoconf_minversion): If a --dir option is given and
4783         relevant, look for configure.ac there, not in the current directory.
4784         Also use a simple search for AC_PREREQ, not "autoconf --trace".
4785
4786 2006-07-29  Bruno Haible  <bruno@clisp.org>
4787
4788         * gnulib-tool (SORT): New variable.
4789         (func_usage): Undocument --assume-autoconf option.
4790         Remove --assume-autoconf option handling.
4791         (autoconf_minversion): Determine from the contents of configure.ac.
4792         (func_import): Remove autoconf_minversion handling.
4793         Suggested by Eric Blake.
4794
4795 2006-07-29  Bruno Haible  <bruno@clisp.org>
4796
4797         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
4798
4799 2006-07-29  Bruno Haible  <bruno@clisp.org>
4800
4801         * config/srclist.txt (*setenv.[ch]): Remove rules.
4802
4803 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4804
4805         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
4806
4807 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4808
4809         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
4810         arpa/inet.h.
4811
4812 2006-07-28  Simon Josefsson  <jas@extundo.com>
4813
4814         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
4815         * modules/inet_pton (Depends-on): Likewise.
4816
4817 2006-07-28  Simon Josefsson  <jas@extundo.com>
4818
4819         * m4/netinet_in_h.m4: New file.
4820
4821 2006-07-28  Simon Josefsson  <jas@extundo.com>
4822
4823         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
4824         #include's.
4825
4826 2006-07-28  Simon Josefsson  <jas@extundo.com>
4827
4828         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
4829         #include's.
4830
4831 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
4832
4833         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
4834         setgid on directories only if they set these bits.
4835         * lib/modechange.h: Remove obsolete comment about masks.
4836
4837 2006-07-28  Eric Blake  <ebb9@byu.net>
4838
4839         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
4840         macro expansion.
4841
4842 2006-07-28  Bruno Haible  <bruno@clisp.org>
4843
4844         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
4845
4846 2006-07-28  Bruno Haible  <bruno@clisp.org>
4847
4848         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
4849
4850 2006-07-28  Bruno Haible  <bruno@clisp.org>
4851
4852         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4853         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4854         Define fallbacks.
4855         Avoids link error on FreeBSD 4.x.
4856         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4857
4858         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
4859         encoding.
4860         * lib/mbswidth.c (iswcntrl): Likewise.
4861
4862 2006-07-27  Bruno Haible  <bruno@clisp.org>
4863
4864         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
4865         test.
4866
4867 2006-07-27  Bruno Haible  <bruno@clisp.org>
4868
4869         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
4870         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
4871         defined.
4872
4873 2006-07-26  Eric Blake  <ebb9@byu.net>
4874
4875         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
4876
4877 2006-07-26  Eric Blake  <ebb9@byu.net>
4878
4879         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
4880         like mingw that lack mkstemp.
4881         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
4882         avoid compilation warning on mingw.
4883
4884 2006-07-26  Bruno Haible  <bruno@clisp.org>
4885
4886         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
4887         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
4888         INT_FAST*_MIN, INTPTR_MIN.
4889
4890 2006-07-25  Bruno Haible  <bruno@clisp.org>
4891
4892         * modules/version-etc (Depends-on): Add stdarg.
4893
4894 2006-07-25  Bruno Haible  <bruno@clisp.org>
4895
4896         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
4897         complex commands.
4898
4899 2006-07-25  Bruno Haible  <bruno@clisp.org>
4900
4901         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
4902         defined in <stdarg.h> or config.h.
4903
4904 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
4907         (gl_STDIO_SAFER): Remove.
4908
4909 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4910
4911         * MODULES.html.sh (File stream based Input/Output):
4912         Add fopen-safer, tmpfile-safer; remove stdio-safer.
4913         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
4914         * modules/fopen-safer, modules/tmpfile-safer: New files.
4915         * modules/stdio-safer: Remove.
4916
4917 2006-07-24  Bruno Haible  <bruno@clisp.org>
4918
4919         * modules/tmpdir: New file.
4920         * MODULES.html.sh (File system functions): Add it.
4921
4922 2006-07-24  Bruno Haible  <bruno@clisp.org>
4923
4924         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
4925         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
4926
4927 2006-07-24  Bruno Haible  <bruno@clisp.org>
4928
4929         * modules/clean-temp: New file.
4930
4931 2006-07-24  Bruno Haible  <bruno@clisp.org>
4932
4933         * m4/tmpdir.m4: New file, from GNU gettext.
4934
4935 2006-07-24  Bruno Haible  <bruno@clisp.org>
4936
4937         * lib/tmpdir.h: New file, from GNU gettext.
4938         * lib/tmpdir.c: New file, from GNU gettext.
4939
4940 2006-07-24  Bruno Haible  <bruno@clisp.org>
4941
4942         * lib/clean-temp.h: New file, from GNU gettext.
4943         * lib/clean-temp.c: New file, from GNU gettext.
4944
4945 2006-07-23  Eric Blake  <ebb9@byu.net>
4946
4947         * modules/stdio-safer (Files): Add tmpfile-safer.c.
4948         (Depends-on): Add binary-io.
4949
4950 2006-07-23  Eric Blake  <ebb9@byu.net>
4951
4952         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
4953
4954 2006-07-23  Eric Blake  <ebb9@byu.net>
4955
4956         * lib/tmpfile-safer.c: New file.
4957         * lib/stdio-safer.h (fopen_safer): Add prototype.
4958         * lib/stdio--.h (tmpfile): Make safer.
4959
4960 2006-07-23  Bruno Haible  <bruno@clisp.org>
4961
4962         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
4963         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
4964         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
4965         gl_linked_remove_at): Use it.
4966
4967 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4968         and Simon Josefsson <jas@extundo.com>
4969
4970         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
4971
4972         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
4973
4974 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4975
4976         * modules/close-stream: New file.
4977         * modules/closeout (Description): Make it clear that it exits
4978         with a diagnostic on error.
4979         (Depends-on): Add close-stream.  Remove fpending, stdbool.
4980         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
4981
4982 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4983
4984         * m4/close-stream.m4: New file.
4985
4986 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4987
4988         * lib/close-stream.c, lib/close-stream.h: New files.
4989
4990 2006-07-22  Bruno Haible  <bruno@clisp.org>
4991
4992         Merge from GNU gettext 0.15.
4993
4994         2006-05-01  Bruno Haible  <bruno@clisp.org>
4995
4996                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
4997
4998         2006-07-22  Bruno Haible  <bruno@clisp.org>
4999
5000                 * modules/javaversion: New file.
5001                 * MODULES.html.sh (Java): Add javaversion.
5002
5003         2006-03-12  Bruno Haible  <bruno@clisp.org>
5004
5005                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
5006
5007         2005-12-04  Bruno Haible  <bruno@clisp.org>
5008
5009                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
5010                 (untested).
5011
5012         2006-06-21  Bruno Haible  <bruno@clisp.org>
5013
5014                 Avoid warnings from recent versions of mcs.
5015                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
5016                 -o, -L, -r any more. Use options documented since mcs-1.0
5017                 instead. Similarly for -g.
5018
5019         2005-12-04  Bruno Haible  <bruno@clisp.org>
5020
5021                 * build-aux/csharpcomp.sh.in: Suffix for resources is
5022                 .resources, not .resource.
5023
5024         2005-07-09  Bruno Haible  <bruno@clisp.org>
5025
5026                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
5027                 add a .dll suffix.
5028                 Reported by Mark Junker <mjscod@gmx.de>.
5029
5030         2006-07-22  Bruno Haible  <bruno@clisp.org>
5031
5032                 * modules/gettext: Upgrade to gettext-0.15.
5033                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
5034                 m4/visibility.m4.
5035                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
5036
5037 2006-07-22  Bruno Haible  <bruno@clisp.org>
5038
5039         Merge from GNU gettext 0.15.
5040
5041         2006-03-25  Bruno Haible  <bruno@clisp.org>
5042
5043                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
5044
5045         2006-07-21  Bruno Haible  <bruno@clisp.org>
5046
5047                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
5048                 "1.1".
5049
5050         2006-05-09  Bruno Haible  <bruno@clisp.org>
5051
5052                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
5053                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
5054                 for the conftestver execution.
5055
5056         2006-05-01  Bruno Haible  <bruno@clisp.org>
5057
5058                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
5059                 optional target-version argument. Verify that the compiler
5060                 groks source of the specified source-version, or add -source
5061                 option as necessary. Verify that the compiler produces
5062                 bytecode in the specified target-version, or add -target and
5063                 -source options as necessary. Make the result of the test
5064                 available as variable CONF_JAVAC. Also log error output in
5065                 config.log.
5066
5067         2006-03-11  Bruno Haible  <bruno@clisp.org>
5068
5069                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
5070
5071         2006-05-09  Bruno Haible  <bruno@clisp.org>
5072
5073                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
5074                 CLASSPATH_SEPARATOR to a semicolon.
5075
5076         2006-03-12  Bruno Haible  <bruno@clisp.org>
5077
5078                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
5079                 available as variable CONF_JAVA, for subsequent autoconf
5080                 tests. Also log error output in config.log.
5081
5082         2006-07-19  Bruno Haible  <bruno@clisp.org>
5083
5084                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
5085                 that getline works on glibc2 systems. Needed to avoid trouble
5086                 in relocatable.c.
5087                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
5088
5089         2005-12-04  Bruno Haible  <bruno@clisp.org>
5090
5091                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
5092                 launcher (untested).
5093
5094         2005-12-04  Bruno Haible  <bruno@clisp.org>
5095
5096                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
5097
5098         2006-07-22  Bruno Haible  <bruno@clisp.org>
5099
5100                 * gettext.m4: Update from GNU gettext-0.15.
5101                 * nls.m4: Likewise.
5102                 * po.m4: Likewise.
5103                 * inttypes-pri.m4: Likewise.
5104                 * inttypes-h.m4: Renamed from inttypes.m4.
5105                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
5106
5107 2006-07-22  Bruno Haible  <bruno@clisp.org>
5108
5109         Merge from GNU gettext 0.15.
5110
5111         2005-07-05  Bruno Haible  <bruno@clisp.org>
5112
5113                 * printf-args.c (printf_fetchargs): Work around broken
5114                 definition of wint_t on mingw.
5115
5116         2005-02-12  Bruno Haible  <bruno@clisp.org>
5117
5118                 * xallocsa.h: Add extern "C" for C++.
5119
5120         2006-05-17  Bruno Haible  <bruno@clisp.org>
5121
5122                 Cygwin portability.
5123                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
5124
5125         2006-04-30  Bruno Haible  <bruno@clisp.org>
5126
5127                 * progreloc.c: Include <mach-o/dyld.h> if available.
5128                 (find_executable): Use _NSGetExecutablePath when possible.
5129
5130         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
5131
5132                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
5133                 function.
5134
5135         2005-12-29  Bruno Haible  <bruno@clisp.org>
5136
5137                 * progreloc.c (set_program_name_and_installdir): Fix
5138                 compilation error.
5139
5140         2005-12-04  Bruno Haible  <bruno@clisp.org>
5141
5142                 Cygwin portability.
5143                 * progreloc.c: Include <windows.h> also on Cygwin.
5144                 (find_executable): Add support for Cygwin.
5145                 (set_program_name_and_installdir): Handle also platforms with
5146                 nonempty EXEEXT.
5147
5148         2006-07-11  Bruno Haible  <bruno@clisp.org>
5149
5150                 * javacomp.c: Fix a comment.
5151                 Reported by Jim Meyering.
5152
5153         2006-04-30  Bruno Haible  <bruno@clisp.org>
5154
5155                 * javacomp.h (compile_java_class): Add source_version,
5156                 target_version arguments.
5157                 * javacomp.c: Rewritten to choose only a compiler that
5158                 respects the specified source_version and target_version.
5159
5160         2006-06-27  Bruno Haible  <bruno@clisp.org>
5161
5162                 Assume correct S_ISDIR macro.
5163                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
5164
5165         2006-07-22  Bruno Haible  <bruno@clisp.org>
5166
5167                 * javaversion.h: New file, from GNU gettext.
5168                 * javaversion.c: New file, from GNU gettext.
5169                 * javaversion.java: New file, from GNU gettext.
5170                 * javaversion.class: New file, from GNU gettext.
5171
5172         2006-05-17  Bruno Haible  <bruno@clisp.org>
5173
5174                 Cygwin portability.
5175                 * javaexec.c (execute_java_class): Test for jview program
5176                 also on Cygwin.
5177
5178         2006-04-09  Bruno Haible  <bruno@clisp.org>
5179
5180                 * fatal-signal.c: Don't include string.h.
5181                 (at_fatal_signal): Use a copying loop instead of memcpy.
5182
5183         2005-12-04  Bruno Haible  <bruno@clisp.org>
5184
5185                 * csharpexec.c: Add support for 'clix' launcher (untested).
5186                 (execute_csharp_using_sscli): New function.
5187                 (execute_csharp_program): Call it.
5188
5189         2006-06-21  Bruno Haible  <bruno@clisp.org>
5190
5191                 Avoid warnings from recent versions of mcs.
5192                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
5193                 -o, -L, -r any more. Use options documented since mcs-1.0
5194                 instead. Similarly for -g.
5195
5196         2005-07-09  Bruno Haible  <bruno@clisp.org>
5197
5198                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
5199                 add a .dll suffix.
5200                 Reported by Mark Junker <mjscod@gmx.de>.
5201
5202         2006-06-17  Bruno Haible  <bruno@clisp.org>
5203
5204                 * config.charset: Update for NetBSD 3.0.
5205
5206         2006-05-17  Bruno Haible  <bruno@clisp.org>
5207
5208                 Cygwin portability.
5209                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
5210
5211         2006-05-16  Bruno Haible  <bruno@clisp.org>
5212
5213                 * localcharset.c [CYGWIN]: Include <windows.h>.
5214                 (get_charset_aliases): For Cygwin, return the same CPxxx
5215                 aliases list as under WIN32.
5216                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
5217                 the environment variables. Fall back to GetACP().
5218
5219         2006-04-05  Bruno Haible  <bruno@clisp.org>
5220
5221                 * config.charset: Update Juan Manuel Guerrero's address.
5222
5223         2005-02-12  Bruno Haible  <bruno@clisp.org>
5224
5225                 * allocsa.h: Add extern "C" for C++.
5226
5227         2005-02-10  Bruno Haible  <bruno@clisp.org>
5228
5229                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
5230                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
5231
5232         2006-07-22  Bruno Haible  <bruno@clisp.org>
5233
5234                 * gettext.h: Update to GNU gettext-0.15.
5235
5236 2006-07-22  Bruno Haible  <bruno@clisp.org>
5237
5238         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
5239         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
5240         lib-prefix.m4, longdouble.m4, ssize_t.m4.
5241
5242 2006-07-21  Eric Blake  <ebb9@byu.net>
5243
5244         * modules/stdlib-safer: New file.
5245         * MODULES.html.sh (File stream based Input/Output): Add
5246         stdlib-safer.
5247
5248 2006-07-21  Eric Blake  <ebb9@byu.net>
5249
5250         * lib/stdlib-safer.h: New file from coreutils, required by
5251         stdlib--.h.
5252
5253 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5254
5255         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
5256
5257 2006-07-20  Bruno Haible  <bruno@clisp.org>
5258
5259         * gnulib-tool: Recognize new option --assume-autoconf.
5260         (autoconf_minversion): New variable.
5261         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
5262
5263 2006-07-20  Bruno Haible  <bruno@clisp.org>
5264
5265         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
5266
5267 2006-07-19  Derek R. Price  <derek@ximbiot.com>
5268
5269         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
5270         Reindent and repaginate.
5271
5272 2006-07-19  Derek Price  <derek@ximbiot.com>
5273
5274         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
5275         Correct grammar.
5276
5277 2006-07-17  Bruno Haible  <bruno@clisp.org>
5278
5279         * modules/list: New file.
5280         * modules/array-list: New file.
5281         * modules/carray-list, modules/carray-list-tests: New files.
5282         * modules/linked-list, modules/linked-list-tests: New files.
5283         * modules/avltree-list, modules/avltree-list-tests: New files.
5284         * modules/rbtree-list, modules/rbtree-list-tests: New files.
5285         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
5286         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
5287         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
5288         * modules/oset: New file.
5289         * modules/array-oset: New file.
5290         * modules/avltree-oset, modules/avltree-oset-tests: New files.
5291         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
5292         * tests/test-carray_list.c: New file.
5293         * tests/test-linked_list.c: New file.
5294         * tests/test-avltree_list.c: New file.
5295         * tests/test-rbtree_list.c: New file.
5296         * tests/test-linkedhash_list.c: New file.
5297         * tests/test-avltreehash_list.c: New file.
5298         * tests/test-rbtreehash_list.c: New file.
5299         * tests/test-avltree_oset.c: New file.
5300         * tests/test-rbtree_oset.c: New file.
5301         * MODULES.html.sh (Container data structures): New section.
5302
5303 2006-07-17  Bruno Haible  <bruno@clisp.org>
5304
5305         * m4/gl_list.m4: New file.
5306
5307 2006-07-17  Bruno Haible  <bruno@clisp.org>
5308
5309         * lib/gl_list.h: New file.
5310         * lib/gl_list.c: New file.
5311         * lib/gl_array_list.h: New file.
5312         * lib/gl_array_list.c: New file.
5313         * lib/gl_carray_list.h: New file.
5314         * lib/gl_carray_list.c: New file.
5315         * lib/gl_linked_list.h: New file.
5316         * lib/gl_linked_list.c: New file.
5317         * lib/gl_anylinked_list1.h: New file.
5318         * lib/gl_anylinked_list2.h: New file.
5319         * lib/gl_avltree_list.h: New file.
5320         * lib/gl_avltree_list.c: New file.
5321         * lib/gl_anyavltree_list1.h: New file.
5322         * lib/gl_anyavltree_list2.h: New file.
5323         * lib/gl_rbtree_list.h: New file.
5324         * lib/gl_rbtree_list.c: New file.
5325         * lib/gl_anyrbtree_list1.h: New file.
5326         * lib/gl_anyrbtree_list2.h: New file.
5327         * lib/gl_anytree_list1.h: New file.
5328         * lib/gl_anytree_list2.h: New file.
5329         * lib/gl_linkedhash_list.h: New file.
5330         * lib/gl_linkedhash_list.c: New file.
5331         * lib/gl_anyhash_list1.h: New file.
5332         * lib/gl_anyhash_list2.h: New file.
5333         * lib/gl_avltreehash_list.h: New file.
5334         * lib/gl_avltreehash_list.c: New file.
5335         * lib/gl_rbtreehash_list.h: New file.
5336         * lib/gl_rbtreehash_list.c: New file.
5337         * lib/gl_anytreehash_list1.h: New file.
5338         * lib/gl_anytreehash_list2.h: New file.
5339
5340         * lib/gl_oset.h: New file.
5341         * lib/gl_oset.c: New file.
5342         * lib/gl_array_oset.h: New file.
5343         * lib/gl_array_oset.c: New file.
5344         * lib/gl_avltree_oset.h: New file.
5345         * lib/gl_avltree_oset.c: New file.
5346         * lib/gl_rbtree_oset.h: New file.
5347         * lib/gl_rbtree_oset.c: New file.
5348         * lib/gl_anytree_oset.h: New file.
5349
5350 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5351
5352         * m4/mkancesdirs.m4: New file.
5353         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
5354         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
5355         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
5356         it.
5357
5358 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5359
5360         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
5361         * lib/mkancesdirs.h: New files.
5362         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
5363         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
5364         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
5365         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
5366         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
5367         callers changed.  Revamp internals significantly, by not
5368         attempting to create directories that are temporarily more
5369         permissive than the final results.  Do not attempt to use
5370         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
5371         This removes some race conditions, fixes some bugs, and simplifies
5372         things.  Use new dirchownmod function to do owner and mode changes.
5373         * lib/mkdir-p.h: Likewise.
5374         * lib/modechange.c (octal_to_mode): New function.
5375         (struct mode_change): New member mentioned.
5376         (make_node_op_equals): New arg mentioned.  All callers changed.
5377         (mode_compile): Keep track of which mode bits the user has explicitly
5378         mentioned.
5379         (mode_adjust): New arg DIR, so that we implement the X op correctly.
5380         New arg PMODE_BITS, to keep track of which mode bits the user
5381         mentioned; it treats S_ISUID and S_ISGID speciall.
5382         All callers changed.
5383         * lib/modechange.h: Likewise.
5384
5385 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5386
5387         * MODULES.html.sh: Add mkancestors.
5388         * modules/mkancesdirs: New module.
5389         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
5390         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
5391         The chdir-safer and afs files are now orphans; I'll remove them
5392         unless someone speaks up.
5393         Add lib/dirchownmod.c, lib/dirchownmod.h.
5394         (Depends-on): Remove alloca, chown, save-cwd, dirname.
5395         Add lchown, mkancesdirs.
5396         (Maintainer): Add self.
5397
5398 2006-07-15  Karl Berry  <karl@gnu.org>
5399
5400         * gnulib-tool: help message wording/arrangement.
5401
5402 2006-07-14  Simon Josefsson  <jas@extundo.com>
5403
5404         * doc/gnulib.texi (Libtool and Windows): New section.
5405
5406 2006-07-12  Simon Josefsson  <jas@extundo.com>
5407
5408         * modules/gendocs (License): Fix license, approved by Karl.
5409
5410 2006-07-12  Eric Blake  <ebb9@byu.net>
5411
5412         * MODULES.html.sh: Add gendocs.
5413
5414 2006-07-11  Eric Blake  <ebb9@byu.net>
5415
5416         * modules/fdl: New module, to install doc/fdl.texi.
5417         * MODULES.html.sh: Add new section for documentation modules.
5418         * gnulib-tool: Avoid space-tab.
5419         (--doc-base): New option, to manage files from doc.
5420
5421 2006-07-11  Eric Blake  <ebb9@byu.net>
5422
5423         * m4/absolute-header.m4: Fix comments to match recent change.
5424
5425 2006-07-11  Eric Blake  <ebb9@byu.net>
5426
5427         * gnulib-tool: List --doc-base before --tests-base.
5428
5429 2006-07-11  Derek R. Price  <derek@ximbiot.com>
5430
5431         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
5432
5433 2006-07-11  Bruno Haible  <bruno@clisp.org>
5434
5435         * README: Mention where to put documentation.
5436
5437 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5438
5439         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
5440
5441 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5442
5443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
5444         to stdint.m4.
5445
5446 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5447
5448         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
5449         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
5450         "no/such/file/stdint.h" when there is no such file, so that
5451         the resulting C code can be parsed by dodgy compilers.
5452         Problems reported by Bob Proulx.
5453
5454 2006-07-10  Derek R. Price  <derek@ximbiot.com>
5455
5456         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
5457         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
5458         macros into the GNU _D_EXACT_NAMLEN.
5459         * lib/savedir.c:  Likewise.
5460         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
5461
5462 2006-07-10  Derek R. Price  <derek@ximbiot.com>
5463         and Paul Eggert  <eggert@cs.ucla.edu>
5464
5465         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
5466         * m4/savedir.m4:
5467         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
5468         macros into the GNU _D_EXACT_NAMLEN.
5469
5470 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5471
5472         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
5473         around the absolute name, to work around a problem with the HP-UX
5474         11.23 native C compiler, reported by Bob Proulx.
5475
5476 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         * doc/maintain.texi, make-stds.texi: Sync from
5479         <http://savannah.gnu.org/projects/gnustandards>.
5480
5481 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5482
5483         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
5484
5485 2006-07-09  Jim Meyering  <jim@meyering.net>
5486
5487         * m4/glob.m4: Remove a doubled word in a comment.
5488
5489 2006-07-09  Jim Meyering  <jim@meyering.net>
5490
5491         * lib/argp-pv.c: Remove a doubled word in a comment.
5492         * lib/check-version.c (check_version): Likewise.
5493         * lib/javacomp.c (compile_java_class): Likewise.
5494
5495 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5496
5497         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
5498         for the benefit of people using Autoconf 2.60.  If you want to
5499         support older Autoconf versions you can copy m4/onceonly_2_57.m4
5500         (or m4/onceonly.m4, if pre-2.57) manually.
5501
5502 2006-07-08  Jim Meyering  <jim@meyering.net>
5503
5504         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
5505         comment.
5506         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
5507         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
5508         comment.
5509
5510 2006-07-08  Jim Meyering  <jim@meyering.net>
5511
5512         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
5513
5514 2006-07-07  Simon Josefsson  <jas@extundo.com>
5515
5516         * tests/test-crc.c: Change expected crc value, the test vector
5517         were probably computed using the old broken crc.c?
5518
5519 2006-07-06  Simon Josefsson  <jas@extundo.com>
5520
5521         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
5522         now the canonical place for the M4 file).
5523
5524         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
5525         from the sys_socket dependency now.
5526
5527         * modules/inet_pton (Files): Ditto.
5528
5529         * modules/inet_ntop (Files): Ditto.
5530
5531 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
5532
5533         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
5534         not gl_PREREQ_GETUSERSHELL.
5535
5536 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5537
5538         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
5539         with only one argument, for Autoconf 2.60.
5540         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
5541         expand to nothing, so add a shell command to avoid syntax error.
5542         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5543
5544 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5545
5546         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
5547
5548 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5549
5550         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
5551         no longer needed.  Check for isblank decl.
5552         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
5553         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
5554         of existence.
5555
5556 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5557
5558         * lib/getloadavg.c: Use __VMS, not VMS.
5559         * lib/getopt.c: Likewise.
5560         * lib/getpagesize.h: Likewise.
5561         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
5562         and probably does not work.
5563
5564 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5565
5566         * lib/.cppi-disable: Add wcwidth.
5567         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
5568         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
5569         (ISGRAPH): Remove.  All uses changed to isgraph.
5570         (FOLD) [!defined _LIBC]: Remove special case.
5571         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
5572         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
5573         HAVE_ISBLANK.
5574         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
5575         case.
5576
5577 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
5578
5579         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
5580         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
5581         brackets.  Other minor changes to suppress some compiler
5582         warnings.
5583
5584 2006-07-06  Derek R. Price  <derek@ximbiot.com>
5585         and Paul Eggert  <eggert@cs.ucla.edu>
5586
5587         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
5588         of invoking obsolescent AC_HEADER_DIRENT macro.
5589         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5590         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
5591         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5593         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
5594         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5595         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
5596         * m4/readdir.m4: Remove; no longer needed.
5597
5598 2006-07-06  Derek R. Price  <derek@ximbiot.com>
5599         and Paul Eggert  <eggert@cs.ucla.edu>
5600
5601         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
5602         Don't worry about this obsolete case any more.
5603         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
5604         directories.
5605         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
5606         worry about this obsolete case any more.
5607         * lib/fts.c: Likewise.
5608         * lib/getcwd.c: Likewise.
5609         * lib/glob.h: Likewise.
5610         * lib/savedir.c: Likewise.
5611
5612 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5613
5614         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
5615         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
5616         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
5617         needed.
5618         All uses removed.
5619         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5620         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
5621         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
5622         needed.
5623         * m4/getdate.m4 (gl_GETDATE): Likewise.
5624         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
5625         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
5626         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5627         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5628         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
5629         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
5630         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
5631         needed.
5632
5633 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5634
5635         * lib/memcasecmp.c: Include <limits.h>.
5636         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
5637         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
5638         Don't assume isdigit succeeds only on '0' through '9'.
5639
5640 2006-07-05  Eric Blake  <ebb9@byu.net>
5641
5642         * modules/getaddrinfo (Depends-on): Add snprintf.
5643
5644 2006-07-05  Eric Blake  <ebb9@byu.net>
5645
5646         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
5647         to avoid 'header present but could not be compiled' on cygwin.
5648
5649 2006-07-05  Eric Blake  <ebb9@byu.net>
5650
5651         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
5652         missing from netdb.h.
5653         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
5654
5655 2006-07-05  Derek R. Price  <derek@ximbiot.com>
5656
5657         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
5658         no longer needed.
5659         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
5660         * m4/getdate.m4 (gl_GETDATE): Likewise.
5661         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
5662         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
5663         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5664         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
5666
5667 2006-07-05  Derek R. Price  <derek@ximbiot.com>
5668
5669         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
5670         All uses of is_space replaced by isspace.
5671         * lib/exit.h: Don't talk about STDC_HEADERS.
5672         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
5673         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
5674         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
5675         replaced by isprint etc.
5676         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
5677         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
5678         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
5679         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
5680         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
5681         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
5682
5683 2006-07-05  Bruno Haible  <bruno@clisp.org>
5684
5685         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
5686         the function exists, before testing against AIX.
5687         Reported by Martin Lambers <marlam@marlam.de>.
5688
5689 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5690
5691         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
5692         From Mark D. Baushke.
5693
5694 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5695
5696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
5697         to the absolute name, not just one, to bypass Sun C 5.8's
5698         "warning: #include of /usr/include/... may be non-portable".
5699
5700 2006-07-04  Eric Blake  <ebb9@byu.net>
5701
5702         * modules/dirname-tests: New test module.
5703         * tests/test-dirname.c: New file, replacing dirname.c
5704         TEST_DIRNAME section that was recently deleted.
5705
5706 2006-07-04  Bruno Haible  <bruno@clisp.org>
5707
5708         Assume ANSI C header files and <ctype.h> functions.
5709         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
5710         (mbsnwidth): Use isprint, iscntrl instead.
5711
5712 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5713
5714         Merge from coreutils.
5715         * MODULES.html.sh: Add xstrtold.
5716         * modules/xstrtold: New file.
5717         * modules/cycle-check (Files): Add lib/same-inode.h.
5718         * modules/dirname (Files): Add m4/double-slash-root.m4.
5719         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
5720         * modules/mkdir-p (Files): Add lib/same-inode.h.
5721         * modules/same (Files): Add lib/same-inode.h.
5722
5723 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5724
5725         * m4/absolute-header.m4: Renamed from full-header-path.m4.
5726         This is to keep the terminology clean; POSIX talks about
5727         "absolute pathnames", not "full pathnames", but the GNU
5728         Coding Standards say to use "path" for something else;
5729         so use "absolute" to keep both sides happy.
5730         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
5731         Set gl_absolute_header, not gl_full_header_path.
5732         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
5733         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
5734         All uses changed.
5735
5736         Merge from coreutils.
5737
5738         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5739
5740         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
5741         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
5742         want to require the building of c-strtod.o.
5743         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
5744         needs -lm directly.
5745         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
5746
5747         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5748
5749         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
5750         --as-needed option if available.  Problem reported by Albert Chin in
5751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
5752         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
5753         cc merely issues a bunch of annoying warnings for --as-needed
5754         (this problem was reported by Bob Proulx).  Also, try linking with
5755         -lm to detect a bug in binutils 2.16 (this problem was reported
5756         by Ralf Wildenhues).
5757
5758         2006-06-18  Jim Meyering  <jim@meyering.net>
5759
5760         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
5761         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
5762         macro.
5763         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
5764         also check for glibc-2.4's abort-inducing bug.
5765
5766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
5767         Low-probability clean-up should be to use rmdir to get rid of
5768         the just-created directory, not unlink.
5769
5770         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
5771         configure fail, and request a bug report to inform us about it.
5772         Add a comment that, barring reports to the contrary, in 2007 we'll
5773         assume ftruncate is universally available.
5774
5775         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
5776
5777         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
5778
5779         2006-03-12  Jim Meyering  <jim@meyering.net>
5780
5781         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
5782         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
5783         * m4/same.m4 (gl_SAME): Likewise.
5784         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
5785
5786         2006-03-11  Eric Blake  <ebb9@byu.net>
5787
5788         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
5789         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
5790         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
5791         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
5792
5793 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5794
5795         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
5796         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
5797         reported by Mark D. Baushke, one in
5798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
5799
5800         Merge from coreutils.
5801
5802         * lib/.cppi-disable: Add stdint_.h.
5803         * lib/.cvsignore: Add stdint.h.
5804
5805         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5806
5807         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
5808         both double and long double versions.
5809         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
5810         * lib/xstrtold.c: New file.
5811         * lib/xstrtod.h (xstrtold): New decl.
5812
5813         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5814
5815         * lib/filemode.c (setst): Remove.
5816         (strmode): Rewrite to avoid setst.  This makes the code shorter,
5817         (arguably) clearer, and the generated code is a bit smaller on my
5818         Debian GNU/Linux stable x86 host.
5819
5820         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
5821
5822         * lib/filemode.c: Include "filemode.h" first, to test the interface.
5823         Assume that filemode.h includes sys/types.h and sys/stat.h.
5824         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
5825         (ftypelet): Reorder to put common cases first, for efficiency.
5826         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
5827         to do 'M'.
5828         (strmode): Renamed from mode_string, and now stores 12 bytes instead
5829         of 10, for compatibility with FreeBSD.  All callers changed.
5830         (filemodestring): Now stores 12 bytes instead of 10, and sets file
5831         types that can't be deduced solely from st_mode.  First arg is now a
5832         const pointer.
5833         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
5834         (strmode): Renamed from mode_string.
5835         (filemodestring): New decl.
5836         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
5837         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
5838         needed.
5839         (S_ISPORT, S_ISWHT): New macros, if not already defined.
5840
5841         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5842
5843         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
5844         fsusage.h now does that.  Include fsusage.h first, to test interface.
5845         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
5846         at most one method (the old code could have generated decls that
5847         didn't conform to C89, not that this was ever exercised).
5848         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
5849
5850         2006-03-19  Jim Meyering  <jim@meyering.net>
5851
5852         Work even in a chroot where d_ino values for entries in "/"
5853         don't match the stat.st_ino values for the same names.
5854         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
5855         number, iterate through all entries again, using lstat instead.
5856         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
5857         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
5858
5859         * lib/getcwd.c (__getcwd): Clarify a comment.
5860         Use memcpy in place of a call to strcpy.
5861
5862         2006-03-12  Jim Meyering  <jim@meyering.net>
5863
5864         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
5865         matches that of the current directory (which we're about to chdir ".."
5866         out of), then save the dev-ino of the parent, instead.
5867
5868         * lib/same-inode.h (SAME_INODE): New file/macro.
5869         * lib/chdir-safer.c (SAME_INODE): Remove definition.
5870         Include "same-inode.h", instead.
5871         * lib/same.c: Likewise.
5872         * lib/cycle-check.h: Include "same-inode.h".
5873         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
5874         * lib/cycle-check.c (SAME_INODE): Remove definition.
5875         * lib/root-dev-ino.h: Include "same-inode.h".
5876
5877         2006-03-11  Eric Blake  <ebb9@byu.net>
5878
5879         * lib/same.c (same_name): s/base_name/last_component/
5880         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
5881         * lib/filenamecat.c (file_name_concat): Likewise.
5882
5883         2006-03-11  Eric Blake  <ebb9@byu.net>,
5884                     Paul Eggert  <eggert@cs.ucla.edu>
5885
5886         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
5887         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
5888         drive prefix.
5889         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
5890         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
5891         (last_component): New method.
5892         * lib/dirname.c (dir_len): Determine when drive letters need a
5893         subsequent slash.  Preserve // when it is special.
5894         (dir_name): Don't append dot when drive letter is absolute.
5895         [TEST_DIRNAME]: Move into a full-blown gnulib test.
5896         * lib/basename.c (base_name): New semantics - malloc the result.
5897         Preserve // when it is special.  Preserve relative files that look
5898         like drive letters.
5899         (base_len): Preserve // when it is special.
5900         (last_component): New method, similar to old base_name semantics.
5901         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
5902         base_name.  Strip redundant slashes from ///.
5903
5904 2006-07-03  Jim Meyering  <jim@meyering.net>
5905
5906         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
5907         macro is used before the first cycle_check call.
5908
5909 2006-07-03  Eric Blake  <ebb9@byu.net>
5910
5911         * modules/dirname (Depends-on): Add xstrndup.
5912
5913 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5914
5915         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
5916         test cases, so that config.log is a bit easier to follow.
5917
5918 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5919
5920         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
5921         both are 64 bits, since this seems to be the tradition, and this
5922         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
5923         we ever run into a host that prefers long long to long in this
5924         case, we'll need another configure-time test.  Problem reported by
5925         Jim Meyering.
5926
5927 2006-07-02  Eric Blake  <ebb9@byu.net>
5928
5929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
5930
5931 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5932
5933         * modules/inttypes (Depends-on): No longer depends on stdint.
5934         * modules/stdint (Description): Say more about assumptions.
5935         Say that the fast types might differ.  Say macros are used.
5936         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
5937         (Makefile.am): Revise list of substituted symbols to match
5938         new stdint.m4.
5939         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
5940         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
5941         * tests/test-stdint.c (verify_same_types)
5942         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
5943         the code conforms to C99/C89.
5944         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
5945         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
5946
5947 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
5950         but fix a bug, by requiring at least 64 bits.
5951         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5952         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
5953         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
5954         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
5955
5956         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
5957         changes.  Make 2.59 a prerequisite.  Check and substitute for
5958         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
5959         inttypes.h.  Do not use special include files; just use the
5960         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
5961         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
5962         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
5963         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
5964         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
5965         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
5966         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
5967         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
5968         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
5969         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
5970         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
5971         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
5972         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
5973         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
5974         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
5975         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
5976         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
5977         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
5978         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
5979         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
5980         WINT_MAX.  Check for C99 conformance more strictly, by detecting
5981         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
5982         not check for things that C99 does not require, e.g., int8_t.  If
5983         a test isn't needed unless <stdint.h> isn't working, and is
5984         unlikely to be needed for any other reason, then don't do it
5985         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
5986         size_t, since we assume C89 freestanding at least.  Do not check
5987         for sig_atomic_t, wchar_t, or wint_t, since the code now does
5988         the right thing even if the types are not defined.  Instead use:
5989         (gl_STDINT_TYPE_PROPERTIES): New macro.
5990         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
5991         testing whether <sys/types.h> clashes, as Autoconf does this for
5992         us now.  All uses removed.
5993         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
5994         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
5995         (gl_CHECK_TYPE_SAME):
5996         Remove; no longer needed.
5997         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
5998         exists, since we'll return 0 anyway in that case.
5999         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
6000
6001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6002
6003         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
6004         possible collision with system files.
6005         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
6006         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
6007         WCHAR_MIN and WCHAR_MAX in this case.
6008         (<stddef.h>): Do not include; no longer needed.
6009         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
6010         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
6011         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
6012         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
6013         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
6014         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
6015         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
6016         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
6017         !defined(__c99))]: Include in this case too, since it's harmless
6018         now.
6019         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
6020         dangerous to do so.
6021         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
6022         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
6023         (_STDINT_MIN, _STDINT_MAX): New macros.
6024         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
6025         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
6026         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
6027         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
6028         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
6029         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
6030         macros, not typedefs; this simplifies things quite a bit.
6031         Use long int for all types narrower than int64_t.
6032         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
6033         Define in terms of long long int or int64_t or long int,
6034         not int64_t or int32_t.  This saves some compile-time testing.
6035         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
6036         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
6037         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
6038         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
6039         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
6040         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
6041         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
6042         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
6043         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
6044         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
6045         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6046         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6047         undef any previous version and define our own version, for
6048         simplicity and consistency with the new macros for types.
6049         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6050         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6051         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
6052         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
6053         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
6054         @WINT_T_SUFFIX@ to keep things simple here.
6055         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
6056         Simplify by assuming typical 8/16/32/64 host, since we're
6057         already doing that elsewhere anyway.
6058         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
6059         and assume long long int is 64 bits if available.  This
6060         speeds up 'configure'.
6061
6062 2006-07-01  Eric Blake  <ebb9@byu.net>
6063
6064         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
6065         Reported by Andreas Buening.
6066
6067 2006-07-01  Eric Blake  <ebb9@byu.net>
6068
6069         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
6070
6071 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6072
6073         * lib/getaddrinfo.c: fixed typo
6074
6075 2006-06-29  Jim Meyering  <jim@meyering.net>
6076
6077         * modules/strftime (Maintainer): Add my name, since with the
6078         FPRINTFTIME changes strftime.c has forked from glibc.
6079
6080 2006-06-29  Eric Blake  <ebb9@byu.net>
6081
6082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
6083
6084 2006-06-29  Eric Blake  <ebb9@byu.net>
6085
6086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
6087
6088 2006-06-29  Eric Blake  <ebb9@byu.net>
6089
6090         * lib/stat_.h: New file.
6091
6092 2006-06-29  Eric Blake  <ebb9@byu.net>
6093
6094         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
6095         unused static function.
6096
6097 2006-06-29  Eric Blake  <ebb9@byu.net>
6098
6099         * doc/functions.texi (Function Portability): Document missing lstat
6100         on mingw.
6101
6102 2006-06-29  Eric Blake  <ebb9@byu.net>
6103
6104         * MODULES.html.sh: Add sys_stat.
6105         * modules/sys_stat: New module.
6106         * modules/mkstemp (Depends-on): Add sys_stat.
6107
6108 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6109
6110         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
6111
6112 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6113
6114         * m4/c-bs-a.m4: Removed.
6115
6116 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6117
6118         * lib/strftime.c: Assume strftime() exists.
6119
6120 2006-06-29  Derek Price  <derek@ximbiot.com>
6121
6122         * modules/c-bs-a: Removed - \a is C89.
6123         * MODULES.html.sh: Remove c-bs-a.
6124
6125 2006-06-29  Bruno Haible  <bruno@clisp.org>
6126
6127         * modules/wcwidth (License): Change to LGPL.
6128
6129 2006-06-28  Simon Josefsson  <jas@extundo.com>
6130
6131         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
6132         on _WIN32.
6133
6134         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
6135         getnameinfo.
6136
6137 2006-06-28  Simon Josefsson  <jas@extundo.com>
6138
6139         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
6140
6141 2006-06-28  Simon Josefsson  <jas@extundo.com>
6142
6143         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
6144         functions there.  It will succeed on Windows XP, but on Windows
6145         2000 and (presumably) earlier, it will fail, and use the internal
6146         re-implementation.
6147         (use_win32_p): New function.
6148         (getaddrinfo): Use strtoul on servname, to support numeric ports.
6149         Support AI_NUMERICSERV to disable getservbyname.
6150         (getnameinfo): New function, only supports
6151         NI_NUMERICHOST|NI_NUMERICSERV for now.
6152
6153         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
6154         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
6155         getnameinfo.
6156
6157 2006-06-28  Eric Blake  <ebb9@byu.net>
6158
6159         * modules/wcwidth: New file.
6160         * modules/mbchar (Depends-on): Add wcwidth.
6161         * modules/mbswidth (Depends-on): Add wcwidth.
6162         * MODULES.html.sh: Add wcwidth.
6163
6164 2006-06-28  Eric Blake  <ebb9@byu.net>
6165
6166         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
6167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
6168
6169 2006-06-28  Eric Blake  <ebb9@byu.net>
6170
6171         * lib/xvasprintf.h: Fix comments.
6172
6173 2006-06-28  Eric Blake  <ebb9@byu.net>
6174
6175         * lib/mbchar.h (wcwidth): Include wcwidth.h.
6176         * lib/mbswidth.c (wcwidth): Move from here...
6177         * lib/wcwidth.h: ...to this new file.
6178
6179 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6180
6181         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
6182
6183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
6184         it's obsolete.
6185         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
6186
6187 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6188
6189         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
6190         Autoconf 2.60 says this stuff was obsolete.
6191
6192 2006-06-28  Bruno Haible  <bruno@clisp.org>
6193
6194         * modules/wcwidth (Files): Add m4/wchar_t.m4.
6195
6196 2006-06-28  Bruno Haible  <bruno@clisp.org>
6197
6198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
6199         gt_TYPE_WCHAR_T.
6200
6201 2006-06-28  Bruno Haible  <bruno@clisp.org>
6202
6203         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
6204         declaration for wcwidth.
6205         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
6206
6207 2006-06-28  Bruno Haible  <bruno@clisp.org>
6208
6209         * lib/mkdtemp.c [MINGW]: Include <io.h>.
6210         (mkdir): Define using _mkdir.
6211
6212 2006-06-28  Bruno Haible  <bruno@clisp.org>
6213
6214         * lib/getaddrinfo.h: Fix POSIX URL.
6215         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
6216         _WIN32.
6217         (use_win32_p): Make static.
6218         (getaddrinfo): Reject service name if it is empty or does not consist
6219         solely of decimal digits, or if its value is > 65535.
6220         (getnameinfo): Remove useless casts.
6221
6222 2006-06-27  Simon Josefsson  <jas@extundo.com>
6223
6224         * modules/sys_select: New file, suggested by Bruno Haible, Paul
6225         Eggert and Martin Lambers.
6226
6227 2006-06-27  Simon Josefsson  <jas@extundo.com>
6228
6229         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
6230         Eggert and Martin Lambers.
6231
6232 2006-06-27  Bruno Haible  <bruno@clisp.org>
6233
6234         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
6235         result to 0, not to empty.
6236         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
6237
6238 2006-06-27  Bruno Haible  <bruno@clisp.org>
6239
6240         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
6241
6242 2006-06-26  Simon Josefsson  <jas@extundo.com>
6243
6244         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
6245         present.
6246
6247 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
6248
6249         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
6250         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
6251         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
6252
6253 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
6254
6255         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
6256
6257 2006-06-26  Bruno Haible  <bruno@clisp.org>
6258
6259         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
6260
6261 2006-06-26  Bruno Haible  <bruno@clisp.org>
6262
6263         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
6264
6265 2006-06-26  Bruno Haible  <bruno@clisp.org>
6266
6267         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
6268         SGI C compiler in pre-C99 mode.
6269         Suggested by Mark D. Baushke and Larry Jones.
6270
6271 2006-06-26  Bruno Haible  <bruno@clisp.org>
6272
6273         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
6274         WCHAR_MAX.
6275         Reported by Mark D. Baushke and Larry Jones.
6276
6277 2006-06-26  Bruno Haible  <bruno@clisp.org>
6278
6279         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
6280         in pre-C99 mode.
6281         Suggested by Mark D. Baushke and Larry Jones.
6282
6283 2006-06-23  Simon Josefsson  <jas@extundo.com>
6284             Bruno Haible  <bruno@clisp.org>
6285
6286         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
6287         Emit mostlyclean-local rule.
6288         (func_emit_tests_Makefile_am): Likewise.
6289         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
6290
6291 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
6292
6293         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
6294
6295 2006-06-23  Bruno Haible  <bruno@clisp.org>
6296
6297         * tests/test-stdint.c: Update to match ISO C 99 Technical
6298         Corrigendum 1.
6299
6300 2006-06-23  Bruno Haible  <bruno@clisp.org>
6301
6302         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
6303
6304 2006-06-23  Bruno Haible  <bruno@clisp.org>
6305
6306         * lib/stdint_.h: Treat IRIX like OpenBSD.
6307
6308 2006-06-23  Bruno Haible  <bruno@clisp.org>
6309
6310         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
6311         ISO C 99 Technical Corrigendum 1.
6312
6313 2006-06-22  Simon Josefsson  <jas@extundo.com>
6314
6315         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
6316         MinGW.
6317
6318 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
6319
6320         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
6321         needed.  Some compiler complained about some of them.  Problem reported
6322         by Larry Jones in
6323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
6324
6325 2006-06-21  Simon Josefsson  <jas@extundo.com>
6326
6327         * tests/test-getaddrinfo.c: New file.
6328
6329         * modules/getaddrinfo-tests: New file.
6330
6331         * MODULES.html.sh: Add inet_pton.
6332
6333         * modules/inet_pton: New file.
6334
6335 2006-06-21  Simon Josefsson  <jas@extundo.com>
6336
6337         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
6338         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
6339         of using the (limited) gnulib implementation on Windows XP.
6340
6341         * m4/inet_pton.m4: New file.
6342
6343 2006-06-21  Simon Josefsson  <jas@extundo.com>
6344
6345         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
6346         variable.
6347
6348         * lib/socket_.h: Don't define WINVER.
6349
6350         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
6351         slightly modified to work in gnulib.
6352
6353 2006-06-21  Simon Josefsson  <jas@extundo.com>
6354
6355         * doc/gnulib.texi (Windows sockets): Add.
6356
6357 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
6358
6359         * lib/read-file.c (fread_file): Start with buffer allocation of
6360         0 bytes rather than 1 byte; this simplifies the code.
6361         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
6362         code to free buffer and save/restore errno.
6363         (internal_read_file): Remove unused local.
6364
6365 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6366
6367         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
6368         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
6369         Problem reported by Denis Excoffier in
6370         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
6371
6372 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6373
6374         * modules/sys_socket, modules/socklen: Include sys/types since
6375         FreeBSD 4.x's sys/socket.h needs it.
6376
6377 2006-06-19  Simon Josefsson  <jas@extundo.com>
6378
6379         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
6380
6381 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
6382
6383         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
6384
6385 2006-06-19  Bruno Haible  <bruno@clisp.org>
6386
6387         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
6388         and FULL_PATH_INTTYPES_H in angle brackets.
6389         Reported by Mark D. Baushke <mdb@gnu.org>.
6390
6391 2006-06-17  Eric Blake  <ebb9@byu.net>
6392
6393         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
6394         errno.
6395
6396 2006-06-17  Bruno Haible  <bruno@clisp.org>
6397
6398         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
6399         <sys/inttypes.h>.
6400
6401 2006-06-17  Bruno Haible  <bruno@clisp.org>
6402
6403         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
6404         whether errno is declared. Assume <errno.h> declares errno.
6405
6406 2006-06-17  Bruno Haible  <bruno@clisp.org>
6407
6408         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
6409
6410 2006-06-17  Bruno Haible  <bruno@clisp.org>
6411
6412         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
6413         problem on Solaris 2.5.1.
6414
6415 2006-06-16  Eric Blake  <ebb9@byu.net>
6416
6417         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
6418         * lib/unicodeio.c [!defined errno]: Likewise.
6419         * lib/strtol.c [!defined errno]: Likewise.
6420         * lib/strtod.c [!defined errno]: Likewise.
6421
6422 2006-06-15  Eric Blake  <ebb9@byu.net>
6423
6424         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
6425
6426 2006-06-15  Eric Blake  <ebb9@byu.net>
6427
6428         * config/srclist.txt (ssize_t.m4): Lose sync.
6429
6430 2006-06-15  Bruno Haible  <bruno@clisp.org>
6431
6432         * modules/stdint (Files): Include m4/full-header-path.m4,
6433         m4/size_max.m4, m4/wchar_t.m4.
6434         (Makefile.am): Many more substitutions.
6435         * modules/stdint-tests: New file.
6436         * tests/test-stdint.c: New file.
6437
6438 2006-06-15  Bruno Haible  <bruno@clisp.org>
6439
6440         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
6441         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
6442         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
6443         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
6444         gl_CHECK_TYPE_SAME): New macros.
6445
6446 2006-06-15  Bruno Haible  <bruno@clisp.org>
6447
6448         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
6449
6450 2006-06-15  Bruno Haible  <bruno@clisp.org>
6451
6452         * lib/stdint_.h: Rewritten to be fully auto-configured.
6453         Fixes bug on HP-UX/IA64.
6454
6455 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6456
6457         * lib/getdate.y (__attribute__): Don't define if already defined.
6458         Problem reported by Larry Jones.
6459         * lib/utimens.c (__attribute__): Likewise.
6460
6461 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6462
6463         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
6464         reported by Andreas Schwab.
6465
6466 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6467             Bruno Haible  <bruno@clisp.org>
6468
6469         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
6470         check for the declaration of strnlen and a run test that exposes the
6471         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
6472         rpl_strndup.
6473
6474 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6475             Bruno Haible  <bruno@clisp.org>
6476
6477         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
6478
6479 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6480
6481         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
6482         compile test, for Tru64 4.0D.
6483
6484 2006-05-28  Karl Berry  <karl@gnu.org>
6485
6486         * config/srclist.txt (printf-args.c): lose sync.
6487
6488 2006-05-26  Martin Lambers  <marlam@marlam.de>
6489
6490         * lib/getpass.c: Updates the test for the native W32 API, and adds
6491         missing includes, thus fixing compilation warnings.
6492
6493 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6494
6495         * lib/exclude.c (exclude_fnmatch): New function.
6496         (excluded_file_name): Call exclude_fnmatch.
6497         * lib/exclude.h (excluded_file_name): New prototype
6498
6499 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6500
6501         * lib/tempname.c (small_open, large_open): New macros.
6502         (__open, __open64) [!_LIBC]: Remove.
6503         (__gen_tempname): Use small_open and large_open instead of __open
6504         and __open64.  This fixes a portability bug on HP-UX 11.11i
6505         reported by Simon Wing-Tang in
6506         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
6507
6508 2006-05-24  Bruno Haible  <bruno@clisp.org>
6509
6510         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
6511         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
6512         Reported by Thorsten Maerz <torte@netztorte.de> via
6513         Aaron Stone <aaron@serendipity.cx>.
6514
6515 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6516
6517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
6518         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
6519         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
6520         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
6521         not really conditional on the cache.
6522         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
6523
6524 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
6527         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
6528         (my_usleep): Don't mishandle maximum value.
6529
6530 2006-05-19  Jim Meyering  <jim@meyering.net>
6531
6532         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
6533
6534 2006-05-17  Bruno Haible  <bruno@clisp.org>
6535
6536         Cygwin portability.
6537         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
6538
6539 2006-05-17  Bruno Haible  <bruno@clisp.org>
6540
6541         * lib/stdint_.h: Fix recognition of Cygwin.
6542
6543 2006-05-15  Bruno Haible  <bruno@clisp.org>
6544
6545         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
6546         on libtool patch by Ralf Wildenhues.
6547
6548 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6549
6550         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
6551         test for C99 conformance; (bool) 0.5 is an integer constant
6552         expression, but (bool) -0.5 is not.  Problem reported by Fedor
6553         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
6554
6555 2006-05-11  Simon Josefsson  <jas@extundo.com>
6556
6557         * m4/xvasprintf.m4: Fix obvious typo.
6558
6559 2006-05-11  Jim Meyering  <jim@meyering.net>
6560
6561         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
6562         James Lemley.
6563
6564 2006-05-10  Simon Josefsson  <jas@extundo.com>
6565
6566         * lib/md4.c: Typo fix, update copyright years.
6567         (K1, K2): Don't use L because it turn computations into 64-bit on
6568         64-bit platforms.
6569
6570 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6571
6572         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
6573         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
6574         unwanted sign propagation, e.g., on hosts with 64-bit int.
6575         There still are some problems with reeelly weird theoretical hosts
6576         (e.g., 33-bit int) but it's not worth worrying about now.
6577         * lib/sha1.c (rol): Likewise.
6578         (K1, K2, K3, K4): Remove unnecessary L suffix.
6579
6580 2006-05-10  Bruno Haible  <bruno@clisp.org>
6581
6582         * lib/des.c: Cast to avoid warnings.
6583
6584 2006-05-09  Bruno Haible  <bruno@clisp.org>
6585
6586         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
6587         (Depends-on): Depend also on xsize, stdarg.
6588         (configure.ac): Add gl_XVASPRINTF.
6589
6590 2006-05-09  Bruno Haible  <bruno@clisp.org>
6591
6592         * m4/xvasprintf.m4: New file.
6593
6594 2006-05-09  Bruno Haible  <bruno@clisp.org>
6595
6596         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
6597         (EOVERFLOW): Define fallback value.
6598         (xstrcat): New function.
6599         (xvasprintf): Recognize the special case of a string concatenation.
6600
6601 2006-05-08  Eric Blake  <ebb9@byu.net>
6602
6603         * gnulib-tool (func_version): Base copyright year on CVS date.
6604         (func_emit_copyright_notice): New function.
6605         (func_emit_lib_Makefile_am): Use it.
6606         (func_emit_tests_Makefile_am): Likewise.
6607         (func_import): Likewise.
6608
6609 2006-05-08  Bruno Haible  <bruno@clisp.org>
6610
6611         * modules/stdarg: New file.
6612         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
6613
6614 2006-05-08  Bruno Haible  <bruno@clisp.org>
6615
6616         * m4/stdarg.m4: New file, from GNU gettext.
6617
6618 2006-05-08  Bruno Haible  <bruno@clisp.org>
6619
6620         * config/srclist.txt (build-aux/config.rpath): different from latest
6621         release.
6622
6623 2006-05-08  Bruno Haible  <bruno@clisp.org>
6624
6625         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
6626
6627 2006-05-05  Jim Meyering  <jim@meyering.net>
6628
6629         * m4/warning.m4: New file, derived from bison's file by the same name.
6630
6631 2006-05-03  Bruno Haible  <bruno@clisp.org>
6632
6633         * lib/stdint_.h: Shorter URL.
6634         * lib/inttypes.h: Likewise.
6635
6636 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6637
6638         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
6639
6640 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6641
6642         * lib/verify.h: Document the internals better.  Most of this change
6643         was written by Bruno Haible.
6644
6645 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6646
6647         * doc/verify.texi: New file, partly based on a proposal by
6648         Bruno Haible.
6649
6650 2006-05-02  Bruno Haible  <bruno@clisp.org>
6651
6652         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
6653         test from here...
6654         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
6655
6656 2006-04-29  Bruno Haible  <bruno@clisp.org>
6657
6658         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
6659         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
6660
6661 2006-04-29  Bruno Haible  <bruno@clisp.org>
6662
6663         * gnulib-tool: Make --update option actually work.
6664
6665 2006-04-29  Bruno Haible  <bruno@clisp.org>
6666
6667         * doc/gcd.texi: New file.
6668         * doc/gnulib.texi: Include it.
6669
6670 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6671
6672         * lib/getdate.y (get_date): When adding relative date, start with the
6673         initial time, not with the result of the first mktime call.
6674
6675 2006-04-25  Bruno Haible  <bruno@clisp.org>
6676
6677         * gnulib-tool (func_import): Output the include directives in three
6678         blocks, sorted separately.
6679         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6680
6681 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6682
6683         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
6684         to define main with arguments, for C++.  Reported by Eric Blake.
6685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6686         Prefer 'int main ()' to 'int main (void)', for C++.
6687         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6688         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
6689         for 'main', for C99 and C++.
6690
6691 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6692
6693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
6694         Don't assume that exit status -1 is valid.
6695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6696         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6697         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6698         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
6699         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
6700         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
6701         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
6702         functions can be used without declaring them, or that you can
6703         exit with status -1.
6704         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
6705
6706 2006-04-24  Karl Berry  <karl@gnu.org>
6707
6708         * config/srclist.txt (longdouble.m4): sync lost.
6709
6710 2006-04-24  Eric Blake  <ebb9@byu.net>
6711
6712         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
6713
6714 2006-04-24  Bruno Haible  <bruno@clisp.org>
6715
6716         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
6717         poll() implementation in AIX.
6718         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6719
6720 2006-04-24  Bruno Haible  <bruno@clisp.org>
6721
6722         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
6723         assigned exactly once.
6724
6725 2006-04-23  Claudio Fontana  <claudio@gnu.org>
6726             Bruno Haible  <bruno@clisp.org>
6727
6728         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
6729         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
6730         for AM_CPPFLAGS.
6731
6732 2006-04-23  Bruno Haible  <bruno@clisp.org>
6733
6734         * modules/copy-file: Depend on unistd.
6735         * modules/execute: Likewise.
6736         * modules/fatal-signal: Likewise.
6737         * modules/findprog: Likewise.
6738         * modules/mkdtemp : Likewise.
6739         * modules/pipe: Likewise.
6740         * modules/wait-process: Likewise.
6741
6742 2006-04-23  Bruno Haible  <bruno@clisp.org>
6743
6744         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
6745         condition was already detected.
6746         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6747
6748 2006-04-23  Bruno Haible  <bruno@clisp.org>
6749
6750         * lib/copy-file.c: Include <unistd.h> unconditionally.
6751         * lib/execute.c: Likewise.
6752         * lib/fatal-signal.c: Likewise.
6753         * lib/findprog.c: Likewise.
6754         * lib/mkdtemp.c: Likewise.
6755         * lib/pipe.h: Likewise.
6756         * lib/pipe.c: Likewise.
6757         * lib/wait-process.h: Likewise.
6758
6759 2006-04-23  Bruno Haible  <bruno@clisp.org>
6760
6761         * gnulib-tool (func_usage): Fix --import description. Document
6762         --update.
6763         (func_import): Create temporary file in a temporary directory, if
6764         --dry-run is specified. Silence errors from 'grep' when there are no
6765         m4 files in $m4dir.
6766         (func_create_testdir): Silence errors from 'grep' when there are no
6767         m4 files in $m4dir.
6768         Reported by Karl Berry <karl@freefriends.org>.
6769
6770 2006-04-20  Bruno Haible  <bruno@clisp.org>
6771
6772         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
6773         one argument, so that the code will be portable to Autoconf 2.60.
6774         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
6775         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6776         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
6777
6778 2006-04-19  Derek Price  <derek@ximbiot.com>
6779             Eric Blake  <ebb9@byu.net>
6780
6781         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
6782         rather than "/full/path.h".  Update comment to match.  Shorten &
6783         generalize m4_translit call via AS_TR_CPP.
6784
6785 2006-04-19  Derek Price  <derek@ximbiot.com>
6786             Eric Blake  <ebb9@byu.net>
6787
6788         * lib/inttypes.h: Correct grammar in comment.
6789
6790 2006-04-18  Derek Price  <derek@ximbiot.com>
6791             Paul Eggert  <eggert@cs.ucla.edu>
6792
6793         * modules/inttypes: New file.
6794         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
6795
6796 2006-04-18  Derek Price  <derek@ximbiot.com>
6797             Paul Eggert  <eggert@cs.ucla.edu>
6798
6799         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
6800         New files.
6801
6802 2006-04-18  Derek Price  <derek@ximbiot.com>
6803             Paul Eggert  <eggert@cs.ucla.edu>
6804
6805         * lib/inttypes.h: New file.
6806         * lib/strtoimax.c: Assume <inttypes.h>.
6807
6808 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6809
6810         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
6811         isn't mounted.  Problem reported by Kir Kolyshkin.
6812
6813 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
6816         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
6817         Derek R. Price.
6818         * lib/regex.h (RE_DUP_MAX): Update comment to match current
6819         implementation.
6820
6821 2006-04-12  Eric Blake  <ebb9@byu.net>
6822
6823         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
6824         is now done automatically by the corresponding Autoconf macro.
6825
6826 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
6829         time_r.h.
6830
6831 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6832
6833         Merge regex changes from libc, removing some of our
6834         POSIX-conformance changes that were rejected and redoing them in a
6835         less-intrusive way.
6836
6837         * lib/regcomp.c (re_compile_internal, init_dfa):
6838         Length arg is now size_t, not Idx.  All uses changed.
6839         (peek_token): Forward decl now says internal_function.
6840         (__re_error_msgid, __re_error_msgid_idx):
6841         Now static rather than extern with attribute_hidden.
6842         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
6843         For some reason libc prefers K&R style defns for external functions.
6844         (regerror) [!defined _LIBC]: Likewise.
6845         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
6846         (seek_collating_symbol_entry, lookup_collation_sequence_value):
6847         (build_range_exp, build_collating_symbol):
6848         Use K&R-style defn.
6849         (re_compile_fastmap): Use '\0' to memset, not 0.
6850         (utf8_sb_map): Make the calculations more obvious.
6851         (init_dfa, parse_bracket_exp, build_charclass_op):
6852         Call calloc and cast result, as glibc does.
6853         (init_word_char, fetch_token, peek_token, peek_token_bracket):
6854         (build_range_exp, build_collating_symbol):
6855         Now internal functions.
6856
6857         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
6858
6859         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
6860         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
6861         Don't depend on VMS; depend on __VMS instead, for POSIX
6862         namespace cleanness.
6863         (regoff_t): Define to ssize_t, not long int.
6864
6865         Remove the REG_ macros named below.  Instead, make the old names
6866         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
6867         __USE_GNU_REGEX.
6868         (REG_BACKSLASH_ESCAPE_IN_LISTS):
6869         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
6870         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
6871         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
6872         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
6873         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
6874         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
6875         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
6876         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
6877         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
6878         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
6879         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
6880         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
6881         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
6882         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
6883         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
6884         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
6885         (REG_NREGS):
6886         Remove.  All uses replaced by the old RE_* names.
6887         (RE_BACKSLASH_ESCAPE_IN_LISTS):
6888         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
6889         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
6890         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
6891         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
6892         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
6893         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
6894         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
6895         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
6896         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
6897         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
6898         Don't bother having these macros be independent of each others'
6899         values, since they no longer exist in the POSIX name space.
6900
6901         Rename the following member names back to their old names,
6902         unless !__USE_GNU_REGEX.  All uses changed back.
6903         (buffer): Renamed from re_buffer.
6904         (allocated): Renamed from re_allocated.
6905         (used): Renamed from re_used.
6906         (syntax): Renamed from re_syntax.
6907         (fastmap): Renamed from re_fastmap.
6908         (translate): Renamed from re_translate.
6909         (can_be_null): Renamed from re_can_be_null.
6910         (regs_allocated): Renamed from re_regs_allocated.
6911         (fastmap_accurate): Renamed from re_fastmap_accurate.
6912         (no_sub): Renamed from re_no_sub.
6913         (not_bol): Renamed from re_not_bol.
6914         (not_eol): Renamed from re_not_eol.
6915         (newline_anchor): Renamed from re_newline_anchor.
6916         (num_regs): Renamed from rm_num_regs.
6917         (start): Renamed from rm_start.
6918         (end): Renamed from rm_end.
6919
6920         (free_state): Move up a bit.
6921
6922         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
6923         #define to be empty.
6924         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
6925         when that is what is intended.
6926         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
6927         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
6928         (MAX): New macro.
6929         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
6930         All uses changed back to re_malloc, etc.  It's now the caller's
6931         responsibility to check for overflow; all callers changed.
6932         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
6933         (re_x2nrealloc): Remove.
6934         (free_state): Remove decl.
6935
6936         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
6937         (re_set_registers, re_exec):
6938         Use K&R-style defn.
6939
6940         2006-01-31  Roland McGrath  <roland@redhat.com>
6941
6942         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
6943         Reported by Mike Frysinger <vapier@gentoo.org>.
6944
6945         2006-01-15  Andreas Jaeger  <aj@suse.de>
6946
6947         [BZ #1950]
6948         * lib/regex_internal.c (re_string_reconstruct): Adjust for
6949         build_wcs_upper_buffer change.
6950         (build_wcs_upper_buffer): Change return type.
6951
6952         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
6953
6954         * lib/regex_internal.h: Include <stdint.h> if available.
6955
6956         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
6957
6958         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
6959
6960         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
6961
6962         * lib/regcomp.c: Adjust for changed secondary hash function.
6963
6964         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
6965
6966         * lib/regex.h: Pretty printing.
6967         Clean up namespace a bit.
6968
6969         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
6970
6971         * lib/regexec.c (update_cur_sifted_state, check_arrival,
6972         check_arrival_add_next_nodes): Avoid using uninitialized variable.
6973
6974         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6975                     Ulrich Drepper  <drepper@redhat.com>
6976
6977         [BZ #1302]
6978         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
6979         changed.
6980         (bitset_word_t): Renamed from bitset_word.  All uses changed.
6981
6982         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
6983
6984         [BZ #281]
6985         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
6986         * lib/regcomp.c: Remove unnecessary uses of
6987         unsigned RE_TRANSLATE_TYPE.
6988         * lib/regex_internal.h: Likewise.
6989         * lib/regex_internal.c: Likewise.
6990         * lib/regexec.c: Likewise.
6991         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
6992
6993         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
6994
6995         * lib/regexec.c (find_recover_state): Remove unnecessary
6996         initialization.
6997         (transit_state_bkref): Make DFA a const pointer.
6998         (get_subexp): Likewise.
6999         (check_arrival): Likewise.
7000         (update_cur_sifted_state): Likewise.
7001         (re_search_internal): Likewise.
7002         (prune_impossible_nodes): Likewise.
7003         (acquire_init_state_context): Likewise.
7004         (proceed_next_node): Likewise.
7005         (set_regs): Likewise.
7006         (free_fail_stack_return): Likewise.
7007         (check_arrival_expand_ecl): Mark DFA parameter as const.
7008         (check_arrival_expand_ecl_sub): Likewise.
7009         (check_subexp_limits): Likewise.
7010         (sub_epsilon_src_nodes):  Likewise.
7011         (add_epsilon_src_nodes):  Likewise.
7012         (merge_state_array): Likewise.
7013         (update_regs): Likewise.
7014         (build_trtable): Likewise.
7015         (sift_states_backward): Mark MCTX parameter as const.
7016         (build_sifted_states): Likewise.
7017         (update_cur_sifted_state): Likewise.
7018         (sift_states_mkref): Likewise.
7019         (check_arrival_expand_ecl): Mark eclosure as const.
7020         (check_dst_limits_calc_pos_1): Likewise.
7021         * lib/regex_internal.h (re_match_context_t): Make dfa a const
7022         pointer.
7023
7024         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
7025
7026         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
7027         (transit_state_sb): Likewise.
7028         (transit_state_mb): Likewise.
7029         (sift_states_iter_mb): Likewise.
7030         (check_arrival_add_next_nodes): Likewise.
7031         (check_node_accept_bytes): Change first parameter to pointer-to-const.
7032         [_LIBC] (re_search_2_stub): Use mempcpy.
7033
7034         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
7035         mbrtowc for very simple UTF-8 case.
7036
7037         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
7038         a pointer-to-const.
7039         (re_acquire_state_context): Likewise.
7040         * lib/regex_internal.h: Adjust prototypes.
7041
7042         * lib/regex.c: Prevent using C++ compilers.
7043
7044         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
7045         (re_acquire_state_context): Likewise.
7046
7047 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7048
7049         * modules/regex (Depends-on): Add ssize_t.
7050
7051 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7052
7053         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
7054         translation table.
7055
7056 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7057
7058         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
7059
7060 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
7061             Bruno Haible  <bruno@clisp.org>
7062
7063         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
7064         <sys/types.h> and <inttypes.h>.
7065
7066 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7067
7068         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
7069         `__error_t_defined', so argp.h will not typedef the former.
7070
7071 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7072
7073         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
7074         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
7075         glibc names.  Even if glibc is changed to conform to POSIX, the
7076         traditional names will be available anyway, since regex depends on
7077         the extensions module.  Also, fix a longstanding typo in the
7078         implementation of Spencer ERE test #75 from grep 2.3.  Problems
7079         reported by Emanuele Giaquinta.  Also, change sense of cached
7080         variable, so that the message makes sense.
7081
7082 2006-03-24  Simon Josefsson  <jas@extundo.com>
7083
7084         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
7085         including some doc fixes.
7086         (base64_encode_alloc): Fix +1 bug on allocation failures.
7087
7088 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7089
7090         * lib/base64.c (base64_encode): Do not read past end of array with
7091         unsanitized input on systems with CHAR_BIT > 8.
7092
7093 2006-03-24  Eric Blake  <ebb9@byu.net>
7094
7095         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
7096
7097 2006-03-22  Karl Berry  <karl@gnu.org>
7098
7099         * config/srclist.txt (*setenv.[ch]): get from coreutils.
7100         * config/srclistvars.sh (COREUTILS): new var.
7101
7102 2006-03-17  Jim Meyering  <jim@meyering.net>
7103
7104         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
7105         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
7106
7107 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
7108
7109         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
7110         no longer needs it.  Instead, check that regoff_t is as least
7111         as wide as ptrdiff_t.
7112
7113         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
7114         so that our regex.h stays compatible with the installed regex.
7115         This is helpful for installers who configure --without-included-regex.
7116         Problem reported by Emanuele Giaquinta.
7117
7118 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
7119
7120         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
7121         Typedef to long int, not to off_, as POSIX will likely change
7122         in that direction.
7123
7124 2006-03-15  Eric Blake  <ebb9@byu.net>
7125
7126         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
7127
7128 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7129
7130         * lib/argp-help.c (validate_uparams): Fix typo
7131         * lib/argp-parse.c (argp_default_options): Consistently begin help
7132         messages with a lowercase letter.
7133
7134 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7135
7136         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
7137         overrun buffers and shouldn't be used (much as gets shouldn't be
7138         used).
7139         * lib/time_r.c (asctime_r, ctime_r): Likewise.
7140
7141 2006-03-08  Simon Josefsson  <jas@extundo.com>
7142
7143         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
7144         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7145
7146 2006-03-08  Simon Josefsson  <jas@extundo.com>
7147
7148         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
7149         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7150
7151 2006-03-08  Simon Josefsson  <jas@extundo.com>
7152
7153         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
7154         signal that configure disabled the device.
7155
7156 2006-03-08  Simon Josefsson  <jas@extundo.com>
7157
7158         * build-aux/maint.mk: Fix refresh-po, to handle no translated
7159         languages.
7160
7161 2006-03-07  Simon Josefsson  <jas@extundo.com>
7162
7163         * modules/getopt (Depends-on): Add unistd.
7164
7165         * modules/unistd: New file.
7166
7167 2006-03-07  Simon Josefsson  <jas@extundo.com>
7168
7169         * modules/gc-random: New file.
7170
7171 2006-03-07  Simon Josefsson  <jas@extundo.com>
7172
7173         * m4/unistd_h.m4: New file.
7174
7175 2006-03-07  Simon Josefsson  <jas@extundo.com>
7176
7177         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
7178         test to be side-effect free by storing the result in the cache
7179         variable gl_cv_lib_readline, and moving the assignment of
7180         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
7181         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7182
7183 2006-03-07  Simon Josefsson  <jas@extundo.com>
7184
7185         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
7186         error on missing devices (the functions will return an error).
7187
7188         * m4/gc.m4: Move random stuff to gc-random.m4
7189
7190 2006-03-07  Simon Josefsson  <jas@extundo.com>
7191
7192         * lib/unistd_.h: New file.
7193
7194 2006-03-07  Simon Josefsson  <jas@extundo.com>
7195
7196         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
7197
7198 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7199
7200         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
7201         Problem reported by Juan Manuel Guerrero.
7202
7203 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7204
7205         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
7206         the unistd module.
7207         * lib/getlogin_r.c: Likewise.
7208         * lib/getlogin_r.h: Likewise.
7209         * lib/glob.c: Likewise.
7210         * lib/pagealign_alloc.c: Likewise.
7211         * lib/unistd_.h: Remove; no longer needed.
7212
7213 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7214
7215         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7216         Add unistd.
7217         * modules/c-stack (Depends-on): Add unistd.
7218         * modules/getlogin_r: Likewise.
7219         * modules/glob: Likewise.
7220         * modules/pagealign_alloc: Likewise.
7221         * modules/unistd (Files): Remove lib/unistd_.h.
7222         (EXTRA_DIST): Remove.
7223         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
7224         need unistd_.h.
7225         (MOSTLYCLEANFILES): Remove unistd.h-t.
7226
7227 2006-03-03  Simon Josefsson  <jas@extundo.com>
7228
7229         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
7230
7231 2006-03-03  Simon Josefsson  <jas@extundo.com>
7232
7233         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
7234         libidn and bison.
7235
7236 2006-03-03  Simon Josefsson  <jas@extundo.com>
7237
7238         * build-aux/maint.mk: Add indent target.
7239
7240 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
7241
7242         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
7243         our replacement poll.h in any case, to avoid a differing
7244         declaration from a system header.  Seen on AIX.
7245
7246 2006-03-01  Simon Josefsson  <jas@extundo.com>
7247
7248         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
7249         <kasal@ucw.cz>.
7250
7251 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7252
7253         * modules/gettime (Depends-on): Add extensions module.
7254         * modules/nanosleep (Depends-on): Likewise.
7255         * modules/settime (Depends-on): Likewise.
7256
7257 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
7260         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
7261         pedantically.
7262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7263         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
7264
7265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
7266         not "==".  Reported by Ralf Wildenhues.
7267
7268 2006-03-01  Karl Berry  <karl@gnu.org>
7269
7270         * doc/Copyright/request-*: new files, synced from gnuorg.
7271
7272 2006-03-01  Karl Berry  <karl@gnu.org>
7273
7274         * config/srclist.txt (Copyright/*): new entries.
7275
7276 2006-02-28  Simon Josefsson  <jas@extundo.com>
7277
7278         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
7279
7280 2006-02-27  Simon Josefsson  <jas@extundo.com>
7281
7282         * lib/base64.h: Indent #define's.  From Jim Meyering
7283         <jim@meyering.net>.
7284
7285 2006-02-27  Jim Meyering  <jim@meyering.net>
7286
7287         Revert the change of 2006-02-24, so these files can continue
7288         to be sync'd from gettext.
7289         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
7290         of `config.h'.
7291
7292 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7293
7294         * modules/intprops: New file.
7295         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
7296         Add intprops.
7297         * modules/getloadavg (Files): Remove lib/intprops.h.
7298         (Depends-on): Add intprops.
7299         * modules/human: Likewise.
7300         * modules/inttostr: Likewise.
7301         * modules/openat: Likewise.
7302         * modules/sig2str: Likewise.
7303         * modules/userspec: Likewise.
7304         * modules/utimecmp: Likewise.
7305         * modules/xnanosleep: Likewise.
7306         * modules/xstrtol: Likewise.
7307
7308 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
7309
7310         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
7311         * modules/lock-tests (TESTS): Use $(EXEEXT).
7312         * modules/tls-tests: Likewise.
7313         * modules/argp-tests: Likewise.
7314         (check_PROGRAMS): New var, replacing...
7315         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
7316
7317 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7318
7319         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
7320         `config.h'.
7321
7322 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7323
7324         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
7325
7326 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7327
7328         Sync from coreutils.
7329         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
7330         gl_CHDIR_SAFER.
7331
7332 2006-02-22  Jim Meyering  <jim@meyering.net>
7333
7334         Sync from coreutils.
7335         * m4/chdir-safer.m4: New file.
7336
7337 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7338
7339         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
7340         AT_FDCWD exceeds INT_MAX.
7341         * lib/openat.h (AT_FDCWD): Likewise.
7342
7343 2006-02-17  Eric Blake  <address@hidden>
7344
7345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
7346
7347 2006-02-16  Simon Josefsson  <jas@extundo.com>
7348
7349         * modules/getaddrinfo (Depends-on): Add sys_socket.
7350
7351 2006-02-15  Simon Josefsson  <jas@extundo.com>
7352
7353         * build-aux/maint.mk: Add dsyntax-check rule.
7354
7355 2006-02-15  Eric Blake  <ebb9@byu.net>
7356
7357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
7358         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
7359         'present but cannot compile' warnings on cygwin.
7360         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
7361         use ws2tcpip.h if sys/socket.h works.
7362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
7363         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
7364
7365 2006-02-14  Simon Josefsson  <jas@extundo.com>
7366
7367         * modules/maintainer-makefile (Files): Rename.
7368
7369         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
7370         and (the local) Makefile.cfg to maint-cfg.mk.
7371
7372         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
7373         to the latter.
7374
7375         * modules/maintainer-makefile: New module.
7376
7377         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
7378         severaly stripped to make it possible to build it up from scratch
7379         with reliable tests.
7380
7381         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
7382         fixes to permit overriding the default actions when configure and
7383         makefile are not available.
7384
7385 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7386
7387         Sync from coreutils.
7388         * modules/lstat (Depends-on): Don't depend on xalloc.
7389         (License): Change from GPL to LGPL, since this is now simply a
7390         replacement for a libc function.
7391
7392 2006-02-14  Jim Meyering  <jim@meyering.net>
7393
7394         Sync from coreutils.
7395
7396         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
7397         failure on deficient systems, and simplify gnulib lgpl dependencies.
7398         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
7399         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
7400
7401         * lib/xalloc-die.c: Remove unused definition of N_.
7402
7403 2006-02-14  Jim Meyering  <jim@meyering.net>
7404
7405         Sync from coreutils.
7406         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
7407         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7408         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
7409         double-quote uses of that variable, to accommodate the rare case in
7410         which getmntent is available in none of the libraries checked.  This
7411         happens at least on FreeBSD 5.0.
7412
7413 2006-02-13  Simon Josefsson  <jas@extundo.com>
7414
7415         * gnulib-tool (Usage): Fix --import, from
7416         karl@freefriends.org (Karl Berry).
7417
7418 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7419
7420         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
7421
7422 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
7423
7424         * lib/argp-namefrob.h: Restore changes accidentally lost during the
7425         "autoupdate" on 2005-12-12.
7426
7427 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7428
7429         * modules/closeout (Depends-on): Remove atexit.
7430
7431 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7432
7433         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
7434         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
7435
7436 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7437
7438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
7439         __EXTENSIONS__ if this causes compilation to fail.  Problem
7440         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
7441         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
7442
7443 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7444
7445         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
7446         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
7447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
7448         All uses changed.
7449
7450 2006-01-26  Simon Josefsson  <jas@extundo.com>
7451
7452         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
7453         prototype is visible on mingw32.
7454
7455         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
7456         for mingw32.
7457
7458         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
7459         mingw32).
7460
7461 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
7462
7463         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
7464         attempt to open for write; this always fails, at least on POSIX
7465         hosts.  This reinstates the 2006-01-09 change, which was
7466         inadvertently removed.
7467
7468 2006-01-26  Bruno Haible  <bruno@clisp.org>
7469
7470         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
7471         Reported by Paul Eggert.
7472
7473 2006-01-26  Bruno Haible  <bruno@clisp.org>
7474             Paul Eggert  <eggert@cs.ucla.edu>
7475
7476         * lib/stdbool_.h (_Bool)
7477         [(! (defined __cplusplus || defined __BEOS__)
7478           && !defined __GNUC__
7479           && !(defined __HP_cc || defined __xlc__
7480                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
7481                || defined __sgi))]:
7482         #define to signed char in these cases too; this simplifies
7483         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
7484         etc., separately) and makes it more conservative.
7485
7486 2006-01-25  Simon Josefsson  <jas@extundo.com>
7487
7488         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
7489         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
7490         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
7491
7492 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7493
7494         * lib/argp-namefrob.h: Bugfix. Remove stray #
7495
7496 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7497
7498         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
7499         so that we test the test.
7500         Check for yet another HP-UX cc bug involving *bool |= bool.
7501
7502 2006-01-25  Karl Berry  <karl@gnu.org>
7503
7504         * config/srclist.txt (vasnprintf.c): sync lost.
7505
7506 2006-01-25  Jim Meyering  <jim@meyering.net>
7507
7508         Sync from the stable (b5) branch of coreutils:
7509
7510         * lib/fts.c (fts_children): Don't let close() clobber errno from
7511         failed fchdir().
7512
7513         * lib/fts.c (fts_stat): When following a symlink-to-directory,
7514         don't necessarily interpret stat-fails+lstat-succeeds as indicating
7515         a dangling symlink.  That can also happen at least for ELOOP.
7516         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
7517         FYI, this bug predates the inclusion of fts.c in coreutils.
7518
7519         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
7520         in their own block, so pre-c99 compilers don't object.
7521
7522         Avoid the double-free (first in fts_read, second in fts_close) that
7523         would occur when an `active' directory is made inaccessible (e.g.,
7524         via chmod a-x) during a traversal.
7525         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7526         before returning.  Reproduce this failure by
7527         mkdir -p a/b; cd a; chmod a-x . b
7528         Reported by Stavros Passas.
7529
7530 2006-01-25  Jim Meyering  <jim@meyering.net>
7531
7532         * lib/fileblocks.c: Remove more useless parentheses.
7533         * lib/readutmp.h: Likewise.
7534
7535 2006-01-25  Bruno Haible  <bruno@clisp.org>
7536
7537         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
7538         warnings.
7539         Reported by Paul Eggert.
7540
7541 2006-01-25  Bruno Haible  <bruno@clisp.org>
7542
7543         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
7544         rid of a trap command. For Solaris sh.
7545         Reported by Mark D. Baushke <mdb@gnu.org>.
7546
7547 2006-01-24  Simon Josefsson  <jas@extundo.com>
7548
7549         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
7550         Bruno.
7551
7552 2006-01-24  Karl Berry  <karl@gnu.org>
7553
7554         * config/srclist.txt (argp-namefrob.h): sync lost.
7555
7556 2006-01-24  Jim Meyering  <jim@meyering.net>
7557
7558         * modules/openat (Files): Add lib/intprops.h.
7559         From Mark D. Baushke.
7560
7561 2006-01-24  Jim Meyering  <jim@meyering.net>
7562
7563         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
7564         Reported by Mark D. Baushke.
7565
7566 2006-01-24  Jim Meyering  <jim@meyering.net>
7567
7568         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
7569
7570 2006-01-24  Bruno Haible  <bruno@clisp.org>
7571
7572         * modules/strnlen (Maintainer): Change from glibc to all.
7573
7574 2006-01-24  Bruno Haible  <bruno@clisp.org>
7575
7576         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
7577         Patch by Paul Eggert.
7578
7579 2006-01-24  Bruno Haible  <bruno@clisp.org>
7580
7581         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
7582         already has it.
7583         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
7584         2005-11-26.
7585
7586         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
7587         'signed char' to avoid problems with the built-in _Bool type.
7588         Reported by Paul Eggert on 2005-11-26.
7589
7590 2006-01-24  Bruno Haible  <bruno@clisp.org>
7591
7592         * gnulib-tool (func_import): Avoid constructing complicated sed
7593         expressions inside backquote.
7594         Report and solution by Mark D. Baushke <mdb@gnu.org>.
7595
7596 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
7597
7598         These changes imported from libc.
7599         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
7600         test and two separate function calls.
7601         * lib/strndup.c (__strndup): Add libc_hidden_def.
7602
7603 2006-01-23  Simon Josefsson  <jas@extundo.com>
7604
7605         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
7606         Remove the test_*_SOURCES variable: automake infers it by default.
7607         * modules/tls-tests: Likewise.
7608
7609 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7610
7611         Work around porting bugs reported by Dieter in
7612         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
7613         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
7614         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
7615         Include "getopt.h" first, to check interface.
7616         (getenv): Declare only if defined HAVE_DECL_GETENV &&
7617         !HAVE_DECL_GETENV.
7618         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
7619         (__strndup): Revert to K&R-style function dfns, the glibc style.
7620         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
7621         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
7622         Include strnlen.h first, to get prototype properly.
7623         (strnlen): Renamed from __strnlen.
7624         Remove weak alias.
7625
7626 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7627
7628         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
7629
7630 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7631
7632         * config/srclist.txt: Adjust to reflect glibc reorganization.
7633         This affects only comments.
7634
7635 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7636
7637          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
7638          Reported by Bruce Korb <bkorb@gnu.org>.
7639
7640 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
7641
7642         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
7643         to pacify gcc -Wswitch-default.
7644
7645 2006-01-22  Bruno Haible  <bruno@clisp.org>
7646
7647         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
7648         temporary buffer for sprintf, take into account the precision also
7649         for 'd', 'i', 'u', 'o', 'x', 'X'.
7650
7651 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
7652
7653         * modules/argp-tests: New module
7654         * tests/test-argp.c: New file
7655         * tests/test-argp-2.sh: New file
7656
7657 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
7658
7659         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
7660         (__argp_base_name): Removed
7661         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
7662         typo.
7663         (__argp_base_name): Provide macro definition or extern declaration
7664         depending on the configuration
7665
7666 2006-01-20  Simon Josefsson  <jas@extundo.com>
7667
7668         * modules/inet_ntop (Depends-on): Depend on sys_socket.
7669
7670 2006-01-20  Simon Josefsson  <jas@extundo.com>
7671
7672         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
7673
7674 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7675
7676         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
7677         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
7678         Suggested by Bruno Haible.
7679
7680 2006-01-20  Karl Berry  <karl@gnu.org>
7681
7682         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
7683         until changes propagate, I guess.
7684
7685 2006-01-19  Simon Josefsson  <jas@extundo.com>
7686
7687         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
7688
7689 2006-01-19  Simon Josefsson  <jas@extundo.com>
7690
7691         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
7692
7693 2006-01-19  Simon Josefsson  <jas@extundo.com>
7694
7695         * gnulib-tool: Set check_PROGRAMS.
7696
7697         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
7698         modules/des-tests, modules/gc-arcfour-tests,
7699         modules/gc-arctwo-tests, modules/gc-des-tests,
7700         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
7701         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
7702         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
7703         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
7704         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
7705         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
7706         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
7707         test_*_SOURCES.
7708
7709 2006-01-18  Simon Josefsson  <jas@extundo.com>
7710
7711         * modules/socklen (Depends-on): Depend on sys_socket.
7712
7713 2006-01-18  Simon Josefsson  <jas@extundo.com>
7714
7715         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
7716         modules/des-tests, modules/gc-arcfour-tests,
7717         modules/gc-arctwo-tests, modules/gc-des-tests,
7718         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
7719         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
7720         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
7721         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
7722         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
7723         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
7724         $(EXEEXT) to automake TESTS variable, for mingw32.
7725
7726 2006-01-17  Simon Josefsson  <jas@extundo.com>
7727
7728         * modules/socklen (Include): Need sys/socket.h.
7729
7730 2006-01-17  Bruno Haible  <bruno@clisp.org>
7731
7732         * modules/ssize_t (Include): Add <sys/types.h>.
7733
7734 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7735
7736         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
7737         it's not portable and it doesn't work with cross-compiles.
7738         Problem reported by Bruno Haible.  Fix missing-$ typo in
7739         'test "gl_cv_ignore_unused_libraries" ...' that prevented
7740         -zignore from being used with Sun's C compiler.
7741
7742 2006-01-12  Simon Josefsson  <jas@extundo.com>
7743
7744         * lib/base64.c: Fix warning, reported by Bruno Haible
7745         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
7746
7747 2006-01-12  Bruno Haible  <bruno@clisp.org>
7748
7749         * modules/ldd: New file.
7750         * build-aux/ldd.sh.in: New file.
7751         * MODULES.html.sh (Support for building libraries and executables): Add
7752         ldd.
7753
7754 2006-01-12  Bruno Haible  <bruno@clisp.org>
7755
7756         * m4/ldd.m4: New file.
7757
7758 2006-01-12  Bruno Haible  <bruno@clisp.org>
7759
7760         * gnulib-tool (func_import, func_create_testdir): Don't go into an
7761         endless loop while replacing $auxdir with build-aux.
7762
7763 2006-01-11  Simon Josefsson  <jas@extundo.com>
7764
7765         * lib/stdint_.h (SIZE_MAX): Add missing (.
7766
7767 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7768
7769         Sync from coreutils.
7770         * lib/md5.c: Fix commentary typos.
7771         (alignof, UNALIGNED_P): No need for a GCC-specific version.
7772         * lib/md5.h (__attribute__): Remove; unused.
7773         * lib/sha1.c: Fix commentary to match md5 better.
7774         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
7775         so that we don't need to worry about alignment.  All uses changed.
7776         This merges the 2005-10-28 md5 change into sha1.
7777
7778 2006-01-11  Jim Meyering  <jim@meyering.net>
7779
7780         Sync from coreutils.
7781         * lib/md5.c (OP): Fix spacing.
7782
7783 2006-01-11  Bruno Haible  <bruno@clisp.org>
7784
7785         Ensure automatic ordering between gl_LOCK and gl_ARGP.
7786         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
7787         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
7788
7789 2006-01-11  Bruno Haible  <bruno@clisp.org>
7790
7791         Ensure automatic ordering between gl_LOCK and gl_ARGP.
7792         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
7793         the "early" section as well.
7794
7795 2006-01-11  Bruno Haible  <bruno@clisp.org>
7796
7797         Avoid "ar: no archive members specified" error on MacOS X.
7798         * gnulib-tool (func_modules_add_dummy): New function.
7799         (func_import, func_create_testdir): Invoke it.
7800
7801 2006-01-11  Bruno Haible  <bruno@clisp.org>
7802
7803         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
7804         with $auxdir in AC_CONFIG_FILES statements.
7805
7806 2006-01-11  Bruno Haible  <bruno@clisp.org>
7807
7808         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7809         Initialize also noinst_HEADERS to empty.
7810
7811 2006-01-11  Bruno Haible  <bruno@clisp.org>
7812
7813         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
7814         variables.
7815         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
7816         autoreconf.
7817
7818 2006-01-11  Bruno Haible  <bruno@clisp.org>
7819
7820         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
7821         overridable by the user.
7822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7823
7824 2006-01-10  Simon Josefsson  <jas@extundo.com>
7825
7826         * modules/sys_socket: New file.
7827
7828 2006-01-10  Simon Josefsson  <jas@extundo.com>
7829
7830         * m4/sys_socket_h.m4: New file.
7831
7832 2006-01-10  Simon Josefsson  <jas@extundo.com>
7833
7834         * lib/socket_.h: New file.
7835
7836 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7837
7838         * modules/readutmp (Maintainer): Add myself.
7839
7840 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7841
7842         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
7843         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
7844         People who are still concerned with buggy memcmp implementations
7845         can invoke gl_FUNC_MEMCMP themselves.
7846
7847 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         * lib/regex_internal.h (BITSET_WORD_BITS):
7850         Work around a bug in 64-bit PGC (before version 6.1-2), where the
7851         preprocessor mishandles large unsigned values as if they were signed.
7852         Problem reported by Claudio Fontana in
7853         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
7854
7855 2006-01-10  Jim Meyering  <jim@meyering.net>
7856
7857         Avoid the double-free (first in fts_read, second in fts_close) that
7858         would occur when an `active' directory is made inaccessible (e.g.,
7859         via chmod a-x) during a traversal.
7860         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7861         before returning.  Reproduce this failure by
7862         mkdir -p a/b; cd a; chmod a-x . b
7863         Reported by Stavros Passas.
7864
7865         Sync from coreutils.
7866         * lib/sha1.c: Tweak grammar in a comment.
7867
7868 2006-01-10  Jim Meyering  <jim@meyering.net>
7869
7870         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
7871         Patch by Joerg Sonnenberger.
7872
7873 2006-01-10  Bruno Haible  <bruno@clisp.org>
7874
7875         * modules/readutmp: Depend on module free.
7876         * modules/strtok_r: Depend on module restrict.
7877
7878 2006-01-10  Bruno Haible  <bruno@clisp.org>
7879
7880         * modules/gettext (configure.ac): Add an invocation of
7881         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
7882
7883 2006-01-10  Bruno Haible  <bruno@clisp.org>
7884
7885         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
7886         Reported by Werner Lemberg <wl@gnu.org>.
7887
7888 2006-01-10  Bruno Haible  <bruno@clisp.org>
7889
7890         * lib/localcharset.c: Update from GNU gettext.
7891
7892 2006-01-10  Bruno Haible  <bruno@clisp.org>
7893
7894         * lib/argp.h (__const): Remove macro. Use const instead.
7895         * lib/argp-fmtstream.h (__const): Likewise.
7896         * lib/glob_.h (__const): Remove macro.
7897         * lib/glob-libc.h: Use const instead of __const.
7898
7899 2006-01-10  Bruno Haible  <bruno@clisp.org>
7900
7901         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
7902         variable.
7903         Needed to avoid an automake error regarding the 'gettext' module.
7904
7905 2006-01-09  Simon Josefsson  <jas@extundo.com>
7906
7907         * modules/inet_ntop (Depends-on): Add restrict.
7908
7909 2006-01-09  Simon Josefsson  <jas@extundo.com>
7910
7911         * modules/gc-rijndael-tests (License): Put under LGPL.
7912
7913         * modules/gc-des-tests (License): Likewise.
7914
7915         * modules/gc-arcfour-tests (License): Likewise.
7916
7917         * modules/gc-arctwo-tests (License): Likewise.
7918
7919         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
7920
7921         * modules/gc-hmac-sha1-tests (Files): Likewise.
7922
7923         * modules/gc-hmac-md5-tests (License): Likewise.
7924
7925         * modules/gc-sha1-tests (License): Likewise.
7926
7927         * modules/gc-md5-tests (License): Likewise.
7928
7929         * modules/gc-md4-tests (License): Likewise.
7930
7931         * modules/gc-md2-tests (License): Likewise.
7932
7933         * modules/gc-tests (License): Likewise.
7934
7935         * modules/des-tests (License): Likewise.
7936
7937         * modules/md4-tests (License): Likewise.
7938
7939         * modules/md2-tests (License): Likewise.
7940
7941 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7942
7943         Sync from coreutils:
7944
7945         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
7946         * modules/lib-ignore: New file.
7947         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
7948         chdir-safer.m4, lchmod.m4.
7949         * modules/openat: Add mkdirat.c, openat-priv.h.
7950
7951 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7952
7953         Sync from coreutils.
7954         * m4/lib-ignore.m4: New file.
7955         * m4/lchmod.m4: New file.
7956
7957 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7958
7959         Sync from coreutils.
7960         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
7961         for write access: POSIX says that must fail.
7962         * lib/fts.c (diropen): Likewise.
7963         * lib/save-cwd.c (save_cwd): Likewise.
7964         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
7965         well, for minor improvements on hosts that lack O_DIRECTORY.
7966         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
7967         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
7968         Fall back on chown if open failed with EACCES.
7969
7970         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
7971         Report an error at compile-time if only a 1-second nominal clock
7972         resolution is found.
7973
7974         * lib/lchmod.h: New file.
7975         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
7976         (make_dir_parents): Use lchown rather than chown, and
7977         lchmod rather than chmod.
7978
7979         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
7980         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
7981         "proc" reported by n0dalus.
7982
7983         * lib/mountlist.c: Include <limits.h>.
7984         (dev_from_mount_options)
7985         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
7986         New function.  It no longer assumes "dev=" has the System V meaning
7987         on Linux (since it doesn't).  It also parses "dev=" more carefully.
7988         (read_file_system_list)
7989         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
7990         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
7991         dev= in that case.
7992
7993         * lib/posixtm.h (PDS_PRE_2000): New macro.
7994         * lib/posixtm.c (year): Arg is now syntax_bits rather than
7995         allow_century.  All usages changed.  Reject dates outside the range
7996         1969-1999 if PDS_PRE_2000 is used.
7997
7998 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7999
8000         Sync from coreutils.
8001         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
8002         (Time of day items): Mention the possibility of leap seconds.
8003         Problem reported by Dr. David Alan Gilbert.
8004
8005 2006-01-09  Jim Meyering  <jim@meyering.net>
8006
8007         Sync from coreutils.
8008
8009         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
8010
8011         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
8012
8013         * lib/modechange.c (mode_compile): Reject an invalid mode string
8014         that starts with an octal digit.  From Andreas Gruenbacher.
8015
8016         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
8017         and dup to open_safer and dup_safer, respectively.
8018         (openat_permissive): Fix typo in comment.
8019
8020         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
8021         "gettext.h"; either no longer needed or are guaranteed by openat.h.
8022         (_): Remove; no longer needed.
8023         (openat): Renamed from rpl_openat; no need for rpl_openat
8024         since openat.h renames openat for us.
8025         Replace most of the body with a call to openat_permissive,
8026         to avoid duplicate code.
8027         Port to (probably hypothetical) environments were mode_t is
8028         wider than int.
8029         (openat_permissive): Require mode arg, so that we can check
8030         types better.  Put it just after flags.  Change cwd failure
8031         indicator from pointer-to-bool to pointer-to-errno-value.
8032         All callers changed.
8033         Invoke openat_save_fail and/or openat_restore_fail if
8034         cwd_errno is null, so that openat can call us.
8035         (openat_permissive, fdopendir, fstatat, unlinkat):
8036         Simplify errno handling to avoid some duplicate code,
8037         as it's OK to set errno on success.
8038         * lib/openat.h: Revamp code so that function macros depend on
8039         __OPENAT_PREFIX only, not also on AT_FDCWD.
8040         (openat_ro): Remove.  Caller changed to use openat_permissive.
8041         (openat_permissive): Now a macro, if not a function.
8042         (openat_restore_fail, openat_save_fail): Now always functions,
8043         since mkdirat needs them even if __OPENAT_PREFIX is defined.
8044
8045         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
8046         and openat.c.
8047         * lib/mkdirat.c: Include openat-priv.h.
8048         Remove definitions of macros defined therein.
8049         * lib/openat.c: Likewise.
8050
8051         * lib/mkdirat.c (mkdirat): New file and function.
8052         * lib/openat.h (mkdirat): Declare.
8053
8054         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
8055
8056         * lib/openat.h (openat_permissive): Declare.
8057         (openat_ro): Define.
8058
8059         * lib/openat.c (EXPECTED_ERRNO): New macro.
8060         (openat_permissive): New function -- used in remove.c rewrite.
8061         (all functions): Set errno just before returning, only if there
8062         was an actual failure.
8063         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
8064
8065         Emulate openat-family functions using Linux's procfs, if possible.
8066         Idea and some code based on Ulrich Drepper's glibc changes.
8067
8068         * lib/openat.c: (BUILD_PROC_NAME): New macro.
8069         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
8070         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
8071         before falling back on save_cwd and restore_cwd.
8072         (fdopendir, fstatat, unlinkat): Likewise.
8073
8074         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
8075         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
8076
8077         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
8078         as second argument to va_arg.  Otherwise, some versions of gcc
8079         warn that `if this code is reached, the program will abort'.
8080
8081 2006-01-09  Jim Meyering  <jim@meyering.net>
8082
8083         Sync from coreutils.
8084         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
8085         Require openat-priv.h.
8086
8087 2006-01-09  Bruno Haible  <bruno@clisp.org>
8088
8089         * modules/strnlen (Include): Use strnlen.h.
8090
8091 2006-01-09  Bruno Haible  <bruno@clisp.org>
8092
8093         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
8094
8095 2006-01-09  Bruno Haible  <bruno@clisp.org>
8096
8097         * lib/sysexit_.h (EX_OK): New macro.
8098         Suggested by Martin Lambers <marlam@marlam.de>.
8099
8100 2006-01-09  Bruno Haible  <bruno@clisp.org>
8101
8102         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
8103         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
8104
8105 2006-01-09  Bruno Haible  <bruno@clisp.org>
8106
8107         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
8108         numbers.
8109
8110 2006-01-09  Bruno Haible  <bruno@clisp.org>
8111
8112         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
8113         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
8114         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
8115         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
8116
8117 2006-01-09  Bruno Haible  <bruno@clisp.org>
8118
8119         * build-aux/javacomp.sh.in: New file, moved from lib/.
8120         * modules/javacomp-script (Files): Update.
8121         (configure.ac): Add AC_CONFIG_FILES invocation.
8122         (EXTRA_DIST): Remove variable.
8123
8124         * build-aux/javaexec.sh.in: New file, moved from lib/.
8125         * modules/javaexec (Files): Update.
8126         (configure.ac): Add AC_CONFIG_FILES invocation.
8127         (EXTRA_DIST): Remove javaexec.sh.in.
8128
8129         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
8130         * modules/csharpcomp-script (Files): Update.
8131         (configure.ac): Add AC_CONFIG_FILES invocation.
8132         (EXTRA_DIST): Remove variable.
8133
8134         * build-aux/csharpexec.sh.in: New file, moved from lib/.
8135         * modules/csharpexec (Files): Update.
8136         (configure.ac): Add AC_CONFIG_FILES invocation.
8137         (EXTRA_DIST): Remove csharpexec.sh.in.
8138
8139 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8140
8141         Sync from coreutils.
8142
8143         Add POSIX ACL support
8144         * lib/acl.h (copy_acl, set_acl): Add declarations.
8145         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
8146         systems other than Linux.
8147         (chmod_or_fchmod): New function: use fchmod when possible,
8148         and chmod otherwise.
8149         (file_has_acl): Add a POSIX ACL implementation, with a
8150         Linux-specific subcase.
8151         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
8152         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
8153         acls are unsupported.
8154         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
8155         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
8156         are unsupported.
8157
8158 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8159
8160         Sync from coreutils.
8161         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
8162
8163 2006-01-07  Bruno Haible  <bruno@clisp.org>
8164
8165         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
8166         gl_EARLY.
8167
8168 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8169
8170         * lib/strftime.c (tzname): Don't declare if it is already #defined.
8171         Problem reported for Mingw by Mark Junker.
8172
8173 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8174
8175         * README: Gnulib normally doesn't generate a tarball.
8176
8177 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8178
8179         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
8180         long int, not int, for nanosecond counts, so that people who are
8181         used to POSIX struct timespec won't be surprised.  Reported by Jim
8182         Meyering.
8183
8184 2005-12-28  Bruno Haible  <bruno@clisp.org>
8185
8186         * build-aux/config.rpath: Update from GNU gettext.
8187
8188 2005-12-16  Jim Meyering  <jim@meyering.net>
8189
8190         * modules/fprintftime: New module.
8191         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
8192
8193 2005-12-16  Jim Meyering  <jim@meyering.net>
8194
8195         * m4/fprintftime.m4: New file.
8196
8197 2005-12-16  Jim Meyering  <jim@meyering.net>
8198
8199         * lib/fprintftime.c, lib/fprintftime.h: New files.
8200
8201 2005-12-15  Simon Josefsson  <jas@extundo.com>
8202
8203         * modules/socklen (configure.ac): Fix M4 macro name, to align with
8204         new m4/socklen.m4.
8205
8206 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8207
8208         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
8209         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
8210
8211 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8212
8213         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
8214         * lib/argp-help.c (fill_in_uparams): Check if the constructed
8215         struct uparams is valid. Fall back to the default values if it is
8216         not.
8217
8218 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8219
8220         * modules/argp (Files): Add argp-pin.c
8221         (Depends-on): dirname
8222         (lib_SOURCES): Add argp-pin.c
8223
8224 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8225
8226         * m4/argp.m4:  Check if program_invocation_name and
8227         program_invocation_short_name are declared and define appropriate
8228         macros if they are not.
8229
8230 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8231
8232         * lib/argp-help.c (__argp_base_name): New function
8233         (__argp_short_program_name): Rewrite using __argp_base_name
8234         * lib/argp-namefrob.h: Define program_invocation_name and
8235         program_invocation_short_name if requested
8236         (__argp_base_name): Add prototype
8237         * lib/argp-parse.c (argp_def): Use gettext wrappers
8238         (argp_default_parser): Use __argp_base_name
8239         * lib/argp-pin.c: New file. Defines program_invocation_name and
8240         program_invocation_short_name on systems that lack them.
8241
8242 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8243
8244         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
8245         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8246         porting problem reported by Georg Schwarz in
8247         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8248
8249 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8250
8251         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
8252         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8253         porting problem reported by Georg Schwarz in
8254         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8255
8256 2005-12-05  Bruno Haible  <bruno@clisp.org>
8257
8258         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
8259         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
8260         Reported by Mark Junker <mjscod@gmx.de>.
8261
8262 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
8265         Use implementation from Albert Chin, with some
8266         comments/corrections by Stepan Kasal and myself.
8267
8268 2005-12-02  Bruno Haible  <bruno@clisp.org>
8269
8270         * gnulib-tool (func_import): Accept GPLed build tool modules when
8271         --lgpl is given.
8272         * modules/csharpcomp-script: New file.
8273         * modules/csharpcomp: Depend on it.
8274         * modules/javacomp-script: New file.
8275         * modules/javacomp: Depend on it.
8276         Suggested by Simon Josefsson.
8277
8278 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
8281         statement, to work around an HP-UX 10.20 compiler bug reported by
8282         Peter O'Gorman.
8283
8284 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8285
8286         * modules/savedir (Depends-on): Add openat.
8287
8288 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8289
8290         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
8291         (uintmax_t) [defined uintmax_t]: Do not declare.
8292         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
8293         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
8294         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
8295         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
8296         sake of portability to weird hosts that C allows (though we don't
8297         know of any practical examples).
8298
8299         * lib/savedir.h (fdsavedir): New decl.
8300         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
8301         contains most of the former guts of savedir.
8302         (savedir): Use savedirstream.
8303         Include "openat.h".
8304
8305 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8306
8307         * modules/obstack (Files): Add m4/ulonglong.m4.
8308         Problem reported by Davide Angelocola.
8309
8310 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8311
8312         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
8313         coreutils no longer futzes with rounding modes.
8314
8315 2005-11-14  Jim Meyering  <jim@meyering.net>
8316
8317         * lib/mkstemp-safer.c: Include <config.h>, required for possible
8318         replacement of mkstemp.
8319
8320 2005-11-10  Simon Josefsson  <jas@extundo.com>
8321
8322         * lib/readline.c: Remove EOL.
8323
8324 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8325
8326         * modules/gethrxtime (Depends-on): Add gettime.
8327
8328 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8329
8330         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
8331         or gettimeofday; no longer needed.
8332
8333 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8334
8335         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
8336         time business.
8337         (gethrxtime) [! (HAVE_NANOUPTIME
8338         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
8339         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
8340         our own approximation.
8341
8342 2005-11-08  Eric Blake  <ebb9@byu.net>
8343
8344         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8345
8346 2005-11-08  Eric Blake  <ebb9@byu.net>
8347
8348         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8349
8350 2005-11-04  Bruno Haible  <bruno@clisp.org>
8351
8352         * gnulib-tool: Implement --update mode.
8353
8354 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8355
8356         Fix porting problem reported by Theodoros V. Kalamatianos.
8357         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
8358         Don't assume that futimes failing means we must fail.
8359
8360 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8361
8362         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
8363         variables to suggest the intended function of the PATH_MAX check.
8364
8365 2005-10-30  Kean Johnston  <jkj@sco.com>
8366
8367         Trivial changes to support SCO systems.
8368         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
8369         as PATH_MAX.
8370         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
8371         where __ptr is null when no I/O is pending.
8372
8373 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
8374
8375         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
8376         leave errno alone.  Problem reported by Dmitry V. Levin.
8377
8378 2005-10-28  Simon Josefsson  <jas@extundo.com>
8379
8380         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
8381         Test more.
8382
8383         * tests/test-gc-md2.c, tests/test-md2.c: New files.
8384
8385         * modules/md2, modules/md2-tests: New files.
8386
8387 2005-10-28  Simon Josefsson  <jas@extundo.com>
8388
8389         * m4/inet_ntop.m4: More tests.
8390
8391         * m4/gc-md2.m4, md2.m4: New file.
8392
8393 2005-10-28  Simon Josefsson  <jas@extundo.com>
8394
8395         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
8396         "restrict" keywords, as per POSIX.  Protect the function
8397         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
8398         Don't use K&R prototypes.  Check the sprintf return values.
8399         Re-define EAFNOSUPPORT if not present.  Indent.
8400
8401         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
8402         suggested by Bruno Haible <bruno@clisp.org>.
8403
8404         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
8405
8406         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
8407
8408         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
8409         libgcrypt).
8410
8411         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
8412
8413         * lib/md2.h, lib/md2.c: New files.
8414
8415 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
8416
8417         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
8418         errno alone.  Problem reported by Frederic Jolliton.
8419
8420 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         * modules/verify (License): Change from GPL to LGPL.  This is a
8423         tiny module and there are apparently near-equivalents that are
8424         under the BSD license.
8425
8426 2005-10-24  Simon Josefsson  <jas@extundo.com>
8427
8428         * modules/sha1: Relicense to LGPL.
8429
8430 2005-10-24  Simon Josefsson  <jas@extundo.com>
8431
8432         * lib/md4.h: Shrink buffer size, now that we changed the type.
8433
8434 2005-10-23  Simon Josefsson  <jas@extundo.com>
8435
8436         * gnulib-tool (func_import): Fix --tests-base.
8437
8438 2005-10-22  Simon Josefsson  <jas@extundo.com>
8439
8440         * modules/arcfour (Depends-on): Need stdint.
8441
8442 2005-10-22  Simon Josefsson  <jas@extundo.com>
8443
8444         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
8445         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
8446
8447 2005-10-22  Simon Josefsson  <jas@extundo.com>
8448
8449         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
8450         suggested by Bruno Haible <bruno@clisp.org>.
8451
8452 2005-10-22  Simon Josefsson  <jas@extundo.com>
8453
8454         * lib/crc.h: Include stddef.h, for size_t.
8455
8456 2005-10-22  Simon Josefsson  <jas@extundo.com>
8457
8458         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
8459         arcfour_context struct (simplify test vector testing in GNU
8460         Shishi).
8461
8462 2005-10-21  Simon Josefsson  <jas@extundo.com>
8463
8464         * modules/des, modules/des-tests: New files.
8465
8466         * modules/gc-des, modules/gc-des-tests: New files.
8467
8468         * tests/test-des.c, tests/test-gc-des.c: New file.
8469
8470 2005-10-21  Simon Josefsson  <jas@extundo.com>
8471
8472         * modules/arctwo, modules/arctwo-tests: New files.
8473
8474         * tests/test-arctwo.c: New file.
8475
8476         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
8477
8478         * tests/test-gc-arctwo.c: New file.
8479
8480 2005-10-21  Simon Josefsson  <jas@extundo.com>
8481
8482         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
8483         Bruno Haible <bruno@clisp.org>.
8484
8485         * m4/gc-des.m4: New file.
8486
8487 2005-10-21  Simon Josefsson  <jas@extundo.com>
8488
8489         * m4/arctwo.m4: New file.
8490
8491         * m4/gc-arctwo.m4: New file.
8492
8493 2005-10-21  Simon Josefsson  <jas@extundo.com>
8494
8495         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
8496         block.
8497
8498 2005-10-21  Simon Josefsson  <jas@extundo.com>
8499
8500         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
8501         <bruno@clisp.org>.
8502
8503         * lib/hmac-sha1.c (hmac_sha1): Likewise.
8504
8505         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
8506         Bruno Haible <bruno@clisp.org>.
8507
8508         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
8509         <bruno@clisp.org>.
8510
8511 2005-10-21  Simon Josefsson  <jas@extundo.com>
8512
8513         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
8514
8515 2005-10-21  Simon Josefsson  <jas@extundo.com>
8516
8517         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
8518
8519 2005-10-21  Simon Josefsson  <jas@extundo.com>
8520
8521         * lib/des.h, lib/des.c: New files.
8522
8523         * lib/gc-gnulib.c: Support DES.c
8524
8525 2005-10-21  Simon Josefsson  <jas@extundo.com>
8526
8527         * lib/arctwo.h, lib/arctwo.c: New files.
8528
8529         * lib/gc-gnulib.c: Support ARCTWO.
8530
8531 2005-10-21  Simon Josefsson  <jas@extundo.com>
8532
8533         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
8534         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8535
8536 2005-10-21  Simon Josefsson  <jas@extundo.com>
8537
8538         * gnulib-tool (func_import, func_create_testdir): Define automake
8539         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
8540         Makefile.am snippet),
8541         suggested by Bruno Haible <bruno@clisp.org>.
8542
8543         * modules/gc (Makefile.am): Use it.
8544
8545 2005-10-21  Bruno Haible  <bruno@clisp.org>
8546
8547         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
8548         patch.
8549
8550 2005-10-19  Simon Josefsson  <jas@extundo.com>
8551
8552         * tests/test-gc-rijndael.c: New file.
8553
8554         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
8555
8556 2005-10-19  Simon Josefsson  <jas@extundo.com>
8557
8558         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
8559         interface too.
8560
8561 2005-10-19  Simon Josefsson  <jas@extundo.com>
8562
8563         * tests/test-gc-arcfour.c: New file.
8564
8565         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
8566
8567 2005-10-19  Simon Josefsson  <jas@extundo.com>
8568
8569         * modules/gc-md4, modules/gc-md4-tests: New file.
8570
8571         * tests/test-gc-md4.c: New file.
8572
8573 2005-10-19  Simon Josefsson  <jas@extundo.com>
8574
8575         * m4/gc-md4.m4: New file.
8576
8577 2005-10-19  Simon Josefsson  <jas@extundo.com>
8578
8579         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
8580         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
8581         <kasal@ucw.cz>.
8582
8583 2005-10-19  Simon Josefsson  <jas@extundo.com>
8584
8585         * m4/gc-arcfour.m4: New file.
8586
8587         * m4/gc-rijndael.m4: New file.
8588
8589 2005-10-19  Simon Josefsson  <jas@extundo.com>
8590
8591         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
8592
8593 2005-10-19  Simon Josefsson  <jas@extundo.com>
8594
8595         * lib/gc-gnulib.c: Support ARCFOUR.
8596
8597 2005-10-19  Simon Josefsson  <jas@extundo.com>
8598
8599         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
8600         support.
8601
8602         * lib/gc.h: Add ECB enum type.
8603
8604         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
8605
8606 2005-10-18  Simon Josefsson  <jas@extundo.com>
8607
8608         * tests/test-md5.c: New file.
8609
8610         * modules/md5-tests: New file.
8611
8612 2005-10-18  Simon Josefsson  <jas@extundo.com>
8613
8614         * tests/test-md4.c: New file.
8615
8616         * modules/md4, modules/md4-tests: New files.
8617
8618 2005-10-18  Simon Josefsson  <jas@extundo.com>
8619
8620         * m4/md4.m4: New file.
8621
8622 2005-10-18  Simon Josefsson  <jas@extundo.com>
8623
8624         * lib/md4.h, lib/md4.c: New files, based on md5.?.
8625
8626 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
8627
8628         * gnulib-tool (func_create_testdir): Omit the second check whether
8629         BUILT_SOURCES in nonempty.
8630
8631 2005-10-17  Simon Josefsson  <jas@extundo.com>
8632
8633         * tests/test-rijndael.c: New file.
8634
8635 2005-10-17  Simon Josefsson  <jas@extundo.com>
8636
8637         * modules/sha1: Depend on stdint instead of md5.
8638
8639         * modules/md5: Depend on stdint, remove uint32_t.
8640
8641 2005-10-17  Simon Josefsson  <jas@extundo.com>
8642
8643         * modules/gc-sha1-tests: New file.
8644
8645         * tests/test-gc-sha1.c: New file.
8646
8647 2005-10-17  Simon Josefsson  <jas@extundo.com>
8648
8649         * m4/md5.m4: Remove call to uint32_t.m4.
8650
8651 2005-10-17  Simon Josefsson  <jas@extundo.com>
8652
8653         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
8654
8655         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
8656         md5.h.
8657
8658         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
8659
8660         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
8661
8662 2005-10-17  Simon Josefsson  <jas@extundo.com>
8663
8664         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
8665
8666 2005-10-17  Simon Josefsson  <jas@extundo.com>
8667
8668         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
8669
8670 2005-10-17  Simon Josefsson  <jas@extundo.com>
8671
8672         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
8673
8674         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
8675
8676 2005-10-17  Bruno Haible  <bruno@clisp.org>
8677
8678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
8679         that it can also be used in a test.
8680
8681 2005-10-16  Bruno Haible  <bruno@clisp.org>
8682
8683         * gnulib-tool (func_emit_tests_Makefile_am): Also define
8684         TESTS_ENVIRONMENT, so that individual tests can augment it.
8685
8686         * gnulib-tool (func_create_testdir): Use an intermediate target for
8687         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
8688         macros, like $(ALLOCA_H), which cannot be passed through the command
8689         line.
8690
8691 2005-10-15  Simon Josefsson  <jas@extundo.com>
8692
8693         * modules/rijndael-tests: New file.
8694
8695         * modules/rijndael: New file.
8696
8697 2005-10-15  Simon Josefsson  <jas@extundo.com>
8698
8699         * m4/rijndael.m4: New file.
8700
8701 2005-10-15  Simon Josefsson  <jas@extundo.com>
8702
8703         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
8704
8705         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
8706
8707 2005-10-14  Simon Josefsson  <jas@extundo.com>
8708
8709         * tests/test-arcfour.c: New file.
8710
8711         * modules/arcfour, modules/arcfour-tests: New files.
8712
8713 2005-10-14  Simon Josefsson  <jas@extundo.com>
8714
8715         * m4/arcfour.m4: New file.
8716
8717 2005-10-14  Simon Josefsson  <jas@extundo.com>
8718
8719         * lib/arcfour.h, lib/arcfour.c: New files.
8720
8721 2005-10-14  Roland McGrath  <roland@redhat.com>
8722
8723         Import from libc.  [BZ #1331]
8724         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
8725         macro argument.
8726         Reported by Matej Vela <vela@debian.org>.
8727
8728 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8729
8730         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
8731         include <wchar.h>; no longer needed.
8732
8733 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8734
8735         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
8736
8737 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
8738         and  Ulrich Drepper  <drepper@redhat.com>
8739
8740         Import from libc.
8741         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
8742         instead of inline stream orientation test and two separate
8743         function calls.  Pay no attention to USE_IN_LIBIO.
8744
8745 2005-10-13  Simon Josefsson  <jas@extundo.com>
8746
8747         * modules/gc-hmac-md5-tests: New file.
8748
8749         * tests/test-gc-hmac-sha1.c: New file.
8750
8751         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
8752
8753         * modules/gc-hmac-md5-tests: New file.
8754
8755         * tests/test-gc-md5.c: New file.
8756
8757         * modules/gc-md5-tests: New file.
8758
8759 2005-10-13  Simon Josefsson  <jas@extundo.com>
8760
8761         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
8762         Move memory allocation outside of loop.
8763
8764 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8765
8766         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
8767         intermediate directory is in a read-only file system.  Problem
8768         reported by Eric Blake.
8769
8770 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
8771
8772         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
8773
8774 2005-10-12  Simon Josefsson  <jas@extundo.com>
8775
8776         * tests/test-hmac-sha1.c: New file.
8777
8778         * modules/hmac-sha1-tests: New file.
8779
8780         * modules/hmac-sha1: New file.
8781
8782 2005-10-12  Simon Josefsson  <jas@extundo.com>
8783
8784         * modules/gc-sha1: New file.
8785
8786 2005-10-12  Simon Josefsson  <jas@extundo.com>
8787
8788         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
8789
8790         * tests/test-gc-pbkdf2-sha1.c: New file.
8791
8792 2005-10-12  Simon Josefsson  <jas@extundo.com>
8793
8794         * modules/gc-md5, modules/gc-hmac-md5: New files.
8795
8796         * modules/gc (Files): Remove md5, memxor and hmac files.
8797
8798 2005-10-12  Simon Josefsson  <jas@extundo.com>
8799
8800         * m4/gc-pbkdf2-sha1.m4: New file.
8801
8802         * m4/gc-hmac-sha1.m4: New file.
8803
8804         * m4/gc-sha1: New file.
8805
8806         * m4/hmac-sha1.m4: New file.
8807
8808 2005-10-12  Simon Josefsson  <jas@extundo.com>
8809
8810         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
8811
8812         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
8813
8814 2005-10-12  Simon Josefsson  <jas@extundo.com>
8815
8816         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
8817         suggested by Bruno Haible <bruno@clisp.org>.
8818
8819 2005-10-12  Simon Josefsson  <jas@extundo.com>
8820
8821         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
8822
8823 2005-10-12  Simon Josefsson  <jas@extundo.com>
8824
8825         * lib/gc-pbkdf2-sha1.c: New file.
8826
8827         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
8828
8829 2005-10-12  Simon Josefsson  <jas@extundo.com>
8830
8831         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
8832
8833         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
8834
8835 2005-10-12  Simon Josefsson  <jas@extundo.com>
8836
8837         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
8838         GC_USE_HMAC_MD5, respectively.
8839
8840         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
8841         (gc_md5): Fix typo.
8842
8843         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
8844
8845         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
8846
8847         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
8848
8849 2005-10-12  Bruno Haible  <bruno@clisp.org>
8850
8851         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
8852         Reported by Stepan Kasal <kasal@ucw.cz>.
8853
8854 2005-10-11  Simon Josefsson  <jas@extundo.com>
8855
8856         * tests/test-crc.c: New file.
8857
8858         * modules/crc, modules/crc-tests: New files.
8859
8860 2005-10-11  Simon Josefsson  <jas@extundo.com>
8861
8862         * m4/crc.m4: New file.
8863
8864 2005-10-11  Simon Josefsson  <jas@extundo.com>
8865
8866         * lib/gc.h: Add gc_hash and gc_hash_buffer.
8867
8868         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
8869
8870         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
8871
8872 2005-10-11  Simon Josefsson  <jas@extundo.com>
8873
8874         * lib/crc.h, lib/crc.c: New files.
8875
8876         * lib/gc.h (gc_hash_buffer): Add doc.
8877
8878 2005-10-11  Bruno Haible  <bruno@clisp.org>
8879
8880         * modules/c-strcasestr: New file.
8881         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
8882
8883 2005-10-11  Bruno Haible  <bruno@clisp.org>
8884
8885         * modules/c-strcase: New file.
8886         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
8887
8888 2005-10-11  Bruno Haible  <bruno@clisp.org>
8889
8890         * lib/strcasecmp.c: Include limits.h.
8891         (strcasecmp): Avoid integer overflow on exotic platforms.
8892         * lib/strncasecmp.c: Include limits.h.
8893         (strncasecmp): Avoid integer overflow on exotic platforms.
8894         Reported by Paul Eggert.
8895
8896 2005-10-11  Bruno Haible  <bruno@clisp.org>
8897
8898         * lib/c-strcasestr.h: New file, from GNU gettext.
8899         * lib/c-strcasestr.c: New file, from GNU gettext.
8900
8901 2005-10-11  Bruno Haible  <bruno@clisp.org>
8902
8903         * lib/c-strcase.h: New file, from GNU gettext.
8904         * lib/c-strcasecmp.c: New file, from GNU gettext.
8905         * lib/c-strncasecmp.c: New file, from GNU gettext.
8906
8907 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8908
8909         * modules/mempcpy (License): GPL -> LGPL.
8910         * modules/strchrnul (License): Likewise.
8911         * modules/sysexits (License): Likewise.
8912
8913 2005-10-08  Simon Josefsson  <jas@extundo.com>
8914
8915         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
8916
8917 2005-10-07  Simon Josefsson  <jas@extundo.com>
8918
8919         * m4/memxor.m4: Remove gl_C_RESTRICT call.
8920
8921 2005-10-06  Simon Josefsson  <jas@extundo.com>
8922
8923         * tests/test-hmac-md5.c: New file.
8924
8925         * modules/hmac-md5-tests: New file.
8926
8927         * modules/hmac-md5: New file.
8928
8929 2005-10-06  Simon Josefsson  <jas@extundo.com>
8930
8931         * m4/hmac-md5.m4: New file.
8932
8933         * m4/memxor.m4: Require gl_C_RESTRICT.
8934
8935 2005-10-06  Simon Josefsson  <jas@extundo.com>
8936
8937         * lib/memxor.c (memxor): Avoid casts and warnings.
8938
8939 2005-10-06  Simon Josefsson  <jas@extundo.com>
8940
8941         * lib/hmac-md5.c: New file.
8942
8943         * lib/hmac.h: New file.
8944
8945 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8946
8947         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
8948         promotes to int, not unsigned int, to catch the AIX 5.3
8949         compiler bug.
8950
8951 2005-10-05  Simon Josefsson  <jas@extundo.com>
8952
8953         * modules/memxor: New file.
8954
8955         * modules/iconv (Files): Move config.rpath to havelib, it is used
8956         there.
8957
8958         * modules/havelib (Files): Add config.rpath.
8959
8960 2005-10-05  Simon Josefsson  <jas@extundo.com>
8961
8962         * m4/memxor.m4: New file.
8963
8964 2005-10-05  Simon Josefsson  <jas@extundo.com>
8965
8966         * lib/memxor.c (memxor): Fix compiler error.
8967
8968         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
8969         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
8970
8971         * lib/memxor.h, lib/memxor.c: New files.
8972
8973         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
8974         we assume all systems have it, suggested by Jim Meyering
8975         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
8976         any systems lack sys/socket.h; mingw32 is known to lack it, but we
8977         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
8978         same reasons.
8979
8980 2005-10-05  Simon Josefsson  <jas@extundo.com>
8981
8982         * config/srclist.txt: Add glibc bug 1423 for md5.h.
8983
8984 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8985
8986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
8987         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
8988         needed, since the source code now assumes these .h files.
8989
8990 2005-10-05  Derek Price  <derek@ximbiot.com>
8991
8992         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
8993
8994 2005-10-05  Bruno Haible  <bruno@clisp.org>
8995
8996         * modules/stdint (License): Change to LGPL.
8997
8998 2005-10-04  Simon Josefsson  <jas@extundo.com>
8999
9000         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
9001         D. Baushke" <mdb@gnu.org>.
9002
9003 2005-10-04  Bruno Haible  <bruno@clisp.org>
9004
9005         * lib/verify.h (verify_true): Provide alternative definition for C++.
9006
9007 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9008
9009         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
9010         (SSIZE_MAX): New macro, if not already defined.
9011         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
9012         than 2 GiB.
9013
9014 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9015
9016         Sync from coreutils.
9017         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
9018         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
9019         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
9020         ULLONG_MAX doesn't work with 2.7.2.1.
9021
9022 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
9025         From Ben Pfaff.
9026
9027         * modules/exclude (Depends-on): Depend on verify.
9028         * modules/strtoimax (Depends-on): Likewise.
9029         * modules/utimecmp (Depends-on): Likewise.
9030
9031 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9032
9033         * lib/exclude.c: Include verify.h.
9034         (verify): Remove.  All callers changed to use verify.h's version.
9035         * lib/strtoimax.c: Likewise.
9036         * lib/utimecmp.c: Likewis.e
9037
9038         Sync from coreutils.
9039         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
9040         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
9041         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
9042         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
9043         bother returning ENOSYS if settimeofday or stime fails; just let
9044         them return whatever errno they want to return.
9045         * lib/utimens.c: Include unistd.h, for dup2.
9046         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
9047         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
9048
9049 2005-10-02  Jim Meyering  <jim@meyering.net>
9050
9051         Sync from coreutils.
9052         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
9053         from glibc-2.2.5 that fails for read-only files.
9054
9055 2005-10-02  Jim Meyering  <jim@meyering.net>
9056
9057         Sync from coreutils.
9058         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
9059         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
9060         `#if HAVE_CONFIG_H'.
9061         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
9062         Remove AT_FDCWD test.
9063         Do not consume the fd unless successful.
9064         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
9065         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
9066         block, so that we don't even try to compile it if settimeofday is
9067         available.  This works around a compilation failure on OSF1 V5.1,
9068         due to stime requiring a `long int*' while tv_sec is `int'.
9069
9070 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
9071
9072         Sync from coreutils.
9073         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
9074         against `yes', rather than just testing for nonempty.
9075
9076 2005-10-01  Simon Josefsson  <jas@extundo.com>
9077
9078         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
9079         and Darwin.
9080
9081         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
9082         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
9083         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
9084         freeaddrinfo and gai_strerror are declared by the POSIX headers.
9085         Check if struct addrinfo is declared.
9086
9087 2005-10-01  Simon Josefsson  <jas@extundo.com>
9088
9089         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
9090         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
9091         AI_* and EAI_* definitions.  Protect function declarations.
9092
9093 2005-10-01  Jim Meyering  <jim@meyering.net>
9094
9095         Sync from coreutils.
9096
9097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
9098         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
9099         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
9100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9101         in the inet and nsl libraries.  Required on Solaris 5.7.
9102
9103 2005-10-01  Jim Meyering  <jim@meyering.net>
9104
9105         Sync from coreutils.
9106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9107         in the inet and nsl libraries.  Required on Solaris 5.7.
9108
9109 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
9110
9111         * lib/getdelim.c (getdelim): Remove unused variables.
9112
9113 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
9116         so that the code works even with ancient cpp.  Portability problem
9117         with GCC 2.7.2.1 reported by Thomas M.Ott.
9118
9119 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9120
9121         * modules/regex (Depends-on): Add strcase.
9122
9123         * modules/gethostname (Licence): Change from GPL to LGPL, since
9124         gethostname.c is a trivial implementation of a standard library
9125         function.
9126         * modules/poll (License): Change from GPL to LGPL, since it's
9127         derived from LGPL code.
9128
9129 2005-09-27  Jim Meyering  <jim@meyering.net>
9130
9131         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
9132         HAVE_CONFIG_H.
9133
9134         * lib/intprops.h (signed_type_or_expr__): Define.
9135         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
9136         for unsigned types.
9137
9138 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9139
9140         * lib/verify.h (verify_expr): Remove, replacing with:
9141         (verify_true): New macro that returns true instead of void.
9142         (verify_type__): Remove.
9143         (verify): Use verify_true rather than verify_type__.
9144
9145 2005-09-26  Bruno Haible  <bruno@clisp.org>
9146
9147         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
9148         is necessary.
9149         (lib_SOURCES): Remove mbchar.c.
9150         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
9151         (Files): Add m4/mbrtowc.m4.
9152         * modules/mbiter: Likewise.
9153         * modules/mbuiter: Likewise.
9154
9155 2005-09-26  Bruno Haible  <bruno@clisp.org>
9156
9157         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
9158         compile mbchar.c if they are not both present.
9159         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
9160         * m4/mbiter.m4 (gl_MBITER): Likewise.
9161         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
9162         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
9163         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
9164
9165 2005-09-25  Jim Meyering  <jim@meyering.net>
9166
9167         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
9168         also uses socklen_t.
9169
9170 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9171
9172         * lib/utimens.c (ENOSYS): Define if not already defined.
9173         (futimens): Support having a null PATH if the file descriptor
9174         is nonnegative.
9175
9176         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
9177         Remove.
9178         (__attribute): Define to empty unless GCC 3.1 or later.
9179         This works around a core dump on OpenBSD 3.4, which has GCC
9180         2.95.3, which dumps core when given __attribute__(()).  It also
9181         simplifies other tests, since we really don't want to bother with
9182         worrying about which ancient version of GCC supported what.
9183         Original problem reported by Yoann Vandoorselaere, with part of
9184         the fix suggested by Derek Price.
9185
9186 2005-09-24  Jim Meyering  <jim@meyering.net>
9187
9188         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
9189         so we can once again use a positive bitfield width of 1 -- now we
9190         don't have to explain why we were using a bitfield width of 2.
9191
9192 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9193
9194         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
9195         and similarly for the other external symbols.  Problem reported
9196         by James Gallager.
9197
9198         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
9199         bug reported by Jim Meyering.
9200
9201         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
9202         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
9203         not needed, since socklen is a prerequisite module.
9204
9205 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9206
9207         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
9208         Problem reported by Eric Blake.
9209         (getaddrinfo): Initialize se so that it's not garbage.
9210         Redo internal storage allocation so that it doesn't make unportable
9211         assumptions about alignment.
9212         Fix a memory leak.
9213
9214         * lib/utimens.c (futimens): Use futimesat if available.
9215         Prefer it to futimes since it doesn't have the futimes bug.
9216
9217         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
9218         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
9219         Instead, declare a function that returns a pointer to an array,
9220         and use verify_type__ to declare the size of the array.
9221         Problem and germ of a solution reported by Bruno Haible.
9222         (verify_type__): Use 2, not 1, for bitfield size, to avoid
9223         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
9224
9225 2005-09-23  Jim Meyering  <jim@meyering.net>
9226
9227         Sync from coreutils.
9228         Correct build failure (socklen_t not defined) on at least
9229         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
9230         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
9231
9232 2005-09-23  Jim Meyering  <jim@meyering.net>
9233
9234         * modules/getaddrinfo (Depends-on): Add socklen.
9235
9236 2005-09-23  Bruno Haible  <bruno@clisp.org>
9237
9238         * tests/test-verify.c: New file.
9239
9240 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9241
9242         Sync from coreutils.
9243
9244         * modules/argmatch (Depends-on): Add verify.
9245         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
9246         unistd-safer.
9247         * modules/save-cwd (Depends-on): Likewise.
9248
9249         * modules/openat (Files): Add lib/openat-die.c.
9250         (Depends-on): Remove error, exitfail.
9251         Add dirname.
9252
9253         * modules/verify: New file.
9254         * MODULES.html.sh (Diagnostics <assert.h>): New section,
9255         with "verify" module.
9256
9257 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9258
9259         Sync from coreutils.
9260
9261         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
9262         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
9263         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
9264         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
9265         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
9266         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
9267         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
9268         Don't bother checking for string.h, stdlib.h, unistd.h.
9269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
9270         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
9271         module's job.
9272         * m4/jm-macros.m4 (gl_MACROS): Likewise.
9273         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
9274
9275         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
9276         (gl_GETDATE): Use it.
9277
9278         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
9279
9280 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9281
9282         Sync from coreutils.
9283
9284         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
9285         stat-time.h.
9286         * lib/argmatch.h: Include verify.h
9287         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
9288         (ARGMATCH_ASSERT): Remove; unused.
9289         * lib/canonicalize.c: Assume STDC_HEADERS.
9290         * lib/exclude.c: Include "strcase.h".
9291         * lib/regex_internal.h [!defined _LIBC]: Likewise.
9292         * lib/getusershell.c: Include stdio--.h rather than stdio.h
9293         and stdio-safer.h.
9294         (getusershell): Call fopen, not fopen_safer.
9295         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
9296         Do not include unistd-safer.h.
9297         (save_cwd): Don't call fd_safer; no longer needed
9298         now that we include fcntl--.h.
9299
9300         * lib/getdate.y (relative_time): New type.
9301         (RELATIVE_TIME_0): New constant.
9302         (parser_control): Use relative_time instead of doing it ourselves.
9303         (%union): Add new relative_time rel member.
9304         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
9305         Now typeless.
9306         (relunit, relunit_snumber): Now of type rel.
9307         (zone, rel, relunit, get_date): Adjust to above changes.
9308
9309         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
9310         Do not include unistd-safer.h.
9311         (getloadavg): Don't call fd_safer; no longer needed
9312         now that we include fcntl--.h.
9313
9314         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
9315         (make_dir_parents): Treat ENOSYS like EEXIST.
9316
9317         Improve quality of diagnostics on restore_cwd failure.
9318         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
9319         (make_dir_parents): Last arg is now int * (for errno), not bool *.
9320         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
9321         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
9322         each time through the loop.  Do not diagnose restore_cwd failure;
9323         that is the caller's job (and perhaps the caller does not care).
9324
9325         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
9326         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
9327         If the file already exists but is not a directory, don't bother
9328         to try to make its parents.
9329         Close potential file descriptor leak if we can't chdir("/") (!).
9330         Don't always return true if chdir($PWD) fails; return true only
9331         if the requested action was done successfully (except for the
9332         chdir($PWD)).
9333         Don't log final directory unless we actually made it.
9334         Refactor to avoid duplicate code to fix up permissions.
9335         Don't attempt to fix up parent permissions if chdir($PWD) fails.
9336
9337         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
9338         to make it a bit faster and (I hope) clearer.
9339         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
9340         Fix bug in formats like %2N.
9341
9342         * lib/verify.h: New file.
9343
9344 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9345
9346         Sync from coreutils.
9347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
9348
9349 2005-09-22  Jim Meyering  <jim@meyering.net>
9350
9351         Sync from coreutils.
9352
9353         * m4/lstat.m4 (gl_FUNC_LSTAT):
9354         Use AC_LIBSOURCES to require lstat.c and lstat.h.
9355         Remove obsolete comment.
9356         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
9357         * m4/xstrtod.m4: Likewise.
9358
9359         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
9360
9361 2005-09-22  Jim Meyering  <jim@meyering.net>
9362
9363         Sync from coreutils.
9364
9365         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
9366
9367         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
9368         the .tm_year member, since otherwise gcc-4.0 would now warn about
9369         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
9370
9371         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
9372         order to avoid an unsuppressible warning from gcc on 64-bit systems.
9373
9374         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
9375         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
9376         when run in a time zone for which daylight savings time is in effect
9377         for the starting date.
9378
9379         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
9380         stop us from restricting permissions of just-created absolute-named
9381         directories.
9382         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
9383         to restore initial working directory.
9384         * lib/mkdir-p.c (make_dir_parents): New parameter:
9385         different_working_dir, to tell caller if/when we change the working
9386         directory and are unable to return to the initial one.
9387         * lib/mkdir-p.h (make_dir_parents): Update prototype.
9388         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
9389         `return false'.  This fixes a bug introduced on 2004-07-30.
9390
9391         * lib/openat.c (fdopendir): Be sure to close the supplied
9392         file descriptor before returning.  This makes our replacement
9393         implementation a little closer to Solaris's, where fdopendir
9394         ties the file descriptor to the returned DIR* pointer.
9395         * lib/openat.c (unlinkat): New function.
9396         * lib/openat.h (unlinkat): Add prototype.
9397         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
9398         (openat_restore_fail): Rename from openat_restore_die.
9399         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
9400
9401         Provide an alternative to exiting immediately upon save_cwd or
9402         restore_cwd failure.  Now, an application can arrange e.g.,
9403         to perform a longjump in that case.
9404         * lib/openat.c: Include dirname.h.
9405         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
9406         (rpl_openat, fdopendir, fstatat): Call openat_save_die
9407         and openat_restore_die rather than calling error directly.
9408         Don't include "error.h" or "exitfail.h"; they're no longer needed.
9409
9410         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
9411         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
9412         define.
9413
9414         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
9415         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
9416                             int utc, int nanoseconds);
9417         Background:
9418         date should not have to allocate a megabyte of virtual memory to
9419         handle a format argument like +%1048575T.  When implemented with
9420         strftime, it must allocate such a buffer, use strftime to fill it
9421         in, print it, then free it.
9422         With fprintftime, it simply prints everything and exits.
9423         With no need for memory allocation, that's one fewer way to fail.
9424         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
9425         optional field width, not before, so we accept %9:z, not %:9z.
9426         (my_strftime): Be sure to use L_('x') for literals.
9427
9428         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
9429         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
9430         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
9431         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
9432         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
9433         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
9434         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
9435         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
9436         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
9437         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
9438         * lib/xgethostname.c, lib/xreadlink.c:
9439         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
9440
9441         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
9442         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
9443         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
9444         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9445         and don't include <sys/file.h>).
9446
9447 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
9448
9449         Sync from coreutils.
9450
9451         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
9452         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
9453         [!LDAV_DONE]: Avoid unused variable warning.
9454
9455 2005-09-21  Bruno Haible  <bruno@clisp.org>
9456
9457         * lib/unicodeio.h (unicode_to_mb): New declaration.
9458
9459 2005-09-20  Derek Price  <derek@ximbiot.com>
9460
9461         * lib/getaddrinfo.c: Don't include <netdb.h> included from
9462         getaddrinfo.h.
9463
9464 2005-09-20  Bruno Haible  <bruno@clisp.org>
9465
9466         * gnulib-tool: Remove trailing slashes from the values specified for
9467         --source-base, --m4-base, --tests-base, --aux-dir.
9468         Suggested by Simon Josefsson <jas@extundo.com>.
9469
9470 2005-09-20  Bruno Haible  <bruno@clisp.org>
9471
9472         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
9473         func_modules_to_filelist, func_import, func_create_testdir): Make all
9474         sorting results locale-independent, so that gnulib-cache.m4 doesn't
9475         change when gnulib-tool is invoked in a different locale.
9476
9477 2005-09-19  Simon Josefsson  <jas@extundo.com>
9478
9479         * m4/socklen.m4: Fix typo.
9480
9481 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9482
9483         Use a consistent style for including <config.h>.
9484         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
9485         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
9486         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
9487         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
9488         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
9489         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
9490         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
9491         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
9492         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
9493         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
9494         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
9495         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
9496         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
9497         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
9498         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
9499         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
9500         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
9501         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
9502         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
9503         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
9504         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
9505         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
9506         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
9507         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
9508         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
9509         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
9510         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
9511         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
9512         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
9513         lib/xstrtoumax.c, lib/yesno.c:
9514         Standardize inclusion of config.h.
9515         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
9516         lib/inttostr.h:  Removed inclusion of config.h from header files.
9517         * lib/inttostr.c:  Adjusted in-tree users.
9518         * lib/timespec.h: Remove superfluous warning to include config.h.
9519         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
9520         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
9521         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
9522         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
9523         config.h with HAVE_CONFIG_H.
9524
9525 2005-09-19  Jim Meyering  <jim@meyering.net>
9526
9527         * modules/pathmax (License): Change to LGPL.
9528
9529 2005-09-19  Derek Price  <derek@ximbiot.com>
9530
9531         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
9532
9533 2005-09-19  Bruno Haible  <bruno@clisp.org>
9534
9535         * gnulib-tool (import): Provide default for --tests-base.
9536
9537 2005-09-19  Bruno Haible  <bruno@clisp.org>
9538
9539         * doc/quote.texi: New file, extracted from gnulib.texi.
9540         * doc/ctime.texi: New file, extracted from gnulib.texi.
9541         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
9542         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
9543         * doc/gnulib.texi: Include them.
9544
9545 2005-09-18  Bruno Haible  <bruno@clisp.org>
9546
9547         Portability fix.
9548         * gnulib-tool (func_readlink): New function.
9549         (func_ln_if_changed): Use it.
9550
9551 2005-09-18  Bruno Haible  <bruno@clisp.org>
9552
9553         * gnulib-tool: Support --with-tests also with --import.
9554         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
9555         (func_import): Use variables $testsbase and $inctests. Emit a
9556         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
9557         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
9558         SUBDIRS += $testsdir.
9559         (func_create_testdir): Update.
9560
9561 2005-09-18  Bruno Haible  <bruno@clisp.org>
9562
9563         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
9564         instead of $dry_run.
9565         (func_cp_if_changed, func_mv_if_changed): Remove functions.
9566         (func_ln_if_changed): Don't handle dry-run here.
9567         (func_import): In dry-run mode, detect more precisely which actions
9568         would be performed, and don't use "...ing" verbs.
9569
9570 2005-09-18  Bruno Haible  <bruno@clisp.org>
9571
9572         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
9573         (func_import): Use join on two temporary files instead of three nested
9574         loops, in order to determine which files are new or old.
9575
9576 2005-09-18  Bruno Haible  <bruno@clisp.org>
9577
9578         * gnulib-tool (func_import): Comment out code that spits out the
9579         new files with --dry-run.
9580
9581 2005-09-18  Bruno Haible  <bruno@clisp.org>
9582
9583         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
9584
9585 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9586
9587         * lib/stat-time.h: New file.
9588         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
9589         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
9590         in a different way.
9591         (timespec_cmp): New function.
9592         * lib/utimecmp.c: Include stat-time.h.
9593         (SYSCALL_RESOLUTION): Depend on whether various struct stat
9594         members exist, not on the obsolescent ST_MTIM_NSEC.
9595         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
9596
9597 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9598
9599         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
9600
9601 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9602
9603         * MODULES.html.sh (File system functions): Add stat-time.
9604         * modules/stat-time: New file.
9605         * modules/timespec (Files): Remove m4/st_mtim.m4; this
9606         is now done in a different way, by the stat-time module.
9607         * modules/utimecmp (Depends-on): Add stat-time.
9608
9609 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9610
9611         * m4/st_mtim.m4: Remove.  Superseded by...
9612         * m4/stat-time.m4: New file.
9613         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
9614         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
9615
9616 2005-09-15  Derek Price  <derek@ximbiot.com>
9617
9618         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
9619
9620 2005-09-15  Derek Price  <derek@ximbiot.com>
9621
9622         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
9623         * lib/regex_internal.c: Ditto, using this...
9624         (__GNUC_PREREQ): ...new macro.
9625         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
9626         using...
9627         (__GNUC_PREREQ): ...this new macro.
9628
9629         * lib/strstr.h: Include string.h. Define strstr as a macro here.
9630
9631 2005-09-15  Derek Price  <derek@ximbiot.com>
9632             Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
9635         changes, consolidating in...
9636         * lib/regex_internal.h: ...this file.
9637
9638 2005-09-13  Jim Meyering  <jim@meyering.net>
9639
9640         * lib/canon-host.c: Filter through gnu indent and reword comments
9641         slightly.
9642         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
9643
9644 2005-09-13  Derek Price  <derek@ximbiot.com>
9645
9646         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
9647         failure.
9648         Reported by Jim Meyering  <jim@meyering.net>.
9649
9650 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9651
9652         * lib/base64.c: Typo.
9653         (base64_encode): Put b64str in initialized data section.
9654
9655 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9656
9657         Merge glibc and coreutils changes into gnulib, plus a few
9658         extra fixes.
9659         * lib/md5.c: Use #error rather than a string.
9660         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
9661         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
9662         (__attribute__): Define to empty for non recent-GCC.
9663         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
9664         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
9665         Renamed from their non-__ counterparts, with new macros replacing
9666         them if not _LIBC.  Add __THROW attribute.
9667         (rol): Remove.
9668         (struct md5_ctx): Align buffer if using GCC.
9669         * lib/sha1.h (struct sha1_ctx): Likewise.
9670         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
9671         The old name was backwards.
9672         (NOTSWAP): Remove; not used.
9673         (rol): New macro, moved here from md5.h.
9674         (sha1_process_block): Remove a FIXME that doesn't make sense.
9675
9676 2005-09-12  Derek Price  <derek@ximbiot.com>
9677
9678         Return usable errors from canon-host.
9679         * lib/canon-host.h: New file.
9680         * lib/canon-host.c (canon_host): Wrap...
9681         (canon_host_r): ...this new function, which now relies exclusively on
9682         getaddrinfo.
9683         (ch_strerror): New function.
9684         (last_cherror): New global.
9685         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
9686         interface.
9687         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
9688         void *.
9689         (freeaddrinfo): Free ai->ai_canonname when set.
9690
9691 2005-09-12  Derek Price  <derek@ximbiot.com>
9692
9693         Make canon-host require getaddrinfo.
9694         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
9695         AC_LIBSOURCE canon-host.h.  Call...
9696         (gl_PREREQ_CANON_HOST): ...this new function, which requires
9697         gl_GETADDRINFO.
9698         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
9699
9700 2005-09-12  Derek Price  <derek@ximbiot.com>
9701
9702         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
9703         LGPL.
9704         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
9705
9706 2005-09-12  Derek Price  <derek@ximbiot.com>
9707
9708         * lib/gai_strerror.c: Include config.h when available.  Include
9709         getaddrinfo.h before other headers to test interface.
9710         Reported by Larry Jones <lawrence.jones@ugs.com>.
9711
9712 2005-09-12  Derek Price  <derek@ximbiot.com>
9713             Paul Eggert  <eggert@cs.ucla.edu>
9714
9715         * modules/glob (Files): Add glob-libc.h.
9716
9717 2005-09-12  Derek Price  <derek@ximbiot.com>
9718             Paul Eggert  <eggert@cs.ucla.edu>
9719
9720         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
9721         glob_.h, glob-libc.h.
9722         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
9723
9724 2005-09-12  Derek Price  <derek@ximbiot.com>
9725             Paul Eggert  <eggert@cs.ucla.edu>
9726
9727         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
9728         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
9729         protecting things that should be done only in gnulib contexts.
9730         * lib/glob_.h: New file, containing only the glob things needed for
9731         gnulib.
9732         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
9733         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
9734         (glob, globfree, glob_pattern_p): Now defined simply in terms of
9735         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
9736         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
9737         and to respect the namespace rules better.
9738
9739 2005-09-08  Simon Josefsson  <jas@extundo.com>
9740
9741         * modules/socklen: New file.
9742
9743 2005-09-08  Simon Josefsson  <jas@extundo.com>
9744
9745         * m4/socklen.m4: New file.
9746
9747 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9748
9749         * modules/utimens (Files): Add m4/utimbuf.m4, since
9750         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
9751         Reported by Sergey Poznyakoff.
9752
9753 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
9756         definitions, since that's the preferred style in glibc.
9757         Fix a minor spacing issue, and update copyright notice to match
9758         glibc's.
9759
9760 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9761
9762         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
9763
9764 2005-09-06  Simon Josefsson  <jas@extundo.com>
9765
9766         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
9767         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
9768
9769 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
9772         warning.
9773
9774 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9775
9776         * config/srclist.txt: Add glibc bug 1302.
9777
9778 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9779
9780         Change bitset word type from unsigned int to unsigned long int,
9781         as this has better performance on typical 64-bit hosts.
9782         Port bitset code to hosts with unusual word sizes.
9783         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
9784         (build_collating_symbol):
9785         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
9786         argument is a bitset.  This is merely a style issue, but it makes
9787         it clearer that an entire array is expected.
9788         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
9789         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
9790         Port to the case where bitset_word is not the same as unsigned int.
9791         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
9792         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
9793         Likewise.
9794         * lib/regexec.c (check_dst_limits_calc_pos_1,
9795         check_subexp_matching_top):
9796         (build_trtable, group_nodes_into_DFAstates):
9797         Likewise.
9798         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
9799         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
9800         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
9801         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
9802         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
9803         * lib/regcomp.c (optimize_subexps, lower_subexp):
9804         Work even if bitset_word has holes in its bitwise representation.
9805         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
9806         * lib/regexec.c (check_dst_limits_calc_pos_1,
9807         check_subexp_matching_top):
9808         Likewise.
9809         * lib/regex_internal.c (re_string_reconstruct):
9810         Don't assume UCHAR_MAX == 255.
9811         * lib/regex_internal.h (bitset_set_all): Likewise.
9812         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
9813         All uses changed.
9814         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
9815         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
9816         All uses changed.
9817         (BITSET_WORD_MAX): New macro.
9818         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
9819         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
9820         (bitset_empty, bitset_copy):
9821         Prefer sizeof (bitset) to multiplying it out ourselves.
9822         (bitset_not_merge): Remove; unused.
9823         (bitset_contain): Return bool, not unsigned int with one bit on.
9824         All callers changed.
9825         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
9826         alignment than re_node_set; do this by defining a new internal
9827         type struct dests_alloc and using it to allocate memory.
9828
9829 2005-09-05  Bruno Haible  <bruno@clisp.org>
9830
9831         * gnulib-tool (func_import): Fix comparison in handling of symbolic
9832         links.
9833
9834 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
9835
9836         * modules/size_max (Makefile.am): Add size_max.h
9837
9838 2005-09-04  Derek Price  <derek@ximbiot.com>
9839
9840         * gnulib-tool (func_import): Fix reversed $symbolic logic.
9841
9842 2005-09-03  Simon Josefsson  <jas@extundo.com>
9843
9844         * gnulib-tool: Fix typo.
9845
9846 2005-09-03  Simon Josefsson  <jas@extundo.com>
9847
9848         * config/srclist.txt: Add glibc bug 1293.
9849
9850 2005-09-03  Derek Price  <derek@ximbiot.com>
9851
9852         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
9853         From Larry Jones <lawrence.jones@ugs.com>.
9854
9855 2005-09-02  Simon Josefsson  <jas@extundo.com>
9856
9857         * modules/socklen: New file.
9858
9859 2005-09-02  Simon Josefsson  <jas@extundo.com>
9860
9861         * modules/havelib: New module.
9862
9863         * modules/gettext, modules/iconv, modules/lock, modules/readline:
9864         Use havelib.
9865
9866 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9867
9868         Check for arithmetic overflow when calculating sizes, to prevent
9869         some buffer-overflow issues.  These patches are conservative, in the
9870         sense that when I couldn't determine whether an overflow was possible,
9871         I inserted a run-time check.
9872         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
9873         macros.
9874         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
9875         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
9876         (re_xnrealloc, re_x2nrealloc): New inline functions.
9877         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
9878         parse_bracket_exp):
9879         (build_equiv_class, build_charclass): Check for arithmetic overflow
9880         in size expression calculations.
9881         * lib/regex_internal.c (re_string_realloc_buffers):
9882         (build_wcs_upper_buffer, re_node_set_add_intersect):
9883         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
9884         (re_dfa_add_node, register_state): Likewise.
9885         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
9886         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
9887         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
9888         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
9889
9890 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9891
9892         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
9893         m4/ulonglong.m4.  Problem reported by Martin Lambers.
9894
9895 2005-09-02  Bruno Haible  <bruno@clisp.org>
9896
9897         Support for lib vs. lib64 distinction on biarch platforms.
9898         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
9899         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
9900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
9901
9902 2005-09-02  Bruno Haible  <bruno@clisp.org>
9903
9904         * gnulib-tool (import): In the other first-use case, provide defaults
9905         as well.
9906
9907 2005-09-02  Bruno Haible  <bruno@clisp.org>
9908
9909         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
9910         patches not yet found in the latest gettext release.
9911
9912 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9913
9914         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
9915         to avoid a collision with bits/local_lim.h in glibc.
9916         All uses changed.  Problem reported by Dmitry V. Levin in
9917         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
9918
9919         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
9920         bugs in int versus size_t comparisons.
9921         (re_string_context_at): Fix bug where the code assumed that
9922         Idx is signed.
9923
9924         Use bool where appropriate.
9925         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
9926         All callers changed.
9927         (calc_eclosure_iter): Likewise, for ROOT arg.
9928         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
9929         (build_charclass_op): Likewise, for NON_MATCH arg.
9930         * lib/regex_internal.c (re_string_allocate, re_string_construct):
9931         (re_string_construct_common): Likewise, for ICASE arg.
9932         * lib/regexec.c (re_search_2_stub, re_search_stub):
9933         Likewise, for RET_LEN arg.
9934         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
9935         (set_regs): Likewise, for FL_BACKTRACK arg.
9936         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
9937         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
9938         (calc_eclosure_iter, parse_bracket_exp):
9939         Use bool for internal variables that are booleans.
9940         * lib/regexec.c (re_search_internal, check_matching,
9941         proceed_next_node):
9942         (set_regs, build_sifted_states, sift_states_bkref):
9943         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
9944         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9945         (find_collation_sequence_value):
9946         Likewise.
9947         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
9948         (re_node_set_compare):
9949         Return bool, not int. All callers changed.
9950         * lib/regexec.c (check_halt_node_context, check_dst_limits):
9951         (build_trtable, check_node_accept): Likewise.
9952         * lib/regex_internal.h: Include stdbool.h.
9953
9954         Fix bugs uncovered when converting to bool.
9955         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
9956         failure instead of charging ahead blindly.
9957         * lib/regex_internal.c (register_state): Likewise.
9958         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
9959         for freeing internal storage.
9960         (group_nodes_into_DFA_states): Use unsigned int, not int, for
9961         bitset pieces used as boolean, to avoid undefined behavior
9962         on hosts that do int overflow checking.
9963
9964 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9965
9966         * config/srclist.txt: Add glibc bugs 1285-1287.
9967
9968 2005-09-01  Jim Meyering  <jim@meyering.net>
9969
9970         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
9971         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
9972         Require gl_STAT_MACROS, too.
9973
9974 2005-09-01  Bruno Haible  <bruno@clisp.org>
9975
9976         * gnulib-tool (import): In the first-use case, provide defaults.
9977
9978 2005-09-01  Bruno Haible  <bruno@clisp.org>
9979
9980         * gnulib-tool (func_import): Remove the .tmp files.
9981
9982 2005-09-01  Bruno Haible  <bruno@clisp.org>
9983
9984         * gnulib-tool (func_import): Fix handling of symbolic links.
9985
9986 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9987
9988         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
9989         old glibc regex code mishandles strings longer than 2**31 bytes.
9990         This patch fixes this when the regex code is used in gnulib
9991         (i.e., outside glibc).
9992
9993         This patch should not affect the use of the regex code inside
9994         glibc.  No doubt this problem also needs to be handled for glibc
9995         as well, but the result will be an incompatible change to the
9996         glibc ABI, and the old ABI will have to be supported too.  That
9997         can be the the subject for another patch.
9998
9999         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
10000         governing whether the rest of this patch is active.  By default,
10001         the macro is disabled and the patch has no effect.
10002         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
10003         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
10004         (struct re_pattern_buffer, re_search, re_search_2, re_match):
10005         (re_match_2, re_set_registers): Use the new types.
10006         * lib/regex_internal.h (Idx, re_hashval_t): New types.
10007         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
10008         New macros.
10009         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
10010         (re_string_context_at, bin_tree_t, re_dfastate_t):
10011         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
10012         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
10013         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
10014         (re_string_char_size_at, re_string_wchar_at):
10015         (re_string_elem_size_at):
10016         Use the new types and macros to port to 64-bit hosts.
10017         Use unsigned types for internal values, so that the code
10018         mostly works even for arrays larger than SSIZE_MAX.
10019         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
10020         (search_duplicated_node, calc_eclosure_iter, fetch_number):
10021         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
10022         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
10023         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
10024         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
10025         (calc_inveclosure, parse_dup_op, build_range_exp):
10026         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
10027         (fetch_number, create_token_tree, mark_opt_subexp):
10028         Likewise.
10029         * lib/regex_internal.c (re_string_construct_common,
10030         create_ci_newstate):
10031         (create_cd_newstate, re_string_allocate, re_string_construct):
10032         (re_string_realloc_buffers, build_wcs_upper_buffer):
10033         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10034         (re_string_reconstruct, re_string_peek_byte_case):
10035         (re_string_fetch_byte_case, re_string_context_at):
10036         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10037         (re_node_set_init_copy, re_node_set_add_intersect):
10038         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10039         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10040         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10041         (re_acquire_state, re_acquire_state_context, register_state):
10042         Likewise.
10043         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
10044         search_cur_bkref_entry):
10045         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
10046         (re_search_internal, re_search_2_stub, re_search_stub)
10047         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
10048         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
10049         (update_cur_sifted_state, check_dst_limits):
10050         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10051         (check_subexp_limits, sift_states_bkref, merge_state_array):
10052         (check_subexp_matching_top, get_subexp, get_subexp_sub):
10053         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
10054         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10055         (expand_bkref_cache, check_node_accept_bytes):
10056         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
10057         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
10058         (acquire_init_state_context, check_halt_node_context):
10059         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
10060         (sift_states_backward, clean_state_log_if_needed):
10061         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
10062         (find_recover_state, transit_state_sb, transit_state_mb):
10063         (transit_state_bkref, build_trtable, match_ctx_clean):
10064         Likewise.
10065         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
10066         to work around an assumption that REG_MISSING is negative.
10067
10068         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
10069         (seek_collating_symbol_entry) [defined _LIBC]:
10070         (lookup_collation_sequence_value) [defined _LIBC]:
10071         (build_range_exp, build_collating_symbol) [defined _LIBC]:
10072         Use prototypes rather than old-style function definitions.
10073         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
10074         (transit_state_sb) [0]:
10075         (find_collation_sequence_value) [defined _LIBC]: Likewise.
10076
10077         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
10078         rm_eo.
10079
10080         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
10081         (optimize_subexps, lower_subexp):
10082         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
10083         since the signed shift might overflow.  Use 1u<<31 instead.
10084         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
10085         Likewise.
10086         * lib/regexec.c (check_dst_limits_calc_pos_1,
10087         check_subexp_matching_top): Likewise.
10088
10089         * lib/regcomp.c (optimize_subexps, lower_subexp):
10090         Use CHAR_BIT rather than 8, for clarity.
10091         * lib/regexec.c (check_dst_limits_calc_pos_1):
10092         (check_subexp_matching_top): Likewise.
10093         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
10094         have to worry about portability issues when shifting it left.
10095         Remove no-longer-needed test for table_size > 0.
10096         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
10097         in a word, as the resulting behavior is undefined.
10098         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
10099         in one case, a <= should have been an <, and in another case the
10100         whole test was missing.
10101         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
10102         the standard name CHAR_BIT.
10103         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
10104         this is not true on one's complement and signed-magnitude hosts.
10105
10106         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
10107         next_last_offset.
10108         (struct re_dfa_t): Remove unused member states_alloc.
10109         * lib/regcomp.c (init_dfa): Don't initialize unused members.
10110
10111 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10112
10113         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
10114         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
10115         and large-file glibc and in 32-bit large-file Solaris.
10116
10117 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10118
10119         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
10120         lengths fit in regoff_t; this isn't true if regoff_t is the same
10121         width as size_t.
10122         * lib/regex.c (re_search_internal): 5th arg is LAST_START
10123         (= START + RANGE) instead of RANGE.  This avoids overflow
10124         problems when regoff_t is the same width as size_t.
10125         All callers changed.
10126         (re_search_2_stub): Check for overflow when adding the
10127         sizes of the two strings.
10128         (re_search_stub): Check for overflow when adding START
10129         to RANGE; if it occurs, substitute the extreme value.
10130
10131 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10132
10133         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
10134
10135 2005-08-31  Jim Meyering  <jim@meyering.net>
10136
10137         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
10138         a pointer-to-const.
10139         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
10140         (register_state): Likewise.
10141         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
10142         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10143         (group_nodes_into_DFAstates): Likewise.
10144
10145 2005-08-31  Jim Meyering  <jim@meyering.net>
10146
10147         * check-module: Add a FIXME comment.
10148
10149 2005-08-31  Eric Blake  <ebb9@byu.net>
10150
10151         * modules/unistd-safer (Files): Add unistd--.h.
10152         * modules/stdio-safer (Files): Add stdio--.h.
10153
10154 2005-08-31  Derek Price  <derek@ximbiot.com>
10155
10156         * lib/getdelim.c (getdelim): Return EOF on EOF.
10157         Reported by Larry Jones <lawrence.jones@ugs.com>.
10158
10159 2005-08-31  Bruno Haible  <bruno@clisp.org>
10160
10161         Avoid unnecessary diffs in the generated lib/Makefile.am.
10162         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
10163         the generated files.
10164         (func_import): Don't set cmd.
10165
10166 2005-08-31  Bruno Haible  <bruno@clisp.org>
10167
10168         * lib/strstr.c: Include <stddef.h>, for NULL.
10169         * lib/strcasestr.c: Likewise.
10170         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10171
10172 2005-08-31  Bruno Haible  <bruno@clisp.org>
10173
10174         * gnulib-tool: New option --macro-prefix.
10175         (func_import): Use macro_prefix.
10176         (import): Handle option --macro-prefix.
10177
10178 2005-08-31  Bruno Haible  <bruno@clisp.org>
10179
10180         * gnulib-tool (import): Rename most ac_* variables to cached_*.
10181         Also use new variables cached_lgpl, cached_libtool.
10182
10183 2005-08-31  Bruno Haible  <bruno@clisp.org>
10184
10185         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
10186         always instantiating them.
10187
10188 2005-08-31  Bruno Haible  <bruno@clisp.org>
10189
10190         * gnulib-tool (func_import): Read the previous cached settings
10191         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
10192         earlier added by gnulib but are now dropped. Warn when a gnulib file
10193         overwrites a non-gnulib file.
10194
10195 2005-08-31  Bruno Haible  <bruno@clisp.org>
10196
10197         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
10198         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
10199         projects that don't keep autogenerated files in CVS. Put into
10200         actioncmd only the specified modules, not the transitive closure.
10201
10202 2005-08-31  Bruno Haible  <bruno@clisp.org>
10203
10204         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
10205         Create directories that shall be filled.
10206         (import): Don't look for gl_* macros in configure.ac. Recurse across
10207         all directories containing a gnulib-cache.m4 files, if meaningful.
10208
10209 2005-08-31  Bruno Haible  <bruno@clisp.org>
10210
10211         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
10212         (import): Set seen_libtool when we see gl_LIBTOOL.
10213
10214 2005-08-31  Bruno Haible  <bruno@clisp.org>
10215
10216         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
10217         declaration macro definitions from generated gnulib.m4.
10218
10219 2005-08-30  "Oskar Liljeblad"  <oskar@osk.mine.nu>
10220
10221         * lib/iconvme.h: Add prototype for iconv_alloc.
10222
10223 2005-08-29  Simon Josefsson  <jas@extundo.com>
10224
10225         * lib/iconvme.c: Fix errno.
10226
10227 2005-08-29  Bruno Haible  <bruno@clisp.org>
10228
10229         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
10230         that it works when the directory contains spaces.
10231
10232 2005-08-29  Bruno Haible  <bruno@clisp.org>
10233
10234         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
10235
10236 2005-08-29  Bruno Haible  <bruno@clisp.org>
10237
10238         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
10239         Emit more advice.
10240
10241 2005-08-29  Bruno Haible  <bruno@clisp.org>
10242         and Stepan Kasal  <kasal@ucw.cz>
10243
10244         * check-module: If more parameters are given, check each of them
10245         separately; add more exceptions, as noted by Jim Meyering.
10246         (check_module): New procedure.
10247         (%exempt_header): Now contains all exceptions.
10248
10249 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
10250
10251         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
10252
10253 2005-08-29  "Oskar Liljeblad"  <oskar@osk.mine.nu>
10254
10255         * lib/iconvme.c: Split iconv_string into iconv_alloc.
10256
10257 2005-08-28  Bruno Haible  <bruno@clisp.org>
10258
10259         * m4/gnulib-tool.m4: New file.
10260
10261 2005-08-27  Jim Meyering  <jim@meyering.net>
10262
10263         * modules/unistd-safer (Files): Add pipe-safer.c.
10264         * modules/fcntl-safer (Files): Add creat-safer.c.
10265
10266 2005-08-27  Jim Meyering  <jim@meyering.net>
10267
10268         * m4/stdlib-safer.m4: New file.  From coreutils.
10269         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
10270         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
10271         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
10272         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
10273         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
10274
10275 2005-08-27  Jim Meyering  <jim@meyering.net>
10276
10277         * lib/fopen-safer.c: Merge minor changes from coreutils.
10278         * lib/dup-safer.c: Likewise.
10279         * lib/fd-safer.c: Likewise.
10280
10281         Merge from coreutils.
10282         * lib/stdio--.h: New file.
10283         * lib/stdlib--.h: New file.
10284         * lib/mkstemp-safer.c: New file.
10285
10286         GNU tar needs these.
10287         * lib/pipe-safer.c: New file.
10288         * lib/creat-safer.c: New file.
10289         * lib/fcntl--.h (creat): Define to creat_safer.
10290         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
10291         * lib/unistd--.h (pipe): Define to pipe_safer.
10292         * lib/unistd-safer.h: Declare pipe_safer.
10293
10294 2005-08-26  Simon Josefsson  <jas@extundo.com>
10295
10296         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
10297         Haible <bruno@clisp.org>.
10298
10299 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
10300
10301         * lib/regex_internal.h: Remove all references to
10302         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
10303         or better.
10304         (bitset_not, bitset_merge, bitset_not_merge):
10305         (bitset_mask, re_string_allocate, re_string_construct):
10306         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
10307         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
10308         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
10309         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
10310         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10311         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10312         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
10313         (re_acquire_state_context):
10314         Remove unnecessary forward decls.
10315         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
10316         Put __attribute at function definition,
10317         now that the function decl has been removed.
10318         * lib/regex_internal.c (re_string_peek_byte_case):
10319         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
10320         Likewise.
10321
10322 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
10323
10324         * m4/regex.m4: Add AC_PREREQ(2.50).
10325         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
10326
10327 2005-08-25  Simon Josefsson  <jas@extundo.com>
10328
10329         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
10330         __fsetlocking.
10331
10332 2005-08-25  Simon Josefsson  <jas@extundo.com>
10333
10334         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
10335         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
10336         GLIBC specific code.
10337
10338 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10339
10340         Make regex safe for g++.  This fixes one real bug (an "err"
10341         that should have been "*err").  g++ problem reported by
10342         Sam Steingold.
10343         * lib/regex_internal.h (re_calloc): New macro, consistent with
10344         re_malloc etc.  All callers of calloc changed to use re_calloc.
10345         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
10346         not int.  All callers changed.
10347         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
10348         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
10349         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
10350         (find_recover_state): Change "err" to "*err"; this fixes what
10351         appears to be a real bug.
10352         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
10353         versus int.
10354
10355 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10356
10357         * modules/regex (Depends-on): Add malloc, since the code
10358         assumes that !malloc(0) means failure.
10359
10360 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10361
10362         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
10363
10364         alloca modernization/simplification for regex.
10365         * lib/regex.c: Remove portability cruft for alloca.  This no longer
10366         needs to be at the start of the file, and can be moved into
10367         regex_internal.h and simplified.
10368         * lib/regex_internal.h: Include <alloca.h>.
10369         (__libc_use_alloca) [!defined _LIBC]: New macro.
10370         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
10371         now works outside glibc.
10372
10373 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10374
10375         * config/srclist.txt: Add glibc bugs 1241, 1245.
10376
10377 2005-08-25  Jim Meyering  <jim@meyering.net>
10378
10379         * lib/open-safer.c: Include <config.h>.
10380         Otherwise, we'd lose LARGEFILE support in any file using
10381         e.g. "fcntl--.h"
10382
10383 2005-08-25  Bruno Haible  <bruno@clisp.org>
10384
10385         * m4/minmax.m4: Require autoconf 2.52.
10386         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
10387         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
10388         alternatives of translit over the alphabet.
10389         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
10390
10391 2005-08-24  Simon Josefsson  <jas@extundo.com>
10392
10393         * tests/test-getpass.c: New file.
10394
10395 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10396
10397         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
10398         for GNU regex features.
10399
10400 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10401
10402         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
10403         * lib/regex.h (regerror): Likewise.
10404
10405         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
10406         requires this.  (The code never needed it.)
10407
10408         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
10409         All uses of recently-renamed identifiers changed to use the new,
10410         POSIX-compliant names.  The code will build and run just fine
10411         without these changes, but it's better to eat our own dog food
10412         and use the standard-conforming names.
10413
10414         * lib/regex.h: Fix a multitude of POSIX name space violations.
10415         These changes have an effect only for programs that define
10416         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
10417         do not change anything for programs compiled in the normal way.
10418         Also, there is no effect on the ABI.
10419
10420         (_REGEX_SOURCE): New macro.
10421         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
10422         defined and _GNU_SOURCE is not; this fixes a name space violation.
10423
10424         Rename the following macros to obey POSIX requirements.
10425         The old names are still visible as macros if _REGEX_SOURCE is defined.
10426         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
10427         RE_BACKSLASH_ESCAPE_IN_LISTS.
10428         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
10429         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
10430         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
10431         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
10432         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
10433         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
10434         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
10435         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
10436         (REG_INTERVALS): renamed from RE_INTERVALS.
10437         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
10438         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
10439         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
10440         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
10441         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
10442         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
10443         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
10444         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
10445         RE_UNMATCHED_RIGHT_PAREN_ORD.
10446         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
10447         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
10448         (REG_DEBUG): renamed from RE_DEBUG.
10449         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
10450         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
10451         unusual, since we can't clash with the POSIX REG_ICASE.
10452         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
10453         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
10454         (REG_NO_SUB): renamed from RE_NO_SUB.
10455         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
10456         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
10457         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
10458         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
10459         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
10460         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
10461         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
10462         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
10463         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
10464         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
10465         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
10466         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
10467         RE_SYNTAX_POSIX_MINIMAL_BASIC.
10468         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
10469         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
10470         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
10471         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
10472         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
10473         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
10474         (REG_FIXED): Renamed from REGS_FIXED.
10475         (REG_NREGS): Renamed from RE_NREGS.
10476
10477         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
10478         of other REG_* macros, since POSIX says the user is allowed to
10479         #undef these macros selectively.
10480
10481         (reg_errcode_t): Update comment stating what other tables need
10482         to be consistent.
10483
10484         Rename the following enum values to obey POSIX requirements.
10485         The old names are still visible as macros.
10486         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
10487         is not defined, since GNU is supposed to be a superset of POSIX as
10488         much as possible, and since we want reg_errcode_t to be a signed
10489         type for implementation consistency.
10490         (_REG_NOERROR): Renamed from REG_NOERROR.
10491         (_REG_NOMATCH): Renamed from REG_NOMATCH.
10492         (_REG_BADPAT): Renamed from REG_BADPAT.
10493         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
10494         (_REG_ECTYPE): Renamed from REG_ECTYPE.
10495         (_REG_EESCAPE): Renamed from REG_EESCAPE.
10496         (_REG_ESUBREG): Renamed from REG_ESUBREG.
10497         (_REG_EBRACK): Renamed from REG_EBRACK.
10498         (_REG_EPAREN): Renamed from REG_EPAREN.
10499         (_REG_EBRACE): Renamed from REG_EBRACE.
10500         (_REG_BADBR): Renamed from REG_BADBR.
10501         (_REG_ERANGE): Renamed from REG_ERANGE.
10502         (_REG_ESPACE): Renamed from REG_ESPACE.
10503         (_REG_BADRPT): Renamed from REG_BADRPT.
10504         (_REG_EEND): Renamed from REG_EEND.
10505         (_REG_ESIZE): Renamed from REG_ESIZE.
10506         (_REG_ERPAREN): Renamed from REG_ERPAREN.
10507         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
10508         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
10509         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
10510         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
10511
10512         (_REG_RE_NAME, _REG_RM_NAME): New macros.
10513         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
10514         changed.  But support the old name if the new one is not defined
10515         and if _REGEX_SOURCE.
10516
10517         Change the following member names in struct re_pattern_buffer.
10518         The old names are still supported if !_REGEX_SOURCE.
10519         The new names are always supported, regardless of _REGEX_SOURCE.
10520         (re_buffer): Renamed from buffer.
10521         (re_allocated): Renamed from allocated.
10522         (re_used): Renamed from used.
10523         (re_syntax): Renamed from syntax.
10524         (re_fastmap): Renamed from fastmap.
10525         (re_translate): Renamed from translate.
10526         (re_can_be_null): Renamed from can_be_null.
10527         (re_regs_allocated): Renamed from regs_allocated.
10528         (re_fastmap_accurate): Renamed from fastmap_accurate.
10529         (re_no_sub): Renamed from no_sub.
10530         (re_not_bol): Renamed from not_bol.
10531         (re_not_eol): Renamed from not_eol.
10532         (re_newline_anchor): Renamed from newline_anchor.
10533
10534         Change the following member names in struct re_registers.
10535         The old names are still supported if !_REGEX_SOURCE.
10536         The new names are always supported, regardless of _REGEX_SOURCE.
10537         (rm_num_regs): Renamed from num_regs.
10538         (rm_start): Renamed from start.
10539         (rm_end): Renamed from end.
10540
10541         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
10542         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
10543         Prepend __ to parameter names.
10544
10545         Undo yesterday's changes.
10546
10547 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
10550         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
10551         lib/regex.c.
10552
10553 2005-08-24  Jim Meyering  <jim@meyering.net>
10554
10555         Sync from coreutils.
10556         * m4/fcntl-safer.m4: New file.
10557
10558         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
10559         and object files for this module.
10560
10561 2005-08-24  Jim Meyering  <jim@meyering.net>
10562
10563         Sync from coreutils.
10564         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
10565
10566 2005-08-24  Jim Meyering  <jim@meyering.net>
10567
10568         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
10569         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
10570
10571 2005-08-24  Jim Meyering  <jim@meyering.net>
10572
10573         * modules/fcntl-safer: New module.
10574         * modules/fts (Depends-on): Add fcntl-safer.
10575         * MODULES.html.sh (File descriptor based Input/Output):
10576         Add fcntl-safer.
10577
10578 2005-08-24  Bruno Haible  <bruno@clisp.org>
10579
10580         Support for unit test modules.
10581         * modules/README: Mention tests modules.
10582         * modules/TEMPLATE-TESTS: New file.
10583         * gnulib-tool: New options --extract-tests-module, --with-tests and
10584         --tests-base (unused for the moment).
10585         (testsbase, inctests): New variables.
10586         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
10587         (func_verify_module): Exclude TEMPLATE-TESTS.
10588         (func_verify_nontests_module, func_verify_tests_module): New functions.
10589         (func_get_dependencies): Add implicit dependency for tests modules.
10590         (func_get_tests_module): New function.
10591         (func_modules_transitive_closure): When --with-tests was specified,
10592         include the unit tests as well, unless explicitly avoided.
10593         (func_emit_lib_Makefile_am): Ignore the tests modules here.
10594         (func_emit_tests_Makefile_am): New function.
10595         (func_create_testdir): When --with-tests was specified, emit a
10596         tests/ directory.
10597         * MODULES.html.sh (Future developments): Update.
10598
10599 2005-08-24  Bruno Haible  <bruno@clisp.org>
10600
10601         * modules/tls-tests: New file.
10602         * tests/test-tls.c: New file, from GNU gettext.
10603
10604 2005-08-24  Bruno Haible  <bruno@clisp.org>
10605
10606         * modules/lock-tests: New file.
10607         * tests/test-lock.c: New file, from GNU gettext.
10608
10609 2005-08-24  Bruno Haible  <bruno@clisp.org>
10610
10611         * lib/lock.h: Add multiple inclusion guard.
10612         * lib/tls.h: Add multiple inclusion guard.
10613
10614 2005-08-24  Bruno Haible  <bruno@clisp.org>
10615
10616         * gnulib-tool: Add support for the --aux-dir option to
10617         --create-testdir, --create-megatestdir, --test, --megatest.
10618         (func_create_testdir, func_create_megatestdir): Optionally emit a
10619         AC_CONFIG_AUX_DIR directive.
10620         (create-testdir, create-megatestdir, test, megatest): Provide a
10621         default value for $auxdir.
10622
10623 2005-08-24  Bruno Haible  <bruno@clisp.org>
10624
10625         * gnulib-tool (import): Use compound statement instead of subshell
10626         where possible.
10627
10628 2005-08-24  Bruno Haible  <bruno@clisp.org>
10629
10630         * gnulib-tool (import): Change --aux-dir default to "build-aux".
10631
10632 2005-08-24  Bruno Haible  <bruno@clisp.org>
10633
10634         * gnulib-tool (func_version): Update.
10635
10636 2005-08-24  Bruno Haible  <bruno@clisp.org>
10637
10638         * gnulib-tool (func_import, func_create_testdir,
10639         func_create_megatestdir): Quote all autoconf macro arguments.
10640
10641 2005-08-24  Bruno Haible  <bruno@clisp.org>
10642
10643         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
10644         option --force, because --force causes the aclocal.m4 of each
10645         subdirectory to be newer than the corresponding config.h.in.
10646
10647 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10648
10649         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
10650         All contents moved to gl_REGEX.
10651         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
10652         assume that it does.
10653
10654 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         * lib/regex.h (REG_NOSYS)
10657         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
10658         Define, since POSIX requires it as of 2001.
10659         (_REG_ENOSYS)
10660         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
10661         New private symbol, used to keep the enum signed in all cases.
10662         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
10663         Youngman in
10664         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
10665
10666         * lib/regex_internal.c (re_string_skip_chars, register_state):
10667         (calc_state_hash):
10668         Remove forward decls; no longer needed now that we use prototypes.
10669         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
10670         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
10671         (clean_state_log_if_needed): Likewise.
10672
10673 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10674
10675         * config/srclist.txt: Add glibc bugs 1231-1233.
10676
10677 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10678
10679         Fix problems reported by Sam Steingold in
10680         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
10681         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
10682         assumed that reg_errcode_t is a signed type, which is not
10683         necessarily true if _XOPEN_SOURCE is not defined.
10684         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
10685         since some compilers warn about it otherwise.
10686
10687 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10688
10689         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
10690         (init_word_char, create_initial_state, duplicate_node_closure):
10691         (fetch_token, peek_token_bracket, build_range_exp):
10692         (build_collating_symbol): Remove forward decls; no longer needed
10693         now that we use prototypes.
10694
10695         * lib/regcomp.c:
10696         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
10697         (re_compile_fastmap_iter, regcomp, regerror, regfree):
10698         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
10699         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
10700         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
10701         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
10702         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
10703         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
10704         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
10705         (build_range_exp, build_collating_symbol, parse_bracket_exp):
10706         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
10707         (build_charclass, build_charclass_op, fetch_number, create_tree):
10708         (create_token_tree, mark_opt_subexp, duplicate_tree):
10709         Use prototypes rather than old-style definitions.
10710
10711         * lib/regex_internal.c:
10712         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
10713         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
10714         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10715         (re_string_reconstruct, re_string_peek_byte_case):
10716         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
10717         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10718         (re_node_set_init_copy, re_node_set_add_intersect):
10719         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10720         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10721         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10722         (re_acquire_state, re_acquire_state_context, register_state):
10723         (create_ci_newstate, create_cd_newstate, free_state):
10724         Likewise.
10725         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
10726         re_search_2):
10727         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
10728         (re_search_internal, prune_impossible_nodes):
10729         (acquire_init_state_context, check_matching, static):
10730         (check_halt_node_context, check_halt_state_context, proceed_next_node):
10731         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
10732         (update_regs, sift_states_backward, build_sifted_states):
10733         (clean_state_log_if_needed, merge_state_array):
10734         (update_cur_sifted_state, add_epsilon_src_nodes):
10735         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
10736         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
10737         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
10738         (find_recover_state, check_subexp_matching_top, transit_state_mb):
10739         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
10740         (check_arrival, check_arrival_add_next_nodes):
10741         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10742         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
10743         (check_node_accept_bytes, check_node_accept, extend_buffers):
10744         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
10745         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
10746         (sift_ctx_init):
10747         Likewise.
10748
10749         * lib/regex_internal.h:
10750         (re_string_allocate, re_string_construct, re_string_reconstruct):
10751         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
10752         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
10753         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
10754         (re_string_context_at, re_string_peek_byte_case):
10755         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
10756         is defined, since we now use prototypes always.
10757
10758         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
10759         C89 or better.  All uses removed.
10760
10761 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10762
10763         * config/srclist.txt: Add glibc bugs 1220-1227.
10764
10765 2005-08-20  Jim Meyering  <jim@meyering.net>
10766
10767         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
10768         of unused local, dfa.
10769
10770 2005-08-20  Bruno Haible  <bruno@clisp.org>
10771
10772         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
10773
10774 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
10777         (re_node_set_insert_last, re_dfa_add_node):
10778         Rename local variables to avoid GCC shadowing warnings.
10779
10780 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10781
10782         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
10783         [defined lint]: Suppress bogus uninitialized-variable warnings.
10784
10785         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
10786         and let the caller return REG_ESPACE if out of space.  This
10787         removes an uninitialied-variable warning with GCC 4.0.1, and also
10788         avoids taking the address of a local variable.  All callers
10789         changed.
10790
10791 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
10794         $LIBCSRC/posix/regexec.c.
10795         Add glibc bug 1217 for regcomp.c.
10796
10797 2005-08-19  Jim Meyering  <jim@meyering.net>
10798
10799         * lib/regexec.c (proceed_next_node): Redo local variables to
10800         avoid GCC shadowing warnings.
10801
10802 2005-08-18  Bruno Haible  <bruno@clisp.org>
10803
10804         * lib/strstr.c (strstr): Fix return value in multibyte case.
10805         * lib/strcasestr.c (strcasestr): Likewise.
10806
10807 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
10810
10811 2005-08-17  Jim Meyering  <jim@meyering.net>
10812
10813         Make the %s format (seconds since the epoch) work for a negative
10814         number and when used with a zero-padded field width, e.g. %015s.
10815
10816         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
10817         label so that it precedes the code to set `digits'.  Otherwise,
10818         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
10819         print `00-22'.  Now, it prints `-0022', as it should.
10820
10821 2005-08-17  Bruno Haible  <bruno@clisp.org>
10822
10823         * modules/strstr (Files): Add m4/mbrtowc.m4.
10824         (Depends-on): Add mbuiter.
10825
10826 2005-08-17  Bruno Haible  <bruno@clisp.org>
10827
10828         * modules/strcasestr: New file.
10829         * MODULES.html.sh (String handling, based on ANSI C 89): Add
10830         strcasestr.
10831
10832 2005-08-17  Bruno Haible  <bruno@clisp.org>
10833
10834         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
10835
10836 2005-08-17  Bruno Haible  <bruno@clisp.org>
10837
10838         * modules/mbuiter: New file.
10839         * MODULES.html.sh (Extended multibyte and wide character utilities):
10840         Add mbuiter.
10841
10842 2005-08-17  Bruno Haible  <bruno@clisp.org>
10843
10844         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
10845         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
10846
10847 2005-08-17  Bruno Haible  <bruno@clisp.org>
10848
10849         * m4/strcasestr.m4: New file.
10850
10851 2005-08-17  Bruno Haible  <bruno@clisp.org>
10852
10853         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
10854         * lib/strstr.c: Completely rewritten, with multibyte locale support.
10855
10856 2005-08-17  Bruno Haible  <bruno@clisp.org>
10857
10858         * lib/strcasestr.h: New file.
10859         * lib/strcasestr.c: New file.
10860
10861 2005-08-17  Bruno Haible  <bruno@clisp.org>
10862
10863         * lib/strcasecmp.c: Use mbuiter.h.
10864
10865 2005-08-17  Bruno Haible  <bruno@clisp.org>
10866
10867         * lib/mbuiter.h: New file.
10868
10869 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10870
10871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
10872         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
10873         and gl_GETOPT are both invoked via different paths (as happens
10874         with GNU tar CVS because it uses both argp and getopt), the former
10875         wins.
10876
10877 2005-08-16  Bruno Haible  <bruno@clisp.org>
10878
10879         * modules/tls: New file.
10880         * MODULES.html.sh (Multithreading): Add tls.
10881
10882 2005-08-16  Bruno Haible  <bruno@clisp.org>
10883
10884         * modules/strnlen1: New file.
10885         * MODULES.html.sh (String handling): Add strnlen1.
10886
10887 2005-08-16  Bruno Haible  <bruno@clisp.org>
10888
10889         * modules/strcase (Files): Add m4/mbrtowc.m4.
10890         (Depends-on): Add strnlen1, mbchar.
10891
10892 2005-08-16  Bruno Haible  <bruno@clisp.org>
10893
10894         * modules/mbiter: New file.
10895         * MODULES.html.sh (Extended multibyte and wide character utilities):
10896         Add mbiter.
10897
10898 2005-08-16  Bruno Haible  <bruno@clisp.org>
10899
10900         * modules/mbfile: New file.
10901         * MODULES.html.sh (Extended multibyte and wide character utilities):
10902         Add mbfile.
10903
10904 2005-08-16  Bruno Haible  <bruno@clisp.org>
10905
10906         * modules/mbchar: New file.
10907         * MODULES.html.sh (Extended multibyte and wide character utilities):
10908         New section.
10909
10910 2005-08-16  Bruno Haible  <bruno@clisp.org>
10911
10912         * m4/tls.m4: New file, from GNU gettext.
10913
10914 2005-08-16  Bruno Haible  <bruno@clisp.org>
10915
10916         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
10917         always.
10918         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
10919
10920 2005-08-16  Bruno Haible  <bruno@clisp.org>
10921
10922         * m4/mbiter.m4: New file.
10923
10924 2005-08-16  Bruno Haible  <bruno@clisp.org>
10925
10926         * m4/mbfile.m4: New file.
10927
10928 2005-08-16  Bruno Haible  <bruno@clisp.org>
10929
10930         * m4/mbchar.m4: New file.
10931
10932 2005-08-16  Bruno Haible  <bruno@clisp.org>
10933
10934         * lib/tls.h: New file, from GNU gettext.
10935         * lib/tls.c: New file, from GNU gettext.
10936
10937 2005-08-16  Bruno Haible  <bruno@clisp.org>
10938
10939         * lib/strnlen1.h: New file.
10940         * lib/strnlen1.c: New file.
10941
10942 2005-08-16  Bruno Haible  <bruno@clisp.org>
10943
10944         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
10945         (mbi_init): Update.
10946         (mbi_avail, mbi_advance): Let the iteration end before the terminating
10947         NUL byte, not after it.
10948
10949 2005-08-16  Bruno Haible  <bruno@clisp.org>
10950
10951         * lib/strcase.h (strcasecmp): Add note in comments.
10952         * lib/strncasecmp.c: Use code from strcasecmp.c.
10953         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
10954         (strcasecmp): Work correctly in multibyte locales.
10955
10956 2005-08-16  Bruno Haible  <bruno@clisp.org>
10957
10958         * lib/mbiter.h: New file.
10959
10960 2005-08-16  Bruno Haible  <bruno@clisp.org>
10961
10962         * lib/mbfile.h: New file.
10963
10964 2005-08-16  Bruno Haible  <bruno@clisp.org>
10965
10966         * lib/mbchar.h: New file.
10967         * lib/mbchar.c: New file.
10968
10969 2005-08-16  Bruno Haible  <bruno@clisp.org>
10970
10971         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
10972         the valid ones. Makes the comparison operations transitive:
10973         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
10974         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
10975
10976 2005-08-15  Simon Josefsson  <jas@extundo.com>
10977
10978         * modules/ssize_t (License): Change to 'unlimited'.
10979
10980         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
10981
10982 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10983
10984         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
10985         Add comments for each pending glibc patch.
10986
10987 2005-08-15  Bruno Haible  <bruno@clisp.org>
10988
10989         * lib/regex.h (__restrict_arr): Don't define to __restrict if
10990         __cplusplus is defined.
10991
10992 2005-08-14  Jim Meyering  <jim@meyering.net>
10993
10994         Sync from coreutils.
10995
10996         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
10997         Use the hash-table-based cycle-detection code not just when
10998         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
10999         Reported by James Youngman in
11000         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
11001         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
11002         FTS_TIGHT_CYCLE_CHECK.
11003         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
11004         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
11005         once again.
11006         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
11007         * lib/fts.c (fd_safer): Remove decl.
11008         Include fcntl--.h rather than unistd-safer.h
11009         (fts_safe_changedir): Don't call fd_safer; no longer needed
11010         now that we include fcntl--.h.
11011
11012 2005-08-12  Simon Josefsson  <jas@extundo.com>
11013
11014         * modules/getndelim2: Use ssize_t module.
11015         * modules/getnline: Likewise.
11016         * modules/safe-read: Likewise.
11017         * modules/xreadlink: Likewise.
11018
11019         * modules/ssize_t: New file.
11020
11021 2005-08-12  Simon Josefsson  <jas@extundo.com>
11022
11023         * m4/readline.m4: Look for termcap, curses or ncurses if required.
11024
11025 2005-08-12  Simon Josefsson  <jas@extundo.com>
11026
11027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11028         ssize_t.
11029
11030 2005-08-12  Simon Josefsson  <jas@extundo.com>
11031
11032         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
11033         readline, getdelim and check_version.
11034         (Support for systems lacking ISO C 99: Sizes of integer types):
11035         Add size_max.
11036
11037 2005-08-12  Bruno Haible  <bruno@clisp.org>
11038
11039         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
11040
11041 2005-08-11  Simon Josefsson  <jas@extundo.com>
11042
11043         * modules/readline: New file.
11044
11045         * modules/strnlen (Files): Add strnlen.h.
11046
11047 2005-08-11  Simon Josefsson  <jas@extundo.com>
11048
11049         * m4/readline.m4: New file.
11050
11051 2005-08-11  Simon Josefsson  <jas@extundo.com>
11052
11053         * lib/readline.h, readline.c: New file.
11054
11055 2005-08-11  Simon Josefsson  <jas@extundo.com>
11056
11057         * doc/gnulib.texi (Initial import, Finishing touches): Mention
11058         gl_AVOID.
11059
11060 2005-08-11  Bruno Haible  <bruno@clisp.org>
11061
11062         * lib/strnlen.h (strnlen): Change parameter name to match comment.
11063
11064 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
11065
11066         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
11067
11068 2005-08-10  Simon Josefsson  <jas@extundo.com>
11069
11070         * tests/test-iconvme.c: New file.
11071
11072 2005-08-10  Simon Josefsson  <jas@extundo.com>
11073
11074         * m4/strnlen.m4: New file.
11075
11076         * m4/strndup.m4: Don't check for strnlen declaration, done in
11077         strnlen.m4.
11078
11079 2005-08-10  Simon Josefsson  <jas@extundo.com>
11080
11081         * lib/strndup.c: Use strnlen.h.
11082
11083         * lib/strnlen.h: New file.
11084
11085 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11086
11087         * README: Typos.
11088
11089 2005-08-02  Simon Josefsson  <jas@extundo.com>
11090
11091         * modules/readline: New file.
11092
11093 2005-08-02  Simon Josefsson  <jas@extundo.com>
11094
11095         * modules/getdelim: New file.
11096
11097         * modules/getline: Rewrite, don't use getndelim2.
11098
11099 2005-08-02  Simon Josefsson  <jas@extundo.com>
11100
11101         * m4/getline.m4: Separate out getdelim stuff into separate module.
11102
11103         * m4/getdelim.m4: New file.
11104
11105 2005-08-02  Simon Josefsson  <jas@extundo.com>
11106
11107         * lib/getline.h, getline.c: Rewrite.
11108
11109         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
11110
11111 2005-07-31  Bruno Haible  <bruno@clisp.org>
11112
11113         * lib/lock.h (gl_lock_initializer): New macro.
11114         (gl_lock_define_initialized): Use it.
11115         (gl_rwlock_initializer): New macro.
11116         (gl_rwlock_define_initialized): Use it.
11117         (gl_recursive_lock_initializer): New macro.
11118         (gl_recursive_lock_define_initialized): Use it.
11119
11120 2005-07-30  Karl Berry  <karl@gnu.org>
11121
11122         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
11123         Report from Ben Pfaff, regarding getopt.
11124
11125 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11126
11127         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
11128         normal way.
11129         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
11130         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
11131         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
11132         (gl_GETOPT): Use the new macros.  Most of the implementation
11133         is moved to the new macros.  This is for programs like Emacs
11134         that don't want all the functionality of gl_GETOPT.
11135
11136 2005-07-26  Bruno Haible  <bruno@clisp.org>
11137
11138         * m4/lock.m4: Update from GNU gettext.
11139
11140 2005-07-26  Bruno Haible  <bruno@clisp.org>
11141
11142         * lib/lock.h: Update from GNU gettext.
11143         * lib/lock.c: Update from GNU gettext.
11144
11145 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11146
11147         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
11148         obsolescent AC_TRY_RUN.  Include the default includes files, for
11149         'exit'.
11150
11151 2005-07-24  Bruno Haible  <bruno@clisp.org>
11152
11153         * modules/visibility: New file.
11154         * MODULES.html.sh (Misc): Add visibility.
11155
11156 2005-07-24  Bruno Haible  <bruno@clisp.org>
11157
11158         * m4/visibility.m4: New file.
11159
11160 2005-07-24  Bruno Haible  <bruno@clisp.org>
11161
11162         * doc/visibility.texi: New file.
11163
11164 2005-07-22  Bruno Haible  <bruno@clisp.org>
11165
11166         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
11167         $(ALLOCA_H), redundant through BUILT_SOURCES.
11168         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
11169         redundant through BUILT_SOURCES.
11170         * modules/byteswap (Makefile.am): Remove explicit dependency on
11171         $(BYTESWAP_H), redundant through BUILT_SOURCES.
11172         * modules/fnmatch (Makefile.am): Remove explicit dependency on
11173         $(FNMATCH_H), redundant through BUILT_SOURCES.
11174         * modules/getopt (Makefile.am): Remove explicit dependency on
11175         $(GETOPT_H), redundant through BUILT_SOURCES.
11176         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
11177         redundant through BUILT_SOURCES.
11178         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
11179         redundant through BUILT_SOURCES.
11180         * modules/stdbool (Makefile.am): Remove explicit dependency on
11181         $(STDBOOL_H), redundant through BUILT_SOURCES.
11182         * modules/stdint (Makefile.am): Remove explicit dependency on
11183         $(STDINT_H), redundant through BUILT_SOURCES.
11184         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
11185         Remove explicit dependency on $(SYSEXITS_H).
11186         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
11187
11188 2005-07-18  Simon Josefsson  <jas@extundo.com>
11189
11190         * lib/check-version.c (check_version): Accept identical versions too.
11191
11192 2005-07-18  Bruno Haible  <bruno@clisp.org>
11193
11194         * modules/lock: New file.
11195         * MODULES.html.sh (Multithreading): New section.
11196
11197 2005-07-18  Bruno Haible  <bruno@clisp.org>
11198
11199         * m4/lock.m4: New file, from GNU gettext.
11200
11201 2005-07-18  Bruno Haible  <bruno@clisp.org>
11202
11203         * lib/lock.h: New file, from GNU gettext.
11204         * lib/lock.c: New file, from GNU gettext.
11205
11206 2005-07-18  Bruno Haible  <bruno@clisp.org>
11207
11208         * lib/lock.h (gl_once_t): New type.
11209         (gl_once_define, gl_once): New macros.
11210         * lib/lock.c (fresh_once): New variable.
11211         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
11212         functions.
11213
11214 2005-07-16  Simon Josefsson  <jas@extundo.com>
11215
11216         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
11217         workaround, suggested by Bruno.
11218
11219 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11220
11221         * modules/xalloc (Depends-on): Add xalloc-die.
11222         * modules/xvasprintf (Depends-on): Add xalloc-die.
11223
11224 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11225
11226         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
11227         with a minor change.
11228
11229 2005-07-15  Bruno Haible  <bruno@clisp.org>
11230
11231         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
11232         When using lib/poll.c, define poll as rpl_poll.
11233
11234 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
11235
11236         * modules/argp (Depends-on): Remove unlocked-io.
11237
11238 2005-07-14  Derek Price  <derek@ximbiot.com>
11239
11240         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
11241         for glob symlink bug.
11242
11243 2005-07-14  Bruno Haible  <bruno@clisp.org>
11244
11245         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
11246         Instead, test for *_unlocked function declarations directly.
11247
11248 2005-07-11  Simon Josefsson  <jas@extundo.com>
11249
11250         * modules/size_max: New file.
11251
11252         * modules/xsize: Depend on size_max module for size_max.m4.
11253
11254 2005-07-11  Simon Josefsson  <jas@extundo.com>
11255
11256         * lib/size_max.h: New file.
11257
11258 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
11259
11260         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
11261         copyright symbol and the year.
11262         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
11263         (version_etc_va): Use parameterized copyright notice.
11264         Reword to conform to the current GNU coding standards.
11265
11266 2005-07-11  Karl Berry  <karl@gnu.org>
11267
11268         * doc/gnulib.texi (Quoting): new node.
11269         (Initial import): more info, from Patrice.
11270
11271 2005-07-11  Bruno Haible  <bruno@clisp.org>
11272
11273         * gnulib-tool (func_usage): Document option --avoid.
11274         (Command line options): Handle --avoid.
11275         (func_acceptable): New function.
11276         (func_modules_transitive_closure): Use it.
11277
11278 2005-07-11  Bruno Haible  <bruno@clisp.org>
11279
11280         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
11281         Reported by Jim Meyering.
11282
11283 2005-07-10  Bruno Haible  <bruno@clisp.org>
11284
11285         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
11286         Needed when size_t is smaller than 'unsigned int'.
11287         Reported by Paul Eggert.
11288
11289 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11290
11291         * modules/argp (Depends-on): Add unlocked-io
11292
11293 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11294
11295         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
11296         block of defines.
11297
11298 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11299
11300         * config/srclist.txt: Comment out regcomp.c, since we have a porting
11301         fix now.
11302
11303 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
11304         and Paul Eggert  <eggert@cs.ucla.edu>
11305
11306         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
11307         in wint_t, not wchar_t.  Remove now-unnecessary cast.
11308
11309 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11310
11311         * modules/regex (Files): Add lib/regex_internal.c,
11312         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
11313         (Depends-on): Add extensions.
11314         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
11315
11316 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11317
11318         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
11319         pathconf.
11320         * m4/same.m4 (gl_SAME): Likewise.
11321         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
11322
11323         * m4/regex.m4: Adjust to new libc regex implementation.
11324         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
11325         all the .c and .h parts of (the new) regex.
11326         Quote the m4 stuff better.
11327         Check for RE_ICASE bug of old gnulib.
11328         Check for REG_STARTEND of recent libc.
11329         Rename local variables from jm_* to gl_*.
11330         Quote operand of "test -f".
11331         Say "recent enough" version of libc, not "version 2".
11332         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
11333         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
11334         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
11335         Remove check for btowc, isascii.
11336         Require AM_LANGINFO_CODESET.
11337
11338 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11339
11340         * lib/regex.c, regex.h: Sync from libc.
11341         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
11342         * lib/regexec.c:
11343         New files, synced from libc, except that regex_internal.h
11344         currently has a small porting fix.
11345
11346 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11347
11348         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
11349         regex_internal.c, regexec.c.
11350         Add regex_internal.h too, but as a comment, since the libc version
11351         is currently broken in gnulib mode.
11352
11353 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11354
11355         Support programs like Emacs that use gnulib but not gettext.
11356         * MODULES.html.sh (Internationalization functions): Add gettext-h.
11357         * modules/gettext-h: New file.
11358         * modules/gettext (Files): Remove lib/gettext.h.
11359         (Depends-on): Add gettext-h.
11360         (Makefile.am): Remove lib_SOURCES.
11361         * modules/argmatch, modules/c-stack, modules/closeout:
11362         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
11363         * modules/execute, modules/file-type, modules/getaddrinfo:
11364         * modules/getopt, modules/human, modules/javacomp:
11365         * modules/javaexec, modules/mkdir-p, modules/obstack:
11366         * modules/openat, modules/pagealign_alloc, modules/pipe:
11367         * modules/quotearg, modules/regex, modules/rpmatch:
11368         * modules/unicodeio, modules/userspec, modules/version-etc:
11369         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
11370         * modules/xsetenv:
11371         Depend on gettext-h, not gettext.
11372
11373 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11374
11375         * gnulib-tool (func_import): Add support for 'public domain' license.
11376         * modules/alloca, modules/atexit, modules/memmove:
11377         Now public domain, not GPL.
11378         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
11379         * modules/realloc, modules/strerror, modules/strtod:
11380         Now LGPL, not GPL.
11381
11382 2005-07-05  Bruno Haible  <bruno@clisp.org>
11383
11384         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
11385         autoconf CVS. Needed for mingw.
11386
11387 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11388
11389         Remove the dependency of the strftime module on the tzset module.
11390         * modules/strftime (Depends-on): Remove dependency on tzset.
11391
11392 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11393
11394         Remove the dependency of the strftime module on the tzset module.
11395         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
11396         gl_FUNC_TZSET_CLOBBER.
11397
11398 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11399
11400         Remove the dependency of the strftime module on the tzset module.
11401         * lib/strftime.c (my_strftime)
11402         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
11403         Copy the input structure, to work around some of the bug with
11404         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
11405         Solaris releases, you should also use the tzset module, but we won't
11406         require it as a dependency any more since we don't want LGPLed code
11407         to depend on GPLed code.
11408
11409 2005-07-02  Jim Meyering  <jim@meyering.net>
11410
11411         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
11412         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
11413         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
11414         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
11415
11416 2005-07-02  Jim Meyering  <jim@meyering.net>
11417
11418         * lib/backupfile.c (backup_args): Change a `0' to NULL.
11419
11420 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
11423         declares only 'struct timespec;' (!).
11424
11425 2005-07-01  Jim Meyering  <jim@meyering.net>
11426
11427         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
11428         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
11429         * lib/save-cwd.c, tempname.c:
11430         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11431         and don't include <sys/file.h>).
11432
11433 2005-06-29  Jim Meyering  <jim@meyering.net>
11434
11435         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
11436         type name.  Use the variable name instead.
11437         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11438         Likewise.
11439
11440 2005-06-28  Simon Josefsson  <jas@extundo.com>
11441
11442         * modules/check-version (Files): Add check-version.m4.
11443
11444 2005-06-28  Simon Josefsson  <jas@extundo.com>
11445
11446         * m4/check-version.m4: New file, suggested by Jim Meyering
11447         <jim@meyering.net>.
11448
11449 2005-06-28  Simon Josefsson  <jas@extundo.com>
11450
11451         * lib/check-version.h, lib/check-version.c: New files.
11452
11453 2005-06-28  Simon Josefsson  <jas@extundo.com>
11454
11455         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
11456         collision with global variable.  Better indentation.  Don't
11457         increment buffer pointer beyond buffer end.  Based on comments
11458         from Paul Eggert <eggert@cs.ucla.edu>.
11459
11460         * lib/base64.h: Indent.
11461
11462 2005-06-28  Simon Josefsson  <jas@extundo.com>
11463
11464         * doc/gnulib.texi (Library version handling): New section.
11465
11466 2005-06-28  Jim Meyering  <jim@meyering.net>
11467
11468         * check-module (find_included_lib_files): Hard-code another
11469         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
11470         but modules/fts-lgpl (correctly) does not list those files.
11471
11472         * modules/canonicalize (Files): Add lib/pathmax.h.
11473
11474 2005-06-25  Simon Josefsson  <jas@extundo.com>
11475
11476         * modules/check-version: New file.
11477
11478 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
11481         initializer of struct addrinfo, as an indication that we don't
11482         care how many members the structure has.
11483
11484 2005-06-24  Derek Price  <derek@ximbiot.com>
11485         and Bruno Haible  <bruno@clisp.org>
11486
11487         Remove stat module & update lstat.
11488         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
11489         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11490         * m4/stat.m4: Remove this file.
11491
11492 2005-06-24  Derek Price  <derek@ximbiot.com>
11493         and Bruno Haible  <bruno@clisp.org>
11494
11495         Remove stat module & update lstat.
11496         * lib/stat.c: Remove this file...
11497         (slash_aware_lstat): ...moving this content and its support...
11498         * lib/lstat.c (rpl_lstat): ...into here.
11499         * lib/lstat.h: New file.
11500
11501 2005-06-24  Derek Price  <derek@ximbiot.com>
11502         and Bruno Haible  <bruno@clisp.org>
11503
11504         Remove stat module & update lstat.
11505         * config/srclist.txt (libc sources): Remove stat.
11506
11507 2005-06-24  Derek Price  <derek@ximbiot.com>
11508         and Bruno Haible  <bruno@clisp.org>
11509
11510         Remove stat module & update lstat.
11511         * MODULES.html.sh (stat): Remove.
11512         * MODULES.html: Regenerated.
11513         * modules/lstat (Description): Correct function name.
11514         (Files): Add "lstat.h".
11515         (Depends-on): Remove stat, add xalloc, stat-macros.
11516         * modules/stat: Remove this file.
11517         (Include): Add "lstat.h", remove <sys/stat.h>.
11518
11519 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11520
11521         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
11522         (ranged_convert): Don't save conversion in a temporary struct.
11523         This causes a warning with GCC 4.0.0, and anyway in the typical
11524         case it's not worth the extra 100 bytes or so of code.
11525         (ranged_convert, __mktime_internal): When calling a function via a
11526         pointer P, use P () rather than (*P) (), as we now assume C89 or
11527         better.
11528
11529 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
11530
11531         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
11532         "who -r" failed to give output.  Problem reported by Tim Waugh.
11533
11534         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
11535         (xcalloc): Use it to avoid needless tests.
11536         Problem reported by Jim Meyering.
11537
11538 2005-06-20  Derek Price  <derek@ximbiot.com>
11539
11540         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
11541         unnecessary for Autoconfs > 2.59c.
11542
11543 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11544
11545         * lib/argp.h (__option_is_short): Check upper limit of
11546         __key. Isprint() requires its argument to have the value
11547         of an unsigned char or EOF.
11548
11549 2005-06-16  Jim Meyering  <jim@meyering.net>
11550
11551         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
11552         when either N or S is zero.
11553
11554 2005-06-16  Derek Price  <derek@ximbiot.com>
11555
11556         * m4/bison.m4: Declare YACC & YFLAGS precious.
11557
11558 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
11559
11560         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
11561         multibyte string or pattern, fall back on unibyte matching.
11562         Problem reported by James Youngman.
11563
11564 2005-06-08  Bruno Haible  <bruno@clisp.org>
11565
11566         * modules/csharpcomp: New file.
11567         * MODULES.html.sh (C#): Add csharpcomp.
11568
11569 2005-06-08  Bruno Haible  <bruno@clisp.org>
11570
11571         * m4/csharpcomp.m4: New file, from GNU gettext.
11572
11573 2005-06-08  Bruno Haible  <bruno@clisp.org>
11574
11575         * lib/csharpcomp.h: New file, from GNU gettext.
11576         * lib/csharpcomp.c: New file, from GNU gettext.
11577         * lib/csharpcomp.sh.in: New file, from GNU gettext.
11578
11579 2005-06-08  Bruno Haible  <bruno@clisp.org>
11580
11581         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
11582         warning on mingw.
11583
11584 2005-06-07  Derek Price  <derek@ximbiot.com>
11585
11586         Sync from CVS.
11587         * lib/glob_.h: Indent nested #ifdef.
11588
11589 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11590
11591         Sync from coreutils.
11592         Use "file name" when talking about file names, instead of "filename"
11593         or "path", as per the GNU coding standards.
11594         * lib/mkdir-p.c: Renamed from makepath.c.
11595         (make_dir_parents): Renamed from make_path.  All callers changed.
11596         * lib/mkdir-p.h: Likewise.  All includers changed.
11597         * lib/filenamecat.c: Renamed from path-concat.c.
11598         (file_name_concat): Renamed from path_concat.  All callers changed.
11599         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
11600         * lib/filenamecat.h: Likewise.  All includers changed.
11601         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
11602         in comments or local variable names.
11603         * lib/basename.c: Likewise.
11604         * lib/canonicalize.c, canonicalize.h: Likewise.
11605         * lib/dirname.c, dirname.h: Likewise.
11606         * lib/euidaccess.c: Likewise.
11607         * lib/exclude.c: Likewise
11608         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
11609         * lib/fsusage.c, fsuage.h: Likewise.
11610         * lib/fts.c, fts_.h: Likewise.
11611         * lib/getcwd.c: Likewise.
11612         * lib/getloadavg.c: Likewise.
11613         * lib/mkstemp.c: Likewise.
11614         * lib/mountlist.c, mountlist.h: Likewise.
11615         * lib/openat.c, openat.h: Likewise.
11616         * lib/readlink-stub.c: Likewise.
11617         * lib/readutmp.c, readutmp.h: Likewise.
11618         * lib/rename.c: Likewise.
11619         * lib/rmdir.c: Likewise.
11620         * lib/same.c: Likewise.
11621         * lib/savedir.c: Likewise.
11622         * lib/stripslash.c: Likewise.
11623         * lib/tempname.c: Likewise.
11624         * lib/xreadlink.c: Likewise.
11625         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
11626         All uses changed.
11627         * lib/exclude.h: Likewise.
11628
11629         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
11630         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11631         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
11632         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11633         * lib/pathmax.h: Include <limits.h> unconditionally, since other
11634         files have been getting away with it for years (MORE/BSD 4.3
11635         is extinct now).
11636         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
11637         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11638
11639         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
11640         Define to 256, not 255, as per modern POSIX.
11641
11642 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         Sync from coreutils.
11645         Use "file name" when talking about file names, instead of "filename"
11646         or "path", as per the GNU coding standards.
11647         * MODULES.html.sh: mkdir-p renamed from makepath.
11648         filenamecat renamed from path-concat.
11649         * modules/filenamecat: Renamed from modules/path-concat.
11650         (Files): filenamecat.h and filenamecat.c renamed from
11651         path-concat.h and path-concat.c.
11652         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
11653         (Include): filenamecat.h, not path-concat.h.
11654         * modules/mkdir-p: Renamed from modules/makepath.
11655         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
11656         makepath.c.
11657         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
11658         (Include): mkdir-p.h, not makepath.h.
11659
11660 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11661
11662         Sync from coreutils.
11663         * m4/mkdir-p.m4: Renamed from makepath.m4.
11664         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
11665         Rename files from makepath.c to mkdir-p.c, and from
11666         makepath.h to mkdir-p.h.
11667         * m4/filenamecat.m4: Renamed from path-concat.m4.
11668         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
11669         Rename files from path-concat.c to filenamecat.c,
11670         and from path-concat.h to filenamecat.h.
11671         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
11672         "file name" in local variables or comments.
11673         * m4/rename.m4: Likewise.
11674
11675 2005-06-01  Bruno Haible  <bruno@clisp.org>
11676
11677         * modules/csharpexec: New file.
11678         * MODULES.html.sh (C#): New section.
11679
11680 2005-06-01  Bruno Haible  <bruno@clisp.org>
11681
11682         * m4/csharp.m4: New file, from GNU gettext.
11683         * m4/csharpexec.m4: New file, from GNU gettext.
11684
11685 2005-06-01  Bruno Haible  <bruno@clisp.org>
11686
11687         * lib/csharpexec.h: New file, from GNU gettext.
11688         * lib/csharpexec.c: New file, from GNU gettext.
11689         * lib/csharpexec.sh.in: New file, from GNU gettext.
11690
11691 2005-05-31  Derek Price  <derek@ximbiot.com>
11692             Paul Eggert  <eggert@cs.ucla.edu>
11693
11694         Sync from cvs.
11695         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
11696
11697 2005-05-31  Derek Price  <derek@ximbiot.com>
11698             Paul Eggert  <eggert@cs.ucla.edu>
11699
11700         Sync from cvs.
11701         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
11702
11703 2005-05-29  Derek Price  <derek@ximbiot.com>
11704
11705         * config/srclist.txt (glob_.h, glob.c): Add these files.
11706
11707 2005-05-29  Derek Price  <derek@ximbiot.com>
11708
11709         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
11710         * modules/glob: New file.
11711         * modules/getlogin_r: Add link to POSIX spec in description.
11712
11713 2005-05-29  Derek Price  <derek@ximbiot.com>
11714             Paul Eggert  <eggert@cs.ucla.edu>
11715
11716         * m4/glob.m4: New file.
11717
11718 2005-05-29  Derek Price  <derek@ximbiot.com>
11719             Paul Eggert  <eggert@cs.ucla.edu>
11720
11721         * lib/glob_.h, lib/glob.c: New files.
11722
11723 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11724
11725         * modules/fts (Files): Remove m4/inttypes-pri.m4.
11726         * modules/fts-lgpl (Depends-on): Remove gettext.
11727
11728 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11729
11730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
11731         and don't require gt_INTTYPES_PRI.
11732
11733 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
11736
11737         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
11738         the configuration hassle isn't worth it.
11739         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
11740         (LONGEST_MODIFIER, PRIuMAX): Remove.
11741
11742 2005-05-27  Bruno Haible  <bruno@clisp.org>
11743
11744         * lib/getlogin_r.h: Remove second include of <stddef.h>.
11745
11746 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
11747
11748         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
11749         _POSIX_PTHREAD_SEMANTICS for Solaris.
11750
11751 2005-05-25  Derek Price  <derek@ximbiot.com>
11752
11753         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
11754
11755 2005-05-25  Derek Price  <derek@ximbiot.com>
11756             Paul Eggert  <eggert@cs.ucla.edu>
11757
11758         * modules/getlogin_r, m4/getlogin_r.m4: New files.
11759         * lib/getlogin_r.c, getlogin_r.h: New files.
11760
11761 2005-05-25  Bruno Haible  <bruno@clisp.org>
11762             Derek Price  <derek@ximbiot.com>
11763
11764         * lib/getlogin_r.h: Simplify API documentation.
11765
11766 2005-05-23  Derek Price  <derek@ximbiot.com>
11767
11768         * modules/minmax (Files): Add m4/minmax.m4.
11769         (configure.ac): Add gl_MINMAX.
11770
11771 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11772
11773         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
11774         so that unistd-safer.h (GPL'ed code) need not be included.
11775
11776 2005-05-22  Bruno Haible  <bruno@clisp.org>
11777
11778         * m4/minmax.m4: New file.
11779         Based on a patch by Derek Price <derek@ximbiot.com>.
11780
11781 2005-05-22  Bruno Haible  <bruno@clisp.org>
11782
11783         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
11784         (INT64_MIN): Fix definition.
11785         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11786
11787         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
11788         NEED_SIGNED_INT_TYPES.
11789
11790         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
11791         HAVE_SYSTEM_INTTYPES.
11792
11793 2005-05-22  Bruno Haible  <bruno@clisp.org>
11794
11795         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
11796         Also include <sys/param.h> if it defines MIN, MAX.
11797         Based on a patch by Derek Price <derek@ximbiot.com>.
11798
11799 2005-05-21  Jim Meyering  <jim@meyering.net>
11800
11801         * modules/fts (Files): Add m4/inttypes-pri.m4.
11802         (Depends-on): Add lstat and remove gettext.  Alphabetize.
11803
11804 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11805
11806         New fts module.
11807         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
11808         (setup_dir, free_dir): New functions.
11809         (enter_dir, leave_dir): Define trivial
11810         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
11811         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
11812         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
11813         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
11814         Move to fts-cycle.c.
11815         (fts_open): Use setup_dir.
11816         (fts_close): Use free_dir.
11817         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
11818         This adds a label and some gotos, but the alternatives were messier.
11819         Check for memory allocation failure when entering a dir.
11820         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
11821         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
11822         (FTS): New member fts_cycle, that is a union that contains the
11823         old active_dir_ht and cycle_state.  All uses changed to mention
11824         fts_cycle.ht and fts_cycle.state.
11825         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
11826         fts.c, with the following changes:
11827         (setup_dir, free_dir): New functions.
11828         (enter_dir): Now returns bool.  Return true if successful, false
11829         if memory exhausted.  All callers changed.
11830         Do not bother partly cleaning up on
11831         memory allocation failure; that is free_dir's job.
11832         However, free ad if hash_insert fails, to avoid memory leak.
11833         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
11834         fts->fts_options to see which union member to use.
11835
11836 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11837
11838         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
11839         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
11840
11841 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11842
11843         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
11844
11845 2005-05-20  Jim Meyering  <jim@meyering.net>
11846
11847         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
11848         Now a macro, to pacify GCC.
11849
11850 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
11851
11852         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
11853         of -1.
11854
11855 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
11856
11857         * lib/chown.c (rpl_chown): Return -1 on failure.
11858
11859 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
11862         Don't check for stddef.h.
11863         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
11864         don't use its results.
11865         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
11866         since we include them unconditionally.  Don't require
11867         AM_STDBOOL_H, since stdbool is a prerequisite.
11868         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
11869         since we assume C89 or better.
11870         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
11871         as we don't use their results.
11872         Don't check for fchdir, memmove, memset, strrchr, as we use
11873         them unconditionally.
11874         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
11875         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
11876
11877 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11878
11879         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
11880         Include <stddef.h> unconditionally, since we assume C89 now.
11881         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
11882         * lib/fts.c: Include fts_.h first, to check interface.
11883         Do not include intprops.h; no longer needed.
11884         Include cycle-check.h and hash.h, since fts_.h no longer does.
11885         Remove unnecessary casts of closedir to void.
11886         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
11887         decide whether to decrement nlinks.
11888         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
11889         (FTS): Use struct hash_table * instead of Hash_table, so that
11890         we no longer need to include hash.h here.
11891
11892 2005-05-18  Jim Meyering  <jim@meyering.net>
11893
11894         * modules/dirfd (License): Change to LGPL.  Most of the code
11895         is already in the public domain.
11896
11897 2005-05-18  Jim Meyering  <jim@meyering.net>
11898
11899         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
11900         Reported by Yoann Vandoorselaere.
11901
11902 2005-05-17  Jim Meyering  <jim@meyering.net>
11903
11904         * m4/fts.m4: New file, from coreutils.
11905
11906 2005-05-17  Jim Meyering  <jim@meyering.net>
11907
11908         * lib/fts.c, lib/fts_.h: New files, from coreutils.
11909
11910 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11911
11912         Sync from coreutils.
11913         * m4/unlinkdir.m4: New file.
11914
11915 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11916
11917         Sync from coreutils.
11918         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
11919         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
11920         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
11921         White space changes only.
11922         * lib/makepath.c (make_path): Port to hosts where leading "//" is
11923         special.
11924         * lib/yesno.c: Include getline.h, not ctype.h.
11925         (yesno): Don't remove leading white space; POSIX doesn't allow it.
11926         Use getline to remove arbitrary restriction on response length.
11927
11928 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11929
11930         * config/srclist-update: Spell out "Street" in FSF postal
11931         mail address; this is the style the FSF seems to prefer.
11932
11933         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
11934         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
11935         this updates FSF postal mail address.
11936
11937         Sync from coreutils.
11938         * modules/unlinkdir: New file.
11939         * modules/yesno (Depends-on): Add getline.
11940         * MODULES.html.sh (File system functions): Add unlinkdir.
11941
11942 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11943
11944         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
11945         lib/strsep.h:
11946         Change the initial comment to refer to GPL, not LGPL.
11947         gnulib-tool will change it to LGPL as needed.
11948
11949         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
11950         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
11951         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
11952         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
11953         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
11954         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
11955         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
11956         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
11957         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
11958         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
11959         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
11960         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
11961         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
11962         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
11963         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
11964         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
11965         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
11966         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
11967         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
11968         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
11969         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
11970         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
11971         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
11972         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
11973         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
11974         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
11975         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
11976         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
11977         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
11978         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
11979         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
11980         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
11981         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
11982         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
11983         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
11984         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
11985         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
11986         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
11987         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
11988         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
11989         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
11990         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
11991         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
11992         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
11993         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
11994         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
11995         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
11996         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
11997         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
11998         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
11999         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
12000         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
12001         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
12002         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
12003         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
12004         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
12005         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
12006         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
12007         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
12008         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
12009         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
12010         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
12011         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
12012         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
12013         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
12014         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
12015         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
12016         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
12017         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
12018         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
12019         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
12020         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
12021         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
12022         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
12023         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
12024         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
12025         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
12026         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
12027         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
12028         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
12029         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
12030         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
12031         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
12032         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
12033         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
12034         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
12035         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
12036         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
12037         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
12038         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
12039         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
12040         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
12041         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
12042         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
12043         lib/yesno.c, lib/yesno.h:
12044         Update FSF postal mail address.
12045
12046 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
12049         tests/test-memmem.c, tests/test-stpncpy.c:
12050         Update FSF postal mail address.
12051
12052 2005-05-13  Bruno Haible  <bruno@clisp.org>
12053
12054         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
12055         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
12056         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
12057         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
12058         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
12059         Add support for 64-bit integers in the MSVC compiler.
12060
12061 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12062
12063         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
12064
12065 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
12066
12067         * gnulib-tool (func_import): Sort and uniquify recommended includes.
12068
12069 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12070
12071         * doc/getdate.texi (General date syntax): Don't say that date
12072         date --iso-8601=ns generates acceptable dates; it doesn't yet.
12073         Problem reported by Nic Ferrier.
12074
12075 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12076
12077         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
12078         specified in ai_socktype. Fix invalid ai_protocol
12079         check. ai_protocol is usually set to 0 or depending on
12080         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
12081         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
12082         ai_socktype / ai_protocol in the returned addrinfo structure.
12083
12084 2005-05-10  Simon Josefsson  <jas@extundo.com>
12085
12086         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
12087         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12088
12089 2005-05-10  Karl Berry  <karl@gnu.org>
12090
12091         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
12092         (from http://www.gnu.org/licenses).
12093         * doc/COPYING.LIB: also rename to COPYING.LESSER.
12094         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
12095         fdl.texi suffices.
12096
12097 2005-05-10  Karl Berry  <karl@gnu.org>
12098
12099         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
12100         (COPYING.DOC): remove.
12101
12102         * config/srclist-update: new FSF address.
12103
12104 2005-05-10  Derek Price  <derek@ximbiot.com>
12105
12106         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
12107         possible.
12108
12109 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12110             Bruno Haible  <bruno@clisp.org>
12111
12112         * modules/inet_ntop: New file.
12113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12114         inet_ntop.
12115
12116 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12117             Bruno Haible  <bruno@clisp.org>
12118
12119         * m4/inet_ntop.m4: New file.
12120
12121 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12122             Bruno Haible  <bruno@clisp.org>
12123
12124         * lib/inet_ntop.h: New file.
12125         * lib/inet_ntop.c: New file, from glibc with modifications.
12126
12127 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
12128
12129         * modules/time_r (License): Change to LGPL.
12130         * modules/extensions (License): Change to LGPL.  Actually,
12131         the license is more permissive than that, but currently gnulib-tool
12132         doesn't know how to handle more-permissive licenses.
12133
12134         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
12135         Problem reported by Dave Love.
12136
12137 2005-05-08  Jim Meyering  <jim@meyering.net>
12138
12139         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
12140         blank.
12141
12142 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
12143
12144         * modules/argmatch (Depends-on): Add stdbool.
12145         * modules/backupfile (Depends-on): Likewise.
12146         * modules/chdir-long (Depends-on): Likewise.
12147         * modules/closeout (Depends-on): Likewise.
12148         * modules/cycle-check (Depends-on): Likewise.
12149         * modules/dirname (Depends-on): Likewise.
12150         * modules/fnmatch (Depends-on): Likewise.
12151         * modules/fsusage (Depends-on): Likewise.
12152         * modules/fwriteerror (Depends-on): Likewise.
12153         * modules/getcwd (Depends-on): Likewise.
12154         * modules/getloadavg (Depends-on): Likewise.
12155         * modules/hard-locale (Depends-on): Likewise.
12156         * modules/makepath (Depends-on): Likewise.
12157         * modules/mountlist (Depends-on): Likewise.
12158         * modules/nanosleep (Depends-on): Likewise.
12159         * modules/posixtm (Depends-on): Likewise.
12160         * modules/quotearg (Depends-on): Likewise.
12161         * modules/readtokens (Depends-on): Likewise.
12162         * modules/readtokens0 (Depends-on): Likewise.
12163         * modules/readutmp (Depends-on): Likewise.
12164         * modules/save-cwd (Depends-on): Likewise.
12165         * modules/strftime (Depends-on): Likewise.
12166         * modules/userspec (Depends-on): Likewise.
12167         * modules/utimecmp (Depends-on): Likewise.
12168         * modules/xgetcwd (Depends-on): Likewise.
12169         * modules/xnanosleep (Depends-on): Likewise.
12170         * modules/xstrtod (Depends-on): Likewise.
12171         * modules/yesno (Depends-on): Likewise.
12172
12173 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12174
12175         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
12176         needless checks.
12177
12178 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12179
12180         Merge from coreutils.  Among other things,
12181         add bulletproofing for cases where stdin, stdout, or stderr are closed.
12182         * lib/fd-safer.c: New file.
12183         * lib/fcntl-safer.h, open-safer.c: Remove.
12184         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
12185         * lib/dup-safer.c: Include unistd-safer.h first.
12186         Don't include errno.h.
12187         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
12188         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
12189         * lib/file-type.c: Rely on file-type.h change.
12190         * lib/getloadavg.c: Include unistd-safer.h.
12191         (getloadavg): Use safer open.
12192         * lib/getusershell.c: Include "stdio-safer.h".
12193         (getusershell): Use safer fopen.
12194         * lib/long-options.c (long_options): Use NULL rather than 0.
12195         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
12196         'free'.
12197         * lib/modechange.c: Likewise.
12198         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
12199         (MODE_DONE): New constant.
12200         (struct mode_change): Remove 'next' member.
12201         (make_node_op_equals): New function; like the old one of the
12202         same name, except it allocates an array.
12203         (mode_compile, mode_create_from_ref): Use it.
12204         (mode_compile): Allocate result as an array, not a linked list.
12205         Parse octal string ourself, so that we catch mistakes like "+0".
12206         (mode_adjust): Arg is an array, not a linked list.
12207         * lib/modechange.c: Include stat-macros.h, xalloc.h.
12208         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
12209         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
12210         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
12211         Remove.  This is now stat-macros.h's job.
12212         (talloc): Remove.  All callers replaced by xalloc, so that
12213         our invokers don't have to worry about reporting memory failures.
12214         (make_node_op_equals): Remove.
12215         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12216         New constants.
12217         (struct mode_change): Moved here from modechange.h.
12218         (mode_append_entry): Remove.
12219         (mode_compile): Remove MASKED_OPS arg, since it encouraged
12220         apps to have incorrect behavior.  Use simpler algorithm for head
12221         and tail.  Don't futz with umask; that's now the job of mode_adjust.
12222         Detect more invalid usages rather than having somewhat-random behavior.
12223         Don't insert an "a=" action, as that leads to incorrect behavior.
12224         (mode_compile, mode_create_from_ref): Return NULL on error instead
12225         of an enum, since now there's only one way to have an error.  All
12226         callers changed.
12227         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
12228         at the correct time.  Simplify calculation of "+u" and its ilk.
12229         Don't mishandle "+X".
12230         (mode_free): Remove "register" and localize decls.
12231         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12232         (struct mode_change): Move to modechange.c; callers don't
12233         need to see this stuff.
12234         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
12235         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
12236         (mode_change, mode_adjust): Reflect the new signatures noted above.
12237         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
12238         that might redefine system include files.
12239         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
12240         (my_usleep): Use NULL rather than (void *) 0.
12241         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
12242         Use siginterrupt to specify that system calls should be interrupted.
12243         (rpl_nanosleep): Move initialization of suspended closer to call of
12244         my_usleep.
12245         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
12246         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
12247         (desirable_utmp_entry): New function.
12248         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
12249         using x2nrealloc, to simplify logic.
12250         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
12251         size calculation.  Do not assume utmp file is a regular file.
12252         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
12253         (READ_UTMP_CHECK_PIDS): New constant.
12254         * lib/save-cwd.c: Include unistd-safer.h.
12255         (save_cwd): Use fd_safer.
12256         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
12257         [!_LIBC] Include "stat-macros.h" instead.
12258         * lib/unistd-safer.h (fd_safer): New decl.
12259
12260 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12261
12262         * modules/getloadavg (Depends-on): Add unistd-safer.
12263         * modules/getusershell (Depends-on): Add stdio-safer.
12264         * modules/lstat (Depends-on): Remove xalloc.
12265         * modules/mkstemp (Depends-on): Add stat-macros.
12266         * modules/modechange (Depends-on): Remove xstrtol.
12267         Add stat-macros, xalloc.
12268         * modules/save-cwd (Depends-on): Add unistd-safer.
12269         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
12270         * modules/unistd-safer (Files): Add lib/fd-safer.c
12271         (Makefile.am): Remove lib_SOURCES.
12272
12273         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
12274         Remove fcntl-safer; unistd-safer supersedes it.
12275
12276 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12277
12278         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
12279         AC_HEADER_STAT.
12280         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
12281         (gl_PREREQ_CHOWN): Remove.
12282         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
12283         it.  Don't require AC_HEADER_STAT.
12284         (gl_PREREQ_LSTAT): Remove.
12285         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
12286         Don't require AC_HEADER_STAT.
12287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
12288         (gl_PREREQ_RMDIR): Remove.
12289         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
12290         mention stat-macros.h or AC_HEADER_STAT, since we'll make
12291         the stat-macros module a prerequisite.
12292         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
12293         * m4/filemode.m4 (gl_FILEMODE): Likewise.
12294         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
12295         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
12296         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
12297         variable names.
12298         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
12299         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
12300         variable prefixes.
12301         * m4/fcntl-safer.m4: Remove.
12302         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
12303         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
12304         Invoke gl_PREREQ_FD_SAFER.
12305         (gl_PREREQ_FD_SAFER): New macro.
12306         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
12307         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
12308         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
12309         Remove duplicate call to AC_LIBOBJ(readutmp).
12310         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
12311
12312         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
12313         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
12314
12315 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12316
12317         * MODULES.html.sh (Misc): Add byteswap.
12318
12319 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12320
12321         * modules/getcwd (Depends-on): Add extensions.
12322         * modules/openat (Depends-on): Likewise.
12323
12324 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12325
12326         * modules/byteswap: New file.
12327
12328 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12329
12330         * m4/byteswap.m4: New file.
12331
12332 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12333
12334         * lib/byteswap_.h: New file.
12335
12336 2005-04-25  Karl Berry  <karl@gnu.org>
12337
12338         * m4/gettext.m4: Update from GNU gettext 0.14.4.
12339
12340 2005-04-25  Albert Chin  <china@thewrittenword.com>
12341
12342         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
12343         Toolkit C bug.
12344
12345 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
12346
12347         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
12348         (func_ln_if_changed) Remove forcibly for no error message
12349         in case file does not exist.
12350
12351 2005-04-19  Simon Josefsson  <jas@extundo.com>
12352
12353         * gnulib-tool (Options): Make --symlink mean --symbolic.
12354
12355 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
12356
12357         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
12358
12359 2005-04-16  Simon Josefsson  <jas@extundo.com>
12360
12361         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
12362
12363 2005-04-15  Simon Josefsson  <jas@extundo.com>
12364
12365         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
12366
12367 2005-04-15  Simon Josefsson  <jas@extundo.com>
12368
12369         * gnulib-tool: Rename --symlink to --symbolic.
12370
12371 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
12372
12373         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
12374         symbolic links to files instead of copying/moving.  Add --aux-dir,
12375         specifying directory relative --dir where auxiliary build tools
12376         are placed.
12377
12378 2005-04-14  Bruno Haible  <bruno@clisp.org>
12379
12380         * modules/allocsa (License): Change to LGPL.
12381         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12382
12383 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
12386         that "UTC +1 second" continues to work.  Problem reported
12387         by Dmitry V. Levin.
12388         (relunit_snumber): New rule.
12389         (relunit): Use it.
12390
12391 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
12392
12393         * lib/getdate.y (universal_time_zone_table): New constant.
12394         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
12395         universal_time_zone_table.
12396         (lookup_zone): Prefer universal_time_zone_table to
12397         local_time_zone_table, so that "GMT" time stamps are allowed in
12398         London during the summer.  Problem reported by Ian Abbott.
12399
12400 2005-04-12  Jim Meyering  <jim@meyering.net>
12401
12402         * lib/human.c (humblock): Set *options even when returning due to
12403         xstrtoumax conversion failure.  Thanks to a used-uninitialized
12404         warning from gcc-4.
12405
12406 2005-04-09  Jim Meyering  <jim@meyering.net>
12407
12408         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
12409         -Wuninitialized: initialize tm0.tm_year.
12410
12411 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
12414         count, since there's no maximum.  All uses changed.
12415         Add member dsts_seen.
12416         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
12417         not being INT_MAX.
12418         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
12419         Use pc_rels_seen to decide whther a date is absolute.
12420
12421         * lib/getdate.y (number): Don't overwrite year.
12422         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
12423         check.
12424
12425 2005-04-02  Simon Josefsson  <jas@extundo.com>
12426
12427         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
12428         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
12429
12430 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
12431
12432         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
12433         where no absolute path name can be longer than PATH_MAX.
12434
12435 2005-03-27  Jim Meyering  <jim@meyering.net>
12436
12437         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
12438
12439 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
12442         "one's complement" -> "ones' complement" in comment, as per Knuth.
12443         "value of type" -> "type or expression" in comment.
12444         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
12445
12446 2005-03-26  Jim Meyering  <jim@meyering.net>
12447
12448         Comment nits.
12449         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
12450         Correct typos: s/or/of/.
12451
12452 2005-03-26  Jim Meyering  <jim@meyering.net>
12453
12454         * modules/check-include-files: Move to ../ and rename to...
12455         * check-module: ...this.
12456
12457 2005-03-25  Jim Meyering  <jim@meyering.net>
12458
12459         * modules/xvasprintf (Files): Add xalloc.h.
12460
12461 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12462
12463         * modules/gettext (Files): config/config.rpath ->
12464         build-aux/config.rpath
12465         * modules/iconv (Files): Likewise.
12466         Problem reported by Oskar Liljeblad.
12467
12468 2005-03-23  Jim Meyering  <jim@meyering.net>
12469
12470         * modules/check-include-files: New script to check for
12471         missing dependencies, multiple includes, etc.
12472
12473         * modules/c-strtold (Depends-on): Add xalloc.
12474         * modules/c-strtod (Depends-on): Add xalloc.
12475         * modules/hash (Depends-on): Add xalloc.
12476         (Files): Remove lib/xalloc.h.
12477
12478         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
12479         * modules/userspec (Files): Add lib/inttostr.h.
12480
12481 2005-03-23  Jim Meyering  <jim@meyering.net>
12482
12483         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
12484
12485 2005-03-22  Jim Meyering  <jim@meyering.net>
12486
12487         * modules/stat-macros: New module.
12488         * modules/canonicalize, modules/euidaccess, modules/file-type,
12489         * modules/filemode, modules/lchown, modules/makepath,
12490         * modules/rmdir, modules/stat: Depend on new stat-macros module
12491         rather than listing lib/stat-macros.h manually.
12492         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
12493
12494 2005-03-22  Jim Meyering  <jim@meyering.net>
12495
12496         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
12497
12498 2005-03-22  Bruno Haible  <bruno@clisp.org>
12499
12500         * config/srclist.txt: Replace target directory 'config' with
12501         'build-aux'.
12502         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
12503         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
12504         ../build-aux/.
12505
12506 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12507
12508         * modules/chdir-long (Depends-on): Add mempcpy.
12509
12510         * modules/acl, modules/backupfile, modules/c-strtod,
12511         modules/c-strtold, modules/canon-host, modules/canonicalize,
12512         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
12513         modules/exclude, modules/exitfail, modules/file-type,
12514         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
12515         modules/getdate, modules/getline, modules/getpagesize,
12516         modules/getpass, modules/getugroups, modules/group-member,
12517         modules/hard-locale, modules/hash, modules/human, modules/idcache,
12518         modules/inttostr, modules/long-options, modules/makepath,
12519         modules/md5, modules/memcasecmp, modules/memcoll,
12520         modules/modechange, modules/mountlist, modules/path-concat,
12521         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
12522         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
12523         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
12524         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
12525         modules/strftime, modules/strndup, modules/strverscmp,
12526         modules/timespec, modules/unlocked-io, modules/userspec,
12527         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
12528         modules/yesno:
12529         Remove lib_SOURCES line from Makefile.am section, as this is now
12530         done automatically by the corresponding Autoconf macro.
12531
12532 2005-03-21  Jim Meyering  <jim@meyering.net>
12533
12534         Changes imported from coreutils.
12535
12536         * lib/cycle-check.c: Don't include xalloc.h.
12537
12538         * lib/path-concat.c: Don't include assert.h.
12539         (path_concat): Remove assertion that would have triggered
12540         for ABASE starting with more than one slash.
12541         Reported by Andreas Schwab.
12542
12543         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
12544         properly when ABASE is an absolute file name.
12545         Correct the description of this function.
12546         Include <assert.h>.
12547         Add an assertion and a test driver.
12548         This fixes a bug introduced on 2004-07-02.
12549         Andreas Schwab reported the resulting failure of cp --parents:
12550         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
12551
12552 2005-03-21  Jim Meyering  <jim@meyering.net>
12553
12554         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
12555         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
12556
12557 2005-03-21  Jim Meyering  <jim@meyering.net>
12558         and  Paul Eggert  <eggert@cs.ucla.edu>
12559
12560         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
12561         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
12562         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
12563         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
12564         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
12565         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
12566         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
12567         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
12568         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
12569         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
12570         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
12571         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
12572         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
12573         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
12574         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
12575         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
12576         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
12577         for these modules.
12578
12579 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12580
12581         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
12582         (which shouldn't happen), generate nothing instead of returning 0
12583         immediately, so that nstrftime (NULL, ...) doesn't return 0.
12584
12585 2005-03-16  Bruno Haible  <bruno@clisp.org>
12586
12587         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
12588         HAVE_LONGLONG_64BIT.
12589
12590 2005-03-16  Bruno Haible  <bruno@clisp.org>
12591
12592         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
12593         HAVE_LONGLONG_64BIT.
12594
12595 2005-03-16  Bruno Haible  <bruno@clisp.org>
12596
12597         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
12598         HAVE_LONGLONG_64BIT.
12599
12600 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12601
12602         * lib/strftime.c (my_strftime): Prepend space to format so that we can
12603         reliably distinguish strftime failure from empty output on POSIX
12604         hosts.
12605
12606 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12607
12608         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
12609         (iconv_string): Don't guess a size-zero buffer, as that might cause
12610         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
12611         result would be 'too large', where 'too large' is (heuristically)
12612         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
12613         overflow concerns.  This will prevent some unwanted malloc failures
12614         when the inputs are very large.
12615
12616 2005-03-15  Karl Berry  <karl@gnu.org>
12617
12618         * config/srclist.txt (config.rpath): from gettext.
12619         * config/config.rpath: update.
12620
12621 2005-03-15  Bruno Haible  <bruno@clisp.org>
12622
12623         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
12624         to 'negate'.
12625
12626         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
12627         variable.
12628
12629         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
12630         results.
12631
12632 2005-03-14  Simon Josefsson  <jas@extundo.com>
12633
12634         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
12635         <fx@gnu.org>.
12636
12637 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12638
12639         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
12640         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
12641         intprops.h.
12642         * lib/strtol.c: Likewise.
12643
12644 2005-03-14  Jim Meyering  <jim@meyering.net>
12645
12646         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
12647         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
12648         to be nonzero so that we (and caller) can detect the difference
12649         between a valid zero-length expansion and an error return, even
12650         when the underlying strftime fails before writing anything into
12651         that location.
12652
12653 2005-03-14  Bruno Haible  <bruno@clisp.org>
12654
12655         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
12656         Update from GNU gettext 0.14.3.
12657
12658 2005-03-10  Jim Meyering  <jim@meyering.net>
12659
12660         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
12661
12662 2005-03-10  Jim Meyering  <jim@meyering.net>
12663
12664         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
12665         so that this module works on systems without fchdir.
12666
12667 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12668
12669         Factor int-properties macros into a single file, except for
12670         glibc-related files.
12671         * lib/intprops.h: New file.
12672         * lib/getloadavg.c: Include it instead of limits.h.
12673         (INT_STRLEN_BOUND): Remove.
12674         * lib/human.c: Include intprops.h.
12675         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
12676         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
12677         302/1000.
12678         * lib/inttostr.h: Include intprops.h instead of limits.h.
12679         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
12680         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
12681         for consistency with intprops.h.
12682         (time_t_is_integer, twos_complement_arithmetic): Use them.
12683         * lib/sig2str.h: Include <signal.h>, intprops.h.
12684         (INT_STRLEN_BOUND): Remove.
12685         * lib/strftime.c (TYPE_SIGNED): Remove.
12686         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
12687         * lib/strtol.c: Adjust comments to match intprops.h.
12688         * lib/userspec.c: Include intprops.h.
12689         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
12690         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
12691         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
12692         instead of rolling our own expressions.
12693         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
12694
12695         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
12696         instead of int.
12697         (my_strftime): Do not mishandle years close to INT_MAX, by doing
12698         the right thing even if adding 1900 would overflow.  Similarly
12699         for tm_mon + 1 and tm_yday + 1.
12700         Make %Y always equivalent to %C%y, and similarly for %G and %g.
12701         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
12702         (DO_SIGNED_NUMBER): New macro.
12703         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
12704
12705 2005-03-07  Bruno Haible  <bruno@clisp.org>
12706
12707         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
12708
12709 2005-03-07  Bruno Haible  <bruno@clisp.org>
12710
12711         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
12712
12713 2005-03-04  Derek R. Price  <derek@ximbiot.com>
12714
12715         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
12716         (func_import): Only replace files via --import when they have actually
12717         changed.
12718
12719 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12720
12721         * m4/mmap-anon.m4: New file.
12722         * m4/pagealign_alloc.m4: New file.
12723
12724 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12725             Bruno Haible  <bruno@clisp.org>
12726
12727         * modules/pagealign_alloc: New file.
12728         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
12729
12730 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12731             Bruno Haible  <bruno@clisp.org>
12732
12733         * lib/pagealign_alloc.h: New file.
12734         * lib/pagealign_alloc.c: New file.
12735
12736 2005-03-03  Bruno Haible  <bruno@clisp.org>
12737
12738         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
12739         Use an all-permissive copyright notice, recommended by RMS.
12740
12741 2005-03-02  Bruno Haible  <bruno@clisp.org>
12742
12743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
12744         of AIX, the replacement has to be done only after <string.h> is
12745         included, therefore not in config.h. stpncpy.h does the replacement,
12746         and stpncpy.c uses it.
12747
12748 2005-03-02  Bruno Haible  <bruno@clisp.org>
12749
12750         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
12751         stpncpy.c uses it.
12752
12753 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12754
12755         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
12756         The workaround isn't strictly needed for POSIX conformance, and
12757         it's too much of a pain to configure and maintain.  We'll ask
12758         people to fix their kernels instead.
12759         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
12760         (NANOSLEEP_BUG_WORKAROUND): Remove.
12761         (xnanosleep): Remove the workaround.
12762
12763 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12764
12765         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
12766         Reported by Derek Price.
12767         (Include): Add "timespec.h".
12768
12769         * modules/xnanosleep (Depends-on): Remove gethrxtime.
12770
12771 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12772
12773         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
12774         to detect nanosleep bug.
12775
12776 2005-03-01  Bruno Haible  <bruno@clisp.org>
12777
12778         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
12779
12780 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12781
12782         * modules/gethrxtime: New file.
12783         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
12784         (Depends-on): Add gethrxtime.
12785         (configure.ac): Add gl_XNANOSLEEP.
12786         (Makefile.am): Remove lib_SOURCES line.
12787
12788 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12789
12790         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
12791         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
12792
12793 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12794
12795         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
12796         * lib/timespec.h (gettime): Return void, since it always
12797         succeeds now.  All uses changed.
12798         * lib/gettime.c (gettime) Likewise.
12799         [HAVE_NANOTIME]: Prefer nanotime.
12800         Assume gettimeofday succeeds, as POSIX requires.
12801         Assime time () succeeds, since other code already does.
12802         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
12803         (timespec_subtract): Remove.
12804         (NANOSLEEP_BUG_WORKAROUND): New constant.
12805         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
12806         things considerably.  Use it only on GNU/Linux hosts, since the
12807         workaround shouldn't be needed elsewhere.
12808
12809 2005-02-24  Bruno Haible  <bruno@clisp.org>
12810
12811         * modules/gettext (Files): Add m4/glibc2.m4.
12812
12813 2005-02-24  Bruno Haible  <bruno@clisp.org>
12814
12815         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
12816         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
12817         * m4/progtest.m4:
12818         Update from GNU gettext 0.14.2.
12819         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
12820
12821 2005-02-24  Bruno Haible  <bruno@clisp.org>
12822
12823         * lib/localcharset.c: Update from GNU gettext 0.14.2.
12824         * lib/config.charset: Update from GNU gettext 0.14.2.
12825
12826 2005-02-24  Bruno Haible  <bruno@clisp.org>
12827
12828         * lib/gettext.h: Update from GNU gettext 0.14.2.
12829
12830 2005-02-23  Simon Josefsson  <jas@extundo.com>
12831
12832         * m4/iconvme.m4: New file.
12833
12834 2005-02-23  Jim Meyering  <jim@meyering.net>
12835
12836         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
12837         change.
12838         Thanks to Bruno Haible for catching it.
12839
12840 2005-02-22  Simon Josefsson  <jas@extundo.com>
12841
12842         * modules/iconvme: New file.
12843
12844         * MODULES.html.sh: Add iconvme.
12845
12846 2005-02-22  Simon Josefsson  <jas@extundo.com>
12847
12848         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
12849
12850 2005-02-22  Simon Josefsson  <jas@extundo.com>
12851
12852         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
12853
12854 2005-02-22  Jim Meyering  <jim@meyering.net>
12855
12856         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
12857         s/ifndef/ifdef/.
12858
12859 2005-02-20  Neil Conway  <neilc@samurai.com>
12860
12861         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
12862         returned by OSX/Darwin if the specified buffer is not large
12863         enough for the hostname.
12864
12865 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12866
12867         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
12868         pass it to _help, otherwise the latter coredumps trying to
12869         dereference state.root_argp.
12870
12871 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12872
12873         * modules/chdir-long (Depends-on): Add memrchr.
12874         * modules/memrchr (Files): Add lib/memrchr.h.
12875         (Include): "memrchr.h".
12876
12877 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12878
12879         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
12880
12881 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12882
12883         * lib/memrchr.h: New file.
12884         * lib/chdir-long.c: Include it.
12885         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
12886         Don't bother including stddef.h.
12887
12888 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
12889
12890         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
12891         inclusion.
12892         Include <sys/types.h>, for dev_t.
12893         (ME_DUMMY, ME_REMOTE): Move from here....
12894         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
12895         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
12896         Dmitry V. Levin.
12897         Include mountlist.h first, to test the interface.
12898
12899 2005-01-29  Bruno Haible  <bruno@clisp.org>
12900
12901         * lib/progname.c (program_name): Initialize.
12902         Needed when linking statically on MacOS X.
12903
12904 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         Sync from coreutils.
12907         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
12908         (Depends-on): Add c-strtod.
12909         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
12910
12911 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12912
12913         Sync from coreutils.
12914         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
12915
12916         Remove files that are specific to coreutils.
12917         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
12918
12919 2005-01-28  Bruno Haible  <bruno@clisp.org>
12920
12921         * modules/javacomp: New file.
12922         * MODULES.html.sh (Java): Add javacomp.
12923
12924 2005-01-28  Bruno Haible  <bruno@clisp.org>
12925
12926         * m4/javacomp.m4: New file, from GNU gettext.
12927
12928 2005-01-28  Bruno Haible  <bruno@clisp.org>
12929
12930         * lib/javacomp.sh.in: New file, from GNU gettext.
12931         * lib/javacomp.h: New file, from GNU gettext.
12932         * lib/javacomp.c: New file, from GNU gettext.
12933
12934 2005-01-26  Simon Josefsson  <jas@extundo.com>
12935
12936         * lib/gai_strerror.c: Use GPL in header.
12937
12938 2005-01-26  Bruno Haible  <bruno@clisp.org>
12939
12940         * modules/javaexec: New file.
12941         * MODULES.html.sh (Java): Add javaexec.
12942
12943 2005-01-26  Bruno Haible  <bruno@clisp.org>
12944
12945         * m4/javaexec.m4: New file, from GNU gettext.
12946
12947 2005-01-26  Bruno Haible  <bruno@clisp.org>
12948
12949         * lib/javaexec.sh.in: New file, from GNU gettext.
12950         * lib/javaexec.h: New file, from GNU gettext.
12951         * lib/javaexec.c: New file, from GNU gettext.
12952
12953 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12954
12955         * modules/lchown (Depends-on): Remove lchown.h
12956
12957 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12958
12959         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
12960         must be defined if the header file was not found, in order
12961         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
12962
12963 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12964
12965         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
12966         initializers for struct pentry_state.
12967         (__argp_error): Check return value of __asprintf
12968         (__argp_failure): Translate error message
12969
12970         * lib/argp-parse.c: Removed braces around the expansion of N_()
12971
12972 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12973
12974         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
12975         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
12976         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
12977         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
12978         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
12979         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
12980         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
12981         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
12982         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
12983         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
12984         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
12985         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
12986         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
12987         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
12988         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
12989         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
12990         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
12991         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
12992         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
12993         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
12994         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
12995         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
12996         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
12997         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
12998         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
12999         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
13000         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
13001         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
13002         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
13003         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
13004         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
13005         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
13006         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
13007         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
13008         xstrtol.m4, xstrtoumax.m4, yesno.m4:
13009         Use an all-permissive copyright notice, recommended by RMS.
13010
13011 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13012
13013         * modules/chdir-long (Depends-on): Remove mempcpy.
13014
13015 2005-01-21  Jim Meyering  <jim@meyering.net>
13016
13017         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
13018         same value as for Solaris 9.
13019
13020         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
13021         component length.  This included changing the parameter to be
13022         of type `char *' rather than `char const *'.
13023         * lib/chdir-long.h (chdir_long): Update prototype.
13024
13025         * lib/openat.c (fdopendir, fstatat): New functions.
13026         * lib/openat.h: Include headers required for use of DIR and struct
13027         stat.
13028         [AT_SYMLINK_NOFOLLOW]: Define.
13029         (fdopendir, fstatat): Add prototypes.
13030
13031 2005-01-21  Bruno Haible  <bruno@clisp.org>
13032
13033         * modules/classpath: New file.
13034         * MODULES.html.sh (Java): Add classpath.
13035
13036 2005-01-21  Bruno Haible  <bruno@clisp.org>
13037
13038         * lib/classpath.h: New file, from GNU gettext.
13039         * lib/classpath.c: New file, from GNU gettext.
13040
13041 2005-01-20  Simon Josefsson  <jas@extundo.com>
13042
13043         * modules/version-etc-fsf: New file.
13044
13045 2005-01-20  Simon Josefsson  <jas@extundo.com>
13046
13047         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
13048         * lib/version-etc.c: Remove version_etc_copyright.
13049         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
13050         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
13051
13052 2005-01-20  Simon Josefsson  <jas@extundo.com>
13053
13054         * lib/base64.h (isbase64): Add.
13055
13056         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
13057         using a unsigned prototype, don't inline.
13058         (base64_decode): Use it.
13059
13060 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13061
13062         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
13063         it.
13064
13065 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13066
13067         * lib/save-cwd.c (save_cwd): Remove code to support the case
13068         where fchdir is missing or flaky.
13069
13070 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13071
13072         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
13073
13074 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
13077         AC_LIBSOURCES now does this.
13078         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
13079         with new ullong_max module.
13080
13081 2005-01-19  Bruno Haible  <bruno@clisp.org>
13082
13083         * modules/sh-quote: New file.
13084         * MODULES.html.sh (Executing programs): Add sh-quote.
13085
13086 2005-01-19  Bruno Haible  <bruno@clisp.org>
13087
13088         * lib/sh-quote.h: New file, from GNU gettext.
13089         * lib/sh-quote.c: New file, from GNU gettext.
13090
13091 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13092
13093         Merge from coreutils.
13094         * m4/ullong_max.m4: New file.
13095         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
13096         (gl_MACROS): Assume localeconv exists.
13097
13098 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         Merge changes from coreutils, as described below in several
13101         changelogs dated today.
13102
13103         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
13104         (O_DIRECTORY): Remove; not needed here, since "." must be
13105         a directory.  All uses removed.
13106         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
13107         universal on Suns, and we also need to test for IRIX.
13108         Revamp code to use 'if' rather than '#if'.
13109         Avoid unnecessary comparison of cwd->desc to 0.
13110
13111         * lib/utimens.c (futimens): Robustify the previous patch, by checking
13112         for known valid error numbers rather than observed invalid ones.
13113
13114 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13115
13116         * modules/ullong_max: New file.
13117
13118         * modules/chdir-long, modules/openat: New files.
13119         * modules/save-cwd (Depends-on): Depend on chdir-long.
13120         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
13121
13122 2005-01-18  Jim Meyering  <jim@meyering.net>
13123
13124         Merge from coreutils.
13125         * m4/chdir-long.m4, m4/openat.m4: New files.
13126         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
13127         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
13128         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
13129         is sane and DOES follow symlinks.  Besides, testing 20 different
13130         systems found no broken chown implementations.
13131         Prompted by a change in rsync's copy of this macro.
13132         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
13133
13134         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
13135
13136         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
13137         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
13138         NULL-means-set-to-current-time semantics.
13139         Remove temporary file immediately, rather than waiting
13140         for configure's at-exit trap code to do it.
13141
13142 2005-01-18  Jim Meyering  <jim@meyering.net>
13143
13144         * lib/version-etc.c (version_etc_copyright): Update copyright date.
13145
13146         * lib/utimens.c (futimens): Account for the fact that futimes
13147         can also fail with errno == ENOSYS or errno == ENOENT.
13148         Patch from Dmitry V. Levin.
13149
13150         Change the name of the robust chdir function from chdir to chdir_long.
13151         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
13152         (restore_cwd): Use chdir_long, not chdir.
13153         * lib/chdir-long.c: Renamed from chdir.c.
13154         * lib/chdir-long.h: Renamed from chdir.h.
13155         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
13156         Hurd.
13157
13158 2005-01-18  Bruno Haible  <bruno@clisp.org>
13159
13160         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
13161         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
13162         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
13163         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
13164         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
13165         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
13166         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
13167         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
13168         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
13169         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
13170         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
13171         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
13172         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
13173         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
13174         Use an all-permissive copyright notice, recommended by RMS.
13175
13176 2005-01-18  Bob Proulx  <bob@proulx.com>
13177
13178         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
13179         simplify offsetof() macro construct to avoid compile failure with
13180         native HP-UX 11.0 ANSI C compiler.
13181
13182 2005-01-17  Bruno Haible  <bruno@clisp.org>
13183
13184         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
13185         redundant because stpncpy.m4 takes care of it.
13186
13187 2005-01-17  Bruno Haible  <bruno@clisp.org>
13188
13189         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
13190
13191 2005-01-17  Bruno Haible  <bruno@clisp.org>
13192
13193         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
13194         used.
13195
13196 2005-01-17  Bruno Haible  <bruno@clisp.org>
13197
13198         * lib/fwriteerror.h (fwriteerror): Change specification to include
13199         fclose.
13200         * lib/fwriteerror.c: Include <stdbool.h>.
13201         (fwriteerror): At the end, close the file stream. Record whether
13202         stdout was already closed.
13203
13204 2005-01-17  Bruno Haible  <bruno@clisp.org>
13205
13206         * lib/execute.c (environ): Declare if needed.
13207         * lib/pipe.c (environ): Likewise.
13208         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
13209
13210 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13211
13212         * modules/argp: Depend on vsnprintf
13213
13214 2005-01-10  Jim Meyering  <jim@meyering.net>
13215
13216         * modules/closeout (Depends-on): Add atexit.
13217
13218 2005-01-06  Bruno Haible  <bruno@clisp.org>
13219
13220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
13221
13222 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13223
13224         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
13225         definitions to be after all include files, to avoid collisions.
13226         Problem reported by Bob Proulx.
13227
13228 2005-01-04  Jim Meyering  <jim@meyering.net>
13229
13230         Changes imported from coreutils.
13231         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
13232         as the mkstemp template, use a temporary directory and an
13233         8.3-friendly template to avoid trouble on systems like DJGPP.
13234         Reported by Juan M. Guerrero via Stepan Kasal.
13235         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
13236         close. Remove the temporary directory right away, rather than waiting
13237         for configure's at-exit trap code to do it.
13238         Suggestion from Stepan Kasal.
13239
13240 2005-01-01  Simon Josefsson  <jas@extundo.com>
13241
13242         * gnulib-tool: Print #include directives when --import'ing.
13243
13244 2004-12-28  Simon Josefsson  <jas@extundo.com>
13245
13246         * tests/test-base64.c: Include required header files.  Remove
13247         unused variables.
13248
13249 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13250
13251         * modules/error (Depends-on): Remove gettext.
13252
13253 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13254
13255         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
13256         not needed.  This removes a dependency on the gettext module.
13257         [defined _LIBC]: Do not include <libintl.h>; not needed.
13258
13259 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
13260
13261         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
13262         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
13263
13264 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
13265
13266         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
13267         HAVE_DECL_STRTOLD.
13268
13269 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13270
13271         * modules/getdate (Depends-on): Remove alloca-opt.
13272
13273 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13274
13275         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
13276
13277 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13278
13279         * lib/argp-parse.c: Include <stddef.h>.
13280         (alignof, alignto): New macros.
13281         (parser_init): Don't assume that void * is aligned sufficiently
13282         for struct option.
13283
13284         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
13285         need to extend the stack.
13286         (YYINITDEPTH): New macro, so that the initial stack isn't overly
13287         large.
13288
13289 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13290
13291         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
13292
13293 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13294
13295         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
13296         (2004-10-24) change.  Apparently this was a false alarm.
13297
13298         * modules/getdate: Depend on alloca-opt, not alloca.
13299
13300 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13301
13302         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
13303         Remove now-obsolete comment about AIX.
13304         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
13305         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
13306         (YYMAXDEPTH): New macro.
13307
13308 2004-12-18  Simon Josefsson  <jas@extundo.com>
13309
13310         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
13311
13312 2004-12-18  Bruno Haible  <bruno@clisp.org>
13313
13314         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
13315
13316 2004-12-18  Bruno Haible  <bruno@clisp.org>
13317
13318         * lib/fatal-signal.c (fatal_signals): Make non-const.
13319         (init_fatal_signals): New function.
13320         (uninstall_handlers, install_handlers): Ignore signals that were set to
13321         SIG_IGN.
13322         (at_fatal_signal): Call init_fatal_signals.
13323         (init_fatal_signal_set): Likewise. Ignore signals that were set to
13324         SIG_IGN.
13325         Reported by Paul Eggert.
13326
13327 2004-12-18  Bruno Haible  <bruno@clisp.org>
13328
13329         * doc/alloca.texi: New file.
13330         * doc/alloca-opt.texi: New file.
13331
13332 2004-12-17  Jim Meyering  <jim@meyering.net>
13333
13334         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
13335         Otherwise, install-sh could exit with improper exit status when
13336         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
13337
13338 2004-12-16  Simon Josefsson  <jas@extundo.com>
13339
13340         * tests/test-base64.c: Add license.
13341
13342 2004-12-15  Stepan Kasal  <address@hidden>
13343
13344         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
13345
13346 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13347
13348         * modules/getcwd (Files): Add m4/d-ino.m4.
13349         Suggested by Mark D. Baushke.
13350
13351 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         * lib/getdate.y (textint): New member "negative".
13354         (time_zone_hhmm): New function.
13355         Expect 14 shift-reduce conflicts, not 13.
13356         (o_colon_minutes): New rule.
13357         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
13358         (yylex): Set the "negative" member of signed numbers.
13359
13360 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13361
13362         * doc/getdate.texi (Time of day items, Time zone items):
13363         Describe new formats +00:00, UTC+00:00.
13364
13365 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13366
13367         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
13368         spurious "-l"s.  Problem reported by Stepan Kasal.
13369
13370 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
13371
13372         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
13373         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
13374
13375 2004-12-04  Simon Josefsson  <jas@extundo.com>
13376
13377         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
13378         Vandoorselaere <yoann@prelude-ids.org>.
13379
13380 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13381
13382         Changes imported from coreutils.
13383         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
13384         exist.
13385         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
13386
13387 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13388
13389         Changes imported from coreutils.
13390         * lib/hard-locale.c: Assume <locale.h> exists.
13391         Include "strdup.h".
13392         (GLIBC_VERSION): New macro.
13393         (hard_locale): Assume setlocale exists.
13394         Rewrite to avoid #ifdef.
13395         Use strdup rather than malloc + strcpy.
13396         * lib/human.c: Assume <locale.h> exists.
13397         (human_readable): Assume localeconv exists.
13398
13399 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13400
13401         * modules/hard-locale (Depends-on): Add strdup.
13402
13403 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
13404
13405         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
13406         convert T2, not T.  (Imported from libc.)
13407
13408 2004-11-30  Simon Josefsson  <jas@extundo.com>
13409
13410         * modules/restrict (License): Change to LGPL.
13411
13412 2004-11-30  Simon Josefsson  <jas@extundo.com>
13413
13414         * m4/restrict.m4: Add copyright and copying conditions.
13415
13416 2004-11-30  Simon Josefsson  <jas@extundo.com>
13417
13418         * m4/base64.m4: New file.
13419
13420 2004-11-30  Simon Josefsson  <jas@extundo.com>
13421
13422         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
13423         base64.
13424
13425         * tests/test-base64.c: New file.
13426
13427         * modules/base64: New file.
13428
13429 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13430
13431         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13432         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
13433
13434         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
13435
13436 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13437
13438         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
13439         (__getcwd.c): Don't restore errno; glibc doesn't.
13440         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
13441         first, falling back to our code only if its results look suspicious.
13442         Ensure that the resulting buffer is only as large as necessary.
13443
13444         * lib/readutmp.c: Include readutmp.h first.
13445         Include <errno.h>, since readutmp.h no longer does that.
13446         * lib/readutmp.h: Don't include <errno.h>,
13447         <sys/param.h>, <time.h>; not needed to establish interface.
13448         (errno): Remove decl.
13449         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
13450         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
13451         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
13452
13453 2004-11-28  Simon Josefsson  <jas@extundo.com>
13454
13455         * lib/base64.h, base64.c: New file.
13456
13457 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13458
13459         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
13460
13461 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
13462
13463         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
13464         (Depends-on): Remove pathmax, same.  Add mempcpy.
13465         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
13466         (Makefile.am): Append getcwd.h to lib_SOURCES.
13467         (Include): Add getcwd.h.
13468         (Maintainer): Change from Jim Meyering to "all, glibc",
13469         since getdate now uses intended-for-glibc code.
13470         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
13471         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
13472
13473 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
13476         HP's ANSI C compiler.
13477         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
13478         Declaring int functions causes warnings on some modern systems and
13479         shouldn't be needed to compile on ancient ones.
13480         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
13481         defined.
13482
13483         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
13484         with the following changes.
13485         (__set_errno): Parenthesize properly.
13486         Include <stdbool.h>.
13487         (MIN, MAX, MATCHING_INO): New macros.
13488         (__getcwd): Define with prototype, not K&R form.
13489         Use heuristics to allocate default buffer on stack if possible.
13490         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
13491         behavior, and to avoid the PATH_MAX limit when computing
13492         ../../../../...
13493         Use MATCHING_INO to compare inode number to file.
13494         Check for arithmetic overflow in size calculations.
13495         Fix bug in reallocation of dot array that caused getcwd to fail
13496         on directories nested deeper than 75.
13497         Be more careful about saving errno on error.
13498         Do not use realloc; use only free+malloc, as this is a bit
13499         more flexible and avoids a needless copy operation.
13500         Do not inspect st_dev and st_ino for symbolic links; POSIX
13501         doesn't specify the latter.
13502         Check for closedir errors.
13503         Avoid needless casts.
13504         Use "#ifdef weak_alias" around weak_alias, to be like other
13505         glibc code.
13506         The following changes to getcwd.c have effect only when used in
13507         gnulib; they have no effect inside glibc proper.
13508         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
13509         as alloca isn't used.
13510         (alloca, __alloca): Likewise.
13511         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
13512         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
13513         unconditionally, as gnulib assumes C89 or better.
13514         Do not include <sys/param.h>.
13515         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
13516         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
13517         better.
13518         (NULL) [!defined NULL]: Remove; we assume C89 or better.
13519         Include <dirent.h> in a way that is compatible with modern Autoconf.
13520         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
13521         New macros, if not already defined.
13522         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
13523         Use "_LIBC", not "defined _LIBC", for consistency.
13524         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
13525         a mempcpy module.
13526         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
13527         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
13528         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
13529         credit only to Jim Meyering and adjust the copyright dates.
13530         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
13531         <stdlib.h>, <unistd.h>, "pathmax.h".
13532         Instead, include "xgetcwd.h" (first) and "getcwd.h".
13533         (INITIAL_BUFFER_SIZE): Remove.
13534         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
13535
13536 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13537
13538         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
13539         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
13540         Use the _ONCE methods, for efficiency.
13541         Check for fcntl.h.  In test program, include <errno.h>
13542         and <fcntl.h> if available.  Remove old K&R cruft from
13543         test program.  Check for common errors in GNU/Linux,
13544         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
13545         don't do AC_LIBOBJ, as that's getcwd.m4's job.
13546         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
13547         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
13548         name accordingly.
13549         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
13550         accommodate new getcwd.c.
13551         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
13552         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
13553         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
13554         that's all we need now.
13555
13556 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13557
13558         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
13559         argp-parse.c depends on getopt internals, that means we should
13560         always use our getopt, to be on the safe side.
13561         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
13562         order not to spoil the result of an eventual previous invocation
13563         of gl_GETOPT_SUBSTITUTE.
13564
13565 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13566
13567         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
13568         redefinition warnings. To avoid them, include the defines
13569         in `#if !defined __need_getopt ... #endif'. The only place
13570         where __getopt_argv_const is used is in definitions
13571         of getopt_long and getopt_long_only below, which are as well
13572         protected by `#ifndef __need_getopt'.
13573         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
13574         __need_getopt after including <stdio.h> and <unistd.h> These
13575         headers might have defined it.
13576
13577 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13578
13579         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
13580
13581 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13582
13583         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
13584         (futimens): New function, which uses futimes if available.
13585         (futimens, utimens): Support timespec==NULL, with same semantics
13586         as utime and utimens.
13587         * lib/utimens.h (futimens): New decl.
13588
13589 2004-11-23  Jim Meyering  <jim@meyering.net>
13590
13591         * lib/getopt_.h: Remove trailing blanks.
13592
13593 2004-11-23  Jim Meyering  <jim@meyering.net>
13594
13595         * lib/__fpending.c: Add comment.
13596
13597 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         * modules/canonicalize (Depends-on): Add xreadlink.
13600         Problem reported by James Youngman.
13601
13602 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13603
13604         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
13605         New macros.
13606         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
13607         optopt): Use them instead of invoking ## directly; otherwise, the
13608         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
13609
13610 2004-11-19  Bruno Haible  <bruno@clisp.org>
13611
13612         * lib/strtok_r.c: Move comments from here...
13613         * lib/strtok_r.h: ... to here.
13614
13615 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13616
13617         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
13618         implementations that mishandle size_t overflow.
13619
13620 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13621
13622         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
13623         might fail.  Problem reported by Yoann Vandoorselaere.
13624         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
13625         implementations that mishandle size_t overflow.
13626
13627 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13628
13629         * modules/canon-host (Depends-on): Add strdup.
13630
13631 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13632
13633         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
13634
13635 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13636
13637         * lib/canon-host.c: Include "strdup.h".
13638         (canon_host): Use getaddrinfo if available, so that IPv6 works.
13639         Use strdup instead of malloc/strcpy to duplicate strings.
13640
13641         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
13642         (human_space_before_unit): New constant.
13643         * lib/human.c (human_readable): Support it.
13644
13645         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
13646         (xgetcwd): Set errno correctly when failing.
13647         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
13648         the failure is actually due to a PATH_MAX problem.
13649
13650         Further getopt changes to make it more likely that glibc will
13651         buy the changes back.
13652         * lib/getopt.c (POSIXLY_CORRECT): New constant.
13653         (getopt): Use it, so to preserve glibc semantic
13654         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
13655         when compiling for libc.
13656         * lib/getopt_.h (__getopt_argv_const): Bring it back.
13657         (getopt_long, getopt_long_only): Use it.
13658
13659         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
13660         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
13661         (getopt): Argv is now char * const *, as per standard.
13662         (_getopt_internal_r, _getopt_internal): Argv is now char **,
13663         not char *__getopt_argv_const *.
13664         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
13665         _getopt_long_only_r): Likewise.
13666         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
13667         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
13668         _getopt_long_r, _getopt_long_only_r): Likewise.
13669         * lib/getopt_.h (__getopt_argv_const): Remove.
13670         (getopt): Argv is now char * const *, as per standard.
13671
13672         * lib/getdate.y (tORDINAL): New token.
13673         (day, relunit): Allow it for relative times.
13674         (relative_time_table): Use tORDINAL for ordinals.
13675
13676 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13677
13678         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
13679         Document that "second" isn't allowed as an ordinal number.
13680
13681 2004-11-16  Jim Meyering  <jim@meyering.net>
13682
13683         * modules/closeout (Depends-on): Add fpending.
13684
13685 2004-11-15  Jim Meyering  <jim@meyering.net>
13686
13687         * lib/closeout.c: Include "__fpending.h" once again.
13688         Include <stdbool.h>.
13689         (close_stdout): Don't fail just because stdout was closed initially,
13690         since some programs don't write to stdout in the normal course of
13691         operation (other than --version and --help), and we don't want this
13692         function to make e.g. `touch file >&-' fail.
13693         But do fail if it was closed and someone has tried to write to it.
13694         E.g., `printf foo >&-' must fail.
13695
13696 2004-11-13  Jim Meyering  <jim@meyering.net>
13697
13698         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
13699
13700 2004-11-12  Simon Josefsson  <jas@extundo.com>
13701
13702         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
13703         small doc fix is still pending.
13704
13705 2004-11-11  Simon Josefsson  <jas@extundo.com>
13706
13707         * modules/strtok_r: New file.
13708
13709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13710         strtok_r.
13711
13712 2004-11-11  Simon Josefsson  <jas@extundo.com>
13713
13714         * m4/strtok_r.m4: New file.
13715
13716         * m4/getopt.m4: Replace opterr.
13717
13718 2004-11-11  Simon Josefsson  <jas@extundo.com>
13719
13720         * lib/strtok_r.h, strtok_r.c: New file.
13721
13722 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13723
13724         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
13725         of replacing opterr, getopt, etc.  This should handle the
13726         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
13727
13728 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13729
13730         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
13731         we can stop lying to compilers about the constness of argv when we
13732         are compiled outside glibc.
13733         (getopt, getopt_long, getopt_long_only): Use it.
13734         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
13735         _getopt_internal, getopt): Likewise.
13736         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
13737         _getopt_long_only_r): Likewise.
13738         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
13739         _getopt_long_r, _getopt_long_only_r): Likewise.
13740
13741         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
13742         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
13743         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
13744         the other external symbols.
13745         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
13746         declaration, since the above renaming now works around collisions.
13747
13748 2004-11-11  Jim Meyering  <jim@meyering.net>
13749
13750         * lib/linebreak.c: Remove trailing blanks.
13751         * lib/alloca_.h: Likewise.
13752         * lib/acosl.c: Likewise.
13753         * lib/euidaccess.c: Likewise.
13754         * lib/allocsa.h: Likewise.
13755
13756 2004-11-10  Simon Josefsson  <jas@extundo.com>
13757
13758         * m4/getaddrinfo.m4: New file.
13759
13760 2004-11-10  Simon Josefsson  <jas@extundo.com>
13761
13762         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
13763
13764 2004-11-10  Simon Josefsson  <jas@extundo.com>
13765
13766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13767         getaddrinfo.
13768
13769         * modules/getaddrinfo: New file.
13770
13771 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13772
13773         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
13774
13775 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13776
13777         * lib/mktime.c (SHR): New macro, which is a portable
13778         substitute for >> that should work even on Crays.
13779         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
13780         Problem reported by Mark D. Baushke in
13781         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
13782         * lib/getdate.y (SHR): Likewise.
13783         (tm_diff): Use it.
13784         * lib/strftime.c (SHR): Likewise.
13785         (tm_diff): Use it.
13786         * lib/quotearg.c (struct quoting_options): Use unsigned int for
13787         quote_these_too, so that right shifts are well defined.  All uses
13788         changed.
13789
13790 2004-11-10  Jim Meyering  <jim@meyering.net>
13791
13792         Ensure that no close failure goes unreported.
13793         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
13794         return early when it seems there's nothing to flush.
13795         Don't include __fpending.h.
13796
13797 2004-11-10  Jim Meyering  <jim@meyering.net>
13798
13799         * modules/closeout (Depends-on): Remove fpending.
13800
13801 2004-11-10  Jim Meyering  <jim@meyering.net>
13802
13803         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
13804
13805 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13806
13807         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
13808         gl_FUNC_STRFTIME.
13809         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
13810         and AC_REQUIRE when possible, to avoid duplicate checks.
13811         Check for <wchar.h>.
13812
13813 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13814
13815         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
13816
13817 2004-11-09  Bruno Haible  <bruno@clisp.org>
13818
13819         * m4/sockpfaf.m4: New file.
13820
13821 2004-11-05  Bruno Haible  <bruno@clisp.org>
13822
13823         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
13824         Reported by Mark D. Baushke <mdb@cvshome.org>.
13825
13826 2004-11-04  Bruno Haible  <bruno@clisp.org>
13827
13828         2004-09-11  Bruno Haible  <bruno@clisp.org>
13829                 * allocsa.valgrind: New file.
13830         2004-02-06  Bruno Haible  <bruno@clisp.org>
13831                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
13832                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
13833                 Reported by Christopher Seip <chris.seip@hp.com>.
13834
13835 2004-11-04  Bruno Haible  <bruno@clisp.org>
13836
13837         * modules/allocsa (Files): Add lib/allocsa.valgrind.
13838         (Makefile.am): Distribute it.
13839
13840 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
13843         with errno == ERANGE if the buffer is too small.
13844         Problem reported by Mark D. Baushke.
13845
13846 2004-11-03  Albert Chin  <china@thewrittenword.com>
13847             Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
13850         equivalent, substitute $ac_type for equivalent type rather than
13851         blindly using uint32_t *always* which won't work if uint32_t is not
13852         available.  Define _UINT32_T to work around typedef of uint32_t if
13853         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
13854         2.5.1.
13855
13856 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13857
13858         * m4/jm-macros.m4: Sync from coreutils.
13859         (gl_MACROS): Check for mbrlen, for pathchk.
13860         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
13861
13862 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13863
13864         * lib/xreadlink.c (MAXSIZE): New macro.
13865         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
13866         size does not exceed MAXSIZE.  Avoid cast.
13867         As suggested by Mark D. Baushke in
13868         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
13869         if readlink fails with buffer size just under MAXSIZE, try again
13870         with MAXSIZE.
13871
13872 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13873
13874         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
13875
13876 2004-11-02  Derek R. Price  <derek@ximbiot.com>
13877         and  Paul Eggert  <eggert@cs.ucla.edu>
13878
13879         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
13880         (get_date): Overparenthesize to avoid GCC warning.
13881
13882 2004-11-02  Bruno Haible  <bruno@clisp.org>
13883
13884         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
13885         returns void.
13886
13887 2004-11-02  Bruno Haible  <bruno@clisp.org>
13888
13889         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
13890         function returns void.
13891
13892 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13893
13894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
13895         fflush_unlocked, flockfile, funlockfile, funlockfile,
13896         fputs_unlocked, putc_unlocked.
13897
13898 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13899
13900         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
13901         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
13902         already declared.
13903
13904 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13905
13906         * modules/getdate (Files): Add doc/getdate.texi.
13907         (Depends-on): Add setenv, xalloc.
13908
13909 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13910
13911         * lib/getdate.y: Add support for TZ="foo" within a date string.
13912         Fix some bugs near time_t boundaries.  Reject dates with
13913         out-of-range components, e.g., "Sept 31".
13914         Include <stdlib.h>, "setenv.h", "xalloc.h".
13915         (ISDIGIT_LOCALE): Remove; unused.
13916         Note that the TZ and time functions used here are not reentrant.
13917         (mktime_ok, get_tz): New functions.
13918         (TZBUFSIZE): New constant.
13919         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
13920         This requires that we sometimes generate our own TZ="XXX..." setting.
13921
13922 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         * doc/getdate.texi: New file, from coreutils with modifications for
13925         the new TZ parsing.
13926
13927 2004-10-27  Derek R. Price  <derek@ximbiot.com>
13928
13929         * lib/mktime.c (not_equal_tm): Remove redundant check.
13930
13931 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13932
13933         * modules/regex (lib_SOURCES): Add regex.c.
13934         Reported by James Youngman in
13935         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
13936
13937 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13938
13939         * lib/getdate.y: Use Bison 1.875 features, and some minor
13940         code cleanups.  This change does not affect semantics.
13941         Don't include <stdlib.h>; no longer needed.
13942         Don't include unlocked-io.h; only the "#if TEST" code uses
13943         stdio, and performance isn't crucial there.
13944         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
13945         Bison 1.875 features as described below.
13946         All uses of "PC." replaced by "pc->".
13947         (YYSTYPE): Add a forward declaration.
13948         (yylex, yyerror): Use full prototypes in forward decls.
13949         Use "%pure-parser" rather than obsolescent "%pure_parser".
13950         Use %parse-param and %lex-param instead of obsolescent
13951         YYPARSE_PARAM and YYLEX_PARAM.
13952         (meridian_table, month_and_day_table, time_units_table,
13953         relative_time_table, time_zone_table, military_table,
13954         lookup_zone, lookup_word, get_date):
13955         Use NULL instead of 0 where appropriate.
13956         (to_hour): Avoid abort (), to avoid a dependency on
13957         stdlib.h.
13958         (yyerror, yylex): Now accepts parser_control * arg.
13959         (main) [TEST]: Use '\0' rather than 0 for char.
13960
13961 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13962
13963         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
13964
13965 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13966
13967         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
13968         It's now the caller's responsibility to handle the case where
13969         !HAVE_GETPAGESIZE && !defined getpagesize.
13970
13971         * lib/mktime.c (leapyear): Arg is long int, not int.
13972
13973 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13974
13975         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
13976
13977 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
13978
13979         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
13980         missing.  Problem reported by James Youngman.
13981
13982 2004-10-16  Simon Josefsson  <jas@extundo.com>
13983
13984         * gnulib-tool: Fix comments.  Fix parse problem.
13985         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
13986
13987 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13988
13989         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
13990         implementation of getopt_long.  Problem reported by Alexander Taler in:
13991         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
13992
13993 2004-10-15  Bruno Haible  <bruno@clisp.org>
13994
13995         * gnulib-tool: Untabify. Initialize supplied_libname.
13996         (func_usage): More homogenous output.
13997         (func_modules_transitive_closure, func_modules_to_filelist,
13998         func_emit_lib_Makefile_am): New functions.
13999         (func_import): New function, extracted from big case statement. Use
14000         func_get_license, func_modules_transitive_closure,
14001         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
14002         opt_lgpl. Don't use test -a, as it's not portable.
14003         (func_create_testdir): Use func_modules_transitive_closure,
14004         func_modules_to_filelist, func_emit_lib_Makefile_am.
14005
14006 2004-10-15  Bruno Haible  <bruno@clisp.org>
14007
14008         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
14009
14010 2004-10-15  Bruno Haible  <bruno@clisp.org>
14011
14012         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
14013         the portions belonging to each module.
14014         Suggested by Derek Robert Price <derek@ximbiot.com>.
14015
14016 2004-10-12  Simon Josefsson  <jas@extundo.com>
14017
14018         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
14019         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
14020         to real functions.
14021
14022 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14023
14024         * modules/vsnprintf: New file.
14025
14026 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14027
14028         * m4/vsnprintf.m4: New file.
14029
14030 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14031
14032         * lib/vsnprintf.h: New file.
14033         * lib/vsnprintf.c: New file.
14034
14035 2004-10-11  Bruno Haible  <bruno@clisp.org>
14036
14037         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
14038         vsnprintf.
14039
14040 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
14043
14044 2004-10-07  Bruno Haible  <bruno@clisp.org>
14045
14046         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
14047         fits into the provided buffer.
14048
14049 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14050
14051         * lib/diacrit.c, diacrit.h: Add GPL notice.
14052
14053         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
14054         notice.
14055         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
14056         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
14057         This avoids a potential constant-folding bug.
14058
14059 2004-10-05  Bruno Haible  <bruno@clisp.org>
14060
14061         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
14062         for the declaration of strsep.
14063
14064 2004-10-05  Bruno Haible  <bruno@clisp.org>
14065
14066         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
14067
14068 2004-10-04  Simon Josefsson  <jas@extundo.com>
14069
14070         * modules/memmem: New file.
14071         * tests/test-memmem.c: New file.
14072         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
14073
14074 2004-10-04  Simon Josefsson  <jas@extundo.com>
14075
14076         * m4/memmem.m4: New file.
14077
14078 2004-10-04  Simon Josefsson  <jas@extundo.com>
14079
14080         * lib/memmem.h: New file.
14081         * lib/memmem.c: New file, taken from glibc.
14082
14083 2004-10-04  Simon Josefsson  <jas@extundo.com>
14084
14085         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
14086         '#ifdef USE_UNLOCKED_IO'.
14087
14088 2004-10-04  Simon Josefsson  <jas@extundo.com>
14089
14090         * config/srclist.txt: Add memmem from glibc.
14091
14092 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14093
14094         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
14095
14096         * modules/argmatch, modules/argp, modules/closeout, modules/error,
14097         modules/exclude, modules/getdate, modules/getline,
14098         modules/getndelim2, modules/getpass, modules/getpass-gnu,
14099         modules/getusershell, modules/linebuffer, modules/md5,
14100         modules/mountlist, modules/posixtm, modules/readtokens,
14101         modules/readutmp, modules/regex, modules/sha1,
14102         modules/version-etc, modules/yesno:
14103         Remove dependency on unlocked-io.
14104
14105 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14106
14107         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
14108
14109         * m4/unlocked-io.m4: Add copyright notice.
14110         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
14111
14112 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14113
14114         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
14115         * lib/xmalloc.c (xmemdup): Likewise.
14116         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
14117         XFREE): Remove these long-obsolescent macros.
14118         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
14119         * lib/xstrdup.c: Remove.
14120
14121         * lib/regex.c (re_comp): Cast gettext return value to char *,
14122         Problem reported by Martin Neitzel via Mark D. Baushke.
14123
14124 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14125
14126         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
14127         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
14128         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
14129         regex.c, sha1.c, version-etc.c, yesno.c:
14130         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
14131         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
14132         the includer's responsibility.
14133
14134         Sync from coreutils.
14135
14136         * lib/modechange.c (mode_compile): Don't decrement a pointer that
14137         points to the start of a string, as the C Standard says the
14138         resulting behavior is undefined.
14139
14140         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
14141         simple -> simple_backups, numbered_existing ->
14142         numbered_existing_backups, numbered -> numbered_backups
14143         to avoid shadowing problems.  All uses changed.
14144         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
14145         * lib/backupfile.c (check_extension, numbered_backup):
14146         Rename locals to avoid shadowing 'basename'.
14147         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
14148         once.
14149
14150         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
14151         * lib/.cvsignore: Add getopt.h.
14152
14153 2004-10-04  Bruno Haible  <bruno@clisp.org>
14154
14155         * modules/README: New file.
14156         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
14157         not a module.
14158
14159 2004-10-02  Jim Meyering  <jim@meyering.net>
14160
14161         * lib/dirfd.h, getpagesize.h: Add copyright notice.
14162
14163 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14164
14165         * modules/strsep: New file.
14166
14167 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14168
14169         * m4/strsep.m4: New file.
14170
14171 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14172
14173         * lib/strsep.h: New file.
14174         * lib/strsep.c: New file.
14175
14176 2004-10-01  Simon Josefsson  <jas@extundo.com>
14177
14178         * lib/snprintf.c (snprintf): Handle size==0.
14179
14180 2004-10-01  Simon Josefsson  <jas@extundo.com>
14181             Bruno Haible  <bruno@clisp.org>
14182
14183         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
14184         (snprintf): Declare 'args'.
14185
14186 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
14187
14188         * lib/snprintf.c: Remove comments as to why each header is needed.
14189
14190 2004-10-01  Bruno Haible  <bruno@clisp.org>
14191
14192         * MODULES.html.sh: Add strsep.
14193
14194 2004-09-30  Simon Josefsson  <jas@extundo.com>
14195
14196         * modules/snprintf: New file.
14197
14198 2004-09-30  Simon Josefsson  <jas@extundo.com>
14199
14200         * m4/snprintf.m4: New file.
14201
14202 2004-09-30  Simon Josefsson  <jas@extundo.com>
14203
14204         * lib/snprintf.h, lib/snprintf.c: New files.
14205
14206 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14207
14208         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
14209         (hol_entry_help): Never translate an empty string.
14210         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
14211         * lib/argp.h (OPTION_NO_TRANS): New option.
14212
14213 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14214
14215         * modules/argp (Maintainer): Replace Simon Josefsson
14216         by Sergey Poznyakoff.
14217
14218 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14219
14220         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
14221         changes merged back into glibc.
14222
14223 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14224
14225         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
14226
14227 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
14228
14229         * lib/xvasprintf.c: Include xalloc.h.
14230         (xvasprintf): Use xalloc_die, not xmalloc_die.
14231
14232 2004-09-29  Bruno Haible  <bruno@clisp.org>
14233
14234         * modules/alloca-opt: New file, derived from modules/alloca.
14235         * modules/allocsa: Depend on alloca-opt instead of alloca.
14236         * modules/setenv: Likewise.
14237         * modules/vasnprintf: Likewise.
14238         * MODULES.html.sh: Add alloca-opt.
14239
14240 2004-09-28  Simon Josefsson  <jas@extundo.com>
14241
14242         * gnulib-tool: New parameter --lgpl, to asseert that modules are
14243         LGPL, and to replace license template from GPL to LGPL.
14244
14245 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14246
14247         * modules/dummy: Change license to LGPL.
14248
14249 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14250
14251         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
14252
14253 2004-09-24  Simon Josefsson  <jas@extundo.com>
14254
14255         * modules/minmax (License): Change from GPL to LGPL.
14256
14257 2004-09-23  Simon Josefsson  <jas@extundo.com>
14258
14259         * gnulib-tool (--import): Typo.
14260
14261 2004-09-23  Simon Josefsson  <jas@extundo.com>
14262
14263         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
14264
14265 2004-09-22  Bruno Haible  <bruno@clisp.org>
14266
14267         * modules/*: Add 'License' field.
14268         * gnulib-tool: Accept --extract-license option.
14269         (func_get_license): New function.
14270
14271 2004-09-21  Bruno Haible  <bruno@clisp.org>
14272
14273         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
14274         Reported by Simon Josefsson.
14275
14276 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14277
14278         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
14279         gl_AC_TYPE_LONG_LONG.
14280
14281 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14282
14283         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
14284
14285 2004-09-18  Simon Josefsson  <jas@extundo.com>
14286         and  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
14289         calls with autoreconf.  Define GL_LIB.
14290
14291 2004-09-14  Karl Berry  <karl@gnu.org>
14292
14293         * config/srclist.txt: unsync setenv.c, sigh.
14294
14295 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
14298         Problem reported by Bruno Haible in:
14299         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
14300
14301 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14302
14303         * config/srclist.txt: Comment out argp-pvh.c.
14304
14305 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14306
14307         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
14308         in case some system header has #define'd it.  Problem reported by
14309         Soeren D. Schulze in
14310         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
14311
14312 2004-09-09  Karl Berry  <karl@gnu.org>
14313
14314         * regex.[ch]: delete from the root.  These were supposed to be
14315                 synced with emacs cvs, but this has not happened for about
14316                 a year, and anyway nothing else uses emacs regex.[ch].
14317                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
14318                 lib/regex[.ch] is untouched.
14319
14320 2004-09-09  Bruno Haible  <bruno@clisp.org>
14321
14322         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
14323
14324 2004-09-09  Bruno Haible  <bruno@clisp.org>
14325
14326         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
14327         modifications.
14328         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
14329
14330 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
14331
14332         * modules/xvasprintf: New file.
14333         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
14334
14335 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
14336
14337         * lib/xvasprintf.h: New file.
14338         * lib/xvasprintf.c: New file.
14339         * lib/xasprintf.c: New file.
14340
14341 2004-09-08  Bruno Haible  <bruno@clisp.org>
14342
14343         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
14344
14345 2004-09-08  Bruno Haible  <bruno@clisp.org>
14346
14347         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
14348         length is > INT_MAX.
14349         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
14350         more.
14351
14352 2004-09-08  Bruno Haible  <bruno@clisp.org>
14353
14354         * lib/stdint_.h: New file, taken from GNU clisp.
14355
14356 2004-09-08  Bruno Haible  <bruno@clisp.org>
14357             Oskar Liljeblad  <oskar@osk.mine.nu>
14358
14359         * modules/stdint: New file.
14360         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
14361
14362 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14363
14364         Import from coreutils.
14365         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
14366         strings on unbounded length.  alloca's performance benefits aren't
14367         that important here.
14368         (V_STRDUP): Remove.
14369         (parse_with_separator): New function, with most of the internals
14370         of the old parse_user_spec.  Allow user to omit both user and group,
14371         for compatibility with FreeBSD.
14372         Clone only the user name, not the entire spec.
14373         Do not set *uid, *gid unless entirely successful.
14374         Avoid memory leak in some failing cases.
14375         Fix regression for USER.GROUP reported by Dmitry V. Levin in
14376         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
14377         (parse_user_spec): Rewrite to use parse_with_separator.
14378
14379 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14380
14381         * modules/userspec: Don't depend on alloca.
14382
14383 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14384
14385         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
14386
14387 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
14390         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
14391         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
14392
14393 2004-08-16  Simon Josefsson  <jas@extundo.com>
14394
14395         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
14396         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
14397         Add --dry-run for --import.
14398         Let user provided command line parameters override configure.ac
14399         settings.
14400
14401 2004-08-12  Simon Josefsson  <jas@extundo.com>
14402
14403         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
14404         as discussed with Paul Eggert in threads rooted at
14405         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
14406         and
14407         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
14408         Before, the test was empty, and relied on ELIDE_CODE in source
14409         code.)
14410         (gl_PREREQ_GETOPT): New macro.
14411         (gl_GETOPT): Use them.
14412
14413 2004-08-12  Simon Josefsson  <jas@extundo.com>
14414
14415         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
14416         * lib/getopt_.h: Renamed from getopt.h.
14417
14418 2004-08-12  Simon Josefsson  <jas@extundo.com>
14419
14420         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
14421         Change default library name from libfoo to libgnu.
14422         Now, if you have a configure.ac that says:
14423                 gl_SOURCE_BASE(gl)
14424                 gl_M4_BASE(gl/m4)
14425                 gl_MODULES(error getopt etcetera)
14426                 gl_INIT
14427         you can import all you need by running:
14428                 ../gnulib/gnulib-tool --import
14429
14430         * modules/getopt (Files): Rename getopt.h to getopt_.h.
14431         (Makefile.am): Rewrite, use logic from argz.
14432         (Include): Use <getopt.h> instead of "getopt.h".
14433
14434 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         * modules/argp (Files): Add m4/unlocked-io.m4.
14437         (Depends-on): Add extensions.
14438
14439 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14440
14441         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
14442         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
14443         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
14444         Check for program_invocation_name, program_invocation_short_name,
14445         flockfile, funlockfile, features.h, _getopt_long_only_r.
14446
14447 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14448
14449         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
14450         its complicated substitute.
14451         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
14452         and program_invocation_name.
14453         (__argp_basename) [!_LIBC]: Remove; the only use was
14454         replaced by its body.
14455         (__argp_short_program_name): Change condition from
14456         !defined __argp_short_program_name to
14457         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
14458         to match argp-namefrob.h.
14459         (__argp_failure): Don't assume strerror_r returns char *.
14460         * lib/argp-parse.c (N_): Define unconditionally.
14461         (argp_default_options): Fill out initializers with 0 to avoid
14462         gcc warnings.
14463
14464 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14465
14466         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
14467         getopt1.c.
14468
14469 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14470
14471         Merge from coreutils.
14472
14473         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
14474
14475         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
14476         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
14477
14478 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14479
14480         Merge from coreutils.
14481
14482         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
14483         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
14484         for Reliant Unix 5.43.
14485
14486         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
14487         (union fooround): Use uintmax_t, not long int.
14488         The rest is a merge from libc:
14489         [defined _LIBC]: Include <shlib-compat.h>.
14490         (_obstack) [defined _LIBC]: Remove after 2.3.4.
14491
14492         * lib/settime.c (settime): Recode to avoid warning with
14493         Sun Forte C 6U2.
14494
14495         * lib/strverscmp.c: Convert to UTF-8.
14496
14497 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
14500         m4/uintmax_t.m4.
14501
14502 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14503
14504         * modules/xalloc-die: New file.
14505         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
14506
14507         * modules/md5 (Files): Add m4/uint32_t.m4.
14508         * modules/sha1: Renamed from modules/sha.
14509         (Files):
14510         Rename lib/sha.h to lib/sha1.h.
14511         Rename lib/sha.c to lib/sha1.c.
14512         Rename m4/sha.m4 to m4/sha1.m4.
14513         (lib_SOURCES): Likewise.
14514         (configure.ac): Rename gl_SHA to gl_SHA1.
14515         (Include): sha.h -> sha1.h.
14516
14517 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14518
14519         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
14520         * m4/sha1.m4: Renamed from sha.m4.
14521         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
14522
14523 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14524
14525         * lib/obstack.h (obstack_empty_p):
14526         Don't assume that chunk->contents is suitably aligned.
14527         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
14528         Likewise. Problem reported by Benno in
14529         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
14530
14531         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
14532         readable.  This could be improved further but it'd take some work.
14533
14534 2004-08-08  Simon Josefsson  <jas@extundo.com>
14535
14536         * modules/xgethostname (Depends-on): Remove exit and error (not
14537         used).
14538
14539         * modules/getpass-gnu: Add getpass.h.
14540         (Depends-on): Add stdbool.
14541         * modules/getpass: Add getpass.h.
14542
14543 2004-08-08  Simon Josefsson  <jas@extundo.com>
14544
14545         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
14546         Check getpass declaration.
14547
14548 2004-08-08  Simon Josefsson  <jas@extundo.com>
14549
14550         * lib/xgethostname.c: Don't include error.h (not used).
14551
14552         * lib/getpass.h: Add.
14553         * lib/getpass.c: Include getpass.h first.
14554
14555 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14556
14557         * lib/xalloc-die.c: New file.
14558         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
14559         All uses removed.
14560         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
14561         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
14562         xalloc-die.c.
14563         (_, N_, xalloc_die): Move to xalloc-die.c.
14564         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
14565         so that we needn't mess with xalloc_msg_memory_exhausted.
14566
14567         * lib/sha1.h: Renamed from sha.h.
14568         (SHA1_H): Renamed from _SHA_H.
14569         (sha1_ctx): Renamed from sha_ctx.
14570         (sha1_init_ctx): Renamed from sha_init_ctx.
14571         (sha1_process_block): Renamed from sha_process_block.
14572         (sha1_process_bytes): Renamed from sha_process_bytes.
14573         (sha1_finish_ctx): Renamed from sha_finish_ctx.
14574         (sha1_read_ctx): Renamed from sha_read_ctx.
14575         (sha1_stream): Renamed from sha_stream.
14576         (sha1_buffer): Renamed from sha_buffer.
14577         * lib/sha1.c: Likewise; renamed from sha.c.
14578         Do not include <sys/types.h>.
14579         Include <stddef.h> rather than <stdlib.h>.
14580
14581 2004-08-08  Bruno Haible  <bruno@clisp.org>
14582
14583         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
14584         FILESYSTEM_PREFIX_LEN.
14585         * lib/progreloc.c: Likewise.
14586         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
14587
14588 2004-08-06  Simon Josefsson  <jas@extundo.com>
14589
14590         * modules/progname (Depends-on): Don't depend on stdbool.
14591
14592 2004-08-06  Simon Josefsson  <jas@extundo.com>
14593
14594         * modules/getsubopt: New file.
14595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14596         getsubopt.
14597
14598 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14599
14600         More merge from coreutils.
14601
14602         * m4/utimens.m4, m4/utimecmp.m4: New files.
14603         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
14604         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
14605         prereq.m4, sha.m4: Import changes from coreutils.
14606
14607 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14608
14609         More merge from coreutils.
14610         * modules/raise, modules/readtokens0, modules/utimens:
14611         * modules/utimecmp, module/xnanosleep: New files.
14612         * modules/strftime: Add lib/strftime.h.
14613         Change include from <time.h> to "strftime.h".
14614         * modules/yesno: Add lib/yesno.h.
14615         * modules/backupfile: Remove lib/addext.c.
14616         * modules/euidaccess: Add stat-macros.h.
14617         * modules/canonicalize, modules/euidaccess,
14618         modules/filemode, modules/lchown, modules/makepath,
14619         modules/rmdir, modules/stat: Likewise.
14620
14621 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14622
14623         Merge from tar.
14624         * lib/argp-help.c (make_hol, hol_append): Don't assume that
14625         SIZE_MAX is a valid preprocessor constant.
14626         (__argp_basename): Change from "#ifndef _LIBC"
14627         to "#ifndef __argp_short_program_name", so that
14628         we don't compile these functions for tar.
14629
14630         More merges from coreutils.
14631         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
14632         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
14633         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
14634         * lib/addext.c: Remove; no longer needed.
14635         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
14636         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
14637         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
14638         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
14639         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
14640         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
14641         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
14642         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
14643         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
14644         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
14645         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
14646         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
14647         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
14648         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
14649         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
14650         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
14651         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
14652         Import changes from coreutils.
14653
14654 2004-08-05  Simon Josefsson  <jas@extundo.com>
14655
14656         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
14657
14658 2004-08-05  Simon Josefsson  <jas@extundo.com>
14659
14660         * m4/getsubopt.m4: New file.
14661
14662 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14663
14664         Merge from coreutils.
14665
14666         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
14667         * m4/getcwd-path-max.m4: New files.
14668
14669         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
14670         FILESYSTEM_PREFIX_LEN ->
14671         FILE_SYSTEM_PREFIX_LEN.
14672         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
14673         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
14674         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
14675         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
14676
14677         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
14678         prerequisite modules now handle the DOS stuff.
14679         Don't check for unistd.h.
14680
14681 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14682
14683         Merge from coreutils.
14684
14685         * lib/.gdb-history: Remove; this doesn't belong here.
14686
14687         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
14688         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
14689         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
14690         * lib/getcwd.c: New files.
14691
14692         * lib/dirname.h: Include <stdbool.h>.
14693         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
14694         for consistency with POSIX terminology.  All uses changed.
14695         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
14696         (strip_trailing_slashes): Use bool for booleans.
14697         * lib/stripslash.c (strip_trailing_slashes): Likewise.
14698
14699         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
14700         sometimes returns a positive errno value even when it succeeds.
14701         (print_errno_message) [!LIBC]: Fall back on strerror if
14702         __strerror_r fails.
14703
14704         * lib/path-concat.c (mempcpy): Don't define if a system header defines
14705         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
14706         (longest_relative_suffix): New function.
14707         (path_concat): Use it.  Assume first argument is not NULL.
14708         Port to DOS.  Omit redundant separators.
14709         Report an error instead of returning NULL.
14710         Use mempcpy instead of memcpy.
14711         (xpath_concat): Remove: not declared or used.
14712
14713         * lib/same.h: Include <stdbool.h>
14714         (same_name): Return bool, not int.
14715         * lib/same.c (same_name): Likewise.
14716         (errno): Don't declare; we assume C89 or better now.
14717
14718         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
14719         if not already defined.
14720
14721         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
14722         * lib/dup-safer.c (errno): Likewise.
14723
14724 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14725
14726         Merge from coreutils.
14727         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
14728         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
14729         * modules/path-concat: Don't depend on strdup.
14730
14731 2004-08-03  Simon Josefsson  <jas@extundo.com>
14732
14733         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
14734         * lib/progname.h: Don't include stdbool.h.
14735
14736 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
14739         * MODULES.html.sh (func_all_modules): Remove fatal.
14740
14741 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14742
14743         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
14744
14745 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14746
14747         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
14748         working.
14749
14750 2004-08-02  Simon Josefsson  <jas@extundo.com>
14751
14752         * lib/getsubopt.h: New file, with comments from Bruno Haible.
14753         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
14754         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
14755
14756 2004-08-01  Simon Josefsson  <jas@extundo.com>
14757
14758         * lib/xgetdomainname.c: Include stdlib.h, for free().
14759
14760 2004-07-19  Bruno Haible  <bruno@clisp.org>
14761
14762         * MODULES.html.sh (func_all_modules): Add dummy.
14763
14764 2004-07-16  Simon Josefsson  <jas@extundo.com>
14765
14766         * modules/dummy: New file.
14767
14768 2004-07-16  Simon Josefsson  <jas@extundo.com>
14769
14770         * lib/dummy.c: New file.
14771
14772 2004-07-16  Bruno Haible  <bruno@clisp.org>
14773
14774         * lib/backupfile.h: Add extern "C" for C++.
14775         * lib/closeout.h: Likewise.
14776         * lib/copy-file.h: Likewise.
14777         * lib/findprog.h: Likewise.
14778         * lib/full-write.h: Likewise.
14779         * lib/pathname.h: Likewise.
14780         * lib/progname.h: Likewise.
14781         * lib/stpcpy.h: Likewise.
14782         * lib/stpncpy.h: Likewise.
14783         * lib/strcase.h: Likewise.
14784         * lib/strstr.h: Likewise.
14785         * lib/xalloc.h: Likewise.
14786
14787         * lib/mbswidth.h: Add extern "C" for C++.
14788         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
14789
14790 2004-07-13  Robert Millan  <robertmh@gnu.org>
14791
14792         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
14793
14794 2004-07-09  Simon Josefsson  <jas@extundo.com>
14795
14796         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
14797         failed without this.)
14798
14799 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14800
14801         * modules/chown (Files): Add lib/fchown-stub.c, since
14802         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
14803
14804 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14805
14806         * lib/fchown-stub.c: New file.
14807
14808 2004-06-24  Jim Meyering  <jim@meyering.net>
14809
14810         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
14811
14812 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14813
14814         * modules/argz: Omit "#include".
14815
14816         * MODULES.html.sh (func_all_modules): Add calloc, to match
14817         2004-06-01 addition of calloc module.
14818
14819 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14820
14821         * m4/argz.m4: New file, which is autoupdated from libtool.
14822
14823 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14824
14825         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
14826         libtool.
14827
14828 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14829
14830         * config/srclist-update: Don't insist on "USA." before the
14831         close-comment, as libtool omits the period and puts the */ on a
14832         separate line.
14833         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
14834         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
14835
14836 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
14837
14838         * modules/argz: New file.
14839         * MODULES.html.sh (func_all_modules): Add argz.
14840
14841 2004-06-12  Jim Meyering  <jim@meyering.net>
14842         and  Paul Eggert  <eggert@cs.ucla.edu>
14843
14844         * modules/hash (Files): Add lib/xalloc.h.
14845         * modules/pipe (Depends-on): Add wait-process.
14846         * modules/stat (Depends-on): Add xalloc.
14847         * modules/userspec (Files): Add lib/userspec.h.
14848         * modules/xstrto
14849
14850         Upgrade from gettext-0.13.
14851         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
14852         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
14853         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
14854
14855 2004-06-10  Jim Meyering  <jim@meyering.net>
14856
14857         * lib/calloc.c: New file.
14858
14859 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         * lib/getdate.y (yylex): Allow space between sign and number.
14862         Problem reported by Dan Jacobson.
14863
14864 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14865
14866         Merge from coreutils CVS.
14867
14868         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
14869         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
14870         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
14871         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
14872         xstrtol.m4: Fix copyright date and/or serial number.
14873
14874         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
14875         See if we need an fchown replacement.
14876         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
14877         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
14878         and use the replacement function if we detect either defect.
14879
14880         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
14881         gl_UTIMECMP.
14882
14883 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14884         and  Jim Meyering  <jim@meyering.net>
14885
14886         Merge from coreutils CVS.
14887
14888         * lib/stat-macros.h: New file, with contents from file-type.h
14889         and coreutils' system.h.
14890         * lib/file-type.c: Include "stat-macros.h".
14891         * lib/file-type.h (file_type): Move all macro definitions to new file,
14892         stat-macros.h.
14893
14894         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
14895         Wrap old code with this conditional.
14896         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
14897         function that does not dereference symlinks.
14898         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
14899
14900         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
14901         dependency problems.
14902         (xreadlink): Accept new arg SIZE, for efficiency.
14903         All decls and uses changed.
14904         * lib/xreadlink.h: Include <stddef.h>, for size_t.
14905
14906         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
14907         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
14908
14909         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
14910         sysexits.h.
14911
14912 2004-06-01  Jim Meyering  <jim@meyering.net>
14913
14914         * m4/calloc.m4: New file.
14915
14916 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14917
14918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
14919         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
14920         Also, fix a typo in a diagnostic.
14921
14922 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14923
14924         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
14925         or AC_FUNC_REALLOC.
14926
14927 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14928
14929         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
14930         macros to be defined.
14931         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
14932         the allocator returns NULL because the requested size is zero.
14933
14934 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14935
14936         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
14937         var.  Add comment explaining why libc still defines it.  This
14938         merges the following patch from glibc:
14939         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
14940
14941 2004-05-20  Andreas Schwab  <schwab@suse.de>
14942
14943         * m4/free.m4: Replace free if it not known to work, not the other
14944         way round.
14945
14946 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14947
14948         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
14949         present in glibc since revision 1.1 of this file.
14950         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
14951         obstack_alignment_mask, obstack_alloc, obstack_base,
14952         obstack_blank, obstack_blank_fast, obstack_chunk_size,
14953         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
14954         obstack_grow0, obstack_init, obstack_int_grow,
14955         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
14956         obstack_next_free, obstack_object_size, obstack_ptr_grow,
14957         obstack_ptr_grow_fast, obstack_room): Remove declarations of
14958         nonexistent functions.
14959
14960 2004-05-18  Karl Berry  <karl@gnu.org>
14961
14962         * config/srclist.txt: break link for vasnprintf.c.
14963
14964 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14965
14966         Port obstack to the AS/400, where pointers are 16 bytes wide and
14967         you cannot cast an integer to a valid pointer.  This patch is
14968         currently waiting to be integrated into glibc; see
14969         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
14970
14971         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
14972         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
14973         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
14974         (struct obstack): temp member is now a union of a pointer and
14975         an integer, instead of an integer.  All integer uses changed.
14976         This does not affect the physical layout of struct obstack,
14977         except on hosts (like the AS/400) where the size or alignment of
14978         void * is greater than that of ptrdiff_t.
14979         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
14980         __STDC__)]: Store temporary in pointer member of union, not
14981         integer member.
14982         * lib/obstack.c: Include <stddef.h>, for offsetof.
14983         (struct fooalign): Remove; it doesn't need a name.
14984         (union fooround): Change double to long double, and add void *.
14985         (DEFAULT_ALIGNMENT): Use offsetof to compute.
14986         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
14987         not a macro.  Hence the values are always int; so remove all
14988         casts-to-int in uses.
14989
14990 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14991
14992         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
14993         we can get this patch merged into glibc.
14994
14995 2004-05-17  Derek R. Price  <derek@ximbiot.com>
14996             Paul Eggert  <eggert@cs.ucla.edu>
14997
14998         * m4/argp: Depend on alloca.
14999
15000 2004-05-17  Derek R. Price  <derek@ximbiot.com>
15001             Paul Eggert  <eggert@cs.ucla.edu>
15002
15003         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
15004         freecoding.
15005
15006 2004-05-17  Bruno Haible  <bruno@clisp.org>
15007
15008         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
15009         precision that consists of a '.' followed by an empty digit string.
15010         Patch by Tor Lillqvist <tml@iki.fi>.
15011
15012 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15013
15014         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
15015         for backward compatibility with older code.  We need our own
15016         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
15017         it under some other name, and our alloca.h will define it.
15018
15019 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15020             Derek Price  <derek@ximbiot.com>
15021
15022         * lib/alloca.c: Include <alloca.h>, to get our interface.
15023         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
15024         include <alloca.h> first.  Use C89 prototype for alloca; this
15025         requires including <stddef.h> for size_t.  Use extern "C" if C++.
15026         Use #elif for simplicity, since we can assume C89 now.
15027         Don't try to source the system alloca.h since it will not be found
15028         and to prevent recursively including its replacement.
15029         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
15030         * lib/regex.c: Likewise.
15031
15032 2004-05-16  Derek Price  <derek@ximbiot.com>
15033             Paul Eggert  <eggert@cs.ucla.edu>
15034
15035         getline cleanup.  This changes the getndelim2 API: both order of
15036         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
15037         no delimiter).
15038
15039         * lib/getline.c: Don't include stddef.h or stdio.h, since our
15040         interface does that.
15041         (getline): Always use getdelim, so that we don't have two
15042         copies of this code.
15043         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
15044         if available.
15045         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
15046         (GETNDELIM2_MAXIMUM): New macro.
15047         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
15048         instead of the old practice of delim2==0.  All callers changed.
15049         Return -1 on overflow, instead of returning junk.
15050         Do not set *linesize unless allocation succeeds.
15051         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
15052         that we include sys/types.h.
15053         * lib/getnline.h: Likewise.
15054         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
15055         (getndelim2): Reorder arguments.
15056         * lib/getnline.c (getnline, getndelim):
15057         Don't discard the NMAX argument.
15058         (getnline): Invoke getndelim, to avoid code duplication.
15059         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
15060         of (size_t) -1 by callers of the getnline family.
15061
15062 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15063
15064         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
15065         Check for gettimeofday.
15066         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
15067         Check for settimeofday, stime.
15068
15069 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15070
15071         * lib/nanosleep.c (suspended): Change its type from int to
15072         sig_atomic_t volatile.
15073         (first_call): Make it private to rpl_nanosleep, and have it
15074         be zero initially as that's a bit faster.
15075         (my_usleep): Round up fractional times instead of truncating them,
15076         as this is the usual meaning for 'sleep'.
15077
15078         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
15079         doesn't work.
15080         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
15081         (ENOSYS): Define if not defined.
15082         (settime): Fall back on stime if it exists and settimeofday fails.
15083         But don't bother with fallbacks if a method fails with errno == EPERM.
15084
15085 2004-05-11  Jim Meyering  <jim@meyering.net>
15086
15087         Prior to this change, the save_cwd caller required read access to the
15088         current directory on most systems (ones with the fchdir function).
15089
15090         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
15091         fails, try write-only, and finally, resort to using xgetcwd.
15092
15093 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15094
15095         * lib/obstack.c, obstack.h: Import changes from libc.
15096
15097 2004-04-28  Bruno Haible  <bruno@clisp.org>
15098
15099         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
15100         also implicitly appends .exe to executables.
15101         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
15102         accepts Windows pathnames.
15103         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15104         Treat Cygwin like Windows, since it now accepts Windows pathnames.
15105         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15106         Treat Cygwin like Windows, since it now accepts Windows pathnames.
15107         Reported by Derek Robert Price <derek@ximbiot.com>.
15108
15109 2004-04-21  Karl Berry  <karl@gnu.org>
15110
15111         * config/srclist.txt (localcharset.c): break sync.
15112
15113 2004-04-20  Paul Eggert  <eggert@twinsun.com>
15114
15115         * m4/host-os.m4: Add a copyright notice.
15116
15117 2004-04-20  Jim Meyering  <jim@meyering.net>
15118
15119         Change UTILS_ to gl_ in AC_DEFINE'd names.
15120         Change utils_- and jm_-prefixed variables, too.
15121         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
15122         UTILS_FUNC_MKDIR_TRAILING_SLASH.
15123         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
15124
15125         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
15126         Don't emit trailing blanks.
15127         Also rename jm_-prefixed variables to have gl_ prefix.
15128
15129         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
15130         Also rename jm_-prefixed variables to have gl_ prefix.
15131
15132         * m4/jm-macros.m4: Reflect the renamings.
15133         * m4/prereq.m4: Likewise.
15134
15135 2004-04-20  Jim Meyering  <jim@meyering.net>
15136
15137         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
15138         memory.
15139
15140 2004-04-20  Jim Meyering  <jim@meyering.net>
15141             Bruno Haible  <bruno@clisp.org>
15142
15143         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
15144         memory when realloc fails.
15145
15146 2004-04-19  Jim Meyering  <jim@meyering.net>
15147
15148         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
15149         now that readutmp.c may call `free (0)'.
15150
15151 2004-04-19  Bruno Haible  <bruno@clisp.org>
15152
15153         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
15154         * m4/inttypes_h.m4: Likewise.
15155         * m4/stdint_h.m4: Likewise.
15156         * m4/intmax_t.m4: Likewise.
15157         * m4/uintmax_t.m4: Likewise.
15158
15159 2004-04-18  Jim Meyering  <jim@meyering.net>
15160
15161         * m4/prereq.m4: Don't forbid jm_ prefix.
15162
15163         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
15164         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
15165         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
15166         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
15167         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
15168         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
15169         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
15170         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
15171         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
15172         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
15173         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
15174         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
15175         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
15176         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
15177         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
15178         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
15179         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
15180         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
15181         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
15182
15183 2004-04-18  Jim Meyering  <jim@meyering.net>
15184
15185         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
15186         failure, don't leak memory and do call END_UTMP_ENT.
15187
15188 2004-04-16  Jim Meyering  <jim@meyering.net>
15189
15190         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
15191         coreutils' stat program.
15192         (gl_PREREQ): Don't require jm_PREREQ_STAT.
15193
15194 2004-04-11  Paul Eggert  <eggert@twinsun.com>
15195
15196         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
15197         C89.
15198         (CHAR_BIT): Remove, since we assume C89.
15199         Include <stdint.h> if available, as per current Autoconf CVS advice.
15200
15201 2004-03-31  Jim Meyering  <jim@meyering.net>
15202
15203         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
15204         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
15205         * m4/xalloc.m4: Likewise.
15206
15207 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15208
15209         Merge from coreutils.
15210
15211         * m4/inttostr.m4: New file.
15212         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
15213         Require AM_STDBOOL_H and gl_TIMESPEC instead.
15214         Require gl_CLOCK_TIME.
15215         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
15216
15217 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15218
15219         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
15220         not bool, to be more consistent with Unix conventions.
15221         Suggested by Bruno Haible.
15222
15223         Merge from coreutils.
15224
15225         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
15226         * lib/umaxtostr.c: New files.
15227
15228         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
15229         the usual <time.h> dance.
15230         (get_date): Change signature to support fractional time stamps.
15231         All callers changed.
15232         * lib/getdate.y: Include "getdate.h" first, as we can now
15233         assume C89 and don't need to worry about 'const'.
15234         Similarly, include "unlocked-io.h" near start, not in middle.
15235         Include <limits.h>.
15236         (textint.value): Use long int rather than int.
15237         (textint.digits): Use size_t rather than int.
15238         (BILLION, LOG10_BILLION): New constants.
15239         (parser_control): New member rel_ns.  Members day_ordinal,
15240         time_zone, month, day, hour, minutes, rel_year, rel_month,
15241         rel_day, rel_hour, rel_minutes, rel_seconds
15242         are now long int, not int.  Member seconds is now struct timespec,
15243         not int.  New member timespec_seen.  Members dates_seen, days_seen,
15244         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
15245         not int.
15246         (%union.intval): Now long int, not int.
15247         New member timespec.
15248         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
15249         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
15250         (spec): Now is a timespec or an item list.
15251         (timespec, items): New nonterminals.
15252         (time, rel, relunit, number, get_date):
15253         Add support for fractional seconds.
15254         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
15255         (gmtime, localtime, mktime): Remove decls; not needed with C89.
15256         (to_hour): First arg is now long int, not int.
15257         (to_year): Returns long int, not int.
15258         Don't treat year -70 like 70.
15259         (tm_diff): Returns long int, not int.
15260         (lookup_word): Use bool instead of int when appropriate.
15261         (yylex): Use size_t for count, not int.
15262         Detect overflow when parsing large integer constants.
15263         Add support for fractions.
15264         (get_date): Make pointers 'const' if possible.
15265         Use more-portable code to detect integer overflow.
15266         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
15267         Don't use ctime; it's not reliable if the year has >4 digits.
15268
15269         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
15270         This is for compatibility with BSD.
15271
15272         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
15273         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
15274         From coreutils' system.h.
15275
15276         * lib/userspec.c: Don't include "posixver.h".
15277         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
15278         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
15279         compatible extension.  Simplify code by removing a boolean int
15280         that was always nonzero if a string was nonnull.
15281
15282 2004-03-30  Jim Meyering  <jim@meyering.net>
15283
15284         Merge from coreutils.
15285
15286         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
15287         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
15288         on some systems one must include <grp.h> before it.
15289         Reported by Christian Krackowizer.
15290
15291 2004-03-30  Jim Meyering  <jim@meyering.net>
15292
15293         Merge from coreutils.
15294
15295         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
15296
15297         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
15298         an empty input stream.
15299
15300         * lib/readtokens.c: Include <stdbool.h>.
15301         (readtoken): Use `size_t' rather than int/long.
15302         All callers adjusted.
15303         Use `bool' rather than `int' where appropriate.
15304         Use memset rather than an explicit loop.
15305         Use x2nrealloc rather than xrealloc.
15306         Allow the use of `\0' as a delimiter.
15307         (readtokens): Likewise.
15308         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
15309
15310 2004-03-30  Jim Meyering  <jim@meyering.net>
15311
15312         * m4/realloc.m4: Remove file, since now it does no more than
15313         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
15314         the `configure.ac' section of module/realloc.
15315         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
15316
15317 2004-03-30  Bruno Haible  <bruno@clisp.org>
15318
15319         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
15320         nonnull.
15321
15322 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15323
15324         Merge changes to getloadavg.c from coreutils and Emacs.
15325
15326         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
15327         Define to an expression, not to the empty string.
15328         Include cloexec.h and xalloc.h.
15329         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
15330         Use set_cloexec_flag rather than rolling our own.
15331         * lib/cloexec.c, lib/cloexec.h: New files.
15332
15333 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15334
15335         * m4/cloexec.m4: New file.
15336
15337 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15338
15339         * lib/getopt.h: Sync with libc CVS.
15340
15341 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15342             Bruno Haible  <bruno@clisp.org>
15343
15344         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
15345         mbswidth.
15346
15347 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15348             Bruno Haible  <bruno@clisp.org>
15349
15350         * lib/mbswidth.h: Include <wchar.h> only if
15351         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
15352         <wchar.h>.
15353         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
15354
15355 2004-03-09  Paul Eggert  <eggert@twinsun.com>
15356
15357         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
15358         Sync with libc CVS.
15359         * lib/getopt_int.h: New file, also synced from libc.
15360
15361 2004-03-09  Paul Eggert  <eggert@twinsun.com>
15362
15363         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
15364         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
15365         Bring back getopt.c, getopt.h, getopt1.c.
15366
15367 2004-03-07  Paul Eggert  <eggert@twinsun.com>
15368
15369         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
15370         All uses changed.  Check for sa_sigaction member; this fixes
15371         a bug first reported by Jason Andrade in
15372         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15373
15374 2004-03-07  Paul Eggert  <eggert@twinsun.com>
15375
15376         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
15377         '#if' expressions.  Unlike the code it replaces, it does not
15378         depend on (defined _SC_PAGESIZE).  However, it does depend on
15379         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
15380         first reported by Jason Andrade in
15381         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15382
15383 2004-02-25  Simon Josefsson  <jas@extundo.com>
15384
15385         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
15386
15387 2004-02-25  Simon Josefsson  <jas@extundo.com>
15388
15389         * lib/strdup.h: New file.
15390         * lib/strdup.c: Include it.
15391         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
15392         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
15393
15394 2004-02-23  Karl Berry  <karl@gnu.org>
15395
15396         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
15397         (from fencepost.gnu.org:/gd/gnuorg).
15398
15399 2004-02-23  Karl Berry  <karl@gnu.org>
15400
15401         * config/srclistvars.sh (GNUORG) [karl]: redefine.
15402         * config/srclist.txt: add maintain/standards documents.
15403
15404 2004-02-18  Bruno Haible  <bruno@clisp.org>
15405
15406         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
15407         Reported by Derek Robert Price <derek@ximbiot.com>.
15408
15409 2004-02-16  Karl Berry  <karl@gnu.org>
15410
15411         * config/mkinstalldirs, install-sh: update from automake.
15412
15413 2004-02-06  Karl Berry  <karl@gnu.org>
15414
15415         * m4/po.m4: update from gettext 0.14.1.
15416
15417 2004-02-06  Karl Berry  <karl@gnu.org>
15418
15419         * lib/config.charset: update from gettext 0.14.1.
15420
15421 2004-02-05  Paul Eggert  <eggert@twinsun.com>
15422
15423         Add comments and code, prompted by suggestions from Bruno Haible
15424         for sh-quote.
15425         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
15426         describing the enum quoting_style values.
15427         * lib/quotearg.c (quotearg_alloc): New function.
15428         (quotearg_buffer_restyled): Treat lone { and } as special.
15429         Treat = as special.  Work around bug with older shells
15430         that "see" a '\' that is really the 2nd byte of a multibyte char.
15431         Quote empty string with shell_quoting_style.
15432
15433 2004-02-03  Bruno Haible  <bruno@clisp.org>
15434
15435         * m4/pipe.m4: New file, from GNU gettext.
15436
15437 2004-02-03  Bruno Haible  <bruno@clisp.org>
15438
15439         * lib/pipe.h: New file, from GNU gettext.
15440         * lib/pipe.c: New file, from GNU gettext.
15441
15442 2004-01-27  Bruno Haible  <bruno@clisp.org>
15443
15444         * m4/execute.m4: New file, from GNU gettext.
15445
15446 2004-01-27  Bruno Haible  <bruno@clisp.org>
15447
15448         * lib/execute.h: New file, from GNU gettext.
15449         * lib/execute.c: New file, from GNU gettext.
15450         * lib/w32spawn.h: New file, from GNU gettext.
15451
15452 2004-01-24  Paul Eggert  <eggert@twinsun.com>
15453
15454         Merge from diffutils.
15455
15456         * lib/file-type.c (file_type): Add typed memory objects.
15457         * lib/file-type.h (S_TYPEISTMO): New macro.
15458
15459         * lib/c-stack.h (c_stack_action): Remove argv argument.
15460         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
15461         (die): Don't calculate message unless segv_action returns.
15462         (get_stack_location, min_address_from_argv, max_address_from_argv,
15463         volatile stack_base, volatile_stack_size): Remove.
15464         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
15465         that every segmentation violation is a stack overflow.  (Ouch!)
15466         See Debian bug 136249 (still outstanding) for more info about why
15467         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
15468
15469 2004-01-24  Paul Eggert  <eggert@twinsun.com>
15470
15471         Exit-status fix from coreutils.
15472
15473         Use exit_failure consistently in place of EXIT_FAILURE,
15474         so that program exit statuses are consistent on failure.
15475
15476         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
15477         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
15478         * lib/argmatch.h: Comment fix to match the above.
15479         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
15480         Now a macro referring to exit_failure, instead of a separate
15481         variable.  Include "exitfail.h" to get it.
15482         * lib/xstrtol.h: Include "exitfail.h".
15483         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
15484
15485         * lib/long-options.c (parse_long_options): Use prototype
15486         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
15487         for clarity.
15488
15489 2004-01-21  Jim Meyering  <jim@meyering.net>
15490
15491         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
15492         so as not to conflict with a different-sized __mktime_internal
15493         function in GNU libc.
15494         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
15495         Problem building statically-linked `ls' reported by Michael Brunnbauer.
15496
15497 2004-01-20  Karl Berry  <karl@gnu.org>
15498
15499         * config/config.guess: update from config.
15500
15501         * config/srclistvars.sh: GNUWWWLICENSES for karl.
15502
15503 2004-01-20  Bruno Haible  <bruno@clisp.org>
15504
15505         Safer stack allocation.
15506         * lib/setenv.c: Include allocsa.h.
15507         (alloca): Remove fallback definition.
15508         (freea): Remove macro.
15509         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
15510         instead of freea.
15511
15512 2004-01-20  Bruno Haible  <bruno@clisp.org>
15513
15514         * m4/eealloc.m4: New file, from GNU gettext.
15515
15516 2004-01-20  Bruno Haible  <bruno@clisp.org>
15517
15518         * m4/allocsa.m4: New file, from GNU gettext.
15519
15520 2004-01-20  Bruno Haible  <bruno@clisp.org>
15521
15522         * lib/xallocsa.h: New file, from GNU gettext.
15523         * lib/xallocsa.c: New file, from GNU gettext.
15524
15525 2004-01-20  Bruno Haible  <bruno@clisp.org>
15526
15527         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
15528
15529 2004-01-20  Bruno Haible  <bruno@clisp.org>
15530
15531         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
15532         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
15533         specially.
15534
15535 2004-01-20  Bruno Haible  <bruno@clisp.org>
15536
15537         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
15538         patch.
15539
15540 2004-01-20  Bruno Haible  <bruno@clisp.org>
15541
15542         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
15543
15544 2004-01-20  Bruno Haible  <bruno@clisp.org>
15545
15546         * lib/eealloc.h: New file.
15547
15548 2004-01-20  Bruno Haible  <bruno@clisp.org>
15549
15550         * lib/binary-io.h: Avoid warnings on Cygwin.
15551
15552 2004-01-20  Bruno Haible  <bruno@clisp.org>
15553
15554         * lib/allocsa.h: New file, from GNU gettext.
15555         * lib/allocsa.c: New file, from GNU gettext.
15556
15557 2004-01-18  Karl Berry  <karl@gnu.org>
15558
15559         * doc/gpl.texi, doc/lgpl.texi: new files.
15560
15561 2004-01-18  Karl Berry  <karl@gnu.org>
15562
15563         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
15564         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
15565
15566 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15567
15568         Merge from coreutils.
15569
15570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
15571         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
15572         (gl_DEFAULT_POSIX2_VERSION): Move
15573         the documentation from 'configure' into 'config.hin',
15574         so that 'configure --help' isn't burdened by it and
15575         we don't have to worry about its formatting there.
15576         Reword the documentation so that it's more succinct
15577         and can be run together into a single paragraph.
15578         * m4/same.m4 (gl_SAME): Check for pathconf.
15579
15580 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15581
15582         Merge from coreutils.
15583
15584         * lib/posixver.c: Include posixver.h.
15585
15586         * lib/same.c: Include <stdbool.h>, <limits.h>.
15587         (_POSIX_NAME_MAX): Define if not defined.
15588         (MIN): New macro.
15589         (same_name): If file names are silently truncated, report
15590         that the file names are the same if they are the same after
15591         the silent truncation.
15592
15593         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
15594         conversion function.
15595         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
15596         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
15597         longer needed.
15598
15599 2004-01-15  Jim Meyering  <jim@meyering.net>
15600
15601         Merge from coreutils.
15602
15603         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
15604         if no library is required.
15605         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
15606         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
15607         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
15608         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
15609         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
15610         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
15611         value, $ac_cv_search_crypt, if it's "none required".
15612         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
15613         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
15614         not gl_FUNC_GETLOADAVG.
15615         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
15616         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
15617
15618 2004-01-15  Jim Meyering  <jim@meyering.net>
15619
15620         Merge from coreutils.
15621
15622         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
15623         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
15624         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
15625
15626         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
15627         optional configure-time default.
15628
15629         * lib/version-etc.c (version_etc_copyright): Update copyright date.
15630
15631         * lib/xreadlink.c (xreadlink): Correct outdated comment.
15632
15633 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
15634
15635         Merge from coreutils.
15636
15637         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
15638         value, $ac_cv_search_nanosleep, if it's "none required".
15639
15640 2004-01-14  Paul Eggert  <eggert@twinsun.com>
15641
15642         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
15643         with like-named macro in fnmatch.c.
15644         (EXT): Use an internal constant instead.
15645
15646         Merge fnmatch patches from glibc.
15647         * lib/fnmatch.c (mbsinit): Remove define.
15648         Add libc_hidden_ver (__fnmatch, fnmatch).
15649         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
15650         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
15651
15652 2004-01-14  Karl Berry  <karl@gnu.org>
15653
15654         * config/install-sh: update from automake.
15655
15656 2004-01-13  Karl Berry  <karl@gnu.org>
15657
15658         * config/install-sh: update from automake.
15659
15660 2004-01-09  Karl Berry  <karl@gnu.org>
15661
15662         * config/install-sh: update from automake.
15663
15664 2004-01-05  Karl Berry  <karl@gnu.org>
15665
15666         * config/config.{sub,guess}: update from config.
15667
15668 2003-12-31  Karl Berry  <karl@gnu.org>
15669
15670         * config/depcomp: update from automake.
15671
15672 2003-12-14  Karl Berry  <karl@gnu.org>
15673
15674         * lib/config.charset: update from gettext-runtime.
15675
15676 2003-12-03  Paul Eggert  <eggert@twinsun.com>
15677
15678         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
15679         Bug reported by Alfred M. Szmidt.
15680
15681 2003-12-03  Bruno Haible  <bruno@clisp.org>
15682
15683         * m4/gettext.m4: Upgrade from gettext-0.13.
15684         * m4/po.m4: Upgrade from gettext-0.13.
15685         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
15686         * m4/intmax.m4: New file, from gettext-0.13.
15687         * m4/printf-posix.m4: New file, from gettext-0.13.
15688
15689 2003-11-29  Karl Berry  <karl@gnu.org>
15690
15691         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
15692
15693 2003-11-25  Paul Eggert  <eggert@twinsun.com>
15694             Bruno Haible  <bruno@clisp.org>
15695
15696         * lib/printf-parse.h: Don't include sys/types.h.
15697         (ARG_NONE): New macro.
15698         (char_directive): Change type of *arg_index fields to size_t.
15699         * lib/printf-parse.c: Don't include sys/types.h.
15700         (SSIZE_MAX): Remove macro.
15701         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
15702         Remove unnecessary overflow check.
15703         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
15704         fields.
15705
15706 2003-11-25  Bruno Haible  <bruno@clisp.org>
15707
15708         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
15709
15710 2003-11-25  Bruno Haible  <bruno@clisp.org>
15711
15712         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
15713         gt_TYPE_SSIZE_T.
15714
15715 2003-11-24  Paul Eggert  <eggert@twinsun.com>
15716
15717         * modules/alloca: Remove dependency on xalloc.
15718
15719 2003-11-24  Paul Eggert  <eggert@twinsun.com>
15720
15721         * lib/alloca.c: Remove dependency on xalloc module.
15722         (xalloc_die): Remove.
15723         (memory_full) [!defined emacs]: New macro.
15724         [!defined emacs]: Don't include xalloc.h.
15725         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
15726         address arithmetic overflows.  Change datatypes a bit to avoid
15727         unnecessary casts.
15728
15729 2003-11-22  Jim Meyering  <jim@meyering.net>
15730
15731         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
15732         s/size/size_t/.
15733
15734 2003-11-21  Karl Berry  <karl@gnu.org>
15735
15736         * config/config.{sub,guess}: update from config.
15737
15738 2003-11-18  Karl Berry  <karl@gnu.org>
15739
15740         * config/config.{sub,guess}: update from config.
15741
15742         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
15743
15744 2003-11-17  Paul Eggert  <eggert@twinsun.com>
15745
15746         * README: Mention that S+T cannot overflow if S is the size of
15747         an existing object and T is sufficiently small.
15748
15749 2003-11-17  Jim Meyering  <jim@meyering.net>
15750
15751         On systems without utime and without a utimes function capable of
15752         dealing with a NULL struct utimbuf* argument, this utime replacement
15753         could -- in unusual circumstances -- leak a file descriptor.
15754         * lib/utime.c: Include <unistd.h> and <errno.h>.
15755         (utime_null): Be sure to close `fd' and to preserve errno.
15756         Reported by Geoff Collyer via Arnold Robbins.
15757
15758 2003-11-17  Bruno Haible  <bruno@clisp.org>
15759
15760         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
15761         (Depends-on): Add xsize.
15762
15763 2003-11-17  Bruno Haible  <bruno@clisp.org>
15764
15765         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
15766
15767 2003-11-17  Bruno Haible  <bruno@clisp.org>
15768
15769         * lib/vasnprintf.c (alloca): Remove fallback definition.
15770         (freea): Remove definition.
15771         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
15772         Reported by Paul Eggert.
15773
15774 2003-11-16  Paul Eggert  <eggert@twinsun.com>
15775             Bruno Haible  <bruno@clisp.org>
15776
15777         Protect against address arithmetic overflow.
15778         * lib/printf-args.h: Include stddef.h.
15779         (arguments): Change type of field 'count' to size_t.
15780         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
15781         'unsigned int' where appropriate.
15782         * lib/printf-parse.h: Include sys/types.h.
15783         (char_directive): Change type of *arg_index fields to ssize_t.
15784         (char_directives): Change type of fields 'count', max_*_length to
15785         size_t.
15786         * lib/printf-parse.c: Include sys/types.h and xsize.h.
15787         (SSIZE_MAX): Define fallback value.
15788         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
15789         instead of 'int' where appropriate. Check a_allocated, d_allocated
15790         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
15791         * lib/vasnprintf.c: Include xsize.h.
15792         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
15793         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
15794         overflow. Avoid wraparound when converting a width or precision from
15795         decimal to binary.
15796
15797 2003-11-16  Bruno Haible  <bruno@clisp.org>
15798
15799         Update from GNU gettext.
15800         * lib/printf-parse.c: Generalize to it can be compiled for wide
15801         strings.
15802         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
15803         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
15804         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
15805         SNPRINTF): New macros.
15806         Don't include <alloca.h> if the file is used inside libintl.
15807         (local_wcslen): New function, for Solaris 2.5.1.
15808         (VASNPRINTF): Use it instead of wcslen.
15809
15810 2003-11-16  Bruno Haible  <bruno@clisp.org>
15811
15812         * lib/xsize.h (xmax): New function.
15813         (xsum, xsum3, xsum4): Declare as "pure" functions.
15814
15815 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15816
15817         * modules/xalloc (Files): Undo latest change, since xalloc.h
15818         no longer needs SIZE_MAX or PTRDIFF_MAX.
15819
15820 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15821
15822         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
15823         gl_PTRDIFF_MAX.
15824
15825 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15826
15827         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
15828         "return", to pacify some unknown compiler.  Problem reported
15829         by Joerg Schilling.
15830
15831 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15832
15833         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
15834         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
15835         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
15836         heuristic is just as accurate as far as we know, and it removes a
15837         dependency on size_max.m4 and ptrdiff_max.m4.
15838
15839 2003-11-11  Bruno Haible  <bruno@clisp.org>
15840
15841         * modules/xsize (Files): Add m4/size_max.m4.
15842         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
15843
15844 2003-11-11  Bruno Haible  <bruno@clisp.org>
15845
15846         * m4/size_max.m4: New file.
15847         * m4/ptrdiff_max.m4: New file.
15848         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
15849         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
15850         (gl_XALLOC): Invoke it.
15851
15852 2003-11-11  Bruno Haible  <bruno@clisp.org>
15853
15854         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
15855         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
15856         defined.
15857
15858 2003-11-10  Paul Eggert  <eggert@twinsun.com>
15859
15860         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
15861         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
15862         rejected some allocations of exactly SIZE_MAX - 2 bytes.
15863         From Bruno Haible.
15864         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
15865         not (size_t) -1, since it's defined here.
15866
15867 2003-11-09  Karl Berry  <karl@gnu.org>
15868
15869         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
15870
15871 2003-11-06  Paul Eggert  <eggert@twinsun.com>
15872
15873         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
15874         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
15875         Reject sizes of exactly SIZE_MAX bytes.
15876         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
15877         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
15878
15879 2003-11-05  Bruno Haible  <bruno@clisp.org>
15880
15881         * lib/xsize.h: Include limits.h, to avoid a possible collision with
15882         SIZE_MAX defined in <limits.h> on Solaris.
15883
15884 2003-11-04  Jim Meyering  <jim@meyering.net>
15885
15886         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
15887         variable names, rather than @VAR@.
15888         * modules/poll: Likewise.
15889
15890 2003-11-04  Bruno Haible  <bruno@clisp.org>
15891
15892         * modules/xsize: New file.
15893         * modules/linebreak: Depend on xsize.
15894         * MODULES.html.sh (func_all_modules): Add xsize.
15895
15896 2003-11-04  Bruno Haible  <bruno@clisp.org>
15897
15898         * m4/xsize.m4: New file.
15899
15900 2003-11-04  Bruno Haible  <bruno@clisp.org>
15901
15902         * lib/xsize.h: New file.
15903         * lib/linebreak.c: Include xsize.h.
15904         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
15905         argument for overflow.
15906         Suggested by Paul Eggert.
15907
15908 2003-11-03  Karl Berry  <karl@gnu.org>
15909
15910         * config/config.{guess,sub}: update from config.
15911
15912 2003-11-03  Jim Meyering  <jim@meyering.net>
15913
15914         * modules/userspec (lib_SOURCES): Add userspec.h.
15915         (Include): Add "userspec.h".
15916         Improve description.
15917
15918 2003-11-03  Jim Meyering  <jim@meyering.net>
15919
15920         * lib/userspec.c: Include "userspec.h".
15921         * lib/userspec.h: New file.
15922
15923 2003-11-03  Bruno Haible  <bruno@clisp.org>
15924
15925         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
15926
15927 2003-11-03  Bruno Haible  <bruno@clisp.org>
15928
15929         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
15930         available, to avoid (extremely rare) race condition.
15931         Suggested by Paul Eggert.
15932
15933 2003-11-02  Karl Berry  <karl@gnu.org>
15934
15935         * config/srclist.txt (vasprintf.c): sync broken, sigh.
15936
15937 2003-10-31  Paul Eggert  <eggert@twinsun.com>
15938
15939         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
15940         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
15941         (read_filesystem_list): Set and use me_type_malloced.
15942         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
15943         whatever the type happens to be), for brevity and consistency.
15944         Check for size calculation overflow on Alphas running OSF/1.
15945
15946 2003-10-31  Jim Meyering  <jim@meyering.net>
15947
15948         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
15949
15950         * lib/linebuffer.c: Include <string.h> for declaration of memset.
15951
15952 2003-10-30  Paul Eggert  <eggert@twinsun.com>
15953             Bruno Haible  <bruno@clisp.org>
15954
15955         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
15956         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
15957
15958 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15959
15960         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
15961         netbsd*-gnu*.  Suggested by Robert Millan.
15962
15963 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15964
15965         * modules/group-member: Depend on stdbool.
15966
15967 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15968
15969         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
15970
15971 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15972
15973         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
15974         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
15975         after the 'gnu' in these cases.  This fixes some bugs in the
15976         previous change, and is based on suggestions by Robert Millan.
15977
15978 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15979
15980         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
15981         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
15982         no longer needed.
15983         * lib/quotearg.c (quotearg_n_options): Use it.
15984         * lib/group-member.c: Include <stdbool.h>.
15985         (free_group_info): Arg is now const *; don't free arg.
15986         (get_group_info): Now returns bool and accepts struct group_info *,
15987         rather than returning a malloc'ed struct group_info *.
15988         All uses changed.  Check for overflow in internal size calculation.
15989
15990         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
15991         rather than xmalloc/xrealloc.
15992         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
15993         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
15994         conformance bug: the old code used a pointer after freeing the
15995         storage that it addressed.
15996         * lib/hash.c (hash_initialize): Simplify the code by using
15997         xalloc_oversized rather than doing it by hand.
15998         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
15999         the buffer preserved.  Use free and xmalloc instead.
16000         * lib/quotearg.c (quotearg_n_options): Likewise.
16001         Use a simpler test for size overflow.  Don't use xalloc_oversized
16002         because unsigned int might be wider than size_t (!); this suggests
16003         that we should switch from unsigned int to size_t for slot numbers.
16004
16005 2003-10-28  Paul Eggert  <eggert@twinsun.com>
16006
16007         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
16008         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
16009         NetBSD kernels.  Requested by Richard Stallman.
16010
16011 2003-10-27  Paul Eggert  <eggert@twinsun.com>
16012
16013         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
16014         to allocate the returned structure.  Do not allocate a subarray,
16015         as x2nrealloc will do that.
16016         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
16017         instead of xnrealloc.
16018         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
16019
16020 2003-10-27  Bruno Haible  <bruno@clisp.org>
16021
16022         * lib/stdbool_.h: Better support for BeOS.
16023
16024 2003-10-26  Paul Eggert  <eggert@twinsun.com>
16025
16026         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
16027         now uses inline.
16028
16029 2003-10-26  Paul Eggert  <eggert@twinsun.com>
16030
16031         * lib/xalloc.h (xalloc_oversized): New static inline function, for
16032         callers that want to do their own size-overflow checking.  Include
16033         <stdbool.h>, since xalloc_oversized returns bool.
16034         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
16035         to use xalloc_oversized.
16036
16037         Add two functions x2realloc, x2nrealloc, for programs that grow
16038         arrays dynamically by doubling their sizes.
16039         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
16040         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
16041         New functions.
16042
16043         Port to C99 semantics for 'inline' of external functions.
16044         Bug reported by Bruno Haible.
16045         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
16046         with the old contents of xnmalloc.
16047         (xnmalloc, xmalloc): Use it.
16048         (xnrealloc_inline): New static inline function,
16049         with the old contents of xnrealloc.
16050         (xnrealloc, xrealloc): Use it.
16051
16052         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
16053         that.
16054
16055 2003-10-26  Karl Berry  <karl@gnu.org>
16056
16057         * config/srclist.txt (COPYING.DOC): no longer available from
16058         /gd/gnuorg; don't know where the ultimate source is.
16059
16060 2003-10-25  Paul Eggert  <eggert@twinsun.com>
16061
16062         Fix several address-calculation bugs in the hash modules,
16063         plus some minor code cleanup.
16064
16065         * lib/hash.h: Include <stdbool.h>, for bool.
16066         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
16067         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
16068         hash_get_n_entries, hash_get_max_bucket_length,
16069         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
16070         hash_rehash): Use size_t rather than unsigned.
16071         * lib/hash.c (struct hash_table, hash_get_n_buckets,
16072         hash_get_n_buckets_used, hash_get_n_entries,
16073         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
16074         hash_get_entries, hash_do_for_each, hash_string, is_prime,
16075         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
16076         Likewise.
16077         (SIZE_MAX): Define if not defined.
16078         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
16079         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
16080         hash_print):
16081         Use const * when possible.
16082         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
16083         (check_tuning): Fix bug: if tuning parameters were very close to
16084         0 or 1, rounding errors could have caused subscript violations.
16085         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
16086         (hash_initialize): Add 'fail:' label
16087         to free table and return NULL, and use it to simplify code.
16088         Use calloc rather than clearing the storage ourself.
16089         (hash_initialize, hash_rehash): Check for arithmetic overflow in
16090         buffer size calculations.
16091         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
16092         Include <stddef.h>, for size_t.
16093         * lib/hash-pjw.c (hash_pjw): Likewise.
16094         Switch to method described by Bruno Haible.
16095         Include <limits.h>, for CHAR_BIT.
16096         (SIZE_BITS): New macro.
16097
16098 2003-10-23  Paul Eggert  <eggert@twinsun.com>
16099
16100         * m4/getline.m4 (AM_FUNC_GETLINE):
16101         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
16102         hosts.  Problem reported by Derek Robert Price in
16103         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
16104         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
16105         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
16106
16107 2003-10-21  Paul Eggert  <eggert@twinsun.com>
16108
16109         * lib/getndelim2.c (getndelim2): When size calculation overflows,
16110         ceiling the allocation at NMAX bytes rather than silently
16111         discarding input bytes before NMAX is reached.  This makes
16112         a difference only if NMAX exceeds SIZE_MAX / 2.
16113
16114         * lib/obstack.c: Merge from glibc.
16115         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
16116         Add libc_hidden_def (_obstack_newchunk).
16117         (_obstack_free) [! defined _LIBC]: Remove.
16118         [defined _LIBC]: Make a strong alias from obstack_free, rather than
16119         a clone of the function body.
16120         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
16121         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
16122
16123         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
16124         glibc.
16125         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
16126         arg to memcpy.
16127
16128         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
16129         (obstack_ptr_grow_fast, obstack_int_grow_fast):
16130         Don't use lvalue casts, as GCC plans to remove support for them
16131         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
16132         was also present in the non-GCC version, indicating that this
16133         code had always been buggy and had never been widely used.
16134         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
16135         Use the fast variant of each macro, rather than copying the
16136         definiens of the fast variant; that way, we'll be more likely to
16137         catch future bugs in the fast variants.
16138
16139 2003-10-20  Bruno Haible  <bruno@clisp.org>
16140
16141         * modules/wait-process: New file.
16142         * MODULES.html.sh (func_all_modules): Add wait-process.
16143
16144 2003-10-20  Bruno Haible  <bruno@clisp.org>
16145
16146         * m4/wait-process.m4: New file.
16147
16148 2003-10-20  Bruno Haible  <bruno@clisp.org>
16149
16150         * lib/wait-process.h: New file, from GNU gettext.
16151         * lib/wait-process.c: New file, from GNU gettext.
16152
16153 2003-10-19  Jim Meyering  <jim@meyering.net>
16154
16155         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
16156         HPUX 10.20.
16157
16158 2003-10-18  Karl Berry  <karl@gnu.org>
16159
16160         * config/config.guess: update from config.
16161
16162 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16163
16164         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
16165         (getgroups): First arg is int, not size_t.
16166         Don't let 'free' mangle errno.
16167
16168 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16169
16170         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
16171
16172 2003-10-16  Karl Berry  <karl@gnu.org>
16173
16174         * config/config.{guess,sub}: update from config.
16175
16176 2003-10-16  Jim Meyering  <jim@meyering.net>
16177
16178         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
16179         memcpy.
16180
16181 2003-10-15  Paul Eggert  <eggert@twinsun.com>
16182
16183         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
16184         (SIZE_MAX): Remove.
16185         (new_exclude, add_exclude_file): Initial size no longer needs to
16186         be a power of 2.
16187         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
16188         our own address arithmetic overflow checking.
16189
16190         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
16191         (fnmatch): Do not alloca more than 2000 wide characters;
16192         instead, use malloc for large buffers.
16193         Check for address arithmetic overflow, and return -1
16194         with errno set to ENOMEM in that case.
16195         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
16196         (NEW_PATTERN): Do not alloca more than 8000 bytes;
16197         instead, return -1.  Check for address arithmetic overflow.
16198
16199 2003-10-14  Paul Eggert  <eggert@twinsun.com>
16200
16201         Handle invalid suffixes and overflow independently, so that
16202         callers can treat them independently as needed.  Fix some bugs in
16203         suffix handling, e.g., "100k@" was not diagnosed as an invalid
16204         suffix for a human-readable blocksize.  The major caller-visible
16205         change is the addition of a new
16206         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
16207         that both overflow and suffix chars were found.
16208
16209         * lib/human.c (humblock): Don't check separately for invalid suffix
16210         char; that is xstrtoumax's job (now that its bug is fixed).
16211         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
16212         INTMAX_MAX]: New macros.
16213         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
16214         TYPE_MAXIMUM): New macros.
16215         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
16216         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
16217         if overflow occurs, as it's what __strtol does and it's more useful
16218         in practice.
16219         (__xstrtol): If __strtol reports some error other than ERANGE,
16220         reflect it to the caller as LONGINT_INVALID.  If it reports
16221         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
16222         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
16223         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
16224         value.
16225         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
16226         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
16227         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
16228         [defined UINTMAX_MAX]: New macros.
16229
16230 2003-10-14  Bruno Haible  <bruno@clisp.org>
16231
16232         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
16233
16234 2003-10-14  Bruno Haible  <bruno@clisp.org>
16235
16236         * m4/sig_atomic_t: New file, from GNU gettext.
16237         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
16238
16239 2003-10-14  Bruno Haible  <bruno@clisp.org>
16240
16241         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
16242         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
16243         Also use volatile where needed.
16244
16245 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16246
16247         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
16248         Change maintainer from Bruno Haible to 'all'.
16249
16250 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16251
16252         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
16253
16254 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16255
16256         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
16257         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
16258         and define in terms of the other primitives.
16259         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
16260         (SIZE_MAX): Define if not already defined.
16261         (array_size_overflow): New function.
16262         (xalloc_die): Abort instead of exiting if 'error' returns.
16263         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
16264         (xmalloc, xrealloc): Use them.
16265         (xcalloc): Check for address arithmetic overflow.
16266         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
16267         a bit faster than strcpy.
16268
16269 2003-10-10  Simon Josefsson  <jas@extundo.com>
16270
16271         * modules/argp (Depends-on): Add restrict and strcase.
16272
16273 2003-10-10  Simon Josefsson  <jas@extundo.com>
16274
16275         * m4/argp.m4: Add AC_C_INLINE.
16276
16277 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16278
16279         Merge getpass from libc, plus a few fixes.
16280
16281         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
16282         Include <stdbool.h>.
16283         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
16284         __fsetlocking to empty.
16285         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
16286         do include <bits/libc-lock.h>.
16287         Do not include <fcntl.h>; not needed.
16288         [_LIBC]: Include <wchar.h>.
16289         (NOTCANCEL_MODE): New macro.
16290         (flockfile, funlockfile) [_LIBC]: New macros.
16291         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
16292         [!_LIBC]: New macros.
16293         (call_fclose): New function.
16294         (getpass): Use it.  Save tty stream separately; this simplifies the
16295         code and makes it more reliable if stdin happens to equal stdout.
16296         Invoke __fsetlocking on tty.
16297         Handle thread cancellation if needed.
16298         Namespace cleanup (use __tcgetattr, __getline).
16299         Use bool for Booleans.
16300         [USE_IN_LIBIO]: Handle wide streams.
16301         [!_LIBC]: Unconditionally do the fseek, since we don't know what
16302         stream might go where.
16303
16304         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
16305         doesn't have to include <stdio.h> before us.
16306         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
16307         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
16308         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
16309         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
16310         if not declared, so that we can use getpass.c code from libc without
16311         rewriting it.
16312         (flockfile, ftrylockfile, funlockfile): New macros.
16313
16314 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16315
16316         * modules/getpass: Depend on stdbool.
16317
16318 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16319
16320         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
16321
16322 2003-10-07  Karl Berry  <karl@gnu.org>
16323
16324         * config/config.{guess,sub}: update from config.
16325
16326 2003-10-06  Jim Meyering  <jim@meyering.net>
16327             Bruno Haible  <bruno@clisp.org>
16328
16329         This lets translators provide better translations for the
16330         "Written by ..." part of --version output.
16331         * lib/version-etc.h: Include stdarg.h.
16332         (version_etc_copyright): Declare as readonly.
16333         (version_etc): Make this function variadic with a NULL-terminated list
16334         of author name strings.
16335         (version_etc_va): New declaration.
16336         * lib/version-etc.c: Include stdarg.h, stdlib.h.
16337         (version_etc_copyright): Declare as readonly.
16338         (version_etc_va): New function. Provide a different translatable string
16339         for each possible number of authors < 10. Abbreviate when there are 10
16340         authors or more.
16341         (version_etc): Make this function variadic. Call version_etc_va.
16342         Suggestion from Gary V. Vaughan.
16343
16344         * lib/long-options.h (parse_long_options): Change prototype: the
16345         authors string is moved to the end and becomes variadic.
16346         * lib/long-options.c: Include stdarg.h.
16347         (parse_long_options): Make this function variadic, too.
16348         Call version_etc_va, not version_etc.
16349
16350 2003-10-06  Bruno Haible  <bruno@clisp.org>
16351
16352         * modules/version-etc-2: Remove file.
16353         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
16354
16355 2003-10-06  Bruno Haible  <bruno@clisp.org>
16356
16357         * modules/fatal-signal: New file.
16358         * MODULES.html.sh (func_all_modules): Add fatal-signal.
16359
16360 2003-10-06  Bruno Haible  <bruno@clisp.org>
16361
16362         * m4/fatal-signal.m4: New file.
16363         * m4/signalblocking.m4: New file, from GNU gettext.
16364
16365 2003-10-06  Bruno Haible  <bruno@clisp.org>
16366
16367         * lib/version-etc-2.h: Remove file.
16368         * lib/version-etc-2.c: Remove file.
16369
16370 2003-10-06  Bruno Haible  <bruno@clisp.org>
16371
16372         * lib/fatal-signal.h: New file, from GNU gettext.
16373         * lib/fatal-signal.c: New file, from GNU gettext.
16374
16375 2003-10-05  Paul Eggert  <eggert@twinsun.com>
16376
16377         * README: Rework advice for preventing empty .o files.
16378         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
16379         not <sys/types.h>.
16380
16381 2003-10-04  Karl Berry  <karl@gnu.org>
16382
16383         * lib/argp*: update from libc.
16384
16385 2003-10-04  Karl Berry  <karl@gnu.org>
16386
16387         * config/config.{guess,sub}: update from config.
16388
16389 2003-10-02  Bruno Haible  <bruno@clisp.org>
16390
16391         * modules/lchown (Include): Add lchown.h.
16392         * modules/time_r (Include): Use "..." syntax.
16393         * modules/xgetdomainname (Include): Add xgetdomainname.h.
16394
16395 2003-10-01  Simon Josefsson  <jas@extundo.com>
16396
16397         * MODULES.html.sh (func_all_modules): Move gethostname from section
16398         'based on' to section 'lacking' POSIX:2001.
16399
16400 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
16401
16402         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
16403         to output mode on the same stream.
16404
16405 2003-09-29  Paul Eggert  <eggert@twinsun.com>
16406
16407         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
16408         Fix arg typo in previous patch.
16409
16410 2003-09-28  Jim Meyering  <jim@meyering.net>
16411
16412         * lib/error.c: Correct cpp indentation.
16413
16414 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16415
16416         * modules/free: New file.
16417
16418 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16419
16420         * m4/free.m4: New file.
16421
16422 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16423
16424         * lib/minmax.h (MIN, MAX)
16425         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
16426         Omit the special code that used __typeof__, since we worry that
16427         it could be more trouble than it's worth.  See:
16428         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
16429         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
16430
16431         * lib/free.c: New file.
16432
16433 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
16434
16435         Trivial fixes to Makefile.am parts of module listings.
16436         * modules/strstr: Append strstr.h to lib_SOURCES.
16437         * modules/strcase: Likewise, for strcase.h.
16438
16439 2003-09-27  Karl Berry  <karl@gnu.org>
16440
16441         * config/mkinstalldirs: update from automake.
16442
16443 2003-09-26  Paul Eggert  <eggert@twinsun.com>
16444
16445         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
16446         (error_tail): Do not loop, reallocating temporary buffer, since
16447         the output cannot contain more wide characters than the input
16448         contains bytes, the size must be big enough already.  This avoids
16449         one potential size overflow calculation.  Check for size overflow
16450         when calculating temporary buffer size.  Free temporary buffer
16451         when done, if it was allocated with malloc; this plugs a memory
16452         leak.  Remove casts from void * to pointers, that are no longer
16453         needed now that we're assuming C89 or better.
16454
16455         Merge error changes from glibc.
16456
16457         * lib/error.c, error.h: Update copyright notice header to match glibc.
16458         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
16459         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
16460         Disable cancellation while printing error.
16461         * lib/error.h: Prepend __ to parameter names.
16462
16463 2003-09-26  Jim Meyering  <jim@meyering.net>
16464
16465         * lib/error.c (error_tail): Move some declarations
16466         into inner scope where the local variables are used.
16467
16468 2003-09-26  Bruno Haible  <bruno@clisp.org>
16469
16470         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
16471         stpncpy().
16472         Don't define stpncpy through config.h; it's now done through stpncpy.h.
16473
16474 2003-09-26  Bruno Haible  <bruno@clisp.org>
16475
16476         * lib/stpncpy.h (gnu_stpncpy): New declaration.
16477         (stpncpy): Define as alias for gnu_stpncpy.
16478         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
16479
16480 2003-09-25  Simon Josefsson  <jas@extundo.com>
16481
16482         * lib/xgetdomainname.h: New file.
16483         * lib/xgetdomainname.c: New file.
16484
16485 2003-09-25  Simon Josefsson  <jas@extundo.com>
16486             Bruno Haible  <bruno@clisp.org>
16487
16488         * modules/getdomainname: New file.
16489         * modules/xgetdomainname: New file.
16490         * MODULES.html.sh (func_all_modules): Add getdomainname,
16491         xgetdomainname.
16492
16493 2003-09-25  Simon Josefsson  <jas@extundo.com>
16494             Bruno Haible  <bruno@clisp.org>
16495
16496         * m4/getdomainname.m4: New file.
16497
16498 2003-09-25  Simon Josefsson  <jas@extundo.com>
16499             Bruno Haible  <bruno@clisp.org>
16500
16501         * lib/getdomainname.h: New file.
16502         * lib/getdomainname.c: New file.
16503
16504 2003-09-25  Karl Berry  <karl@gnu.org>
16505
16506         * lib/argp-fmtstream.c, argp-help.c: update from libc.
16507
16508 2003-09-25  Karl Berry  <karl@gnu.org>
16509
16510         * config/install-sh: update from automake.
16511
16512 2003-09-25  Bruno Haible  <bruno@clisp.org>
16513
16514         * modules/version-etc-2: New file, from modules/version-etc with
16515         modifications.
16516         * MODULES.html.sh (func_all_modules): Add version-etc-2.
16517
16518 2003-09-25  Bruno Haible  <bruno@clisp.org>
16519
16520         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
16521         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
16522
16523 2003-09-24  Simon Josefsson  <jas@extundo.com>
16524
16525         * modules/xgethostname: Add xgethostname.h.
16526
16527 2003-09-24  Paul Eggert  <eggert@twinsun.com>
16528
16529         * lib/linebuffer.c (freebuffer): Don't free the argument, just
16530         the buffer associated with the argument.  Bug reported by
16531         Simon Josefsson.
16532
16533 2003-09-24  Paul Eggert  <eggert@twinsun.com>
16534
16535         * README: Document assumptions that 'int' is at least 32 bits
16536         wide, that integer arithmetic is 2's complement without overflow,
16537         that there are no holes in integer values, that adding sizes of
16538         two nonoverlapping objects can't overflow, and that all-bits-zero
16539         yields scalar zero.  Fix spelling and capitalization typos.
16540
16541 2003-09-19  Karl Berry  <karl@gnu.org>
16542
16543         * lib/argp.h: update from libc.
16544
16545 2003-09-17  Paul Eggert  <eggert@twinsun.com>
16546
16547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
16548         to avoid spurious warnings like "AC_RUN_IFELSE was called before
16549         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
16550
16551 2003-09-17  Paul Eggert  <eggert@twinsun.com>
16552
16553         * gnulib-tool: Use "test -h", not "test -L", for portability
16554         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
16555         (tags_regexp): Remove, since \| doesn't conform to POSIX.
16556         (sed_extract_prog): Issue s commands one-by-one, rather than
16557         using \| in one s command.
16558
16559 2003-09-16  Paul Eggert  <eggert@twinsun.com>
16560
16561         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
16562         input error, instead of returning NULL the next time we are called
16563         (and therefore losing track of errno).
16564
16565 2003-09-16  Bruno Haible  <bruno@clisp.org>
16566
16567         * gnulib-tool (func_create_testdir): Warn about duplicated
16568         dependencies.
16569
16570 2003-09-15  Paul Eggert  <eggert@twinsun.com>
16571
16572         * modules/argmatch, modules/fatal, modules/obstack,
16573         modules/xalloc, modules/xgethostname: Sort dependencies by
16574         importance, not alphabetically.
16575
16576 2003-09-15  Paul Eggert  <eggert@twinsun.com>
16577
16578         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
16579         fails, so that the caller gets the proper errno.
16580
16581         * lib/readutmp.c (read_utmp): Likewise.
16582         Check for fstat error.  Close stream and free storage
16583         when failing.
16584
16585 2003-09-14  Karl Berry  <karl@gnu.org>
16586
16587         * config/srclist.txt (strdup.c): disable for c89 changes.
16588
16589 2003-09-14  Jim Meyering  <jim@meyering.net>
16590
16591         * lib/getloadavg.c: Correct cpp indentation.
16592         * lib/strdup.c: Likewise.
16593         * lib/vasnprintf.c: Likewise.
16594
16595 2003-09-14  Bruno Haible  <bruno@clisp.org>
16596
16597         * modules/fwriteerror: New file.
16598         * MODULES.html.sh (func_all_modules): Add fwriteerror.
16599
16600 2003-09-14  Bruno Haible  <bruno@clisp.org>
16601
16602         * lib/fwriteerror.h: New file.
16603         * lib/fwriteerror.c: New file.
16604
16605 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16606
16607         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
16608         modules/xgethostname, modules/xalloc: Depend on exit.
16609
16610 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16611
16612         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
16613
16614         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
16615         and AC_MINIX, too, so that their extensions are available.
16616
16617         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
16618         This macro has been superseded by gl_BACKUPFILE.
16619
16620         More patches to assume C89 or better.
16621
16622         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
16623
16624         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
16625         unconditionally.
16626         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
16627         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
16628         Include <string.h>, <stdlib.h> unconditionally.
16629         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
16630         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
16631         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
16632         headers or for string.h.
16633         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
16634         or strtoul.
16635
16636         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
16637         headers.
16638         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
16639         * m4/userspec.m4 (gl_USERSPEC): Likewise.
16640         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
16641         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
16642         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16643         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
16644         memcpy, memset.
16645         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
16646         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
16647         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
16648         strtol.
16649         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
16650         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
16651         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
16652         strtoul.
16653
16654 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16655
16656         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
16657         * lib/obstack.c [!defined _LIBC]: Likewise.
16658         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
16659         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
16660         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
16661
16662         More changes to assume C89 or better.
16663
16664         * lib/error.c (error_tail): Assume vprintf.
16665
16666         * lib/argmatch.c (getenv): Remove decl.
16667         * lib/progreloc.c (get_full_program_name): Define via prototype.
16668         * lib/setenv.c (clearenv): Likewise.
16669         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
16670         needed.
16671         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
16672         (malloc, memcpy): Remove decls.
16673         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
16674         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
16675         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
16676         (memcpy): Remove macro.
16677         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
16678         (__P): Remove.  All uses removed.
16679         (PTR): Remove.  All uses changed to void *.
16680         (CHAR_BIT, NULL): Remove.
16681         (spaces, zeros, memset_space, memset_zero)
16682         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
16683         Remove.
16684         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
16685         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
16686         Define with prototype.
16687         Remove now-unnecessary prototype decl.
16688         (extra_args_spec): Assume ANSI C.  All uses changed.
16689         (extra_args_spec_iso): Remove.
16690         (my_strftime, emacs_strftimeu): Define via prototype.
16691         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
16692         unconditionally.
16693         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
16694         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
16695         (strtoul, strtol): Remove decls.
16696         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
16697         LONG_MAX): Remove.
16698         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
16699         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
16700         (LOCALE_PARAM_PROTO): New macro.
16701         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
16702         (INTERNAL (strtol), strtol): Define with a prototype.
16703         (PARAMS): Remove.  All uses removed.
16704         * lib/tempname.c: Include <string.h> unconditionally.
16705         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
16706         * lib/xgethostname.c (main): Define with a prototype.
16707         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
16708         Include <stdlib.h> unconditionally.
16709         (calloc, malloc, realloc, free): Remove decls.
16710         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
16711         Include <stdlib.h> unconditionally.  Sort include file names.
16712         (strtod): Remove.
16713         (xstrtod): Define with a prototype.
16714         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
16715         (strtol, strtoul): Remove decls.
16716
16717 2003-09-11  Paul Eggert  <eggert@twinsun.com>
16718
16719         More patches to assume C89 or better.
16720         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
16721         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
16722         string.h, memchr, STDC_HEADERS.
16723
16724 2003-09-11  Paul Eggert  <eggert@twinsun.com>
16725
16726         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
16727         Include <stdlib.h>, <string.h> unconditionally.
16728         Remove now-unnecessary cast to char *.
16729         * lib/strnlen.c: Include <string.h> unconditionally.
16730         * lib/yesno.c (yesno): Define with a prototype.
16731
16732 2003-09-11  Bruno Haible  <bruno@clisp.org>
16733
16734         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
16735
16736 2003-09-10  Jim Meyering  <jim@meyering.net>
16737
16738         * lib/error.c: Correct indentation of cpp directives.
16739
16740 2003-09-10  Bruno Haible  <bruno@clisp.org>
16741
16742         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
16743         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
16744         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
16745         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
16746         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
16747         <stdlib.h> and <string.h> checks.
16748         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
16749         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
16750
16751 2003-09-10  Bruno Haible  <bruno@clisp.org>
16752
16753         * lib/strcspn.c: Include <string.h> unconditionally.
16754         * lib/strpbrk.c: Include <string.h> unconditionally.
16755         * lib/strstr.c: Include <string.h> unconditionally.
16756         * lib/unicodeio.c: Include <string.h> unconditionally.
16757         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
16758         * lib/unsetenv.c: Likewise.
16759         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
16760         * lib/yesno.c: Include <stdlib.h> unconditionally.
16761         (rpmatch): Add prototype.
16762
16763 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16764
16765         More patches to assume C89 or better.
16766         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
16767         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
16768         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
16769         or for string.h.
16770         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
16771         stdlib.h.
16772         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
16773         C headers.
16774         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
16775         string.h.
16776         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
16777         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
16778         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
16779         or for string.h.
16780         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
16781         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
16782         C headers.
16783         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
16784         memcpy.
16785         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
16786         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
16787         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
16788         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
16789         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
16790         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
16791         string.h, free.
16792         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
16793         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
16794         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
16795         C headers, or for string.h.
16796         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
16797         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
16798         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
16799         headers, memory.h, stdlib.h, string.h, strings.h.
16800         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
16801         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
16802         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
16803         strchr.
16804         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
16805         headers, memory.h, string.h.
16806         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
16807         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
16808         free.
16809         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
16810         headers.
16811         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
16812         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
16813         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
16814         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
16815         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
16816
16817 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16818
16819         More K&R removal.
16820
16821         * lib/acosl.c (main): Use a prototype.
16822         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
16823         tanl.c: Likewise.
16824
16825         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
16826
16827         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
16828         (getopt, etopt_long, getopt_long_only, _getopt_internal)
16829         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
16830         with a prototype.
16831         * lib/getopt.c (const): Remove macro.
16832         Include <string.h> unconditionally.
16833         (my_index): Remove; all uses changed to strchr.
16834         (strlen): Remove decl.
16835         (exchange): Remove forward decl; no longer needed.
16836         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
16837         Define with prototype.
16838         * lib/getopt1.c (const): Remove macro.
16839         (getopt_long, getopt_long_only, main): Define with prototype.
16840
16841         * lib/getugroups.c: Include <string.h> unconditionally.
16842
16843         * lib/getusershell.c: Include <stdlib.h> unconditionally.
16844         (getusershell, setusershell, endusershell, readname, main):
16845         Define with prototypes.
16846
16847         * lib/group-member.c: Include group-member.h first.
16848         Include <stdlib.h> unconditionally.
16849
16850         * lib/hard-locale.c: Include hard-locale.h first.
16851         Include <stdlib.h>, <string.h> unconditionally.
16852
16853         * lib/hash.c (free, malloc): Remove decls.
16854         Include <stdlib.h> unconditionally.
16855
16856         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
16857         (getenv): Do not declare.
16858
16859         * lib/idcache.c: Include <string.h> unconditionally.
16860
16861         * lib/long-options.c: Include long-options.h first, to test interface.
16862         Include <stdlib.h> unconditionally.
16863
16864         * lib/makepath.c: Include makepath.h first, to test interface.
16865         Include <stdlib.h> and <string.h> unconditionally.
16866
16867         * lib/linebuffer.c: Include <stdlib.h>.
16868         (free): Remove decl.
16869
16870         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
16871         stddef.h. rpl_malloc returns void *, not char *.
16872         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
16873         prototype.
16874
16875         * lib/md5.h: Include <limits.h> unconditionally.
16876         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
16877         (__P): Remove; all uses removed.
16878         * lib/md5.c: Include "md5.h" first.
16879         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
16880         md5_buffer, md5_process_bytes, md5_process_block):
16881         Define with prototypes.
16882         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
16883         * lib/sha.c: Include "sha.h" first.
16884         Include <stdlib.h>, <string.h> unconditionally.
16885
16886         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
16887         * lib/memcmp.c (__ptr_t): Likewise.
16888         * lib/memrchr.c (__ptr_t): Likewise.
16889         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
16890         Include <string.h> unconditionally.
16891         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
16892         * lib/memchr.c: Include <stdlib.h> unconditionally.
16893         * lib/memchr.c (LONG_MAX): Remove.
16894         * lib/memrchr.c (LONG_MAX): Likewise.
16895         * lib/memchr.c (__memchr): Define via a prototype.
16896         * lib/memrchr.c (__memrchr): Likewise.
16897         * lib/memcmp.c (__P): Remove, and remove all uses.
16898         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
16899         Remove forward decls; no longer needed.
16900         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
16901         Use types required by C89 in prototype.
16902
16903         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
16904         * lib/savedir.c: Likewise.
16905         * lib/mkdir.c (free): Remove decl.
16906         * lib/rmdir.c (rmdir): Define with a prototype.
16907         * lib/savedir.c: Include savedir.h first, to test interface.
16908
16909         * lib/mktime.c (STDC_HEADERS): Remove.
16910         Include <stdlib.h>, <string.h> unconditionally.
16911
16912         * lib/modechange.c: Include <stdlib.h> unconditionally.
16913         (malloc): Remove decl.
16914
16915         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
16916         (free): Remove decl.
16917
16918         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
16919         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
16920         (This type really should be intptr_t, but that's a C99ism.)
16921         (_obstack_memcpy): Remove: all uses changed to memcpy.
16922         Include <string.h> unconditionally.
16923         (struct obstack): Assume __STDC__ for types of members
16924         chunkfun, freefun, extra_arg.
16925         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
16926         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
16927         obstack_begin, obstack_specify_allocation,
16928         obstack_specify_allocation_with_arg, obstack_chunkfun,
16929         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
16930         Remove unprototyped decls and the macros that use them.
16931         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
16932         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
16933         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
16934         (defined __STDC__ && __STDC__)]:
16935         Remove nonprototyped code.
16936         Include <stdlib.h> unconditionally.
16937         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
16938         _obstack_allocated_p, _obstack_free, obstack_free,
16939         _obstack_memory_used, print_and_abort):
16940         Define using prototypes.
16941         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
16942         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
16943         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
16944         obstack_next_free, obstack_object_size, obstack_room) [0]:
16945         Remove unused, unprototyped code.
16946
16947         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
16948
16949         * lib/physmem.c (physmem_total, physmem_available, main): Define
16950         with prototypes.
16951
16952         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
16953         (main): Define with a prototype.
16954
16955         * lib/posixver.c (getenv): Remove decl.
16956
16957         * lib/putenv.c (malloc): Returns void *, not char *.
16958         Include <string.h> unconditionally.
16959         (strchr, memcpy, NULL): Do not define.
16960
16961         * lib/readtokens.c: Include readtokens.h first, to test interface.
16962         Include <stdlib.h>, <string.h> unconditionally.
16963         (init_tokenbuffer): Define with a prototype.
16964
16965         * lib/regex.c (PARAMS): Remove.  All uses removed.
16966         All uses of _RE_ARGS removed, too.
16967         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16968         unconditionally.
16969         (bzero): Assume memset exists.
16970         (memcmp, memcpy, NULL): Remove.
16971         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
16972         char, or assignments to local vars of type signed char.
16973         (init_syntax_once, PREFIX(extract_number_and_incr),
16974         PREFIX(print_partial_compiled_pattern),
16975         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
16976         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
16977         PREFIX(regex_grow_registers), PREFIX(regex_compile),
16978         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
16979         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
16980         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
16981         wcs_compile_range, byte_compile_range, truncate_wchar,
16982         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
16983         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
16984         count_mbs_length, wcs_re_match_2_internal,
16985         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
16986         PREFIX(alt_match_null_string_p),
16987         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
16988         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
16989         regfree, PREFIX(extract_number)): Define with prototype.  Remove
16990         now-unnecessary declaration, if any.
16991         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
16992         regcomp, regexec):
16993         Remove now-unnecessary casts among pointer types.
16994         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
16995
16996         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
16997         (free): Remove decl.
16998
16999         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
17000
17001         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
17002         (free): Remove decl.
17003
17004         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
17005         * lib/xgetcwd.c: Likewise.
17006
17007         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
17008         (free): Remove decl.
17009
17010         * lib/strchrnul.c (strchrnul): Define with a prototype.
17011         Fix bug: c_in was not converted to char before searching.
17012
17013         The following changes are not K&R related:
17014
17015         * lib/group-member.h: Include <sys/types.h>, so that this file is
17016         self-contained.
17017         * lib/makepath.h: Likewise.
17018
17019         * lib/getusershell.c (readname, default_index, line_size, readname):
17020         Use size_t, not int, for sizes.
17021         (readname): If the size overflows, report an error instead of
17022         looping forever.
17023
17024 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17025
17026         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
17027         libc.
17028
17029 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17030
17031         * README: New section: portability guidelines.
17032
17033 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
17034
17035         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
17036         C89 spec.
17037
17038 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
17039
17040         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
17041
17042 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17043
17044         Assume C89 or better; remove K&R cruft.
17045         A few of these changes were first proposed by Derek Robert Price
17046         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
17047
17048         * lib/addext.c: Include <string.h> unconditionally.
17049         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
17050         Don't declare getenv or malloc.
17051
17052         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
17053         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
17054         (NULL): Remove.
17055         (find_stack_direction, alloca): Use prototypes.
17056
17057         * lib/atexit.c (atexit): Define using a prototype.
17058
17059         * lib/basename.c, dirname.c, stripslash.c:
17060         Include <string.h> unconditionally.
17061
17062         * lib/bcopy.c: Include <stddef.h>.
17063         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
17064
17065         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
17066
17067         * lib/error.h (error, error_at_line, error_print_progname)
17068         [! (defined (__STDC__) && __STDC__)]: Remove decls.
17069         * lib/error.c: Include error.h first, to check interface.
17070         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17071         (VA_START): Remove; all uses changeed to va_start.
17072         (exit, strerror): Remove decls.
17073         (error_print_progname): Prototype uncondionally.
17074         Don't include <errno.h>; no longer needed.
17075         (private_strerror): Remove.
17076         (error_tail): Always define.
17077         (error, error_at_line): Assume C89 or better; always use prototypes.
17078         * lib/fatal.c: Include "fatal.h" first, to test interface.
17079         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17080         (VA_START): Remove; all uses changed to va_start.
17081         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
17082         this case.
17083         (exit): Remove decl.
17084         (fatal): Prototype unconditionally.  Assume va_start works.
17085         Abort at end, to pacify gcc.
17086
17087         * lib/euidaccess.c (main): Define with a prototype.
17088
17089         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
17090
17091         * lib/exitfail.c: Include <stdlib.h> unconditionally.
17092
17093         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
17094         prototypes.
17095         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
17096         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
17097         (getenv): Remove decl.
17098         (fnmatch): Define using a prototype.
17099         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
17100         (FCT): Define using a prototype.
17101
17102         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
17103
17104         * lib/gethostname.c: Include <stddef.h>.
17105         (gethostname): Define with prototype.  Length is size_t, not int.
17106
17107 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17108
17109         Assume C89 or better; remove K&R cruft.
17110         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
17111         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
17112         string.h, getenv, malloc.
17113         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
17114         headers.
17115         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
17116         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
17117         do not check for strerror.
17118         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
17119         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
17120         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
17121         do not check for doprnt or vprintf.
17122         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
17123         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
17124
17125 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17126
17127         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
17128         getversion.c should have been removed then, but was accidentally
17129         preserved.
17130
17131         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
17132         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
17133
17134 2003-09-08  Karl Berry  <karl@gnu.org>
17135
17136         * config/config.sub, config.guess, srclistvars.sh: update from savannah
17137                 config, forget about prep.
17138
17139         * config/depcomp, missing: update from automake.
17140
17141 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17142
17143         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
17144         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17145
17146 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17147
17148         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
17149         copy_tm_result.  Bug reported by Simon Josefsson in
17150         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17151
17152 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17153
17154         * m4/time_r.m4: New file.
17155         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
17156         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
17157         is. Check for timegm declaration.
17158         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
17159         Do not check for gmtime_r.
17160         Replace mktime if __mktime_internal does not exist and if mktime
17161         hasn't been replaced already.
17162
17163 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17164
17165         * lib/time_r.c, lib/time_r.h: New files.
17166
17167         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
17168         __localtime_r.
17169         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
17170         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
17171
17172         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
17173         __gmtime_r.
17174         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
17175         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
17176         Include <time_r.h>.
17177
17178         * lib/timegm.c: Switch to glibc implementation, with the following
17179         changes:
17180         [defined HAVE_CONFIG_H]: Include <config.h>.
17181         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
17182         (__mktime_internal) [!defined _LIBC]: New decl.
17183         (__gmtime_r) [!defined _LIBC]: New macro and function.
17184         (timegm): Use a prototype, since gnulib assumes C89.
17185         Do not bother declaring tmp to be const, as it's not really usefu.
17186         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
17187         (timegm): Declare only if HAVE_DECL_TIMEGM.
17188
17189 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17190
17191         * MODULES.html.sh (func_all_modules): Add time_r.
17192         * modules/time_r: New file.
17193         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
17194         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
17195
17196 2003-09-03  Paul Eggert  <eggert@twinsun.com>
17197
17198         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
17199         Bug reported by Lute Kamstra in
17200         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
17201
17202         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
17203         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
17204         course with correspondingly smaller numbers for tomorrow and
17205         yesterday.  From Tadayoshi Funaba.  Originally installed into
17206         sh-utils on 1999-08-07, but the patch got lost (I guess during the
17207         coreutils merge?).
17208
17209 2003-08-31  Simon Josefsson  <jas@extundo.com>
17210
17211         * modules/timegm: New file.
17212         * MODULES.html.sh (func_all_modules): Add timegm.
17213
17214 2003-08-31  Simon Josefsson  <jas@extundo.com>
17215
17216         * m4/timegm.m4: New file.
17217
17218 2003-08-31  Simon Josefsson  <jas@extundo.com>
17219
17220         * lib/timegm.h: New file.
17221         * lib/timegm.c: New file.  Based on
17222         wget-1.8.2/src/http.c:mktime_from_utc.
17223
17224 2003-08-31  Karl Berry  <karl@gnu.org>
17225
17226         * lib/argp.h: update from libc.
17227
17228 2003-08-28  Bruno Haible  <bruno@clisp.org>
17229
17230         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
17231         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
17232         followed by '#define fnmatch fnmatch_posix' gives an error.
17233
17234 2003-08-28  Bruno Haible  <bruno@clisp.org>
17235
17236         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
17237         warning on QNX, which defines O_BINARY to 000000.
17238
17239 2003-08-27  Jim Meyering  <jim@meyering.net>
17240
17241         * m4/mkstemp.m4: Require that the system mkstemp be able to create
17242         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
17243         would fail after 32.  Reported by Danny Levinson.  Details here:
17244         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
17245
17246 2003-08-24  Bruno Haible  <bruno@clisp.org>
17247
17248         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
17249         MSVC7 <stdio.h> is included later.
17250
17251 2003-08-22  Simon Josefsson  <jas@extundo.com>
17252
17253         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
17254
17255 2003-08-20  Karl Berry  <karl@gnu.org>
17256
17257         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
17258
17259 2003-08-20  Bruno Haible  <bruno@clisp.org>
17260
17261         * modules/progname: New file.
17262         * MODULES.html.sh (func_all_modules): Add progname.
17263
17264 2003-08-20  Bruno Haible  <bruno@clisp.org>
17265
17266         * lib/progname.h: New file, from GNU gettext.
17267         * lib/progname.c: New file, from GNU gettext.
17268         * lib/progreloc.c: New file, from GNU gettext.
17269
17270 2003-08-19  Jim Meyering  <jim@meyering.net>
17271
17272         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
17273         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
17274
17275 2003-08-19  Bruno Haible  <bruno@clisp.org>
17276
17277         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
17278         more.
17279
17280 2003-08-19  Bruno Haible  <bruno@clisp.org>
17281
17282         * lib/xstrdup.c: Assume <string.h> exists.
17283
17284 2003-08-18  Paul Eggert  <eggert@twinsun.com>
17285
17286         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
17287         in makefile rules.
17288
17289 2003-08-18  Jim Meyering  <jim@meyering.net>
17290
17291         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
17292         * m4/lib-ld.m4: Likewise.
17293
17294 2003-08-18  Jim Meyering  <jim@meyering.net>
17295
17296         * lib/setenv.h: Indent nested cpp directive.
17297         * lib/vasnprintf.c: Remove trailing blanks.
17298
17299 2003-08-17  Simon Josefsson  <jas@extundo.com>
17300
17301         * modules/xstrndup: New file.
17302         * MODULES.html.sh (func_all_modules): Add xstrndup.
17303
17304 2003-08-17  Simon Josefsson  <jas@extundo.com>
17305
17306         * modules/argp: Fix autoconf macro name. Add more dependencies.
17307
17308 2003-08-17  Simon Josefsson  <jas@extundo.com>
17309
17310         * m4/xstrndup.m4: New file.
17311
17312 2003-08-17  Simon Josefsson  <jas@extundo.com>
17313
17314         * m4/argp.m4: New file.
17315
17316 2003-08-17  Simon Josefsson  <jas@extundo.com>
17317             Bruno Haible  <bruno@clisp.org>
17318
17319         * lib/xstrndup.h: New file.
17320         * lib/xstrndup.c: New file.
17321
17322 2003-08-17  Bruno Haible  <bruno@clisp.org>
17323
17324         * modules/strndup (Files, Include): Add lib/strndup.h.
17325
17326 2003-08-17  Bruno Haible  <bruno@clisp.org>
17327
17328         * modules/euidaccess (Files): Add lib/euidaccess.h.
17329
17330 2003-08-17  Bruno Haible  <bruno@clisp.org>
17331
17332         * lib/strndup.h: New file.
17333
17334 2003-08-17  Bruno Haible  <bruno@clisp.org>
17335
17336         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
17337         like AC_GNU_SOURCE.
17338         * modules/extensions (configure.ac): Comment out the invocation of
17339         gl_USE_SYSTEM_EXTENSIONS.
17340
17341 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17342
17343         Merges from coreutils, etc.
17344         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
17345         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
17346         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
17347         fixing a typo.
17348         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
17349         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
17350
17351 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17352
17353         Document merge from coreutils.
17354         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
17355         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
17356         * modules/utime: Add m4/utimes-null.m4.
17357
17358 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17359
17360         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
17361         space, undoing this 2003-08-12 change:
17362         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17363
17364 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17365
17366         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
17367         strtoul.c from libc, undoing this 2003-08-12 change:
17368         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17369
17370 2003-08-16  Jim Meyering  <jim@meyering.net>
17371
17372         Merges from coreutils.
17373         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
17374         prefix.  Adjust cache variables similarly.  Create 500 rather than
17375         just 300 files, to exercise bug on Darwin6.5, too.
17376         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
17377         $missing_dir.
17378         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
17379         AM_SYS_POSIX_TERMIOS.
17380         Reported by mkc@mathdogs.com.
17381         Also change use of $am_cv_sys_posix_termios
17382         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
17383         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
17384         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
17385         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
17386         in /proc/mounts until it finds one with matching device number.  This
17387         is unnecessary when the FILE argument *is* a mount point.  No stat call
17388         is necessary in that case.  So, disable the statvfs-testing code on
17389         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
17390         as RedHat bug# 84846.
17391         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17392         to 1MB, so as not to render systems with no stack size limit (e.g.,
17393         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
17394         Include <unistd.h>.  On some systems,
17395         it is required for the definition of _SC_PAGESIZE.
17396
17397 2003-08-16  Jim Meyering  <jim@meyering.net>
17398
17399         Merge from coreutils.
17400         * lib/xstrtoimax.c: #else #if -> #elif.
17401         * lib/xstrtoumax.c: Likewise.
17402
17403 2003-08-16  Jim Meyering  <jim@meyering.net>
17404
17405         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
17406         * m4/utimes.m4: Removed.
17407         * m4/utimes-null.m4: Renamed from utimes.m4.
17408
17409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17410         to 1MB, so as not to render systems with no stack size limit (e.g.,
17411         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
17412         Include <unistd.h>.  On some systems,
17413         it is required for the definition of _SC_PAGESIZE.
17414
17415 2003-08-16  Jim Meyering  <jim@meyering.net>
17416         and Paul Eggert  <eggert@cs.ucla.edu>
17417
17418         Merges from coreutils, etc.
17419
17420         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
17421         using the latest version from cvs.  This avoids problems with #line
17422         directives using a vendor (Sun) compiler.
17423         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
17424         Don't set GETGROUPS_LIB here; now it's
17425         done via getgroups.m4's wrapper function.
17426         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
17427         rather than just in sh-util/configure.in, so that the
17428         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
17429         same.
17430         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
17431         AC_FUNC_GETLOADAVG where to find getloadavg.c.
17432         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
17433         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
17434         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
17435         Remove code that is now done by the newly-required macros.
17436         Append $(EXEEXT) to DF_PROG.
17437         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
17438         Do not invoke or require the following here,
17439         since prereq.m4 or some gnulib .m4 now does this for us:
17440         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
17441         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
17442         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
17443         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
17444         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
17445         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
17446         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
17447         AC_FUNC_OBSTACK.
17448         Do not replace the following functions, as this is now the job
17449         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
17450         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
17451         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
17452         atexit getpass, strdup, getpagesize.
17453         Replace 'raise'.
17454         Do not check for the following functions, as this is now the job
17455         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
17456         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
17457         setregid.
17458         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
17459         Check for sys/sysctl.h.
17460         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
17461         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
17462         of checking for ssize_t ourselves.
17463
17464         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
17465         Require every macro that gnulib/modules/* suggests for us.
17466         (jm_PREREQ_ADDEXT): New macro.
17467         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
17468         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
17469
17470         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
17471         (gl_PHYSMEM): Use it.
17472         Also check for `table' function.
17473         Check for new headers and functions.
17474         Add check for sys/sysmp.h.
17475         With suggestions from Kaveh Ghazi.
17476         Ignore headers that are present but cannot be compiled.  This
17477         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
17478         C 5.4.
17479
17480 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17481
17482         Document merge from coreutils.
17483         * modules/userspec: Depend on posixver.
17484         * modules/strftime: Depend on tzset.
17485
17486 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17487
17488         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
17489         rather than tab, after '#' in shell-script copyright notices.
17490         Suggested by Bruno Haible.
17491
17492 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17493
17494         * config/srclist-update: Use three spaces, rather than tab, after '#'
17495         in shell-script copyright notices.  Suggested by Bruno Haible.
17496         Remove unnecessary parenthesization in regular expression.
17497
17498 2003-08-15  Jim Meyering  <jim@meyering.net>
17499
17500         Merge from coreutils.
17501         * lib/xgethostname.c: Include <stdlib.h>.
17502         (xghostname): Don't exit for anything other than memory-related
17503         failure; just return NULL.
17504         * lib/userspec.c: Include "posixver.h".
17505         (parse_user_spec): Accept `.' as a separator only
17506         in pre-POSIX-200112 mode.
17507         * lib/strtoimax.c: Use #elif rather than #else #if.
17508         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
17509         Remove function, now that we can rely on a working tzset function.
17510         [!_LIBC]: Ensure that the required autoconf test has been run.
17511         [!defined _NL_CURRENT && HAVE_STRFTIME]:
17512         Use underlying_strftime for %r.
17513         * lib/sha.c: Merge in some clean-up and optimization changes from
17514         glibc.
17515         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
17516         Ensure that it is a multiple of 64.
17517         Rearrange loop exit tests so as to avoid performing an
17518         additional fread after encountering an error or EOF.
17519         * lib/realloc.c: Update copyright date.
17520
17521 2003-08-15  Jim Meyering  <jim@meyering.net>
17522         and Paul Eggert  <eggert@twinsun.com>
17523
17524         Merge from coreutils.
17525         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
17526         member but strut utmpx does not.  Needed for AIX 4.3.3.
17527         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
17528
17529 2003-08-15  Jim Meyering  <jim@meyering.net>
17530         and Paul Eggert  <eggert@cs.ucla.edu>
17531
17532         Merges from coreutils, etc.
17533         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
17534         Require gl_FUNC_TZSET_CLOBBER.
17535         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
17536         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
17537         members.
17538
17539 2003-08-14  Paul Eggert  <eggert@twinsun.com>
17540
17541         Help the merge from coreutils.
17542         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
17543         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
17544         * m4/tzset.m4: Use it too.
17545
17546 2003-08-14  Paul Eggert  <eggert@twinsun.com>
17547
17548         * modules/tzset: New file.
17549
17550 2003-08-14  Jim Meyering  <jim@meyering.net>
17551
17552         Merges from coreutils.
17553         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
17554         variable names, rather than @FNMATCH_H@.
17555         * modules/alloca: Likewise for $(ALLOCA_H).
17556
17557         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
17558         the three copies of the literal target, `fnmatch.h'.
17559         * modules/alloca (alloca.h): Likewise.
17560
17561 2003-08-14  Jim Meyering  <jim@meyering.net>
17562
17563         Merge from coreutils.
17564         * m4/tzset.m4: New file.
17565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
17566         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
17567         otherwise, AIX 5.1 systems would end up using the latter.
17568         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
17569         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
17570         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
17571         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
17572
17573 2003-08-14  Jim Meyering  <jim@meyering.net>
17574
17575         Merge from coreutils.
17576         * lib/obstack.h: Whitespace changes.
17577         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
17578         and xcalloc return values.
17579         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
17580         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
17581         hang on OSF/1 5.1 for DIR on both local and remote file systems.
17582         Reported by (and fix confirmed by) Nelson H. F. Beebe.
17583         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17584         error from mntctl.
17585         Use mntctl's return value to drive the entry-processing loop, since
17586         we can't rely on the value of the vmt_length member in the last
17587         entry.  On some systems doing so could result in exhausting
17588         virtual memory.  Based in part on a patch from Mike Jetzer.
17589
17590 2003-08-14  Jim Meyering  <jim@meyering.net>
17591         and Paul Eggert  <eggert@twinsun.com>
17592
17593         Merges from coreutils, plus other fixes.
17594         * lib/physmem.c: Merge in portability changes from gcc/libiberty
17595         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
17596         for credits and details.  Thanks to Kaveh Ghazi for helping
17597         to keep these files in sync.
17598         (ARRAY_SIZE): Define it.
17599         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
17600         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
17601         (memcasecmp): Don't assume size_t fits in unsigned int.
17602         Remove casts and duplicate code.
17603         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
17604         (memcpy): Remove definition.
17605         Merge in some clean-up and optimization changes from glibc.
17606         [BLOCKSIZE]: Move definition to top of file.
17607         Ensure that it is a multiple of 64.
17608         Rearrange loop exit tests so as to avoid performing an
17609         additional fread after encountering an error or EOF.
17610         * lib/md5.h (md5_uintptr): Define.
17611         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
17612         return to the initial working directory.  Preserve errno
17613         for caller.
17614         * lib/idcache.c: Include "xalloc.h".
17615         (xmalloc, xrealloc): Remove decls.
17616         (getuser): Remove casts no longer required in C89.
17617         * lib/human.c: Include stdio.h, for sprintf.
17618         * lib/group-member.c: Include "xalloc.h".
17619         (xmalloc, xrealloc): Remove decls.
17620         (get_group_info): Remove casts no longer required in C89.
17621         * lib/getusershell.c (readname): Remove casts no longer required in
17622         C89.
17623         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
17624         * lib/getline.c: Whitespace fix, from coreutils.
17625
17626 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17627
17628         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
17629         Check for isascii.
17630
17631         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
17632         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
17633         Undo previous (whitespace-only) change.
17634
17635 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17636
17637         * lib/exclude.c: Include <ctype.h>
17638         (IN_CTYPE_DOMAIN): New macro.
17639         (is_space): New fn.
17640         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
17641         and empty lines.
17642
17643         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
17644         Undo previous (whitespace-only) change.
17645
17646 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17647
17648         * config/srclist-update: Change update back to the old behavior,
17649         leaving whitespace alone.  Use one 'sed' command rather than a
17650         pipeline.
17651         (fixlicense): Now a variable, not a function.
17652         (remove_trailing_blanks): Remove.
17653         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
17654         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
17655         Undo previous (whitespace-only) change.
17656
17657 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17658
17659         Merge from coreutils.
17660         * modules/euidaccess: Add lib_SOURCES, include for new
17661         file euidaccess.h
17662
17663 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17664
17665         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
17666         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
17667         Normalize leading white space and remove trailing white space.
17668
17669         Merge from coreutils
17670         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
17671
17672         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
17673         0.12.1.  These files are now being upgraded automatically by
17674         ../config/srclist-update.
17675
17676 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17677
17678         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
17679         Normalize leading white space and remove trailing white space.
17680         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
17681         notice, as per ../config/srclist-update.
17682
17683         Merge from coreutils.
17684         * lib/euidaccess.h: New file.
17685         * lib/euidaccess.c: Include it.
17686         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
17687         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
17688         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
17689
17690 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17691
17692         * config/srclist-update: Add copyright notice.
17693         (remove_id_lines, remove_trailing_blanks): New constants.
17694         (fixfile): Use them to normalize spacing a bit in copied files.
17695         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
17696         Normalize leading white space and remove trailing white space.
17697
17698         * config/texinfo.tex: Sync with texinfo.
17699
17700         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
17701         strtoul.c from libc, to merge coreutils whitespace changes.
17702
17703         * config/srclist.txt: Get the following m4 files from gettext:
17704         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
17705         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
17706         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
17707         wint_t.m4.
17708
17709 2003-08-12  Karl Berry  <karl@gnu.org>
17710
17711         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
17712         been made.
17713
17714 2003-08-11  Paul Eggert  <eggert@twinsun.com>
17715
17716         * modules/gnu-source, m4/gnu-source.m4:
17717         Remove; we're assuming Autoconf 2.54 or later now.
17718         Suggested by Bruno Haible.
17719         * MODULES.html.sh (func_all_modules): Remove gnu-source.
17720
17721 2003-08-11  Bruno Haible  <bruno@clisp.org>
17722
17723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
17724
17725 2003-08-11  Bruno Haible  <bruno@clisp.org>
17726
17727         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
17728         (vasnprintf): Use it instead of wcslen.
17729
17730 2003-08-11  Bruno Haible  <bruno@clisp.org>
17731
17732         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
17733         value to ensure that _Bool promotes to int. Use #define for _Bool when
17734         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
17735
17736 2003-08-10  Karl Berry  <karl@gnu.org>
17737
17738         * lib/regex.h: update from libc (whitespace fix).
17739
17740 2003-08-09  Paul Eggert  <eggert@twinsun.com>
17741
17742         Merge some files from coreutils.  These changes were
17743         originally made by Jim Meyering.
17744         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
17745         many older Unixes require this.
17746         * lib/alloca.c (alloca): Remove cast to argument of free;
17747         no longer needed in C89.
17748         * lib/alloca_.h, regex.h: Fix white space to match
17749         what GNU indent does.
17750
17751 2003-08-09  Paul Eggert  <eggert@twinsun.com>
17752
17753         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
17754         apparently Emacs's Unicode mode got confused before my 2003-08-05
17755         checkin.
17756
17757 2003-08-08  Paul Eggert  <eggert@twinsun.com>
17758
17759         * m4/extensions.m4: New file.
17760         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
17761         Require gl_USE_SYSTEM_EXTENSIONS.
17762         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
17763         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
17764
17765 2003-08-08  Paul Eggert  <eggert@twinsun.com>
17766
17767         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
17768         * modules/extensions, modules/gnu-source: New files.
17769         * modules/timespec, modules/unlocked-io: Depend on extensions.
17770
17771 2003-08-07  Paul Eggert  <eggert@twinsun.com>
17772
17773         * modules/restrict: New file.
17774         * MODULES.html.sh (func_all_modules): Add restrict.
17775         * modules/regex: Depend on restrict.
17776
17777 2003-08-07  Paul Eggert  <eggert@twinsun.com>
17778
17779         * m4/restrict.m4: New file.
17780         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
17781
17782 2003-08-07  Bruno Haible  <bruno@clisp.org>
17783
17784         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
17785         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
17786
17787 2003-08-07  Bruno Haible  <bruno@clisp.org>
17788
17789         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
17790         makes the module 'getndelim2' compatible with the module 'getline'.
17791
17792 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17793
17794         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
17795         byte with "\201" to avoid glitches when editing that source file
17796         with multi-gnome-terminal.
17797
17798 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17799
17800         * lib/bumpalloc.h: Remove.
17801
17802 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17803
17804         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
17805         * modules/bumpalloc: Remove.
17806
17807 2003-08-04  Paul Eggert  <eggert@twinsun.com>
17808
17809         * lib/getloadavg.c: Change copyright notice and spacing to conform to
17810         GNU coding style.
17811
17812         Merge from coreutils.
17813         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
17814         1. From glibc.
17815         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
17816         from Karl Berry, implemented by Jim Meyering.
17817         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
17818         from Dmitry V. Levin.
17819         Remove anachronistic cast of xrealloc.
17820         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
17821         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
17822         type. Otherwise, it wouldn't compile with at least /bin/cc on
17823         ymp-cray-unicos9.0.2.X.
17824         Combine two mostly-identical uses of alloca into one.
17825         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
17826
17827 2003-08-04  Dave Love  <d.love@dl.ac.uk>
17828
17829         [From Emacs.]
17830
17831         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
17832         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
17833         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
17834         obsolete NLIST_NAME_UNION.
17835         [__GNU__]: Undef BSD and FSCALE.
17836         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
17837
17838 2003-08-03  Paul Eggert  <eggert@twinsun.com>
17839
17840         * lib/stdbool_.h (_Bool): Make it signed char, instead of
17841         an enum type, so that it's guaranteed to promote to int.  See:
17842         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
17843
17844 2003-08-03  Karl Berry  <karl@gnu.org>
17845
17846         * config/depcomp: update from automake.
17847
17848 2003-07-31  Paul Eggert  <eggert@twinsun.com>
17849
17850         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
17851         (strerror): Don't assume that a printable int fits in 14 bytes.
17852
17853 2003-07-31  Bruno Haible  <bruno@clisp.org>
17854
17855         * modules/getpass-gnu: New file.
17856         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
17857
17858 2003-07-31  Bruno Haible  <bruno@clisp.org>
17859
17860         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
17861
17862 2003-07-24  Karl Berry  <karl@gnu.org>
17863
17864         * config/missing: update from automake.
17865
17866 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
17867             Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
17870         * lib/getline.c (getline, getdelim): Likewise.
17871         Remove _GNU_SOURCE define; now it's defined in config.h through
17872         m4/getline.m4.
17873
17874 2003-07-23  Karl Berry  <karl@gnu.org>
17875
17876         * config/config.sub: update from prep.
17877
17878 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17879
17880         * modules/xalloc (Depends-on): Add exitfail.
17881         * modules/xmemcoll: Likewise.
17882
17883 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17884
17885         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
17886         over-parenthesization in macros.
17887
17888         Sync with coreutils.
17889
17890         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
17891         required by C99.
17892
17893         Use `exit_failure' for xalloc and xmemcoll instead of their own
17894         private exit-failure variables.
17895         * lib/xalloc.h (xalloc_exit_failure): Remove.
17896         * lib/xmalloc.c: Likewise.  Include exitfail.h.
17897         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
17898         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
17899         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
17900         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
17901
17902 2003-07-20  Jim Meyering  <jim@meyering.net>
17903
17904         * modules/closeout (Depends-on): Add exitfail.
17905         Suggestion from Bruno Haible.
17906
17907 2003-07-19  Karl Berry  <karl@gnu.org>
17908
17909         * config/config.sub: update from prep.
17910
17911 2003-07-18  Paul Eggert  <eggert@twinsun.com>
17912
17913         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
17914         Remove.
17915         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
17916         to test that it can stand by itself.  Include "exitfail.h".
17917         Clients should set exit_failure instead.
17918         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
17919
17920 2003-07-18  Bruno Haible  <bruno@clisp.org>
17921
17922         * modules/getndelim2: New file.
17923         * modules/getline: Share files with module getndelim2.
17924         * modules/getnline: Depend on getndelim2 instead of sharing files with
17925         it. Add getnline.c to lib_SOURCES.
17926         * MODULES.html.sh (func_all_modules): Add getndelim2.
17927
17928 2003-07-18  Bruno Haible  <bruno@clisp.org>
17929
17930         * m4/getndelim2.m4: New file.
17931         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
17932         invoke gl_PREREQ_GETNDELIM2.
17933         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
17934         gl_PREREQ_GETNDELIM2.
17935         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
17936         gl_GETNDELIM2.
17937
17938 2003-07-18  Bruno Haible  <bruno@clisp.org>
17939
17940         * lib/getndelim2.h: New file.
17941         * lib/getndelim2.c: Make into a module of its own. Include config.h,
17942         getndelim2.h.
17943         (getndelim2): Make non-static. Change return type to ssize_t.
17944         * lib/getline.h: Change argument names.
17945         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
17946         * lib/getnline.c: Include getndelim2.h.
17947
17948 2003-07-18  Andreas Schwab  <schwab@suse.de>
17949
17950         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
17951
17952 2003-07-17  Karl Berry  <karl@gnu.org>
17953
17954         * config/config.sub: update from prep.
17955
17956 2003-07-17  Bruno Haible  <bruno@clisp.org>
17957
17958         * modules/getnline: New file.
17959         * modules/getline: Add lib/getndelim2.c to source file list.
17960         * MODULES.html.sh (func_all_modules): Add getnline.
17961
17962 2003-07-17  Bruno Haible  <bruno@clisp.org>
17963
17964         * m4/getnline.m4: New file.
17965
17966 2003-07-17  Bruno Haible  <bruno@clisp.org>
17967
17968         * m4/Makefile.am.in: Remove file.
17969         * m4/Makefile.am: Remove file.
17970         * m4/Makefile.in: Remove file.
17971
17972 2003-07-17  Bruno Haible  <bruno@clisp.org>
17973
17974         * lib/getnline.h: New file.
17975         * lib/getnline.c: New file.
17976         * lib/getndelim2.c: New file, extracted from getline.c.
17977         (getndelim2): Renamed from getdelim2, with added nmax argument.
17978         * lib/getline.c: Include getndelim2.c.
17979         (getdelim2): Moved out to getndelim2.c.
17980         (getline, getdelim): Update.
17981
17982 2003-07-17  Bruno Haible  <bruno@clisp.org>
17983
17984         * lib/Makefile.am: Remove file.
17985         * lib/Makefile.in: Remove file.
17986
17987 2003-07-17  Bruno Haible  <bruno@clisp.org>
17988
17989         * configure.in: Remove file.
17990         * Makefile.in: Remove file.
17991
17992 2003-07-17  Bruno Haible  <bruno@clisp.org>
17993
17994         * MODULES.html.sh: Put the </BODY> right before </HTML>.
17995
17996 2003-07-16  Karl Berry  <karl@gnu.org>
17997
17998         * config/srclist-update: was running fixlicense twice, which caused
17999                 texinfo.tex to be nullified for some reason.  Simplify,
18000                 $gplsrc is no longer needed as far as I can see?
18001
18002 2003-07-16  Jim Meyering  <jim@meyering.net>
18003
18004         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
18005
18006 2003-07-15  Paul Eggert  <eggert@twinsun.com>
18007
18008         * config/srclist.txt: Get the following files from gettext-runtime/intl
18009         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
18010         ref-del.sin.  From Bruno Haible.
18011         * config/srclist-update (fixfile): Change grep pattern again, since the
18012         previous fix didn't work (there was another trailing $).  Use
18013         '[$]' to escape the $s.
18014
18015 2003-07-15  Karl Berry  <karl@gnu.org>
18016
18017         * lib/vasnprintf.c: update from gettext.
18018
18019 2003-07-15  Karl Berry  <karl@gnu.org>
18020
18021         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
18022         gets expanded when surrounded by '$'.
18023
18024 2003-07-15  Jim Meyering  <jim@meyering.net>
18025
18026         * modules/save-cwd: Don't depend on error.  From Derek Price.
18027
18028 2003-07-15  Jim Meyering  <jim@meyering.net>
18029
18030         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
18031
18032 2003-07-14  Simon Josefsson  <jas@extundo.com>
18033
18034         * modules/mempcpy: New file.
18035         * MODULES.html.sh (func_all_modules): Add mempcpy.
18036
18037 2003-07-14  Simon Josefsson  <jas@extundo.com>
18038
18039         * m4/mempcpy.m4: New file.
18040
18041 2003-07-14  Simon Josefsson  <jas@extundo.com>
18042
18043         * lib/mempcpy.h: New file.
18044         * lib/mempcpy.c: New file.
18045
18046 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18047
18048         * modules/getdate, modules/posixtm: Depend on mktime.
18049
18050 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18051
18052         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
18053         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
18054         unicodeio.c, unicodeio.h, unlocked-io.h:
18055         Switch from LGPL to GPL.
18056
18057 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18058
18059         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
18060         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
18061         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
18062         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
18063         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
18064         updated automatically by ../config/srclist-update.  This changes
18065         their license from LPGL to GPL.
18066
18067 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18068
18069         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
18070         assumed to refer to the root of the most recent stable gettext version.
18071         * config/srclistvars.sh: Add defaults for eggert.
18072         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
18073         Match "This program" as well as "The program".  This is needed
18074         for gettext.
18075
18076 2003-07-14  Jim Meyering  <jim@meyering.net>
18077
18078         Don't emit diagnostics.  Let callers do that.
18079         * lib/save-cwd.c: Don't include "error.h".
18080         (save_cwd): Don't call error.  Ensure that errno is valid
18081         when returning nonzero.
18082
18083         * lib/save-cwd.h (restore_cwd): Update prototype.
18084         * lib/save-cwd.c (restore_cwd): Remove two parameters.
18085         Simplify.  Don't call error upon failure.  Let callers do that.
18086         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
18087         when auditing is enabled.  But don't bother updating the #if.
18088
18089 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
18090
18091         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
18092         it breaks C++ compilation.
18093         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
18094
18095 2003-07-10  Simon Josefsson  <jas@extundo.com>
18096
18097         * modules/strchrnul (Makefile.am): Add strchrnul.h.
18098
18099 2003-07-10  Jim Meyering  <jim@meyering.net>
18100
18101         * m4/clock_time.m4: Remove trailing blank.
18102         * m4/intmax_t.m4: Likewise.
18103
18104 2003-07-10  Jim Meyering  <jim@meyering.net>
18105
18106         * lib/vasnprintf.c: Remove trailing blanks.
18107         Make cpp indentation consistent.
18108
18109 2003-07-09  Paul Eggert  <eggert@twinsun.com>
18110
18111         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
18112         posixver.c, strftime.c, strnlen.c, strverscmp.c:
18113         Switch from LGPL to GPL.
18114
18115 2003-07-09  Paul Eggert  <eggert@twinsun.com>
18116
18117         * config/srclist.txt: Sort sublists.  Add
18118         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
18119         that differ from gnulib for one reason or another; we'd like this list
18120         to be smaller but for now let's document what we have.
18121
18122 2003-07-08  Paul Eggert  <eggert@twinsun.com>
18123
18124         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
18125         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
18126         and sweeter "eval x=$x".
18127         * config/srclist.txt: Get lib/argp* from glibc.
18128
18129 2003-07-07  Paul Eggert  <eggert@twinsun.com>
18130
18131         * lib/mktime.c: Fix some boundary cases and remove need for floating
18132         point.
18133
18134         Issue a compile-time diagnostic if time_t is floating point, or if
18135         two's complement arithmetic is not in effect, or if arithmetic
18136         right shift does not propagate the sign.  These assumptions were
18137         all in the original code but they weren't checked.
18138
18139         (TIME_T_MIDPOINT, verify): New macros.
18140         (__isleap): Remove; it has integer overflow problems.
18141         (leapyear): New function, without those problems.
18142         (ydhms_tm_diff): Remove; splitting into two parts.
18143         (ydhms_diff): New function, containing the arithmetic part of
18144         the old ydhms_tm_diff function.  Issue a compile-time
18145         diagnostic if we are not using C99 integer division.
18146         Avoid casts when possible.
18147         (guess_time_tm): New function, containing the checking part of
18148         the old ydhms_tm_diff function.  Return the new value, rather than
18149         the difference between it and the old.  Accept a new argument T
18150         so that *T specifies the old value.  Check for overflow in the result.
18151
18152         (__mktime_internal): Use a time_t offset, not a long int offset.
18153         This undoes the 2003-06-04 change, which is no longer needed now
18154         that we have better overflow checking.
18155         (localtime_offset): Likewise.
18156
18157         (__mktime_internal): Avoid harmful overflow on hosts where time_t
18158         and long are 64-bit but int is only 32-bit.
18159         (ydhms_diff): Use long int to store year1 and yday1.
18160         Issue a compile-time diagnostic if long int is not wide enough.
18161
18162         (__mktime_internal): Use long int to store adjusted year and yday.
18163         Use plain C rather than preprocessor commands, if that doesn't
18164         affect efficiency.
18165         Check for overflow (and try to repair) after each probe
18166         rather than checking only at the very end.  This avoids some bugs
18167         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
18168         does not equal GMT offset at maximum time).
18169         Use integer to check for overflow rather than floating point; this
18170         is more portable to non-IEEE hosts, and is a tad faster.
18171         When we detect that we are oscillating between two values,
18172         don't check whether tm_isdst has the requested value, since
18173         we already know the answer.  When tm_isdst has the wrong value,
18174         use a different heuristic to find the right one, based on the
18175         extreme values actually observed in practice in tz2003a,
18176         rather than the (overly optimistic) "previous 3 calendar quarters".
18177
18178         (not_equal_tm, print_tm, check_result): Use "const T" rather than
18179         "T const" to accommodate glibc style.
18180         (check_result): Use less-confusing report format.  "long" -> "long int.
18181         (main): Likewise.
18182         Don't loop if the iteration overflows time_t.
18183         Allow a negative step in the iteration.
18184
18185 2003-07-06  Karl Berry  <karl@gnu.org>
18186
18187         * config/depcomp: update from automake.
18188         * config/config.sub: update from prep.
18189
18190 2003-07-03  Karl Berry  <karl@gnu.org>
18191
18192         * config/config.guess: update from prep.
18193
18194 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18195
18196         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
18197         xreadlink.c now includes it unconditionally.
18198
18199 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18200
18201         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
18202         having it depend on HAVE_SYS_TYPES_H.
18203
18204 2003-07-01  Bruno Haible  <bruno@clisp.org>
18205
18206         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
18207         <sys/types.h> should be sufficient.
18208         Reported by Paul Eggert.
18209
18210 2003-06-26  Karl Berry  <karl@gnu.org>
18211
18212         * config/depcomp: update from automake.
18213
18214 2003-06-26  Bruno Haible  <bruno@clisp.org>
18215
18216         * modules/human: Depend on module stdbool.
18217
18218 2003-06-25  Bruno Haible  <bruno@clisp.org>
18219
18220         * modules/readlink: New file.
18221         * modules/xreadlink: Depend on it.
18222         * MODULES.html.sh (func_all_modules): Add readlink.
18223
18224 2003-06-25  Bruno Haible  <bruno@clisp.org>
18225
18226         * m4/readlink.m4: New file.
18227
18228 2003-06-25  Bruno Haible  <bruno@clisp.org>
18229
18230         * lib/readlink.c: New file.
18231
18232 2003-06-22  Karl Berry  <karl@gnu.org>
18233
18234         * config/srclist.txt: update mkinstalldirs from automake.
18235         * config/mkinstalldirs: update.
18236
18237 2003-06-22  Bruno Haible  <bruno@clisp.org>
18238
18239         Portability to mingw32.
18240         * m4/ssize_t.m4: New file, from GNU gettext.
18241         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
18242         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
18243
18244 2003-06-22  Bruno Haible  <bruno@clisp.org>
18245
18246         * modules/safe-read: Add m4/ssize_t.m4.
18247         * modules/xreadlink: Add m4/ssize_t.m4.
18248
18249 2003-06-20  Bruno Haible  <bruno@clisp.org>
18250
18251         Assume C89, so PARAMS isn't needed.
18252         * lib/unicodeio.h (PARAMS): Remove.
18253         * lib/unicodeio.c: Don't use PARAMS.
18254
18255 2003-06-18  Karl Berry  <karl@gnu.org>
18256
18257         * config/config.{guess,sub}: update from prep.
18258
18259 2003-06-18  Jim Meyering  <jim@meyering.net>
18260
18261         Merge changes from coreutils.
18262         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
18263         Remove explicit declarations of xmalloc and realloc.
18264         Include xalloc.h.
18265         (read_utmp): Remove anachronistic cast of xmalloc.
18266
18267 2003-06-17  Paul Eggert  <eggert@twinsun.com>
18268
18269         Assume C89, so PARAMS isn't needed.
18270         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
18271         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
18272         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
18273         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
18274         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
18275         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
18276         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
18277         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
18278         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
18279         lib/xstrtod.h, lib/xstrtol.h: Likewise.
18280         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
18281         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
18282         no longer needed. Anyway, config.h should always be included before any
18283         other file.
18284
18285 2003-06-11  Simon Josefsson  <jas@extundo.com>
18286
18287         * modules/sysexits: New file.
18288         * MODULES.html.sh (func_all_modules): Add sysexits.
18289
18290 2003-06-11  Simon Josefsson  <jas@extundo.com>
18291
18292         * lib/sysexit_.h: New file.
18293
18294 2003-06-11  Derek Price  <derek@ximbiot.com>
18295
18296         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
18297         necessary.
18298
18299 2003-06-11  Bruno Haible  <bruno@clisp.org>
18300
18301         * m4/sysexits.m4: New file.
18302
18303 2003-06-10  Simon Josefsson  <jas@extundo.com>
18304
18305         * lib/argp.h: New file, from glibc.
18306         * lib/argp-ba.c: New file, from glibc.
18307         * lib/argp-eexst.c: New file, from glibc.
18308         * lib/argp-fmtstream.c: New file, from glibc.
18309         * lib/argp-fmtstream.h: New file, from glibc.
18310         * lib/argp-fs-xinl.c: New file, from glibc.
18311         * lib/argp-help.c: New file, from glibc.
18312         * lib/argp-namefrob.h: New file, from glibc.
18313         * lib/argp-parse.c: New file, from glibc.
18314         * lib/argp-pv.c: New file, from glibc.
18315         * lib/argp-pvh.c: New file, from glibc.
18316         * lib/argp-xinl.c: New file, from glibc.
18317
18318 2003-06-10  Simon Josefsson  <jas@extundo.com>
18319
18320         * modules/strchrnul: New file.
18321
18322 2003-06-10  Simon Josefsson  <jas@extundo.com>
18323
18324         * modules/argp: New file.
18325
18326 2003-06-10  Simon Josefsson  <jas@extundo.com>
18327
18328         * m4/strchrnul.m4: New file.
18329
18330 2003-06-10  Simon Josefsson  <jas@extundo.com>
18331
18332         * lib/strchrnul.h: New file.
18333         * lib/strchrnul.c: New file.
18334
18335 2003-06-10  Bruno Haible  <bruno@clisp.org>
18336
18337         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
18338
18339 2003-06-07  Karl Berry  <karl@gnu.org>
18340
18341         * config/config.{guess,sub}: update from prep.
18342
18343 2003-06-07  Jim Meyering  <jim@meyering.net>
18344
18345         * modules/strtod: Use $(...) notation, not @...@ for
18346         AC_REPLACE'd variables.
18347         * modules/localcharset: Likewise.
18348
18349 2003-06-07  Jim Meyering  <jim@meyering.net>
18350
18351         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
18352         in place of my name in the copyright comment.
18353         Remove definition and uses of __P.
18354
18355         From coreutils.
18356         * lib/stat.c: Don't declare xmalloc explicitly.
18357         Instead, include "xalloc.h".
18358         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
18359         xrealloc, and xcalloc return values.
18360         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
18361         Improve comment.
18362         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
18363
18364 2003-06-07  Bruno Haible  <bruno@clisp.org>
18365
18366         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
18367         avoid AC_CONFIG_LINKS.
18368         * modules/fnmatch (Makefile.am): Use explicit creation rule for
18369         fnmatch.h, to avoid AC_CONFIG_LINKS.
18370         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
18371
18372 2003-06-07  Bruno Haible  <bruno@clisp.org>
18373
18374         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
18375         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
18376         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18377         directory.
18378         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
18379         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18380         directory.
18381
18382 2003-06-06  Jim Meyering  <jim@meyering.net>
18383
18384         Merge from coreutils.
18385         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
18386         Consolidate declarations and initializations of *_base* locals.
18387
18388         Merge from coreutils.
18389         This avoids a core dump on systems without GNU putenv,
18390         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
18391         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
18392         (unsetenv): New static function, from GNU libc.
18393         (rpl_putenv): Use it.
18394
18395         * lib/modechange.c: Remove trailing blanks.
18396
18397         Merge from coreutils.
18398         * lib/fsusage.c: Remove declaration of statfs.
18399         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
18400
18401         * lib/posixtm.c: Include <stdbool.h> unconditionally.
18402
18403 2003-06-06  Jim Meyering  <jim@meyering.net>
18404
18405         * lib/stdbool_.h: Renamed from stdbool.h.in.
18406
18407 2003-06-06  Jim Meyering  <jim@meyering.net>
18408             Bruno Haible  <bruno@clisp.org>
18409
18410         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
18411         Adjust Makefile.am snippet not to redirect directly to target.
18412         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
18413
18414 2003-06-05  Paul Eggert  <eggert@twinsun.com>
18415
18416         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
18417         mismatch, look in future quarters as well as past.  This fixes a
18418         bug when processing fall-backwards gaps immediately after a long
18419         period of daylight-saving time.
18420
18421         * lib/mktime.c: Assume freestanding C89 or better.
18422         (HAVE_LIMITS_H): Remove.  Assume it's 1.
18423         (__P): Remove; not used.
18424         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
18425         (mktime, not_equal_tm, print_tm, check_result,
18426         main): Use prototypes.  Use const * where appropriate.
18427         (main): Fix typo in testing code that uncovered by above changes.
18428         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
18429
18430 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18431
18432         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
18433         locale.h, localeconv.  This merges changes from coreutils.
18434
18435         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
18436         It can be removed after the next Autoconf is released.
18437         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
18438         needed.
18439
18440 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18441
18442         * lib/mktime.c: Fix Debian bug 177940
18443         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
18444         (localtime_offset): Now long int, not time_t, because we want it
18445         to be guaranteed to be signed.  All uses changed.
18446         (__mktime_internal): If overflow would occur when adding offset,
18447         don't add it.
18448
18449         Merge 'human' changes from coreutils.  Rewrite to support
18450         locale-specific notations like thousands separators.
18451         * lib/human.c: Simplify authorship notice.
18452         Include human.h immediately after config.h.
18453         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
18454         <limits.h>: Do not include, since human.h does.
18455         (SIZE_MAX, UINTMAX_MAX): New macros.
18456         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
18457         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
18458         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
18459         (power_letter): Renamed from suffixes.
18460         (generate_suffix_backwards): Remove.
18461         (adjust_value): Now takes int style (because of human.h changes)
18462         and long double value (for greater precision on some platforms).
18463         (group_number): New function.
18464         (human_readable): Use it.  Use integer options, not enum.
18465         Put the options before the sizes in the arg list.
18466         Support all the new options.
18467         The old human_readable function has been removed;
18468         use inttostr.h instead.
18469         (human_readable, default_block_size, humblock):
18470         Use uintmax_t, not int, for block sizes.
18471         (human_readable_inexact, block_size_types): Remove.
18472         (block_size_opts): New constant.
18473         (human_options): Renamed from human_block_size, with new signature
18474         that allows block sizes up to UINTMAX_MAX.  All callers changed.
18475         * lib/human.h: Add copyright and authorship notice.
18476         Include <limits.h> and <stdbool.h> unconditionally.
18477         (PARAMS): Remove.  All uses removed.
18478         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
18479         (enum human_inexact_style): Remove tag; now a nameless enum.
18480         (human_floor, human_ceiling, human_round_to_even): Now have
18481         values 2, 0, 1 rather than -1, 1, 0.
18482         (human_group_digits, human_suppress_point_zero, human_autoscale,
18483         human_base_1024, human_SI, human_B): New constants.
18484         (human_readable_inexact, human_block_size): Remove.
18485         (human_readable): Size args are now uintmax_t, not int.
18486         (human_options): New decl.
18487
18488         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
18489         unnecessary now that we assume C89 or better.  This change
18490         imported from coreutils.
18491
18492         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
18493         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
18494         in the 2003-05-30 sync from glibc.
18495
18496         .h files should stand alone, but we shouldn't include <sys/types.h>
18497         if we can get away with just <stddef.h>.
18498
18499         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
18500         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
18501         rather than <sys/types.h>, as we merely need size_t.
18502         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
18503         to get size_t.
18504         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
18505         Include <stdio.h>, to get FILE.
18506         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
18507         memcasecmp.h has included <stddef.h> and all we need is size_t.
18508         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
18509         our interface, instead of including <sys/types.h>
18510
18511 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18512
18513         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
18514         now, as glibc mktime is buggy on non-glibc systems.
18515
18516 2003-06-03  Karl Berry  <karl@gnu.org>
18517
18518         * config/config.sub: update from prep.
18519
18520 2003-06-02  Paul Eggert  <eggert@twinsun.com>
18521
18522         [from coreutils]
18523         Fix some minor time-related bugs with POSIX time arguments.
18524         Some valid time stamps were being rejected (notably -1, and
18525         time stamps before 1900 on 64-bit hosts).  And some invalid
18526         time stamps were being accepted, e.g. September 31.
18527
18528         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
18529         that we can return (time_t) -1 successfully.
18530         * lib/posixtm.c: Likewise.
18531         [HAVE_STDBOOL_H]: Include <stdbool.h>.
18532         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
18533         (t): Remove static var.
18534         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
18535         of static var.  All uses changed.
18536         (year): Do not reject years before 1900; they can occur with
18537         64-bit time_t.
18538         (posix_time_parse): Do not check for out-of-range components;
18539         that is now the caller's responsibility, since our checks were
18540         only approximations.
18541         (posixtime): Use mktime to check for out-of-range components,
18542         since it knows them exactly.
18543         If mktime returns (time_t) -1, check whether an error actually occurred
18544         by invoking localtime on -1.
18545         (main) [TEST_POSIXTIME]: Check for input data errors, and report
18546         posixtime failures better.
18547         Improve the test data (in comments only).
18548
18549 2003-06-02  Karl Berry  <karl@gnu.org>
18550
18551         * config/mkinstalldirs (version): new variable.
18552         (--version): new option.
18553         (usage): improve message.
18554
18555 2003-05-30  Karl Berry  <karl@gnu.org>
18556
18557         * lib/mktime.c: update from libc.
18558
18559 2003-05-30  Bruno Haible  <bruno@clisp.org>
18560
18561         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
18562         * config/config.rpath: Upgrade to gettext-0.12.1.
18563
18564 2003-05-30  Bruno Haible  <bruno@clisp.org>
18565
18566         * m4/gettext.m4: Upgrade to gettext-0.12.1.
18567         * m4/nls.m4: New file, from gettext-0.12.1.
18568         * m4/po.m4: New file, from gettext-0.12.1.
18569         * m4/progtest.m4: Upgrade to gettext-0.12.1.
18570
18571 2003-05-30  Bruno Haible  <bruno@clisp.org>
18572
18573         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
18574         * lib/localcharset.h: Likewise.
18575         * lib/localcharset.c: Likewise.
18576
18577 2003-05-29  Karl Berry  <karl@gnu.org>
18578
18579         * config/config.rpath: update from gettext.
18580
18581 2003-05-28  Paul Eggert  <eggert@twinsun.com>
18582
18583         Assume the headers required for C89 freestanding compilers.
18584         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
18585         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
18586         * m4/human.m4 (gl_HUMAN): Likewise.
18587         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
18588         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
18589         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18590         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
18591         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18592         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
18593
18594 2003-05-28  Paul Eggert  <eggert@twinsun.com>
18595
18596         Assume the headers required for C89 freestanding compilers.
18597         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
18598         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
18599         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
18600         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
18601         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
18602         define, since <limits.h> is guaranteed to do that.
18603         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
18604         * lib/exclude.c: Include <stdbool.h> unconditionally.
18605         * lib/tempname.c: Include <stddef.h> unconditionally.
18606         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
18607         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
18608         <stddef.h> does that.
18609         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
18610         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
18611         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
18612         needed.
18613         * lib/xstrtol.c: Likewise.
18614         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
18615         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
18616
18617         * lib/addext.c (addext): Use assignment rather than cast, to avoid
18618         warnings on some platforms.
18619
18620         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
18621         arbitrarily.
18622
18623 2003-05-26  Jim Meyering  <jim@meyering.net>
18624
18625         Merge in a change from coreutils:
18626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
18627         that is guaranteed to be `no'.  Use `no_such_member' to indicate
18628         that condition, rather than `-1' which is slightly misleading.
18629         Change the name of the cache variable to have the gl_ prefix.
18630         Prompted by a patch from Richard Dawe for DJGPP.
18631
18632 2003-05-24  Karl Berry  <karl@gnu.org>
18633
18634         * config/config.guess: update from prep.
18635
18636 2003-05-22  Karl Berry  <karl@gnu.org>
18637
18638         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
18639
18640 2003-05-20  Karl Berry  <karl@gnu.org>
18641
18642         * config/config.guess: update from prep.
18643
18644 2003-05-18  Karl Berry  <karl@gnu.org>
18645
18646         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
18647         might actually be set by the user.
18648
18649         * config/depcomp, install-sh, mdate-sh: update from automake.
18650
18651 2003-05-17  Bruno Haible  <bruno@clisp.org>
18652
18653         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
18654         invalid expansion for AC_EGREP_CPP.
18655         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18656         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18657         Suggested by Akim Demaille <akim@epita.fr> in
18658         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
18659
18660 2003-05-12  Jim Meyering  <jim@meyering.net>
18661
18662         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
18663         the space-padded-by-default conversion specifiers, %e, %k, %l.
18664
18665 2003-05-12  Bruno Haible  <bruno@clisp.org>
18666
18667         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
18668         the string is longer than 4 KB.
18669
18670 2003-05-11  Karl Berry  <karl@gnu.org>
18671
18672         * config/config.{guess,sub}: update from prep.
18673
18674 2003-05-09  Bruno Haible  <bruno@clisp.org>
18675
18676         * modules/error: Add m4/strerror_r.m4 to file list.
18677
18678 2003-05-03  Bruno Haible  <bruno@clisp.org>
18679
18680         Upgrade to Unicode-4.0.
18681         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
18682         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
18683         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
18684         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
18685         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
18686         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
18687         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
18688         Change width of U+E0100..U+E01EF from 1 to 0.
18689
18690 2003-04-25  Jim Meyering  <jim@meyering.net>
18691
18692         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
18693         of type size_t, not int.
18694
18695 2003-04-25  Bruno Haible  <bruno@clisp.org>
18696
18697         * lib/copy-file.c: Include <stddef.h>, for size_t.
18698
18699 2003-04-21  Paul Eggert  <eggert@twinsun.com>
18700
18701         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
18702         code which expansion is under static control.  Patch imported from
18703         Akim Demaille's patch to Bison; see
18704         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
18705
18706 2003-04-14  Bruno Haible  <bruno@clisp.org>
18707
18708         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
18709
18710 2003-04-11  Jim Meyering  <jim@meyering.net>
18711
18712         Merge changes from Coreutils.
18713
18714         2003-03-22  Jim Meyering  <jim@meyering.net>
18715
18716         * lib/strftime.c (widen): Cast alloca return value to proper type.
18717
18718         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
18719
18720         From GNU libc.
18721         * lib/strftime.c (my_strftime): Handle very large width
18722         specifications for numeric values correctly.  Improve checks for
18723         overflow.
18724
18725         2003-01-19  Jim Meyering  <jim@meyering.net>
18726
18727         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
18728         definitions.
18729         (nl_get_alt_digit) [! defined my_strftime]: Define.
18730         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
18731         _nl_get_alt_digit and _nl_get_walt_digit.
18732
18733         * lib/strftime.c (my_strftime): Merge in locale-related changes from
18734         libc. These changes have no effect outside of _LIBC.
18735
18736 2003-04-10  Bruno Haible  <bruno@clisp.org>
18737
18738         * modules/findprog: New file.
18739         * MODULES.html.sh (func_all_modules): Add it.
18740
18741 2003-04-10  Bruno Haible  <bruno@clisp.org>
18742
18743         * m4/findprog.m4: New file.
18744         * m4/eaccess.m4: New file.
18745
18746 2003-04-10  Bruno Haible  <bruno@clisp.org>
18747
18748         * lib/findprog.h: New file, from GNU gettext.
18749         * lib/findprog.c: New file, from GNU gettext.
18750
18751 2003-04-05  Jim Meyering  <jim@meyering.net>
18752
18753         Merge changes from Coreutils.
18754
18755         * lib/exclude.h (PARAMS): Remove definition and uses.
18756         * lib/exclude.c: Remove uses of `PARAMS'.
18757
18758         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
18759         Add test-cases for DOS filenames. Declare program_name.
18760         (main): Set up program_name.  Patch by Rich Dawe.
18761
18762         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18763         error from mntctl.
18764         Use mntctl's return value to drive the entry-processing loop, since
18765         we can't rely on the value of the vmt_length member in the last
18766         entry.  On some systems doing so could result in exhausting
18767         virtual memory.  Based in part on a patch from Mike Jetzer.
18768
18769 2003-04-04  Bruno Haible  <bruno@clisp.org>
18770
18771         * modules/linebreak: New file.
18772         * MODULES.html.sh (func_all_modules): Add it.
18773
18774 2003-04-04  Bruno Haible  <bruno@clisp.org>
18775
18776         * m4/linebreak.m4: New file.
18777
18778 2003-04-04  Bruno Haible  <bruno@clisp.org>
18779
18780         * lib/linebreak.h: New file, from GNU gettext.
18781         * lib/linebreak.c: New file, from GNU gettext with slight
18782         modifications.
18783         * lib/lbrkprop.h: New file, from GNU gettext.
18784
18785 2003-04-03  Bruno Haible  <bruno@clisp.org>
18786
18787         * modules/utf8-ucs4: New file.
18788         * modules/utf16-ucs4: New file.
18789         * modules/ucs4-utf8: New file.
18790         * modules/ucs4-utf16: New file.
18791         * MODULES.html.sh (func_all_modules): Add them.
18792
18793 2003-04-03  Bruno Haible  <bruno@clisp.org>
18794
18795         * m4/utf-ucs4.m4: New file.
18796         * m4/ucs4-utf.m4: New file.
18797
18798 2003-04-03  Bruno Haible  <bruno@clisp.org>
18799
18800         * lib/utf8-ucs4.h: New file, from GNU gettext.
18801         * lib/utf16-ucs4.h: New file, from GNU gettext.
18802         * lib/ucs4-utf8.h: New file, from GNU gettext.
18803         * lib/ucs4-utf16.h: New file, from GNU gettext.
18804
18805 2003-04-02  Bruno Haible  <bruno@clisp.org>
18806
18807         * modules/binary-io: New file.
18808         * MODULES.html.sh (func_all_modules): Add it.
18809
18810 2003-04-02  Bruno Haible  <bruno@clisp.org>
18811
18812         * lib/binary-io.h: New file, from GNU gettext.
18813
18814 2003-04-01  Bruno Haible  <bruno@clisp.org>
18815
18816         * modules/pathname: New file.
18817         * MODULES.html.sh (func_all_modules): Add it.
18818
18819 2003-04-01  Bruno Haible  <bruno@clisp.org>
18820
18821         * lib/pathname.h: New file, from GNU gettext.
18822         * lib/concatpath.c: New file, from GNU gettext.
18823
18824 2003-03-30  Bruno Haible  <bruno@clisp.org>
18825
18826         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
18827
18828 2003-03-30  Bruno Haible  <bruno@clisp.org>
18829
18830         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
18831         function chown() doesn't exist.
18832
18833 2003-03-28  Bruno Haible  <bruno@clisp.org>
18834
18835         * modules/copy-file: New file.
18836         * MODULES.html.sh (func_all_modules): Add it.
18837
18838 2003-03-28  Bruno Haible  <bruno@clisp.org>
18839
18840         * m4/copy-file.m4: New file.
18841
18842 2003-03-28  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/copy-file.h: New file, from GNU gettext.
18845         * lib/copy-file.c: New file, from GNU gettext.
18846
18847 2003-03-18  Jim Meyering  <jim@meyering.net>
18848
18849         * lib/quote.c (quote_n): Fix typo in comment.
18850
18851 2003-03-18  Bruno Haible  <bruno@clisp.org>
18852
18853         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
18854         checking.
18855         * m4/onceonly_2_57.m4: Likewise.
18856
18857 2003-03-17  Bruno Haible  <bruno@clisp.org>
18858
18859         * m4/onceonly.m4: Require autoconf 2.54 or newer.
18860         (m4_quote): Remove macro.
18861         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
18862
18863 2003-03-14  Jim Meyering  <jim@meyering.net>
18864
18865         Merge changes from Coreutils.
18866         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
18867         to be const, in order to avoid warnings.
18868         (obstack_room): Likewise.
18869         (obstack_empty_p): Likewise.
18870
18871 2003-03-14  Bruno Haible  <bruno@clisp.org>
18872
18873         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
18874         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
18875
18876 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18877
18878         Merge changes from Bison.
18879         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
18880         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
18881         when compiling Bison 1.875's `bitset bset = obstack_alloc
18882         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
18883         * lib/hash.c: Include <stdbool.h> unconditionally.
18884
18885 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18886
18887         * m4/onceonly.m4 (m4_quote): New macro.
18888         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
18889         Quote AC_FOREACH variable-expansions properly.
18890
18891 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18892
18893         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
18894
18895 2003-03-09  Paul Eggert  <eggert@twinsun.com>
18896
18897         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
18898         Reported by Bruce Becker; see:
18899         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
18900
18901 2003-03-03  Paul Eggert  <eggert@twinsun.com>
18902             Bruno Haible  <bruno@clisp.org>
18903
18904         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
18905         Reported by John Hughes, see
18906         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
18907
18908 2003-02-20  Bruno Haible  <bruno@clisp.org>
18909
18910         * MODULES.html.sh (func_all_modules): Add poll.
18911
18912 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18913
18914         * modules/poll: New file.
18915
18916 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18917
18918         * lib/poll_.h: New file.
18919         * lib/poll.c: New file.
18920
18921 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18922
18923         * m4/poll.m4: New file.
18924
18925 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18926
18927         * modules/mathl: New file.
18928
18929 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18930
18931         * lib/mathl.h: New file.
18932         * lib/acosl.c: New file.
18933         * lib/asinl.c: New file.
18934         * lib/atanl.c: New file.
18935         * lib/ceill.c: New file.
18936         * lib/cosl.c: New file.
18937         * lib/expl.c: New file.
18938         * lib/floorl.c: New file.
18939         * lib/frexpl.c: New file.
18940         * lib/ldexpl.c: New file.
18941         * lib/logl.c: New file.
18942         * lib/sincosl.c: New file.
18943         * lib/sinl.c: New file.
18944         * lib/sqrtl.c: New file.
18945         * lib/tanl.c: New file.
18946         * lib/trigl.c: New file.
18947         * lib/trigl.h: New file.
18948
18949 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18950
18951         * m4/mathl.m4: New file.
18952
18953 2003-02-18  Bruno Haible  <bruno@clisp.org>
18954
18955         * MODULES.html.sh (func_all_modules): Add mathl.
18956
18957 2003-02-17  Bruno Haible  <bruno@clisp.org>
18958
18959         * modules/mkdtemp: New module.
18960         * MODULES.html.sh (func_all_modules): Add it.
18961
18962 2003-02-17  Bruno Haible  <bruno@clisp.org>
18963
18964         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
18965
18966 2003-02-17  Bruno Haible  <bruno@clisp.org>
18967
18968         * lib/mkdtemp.h: New file, from GNU gettext.
18969         * lib/mkdtemp.c: New file, from GNU gettext.
18970
18971 2003-02-02  Jim Meyering  <jim@meyering.net>
18972
18973         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
18974         e.g. glibc-2.2.93.
18975
18976 2003-01-31  Bruno Haible  <bruno@clisp.org>
18977
18978         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
18979         'rpl_rename'.
18980         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
18981         'rpl_strnlen'.
18982         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
18983         'rpl_strtod'.
18984         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
18985         'rpl_utime'.
18986
18987 2003-01-31  Bruno Haible  <bruno@clisp.org>
18988
18989         * lib/rename.c: #undef rename before defining rpl_rename.
18990         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
18991
18992 2003-01-30  Bruno Haible  <bruno@clisp.org>
18993
18994         * modules/vasnprintf, modules/vasprintf: New modules.
18995         * MODULES.html.sh (func_all_modules): Add them.
18996
18997 2003-01-30  Bruno Haible  <bruno@clisp.org>
18998
18999         * m4/signed.m4: New file, from GNU gettext.
19000         * m4/longdouble.m4: New file, from GNU gettext.
19001         * m4/wchar_t.m4: New file, from GNU gettext.
19002         * m4/wint_t.m4: New file, from GNU gettext.
19003         * m4/vasnprintf.m4: New file.
19004         * m4/vasprintf.m4: New file.
19005
19006 2003-01-30  Bruno Haible  <bruno@clisp.org>
19007
19008         * lib/printf-args.h: New file, from GNU gettext.
19009         * lib/printf-args.c: New file, from GNU gettext.
19010         * lib/printf-parse.h: New file, from GNU gettext.
19011         * lib/printf-parse.c: New file, from GNU gettext.
19012         * lib/vasnprintf.h: New file, from GNU gettext.
19013         * lib/vasnprintf.c: New file, from GNU gettext.
19014         * lib/asnprintf.c: New file, from GNU gettext.
19015         * lib/vasprintf.h: New file, from GNU gettext with modifications.
19016         * lib/vasprintf.c: New file, from GNU gettext.
19017         * lib/asprintf.c: New file, from GNU gettext.
19018
19019 2003-01-29  Bruno Haible  <bruno@clisp.org>
19020
19021         * modules/stpncpy: New module.
19022         * MODULES.html.sh (func_all_modules): Add it.
19023
19024 2003-01-29  Bruno Haible  <bruno@clisp.org>
19025
19026         * m4/stpncpy.m4: New file.
19027
19028 2003-01-29  Bruno Haible  <bruno@clisp.org>
19029
19030         * lib/stpncpy.h: New file, from GNU gettext with modifications.
19031         * lib/stpncpy.c: New file, from GNU gettext with modifications.
19032
19033 2003-01-28  Bruno Haible  <bruno@clisp.org>
19034
19035         * modules/c-ctype: New module.
19036         * MODULES.html.sh (func_all_modules): Add it.
19037
19038 2003-01-28  Bruno Haible  <bruno@clisp.org>
19039
19040         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
19041         Paul Eggert.
19042         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
19043         Paul Eggert.
19044
19045 2003-01-27  Bruno Haible  <bruno@clisp.org>
19046
19047         * modules/xsetenv: New module.
19048         * MODULES.html.sh (func_all_modules): Add it.
19049
19050 2003-01-27  Bruno Haible  <bruno@clisp.org>
19051
19052         * lib/xsetenv.h: New file, from GNU gettext.
19053         * lib/xsetenv.c: New file, from GNU gettext.
19054
19055 2003-01-23  Jim Meyering  <jim@meyering.net>
19056
19057         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
19058         from working on systems without dirfd (at least Irix and OSF1/Tru64).
19059
19060 2003-01-23  Bruno Haible  <bruno@clisp.org>
19061
19062         * modules/minmax: New module.
19063         * MODULES.html.sh (func_all_modules): Add it.
19064
19065 2003-01-23  Bruno Haible  <bruno@clisp.org>
19066
19067         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
19068         Eggert.
19069
19070 2003-01-22  Bruno Haible  <bruno@clisp.org>
19071
19072         * modules/exit: New module.
19073         * MODULES.html.sh (func_all_modules): Add it.
19074
19075 2003-01-22  Bruno Haible  <bruno@clisp.org>
19076
19077         * lib/exit.h: New file, from GNU gettext.
19078
19079 2003-01-19  Bruno Haible  <bruno@clisp.org>
19080
19081         * gnulib-tool: Recognize option --extract-maintainer.
19082         (func_get_maintainer): New function.
19083         * modules/*: Add Maintainer entry.
19084
19085 2003-01-16  Jim Meyering  <jim@meyering.net>
19086
19087         * m4/regex.m4: The `regex' struct is both input and output.
19088         Initialize it before each use.  Patch by Tim Waugh.
19089
19090 2003-01-16  Bruno Haible  <bruno@clisp.org>
19091
19092         * MODULES.html.sh: Add a table of contents. Add the module name as
19093         leftmost column. Add hyperlinks.
19094
19095 2003-01-15  Bruno Haible  <bruno@clisp.org>
19096
19097         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
19098
19099 2003-01-15  Bruno Haible  <bruno@clisp.org>
19100
19101         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
19102         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
19103         suffix.
19104
19105 2003-01-15  Bruno Haible  <bruno@clisp.org>
19106
19107         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
19108
19109 2003-01-15  Bruno Haible  <bruno@clisp.org>
19110
19111         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
19112         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
19113
19114 2003-01-14  Jim Meyering  <jim@meyering.net>
19115
19116         * lib/same.c (same_name): Tweak a comment.
19117
19118 2003-01-14  Bruno Haible  <bruno@clisp.org>
19119
19120         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
19121         when a string comparison is sufficient.
19122
19123 2003-01-14  Bruno Haible  <bruno@clisp.org>
19124
19125         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
19126         'unsigned int'.
19127
19128 2003-01-14  Bruno Haible  <bruno@clisp.org>
19129
19130         * lib/hash-pjw.c: Add comment about low quality of this function.
19131
19132 2003-01-13  Bruno Haible  <bruno@clisp.org>
19133
19134         * modules/stpcpy: Distribute lib/stpcpy.h.
19135         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
19136
19137 2003-01-13  Bruno Haible  <bruno@clisp.org>
19138
19139         * modules/*: Add a description.
19140         * modules/strpbrk: Fix Makefile.am snippet.
19141         * modules/strtoimax: Fix dependencies.
19142         * modules/strtoumax: Likewise.
19143
19144 2003-01-13  Bruno Haible  <bruno@clisp.org>
19145
19146         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
19147         * modules/alloca (Makefile.am): All object files depend on alloca.h.
19148         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
19149
19150 2003-01-13  Bruno Haible  <bruno@clisp.org>
19151
19152         * gnulib-tool (func_create_testdir): Store config/* files in the main
19153         directory.
19154         * config.rpath: Move to ...
19155         * config/config.rpath: ... here.
19156         * modules/gettext: Contains config/config.rpath, not config.rpath.
19157         * modules/iconv: Likewise.
19158
19159 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19160
19161         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19162         to avoid collisions with libcurses and libreadline.
19163
19164         * m4/getstr.m4: Remove.
19165         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
19166
19167 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19168
19169         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19170         to avoid collisions with libcurses and libreadline.
19171
19172         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
19173         * lib/getstr.h, getstr.c: Remove.
19174         * lib/getline.c: Include "getline.h", to check interface.
19175         Move body of old getstr.c here: this defines MIN_CHUNK and
19176         declares getdelim2, which is renamed from getstr.
19177         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
19178
19179         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
19180         All uses changed.
19181         * lib/linebuffer.h: Likewise.
19182         (readline): Remove backward-compatibility macro.
19183
19184 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19185
19186         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19187         to avoid collisions with libcurses and libreadline.
19188         * getstr: Remove.
19189         * MODULES.html.sh: Remove getstr.
19190         * modules/getline: Depend on unlocked-io, not getstr.
19191
19192 2003-01-12  Jim Meyering  <jim@meyering.net>
19193
19194         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
19195
19196 2003-01-10  Bruno Haible  <bruno@clisp.org>
19197
19198         * modules/alloca: Change Makefile.am requirements. Simplify Include
19199         requirements. Add lib/alloca_.h to file list.
19200
19201 2003-01-10  Bruno Haible  <bruno@clisp.org>
19202
19203         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
19204
19205 2003-01-10  Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/alloca_.h: New file.
19208         * lib/getdate.y: Unconditionally include alloca.h.
19209         * lib/makepath.c: Likewise.
19210         * lib/setenv.c: Likewise.
19211         * lib/userspec.c: Likewise.
19212
19213 2003-01-09  Karl Berry  <karl@gnu.org>
19214
19215         * MODULES.html.sh: include `dirname $0` in PATH, to find
19216         gnulib-tool.
19217
19218 2003-01-09  Bruno Haible  <bruno@clisp.org>
19219
19220         * modules/stdbool: Change configure.ac, Makefile.am requirements.
19221         Simplify Include requirements. Add lib/stdbool.h.in to file list.
19222
19223 2003-01-09  Bruno Haible  <bruno@clisp.org>
19224
19225         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
19226
19227 2003-01-09  Bruno Haible  <bruno@clisp.org>
19228
19229         * lib/stdbool.h.in: New file.
19230
19231 2003-01-09  Bruno Haible  <bruno@clisp.org>
19232
19233         * gnulib-tool (func_all_modules): Ignore files ending in ~.
19234         * MODULES.html.sh: Likewise.
19235
19236 2003-01-08  Jim Meyering  <jim@meyering.net>
19237
19238         * lib/full-write.c: Undefine and define-away `const' after inclusion
19239         of errno.h, not before.  Suggestion from Bruno Haible.
19240
19241 2003-01-08  Bruno Haible  <bruno@clisp.org>
19242
19243         * modules/full-read: Depend on full-write.
19244
19245 2003-01-08  Bruno Haible  <bruno@clisp.org>
19246
19247         * lib/safe-read.c: Include specification header first, to ensure its
19248         selfcontainedness.
19249         * lib/full-write.c: Likewise.
19250
19251 2003-01-07  Jim Meyering  <jim@meyering.net>
19252
19253         * lib/full-write.c: Rework so that it may serve to define full_read,
19254         too.
19255         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
19256
19257 2003-01-07  Bruno Haible  <bruno@clisp.org>
19258
19259         * lib/strtoimax.c: Include <stdint.h> as an alternative to
19260         <inttypes.h>.
19261         * lib/xstrtol.h: Likewise.
19262         * lib/xstrtoimax.c: Likewise.
19263         * lib/xstrtoumax.c: Likewise.
19264         * lib/human.h: Likewise.
19265
19266         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
19267         on systems that have <inttypes.h> but not <stdint.h>.
19268
19269 2003-01-07  Bruno Haible  <bruno@clisp.org>
19270
19271         * MODULES.html.sh: Add copyright notice.
19272         (missed_files): Omit CVS directory entries.
19273         (func_module): Make it work with sed-3.02.
19274         * MODULES.txt: Remove file.
19275
19276 2003-01-06  Jim Meyering  <jim@meyering.net>
19277
19278         * lib/version-etc.c: Update year in translatable copyright string.
19279
19280 2003-01-03  Karl Berry  <karl@gnu.org>
19281
19282         * config/config.{guess,sub}: update from prep.
19283
19284 2003-01-02  Karl Berry  <karl@gnu.org>
19285
19286         * doc/COPYING.DOC: belatedly updated to 1.2.
19287
19288 2003-01-01  Karl Berry  <karl@gnu.org>
19289
19290         * gnulib-tool (func_verify_module): report module name $module in
19291         error message, not $1.
19292         * gnulib-tool (create-testdir): don't complain if destdir couldn't
19293         be created, only if it doesn't exist.
19294         * gnulib-tool (last_checkin_date): don't expand the $Date here.
19295
19296 2002-12-31  Paul Eggert  <eggert@twinsun.com>
19297
19298         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
19299
19300 2002-12-31  Paul Eggert  <eggert@twinsun.com>
19301
19302         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
19303         memcmp if strcoll doesn't work.
19304
19305 2002-12-31  Bruno Haible  <bruno@clisp.org>
19306
19307         * lib/utime.c (utime_null): No need to call ftruncate if the file was
19308         nonempty.
19309
19310 2002-12-31  Bruno Haible  <bruno@clisp.org>
19311
19312         * lib/memcoll.c (STRCOLL): New macro.
19313         (memcoll): Use it.
19314
19315 2002-12-31  Bruno Haible  <bruno@clisp.org>
19316
19317         * lib/localcharset.h: New file.
19318         * lib/localcharset.c: Include it.
19319         * lib/unicodeio.c: Likewise.
19320
19321 2002-12-31  Bruno Haible  <bruno@clisp.org>
19322
19323         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
19324         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
19325
19326 2002-12-31  Bruno Haible  <bruno@clisp.org>
19327
19328         * lib/getline.h: Include <stddef.h>, for size_t.
19329
19330         * lib/unicodeio.h: Include <stddef.h>, for size_t.
19331         * lib/unicodeio.c: Don't include <stddef.h>.
19332
19333 2002-12-31  Bruno Haible  <bruno@clisp.org>
19334
19335         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
19336         HAVE_TM_ZONE.
19337
19338 2002-12-24  Karl Berry  <karl@gnu.org>
19339
19340         * config/config.guess: update from prep.
19341
19342 2002-12-24  Bruno Haible  <bruno@clisp.org>
19343
19344         General infrasructure.
19345         * m4/README: Rewritten.
19346         * m4/onceonly.m4: New file.
19347         * m4/onceonly_2_57.m4: New file.
19348
19349         Module atexit.
19350         * m4/atexit.m4: New file.
19351
19352         Module strtod.
19353         * m4/strtod.m4: New file.
19354
19355         Module strtol.
19356         * m4/strtol.m4: New file.
19357
19358         Module strtoul.
19359         * m4/strtoul.m4: New file.
19360
19361         Module memchr.
19362         * m4/memchr.m4: New file.
19363
19364         Module memcmp.
19365         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
19366         (jm_FUNC_MEMCMP): Invoke it.
19367
19368         Module memcpy.
19369         * m4/memcpy.m4: New file.
19370
19371         Module memmove.
19372         * m4/memmove.m4: New file.
19373
19374         Module memset.
19375         * m4/memset.m4: New file.
19376
19377         Module strcspn.
19378         * m4/strcspn.m4: New file.
19379
19380         Module strpbrk.
19381         * m4/strpbrk.m4: New file.
19382
19383         Module strstr.
19384         * m4/strstr.m4: New file.
19385
19386         Module strerror.
19387         * m4/strerror.m4: New file.
19388
19389         Module mktime.
19390         * m4/mktime.m4: Renamed from jm-mktime.m4.
19391         (gl_PREREQ_MKTIME): New macro.
19392         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
19393
19394         Module malloc.
19395         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
19396         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
19397         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
19398
19399         Module realloc.
19400         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
19401         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
19402         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
19403
19404         Module strftime.
19405         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
19406         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
19407         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
19408         gl_TM_GMTOFF.
19409         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
19410
19411         Module xalloc.
19412         * m4/xalloc.m4: New file.
19413
19414         Module alloca.
19415         * m4/alloca.m4: New file.
19416
19417         Module putenv.
19418         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19419         (jm_FUNC_PUTENV): Invoke it.
19420
19421         Module setenv.
19422         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
19423         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
19424         when invoked twice.
19425         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
19426         gt_FUNC_SETENV.
19427
19428         Module memrchr.
19429         * m4/memrchr.m4: New file.
19430
19431         Module stpcpy.
19432         * m4/stpcpy.m4: New file.
19433
19434         Module strcase.
19435         * m4/strcase.m4: New file.
19436
19437         Module strdup.
19438         * m4/strdup.m4: New file.
19439
19440         Module strnlen.
19441         * m4/strnlen.m4: New file.
19442
19443         Module strndup.
19444         * m4/strndup.m4: New file.
19445
19446         Module xstrtod.
19447         * m4/xstrtod.m4: New file.
19448
19449         Module xstrtol.
19450         * m4/xstrtol.m4: New file.
19451
19452         Module getdate.
19453         * m4/getdate.m4: New file.
19454
19455         Module unlocked-io.
19456         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
19457         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
19458         * m4/jm-glibc-io.m4n: Remove file.
19459
19460         Module long-options.
19461         * m4/long-options.m4: New file.
19462
19463         Module md5.
19464         * m4/md5.m4: New file.
19465
19466         Module sha.
19467         * m4/sha.m4: New file.
19468
19469         Module getstr.
19470         * m4/getstr.m4: New file.
19471
19472         Module getline.
19473         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
19474         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
19475         <sys/types.h>, for size_t. Use the function name gnu_getline, not
19476         simply getline. Infoke gl_PREREQ_GETLINE.
19477
19478         Module obstack.
19479         * m4/obstack.m4: New file.
19480
19481         Module hash.
19482         * m4/hash.m4: New file.
19483
19484         Module readtokens.
19485         * m4/readtokens.m4: New file.
19486
19487         Module strverscmp.
19488         * m4/strverscmp.m4: New file.
19489
19490         Module stdbool.
19491         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
19492         OSF/1.
19493
19494         Module strtoll.
19495         * m4/strtoll.m4: New file.
19496
19497         Module strtoull.
19498         * m4/strtoull.m4: New file.
19499
19500         Module strtoimax.
19501         * m4/strtoimax.m4: New file.
19502
19503         Module strtoumax.
19504         * m4/strtoumax.m4: New file.
19505
19506         Module xstrtoimax.
19507         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
19508         jm_AC_PREREQ_XSTRTOIMAX.
19509         Moved the strtol prerequisites to strtol.m4.
19510         Moved the strtoll prerequisites to strtoll.m4.
19511         Moved the strtoimax prerequisites to strtoimax.m4.
19512
19513         Module xstrtoumax.
19514         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
19515         jm_AC_PREREQ_XSTRTOUMAX.
19516         Moved the strtoul prerequisites to strtoul.m4.
19517         Moved the strtoull prerequisites to strtoull.m4.
19518         Moved the strtoumax prerequisites to strtoumax.m4.
19519
19520         Module chown.
19521         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
19522         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
19523
19524         Module dup2.
19525         * m4/dup2.m4: New file.
19526
19527         Module ftruncate.
19528         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
19529         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
19530
19531         Module getgroups.
19532         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
19533         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
19534
19535         Module gettimeofday.
19536         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
19537         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
19538         gl_PREREQ_GETTIMEOFDAY.
19539
19540         Module mkdir.
19541         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
19542         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
19543
19544         Module mkstemp.
19545         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
19546         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
19547         jm_AC_TYPE_UINTMAX_T.
19548         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
19549
19550         Module stat.
19551         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
19552         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
19553
19554         Module lstat.
19555         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
19556         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
19557
19558         Module timespec.
19559         * m4/timespec.m4 (gl_TIMESPEC): New macro.
19560         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
19561         * m4/st_mtim.m4: Indentation.
19562
19563         Module nanosleep.
19564         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
19565         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
19566         gl_PREREQ_NANOSLEEP.
19567
19568         Module regex.
19569         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
19570         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
19571         (gl_REGEX): New macro.
19572
19573         Module rename.
19574         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
19575         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
19576
19577         Module rmdir.
19578         * m4/rmdir.m4: New file.
19579
19580         Module utime.
19581         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
19582         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
19583         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
19584
19585         Module dirname.
19586         * m4/dirname.m4: New file.
19587
19588         Module getopt.
19589         * m4/getopt.m4: New file.
19590
19591         Module unistd-safer.
19592         * m4/unistd-safer.m4: New file.
19593
19594         Module fnmatch.
19595         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
19596         declaration.
19597         (gl_PREREQ_FNMATCH_EXTRA): New macro.
19598         (gl_FUNC_FNMATCH_POSIX): New macro.
19599         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
19600         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
19601         simply fnmatch.
19602
19603         Module exclude.
19604         * m4/exclude.m4: New file.
19605
19606         Module human.
19607         * m4/human.m4: New file.
19608
19609         Module acl.
19610         * m4/acl.m4: Nop.
19611
19612         Module backupfile.
19613         * m4/backupfile.m4: New file.
19614         * m4/d-ino.m4: Indentation.
19615
19616         Module fsusage.
19617         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
19618         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
19619         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
19620
19621         Module dirfd.
19622         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
19623         requirements.
19624
19625         Module euidaccess.
19626         * m4/euidaccess.m4: New file.
19627
19628         Module file-type.
19629         * m4/file-type.m4: New file.
19630
19631         Module fileblocks.
19632         * m4/fileblocks.m4: New file.
19633
19634         Module filemode.
19635         * m4/filemode.m4: New file.
19636
19637         Module isdir.
19638         * m4/isdir.m4: New file.
19639
19640         Module lchown.
19641         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
19642         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
19643
19644         Module makepath.
19645         * m4/makepath.m4: New file.
19646
19647         Module modechange.
19648         * m4/modechange.m4: New file.
19649
19650         Module mountlist.
19651         * m4/mountlist.m4: New file.
19652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
19653         Indentation.
19654
19655         Module path-concat.
19656         * m4/path-concat.m4: New file.
19657
19658         Module pathmax.
19659         * m4/pathmax.m4: New file.
19660
19661         Module same.
19662         * m4/same.m4: New file.
19663
19664         Module save-cwd.
19665         * m4/save-cwd.m4: New file.
19666
19667         Module savedir.
19668         * m4/savedir.m4: New file.
19669
19670         Module xgetcwd.
19671         * m4/xgetcwd.m4: New file.
19672         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
19673
19674         Module xreadlink.
19675         * m4/xreadlink.m4: New file.
19676
19677         Module safe-read.
19678         * m4/safe-read.m4: New file.
19679
19680         Module safe-write.
19681         * m4/safe-write.m4: New file.
19682
19683         Module closeout.
19684         * m4/closeout.m4: New file.
19685
19686         Module stdio-safer.
19687         * m4/stdio-safer.m4: New file.
19688
19689         Module getpass.
19690         * m4/getpass.m4: New file.
19691
19692         Module getugroups.
19693         * m4/getugroups.m4: New file.
19694
19695         Module group-member.
19696         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
19697         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
19698
19699         Module idcache.
19700         * m4/idcache.m4: New file.
19701
19702         Module userspec.
19703         * m4/userspec.m4: New file.
19704
19705         Module gettime.
19706         * m4/clock_time.m4: New file.
19707         * m4/gettime.m4: New file.
19708
19709         Module settime.
19710         * m4/settime.m4: New file.
19711
19712         Module posixtm.
19713         * m4/posixtm.m4: New file.
19714
19715         Module gethostname.
19716         * m4/gethostname.m4: New file.
19717
19718         Module canon-host.
19719         * m4/canon-host.m4: New file.
19720
19721         Module gettext.
19722         * m4/codeset.m4: New file, from gettext-0.11.5.
19723         * m4/gettext.m4: New file, from gettext-0.11.5.
19724         * m4/glibc21.m4: New file, from gettext-0.11.5.
19725         * m4/iconv.m4: New file, from gettext-0.11.5.
19726         * m4/intdiv0.m4: New file, from gettext-0.11.5.
19727         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
19728         * m4/inttypes.m4: New file, from gettext-0.11.5.
19729         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
19730         * m4/isc-posix.m4: New file, from gettext-0.11.5.
19731         * m4/lcmessage.m4: New file, from gettext-0.11.5.
19732         * m4/lib-ld.m4: New file, from gettext-0.11.5.
19733         * m4/lib-link.m4: New file, from gettext-0.11.5.
19734         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
19735         * m4/progtest.m4: New file, from gettext-0.11.5.
19736         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
19737         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
19738         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
19739
19740         Module localcharset.
19741         * m4/localcharset.m4: New file.
19742
19743         Module hard-locale.
19744         * m4/hard-locale.m4: New file.
19745
19746         Module mbswidth.
19747         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
19748         onceonly macros.
19749         * m4/mbrtowc.m4: Add comment.
19750
19751         Module memcasecmp.
19752         * m4/memcasecmp.m4: New file.
19753
19754         Module memcoll.
19755         * m4/memcoll.m4: New file.
19756
19757         Module unicodeio.
19758         * m4/unicodeio.m4: New file.
19759
19760         Module rpmatch.
19761         * m4/rpmatch.m4: New file.
19762
19763         Module yesno.
19764         * m4/yesno.m4: New file.
19765
19766         Module exitfail.
19767         * m4/exitfail.m4: New file.
19768
19769         Module c-stack.
19770         * m4/c-stack.m4 (gl_C_STACK): New macro.
19771         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
19772
19773         Module error.
19774         * m4/error.m4 (gl_ERROR): New macro.
19775         (jm_PREREQ_ERROR): Use onceonly macros.
19776
19777         Module fatal.
19778         * m4/fatal.m4: New file.
19779
19780         Module getloadavg.
19781         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
19782         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
19783
19784         Module getpagesize.
19785         * m4/getpagesize.m4: New file.
19786
19787         Module getusershell.
19788         * m4/getusershell.m4: New file.
19789
19790         Module physmem.
19791         * m4/physmem.m4: New file.
19792
19793         Module posixver.
19794         * m4/posixver.m4: New file.
19795
19796         Module quotearg.
19797         * m4/quotearg.m4: New file.
19798
19799         Module quote.
19800         * m4/quote.m4: New file.
19801
19802         Module readutmp.
19803         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
19804
19805         Module sig2str.
19806         * m4/sig2str.m4: New file.
19807
19808         Other.
19809         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
19810         ulonglong.m4.
19811         * m4/intmax_t.m4: New file.
19812         * m4/d-type.m4: Indentation.
19813         * m4/jm-macros.m4: Update.
19814         * m4/prereq.m4 (jm_PREREQ): Update.
19815         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
19816         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
19817         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
19818         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
19819         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
19820         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
19821         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
19822         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
19823         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
19824         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
19825         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
19826         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
19827         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
19828         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
19829         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
19830         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
19831         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
19832         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
19833         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
19834
19835 2002-12-24  Bruno Haible  <bruno@clisp.org>
19836
19837         * MODULES.txt: Update according to m4/ changes.
19838
19839         Module gettext.
19840         * config.rpath: New file, from gettext-0.11.5.
19841
19842         * modules/*: New module descriptions.
19843         * gnulib-tool: New file.
19844         * MODULES.html.sh: New file.
19845
19846 2002-12-21  Karl Berry  <karl@gnu.org>
19847
19848         * doc/fdl.texi: update to version 1.2.
19849
19850 2002-12-19  Karl Berry  <karl@gnu.org>
19851
19852         * config/config.guess: update from prep.
19853
19854 2002-12-18  Bruno Haible  <bruno@clisp.org>
19855
19856         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
19857         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
19858
19859 2002-12-17  Bruno Haible  <bruno@clisp.org>
19860
19861         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
19862         stdlib.h, string.h.
19863
19864 2002-12-17  Bruno Haible  <bruno@clisp.org>
19865
19866         * lib/canon-host.c (strdup): Remove unused declaration.
19867
19868         * lib/fsusage.c: Include full_read.h.
19869         (get_fs_usage): Use full_read instead of safe_read.
19870
19871         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
19872
19873 2002-12-12  Karl Berry  <karl@gnu.org>
19874
19875         * config/config.guess: update from prep.
19876
19877 2002-12-11  Bruno Haible  <bruno@clisp.org>
19878
19879         * m4/setenv.m4: New file, from gettext-0.11.5.
19880
19881 2002-12-11  Bruno Haible  <bruno@clisp.org>
19882
19883         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
19884         not unsetenv().
19885         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
19886         modifications:
19887
19888         2002-12-11  Bruno Haible  <bruno@clisp.org>
19889
19890                 * setenv.c (alloca): Fall back to malloc.
19891                 (freea): New macro.
19892                 (setenv): Use freea() to free memory allocated with alloca().
19893
19894         2002-11-13  Bruno Haible  <bruno@clisp.org>
19895
19896                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
19897                 function declarations.
19898                 * unsetenv.c (unsetenv): Likewise.
19899
19900         2002-03-04  Bruno Haible  <bruno@clisp.org>
19901
19902                 Portability to AIX 4.3.3.
19903                 * unsetenv.c: New file, extracted from setenv.c.
19904                 * setenv.c: Move the unsetenv() function to unsetenv.c.
19905
19906         2001-12-20  Bruno Haible  <bruno@clisp.org>
19907
19908                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
19909                 use malloc instead. For SunOS 4.
19910
19911         2001-12-11  Bruno Haible  <bruno@clisp.org>
19912
19913                 * setenv.c: Declare alloca.
19914                 (compar_fn_t): New typedef.
19915                 (KNOWN_VALUE, STORE_VALUE): Use it.
19916
19917         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
19918         setenv.h.
19919
19920 2002-12-10  Paul Eggert  <eggert@twinsun.com>
19921
19922         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
19923         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
19924         Choose values that are less likely to collide with system fnmatch
19925         options.
19926         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
19927         defined (e.g., a pure POSIX system).
19928         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
19929         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
19930
19931 2002-12-06  Paul Eggert  <eggert@twinsun.com>
19932
19933         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
19934         a pain in practice to deal with generated m4 files.  This change
19935         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
19936
19937         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
19938         and jm-glibc-io.m4, as they are no longer a special case.
19939         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
19940         kludge and the auto-generation stuff.  Check only whether the
19941         functions are declared, not whether they exist, since older hosts
19942         that don't declare the functions can't use the optimization anyway.
19943
19944 2002-12-06  Jim Meyering  <jim@meyering.net>
19945
19946         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
19947
19948         Merge in changes from libc's misc/error.c, in preparation
19949         for the merge of gnulib's changes back into libc.
19950
19951         * lib/error.c (_): Define only if not already defined.
19952         Move definition to follow all #include directives.
19953         Include unlocked-io.h only if !_LIBC.
19954         [_LIBC]: Include <libio/libioP.h>.
19955         [USE_IN_LIBIO]: Include <libio/iolibio.h>
19956         (fflush): Tweak definition to use INTUSE.
19957         (putc): Define.
19958
19959 2002-12-05  Paul Eggert  <eggert@twinsun.com>
19960
19961         * lib/alloca.c [defined emacs]: Include "lisp.h".
19962         (xalloc_die) [defined emacs]: New macro.
19963         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
19964         [! defined emacs]: Include <xalloc.h>.
19965         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
19966         (pointer): Typedef to POINTER_TYPE *.
19967         (malloc): Remove decl; we now always use xmalloc.
19968         (alloca): Use old-style definition, since Emacs needs this.
19969         Check for arithmetic overflow when computing combined size.
19970
19971 2002-12-04  Paul Eggert  <eggert@twinsun.com>
19972
19973         Do not generate unlocked-io.h automatically, since it's easier to
19974         maintain it by hand.
19975
19976         * lib/unlocked-io.h: New file, from GNU diffutils,
19977         but with proper copyright notice and attribution.
19978         * lib/gen-uio: Remove.
19979         * lib/Makefile.am: Add copyright notice.
19980         (libfetish_a_SOURCES): Add unlocked-io.h.
19981         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
19982         (DISTCLEANFILES, io_functions): Remove macros.
19983         (EXTRA_DIST): Remove gen_uio.
19984         (unlocked-io.h): Remove rule.
19985
19986 2002-12-04  Jim Meyering  <jim@meyering.net>
19987
19988         Reflect the fact that stat.c and lstat.c are no longer generated.
19989         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
19990         (DISTCLEANFILES): Likewise.
19991         (EXTRA_DIST): Likewise.
19992         (all_local): Don't depend on stat.c or lstat.c.
19993         (stat.c, lstat.c): Remove rules.
19994         (EXTRA_DIST): Remove xstat.in.
19995
19996         * lib/xstat.in: Remove file.  Contents moved into stat.c.
19997         * lib/stat.c: New file.  Contents mostly from xstat.in.
19998         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
19999         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
20000
20001         * lib/safe-read.c: Rework so that it may serve to define safe_write,
20002         too.
20003         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
20004
20005 2002-12-03  Jim Meyering  <jim@meyering.net>
20006
20007         * lib/safe-read.c, safe-write.c: Change variable names and comments,
20008         but not semantics, to minimize the differences between these two files.
20009         (safe_read): Change comment to mention SAFE_READ_ERROR.
20010
20011         * lib/safe-read.c (IS_EINTR): Define.
20012         (safe_read): Use IS_EINTR in place of in-function cpp directives.
20013
20014 2002-12-02  Jim Meyering  <jim@meyering.net>
20015
20016         * lib/safe-read.c (EINTR): Define.
20017         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20018         (INT_MAX): Provide fallback.
20019         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
20020
20021         * lib/safe-read.h (SAFE_READ_ERROR): Define.
20022
20023 2002-12-02  Bruno Haible  <bruno@clisp.org>
20024
20025         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
20026         Define, taken from safe-read.c.
20027         (INT_MAX): Provide fallback.
20028         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
20029         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
20030
20031         * lib/safe-read.c (EINTR): Remove definition.
20032         (safe_read): Don't use EINTR if it is absent.
20033
20034 2002-12-01  Jim Meyering  <jim@meyering.net>
20035
20036         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
20037         zero.
20038         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
20039
20040 2002-11-27  Paul Eggert  <eggert@twinsun.com>
20041
20042         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
20043         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
20044         with `if (! (value < limit)) abort ();', for readability.
20045
20046 2002-11-26  Karl Berry  <karl@gnu.org>
20047
20048         * lib/strdup.c: copy from libc again, with jim's ok.
20049         * lib/.cppi-disable: re-add strdup.c
20050
20051 2002-11-25  Karl Berry  <karl@gnu.org>
20052
20053         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
20054         instead of "strtol.c".
20055
20056 2002-11-25  Karl Berry  <karl@gnu.org>
20057
20058         * config/install-sh: update from automake for variable quoting, $0 in
20059         error msgs, etc.
20060
20061         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
20062         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
20063         entry.
20064
20065 2002-11-25  Jim Meyering  <jim@meyering.net>
20066
20067         * lib/mktime.c: Sync from libc, now that it has the latest fix.
20068
20069 2002-11-24  Karl Berry  <karl@gnu.org>
20070
20071         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
20072         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
20073
20074 2002-11-24  Jim Meyering  <jim@meyering.net>
20075
20076         Update from coreutils:
20077
20078         * lib/mktime.c: Merge in changes from libc.
20079
20080         Avoid a link-time failure on some Linux systems.
20081         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
20082         (otherwise).
20083         (__mon_yday): Declare with the STATIC attribute.
20084         (__mktime_internal): Likewise.
20085         Based on a report from Greg Schafer.
20086
20087 2002-11-23  Jim Meyering  <jim@meyering.net>
20088
20089         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
20090         Use `unsigned', not `int', as type of index.
20091
20092         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
20093
20094         * lib/fsusage.c: Remove unneeded parentheses around operands of
20095         `defined'.
20096
20097 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20098
20099         * lib/quotearg.h: Allow multiple inclusion by surrounding with
20100         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
20101         so that we can be included first.
20102         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
20103         * lib/quotearg.c: Include quotearg.h immediately after config.h.
20104         No need to include stddef.h or sys/types.h any more.
20105         Surround local include files with "", not "<>".
20106         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
20107         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
20108         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
20109         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
20110         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
20111         (ISPRINT): Remove; no longer needed now that we assume C89.
20112
20113         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
20114         Preserve errno.
20115
20116         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
20117         quotearg_char): Use SIZE_MAX rather than
20118         (size_t) -1 when we are talking about "infinity".
20119
20120         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
20121
20122 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20123
20124         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
20125         hint that one should use `if (! x) abort ();' rather than `assert
20126         (x);', and anyway it's one less thing to worry about configuring.
20127         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
20128         hash_rehash, hash_insert): Use abort rather than assert.
20129
20130 2002-11-22  Bruno Haible  <bruno@clisp.org>
20131
20132         * lib/safe-read.h: Assume C89. Add comments.
20133         (safe_read): Change return type to size_t.
20134         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
20135         byte counts > SSIZE_MAX correctly.
20136         * lib/safe-write.h: New file.
20137         * lib/safe-write.c: New file.
20138         * lib/full-read.h: New file.
20139         * lib/full-read.c: New file.
20140         * lib/full-write.h: Assume C89. Add comments.
20141         * lib/full-write.c: Include safe-write.h.
20142         (full_write): Rewritten to use safe_write.
20143         Suggested by Jim Meyering and Paul Eggert.
20144
20145 2002-11-21  Jim Meyering  <jim@meyering.net>
20146
20147         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
20148
20149         Merge in changes from the coreutils.
20150
20151         2002-09-25  Paul Eggert  <eggert@twinsun.com>
20152         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
20153         <stdint.h>.
20154         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
20155         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
20156         int.  Work more efficiently if X is the same width as uintmax_t.
20157         Do not compare X to -1, to avoid bogus compiler warning.
20158         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
20159         Don't assume that f_frsize and f_bsize are the same type.
20160
20161         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
20162         warning on FreeBSD.
20163
20164         * lib/makepath.c (make_path): Restore umask *before* creating the final
20165         component.
20166         (make_path): Minor reformatting.
20167
20168         * lib/xmalloc.c: Adjust to work with new autoconf macros,
20169         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
20170         HAVE_MALLOC/HAVE_REALLOC.
20171
20172         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
20173         dummy ones.  At least on GNU/Linux systems, `auto' means something
20174         else.
20175         From Michael Stone.
20176
20177 2002-11-21  Bruno Haible  <bruno@clisp.org>
20178
20179         Remove case insensitive option matching.
20180         * lib/argmatch.h (argcasematch): Remove declaration.
20181         (ARGCASEMATCH): Remove macro.
20182         (__xargmatch_internal): Remove case_sensitive argument.
20183         (XARGMATCH): Update.
20184         (XARGCASEMATCH): Remove macro.
20185         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
20186         case_sensitive argument.
20187         (argcasematch): Remove function.
20188         (__xargmatch_internal): Remove case_sensitive argument.
20189         (main): Use XARGMATCH instead of XARGCASEMATCH.
20190
20191         * lib/xmalloc.c: Change compile-time error message. Add comment about
20192         required autoconf version.
20193
20194 2002-11-20  Paul Eggert  <eggert@twinsun.com>
20195
20196         Merge argmatch cleanups from Bison.  Assume C89.
20197
20198         * lib/argmatch.c: Include config.h here, not in argmatch.h.
20199         Include stdlib.h, for EXIT_FAILURE.
20200         Always include <string.h>, since we assume C89.
20201         (EXIT_FAILURE): Remove pre-C89 bug workaround.
20202         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
20203         Include <stddef.h> instead, since it's all we need for size_t.
20204         (PARAMS): Remove.  All uses removed.
20205         (ARRAY_CARDINALITY): Do not bother to #undef.
20206         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
20207         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20208         Remove unnecessary parentheses.
20209         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20210         Insert necessary parentheses.
20211         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
20212         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
20213
20214 2002-11-19  Bruno Haible  <bruno@clisp.org>
20215
20216         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
20217         * lib/mbswidth.h: Include <stddef.h>, for size_t.
20218
20219         * lib/mbswidth.h (PARAMS): Remove macro.
20220         (mbswidth, mbsnwidth): Use ANSI C function declarations.
20221         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
20222
20223         * lib/gcd.h (PARAMS): Remove macro.
20224         (gcd): Use ANSI C function declarations.
20225         * lib/gcd.c (gcd): Likewise.
20226
20227 2002-11-15  Bruno Haible  <bruno@clisp.org>
20228
20229         * lib/strcspn.c: Include <stddef.h>.
20230         (strcspn): Use ANSI C function declaration. Change return type to
20231         size_t. Use NULL.
20232         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
20233         (strpbrk): Use NULL.
20234         * lib/strpbrk.h (PARAMS): Remove macro.
20235         (strpbrk): Use ANSI C function declaration.
20236         * lib/strstr.c: Don't include <sys/types.h>.
20237         * lib/strstr.h (PARAMS): Remove macro.
20238         (strstr): Use ANSI C function declarations.
20239
20240 2002-11-14  Karl Berry  <karl@gnu.org>
20241
20242         * config/mkinstalldirs: `do' on separate line, instead of
20243         `for var; do'.
20244
20245 2002-11-06  Bruno Haible  <bruno@clisp.org>
20246
20247         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
20248         * lib/gcd.c (gcd): Likewise.
20249
20250 2002-11-05  Bruno Haible  <bruno@clisp.org>
20251
20252         * lib/gcd.h: New file, from gettext-0.11.5.
20253         * lib/gcd.c: New file, from gettext-0.11.5.
20254
20255 2002-11-05  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20258         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20259         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20260         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20261
20262         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
20263         <libintl.h>.
20264         * lib/makepath.c: Include gettext.h instead of <locale.h> and
20265         <libintl.h>.
20266
20267         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
20268         * lib/human.c: Include gettext.h instead of <libintl.h>.
20269         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
20270         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
20271         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
20272         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
20273         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
20274         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
20275         (textdomain): Remove definition.
20276         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
20277
20278         * lib/long-options.c: Remove include of <libintl.h> and definition of
20279         _.
20280         * lib/same.c: Remove include of <libintl.h> and definition of _.
20281
20282 2002-11-04  Owen Taylor  <otaylor@redhat.com>
20283
20284         * lib/config.charset: A few additions for Solaris.
20285
20286 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
20287
20288         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
20289         * lib/localcharset.c (locale_charset): Declare as extern "C".
20290
20291 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
20292
20293         * lib/config.charset: msdos in uk_UA uses CP1125.
20294
20295 2002-11-04  Bruno Haible  <bruno@clisp.org>
20296
20297         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
20298         * lib/strcase.h: New file, from GNU gettext-0.11.5.
20299         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
20300         * lib/strstr.h: New file, from GNU gettext-0.11.5.
20301         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
20302
20303 2002-11-04  Bruno Haible  <bruno@clisp.org>
20304
20305         * lib/localcharset.c (locale_charset): Don't return an empty string.
20306
20307 2002-11-04  Bruno Haible  <bruno@clisp.org>
20308
20309         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
20310         aliases.
20311
20312 2002-11-04  Bruno Haible  <bruno@clisp.org>
20313
20314         * lib/config.charset: Update for newest glibc. Add canonical names
20315         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
20316
20317 2002-11-04  Bruno Haible  <bruno@clisp.org>
20318
20319         * lib/config.charset: Add support for NetBSD.
20320
20321 2002-11-04  Bruno Haible  <bruno@clisp.org>
20322
20323         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
20324
20325 2002-11-01  Bruno Haible  <bruno@clisp.org>
20326
20327         * configure.in: Add AC_CONFIG_AUX_DIR call.
20328         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
20329         test/Makefile.
20330         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
20331
20332 2002-09-28  Karl Berry  <karl@gnu.org>
20333
20334         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
20335         installed automake until the next release, since changes have been
20336         made.
20337
20338 2002-09-25  Karl Berry  <karl@gnu.org>
20339
20340         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
20341         * lib/getopt*: copy from libc/posix.
20342         * lib/gettext.h: copy from gettext.
20343         * lib/.cppi-disable: add strdup.c, gettext.h.
20344
20345 2002-09-25  Karl Berry  <karl@gnu.org>
20346
20347         * config/srclist.txt: enable gettext.h check.
20348         * config/config.{guess,sub}: update from prep.
20349         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
20350                 from automake 1.6.3.
20351         See srclist*.
20352
20353 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
20354
20355         * regex.c (PATFETCH): Remove the translating fetch.
20356         (PATFETCH_RAW): Rename to PATFETCH.
20357         (set_image_of_range): New fun.
20358         (SET_RANGE_TABLE_WORK_AREA): Use it.
20359         (regex_compile): Don't translate the pattern chars so eagerly.
20360         Only do it when inserting an `exactn' bytecode or when handling
20361         a char-range.
20362         (mutually_exclusive_p): Avoid empty statement.
20363
20364 2002-07-06  Jim Meyering  <meyering@lucent.com>
20365
20366         * m4/README: Don't mention Makefile.am.in.
20367         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
20368
20369 2002-07-01  Jim Meyering  <meyering@lucent.com>
20370
20371         * lib/c-stack.c: Include sys/time.h.
20372         From Volker Borchert.
20373
20374 2002-06-26  Paul Eggert  <eggert@twinsun.com>
20375
20376         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
20377
20378 2002-06-26  Paul Eggert  <eggert@twinsun.com>
20379
20380         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
20381         New macro.  Use it uniformly instead of
20382         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
20383         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
20384         reported by Vin Shelton.
20385
20386 2002-06-22  Paul Eggert  <eggert@twinsun.com>
20387
20388         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
20389         Do not assume SA_SIGINFO behavior.
20390         Bug reported by Jim Meyering on NetBSD 1.5.2.
20391
20392 2002-06-22  Jim Meyering  <meyering@lucent.com>
20393
20394         * m4/c-stack.m4: New file, from diffutils-2.8.2.
20395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
20396
20397         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
20398         now that configure.ac uses AC_GNU_SOURCE.
20399         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
20400         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
20401
20402         Update to latest tools.  Suggestions from Paul Eggert.
20403         * m4/stdbool.m4: New file, from diffutils-2.8.2.
20404         * m4/gnu-source.m4: Update from diffutils-2.8.2.
20405         * m4/fnmatch.m4: Likewise.
20406         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
20407         to AC_HEADER_STDBOOL
20408
20409 2002-06-22  Jim Meyering  <meyering@lucent.com>
20410
20411         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
20412         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
20413
20414 2002-06-22  Jim Meyering  <meyering@lucent.com>
20415
20416         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
20417
20418         * lib/exitfail.c, exitfail.h: Likewise.
20419         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
20420
20421         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
20422         of fnmatch.h.
20423         (EXTRA_DIST): Add fnmatch_loop.c.
20424         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
20425
20426         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
20427         * lib/fnmatch.c: Update from diffutils-2.8.2.
20428         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
20429         * lib/fnmatch.h: Remove file.
20430
20431 2002-06-21  Jim Meyering  <meyering@lucent.com>
20432
20433         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
20434         * m4/mbrtowc.m4: Likewise.
20435
20436         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
20437         * m4/mbswidth.m4: Reflect name change:
20438         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
20439         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20440
20441         * m4/lib-link.m4: Update from gettext-0.11.2.
20442         * m4/gettext.m4: Likewise.
20443
20444         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
20445         From Alfred M. Szmidt.
20446
20447 2002-06-18  Paul Eggert  <eggert@twinsun.com>
20448
20449         * lib/file-type.h: Report an error if neither S_ISREG nor
20450         S_IFREG is defined, instead of using a test specific to glibc
20451         2.2.  This should be safe, since POSIX requires S_ISREG and
20452         Unix Version 7 had S_IFREG.  We don't need to check for
20453         <sys/types.h> since we don't use any symbols that it defines.
20454
20455 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
20456
20457         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
20458         $@-t, so that each temporary file name is unique and valid in the first
20459         8 characters, for operation under DOS.
20460
20461 2002-06-15  Paul Eggert  <eggert@twinsun.com>
20462
20463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
20464
20465 2002-06-15  Jim Meyering  <meyering@lucent.com>
20466
20467         Work even with DJGPP 2.03, which lacks support for symlinks.
20468         From Richard Dawe.
20469         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
20470         is defined.
20471         * lib/lchown.c (S_ISLNK): Likewise.
20472
20473 2002-06-15  Jim Meyering  <meyering@lucent.com>
20474
20475         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
20476         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
20477         have been included before this file.
20478
20479 2002-06-14  Jim Meyering  <meyering@lucent.com>
20480
20481         * lib/file-type.h: Use the version from diffutils-2.8.2.
20482         * lib/file-type.c: Likewise.
20483
20484 2002-06-07  Jim Meyering  <meyering@lucent.com>
20485
20486         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
20487         They're needed at least for NetBSD 1.5.2.
20488         ($statxfs_includes): Include those same headers.
20489         ($statxfs_includes): Include sys/vfs.h if available.
20490         ($statxfs_includes): Likewise for sys/statvfs.h.
20491         Check for the following members in both structs statfs and statvfs:
20492         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
20493
20494 2002-06-01  Jim Meyering  <meyering@lucent.com>
20495
20496         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
20497         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
20498
20499 2002-05-28  Jim Meyering  <meyering@lucent.com>
20500
20501         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
20502         Reported by Volker Borchert.
20503
20504 2002-05-27  Jim Meyering  <meyering@lucent.com>
20505
20506         Fix a problem seen only on nonconforming systems whereby ls.c's
20507         use of localtime, and then of gettimeofday would cause trouble:
20508         the localtime call used to initialize rpl_gettimeofday's save
20509         mechanism would clobber ls's current local time information so
20510         that in any long listing the first file would always be listed
20511         with date 1970-01-01.  Analysis by Volker Borchert.
20512
20513         * lib/gettimeofday.c (localtime): Undefine.
20514         (rpl_localtime): New function.
20515
20516 2002-05-27  Jim Meyering  <meyering@lucent.com>
20517
20518         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
20519         localtime.
20520
20521         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
20522         use the replacement function; it wouldn't resolve at link time.
20523         Reported by Volker Borchert.
20524
20525 2002-05-22  Jim Meyering  <meyering@lucent.com>
20526
20527         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
20528         file-type.h.
20529         * lib/file-type.h: New file.
20530         * lib/file-type.c (file_type): New file/function.  Extracted from
20531         diffutils.
20532
20533 2002-04-30  Jim Meyering  <meyering@lucent.com>
20534
20535         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
20536
20537 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20538
20539         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
20540
20541 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20542
20543         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
20544         Do not check for alloca.h (no longer used) or stdbool.h (was never
20545         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
20546
20547 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20548
20549         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
20550
20551 2002-04-29  Jim Meyering  <meyering@lucent.com>
20552
20553         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
20554         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
20555         Use AC_FUNC_STRNLEN here instead.
20556
20557         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
20558         With autoconf-2.53a, it's part of AC_PROG_CC.
20559
20560 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20561
20562         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
20563         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
20564
20565 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20566
20567         * lib/sig2str.h, lib/sig2str.c: New files.
20568         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
20569
20570 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20571
20572         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
20573         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
20574         of 127, since 64 is the largest conceivable number for ancient
20575         nonstandard hosts.
20576         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
20577
20578 2002-04-28  Jim Meyering  <meyering@lucent.com>
20579
20580         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
20581
20582 2002-04-24  Jim Meyering  <meyering@lucent.com>
20583
20584         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
20585         (jm_PREREQ): Use it.
20586
20587         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
20588         mach/mach.h fcntl.h.
20589         Check for this function: setlocale.
20590
20591 2002-04-24  Jim Meyering  <meyering@lucent.com>
20592
20593         * lib/gettext.h: New file, from Gettext.
20594         * lib/Makefile.am (INCLUDES): Remove -I../intl.
20595         (libfetish_a_SOURCES): Add gettext.h.
20596
20597 2002-04-16  Jim Meyering  <meyering@lucent.com>
20598
20599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
20600         ut_pid, ut_id, ut_exit.
20601
20602 2002-04-16  Jim Meyering  <meyering@lucent.com>
20603
20604         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
20605         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
20606         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
20607
20608 2002-04-12  Jim Meyering  <meyering@lucent.com>
20609
20610         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
20611         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
20612         existence of the getmntinfo function.  Needed for Darwin 5.3.
20613
20614         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
20615         This is necessary at least on Darwin 5.3.
20616
20617         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
20618         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
20619         strnlen.o in the library, and that makes some versions of ranlib
20620         object.
20621
20622 2002-04-12  Jim Meyering  <meyering@lucent.com>
20623
20624         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
20625
20626 2002-04-09  Jim Meyering  <meyering@lucent.com>
20627
20628         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
20629         to be more precise.  Rather than saying we're checking whether the
20630         function `works', say what we're testing.
20631         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
20632         Reported by Bruno Haible.
20633
20634 2002-03-10  Jim Meyering  <meyering@lucent.com>
20635
20636         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
20637         Suggestion from Santiago Vila.
20638
20639 2002-03-08  Jim Meyering  <meyering@lucent.com>
20640
20641         * lib/rename.c: Mention that this wrapper is needed also on
20642         mips-dec-ultrix4.4 systems.
20643
20644 2002-03-02  Jim Meyering  <meyering@lucent.com>
20645
20646         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
20647         not HAVE_CLOCK_SETTIME.
20648
20649 2002-02-27  Paul Eggert  <eggert@twinsun.com>
20650
20651         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
20652         Check for clock_settime.
20653
20654 2002-02-27  Paul Eggert  <eggert@twinsun.com>
20655
20656         * lib/nanosleep.h: Rename to....
20657         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
20658
20659         * lib/gettime.c: New file.
20660         * lib/settime.c: New file.
20661         * lib/stime.c: Remove.
20662
20663         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
20664         timespec.h.  Remove nanosleep.h.
20665
20666 2002-02-25  Paul Eggert  <eggert@twinsun.com>
20667
20668         * m4/acl.m4: New file.
20669         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
20670         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
20671
20672 2002-02-25  Paul Eggert  <eggert@twinsun.com>
20673
20674         * lib/acl.c, lib/acl.h: New files.
20675         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
20676
20677 2002-02-24  Jim Meyering  <meyering@lucent.com>
20678
20679         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
20680         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
20681         cause trouble.  Reported by Nelson Beebe.
20682
20683 2002-02-23  Paul Eggert  <eggert@twinsun.com>
20684
20685         * lib/path-concat.c (xpath_concat): Reorder code to pacify
20686         compilers that don't know that xalloc_die never returns.
20687
20688 2002-02-20  Jim Meyering  <meyering@lucent.com>
20689
20690         * lib/getdate.c: Regenerate using bison-1.33.
20691
20692 2002-02-17  Jim Meyering  <meyering@lucent.com>
20693
20694         * config/config.guess (main): Don't use `head -1'; it's no longer
20695         portable. Use `sed 1q' instead.
20696
20697 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
20698
20699         * m4/codeset.m4: Upgrade to gettext-0.11.
20700         * m4/gettext.m4: Upgrade to gettext-0.11.
20701         * m4/glibc21.m4: Upgrade to gettext-0.11.
20702         * m4/iconv.m4: Upgrade to gettext-0.11.
20703         * m4/isc-posix.m4: Upgrade to gettext-0.11.
20704         * m4/lcmessage.m4: Upgrade to gettext-0.11.
20705         * m4/lib-ld.m4: New file, from gettext-0.11.
20706         * m4/lib-link.m4: New file, from gettext-0.11.
20707         * m4/lib-prefix.m4: New file, from gettext-0.11.
20708         * m4/progtest.m4: Upgrade to gettext-0.11.
20709
20710 2002-02-15  Paul Eggert  <eggert@twinsun.com>
20711
20712         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
20713         (jm_PREREQ): Use it.
20714
20715 2002-02-15  Paul Eggert  <eggert@twinsun.com>
20716
20717         * lib/posixver.c, lib/posixver.h: New files.
20718         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
20719
20720 2002-02-02  Paul Eggert  <eggert@twinsun.com>
20721             Bruno Haible  <bruno@clisp.org>
20722
20723         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
20724         (fwrite_success_callback): New declaration.
20725         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
20726         print_unicode_char. Call failure callback instead of error.
20727         (fwrite_success_callback): New function.
20728         (exit_failure_callback): New function.
20729         (fallback_failure_callback): New function.
20730         (print_unicode_char): Call unicode_to_mb.
20731
20732 2002-01-26  Jim Meyering  <meyering@lucent.com>
20733
20734         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
20735         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
20736
20737 2002-01-26  Jim Meyering  <meyering@lucent.com>
20738
20739         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
20740
20741 2002-01-22  Paul Eggert  <eggert@twinsun.com>
20742
20743         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
20744
20745 2002-01-22  Jim Meyering  <meyering@lucent.com>
20746
20747         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
20748         Otherwise, some versions of automake would omit the rule that makes
20749         Makefile from Makefile.in.
20750
20751 2002-01-21  Paul Eggert  <eggert@twinsun.com>
20752
20753         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
20754         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
20755         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
20756         (memcoll): Set errno to zero if there is no error.
20757
20758         * lib/quotearg.c (quotearg_buffer_restyled):
20759         Fix bug with quoting buffers containing NUL when backslashing escapes.
20760         This bug was exposed by the other changes in this patch.
20761         (quotearg_n_options): New arg ARGSIZE.
20762         All callers changed.
20763         (quoting_options_from_style): New function.
20764         (quotearg_n_style): Use it.
20765         (quotearg_n_style_mem): New function.
20766
20767         * lib/quotearg.h (quotearg_n_style_mem): New function.
20768
20769 2002-01-19  Jim Meyering  <meyering@lucent.com>
20770
20771         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
20772         Remove useless quotes: DF_PROG="df".
20773         * m4/strnlen.m4: New file.
20774
20775 2002-01-16  Paul Eggert  <eggert@twinsun.com>
20776
20777         * lib/backupfile.c (ISDIGIT): Comment fix.
20778         * lib/getdate.y (ISDIGIT): Likewise.
20779         * lib/posixtm.c (ISDIGIT, year): Likewise.
20780         * lib/strverscmp.c (ISDIGIT): Likewise.
20781         * lib/userspec.c (ISDIGIT): Likewise.
20782
20783 2002-01-16  Jim Meyering  <meyering@lucent.com>
20784
20785         * lib/getdate.y: Add three semicolons, each just before a closing
20786         brace. Bison (as of version 1.31) no longer papers over that mistake.
20787
20788 2002-01-05  Jim Meyering  <meyering@lucent.com>
20789
20790         * lib/version-etc.c (version_etc_copyright): Update copyright year.
20791
20792 2001-12-19  Paul Eggert  <eggert@twinsun.com>
20793
20794         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
20795         not silently exit merely because the output buffer happens to
20796         have nothing pending.
20797
20798 2001-12-18  Paul Eggert  <eggert@twinsun.com>
20799
20800         See the big note in ../ChangeLog.
20801         * lib/human.c (suffixes): Prefer K to k for 1024.
20802         (generate_suffix_backwards): New function.
20803         (human_readable_inexact): Use it.
20804         * lib/xstrtol.c (__xstrtol): If there is no number but there
20805         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
20806         Accept 'K' as well as 'k'.
20807
20808 2001-12-15  Jim Meyering  <meyering@lucent.com>
20809
20810         * lib/regex.h (__restrict_arr): Update from libc.
20811
20812         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
20813         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
20814         (STREQ): Define.
20815
20816 2001-12-14  Jim Meyering  <meyering@lucent.com>
20817
20818         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
20819         Suggestion from Bruno Haible.
20820
20821 2001-12-10  Jim Meyering  <meyering@lucent.com>
20822
20823         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
20824         xrealloc, Instead, include "xalloc.h".
20825         (initbuffer): Don't cast xmalloc return value to char*.
20826         (readline): Reword comment.
20827         Don't cast xrealloc return value to char*
20828         Return NULL, not 0.
20829
20830 2001-12-09  Jim Meyering  <meyering@lucent.com>
20831
20832         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
20833         about `signed and unsigned type in conditional expression'.
20834         * lib/posixtm.c (posix_time_parse): Likewise.
20835
20836         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
20837
20838         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
20839         to avoid a pedantic warning.
20840
20841         * lib/getstr.c: Don't include assert.h.
20842         (getstr): Remove warning-evoking assertions.
20843         Return -1 if offset parameter is out of bounds.
20844         Change the type of a local from int to size_t.
20845
20846         * lib/strftime.c (my_strftime_localtime_r): Include this function
20847         definition in the `#if ! HAVE_TM_GMTOFF' block.
20848
20849         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
20850         Include xalloc.h instead.
20851
20852 2001-12-02  Jim Meyering  <meyering@lucent.com>
20853
20854         * lib/tempname.c: Don't declare getenv, thus reverting the change of
20855         2001-11-18.  It's no longer necessary, now that stdlib.h is always
20856         included.
20857
20858         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
20859         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
20860
20861 2001-11-30  Akim Demaille  <akim@epita.fr>
20862
20863         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
20864         before being defined.
20865
20866 2001-11-27  Paul Eggert  <eggert@twinsun.com>
20867
20868         * lib/quotearg.h (quotearg_n, quotearg_n_style):
20869         First arg is int, not unsigned.
20870         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
20871         (SIZE_MAX, UINT_MAX): New macros.
20872         (quotearg_n_options): Abort if N is negative.
20873         Avoid overflow check on hosts where size_t is 64 bits and int
20874         is 32 bits, as overflow is impossible there.
20875         Fix off-by-one typo that caused unnecessary reallocation.
20876
20877 2001-11-27  Jim Meyering  <meyering@lucent.com>
20878
20879         * lib/tempname.c: Merge with version from libc.
20880         * lib/regex.c: Likewise.
20881
20882         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
20883         systems for which STDC_HEADERS is 0, it was not included, resulting in
20884         a warning about an integer-to-pointer conversion problem with getenv.
20885         Reported by Volker Borchert.
20886
20887 2001-11-26  Jim Meyering  <meyering@lucent.com>
20888
20889         * lib/gtod.h: Remove file.
20890         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
20891         * lib/gettimeofday.c: Don't include gtod.h.
20892         (GTOD_init): Remove function.
20893         (rpl_gettimeofday): Do its job here instead, rather than aborting.
20894         Suggestion from Volker Borchert.
20895
20896 2001-11-23  Jim Meyering  <meyering@lucent.com>
20897
20898         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
20899         it.
20900         * lib/hash.c (struct hash_table): Define it here instead.
20901
20902 2001-11-22  Jim Meyering  <meyering@lucent.com>
20903
20904         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
20905
20906 2001-11-20  Jim Meyering  <meyering@lucent.com>
20907
20908         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
20909         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
20910
20911 2001-11-19  Jim Meyering  <meyering@lucent.com>
20912
20913         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
20914         directory.  Use "conftestXXXXXX" as the template.
20915         Suggestion from Paul Eggert.
20916
20917         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
20918         immediately, so the test doesn't mistakenly hit the max-open-files
20919         limit.
20920
20921 2001-11-18  Paul Eggert  <eggert@twinsun.com>
20922
20923         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
20924         (TEMPORARIES): New macro.
20925         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
20926         removes an artificial limitation (e.g. HP-UX 10.20, where
20927         TMP_MAX is 17576).
20928
20929 2001-11-18  Jim Meyering  <meyering@lucent.com>
20930
20931         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
20932
20933 2001-11-18  Jim Meyering  <meyering@lucent.com>
20934
20935         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
20936         on SunOS 4.
20937
20938         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
20939         files will be created before anything else.
20940
20941 2001-11-17  Paul Eggert  <eggert@twinsun.com>
20942
20943         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
20944         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
20945
20946 2001-11-17  Jim Meyering  <meyering@lucent.com>
20947
20948         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
20949         Prompted by a report from Bob Proulx.
20950
20951         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
20952         Instead, require UTILS_FUNC_MKSTEMP.
20953
20954 2001-11-17  Jim Meyering  <meyering@lucent.com>
20955
20956         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
20957         Now, that's done as part of AC_FUNC_STRTOD.
20958
20959 2001-11-17  Jim Meyering  <meyering@lucent.com>
20960
20961         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
20962         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
20963         rather than group writable.  Patch by Juan F. Codagnone.
20964
20965         * lib/readtokens.c: Remove explicit declarations of xmalloc and
20966         xrealloc, Instead, include "xalloc.h".
20967
20968         * lib/mountlist.c: Include unlocked-io.h after all system headers.
20969         Remove explicit declarations of xmalloc, xrealloc,
20970         and xstrdup.  Instead, include "xalloc.h".
20971
20972         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
20973         unlocked-io.h.
20974         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
20975         Likewise.
20976         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
20977
20978         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
20979         Reported by Padraig Brady.
20980
20981         * lib/mkstemp.c: #undef mkstemp.
20982         Include config.h.
20983         (rpl_mkstemp): Rename from mkstemp.
20984         Protoize.
20985
20986 2001-11-16  Jim Meyering  <meyering@lucent.com>
20987
20988         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
20989         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
20990         determine the amount of total physical memory, use pstat_getstatic.
20991         HPUX-11 doesn't define _SC_PHYS_PAGES.
20992         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
20993         If sysconf couldn't be used to determine the amount of available
20994         physical memory, use both pstat_getstatic and pstat_getdynamic.
20995         Based on a patch from Bob Proulx.
20996
20997 2001-11-10  Jim Meyering  <meyering@lucent.com>
20998
20999         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
21000         (jm_PREREQ): Use it.
21001
21002 2001-11-09  Jim Meyering  <meyering@lucent.com>
21003
21004         * m4/jm-macros.m4: Require autoconf-2.52f.
21005         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
21006         Use these AC_-prefixed names, not the AM_-prefixed ones.
21007
21008         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
21009
21010 2001-11-05  Jim Meyering  <meyering@lucent.com>
21011
21012         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
21013
21014 2001-11-04  Jim Meyering  <meyering@lucent.com>
21015
21016         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
21017         $DEFS.
21018
21019 2001-11-03  Jim Meyering  <meyering@lucent.com>
21020
21021         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
21022         of AC_DEFUN.
21023
21024         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
21025         know the name of the variable in the macro definition.
21026
21027 2001-11-03  Jim Meyering  <meyering@lucent.com>
21028
21029         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
21030         in argmatch_to_argument call.
21031
21032         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
21033         argument.
21034
21035         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
21036         e.g., a fault due to an attempt to free a NULL pointer.
21037
21038 2001-11-01  Jim Meyering  <meyering@lucent.com>
21039
21040         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
21041         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
21042
21043 2001-11-01  Jim Meyering  <meyering@lucent.com>
21044
21045         * lib/dirfd.c, lib/dirfd.h: New files.
21046         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
21047
21048         * lib/hash.c (hash_print) [TESTING]: Clean up.
21049
21050 2001-10-22  Paul Eggert  <eggert@twinsun.com>
21051
21052         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
21053         to avoid a warning if -Wall.
21054
21055 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
21056
21057         * README: New file
21058         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
21059         (per RMS's instructions, this is now the canonical source)
21060         * lgpl/, gpl/: New directories.
21061
21062 2001-10-21  Paul Eggert  <eggert@twinsun.com>
21063
21064         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
21065
21066 2001-10-21  Jim Meyering  <meyering@lucent.com>
21067
21068         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
21069         this code would end up calling gettext even in packages built
21070         with --disable-nls.
21071         * lib/getopt.c (_): Likewise.
21072         * lib/regex.c (_): Likewise.
21073
21074 2001-10-20  Paul Eggert  <eggert@twinsun.com>
21075
21076         * m4/error.m4 (jm_PREREQ_ERROR):
21077         Do not invoke AC_CHECK_FUNCS with strerror_r, as
21078         AC_FUNC_STRERROR_R does that.
21079         Check for strerror declaration.
21080
21081         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
21082         are supposed to have them these days.
21083         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
21084         Merge changes from latest Autoconf CVS.
21085         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
21086         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
21087         POSIX decided to standardize on the int flavor of strerror_r.
21088
21089 2001-10-20  Paul Eggert  <eggert@twinsun.com>
21090
21091         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
21092         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
21093         Use strerror_r that is only a macro, even if it is not a function.
21094         (strerror): Check for HAVE_DECL_STRERROR before declaring.
21095         (private_strerror): Use prototypes, not old-style function definition.
21096         (print_errno_message): New function.
21097         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
21098         char*-flavored one.
21099         (error_tail, error, error_at_line): Use it.
21100
21101 2001-10-11  Jim Meyering  <meyering@lucent.com>
21102
21103         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
21104         and quote_n (1, ... to avoid clobbering a buffer.
21105
21106 2001-10-05  Jim Meyering  <meyering@lucent.com>
21107
21108         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
21109         hash-pjw.h.
21110         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
21111         * lib/hash-pjw.h: New file.
21112
21113 2001-09-30  Jim Meyering  <meyering@lucent.com>
21114
21115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
21116         `struct fsstat' has the `f_fstypename' member.
21117         Use that to define FS_TYPE, which is now used to make
21118         the getfsstat link test tighter.
21119
21120 2001-09-30  Jim Meyering  <meyering@lucent.com>
21121
21122         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
21123         Include <sys/ucred.h>, for Apple Darwin.
21124         Include sys/mount.h and sys/fs_types.h only if available.
21125         (FS_TYPE): Define.
21126         (read_filesystem_list): Use FS_TYPE.
21127
21128 2001-09-29  Paul Eggert  <eggert@twinsun.com>
21129
21130         * lib/exclude.c (excluded_filename): 0 -> false, since it's
21131         a boolean context.
21132
21133 2001-09-29  Jim Meyering  <meyering@lucent.com>
21134
21135         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21136         [one-argument getmntent function]): Include stdio.h before mntent.h.
21137         SunOS 4.1.x needs it for the declaration of `FILE'.
21138         Patch by Volker Borchert.
21139
21140         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21141         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
21142         sys/fs_types.h, and make the link-test for getfsstat guard #include
21143         directives with appropriate #if HAVE_*_H tests so that we can
21144         detect getfsstat on Apple Darwin1.3.7 systems.
21145         Reported by Nelson Beebe.
21146         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
21147
21148 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21149
21150         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21151         #defines strtoimax.  Also treat the other strto* functions
21152         like strtoimax.
21153
21154         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21155         Check for strtoul and strtoumax,
21156         as those declarations are made even in the signed case.
21157         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
21158         Likewise, for strtol and strtoimax.
21159
21160 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21161
21162         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21163         #defines strtoimax.  Also treat the other strto* functions
21164         like strtoimax.
21165
21166         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
21167         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
21168         (strtoimax, strtoumax): Do not declare if already defined as a macro.
21169
21170 2001-09-26  Jim Meyering  <meyering@lucent.com>
21171
21172         Most macros in unlocked-io.h had the wrong number of arguments.
21173         * lib/gen-uio: New script.
21174         (USE_UNLOCKED_IO): Define to 1 if not already defined.
21175         * lib/unlocked-io.hin: Remove file.
21176         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
21177         rather than trying to embed it here.
21178         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
21179         Reported by Padraig Brady.
21180
21181 2001-09-25  Volker Borchert  <bt@teknon.de>
21182
21183         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
21184         `result'.
21185
21186 2001-09-24  Jim Meyering  <meyering@lucent.com>
21187
21188         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
21189
21190 2001-09-23  Jim Meyering  <meyering@lucent.com>
21191
21192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
21193         instead of the mere test for existence of mntent.h.  The latter
21194         would get a false-positive on AIX 3.4 systems.
21195         In the outer getmntent if-block, don't die if neither of the getmntent
21196         tests succeeds.  Instead, just fall through and continue with the
21197         remaining tests.
21198
21199 2001-09-23  Jim Meyering  <meyering@lucent.com>
21200
21201         * lib/mountlist.c: Remove useless parentheses in #if directives.
21202         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
21203         the deprecated MOUNTED symbol is no longer defined in mntent.h.
21204
21205 2001-09-22  Jim Meyering  <meyering@lucent.com>
21206
21207         * m4/gettext.m4: New file.  From gettext.
21208         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
21209         * m4/progtest.m4: Likewise
21210         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
21211         * m4/glibc21.m4: Likewise.
21212
21213         * m4/libintl.m4: Remove.  No longer used.
21214
21215 2001-09-22  Jim Meyering  <meyering@lucent.com>
21216
21217         * lib/localcharset.c: Update from latest gettext.
21218         * lib/config.charset: Likewise.
21219
21220 2001-09-20  Jim Meyering  <meyering@lucent.com>
21221
21222         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
21223         strtoimax.
21224         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
21225         strtoumax.
21226
21227 2001-09-20  Jim Meyering  <meyering@lucent.com>
21228
21229         * lib/xstrtol.c (strtoimax): Guard declaration with
21230         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
21231         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
21232         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
21233         (strtoumax): Likewise, for completeness (it wasn't necessary).
21234
21235 2001-09-17  Paul Eggert  <eggert@twinsun.com>
21236
21237         * lib/strtoimax.c (HAVE_LONG_LONG):
21238         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
21239         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
21240         to work around bug in IBM C compiler.
21241
21242 2001-09-17  Jim Meyering  <meyering@lucent.com>
21243
21244         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
21245         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
21246         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
21247         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
21248         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
21249         whenever the right hand side need not be expanded by the shell.
21250
21251 2001-09-16  Paul Eggert  <eggert@twinsun.com>
21252
21253         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
21254         library.  It's not correct, as some older glibcs are buggy.
21255         fnmatch wasn't fixed until glibc 2.2.
21256
21257         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
21258         special shell magic here.
21259
21260 2001-09-16  Jim Meyering  <meyering@lucent.com>
21261
21262         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
21263         * m4/jm-macros.m4: Require it.
21264
21265 2001-09-16  Jim Meyering  <meyering@lucent.com>
21266
21267         * lib/mkdir.c: New file.
21268
21269 2001-09-15  Jim Meyering  <meyering@lucent.com>
21270
21271         * m4/jm-macros.m4: Check for help2man.
21272
21273 2001-09-11  Jim Meyering  <meyering@lucent.com>
21274
21275         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
21276         The body, by Paul Eggert, was moved here from configure.in.
21277         * m4/jm-macros.m4: Require UTILS_HOST_OS.
21278
21279 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21280
21281         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
21282         (jm_PREREQ): Use it.
21283
21284 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21285
21286         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
21287         Use ssize_t, not int, to store result of readlink.
21288         Check for ssize_t overflow as well as size_t overflow,
21289         as POSIX says the result of readlink is implementation-defined
21290         when ssize_t overflows.
21291         Remove unnecessary cast to char*.
21292         Use free+malloc instead of realloc, as the storage doesn't need
21293         to be preserved and it's clearer and can be more efficient that way.
21294         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
21295         * lib/xreadlink.h (xreadlink): Update prototype.
21296
21297 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21298
21299         * lib/xgetcwd.c: Revert some of the previous change; intead,
21300         fix the HAVE_GETCWD_NULL code to behave more like the
21301         !HAVE_GETCWD_NULL code used to.
21302
21303         Include "xalloc.h".
21304         (xgetcwd): Do not return NULL when memory is exhausted; instead,
21305         invoke xalloc_die.
21306
21307 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21308
21309         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
21310         sys/param.h, as pathmax.h includes them.
21311
21312 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21313
21314         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
21315         (jm_PREREQ_XGETCWD): New macro.
21316
21317         * m4/getcwd.m4: New file.
21318
21319 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21320
21321         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
21322         like the HAVE_GETCWD_NULL code.
21323         Include pathmax.h if not HAVE_GETCWD.
21324         Do not include xalloc.h.
21325         (INITIAL_BUFFER_SIZE): New symbol.
21326         Do not use xmalloc / xrealloc, since the caller is responsible for
21327         handling errors.  Preserve errno around `free' during failure.
21328         Do not overrun buffer when using getwd.
21329
21330 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21331
21332         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
21333         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
21334         getcwd (NULL, 0).
21335
21336 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21337
21338         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
21339         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
21340         spotted by Jim Meyering.
21341
21342 2001-09-03  Jim Meyering  <meyering@lucent.com>
21343
21344         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
21345         failure.
21346
21347 2001-09-02  Jim Meyering  <meyering@lucent.com>
21348
21349         * lib/error.c: Update from GNU libc.
21350
21351 2001-09-01  Jim Meyering  <meyering@lucent.com>
21352
21353         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
21354         Used by df.
21355
21356 2001-09-01  Jim Meyering  <meyering@lucent.com>
21357
21358         * lib/xreadlink.c: New file.
21359         * lib/xreadlink.h: New file.
21360         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
21361         xreadlink.h.
21362
21363         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
21364         doesn't conflict with sparc Solaris 7's definition in
21365         /usr/include/sys/int_types.h.
21366
21367         * lib/exclude.c: Use `""', not `<>' to #include non-system header
21368         files.
21369         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
21370         and strncasecmp as r-values.  Unixware didn't have declarations.
21371
21372 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21373
21374         * lib/xstrtol.h: Add copyright notice.
21375         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
21376         LONGINT_INVALID_SUFFIX_CHAR.
21377
21378 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21379
21380         * lib/xstrtol.c (strtoimax): New decl.
21381
21382 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21383
21384         * lib/xgetcwd.c: Don't include pathmax.h.
21385         Include stdlib.h and unistd.h if available.
21386         Include xalloc.h.
21387         (xmalloc, xstrdup, free): Remove decls.
21388         (xgetcwd): Don't assume sizes fit in unsigned.
21389         Check for overflow when computing sizes.
21390         Simplify reallocation code.
21391
21392 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21393
21394         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
21395         a directory's st_size can have an arbitrary value, so the old
21396         usage could waste an arbitrary amount of memory.  All uses
21397         changed.
21398         * lib/savedir.h: Update prototype.
21399
21400 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21401
21402         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
21403
21404         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
21405         old strtoimax.c.
21406
21407         Also, make the following further changes to make this file's
21408         configuration more similar to that of strtol.c:
21409         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
21410         (strtoumax, uintmax_t, strtoull, strtol): Remove.
21411         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
21412         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
21413         changed to signed values.
21414
21415         And make the following changes as well:
21416         Fix copyright notice, as 1999 was missing.
21417         (verify): New macro.
21418         (strtoimax): Check sizes at compile-time, not run-time.
21419         Prefer strtol to strtoll if both work.
21420         (main): Remove; it was not that useful and was a pain to maintain.
21421
21422         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
21423
21424 2001-08-31  Jim Meyering  <meyering@lucent.com>
21425
21426         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
21427         Use an initial, malloc'd, buffer of length 128 rather than
21428         a statically allocated one of length 1024.
21429
21430 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21431
21432         Simplify code, partly by assuming autoconf 2.52 semantics.
21433
21434         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
21435
21436         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
21437         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
21438         All uses removed.
21439         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
21440         Move AC_REQUIRE to next-to-top level, to avoid confusion.
21441         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
21442         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
21443         jm_AC_HEADER_INTTYPES_H.
21444         * m4/jm-macros.m4 (jm_MACROS): Likewise.
21445
21446         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
21447
21448         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21449         Quote first arg of AC_DEFUN.
21450         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
21451         since they are needed to parse the include file even if we need
21452         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
21453         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
21454         but with opposite signedness.
21455
21456 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21457
21458         Merge 'exclude' changes from tar 1.13.22.
21459         This fixes one or two unlikely storage allocation overflow bugs,
21460         but doesn't change user-visible behavior otherwise.
21461
21462 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21463
21464         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
21465         (jm_PREREQ_EXCLUDE): New macro.
21466
21467 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21468
21469         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
21470         tm to be declared.
21471
21472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21473
21474         * lib/hash.c: Remove '2001' from copyright notice.
21475
21476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21477
21478         * lib/full-write.h: New file.
21479         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
21480         * lib/full-write.c: Correct credits, as cccp.c no longer
21481         exists and anyway it was so heavily changed from the old cccp
21482         code as to be unrecognizable.  Include full-write.h.
21483         (full_write) Return size_t, with short writes meaning failure.
21484         All callers changed.  This fixes a bug with large buffers
21485         on 64-bit hosts.
21486         * lib/utime.c: Include full-write.h.
21487
21488 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21489
21490         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
21491         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
21492         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
21493         Include if available.
21494         (<xalloc.h>): Include
21495         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
21496         (verify): New macro.  Use it to verify that EXCLUDE macros do not
21497         collide with FNM macros.
21498         (struct patopts): New struct.
21499         (struct exclude): Use it, as exclude patterns now come with options.
21500         (new_exclude): Support above changes.
21501         (new_exclude, add_exclude_file):
21502         Initial size must now be a power of two to simplify overflow checking.
21503         (free_exclude, fnmatch_no_wildcards): New function.
21504         (excluded_filename): No longer requires options arg, as the options
21505         are determined by add_exclude.  Now returns bool, not int.
21506         (excluded_filename, add_exclude):
21507         Add support for the fancy new exclusion options.
21508         (add_exclude, add_exclude_file): Now takes int options arg.
21509         Check for arithmetic overflow when computing sizes.
21510         (add_exclude_file): xrealloc might modify errno, so don't
21511         realloc until after errno might be used.
21512
21513         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
21514         New macros.
21515         (free_exclude): New decl.
21516         (add_exclude, add_exclude_file): Now takes int options arg.
21517         (excluded_filename): No longer requires options arg, as the options
21518         are determined by add_exclude.  Now returns bool, not int.
21519
21520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21521
21522         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
21523
21524 2001-08-27  Jim Meyering  <meyering@lucent.com>
21525
21526         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
21527
21528         * lib/version-etc.c (N_): Remove definition.
21529         Revert most of last change.
21530         Instead, simply don't mark the `Copyright...' string for translation.
21531         Based on advice from Paul Eggert.
21532
21533         * lib/strtoxmax.c: Tweak comment.
21534
21535 2001-08-26  Jim Meyering  <meyering@lucent.com>
21536
21537         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
21538
21539         * m4/xstrtoimax.m4: New file.
21540         * m4/xstrtoumax.m4: Add comments explaining why we
21541         AC_REPLACE_FUNCS(strtol).
21542
21543 2001-08-26  Jim Meyering  <meyering@lucent.com>
21544
21545         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
21546         of copyright with `%s' so translators don't get an untranslated
21547         message in 2002.
21548         (COPYRIGHT_YEAR): Define.
21549         (version_etc): Use fprintf rather than fputs.
21550         Suggestion from Ulrich Drepper.
21551
21552         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
21553
21554         * lib/strtoll.c: New file, from GNU libc.
21555         * lib/xstrtoimax.c: New file.
21556
21557         * lib/xstrtol.h: Add xstrtoimax.
21558         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
21559         * lib/strtoimax.c: New file.  Likewise, but first define
21560         STRTOUXMAX_SIGNED.
21561
21562         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
21563         ...
21564         * lib/strtoxmax.c: ... then renamed to this.
21565
21566 2001-08-18  Paul Eggert  <eggert@twinsun.com>
21567
21568         * m4/inttypes.m4: Add AC_PREREQ(2.13).
21569         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
21570         (jm_AC_TYPE_INTMAX_T): New macro.
21571         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
21572
21573         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
21574
21575         * m4/longlong.m4: Renamed from ulonglong.m4.
21576         * m4/inttypes.m4: Renamed from inttypes_h.m4.
21577         * m4/uintmax_t.m4: Removed.
21578
21579 2001-08-13  Paul Eggert  <eggert@twinsun.com>
21580
21581         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
21582         Port to Solaris 8, where 'sed' requires a space after the 'r'
21583         command, and where sh dislikes "$/".  Clean up the spacing a bit.
21584         Redirect output to $tmp just once.
21585
21586 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
21587
21588         * lib/addext.c (<errno.h>): Include.
21589         (errno): Declare if not defined.
21590         (addext): Work correctly when pathconf returns -1 and leaves
21591         errno alone because there is no limit.  Also, work even if
21592         pathconf returns a value greater than SIZE_MAX.
21593
21594 2001-08-12  Jim Meyering  <meyering@lucent.com>
21595
21596         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
21597         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
21598         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
21599         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
21600         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
21601         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
21602         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
21603         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
21604         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
21605         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
21606         utime.m4, utimes.m4, xstrtoumax.m4:
21607         Quote the first argument in each use of AC_DEFUN.
21608
21609 2001-08-12  Jim Meyering  <meyering@lucent.com>
21610
21611         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
21612         Simply `return getcwd (NULL, 0);'.
21613         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
21614         Use 1300 as initial value for length, not PATH_MAX.
21615
21616         * lib/pathmax.h: Clean up cpp syntax.
21617
21618 2001-08-12  Jim Meyering  <meyering@lucent.com>
21619
21620         * lib/gettimeofday.c: New file.
21621         * lib/gtod.h: New file.
21622         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
21623
21624 2001-08-05  Jim Meyering  <meyering@lucent.com>
21625
21626         * m4/jm-macros.m4: Require autoconf-2.52.
21627
21628 2001-08-04  Jim Meyering  <meyering@lucent.com>
21629
21630         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
21631         stmt, to get in sync with glibc.
21632
21633 2001-08-03  Paul Eggert  <eggert@twinsun.com>
21634
21635         The following changes are from gettext 0.10.39 as maintained by
21636         Bruno Haible.
21637
21638         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
21639         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
21640         with inverted sense.  All uses changed.
21641
21642         * lib/mbswidth.c: Don't include <limits.h>.
21643         Include <stdlib.h> and <string.h> unconditionally.
21644         (iswcntrl, mbsinit, ISCNTRL): New macros.
21645         (mbsnwidth): Use K&R style function declarations.
21646         Don't bother checking for MB_LEN_MAX == 1, since the compiler
21647         can optimize it when MB_CUR_MAX == 1.
21648         The width of control characters is zero, not 1.
21649
21650 2001-08-03  Paul Eggert  <eggert@twinsun.com>
21651
21652         The following changes are from gettext 0.10.39 as maintained by
21653         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
21654
21655         * m4/codeset.m4: Upgrade to serial AM1.
21656         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
21657         all uses changed.  Quote first arg of AC_DEFUN.
21658         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
21659
21660         * m4/iconv.m4: Upgrade to serial AM2.
21661         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
21662         Add --with-libconv-prefix.
21663         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
21664         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
21665         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
21666         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
21667         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
21668
21669         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
21670         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
21671         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
21672         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
21673         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
21674         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
21675         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21676         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
21677         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
21678
21679         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
21680         string.h any more.
21681
21682         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
21683         not the default value.
21684
21685         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
21686         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
21687         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
21688         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
21689         Also check for iswcntrl, used for wcwidth fallback.
21690         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
21691         to Autoconf 2.13.
21692
21693 2001-08-03  Jim Meyering  <meyering@lucent.com>
21694
21695         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
21696         as it was in the original.  Reported by Paul Eggert.
21697
21698 2001-07-16  Jim Meyering  <meyering@lucent.com>
21699
21700         * m4/gettimeofday.m4: New file.
21701         Prompted by a report from Bernhard Baehr.
21702
21703 2001-07-15  Jim Meyering  <meyering@lucent.com>
21704
21705         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
21706         stuff. Now it's in ../Makefile.cfg.
21707
21708 2001-07-15  Jim Meyering  <meyering@lucent.com>
21709
21710         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
21711         (BUILT_SOURCES): Add unlocked-io.h.
21712         (io_functions): Define.
21713         (unlocked-io.h): New rule.
21714         (DISTCLEANFILES): Add unlocked-io.h.
21715         (all-local): Depend on unlocked-io.h, to ensure it is created.
21716
21717         * lib/unlocked-io.hin: New file
21718
21719         * lib/regex.c: Update from glibc.
21720
21721 2001-07-05  Jim Meyering  <meyering@lucent.com>
21722
21723         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
21724         recommendation.
21725         (libfetish_a_SOURCES): Put all .h files here instead.
21726         Remove a thus-exposed (better checks in automake) duplicate and
21727         two unnecessary .h files.
21728
21729 2001-07-04  Jim Meyering  <meyering@lucent.com>
21730
21731         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
21732         that generates jm-glibc-io.m4 so that it doesn't trigger any make
21733         distcheck failure.
21734
21735 2001-07-02  Jim Meyering  <meyering@lucent.com>
21736
21737         The following changes were prompted by suggestions from Bruno Haible.
21738
21739         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
21740         is now generated.
21741         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
21742         definition of EXTRA_DIST.
21743         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
21744         ensure that the generated file is created/updated whenever the list
21745         of $(unlocked_functions) is changed.
21746         (jm-glibc-io.m4): New rule.
21747         (unlocked-io.h): New rule -- currently unused.
21748
21749 2001-06-24  Jim Meyering  <meyering@lucent.com>
21750
21751         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
21752         unmatched right bracket, rather than kludging it with an extra,
21753         falsely-matching quote in a comment.  Patch by Akim Demaille.
21754
21755 2001-06-11  Jim Meyering  <meyering@lucent.com>
21756
21757         * lib/regex.c: Update from GNU libc.
21758
21759 2001-05-27  Jim Meyering  <meyering@lucent.com>
21760
21761         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
21762         Check for ut_type in struct utmp.
21763
21764 2001-05-27  Jim Meyering  <meyering@lucent.com>
21765
21766         * lib/readutmp.h (UT_TYPE): Define.
21767
21768 2001-05-24  Jim Meyering  <meyering@lucent.com>
21769
21770         * lib/argmatch.c: Include "quote.h".
21771         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
21772         quote function.  Reported by Göran Uddeborg.
21773
21774 2001-05-22  Jim Meyering  <meyering@lucent.com>
21775
21776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
21777         now that we use the package-supplied version unconditionally.
21778         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
21779
21780 2001-05-21  Jim Meyering  <meyering@lucent.com>
21781
21782         * m4/regex.m4: Change a couple backticks to single quotes to avoid
21783         shell syntax errors.
21784
21785 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21786
21787         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
21788
21789 2001-05-20  Paul Eggert  <eggert@twinsun.com>
21790
21791         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
21792         Don't bother to check library strftime, since
21793         we'll be using our own my_strftime function anyway.
21794         Define my_strftime instead of strftime.
21795
21796 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
21797
21798         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
21799         which is not yet declared.
21800
21801 2001-05-15  Jim Meyering  <meyering@lucent.com>
21802
21803         * m4/regex.m4: Use proper quoting so brackets appear in the test
21804         program.
21805         Reported by, and with help from, Bruno Haible.
21806
21807 2001-05-13  Jim Meyering  <meyering@lucent.com>
21808
21809         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
21810         undefined.
21811
21812 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21813
21814         dirname code cleanup.  base_name now behaves more compatibly
21815         with POSIX basename when given file names that have trailing
21816         slashes, and similarly for dir_name.  Add new primitives
21817         base_len and dir_len.  Put the directory-name-related decls
21818         into dirname.h.
21819
21820         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
21821         * lib/backupfile.c (base_name): Likewise.
21822         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
21823         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
21824         * lib/makepath.c (strip_trailing_slashes): Likewise.
21825         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
21826         ISSLASH): Likewise.
21827         * lib/rename.c (strip_trailing_slashes): Likewise.
21828         * lib/same.c (base_name): Likewise.
21829         * lib/stripslash.c (ISSLASH): Likewise.
21830
21831         * lib/addext.c: Include <dirname.h> after size_t is defined.
21832         * lib/backupfile.c: Likewise.
21833
21834         * lib/addext.c (addext): Use base_len to trim redundant
21835         trailing slashes instead of doing it ourselves.
21836         But do not trim the last slash if it is not redundant.
21837
21838         * lib/backupfile.c (find_backup_file_name,
21839         max_backup_version): Use base_len instead of rolling it ourselves.
21840         Handle the case of "" and (on DOS) "C:" correctly.
21841
21842         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
21843         needed. Include <string.h>, <dirname.h>.
21844         (base_name): Allow file names ending in slashes, other than names
21845         that are all slashes.  In this case, return the basename followed
21846         by the slashes.  This is more general, and can be used in places
21847         where the original base_name purposely had an assertion failure.
21848         (base_len): New function.
21849
21850         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
21851         Do not include <assert.h>; no longer needed.
21852         Include xalloc.h.
21853         (memrchr): Remove decl.
21854         (dir_name_r): Remove.
21855         (dir_len): Renamed from dirlen.  All callers changed.
21856         Rewrite in terms of base_name, for simplicity and consistency.
21857         (dir_name): Never return NULL.  All callers changed.
21858         Do not include <stdlib.h> in test program; no longer needed.
21859         return 0; is fine for test program.
21860
21861         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
21862         New macros.
21863         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
21864
21865         * lib/path-concat.c (path_concat): Use base_len to compute
21866         base length, not strlen; this means we cannot rely on memcpy
21867         to null-terminate.
21868
21869         * lib/same.c (STREQ): Remove.
21870         (same_name): Handle the case where the basename ends in trailing '/'.
21871
21872         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
21873         a slash was stripped.  Do not strip the last slash after a
21874         file system prefix.
21875
21876 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21877
21878         * lib/Makefile.am (libfetish_a_SOURCES):
21879         Add strftime.c, since we now compile it on all hosts.
21880
21881         * lib/strftime.c (my_strftime):
21882         Define to nstrftime if emacs, but only if my_strftime is not defined.
21883         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
21884         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
21885         Add one more extra argument: a nanoseconds value.
21886         All uses changed.
21887         (ns): New macro.
21888         (my_strftime function): Add %N format.
21889         (emacs_strftimeu): Renamed from emacs_strftime,
21890         with extra ut argument.
21891
21892 2001-05-09  Paul Eggert  <eggert@twinsun.com>
21893
21894         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
21895
21896 2001-04-21  Jim Meyering  <meyering@lucent.com>
21897
21898         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
21899         doesn't interfere.
21900
21901 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21902
21903         * m4/ftruncate.m4: Check for chsize.
21904         Link with ftruncate.o unconditionally if ftruncate is missing.
21905         This was required when cross-compiling to i586-mingw32msvc.
21906
21907 2001-04-08  Jim Meyering  <meyering@lucent.com>
21908
21909         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
21910         recomputed; that's necessary when the offset spans a DST transition.
21911         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
21912
21913 2001-04-02  Jim Meyering  <meyering@lucent.com>
21914
21915         * lib/regex.h, regex.c: Update from GNU libc.
21916
21917 2001-03-24  Jim Meyering  <meyering@lucent.com>
21918
21919         * m4/jm-macros.m4: Require autoconf-2.49d.
21920
21921 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
21922
21923         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
21924
21925 2001-03-19  Paul Eggert  <eggert@twinsun.com>
21926
21927         * lib/version-etc.c (version_etc_copyright): Update to 2001.
21928
21929 2001-03-17  Jim Meyering  <meyering@lucent.com>
21930
21931         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
21932         now that the version in autoconf is equivalent.
21933         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
21934
21935         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
21936         Suggestion from Akim Demaille.
21937
21938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
21939         (jm_PREREQ_TEMPNAME): New function.
21940
21941 2001-03-16  Paul Eggert  <eggert@twinsun.com>
21942
21943         * lib/tempname.c (uint64_t): Define to uintmax_t if
21944         not defined, and if UINT64_MAX is not defined.
21945         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
21946         Reported by John David Anglin.
21947
21948 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
21949
21950         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
21951         resolve alias if codeset is empty.
21952         * lib/config.charset (BeOS): Use wildcard syntax.
21953
21954 2001-03-13  Jim Meyering  <meyering@lucent.com>
21955
21956         * lib/path-concat.c (path_concat)
21957         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
21958         concatenating e.g., `C:' and `foo'.
21959         From Bruno Haible.
21960
21961 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21962
21963         * lib/localcharset.c (locale_charset): Don't use
21964         setlocale(LC_CTYPE,NULL). Don't return NULL.
21965         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
21966
21967 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21968
21969         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
21970         support for DOS/DJGPP.
21971
21972 2001-03-01  Paul Eggert  <eggert@twinsun.com>
21973
21974         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
21975         lacks mkstemp.  Compile our own tempname.c if we compile our own
21976         mkstemp.c, as mkstemp relies on tempname.
21977
21978 2001-03-01  Jim Meyering  <meyering@lucent.com>
21979
21980         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
21981         AH_VERBATIM really does output its argument verbatim.
21982
21983 2001-02-28  Paul Eggert  <eggert@twinsun.com>
21984
21985         * lib/Makefile.am (libfetish_a_SOURCES):
21986         Add dup-safer.c, fopen-safer.c.
21987         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
21988
21989         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
21990         * lib/unistd-safer.h: New files.
21991
21992 2001-02-25  Paul Eggert  <eggert@twinsun.com>
21993
21994         The mkstemp replacement is taken from glibc 2.2.2, with some
21995         portability fixes for use outside glibc, as follows:
21996
21997         * lib/tempname.c (struct_stat64): New macro.
21998         (direxists, __gen_tempname): Use it.
21999         This avoids a portability problem with Solaris 8.
22000
22001         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
22002         (<stddef.h>, <stdint.h>, <string.h>):
22003         Include only if STDC_HEADERS || _LIBC.
22004         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
22005         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
22006         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
22007         (__set_errno): Define this macro if <errno.h> doesn't.
22008         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
22009         Define these macros if <stdio.h> doesn't.
22010         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
22011         Define these macros if <sys/stat.h>
22012         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
22013         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
22014         __xstat64): Define if not _LIBC.
22015         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
22016         (__gen_tempname): Invoke gettimeofday only if
22017         HAVE_GETTIMEOFDAY || _LIBC;
22018         otherwise, fall back on plain "time".
22019         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
22020
22021         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
22022
22023         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
22024
22025 2001-02-18  Paul Eggert  <eggert@twinsun.com>
22026
22027         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
22028
22029 2001-02-17  Paul Eggert  <eggert@twinsun.com>
22030
22031         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
22032         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
22033         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
22034         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22035
22036 2001-02-17  Paul Eggert  <eggert@twinsun.com>
22037
22038         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
22039         Remove workaround macros for hosts that have mbrtowc but not
22040         mbstate_t, as we now insist on proper declarations for both
22041         before using mbrtowc.
22042
22043 2001-02-17  Jim Meyering  <meyering@lucent.com>
22044
22045         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
22046         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
22047         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
22048         UnixWare 7.1.1.
22049
22050         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
22051         rather than AC_CACHE_VAL.
22052
22053 2001-02-17  Jim Meyering  <meyering@lucent.com>
22054
22055         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
22056         around included file name.
22057
22058         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
22059
22060         * lib/strftime.c: Update from GNU libc (the only changes were to
22061         comments).
22062
22063 2001-02-17  Jim Meyering  <meyering@lucent.com>
22064
22065         * lib/regex.c: Update from libc.
22066
22067 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
22068
22069         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
22070         clash.
22071
22072 2001-02-16  Paul Eggert  <eggert@twinsun.com>
22073
22074         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
22075         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
22076         Reported by Mark Hounschell via Paul Eggert.
22077
22078 2001-02-07  Jim Meyering  <meyering@lucent.com>
22079
22080         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
22081
22082 2001-02-05  Jim Meyering  <meyering@lucent.com>
22083
22084         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
22085         it includes the patch required for `large file' support with at least
22086         HP-UX's 10.20 /bin/cc.
22087
22088 2001-02-03  Jim Meyering  <meyering@lucent.com>
22089
22090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
22091         AS_IF, now that it works once again (mysteriously).
22092         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22093
22094 2001-01-30  Jim Meyering  <meyering@lucent.com>
22095
22096         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
22097         * m4/chown.m4: Rename conftestchown to conftest.chown.
22098         * m4/rename.m4: s/conftestdir/conftest.d1/ and
22099         s/conftestdir2/conftest.d2/.
22100         * m4/utimes.m4: s/conftestdata/conftest.data/
22101         Inspired by Pavel Roskin's change in autoconf.
22102
22103 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
22104
22105         * lib/config.charset: Update for FreeBSD 4.2.
22106
22107 2001-01-27  Jim Meyering  <meyering@lucent.com>
22108
22109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
22110         a use of AS_IF.
22111         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22112
22113 2001-01-26  Jim Meyering  <meyering@lucent.com>
22114
22115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
22116         quotearg.c includes it.
22117
22118 2001-01-26  Jim Meyering  <meyering@lucent.com>
22119
22120         * lib/quotearg.c: Include stddef.h.
22121         * lib/quote.c: Include stddef.h.
22122         Reported by Axel Kittenberger.
22123
22124         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
22125         line in double quotes so that it evokes a better diagnostic.
22126         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
22127         Reported by Axel Kittenberger.
22128
22129 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
22130
22131         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
22132         as if it was a `charset'.
22133
22134 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22135
22136         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
22137         has const.
22138
22139 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22140
22141         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
22142         to avoid a warning.  Add back 'const' to inptr.
22143
22144 2001-01-20  Jim Meyering  <meyering@lucent.com>
22145
22146         Be sure that headers are checked before used in code compiled
22147         for the type checks.
22148         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
22149         In place of that, invoke jm_CHECK_ALL_TYPES.
22150         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
22151         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
22152         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
22153         The check for ssize_t was mistakenly run before the test for unistd.h.
22154
22155         The configure-time check for stdbool.h was missing.
22156         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
22157         (jm_PREREQ_HASH): New function.
22158
22159 2001-01-17  Jim Meyering  <meyering@lucent.com>
22160
22161         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
22162         for autoconf-2.49c.
22163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
22164
22165 2001-01-16  Jim Meyering  <meyering@lucent.com>
22166
22167         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
22168         From Bruno Haible.
22169
22170 2001-01-14  Jim Meyering  <meyering@lucent.com>
22171
22172         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
22173         foo and bar.  Create conftestdir/ in the script, not in the C code.
22174         Remove directories in the script, not in the C code.
22175         Remove conftestdir{,2} before trying to create the directory.
22176         Make the entire configure script fail if the mkdir fails.
22177
22178 2001-01-14  Jim Meyering  <meyering@lucent.com>
22179
22180         * lib/rename.c: New file.  From Volker Borchert.
22181         Include stdlib.h, string.h or strings.h, and xalloc.h.
22182         Use strip_trailing_slashes rather than open-coding it.
22183
22184 2001-01-03  Paul Eggert  <eggert@twinsun.com>
22185
22186         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
22187
22188 2001-01-03  Jim Meyering  <meyering@lucent.com>
22189
22190         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
22191         of local `inptr' to avoid warning with some system declarations of
22192         iconv.
22193
22194 2001-01-02  Volker Borchert  <bt@teknon.de>
22195
22196         * m4/rename.m4: New file.
22197         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
22198
22199 2001-01-01  Jim Meyering  <meyering@lucent.com>
22200
22201         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
22202         even on systems with utmpx.h.  It's necessary for the declaration of
22203         utmp's ut_user member.  Reported by Andreas Jaeger.
22204
22205         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
22206         available. They are required for the declarations of getgrgid and
22207         getpwuid resp.
22208         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
22209         Reported by Andreas Jaeger.
22210
22211 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
22212
22213         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
22214         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
22215         so `make install' also works in VPATH builds.
22216
22217 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
22218
22219         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
22220         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
22221         can be used in subdirectories.
22222
22223 2000-12-29  Paul Eggert  <eggert@twinsun.com>
22224
22225         * lib/modechange.c: Do not assume that mode_t uses the
22226         traditional octal encoding.  E.g. "chmod 1 FOO" should set
22227         the other-execute bit of FOO even if S_IXOTH != 1.
22228
22229         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
22230         WOTH, XOTH, ALLM): New macros.
22231         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
22232          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
22233         Use them.
22234         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
22235         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
22236         (mode_compile):
22237         No need to use uintmax_t; unsigned long is long enough.
22238         Don't bother to get suffix since we don't use it.
22239
22240 2000-12-26  Jim Meyering  <meyering@lucent.com>
22241
22242         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
22243         better with autoheader.
22244
22245 2000-12-24  Jim Meyering  <meyering@lucent.com>
22246
22247         * lib/hash.c (is_prime): Return explicit boolean values.
22248         (hash_get_first): Return NULL to appease Irix5.6's 89.
22249         Reported by Nelson Beebe.
22250
22251 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
22252
22253         * lib/localcharset.c (locale_charset): Add support for Win32.
22254
22255 2000-12-18  Paul Eggert  <eggert@twinsun.com>
22256
22257         * lib/physmem.h, lib/physmem.c: New files.
22258
22259         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
22260         (noinst_HEADERS): Add physmem.h.
22261
22262         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
22263         't' for compatibility with Solaris 8 sort.
22264
22265 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
22266
22267         * lib/config.charset: Add support for BeOS.
22268
22269 2000-12-17  Jim Meyering  <meyering@lucent.com>
22270
22271         * m4/dos.m4 (jm_AC_DOS): New file and macro.
22272         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
22273
22274 2000-12-16  Jim Meyering  <meyering@lucent.com>
22275
22276         This bug had a serious impact on chown: `chown N:M FILE' (for integer
22277         N and M) would have treated it like `chown N:N FILE'.
22278
22279         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
22280
22281 2000-12-16  Jim Meyering  <meyering@lucent.com>
22282
22283         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
22284         SHELLS_FILE to a file name that's useful on djgpp systems.
22285         Include stdlib.h.
22286         (ADDITIONAL_DEFAULT_SHELLS): Define.
22287         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
22288         Based mostly on a patch from Prashant TR.
22289
22290 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
22291
22292         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
22293         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
22294         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
22295
22296 2000-12-08  Andreas Schwab  <schwab@suse.de>
22297
22298         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
22299         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
22300
22301 2000-12-07  Jim Meyering  <meyering@lucent.com>
22302
22303         * lib/stripslash.c (ISSLASH): Define.
22304         (strip_trailing_slashes): Use ISSLASH rather than comparing against
22305         `/'.
22306         From Prashant TR.
22307
22308         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
22309         (dir_name_r): Declare this function as static.
22310         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
22311         manifest itself on a name containing a mix of slashes and
22312         backslashes.
22313         Make this function work with names starting with a DOS-style
22314         drive letter and colon prefix.
22315         (dir_name): Append `.' if necessary.
22316         Based mostly on patches from Prashant TR and Eli Zaretskii.
22317
22318         * lib/dirname.h (dir_name_r): Remove prototype.
22319
22320 2000-12-06  Paul Eggert  <eggert@twinsun.com>
22321
22322         * m4/off_t-format.m4: Remove this file.
22323         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
22324
22325 2000-12-06  Jim Meyering  <meyering@lucent.com>
22326
22327         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
22328         replacement strtoull, we may well need the replacement strtoul, too.
22329         Check for declarations of strtoul and strtoull.
22330         Check for strtol.  Mainly as a cue to cause automake to include
22331         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
22332         Check for limits.h -- strtol.c needs it.
22333
22334 2000-12-05  Jim Meyering  <meyering@lucent.com>
22335
22336         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
22337
22338 2000-12-04  Jim Meyering  <meyering@lucent.com>
22339
22340         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
22341         Also include memory.h, stdlib.h, unistd.h if appropriate.
22342         Reported by Andreas Jaeger (conflicting declaration of malloc).
22343
22344 2000-12-02  Jim Meyering  <meyering@lucent.com>
22345
22346         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
22347         * m4/jm-macros.m4 (jm_MACROS): require it.
22348
22349 2000-12-02  Jim Meyering  <meyering@lucent.com>
22350
22351         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
22352
22353 2000-12-01  Paul Eggert  <eggert@twinsun.com>
22354
22355         * lib/memrchr.c: Include <config.h> before any system include file.
22356
22357 2000-11-30  Jim Meyering  <meyering@lucent.com>
22358
22359         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
22360
22361 2000-11-30  Jim Meyering  <meyering@lucent.com>
22362
22363         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
22364
22365 2000-11-29  Paul Eggert  <eggert@twinsun.com>
22366
22367         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
22368
22369 2000-11-26  Jim Meyering  <meyering@lucent.com>
22370
22371         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
22372
22373 2000-11-22  Paul Eggert  <eggert@twinsun.com>
22374
22375         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
22376         size of (size_t) -1; it's not portable.
22377
22378 2000-11-17  Jim Meyering  <meyering@lucent.com>
22379
22380         * lib/strstr.c: Update from GNU libc.
22381
22382 2000-11-17  Akim Demaille  <akim@epita.fr>
22383
22384         * lib/obstack.h: Formatting changes.
22385         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
22386         prevent type checking.
22387         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
22388         cast the value to (void *): assigning a `foo *' to a `void *'
22389         variable is valid.
22390         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
22391
22392 2000-11-16  Jim Meyering  <meyering@lucent.com>
22393
22394         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
22395
22396 2000-11-11  Jim Meyering  <meyering@lucent.com>
22397
22398         * lib/error.c: Add a couple #includes, merging from GNU libc version.
22399
22400 2000-11-10  Jim Meyering  <meyering@lucent.com>
22401
22402         * lib/obstack.h: Update from GNU libc.
22403         * lib/obstack.c: Likewise.
22404
22405 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
22406
22407         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
22408
22409 2000-11-06  Paul Eggert  <eggert@twinsun.com>
22410
22411         * lib/getusershell.c (setusershell): Use rewind rather than
22412         fseek/fseeko, to avoid configuration hassles with fseeko.
22413         Don't bother opening SHELLS_FILE if shellstream is NULL;
22414         it's not necessary.
22415
22416 2000-11-05  Jim Meyering  <meyering@lucent.com>
22417
22418         * lib/makepath.h (make_dir): Declare.
22419         * lib/makepath.c (make_dir): Remove `static' attribute.
22420         Tweak a comment.
22421
22422 2000-11-04  Jim Meyering  <meyering@lucent.com>
22423
22424         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
22425
22426 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
22427
22428         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
22429         last one in a bucket, advance to the next bucket.
22430
22431 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
22432
22433         * lib/fnmatch.c: Do not comment out all the code if we are using
22434         the GNU C library, because in some cases we are replacing buggy
22435         code in the GNU C library itself.
22436
22437 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
22438
22439         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
22440         (regex_compile): Catch bogus \(\1\).
22441
22442 2000-10-30  Paul Eggert  <eggert@twinsun.com>
22443
22444         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
22445         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
22446         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
22447
22448 2000-10-30  Paul Eggert  <eggert@twinsun.com>
22449
22450         * lib/error.h, getline.h, modechange.h:
22451         Remove "2000" from Copyright line, as the file hasn't been
22452         changed this year other than in the copyright notice.
22453
22454         * lib/xalloc.h: Add "2000" to Copyright line, as this file
22455         was changed this year.
22456
22457 2000-10-29  Jim Meyering  <meyering@lucent.com>
22458
22459         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
22460         renaming.
22461         * m4/ls-mntd-fs.m4: Likewise
22462
22463 2000-10-29  Jim Meyering  <meyering@lucent.com>
22464
22465         * lib/xstat.in: Fix grammar in comment.
22466
22467 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
22468
22469         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
22470         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
22471         doesn't define __restrict_arr.
22472
22473 2000-10-28  Jim Meyering  <meyering@lucent.com>
22474
22475         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
22476         (jm_PREREQ_MEMCHR): New function.
22477
22478 2000-10-28  Jim Meyering  <meyering@lucent.com>
22479
22480         * lib/memchr.c: Update from libc.
22481         Adjust for portability:
22482         [HAVE_STDLIB_H]: Include stdlib.h.
22483         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
22484         Undef __memchr, too.
22485         [!weak_alias]: Define __memchr to memchr.
22486
22487         * lib/regex.c: Update from libc.
22488         * lib/regex.h: Likewise.
22489         * lib/getopt1.c: Likewise.
22490         * lib/memcmp.c: Likewise.
22491
22492         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
22493         Avoid using fseek, when possible -- it's broken by design.
22494         Patch by Ulrich Drepper.
22495
22496 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
22497
22498         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
22499         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
22500         Giving in to popular pressure to shut up the compiler with casts.
22501
22502 2000-10-26  Jim Meyering  <meyering@lucent.com>
22503
22504         * lib/strftime.c: Update from libc.
22505
22506 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
22507
22508         * regex.c: More `unsigned char' -> `re_char' changes.
22509         Also change several `int' into `re_wchar_t'.
22510         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
22511         (PUSH_FAILURE_POINTER): Don't cast any more.
22512         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
22513         We want GCC to complain, since this piece of code makes
22514         re_match non-reentrant, which *should* be fixed.
22515         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
22516         (EXTEND_BUFFER): Use RETALLOC.
22517         (SET_LIST_BIT): Don't cast.
22518         (re_wchar_t): New type.
22519         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
22520         that those two functions will always properly return.
22521         (IMMEDIATE_QUIT_CHECK): Cast to void.
22522         (analyse_first): Use recursion rather than an explicit stack.
22523         (re_compile_fastmap): Can't fail anymore.
22524         (re_search_2): Don't check re_compile_fastmap for failure.
22525         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
22526         Now also sets the new value (passed in a new argument).
22527         (re_match_2_internal): Use it.
22528         Also, use a new var `reg' of type size_t when looping through regs
22529         rather than reuse the inappropriate `mcnt'.
22530
22531 2000-10-25  Jim Meyering  <meyering@lucent.com>
22532
22533         * lib/obstack.c: Update from libc.
22534
22535 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
22536
22537         * regex.c (regex_compile): Change the way of handling a range from
22538         a char less than 256 to a char not less than 256.
22539
22540 2000-10-24  Andrew Innes  <andrewi@gnu.org>
22541
22542         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
22543         NT-Emacs only.
22544         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
22545         so that re_search functions only quit when callers expect them to.
22546
22547 2000-10-23  Jim Meyering  <meyering@lucent.com>
22548
22549         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
22550         wrong.  That set_locale call must not have any side effects.
22551         From Paul Eggert.
22552
22553 2000-10-22  Jim Meyering  <meyering@lucent.com>
22554
22555         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
22556         [CYCLIC]: Remove now-unused definition.
22557
22558         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
22559         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
22560         Suggestion from Ulrich Drepper.
22561
22562 2000-10-21  Jim Meyering  <meyering@lucent.com>
22563
22564         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
22565         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
22566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
22567
22568 2000-10-21  Jim Meyering  <meyering@lucent.com>
22569
22570         * lib/dirname.c (memrchr): Declare if necessary.
22571         (dir_name): Remove the restriction that there be no
22572         trailing slashes.  Now, this code skips past them, effectively
22573         ignoring them.
22574         [TEST_DIRNAME] (main): New unit tests.
22575
22576         * lib/memrchr.c: New file from GNU libc.
22577         Undef __memrchr, too.
22578         [!weak_alias]: Define __memrchr to memrchr.
22579         Guard weak_alias use with `#ifdef weak_alias'.
22580
22581 2000-10-21  Jim Meyering  <meyering@lucent.com>
22582
22583         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
22584         (dir_name): Use dir_name_r.
22585         * lib/dirname.h (dir_name_r): Declare it.
22586
22587 2000-10-17  Jim Meyering  <meyering@lucent.com>
22588
22589         * lib/quote.h (PARAMS): Define and use.
22590         Reported by Akim Demaille.
22591
22592         * lib/getopt.c: Update from libc.
22593
22594 2000-10-16  Jim Meyering  <meyering@lucent.com>
22595
22596         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
22597         setlocale.
22598         From Jan Fedak.
22599
22600 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
22601
22602         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
22603
22604 2000-09-25  Jim Meyering  <meyering@lucent.com>
22605
22606         * lib/md5.h (rol): Define (from GnuPG).
22607
22608         * lib/sha.c: Give credit (GnuPG) where due.
22609         (M): Use rol rather than open-coding it.
22610         Add a FIXME comment.
22611
22612 2000-09-21  Jim Meyering  <meyering@lucent.com>
22613
22614         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
22615         Reported by Michael Stone.
22616
22617 2000-09-20  Jim Meyering  <meyering@lucent.com>
22618
22619         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
22620         (noinst_HEADERS): Add sha.h.
22621         Based on code from Scott G. Miller and from GnuPG.
22622
22623 2000-09-18  Jim Meyering  <meyering@lucent.com>
22624
22625         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
22626         LIBS. Otherwise, everyone ends up linking with -lelf for some
22627         configurations.
22628         Reported by Mike Stone.
22629
22630 2000-09-15  Jim Meyering  <meyering@lucent.com>
22631
22632         * lib/regex.c: Update from libc.
22633
22634 2000-09-10  Jim Meyering  <meyering@lucent.com>
22635
22636         * lib/getopt.c (_getopt_internal): Update from glibc.
22637
22638 2000-09-09  Jim Meyering  <meyering@lucent.com>
22639
22640         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
22641         think it should be used as a general replacement for isascii.
22642         * lib/fnmatch.c: Likewise.
22643         * lib/mbswidth.c: Likewise
22644         * lib/regex.c: Likewise.
22645
22646         Don't use atoi.
22647         * lib/userspec.c: Include sys/param.h and limits.h.
22648         Include xstrtol.h.
22649         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
22650         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
22651         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
22652         UID, GID.  Check range.
22653
22654 2000-09-06  Jim Meyering  <meyering@lucent.com>
22655
22656         * lib/getopt.c (_getopt_internal): Update from glibc.
22657
22658 2000-08-30  Jim Meyering  <meyering@lucent.com>
22659
22660         * lib/strftime.c: Merge in changes from GNU libc.
22661
22662 2000-08-26  Jim Meyering  <meyering@lucent.com>
22663
22664         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
22665         * m4/fpending.m4: New file.
22666
22667 2000-08-26  Jim Meyering  <meyering@lucent.com>
22668
22669         * lib/closeout.c: Include "__fpending.h".
22670         (close_stdout_status): Return right away if there's nothing to flush.
22671
22672         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
22673         * lib/__fpending.c: New file.
22674         * lib/__fpending.h: New file.
22675
22676 2000-08-20  Jim Meyering  <meyering@lucent.com>
22677
22678         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
22679         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
22680         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
22681
22682 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
22683
22684         Improve fileutils installation on systems where running
22685         programs (like install) can't be unlinked.
22686         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
22687         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
22688
22689 2000-08-07  Paul Eggert  <eggert@twinsun.com>
22690
22691         Standardize on "memory exhausted" instead of "Memory exhausted"
22692         or "virtual memory exhausted".
22693         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
22694         "virtual memory exhausted".
22695         * lib/same.c (same_name): Invoke xalloc_die instead of printing
22696         our own message.
22697         * lib/userspec.c (parse_user_spec): Likewise.
22698         * lib/bumpalloc.h: comment fix
22699         * lib/same.c, userspec.c: Include xalloc.h.
22700
22701         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
22702         not char *const and pointing to a constant array.
22703         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
22704         (xrealloc): Comment fix.
22705
22706         * lib/userspec.c (parse_user_spec):
22707         Don't translate a message until just before returning,
22708         to avoid unnecessary translation.
22709
22710 2000-08-07  Jim Meyering  <meyering@lucent.com>
22711
22712         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
22713         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
22714         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
22715         getgroups.c, gethostname.c, getopt.h, group-member.c,
22716         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
22717         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
22718         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
22719         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
22720         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
22721         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
22722         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
22723         yesno.c: Back out Copyright date changes for each file with no change
22724         this year.  This eases coordination with other programs using the same
22725         source code modules.  From Paul Eggert.
22726
22727 2000-08-06  Paul Eggert  <eggert@twinsun.com>
22728
22729         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
22730         not char, for compatibility with glibc 2.1.3 strftime.c.
22731
22732 2000-08-03  Greg McGary  <greg@mcgary.org>
22733
22734         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
22735         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
22736         (EXTEND_BUFFER): Use them.
22737
22738 2000-08-01  Jim Meyering  <meyering@lucent.com>
22739
22740         * lib/dirname.c (ISSLASH): Define.
22741         (BACKSLASH_IS_PATH_SEPARATOR): Define.
22742         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
22743         both `\' and `/' may be use as path separators.
22744         Based on a patch from Prashant TR.
22745
22746 2000-07-31  Paul Eggert  <eggert@twinsun.com>
22747
22748         * lib/quotearg.c (quotearg_n_options): Don't make the initial
22749         slot vector a constant, since it might get modified.
22750
22751 2000-07-31  Jim Meyering  <meyering@lucent.com>
22752
22753         * lib/xmalloc.c: Use `virtual memory exhausted', not
22754         `Memory exhausted'.
22755         * lib/obstack.c (print_and_abort): Likewise.
22756
22757 2000-07-30  Paul Eggert  <eggert@twinsun.com>
22758
22759         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
22760         buffer, so that the caller can always quote one small
22761         component of a "memory exhausted" message in slot 0.
22762         From a suggestion by Jim Meyering.
22763
22764 2000-07-30  Jim Meyering  <meyering@lucent.com>
22765
22766         * lib/makepath.c (make_path): Quote the other instance, too.
22767
22768         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
22769         (STATIC_BUF_SIZE): Define.
22770         (quotearg_n_options): Use only statically allocated storage when
22771         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
22772         than STATIC_BUF_SIZE.
22773
22774 2000-07-29  Jim Meyering  <meyering@lucent.com>
22775
22776         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
22777         * lib/dirname.c (dir_name): Likewise.
22778
22779         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
22780         `/'.
22781
22782         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
22783         (dir_name): Assert that there are no trailing slashes.
22784
22785 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
22786
22787         * lib/mbswidth.h (mbswidth): Add a flags argument.
22788         (mbswidth): New declaration.
22789         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
22790         * lib/mbswidth.c (mbswidth): Add a flags argument.
22791         (mbsnwidth): New function.
22792
22793 2000-07-24  Jim Meyering  <meyering@lucent.com>
22794
22795         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
22796
22797 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22798
22799         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
22800
22801 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22802
22803         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
22804         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
22805         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
22806         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
22807         invoke multibyte primitives.
22808
22809 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22810
22811         * lib/quotearg.c:
22812         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
22813         so that mbstate_t is always defined.
22814
22815         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
22816         be 1 in at least one GCC installation, and this configuration
22817         error is likely to be common.  Ignoring MB_LEN_MAX hurts
22818         performance on hosts that have mbrtowc but have only unibyte
22819         locales, but I assume these hosts are rare.
22820
22821 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22822
22823         * lib/mbswidth.c (_XOPEN_SOURCE):
22824         Don't define; this causes problems on Solaris 7.
22825         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
22826
22827 2000-07-23  Jim Meyering  <meyering@lucent.com>
22828
22829         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
22830         too: getgrgid, getpwuid, getuid.
22831
22832 2000-07-23  Jim Meyering  <meyering@lucent.com>
22833
22834         * lib/basename.c (base_name): Add an assertion.
22835
22836 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
22837
22838         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
22839         shadow its mbsinit function.
22840
22841 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
22842
22843         * lib/mbswidth.h: New file.
22844         * lib/mbswidth.c: New file.
22845         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
22846         (noinst_HEADERS): Add mbswidth.h.
22847
22848 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
22849
22850         * lib/config.charset: Add support for FreeBSD. Improve support for
22851         HP-UX and IRIX 6.
22852
22853 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
22854
22855         * m4/mbswidth.m4: New file.
22856         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
22857
22858 2000-07-15  Jim Meyering  <meyering@lucent.com>
22859
22860         * lib/makepath.c: Include quote.h.
22861         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
22862         corresponding argument in a `quote (...)' call.
22863         Give better diagnostics.
22864
22865         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
22866         (noinst_HEADERS): Add quote.h.
22867
22868         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
22869         from tar's src/misc.c.
22870         * lib/quote.h: New file.  Prototypes for same.
22871
22872 2000-07-14  Paul Eggert  <eggert@twinsun.com>
22873
22874         From a suggestion by Bruno Haible.
22875         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
22876         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
22877         to decide whether to define the BeOS workaround macro;
22878         this adjusts to the change to AC_MBSTATE_T.
22879
22880 2000-07-14  Jim Meyering  <meyering@lucent.com>
22881
22882         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
22883         jm_AC_TYPE_UINTMAX_T.
22884
22885 2000-07-13  Paul Eggert  <eggert@twinsun.com>
22886
22887         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
22888
22889         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
22890         quotearg_buffer_restyled): Add support for
22891         clocale_quoting_style.  Undo previous change to
22892         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
22893         and "{RIGHT QUOTATION MARK}" msgids.
22894
22895 2000-07-10  Paul Eggert  <eggert@twinsun.com>
22896
22897         From a suggestion by Bruno Haible.
22898         * m4/mbstate_t.m4 (AC_MBSTATE_T):
22899         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
22900         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
22901         and mbstate_t, to a single-part test that simply defines mbstate_t.
22902         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
22903         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
22904
22905 2000-07-10  Jim Meyering  <meyering@lucent.com>
22906
22907         * m4/strerror_r.m4: Mirror the correction made in autoconf.
22908
22909         * m4/gnu-source.m4: Output to confdefs.h directly.
22910         Suggestion from Akim Demaille.
22911
22912 2000-07-09  Paul Eggert  <eggert@twinsun.com>
22913
22914         The old behavior of quoting `like this' doesn't look good with
22915         newer, ISO-style fonts.  See:
22916         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
22917
22918         Instead, quote "like this" by default.  Let the translator
22919         tailor the locale-specific quoting behavior by providing
22920         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
22921
22922         * lib/quotearg.c (N_): New macro.
22923         (gettext_default): New function.
22924         (quotearg_buffer_restyled): Use
22925         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
22926         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
22927
22928 2000-07-09  Jim Meyering  <meyering@lucent.com>
22929
22930         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
22931         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
22932
22933         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
22934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
22935
22936 2000-07-09  Jim Meyering  <meyering@lucent.com>
22937
22938         * lib/Most files: Update copyright dates to include 2000.
22939
22940 2000-07-08  Jim Meyering  <meyering@lucent.com>
22941
22942         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
22943         if not defined.
22944         (xgethostname): Remove now-unnecessary #ifdef.
22945         Move declaration of `err' into loop where it's used.
22946
22947 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22948         and Bruno Haible  <haible@clisp.cons.org>
22949
22950         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
22951         only if the test for an object-type mbstate_t fails.  This
22952         prevents us from mistakenly reporting that mbstate_t is a
22953         system object type after we "#define mbstate_t int" to work
22954         around its lack.
22955
22956 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22957         and Bruno Haible  <haible@clisp.cons.org>
22958
22959         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
22960
22961 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22962
22963         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
22964         to strerror_r.
22965         Include <ctype.h> for use of isalpha.
22966
22967 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22968
22969         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
22970         by allocating a larger buffer. Test the gethostname return value for
22971         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
22972         returns an error and ENAMETOOLONG isn't defined.
22973
22974 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22975
22976         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
22977         dimension.
22978
22979 2000-07-04  Jim Meyering  <meyering@lucent.com>
22980
22981         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
22982         of the deprecated AC_CHECKING.
22983
22984 2000-07-04  Jim Meyering  <meyering@lucent.com>
22985
22986         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
22987         Reported by Bruno Haible.
22988
22989 2000-07-04  Jim Meyering  <meyering@lucent.com>
22990
22991         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
22992         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
22993         lacks mbrtowc.
22994
22995 2000-07-03  Paul Eggert  <eggert@twinsun.com>
22996
22997         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
22998         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
22999
23000 2000-07-03  Paul Eggert  <eggert@twinsun.com>
23001         and Bruno Haible  <haible@clisp.cons.org>
23002
23003         * lib/quotearg.c (mbrtowc):
23004         Assign to *pwc, and return 1 only if result is nonzero.
23005         (iswprint): Use ISPRINT when substituting our own mbrtowc.
23006
23007 2000-07-03  Jim Meyering  <meyering@lucent.com>
23008
23009         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
23010
23011 2000-07-03  Jim Meyering  <meyering@lucent.com>
23012
23013         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
23014         This is necessary to get a definition of e.g., UTMP_FILE on
23015         HP-UX 10.20.
23016         From Bob Proulx.
23017
23018 2000-07-02  Jim Meyering  <meyering@lucent.com>
23019
23020         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
23021
23022         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
23023         AC_LIBOBJ(function_name).
23024         * m4/chown.m4: Likewise.
23025         * m4/fnmatch.m4: Likewise.
23026         * m4/ftruncate.m4: Likewise.
23027         * m4/getgroups.m4: Likewise.
23028         * m4/getline.m4: Likewise.
23029         * m4/group-member.m4: Likewise.
23030         * m4/jm-macros.m4: Likewise.
23031         * m4/lstat.m4: Likewise.
23032         * m4/malloc.m4: Likewise.
23033         * m4/memcmp.m4: Likewise.
23034         * m4/nanosleep.m4: Likewise.
23035         * m4/putenv.m4: Likewise.
23036         * m4/realloc.m4: Likewise.
23037         * m4/regex.m4: Likewise.
23038         * m4/stat.m4: Likewise.
23039         * m4/strftime.m4: Likewise.
23040
23041 2000-07-02  Jim Meyering  <meyering@lucent.com>
23042
23043         * lib/quotearg.c (mbstate_t): Don't define here.
23044
23045 2000-07-02  Jim Meyering  <meyering@lucent.com>
23046
23047         * lib/nanosleep.c (SIGCONT): Define if not already defined.
23048
23049 2000-07-01  Jim Meyering  <meyering@lucent.com>
23050
23051         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
23052
23053 2000-07-01  Jim Meyering  <meyering@lucent.com>
23054
23055         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
23056         problem.
23057
23058 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
23059
23060         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
23061         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
23062
23063 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
23064
23065         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
23066         per change in ../m4/ls-mntd-fs.m4.
23067         (read_filesystem_list): Ignore symbolic links.
23068
23069 2000-06-29  Jim Meyering  <meyering@lucent.com>
23070
23071         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
23072         for declaration of strcmp.
23073
23074         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
23075
23076         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
23077         Avoid warning by casting result to `char *' to remove `const'.
23078
23079 2000-06-28  Jim Meyering  <meyering@lucent.com>
23080
23081         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
23082         included by quotearg.c, for which we perform this test.  From
23083         Bruno Haible.
23084
23085 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
23086
23087         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
23088         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
23089         <utmpx.h> exists, put readutmp.o into LIBOBJS.
23090
23091 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
23092
23093         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
23094
23095 2000-06-26  Paul Eggert  <eggert@twinsun.com>
23096
23097         savedir now sets errno on failure and invokes xmalloc to get memory.
23098         Fix a couple of other minor bugs while we're at it.
23099
23100         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
23101         (NAMLEN): Remove macro.
23102         (malloc, realloc): Remove decls.
23103         (stpcpy): Likewise.
23104         ("xalloc.h"): Include.
23105         (NAME_SIZE_DEFAULT): New macro.
23106         (savedir): Use xmalloc / xrealloc to allocate memory.
23107         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
23108         Skip "" directory entries.
23109         Use strlen to calculate directory entry length, since the old method
23110         is rarely used these days and isn't worth supporting.
23111         Don't use a pointer after freeing it.
23112         Check for integer overflow when calculating allocation size.
23113         Use memcpy to copy entries, instead of stpcpy.
23114         Set errno properly when returning NULL.
23115         Check for readdir error.
23116
23117 2000-06-26  Jim Meyering  <meyering@lucent.com>
23118
23119         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
23120
23121 2000-06-25  Jim Meyering  <meyering@lucent.com>
23122
23123         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
23124         Linux header bug when _XOPEN_SOURCE is defined to 500.
23125
23126 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23127
23128         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
23129         deficiency.
23130
23131 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23132
23133         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
23134         Include xalloc.h.
23135         Don't include <stdlib.h>.  Don't declare malloc, realloc.
23136
23137 2000-06-24  Jim Meyering  <meyering@lucent.com>
23138
23139         * m4/strerror_r.m4: Revive this file -- to try out an experimental
23140         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
23141         for which strerror does return char*, but which lacks a conveniently
23142         accessible declaration of the function.  If the compile-test says
23143         strerror_r doesn't work, then resort to a `run'-test that works on
23144         BeOS and segfaults on DEC Unix.
23145
23146 2000-06-24  Jim Meyering  <meyering@lucent.com>
23147
23148         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
23149
23150 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23151
23152         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
23153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
23154
23155 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23156
23157         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
23158         (mbrtowc, mbstate_t): Define substitutes if
23159         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
23160         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
23161         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
23162
23163 2000-06-23  Jim Meyering  <meyering@lucent.com>
23164
23165         * m4/afs.m4: Add missing AC_MSG_RESULT.
23166         Reported by Bruno Haible.
23167
23168         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
23169         Suggestion from Bruno Haible.
23170
23171 2000-06-23  Jim Meyering  <meyering@lucent.com>
23172
23173         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
23174
23175 2000-06-21  Jim Meyering  <meyering@lucent.com>
23176
23177         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
23178
23179 2000-06-21  Jim Meyering  <meyering@lucent.com>
23180
23181         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
23182         (noinst_HEADERS): Add getstr.h.
23183
23184         * lib/getline.c (getstr): Move into a separate file.
23185         * lib/getstr.c (getstr): New file, extracted from getline.c, with
23186         the following changes: new parameter, delim2; both delim[12]
23187         parameters have type `int', not `char'.  The latter would lose
23188         with 8-bit delimiters.
23189         * lib/getstr.h: New file.
23190
23191 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23192
23193         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
23194         than 1024, return a memory chunk of least possible size, instead
23195         of size PATH_MAX + 2. In the loop, increment the size proportionally.
23196         Use free/xmalloc instead of xrealloc to avoid copying for very long
23197         paths.
23198
23199 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23200
23201         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
23202         the empty string.
23203
23204 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23205
23206         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
23207         address, not strdup.  Include <stdlib.h> and don't declare free().
23208
23209 2000-06-19  Jim Meyering  <meyering@lucent.com>
23210
23211         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
23212
23213 2000-06-18  Jim Meyering  <meyering@lucent.com>
23214
23215         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
23216
23217         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
23218         `checking whether...' message to be consistent with that of the
23219         lstat test.
23220
23221 2000-06-18  Jim Meyering  <meyering@lucent.com>
23222
23223         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
23224         Besides, these days every porting target provides a mkdir function.
23225
23226         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
23227         needed. (this snippet comes from src/system.h).
23228
23229 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
23230
23231         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
23232
23233 2000-06-15  Paul Eggert  <eggert@twinsun.com>
23234
23235         * lib/human.c (adjust_value): New function.
23236         (human_readable_inexact): Apply rounding style even when
23237         printing approximate values.
23238
23239 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23240
23241         * lib/human.c (human_readable_inexact): Allow an input block
23242         size that is not a multiple of the output block size, and vice versa.
23243         Reported by Piergiorgio Sartor.
23244
23245 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23246
23247         * lib/getdate.y (get_date): Apply relative times after time
23248         zone indicator, not before.  Reported by Todd A. Jacobs.
23249
23250 2000-06-13  Jim Meyering  <meyering@lucent.com>
23251
23252         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
23253
23254         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
23255
23256 2000-06-12  Paul Eggert  <eggert@twinsun.com>
23257
23258         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
23259
23260 2000-06-12  Jim Meyering  <meyering@lucent.com>
23261
23262         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
23263         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
23264         optional argument.
23265         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
23266         the optional argument, `lib'.
23267
23268 2000-06-08  Jim Meyering  <meyering@lucent.com>
23269
23270         * m4/largefile.m4: Remove file (now that it's part of autoconf).
23271
23272 2000-06-04  Paul Eggert  <eggert@twinsun.com>
23273
23274         Rewrite largefile configuration so that we don't need to run
23275         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
23276         AC_CANONICAL_HOST in configure.in -- jmm]
23277
23278         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
23279         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
23280         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
23281         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
23282         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
23283         All uses changed.
23284         Instead of inspecting the output of getconf, try to compile the
23285         test program without and with the macro definition.
23286         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
23287         for getconf.  Instead, check for the needed flags by compiling
23288         test programs.
23289
23290 2000-06-04  Paul Eggert  <eggert@twinsun.com>
23291
23292         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
23293
23294 2000-06-04  Jim Meyering  <meyering@lucent.com>
23295
23296         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
23297         SunOS 4.1.4 for which gid_t is an unsigned type.
23298
23299 2000-06-03  Jim Meyering  <meyering@lucent.com>
23300
23301         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
23302         now that autoconf requires that.
23303
23304         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
23305         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
23306         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
23307
23308 2000-06-03  Jim Meyering  <meyering@lucent.com>
23309
23310         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
23311
23312 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
23313
23314         * m4/glibc21.m4: New file.
23315         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
23316
23317 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
23318
23319         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
23320         newer, don't install charset.alias.
23321         * lib/config.charset: Change the Linux/glibc rules so they become empty
23322         on glibc-2.1 or newer.
23323
23324 2000-06-02  Jim Meyering  <meyering@lucent.com>
23325
23326         * lib/mountlist.c: Back out last change.  Instead, do this...
23327         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
23328         me_dummy member using the same `ignore'-testing code.
23329         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
23330         fs_type strings.
23331         From Mark D. Roth.
23332
23333 2000-05-29  Jim Meyering  <meyering@lucent.com>
23334
23335         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
23336         mounts with the `ignore' attribute.  Based on a patch from
23337         Mark D. Roth.
23338
23339 2000-05-28  Jim Meyering  <meyering@lucent.com>
23340
23341         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
23342         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23343         * m4/stat.m4: Likewise.
23344         * m4/lstat.m4: Likewise.
23345         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
23346
23347         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
23348         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
23349
23350 2000-05-26  Jim Meyering  <meyering@lucent.com>
23351
23352         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
23353
23354 2000-05-24  Jim Meyering  <meyering@lucent.com>
23355
23356         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
23357         autoconf requires that.
23358         * m4/lib-check.m4: Likewise.
23359         * m4/jm-macros.m4: Likewise.
23360         * m4/strftime.m4: Likewise.
23361
23362         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
23363         AC_CHECK_DECLS, now that autoconf requires that.
23364
23365 2000-05-22  Jim Meyering  <meyering@lucent.com>
23366
23367         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23368         * m4/lstat.m4: Likewise.
23369
23370 2000-05-22  Jim Meyering  <meyering@lucent.com>
23371
23372         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
23373
23374 2000-05-20  Jim Meyering  <meyering@lucent.com>
23375
23376         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
23377         (jm_PREREQ): Use it.
23378
23379 2000-05-18  Jim Meyering  <meyering@lucent.com>
23380
23381         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
23382         back, too, since it may have been modified by allocate_entry.
23383         (hash_delete): Rewrite to use neither the assignment operator
23384         nor the comma operator in an if-expression.
23385
23386 2000-05-15  Paul Eggert  <eggert@twinsun.com>
23387
23388         * lib/closeout.c:
23389         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
23390         Remove; no longer needed.
23391         "quotearg.h": Add include.
23392         (file_name): Do not bother to explicitly initialize to NULL; it's less
23393         efficient on some hosts.
23394         (close_stdout_status): Remove test as to whether stdout was already
23395         closed; it breaks for the case "echo x | sort >&-".
23396         Quote file name colons.
23397         Do not assume that _("write error") lacks format strings.
23398
23399 2000-05-15  Jim Meyering  <meyering@lucent.com>
23400
23401         * lib/version-etc.c (version_etc_copyright): Update the copyright
23402         string used in all --version output.
23403
23404 2000-05-14  Jim Meyering  <meyering@lucent.com>
23405
23406         * lib/closeout.c (close_stdout_set_file_name): New function.
23407         (close_stdout_status): Use new file-scoped global.
23408         Return right away if fstat says the stdout file descriptor is invalid.
23409         * lib/closeout.h (close_stdout_set_file_name): Declare.
23410
23411 2000-05-10  Jim Meyering  <meyering@lucent.com>
23412
23413         * lib/closeout.c [default_exit_status]: New file-scoped variable.
23414         (close_stdout_set_status): New function.
23415         * lib/closeout.h (close_stdout_set_status): Declare.
23416
23417 2000-05-09  Jim Meyering  <meyering@lucent.com>
23418
23419         * m4/gettext.m4: Rename this...
23420         * m4/libintl.m4: ...to this.
23421
23422 2000-05-08  Jim Meyering  <meyering@lucent.com>
23423
23424         * lib/long-options.c: Don't include closeout.h.
23425         (parse_long_options): Don't call close_stdout for --version.
23426
23427 2000-05-06  Paul Eggert  <eggert@twinsun.com>
23428
23429         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
23430         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
23431         2.1.3 bug.  This avoids a clash when files like regex.c define
23432         _GNU_SOURCE.
23433
23434 2000-05-06  Jim Meyering  <meyering@lucent.com>
23435
23436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
23437         (AC_REPLACE_FUNCS): Add strnlen.
23438
23439         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
23440         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
23441
23442         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
23443         AC_SEARCH_LIBS call for nanosleep.
23444         (LIB_NANOSLEEP): Set and AC_SUBST.
23445
23446 2000-05-06  Jim Meyering  <meyering@lucent.com>
23447
23448         * lib/strnlen.c: Undefine __strnlen and strnlen.
23449         [!weak_alias]: Define __strnlen to strnlen.
23450
23451         * lib/atexit.c: New file, from libiberty.
23452
23453 2000-05-06  Jim Meyering  <meyering@lucent.com>
23454
23455         * lib/closeout.c (close_stdout_status): Also check for errors on the
23456         stderr stream.
23457
23458 2000-05-05  Jim Meyering  <meyering@lucent.com>
23459
23460         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
23461         AC_SEARCH_LIBS call for clock_gettime.
23462         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
23463
23464         * m4/search-libs.m4: Update from autoconf.
23465
23466         su doesn't work on Solaris 2.6.
23467         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
23468         <shadow.h>.  Reported by Dragos Harabor.
23469
23470 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
23471
23472         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
23473         memcpy instead of xmalloc, xrealloc, path_concat.
23474         (locale_charset): Treat empty environment variables as absent.
23475         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
23476
23477 2000-05-04  Jim Meyering  <meyering@lucent.com>
23478
23479         * lib/getopt.c: Update from glibc.
23480         * lib/obstack.c: Likewise.
23481         * lib/obstack.h: Likewise.
23482         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
23483         file
23484
23485         * lib/regex.h: Likewise.
23486         * lib/strndup.c: Likewise.
23487         * lib/strnlen.c: New file, from glibc.
23488
23489 2000-05-03  Jim Meyering  <meyering@lucent.com>
23490
23491         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
23492
23493 2000-05-02  Paul Eggert  <eggert@twinsun.com>
23494
23495         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
23496         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
23497         compile-time test, rather than inspecting host and OS, to
23498         decide whether to define _LARGEFILE_SOURCE.
23499
23500 2000-05-01  Jim Meyering  <meyering@lucent.com>
23501
23502         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
23503
23504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
23505         Based on a patch from Bruno Haible.
23506
23507 2000-05-01  Jim Meyering  <meyering@lucent.com>
23508
23509         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
23510
23511 2000-04-29  Jim Meyering  <meyering@lucent.com>
23512
23513         * lib/path-concat.c: Declare strdup only if it's not defined.
23514         * lib/canon-host.c: Likewise.
23515
23516 2000-04-28  Jim Meyering  <meyering@lucent.com>
23517
23518         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
23519         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
23520         is included first, then limits.h is included by locale.h by libintl.h.
23521         From John David Anglin.
23522
23523 2000-04-25  Jim Meyering  <meyering@lucent.com>
23524
23525         * lib/makepath.c (S_IRWXUGO): Define.
23526         (make_path): Always perform explicit chmod if MODE specifies any
23527         of the `special' permission bits.  Prompted by a bug report against
23528         install from Mate Wierdl and Joost van Baal.
23529
23530 2000-04-18  Jim Meyering  <meyering@lucent.com>
23531
23532         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
23533         (jm_PREREQ): Use it.
23534
23535 2000-04-18  Jim Meyering  <meyering@lucent.com>
23536
23537         * lib/README: New file.
23538
23539         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
23540         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
23541
23542 2000-04-17  Jim Meyering  <meyering@lucent.com>
23543
23544         Get it right :-)
23545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
23546         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
23547         Suggestion from Akim Demaille.
23548
23549 2000-04-17  Jim Meyering  <meyering@lucent.com>
23550
23551         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
23552         the definition of it to rpl_strftime also defined-away the system's
23553         declaration.
23554
23555 2000-04-15  Jim Meyering  <meyering@lucent.com>
23556
23557         Use `C' to denote so-called `contiguous' files, the same way
23558         that tar does.
23559         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
23560         (ftypelet): Use S_ISCTG.
23561         From Michael Deutschmann.
23562
23563 2000-04-14  Jim Meyering  <meyering@lucent.com>
23564
23565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
23566         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
23567         clobbered.
23568
23569 2000-04-14  Jim Meyering  <meyering@lucent.com>
23570
23571         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
23572
23573 2000-04-13  Jim Meyering  <meyering@lucent.com>
23574
23575         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
23576         AH_VERBATIM to insert required #ifndef into config.h.in.
23577         Suggestion from Akim Demaille.
23578
23579 2000-04-12  Jim Meyering  <meyering@lucent.com>
23580
23581         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
23582         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
23583         Christian Krackowizer.
23584
23585         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
23586         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
23587         (AC_SYS_LARGEFILE): Require.
23588         (AM_C_PROTOTYPES): Require.
23589
23590 2000-04-08  Jim Meyering  <meyering@lucent.com>
23591
23592         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
23593         names don't conflict.  Reported by Eli Zaretskii.
23594
23595 2000-04-07  Jim Meyering  <meyering@lucent.com>
23596
23597         * lib/putenv.c: Move inclusion of errno.h so it follows that of
23598         sys/types.h, to work around system header problems on AIX 3.2.5.
23599         From Bruno Haible.
23600
23601 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
23602
23603         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
23604         bug.  Deal with the different error behavior of Irix iconv.
23605
23606 2000-04-05  Paul Eggert  <eggert@twinsun.com>
23607
23608         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
23609         IRIX if the installer said otherwise.
23610
23611 2000-04-05  Jim Meyering  <meyering@lucent.com>
23612
23613         Portability tweaks required for ultrix4.3.
23614         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
23615         (jm_CHECK_DECLS): Add getutent to the list of functions.
23616         (_jm_DECL_HEADERS): Add utmpx.h.
23617         From John David Anglin.
23618
23619         * m4/strftime.m4: Back out the 2000-04-02 change.
23620         Instead of that change, simply undefine putenv in the test program.
23621
23622 2000-04-05  Jim Meyering  <meyering@lucent.com>
23623
23624         Portability tweaks required for ultrix4.3.
23625         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
23626         getutent.
23627         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
23628         * lib/canon-host.c: Declare strdup.
23629         * lib/path-concat.c: Likewise.
23630         From John David Anglin.
23631
23632 2000-04-04  Jim Meyering  <meyering@lucent.com>
23633
23634         Be more DOS 8.3-friendly.
23635         * lib/ref-add.sin: Renamed from ref-add.sed.in.
23636         * lib/ref-del.sin: Renamed from ref-del.sed.in.
23637         * lib/Makefile.am: Reflect renaming.
23638         Reported by Eli Zaretskii.
23639
23640         Use a temporary file name that won't clash with `charset.alias'
23641         in the DOS 8.3 name space.
23642         * lib/Makefile.am (charset_tmp): Define.
23643         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
23644         (uninstall-local): Likewise.
23645         Reported by Eli Zaretskii.
23646
23647 2000-04-03  Jim Meyering  <meyering@lucent.com>
23648
23649         * m4/gettext.m4: Fix typo in comment.
23650
23651         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
23652         textutils/configure.in).  Suggestion from Paul Eggert.
23653         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
23654
23655 2000-04-02  Paul Eggert  <eggert@twinsun.com>
23656
23657         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
23658         variable in the shell rather than using putenv, which isn't
23659         portable.  This avoids the configure-time inter-test dependency
23660         on the potentially-renamed putenv function.
23661
23662 2000-03-30  Paul Eggert  <eggert@twinsun.com>
23663
23664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
23665         before checking struct stat.st_blksize, so that
23666         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
23667
23668 2000-03-29  Paul Eggert  <eggert@twinsun.com>
23669
23670         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
23671         since strftime.c uses HAVE_STRFTIME to decide whether to use
23672         the underlying strftime.
23673
23674 2000-03-29  Paul Eggert  <eggert@twinsun.com>
23675
23676         * lib/time/strftime.c (my_strftime): Make sure we call the system
23677         strftime, not ourselves, when invoking the underlying strftime.
23678
23679 2000-03-24  Jim Meyering  <meyering@lucent.com>
23680
23681         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
23682         (charset_alias): Define.
23683         (install-exec-local): Factor out common code.
23684         (uninstall-local): Split lines longer than 80.
23685         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
23686         (SUFFIXES): Define.
23687         (.sed.in.sed): New rule.  Don't redirect directly to $@.
23688         (CLEANFILES): Add ref-add.sed and ref-del.sed.
23689
23690 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
23691
23692         * lib/config.charset: Output a line containing "Packages using this
23693         file".
23694         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
23695         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
23696         ref-del.sed): New rules.
23697
23698 2000-03-17  Jim Meyering  <meyering@lucent.com>
23699
23700         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
23701         Otherwise, include <strings.h>
23702
23703 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
23704
23705         * lib/unicodeio.c (utf8_wctomb): New function.
23706         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
23707         format instead of in UCS-4 with platform dependent endianness.
23708
23709 2000-03-10  Jim Meyering  <meyering@lucent.com>
23710
23711         * m4/lib-check.m4: Look for getspnam in -lgen, too.
23712         From Marco Franzen.
23713
23714 2000-03-07  Paul Eggert  <eggert@twinsun.com>
23715
23716         * lib/savedir.c (savedir): Work even if directory size is
23717         negative; this can happen with some screwy NFS configurations.
23718
23719 2000-03-06  Jim Meyering  <meyering@lucent.com>
23720
23721         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
23722         if it's NULL (because we ran out of memory).  From Bruno Haible.
23723
23724 2000-03-05  Jim Meyering  <meyering@lucent.com>
23725
23726         * lib/localcharset.c ("path-concat.h"): Include.
23727         (get_charset_aliases): Use path_concat instead of ANSI string
23728         concatenation.
23729
23730         * lib/unicodeio.h (PARAMS): Define.
23731         Use it to guard prototype.
23732
23733 2000-03-04  Jim Meyering  <meyering@lucent.com>
23734
23735         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
23736         for lib/localcharset.c.
23737
23738 2000-03-04  Jim Meyering  <meyering@lucent.com>
23739
23740         * lib/Makefile.am (install-exec-local): Create $(libdir) before
23741         installing into it.
23742         (uninstall-local): Uncomment this rule so `make distcheck' works
23743         once again.
23744
23745         * lib/unicodeio.c (<errno.h>): Include it.
23746         (errno): Declare if not defined.
23747
23748         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
23749
23750         * lib/config.charset: New version, incorporating remarks from a linux
23751         i18n mailing list.  From Bruno Haible.
23752
23753 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
23754
23755         * m4/codeset.m4: New file.
23756         * m4/iconv.m4: New file.
23757         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
23758
23759 2000-03-03  Jim Meyering  <meyering@lucent.com>
23760
23761         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
23762
23763 2000-03-02  Jim Meyering  <meyering@lucent.com>
23764
23765         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
23766         the messages come out on separate lines.
23767
23768         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
23769         rather than jm_CHECK_DECLARATIONS.
23770         * m4/decl.m4: Remove now-unused file.
23771
23772         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
23773         geteuid.
23774
23775 2000-03-02  Jim Meyering  <meyering@lucent.com>
23776
23777         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
23778
23779 2000-03-01  Jim Meyering  <meyering@lucent.com>
23780
23781         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
23782         * lib/unicodeio.c: Likewise.
23783
23784 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
23785
23786         * lib/config.charset: New file.
23787         * lib/localcharset.c: New file.
23788         * lib/unicodeio.h, lib/unicodeio.c: New files.
23789         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
23790         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
23791         (noinst_HEADERS): Add unicodeio.h.
23792         (all-local, install-exec-local, charset.alias): New targets.
23793
23794 2000-02-28  Paul Eggert  <eggert@twinsun.com>
23795
23796         * lib/quotearg.c (ALERT_CHAR): New macro.
23797         (quotearg_buffer_restyled): Use it.
23798
23799 2000-02-27  Jim Meyering  <meyering@lucent.com>
23800
23801         * m4/check-decl.m4: Add getenv to the list.
23802
23803 2000-02-27  Jim Meyering  <meyering@lucent.com>
23804
23805         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
23806         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
23807
23808         * lib/backupfile.c: Guard inclusion of stdlib.h with
23809         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
23810         Declare malloc if needed.
23811
23812         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
23813         `#ifndef HAVE_DECL..'
23814         now that autoconf always defines the HAVE_DECL_ symbols.
23815         * lib/human.c: Likewise.
23816         * lib/same.c: Likewise.
23817         * lib/strtoumax.c: Likewise.
23818
23819         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
23820         declaration check was not run.
23821         * lib/hash.c: Likewise.
23822         * lib/human.c: Likewise.
23823         * lib/same.c: Likewise.
23824         * lib/strtoumax.c: Likewise.
23825
23826         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
23827         `.', then first look up the entire `.'-containing string as a login
23828         name.
23829
23830 2000-02-23  Jim Meyering  <meyering@lucent.com>
23831
23832         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
23833         in place of my hack.
23834
23835 2000-02-18  Paul Eggert  <eggert@twinsun.com>
23836
23837         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
23838         (textint): New typedef.
23839         (parser_control): Member year changed from int to textint.
23840         All uses changed.
23841         (YYSTYPE): Removed; replaced by %union with int and textint members.
23842         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
23843         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
23844         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
23845         (tSNUMBER, tUNUMBER): Now of type <textintval>.
23846         (date, number, to_year): Use width of number in digits, not its value,
23847         to determine whether it's a 2-digit year, or a 2-digit time.
23848         (yylex): Store number of digits of numeric tokens.
23849         Reported by John Kendall.
23850
23851         (parser_control): Changed from struct parser_control to typedef (for
23852         consistency).  All uses changed.
23853
23854         (tID): Removed; not used.
23855         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
23856
23857 2000-02-14  Paul Eggert  <eggert@twinsun.com>
23858
23859         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
23860         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
23861
23862 2000-02-12  Jim Meyering  <meyering@lucent.com>
23863
23864         * lib/userspec.c (ISDIGIT): Define it.
23865         (isdigit): Remove definition.
23866         (is_number): Use ISDIGIT, not isdigit.
23867         <libintl.h>: Include.
23868         (_ and N_): Define.
23869         (parse_user_spec): Mark translatable strings.
23870
23871 2000-02-10  Jim Meyering  <meyering@lucent.com>
23872
23873         With these changes, nanosleep.[ch] are finally enough like the other
23874         lib/* replacement files to compile on a few more losing systems.
23875
23876         * lib/nanosleep.h: Don't include config.h.
23877         Remove prototype from declaration of nanosleep.
23878         (PARAMS): Remove now-unneeded definition.
23879         * lib/nanosleep.c: #undef nanosleep.
23880         (rpl_nanosleep): Rename from nanosleep.
23881
23882 2000-02-10  Jim Meyering  <meyering@lucent.com>
23883
23884         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
23885         gnu_nanosleep to rpl_nanosleep.
23886
23887 2000-02-09  Jim Meyering  <meyering@lucent.com>
23888
23889         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
23890         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
23891
23892 2000-02-08  Akim Demaille  <akim@epita.fr>
23893
23894         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
23895         `[' and `]' and remove uses of `changequote'.
23896         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
23897         (AC_SYS_LARGEFILE): Likewise.
23898         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23899         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
23900         of changequote.
23901         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
23902         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
23903         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
23904         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
23905
23906 2000-02-05  Jim Meyering  <meyering@lucent.com>
23907
23908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
23909         Remove explicit use of AC_HEADER_TIME.  It is required by
23910         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
23911         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
23912         in autoconf whereby the expansion of the latter ended up preceding
23913         the expansion of its prerequisite, AC_HEADER_TIME.
23914         Reported by Volker Borchert.
23915
23916 2000-02-03  Jim Meyering  <meyering@lucent.com>
23917
23918         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
23919
23920 2000-02-03  Jim Meyering  <meyering@lucent.com>
23921
23922         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
23923         rather than with `#if HAVE_UTMPNAME'.
23924
23925 2000-02-02  Jim Meyering  <meyering@lucent.com>
23926
23927         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
23928         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
23929         Reported by Eli Zaretskii.
23930
23931 2000-02-01  Jim Meyering  <meyering@lucent.com>
23932
23933         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
23934
23935 2000-01-31  Jim Meyering  <meyering@lucent.com>
23936
23937         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
23938         functions.  Add the time.h and sys/time.h headers along with the
23939         AC_REQUIRE'ment of AC_HEADER_TIME.
23940
23941 2000-01-31  Jim Meyering  <meyering@lucent.com>
23942
23943         * lib/nanosleep.h (nanosleep): Guard declaration with
23944         `#if ! HAVE_DECL_NANOSLEEP'.
23945         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
23946         the declaration in that vendor's sys/timers.h.
23947         Reported by Christian Krackowizer.
23948
23949         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
23950         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
23951         (ISPRINT): Likewise.
23952         Reported by Tom Tromey.
23953
23954 2000-01-30  Jim Meyering  <meyering@lucent.com>
23955
23956         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
23957
23958         * m4/prereq.m4 (utmp_includes): Define.
23959         Check for ut_user and ut_name members in both struct utmpx
23960         and struct utmp.
23961
23962 2000-01-30  Jim Meyering  <meyering@lucent.com>
23963
23964         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
23965         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
23966         header files where only utmpx.ut_user is declared.
23967
23968         * lib/readutmp.h (UT_USER): Define.
23969
23970 2000-01-29  Jim Meyering  <meyering@lucent.com>
23971
23972         * m4/lib-check.m4: New file containing library-related checks from
23973         fileutils and sh-utils (textutils had none).
23974
23975 2000-01-28  Jim Meyering  <meyering@lucent.com>
23976
23977         * m4/perl.m4: Change format of warning message to look more like that
23978         from the missing script.  Suggestion from François Pinard.
23979
23980 2000-01-25  Jim Meyering  <meyering@lucent.com>
23981
23982         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
23983         well as time.h in the compile check.
23984         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
23985         Fix typo in cross-compiling case: s/yes/no/.
23986
23987 2000-01-23  Jim Meyering  <meyering@lucent.com>
23988
23989         * m4/jm-macros.m4: Move df-related tests here from
23990         fileutils/configure.in
23991
23992         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
23993         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
23994
23995         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
23996         s/space/ac_fsusage_space/.
23997         (jm_FILE_SYSTEM_USAGE): Take two parameters.
23998
23999         * m4/ftruncate.m4: New file (derived from part of
24000         fileutils/configure.in).
24001         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
24002         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
24003
24004         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
24005         AC_SUBST these here, rather than just in sh-util/configure.in, so
24006         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
24007         all the same.
24008         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
24009         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
24010         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
24011         (AC_SUBST(POW_LIBM)): Likewise.
24012         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
24013
24014 2000-01-23  Jim Meyering  <meyering@lucent.com>
24015
24016         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
24017         obstack.c.
24018
24019 2000-01-22  Jim Meyering  <meyering@lucent.com>
24020
24021         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
24022
24023         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
24024
24025         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
24026         configure.in
24027         (AC_CHECK_HEADERS): Likewise for sh-utils.
24028         (AC_CHECK_HEADERS): Likewise for textutils.
24029         Merge the three lists of headers.
24030
24031         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
24032         from fileutils' configure.in.
24033
24034         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
24035         code. Moved tests into their own function (_jm_DECL_HEADERS) in
24036         check-decl.m4.
24037
24038         * m4/check-decl.m4: Use #if rather than #ifdef.
24039         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
24040         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
24041         (_jm_DECL_HEADERS): Define new function.
24042         (jm_CHECK_DECLARATIONS): Require it.
24043
24044 2000-01-22  Jim Meyering  <meyering@lucent.com>
24045
24046         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
24047         [! HAVE_DECL_STRTOULL]: Declare strtoull.
24048         Required for some AIX systems.  Reported by Christian Krackowizer.
24049         [TESTING] (main): New function.
24050
24051         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
24052         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
24053         letters.
24054
24055         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
24056         iswprint.
24057
24058         * lib/strverscmp.c (ISDIGIT): Define.
24059         (strverscmp): Use ISDIGIT, not isdigit.
24060
24061 2000-01-19  Jim Meyering  <meyering@lucent.com>
24062
24063         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
24064         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
24065         defines `struct timespec' in <sys/time.h>
24066
24067         * m4/c-bs-a.m4: Remove uses of changequote altogether.
24068         Thanks to Akim for explaining.
24069
24070 2000-01-17  Paul Eggert  <eggert@twinsun.com>
24071
24072         * lib/nanosleep.c (nanosleep):
24073         Don't use SA_INTERRUPT to decide whether to call sigaction, as
24074         POSIX.1 doesn't require SA_INTERRUPT and some systems
24075         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
24076         it's been part of POSIX.1 since day 1 (in 1988).
24077
24078 2000-01-17  Jim Meyering  <meyering@lucent.com>
24079
24080         * lib/interlock: Remove unused file.  Reported by François Pinard.
24081
24082 2000-01-16  Paul Eggert  <eggert@twinsun.com>
24083
24084         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
24085         alert, backslash, formfeed, and vertical tab unnecessarily in
24086         shell quoting style.
24087
24088 2000-01-16  Jim Meyering  <meyering@lucent.com>
24089
24090         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
24091         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
24092         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
24093         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
24094
24095 2000-01-16  Jim Meyering  <meyering@lucent.com>
24096
24097         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
24098         because the latter didn't work.
24099
24100 2000-01-15  Jim Meyering  <meyering@lucent.com>
24101
24102         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
24103         (AC_REPLACE_FUNCS): Add memcpy and memset.
24104         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
24105         Add strpbrk.
24106         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
24107
24108 2000-01-12  Jim Meyering  <meyering@lucent.com>
24109
24110         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
24111         (jm_PREREQ): Use it.
24112         (jm_PREREQ_READUTMP): New macro.
24113         (jm_PREREQ): Use it.
24114
24115 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24116
24117         Quote multibyte characters correctly.
24118         * m4/c-bs-a.m4: New file.
24119         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
24120         (jm_PREREQ): Use it.
24121
24122 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24123
24124         * m4/uintmax_t.m4: Port to autoconf 2.13.
24125
24126 2000-01-08  Jim Meyering  <meyering@ascend.com>
24127
24128         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
24129         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
24130
24131 2000-01-04  Jim Meyering  <meyering@ascend.com>
24132
24133         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
24134         jm_STRUCT_DIRENT_D_TYPE.
24135         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
24136         jm_STRUCT_DIRENT_D_INO.
24137         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
24138         jm_STRUCT_UTIMBUF.
24139         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
24140         renamings.
24141         * m4/utime.m4: Likewise.
24142
24143         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
24144         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
24145
24146 2000-01-03  Paul Eggert  <eggert@twinsun.com>
24147
24148         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
24149         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
24150
24151 2000-01-02  Jim Meyering  <meyering@ascend.com>
24152
24153         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
24154         remember if this is necessary.
24155
24156 1999-12-26  Jim Meyering  <meyering@ascend.com>
24157
24158         * m4/jm-macros.m4: Use it here.
24159         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
24160
24161 1999-12-23  Jim Meyering  <meyering@ascend.com>
24162
24163         * m4/jm-macros.m4: Check for clock_gettime (moved from
24164         fileutils/configure.in)
24165         Check for gettimeofday.
24166
24167 1999-12-20  Jim Meyering  <meyering@ascend.com>
24168
24169         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
24170         autoconf-2.14a-1999-12-20.
24171
24172 1999-12-19  Jim Meyering  <meyering@ascend.com>
24173
24174         * m4/lstat-slash.m4: New file.
24175         * m4/jm-macros.m4: Use the new macro:
24176         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24177
24178 1999-12-07  Jim Meyering  <meyering@ascend.com>
24179
24180         * m4/perl.m4: Require that File::Compare be available, too.
24181         Too many systems seem to lack it.
24182
24183         * m4/strftime.m4: Add checks for most of the cpp macros tested in
24184         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
24185
24186 1999-11-18  Paul Eggert  <eggert@twinsun.com>
24187
24188         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
24189         problem with the QNX 4.25 shell, which doesn't propagate exit
24190         status of failed commands inside shell assignments.
24191
24192 1999-11-17  Jim Meyering  <meyering@ascend.com>
24193
24194         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
24195
24196 1999-11-07  Jim Meyering  <meyering@ascend.com>
24197
24198         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
24199
24200 1999-11-06  Jim Meyering  <meyering@ascend.com>
24201
24202         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
24203         * m4/jm-macros.m4 (jm_MACROS): Use it here.
24204
24205 1999-11-05  Jim Meyering  <meyering@ascend.com>
24206
24207         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
24208         configure.in of textutils, fileutils, and sh-utils into this one
24209         (shared between those packages) file.
24210         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
24211         AC_STRUCT_ST_BLKSIZE.
24212
24213 1999-11-03  Jim Meyering  <meyering@ascend.com>
24214
24215         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
24216         of AC_CHECK_TYPE checks includes unistd.h.
24217         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
24218         Suggestion from Akim Demaille.
24219
24220 1999-10-30  Jim Meyering  <meyering@ascend.com>
24221
24222         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
24223         m4-quoted string.
24224         * m4/ls-mntd-fs.m4: Likewise.
24225         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
24226         * m4/jm-winsz1.m4: Likewise.
24227
24228         * m4/const.m4: Remove file, since the fix made it into the experimental
24229         version of autoconf.
24230         * m4/mktime.m4: Likewise.
24231
24232         * m4/check-type.m4: Remove file, now that the latest version of
24233         AC_CHECK_TYPE takes a third arg to specify additional #includes.
24234
24235         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
24236         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
24237         AC_CHECK_TYPE.
24238
24239 1999-10-04  Jim Meyering  <meyering@ascend.com>
24240
24241         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
24242
24243 1999-09-22  Paul Eggert  <eggert@twinsun.com>
24244
24245         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
24246         2.95.1 bug with HP-UX 10.20.
24247
24248 1999-09-17  Jim Meyering  <meyering@ascend.com>
24249
24250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
24251         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
24252         due to missing strdup (against sh-utils-2.0).
24253
24254 1999-08-29  Jim Meyering  <meyering@ascend.com>
24255
24256         * m4/jm-macros.m4: Require jm_BISON.
24257         * m4/bison.m4: New file.
24258
24259 1999-08-17  Paul Eggert  <eggert@twinsun.com>
24260
24261         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
24262         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
24263
24264 1999-08-05  Jim Meyering  <meyering@ascend.com>
24265
24266         * m4/getline.m4: Rename test file from conftestdata to conftest.data
24267         to avoid conflicts with `conftest' on 8+3 filesystems.
24268         Suggestion from Eli Zaretskii.
24269
24270 1999-08-04  Jim Meyering  <meyering@ascend.com>
24271
24272         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
24273         fileutils and sh-utils (textutils's getline test was inadequate).
24274         (AM_FUNC_GETLINE): Run this test.
24275         (AC_CHECK_FUNCS): Check for getdelim.
24276         Reported by Bob Proulx.
24277
24278 1999-08-02  Jim Meyering  <meyering@ascend.com>
24279
24280         * m4/jm-macros.m4: Add a comment.
24281
24282 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24283
24284         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
24285         <inttypes.h> defines strtoumax as a macro (and not as a
24286         function).
24287
24288 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24289
24290         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
24291         that we can shift, multiply and divide unsigned long long
24292         values; Ultrix cc can't do it.
24293
24294 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24295
24296         * m4/mktime.m4: New file, which is a preview of what should appear
24297         in the next public autoconf release.
24298
24299 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24300
24301         * m4/lfs.m4: Remove this file.
24302         * m4/largefile.m4: New file.  It contains the old contents of
24303         lfs.m4, except that all names with prefix AC_LFS have been
24304         changed to use the prefix AC_SYS_LARGEFILE instead, to be
24305         compatible with future autoconf versions.  Also, some minor m4
24306         quoting problems have been fixed.
24307
24308 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24309
24310         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
24311         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
24312         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
24313         and simplify the shell code.
24314
24315 1999-08-01  Jim Meyering  <meyering@ascend.com>
24316
24317         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
24318         m4.
24319
24320 1999-07-20  Jim Meyering  <meyering@ascend.com>
24321
24322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
24323
24324 1999-07-15  Jim Meyering  <meyering@ascend.com>
24325
24326         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
24327
24328 1999-05-22  Jim Meyering  <meyering@ascend.com>
24329
24330         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
24331
24332 1999-05-20  Jim Meyering  <meyering@ascend.com>
24333
24334         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
24335         Add a colon after each `then' in case $4 is empty.
24336
24337 1999-05-16  Jim Meyering  <meyering@ascend.com>
24338
24339         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
24340
24341 1999-05-10  Jim Meyering  <meyering@ascend.com>
24342
24343         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
24344
24345         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
24346         AC_FUNC_MKTIME.
24347
24348 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
24349
24350         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
24351
24352 1999-05-04  Paul Eggert  <eggert@twinsun.com>
24353
24354         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
24355         not CPPFLAGS, so that linking works correctly in IRIX.
24356
24357 1999-04-30  Paul Eggert  <eggert@twinsun.com>
24358
24359         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
24360
24361 1999-04-20  Paul Eggert  <eggert@twinsun.com>
24362
24363         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
24364         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
24365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
24366         jm_AC_TYPE_UNSIGNED_LONG_LONG.
24367         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
24368
24369         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
24370
24371 1999-04-20  Jim Meyering  <meyering@ascend.com>
24372
24373         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
24374         AC_REPLACE xstroull if necessary.  From Paul Eggert.
24375         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
24376
24377 1999-04-18  Jim Meyering  <meyering@ascend.com>
24378
24379         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
24380         * m4/jm-macros.m4: Use it.
24381
24382 1999-04-06  Jim Meyering  <meyering@ascend.com>
24383
24384         * m4/strftime.m4: Remove test for %f.
24385
24386 1999-03-29  Jim Meyering  <meyering@ascend.com>
24387
24388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
24389         superset of the AC_TYPE_* checks in the textutils, fileutils,
24390         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
24391         AC_TYPE_PID_T.
24392
24393 1999-03-28  Jim Meyering  <meyering@ascend.com>
24394
24395         * m4/jm-macros.m4: Define GNU_PACKAGE here.
24396         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
24397         replaced e.g., in the *.sh files of the sh-utils.
24398
24399 1999-03-20  Jim Meyering  <meyering@ascend.com>
24400
24401         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
24402         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
24403         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
24404
24405 1999-03-19  Jim Meyering  <meyering@ascend.com>
24406
24407         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
24408
24409 1999-03-12  Jim Meyering  <meyering@ascend.com>
24410
24411         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
24412
24413 1999-03-07  Jim Meyering  <meyering@ascend.com>
24414
24415         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
24416         declared.
24417
24418 1999-02-17  Jim Meyering  <meyering@ascend.com>
24419
24420         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
24421         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
24422
24423 1999-02-07  Jim Meyering  <meyering@ascend.com>
24424
24425         * m4/group-member.m4: New file -- extracted from sh-utils'
24426         configure.in.
24427
24428         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
24429         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
24430
24431 1999-02-06  Jim Meyering  <meyering@ascend.com>
24432
24433         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
24434         * m4/fnmatch.m4: Likewise.
24435         * m4/getgroups.m4: Likewise.
24436         * m4/lstat.m4: Likewise.
24437         * m4/malloc.m4: Likewise.
24438         * m4/putenv.m4: Likewise.
24439         * m4/realloc.m4: Likewise.
24440         * m4/regex.m4: Likewise.
24441         * m4/stat.m4: Likewise.
24442         * m4/strftime.m4: Likewise.
24443         Suggestion from Alain Magloire.
24444
24445         * m4/chown.m4: Use `.$ac_objext', not `.o'.
24446         * m4/fnmatch.m4: Likewise.
24447         * m4/getgroups.m4: Likewise.
24448         * m4/getline.m4: Likewise.
24449         * m4/lstat.m4: Likewise.
24450         * m4/malloc.m4: Likewise.
24451         * m4/memcmp.m4: Likewise.
24452         * m4/putenv.m4: Likewise.
24453         * m4/realloc.m4: Likewise.
24454         * m4/regex.m4: Likewise.
24455         * m4/stat.m4: Likewise.
24456         * m4/strftime.m4: Likewise.
24457         Suggestion from Alain Magloire.
24458
24459         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
24460         an argument.
24461
24462         * m4/regex.m4: Add a run-time Test for proper operation of
24463         re_compile_pattern.
24464
24465 1999-01-31  Jim Meyering  <meyering@ascend.com>
24466
24467         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
24468
24469 1999-01-30  Jim Meyering  <meyering@ascend.com>
24470
24471         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
24472
24473         * m4/jm-mktime.m4: Make this a wrapper around the official
24474         AM_FUNC_MKTIME rather than my private copy, now that the official one
24475         is up to date.
24476         * m4/mktime.m4: Remove file.
24477
24478         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
24479         * m4/uptime.m4: Likewise.
24480         * m4/uintmax_t.m4: Likewise.
24481
24482 1999-01-28  Jim Meyering  <meyering@ascend.com>
24483
24484         * m4/jm-macros.m4: Use jm_AFS.
24485         * m4/afs.m4: New file (from fileutils' configure.in).
24486
24487         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
24488         * m4/chown.m4: Likewise.
24489         * m4/d-ino.m4: Likewise.
24490         * m4/d-type.m4: Likewise.
24491         * m4/fnmatch.m4: Likewise.
24492         * m4/getgroups.m4: Likewise.
24493         * m4/gettext.m4: Likewise.
24494         * m4/jm-mktime.m4: Likewise.
24495         * m4/jm-winsz2.m4: Likewise.
24496         * m4/lcmessage.m4: Likewise.
24497         * m4/ls-mntd-fs.m4: Likewise.
24498         * m4/malloc.m4: Likewise.
24499         * m4/memcmp.m4: Likewise.
24500         * m4/putenv.m4: Likewise.
24501         * m4/realloc.m4: Likewise.
24502         * m4/st_mtim.m4: Likewise.
24503         * m4/strftime.m4: Likewise.
24504
24505 1999-01-16  Jim Meyering  <meyering@ascend.com>
24506
24507         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
24508         (ARGMATCH_DIE_DECL): Define.
24509
24510 1999-01-12  Jim Meyering  <meyering@ascend.com>
24511
24512         * m4/Makefile.am.in: Rewrite to avoid using fmt.
24513         Reported by Lars Hecking.
24514
24515 1999-01-10  Jim Meyering  <meyering@ascend.com>
24516
24517         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
24518         gross kludge.
24519         * m4/inttypes_h.m4: Likewise.
24520         * m4/lstat.m4: Likewise.
24521         * m4/malloc.m4: Likewise.
24522         * m4/readdir.m4: Likewise.
24523         * m4/realloc.m4: Likewise.
24524         * m4/st_dm_mode.m4: Likewise.
24525         * m4/stat.m4: Likewise.
24526         * m4/utimbuf.m4: Likewise.
24527         * m4/utimes.m4: Likewise.
24528
24529         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
24530         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
24531         comments in config.h.in are meaningful.
24532
24533         * m4/jm-macros.m4: Require autoconf-2.13 here.
24534
24535         * m4/regex.m4: By default, don't use the included regex.c on systems
24536         with glibc 2.  Suggestion from Uli Drepper.
24537
24538 1999-01-02  Jim Meyering  <meyering@ascend.com>
24539
24540         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
24541
24542 1998-12-18  Jim Meyering  <meyering@ascend.com>
24543
24544         * m4/Makefile.am.in (Makefile.am): Simplify rule.
24545         Based on a suggestion from Lars Hecking.
24546
24547 1998-11-16  Paul Eggert  <eggert@twinsun.com>
24548
24549         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
24550
24551 1998-11-16  Jim Meyering  <meyering@ascend.com>
24552
24553         * m4/lfs.m4: Double-quote the `uname...` expression.
24554
24555 1998-11-14  Jim Meyering  <meyering@ascend.com>
24556
24557         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
24558         * m4/stat.m4: Likewise.
24559
24560 1998-11-03  Jim Meyering  <meyering@ascend.com>
24561
24562         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
24563         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
24564
24565 1998-10-18  Jim Meyering  <meyering@ascend.com>
24566
24567         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
24568
24569 1998-10-17  Jim Meyering  <meyering@ascend.com>
24570
24571         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
24572         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
24573         calls for those previously hard-coded headers.  Instead, take a new
24574         parameter.
24575         (jm_CHECK_DECLARATIONS): Reflect interface change.
24576         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
24577         (jm_CHECK_DECL_LOCALTIME_R): New macro.
24578
24579         * m4/mktime.m4: Test for spring-forward gap before long-running test.
24580
24581 1998-10-14  Jim Meyering  <meyering@ascend.com>
24582
24583         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
24584         instead of "TZ=America/Vancouver".  From Paul Eggert.
24585
24586 1998-10-11  Jim Meyering  <meyering@ascend.com>
24587
24588         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
24589         This adds a test for a recently added compatibility fix for mktime.c.
24590         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
24591
24592 1998-09-27  Jim Meyering  <meyering@ascend.com>
24593
24594         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
24595
24596         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
24597         ../configure.in, including a change from Gordon Matzigkeit to allow
24598         cross-compiling for the Hurd.
24599
24600         * m4/glibc.m4: New file/macro to test for the GNU C Library
24601         versions 1 and 2.  From Gordon Matzigkeit.
24602         Indent.
24603
24604 1998-09-21  Jim Meyering  <meyering@ascend.com>
24605
24606         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
24607
24608 1998-08-18  Paul Eggert  <eggert@twinsun.com>
24609
24610         Port nanosecond-resolution times to UnixWare 2.1.2 and
24611         pedantic Solaris 2.6.
24612
24613         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
24614         AC_STRUCT_ST_MTIM.
24615         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
24616         Generate name of ns member, instead of just 1 or undef.
24617         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
24618
24619 1998-08-15  Jim Meyering  <meyering@ascend.com>
24620
24621         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
24622         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
24623         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
24624         instead of jm_TYPE_SSIZE_T.
24625
24626 1998-08-12  Jim Meyering  <meyering@ascend.com>
24627
24628         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
24629
24630 1998-08-02  Jim Meyering  <meyering@ascend.com>
24631
24632         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
24633         in acconfig.h manually.
24634
24635 1998-07-31  Paul Eggert  <eggert@twinsun.com>
24636
24637         * m4/st_mtim.m4: New file.
24638
24639 1998-07-28  Jim Meyering  <meyering@ascend.com>
24640
24641         * m4/utimes.m4: Undef stat.
24642
24643 1998-07-25  Jim Meyering  <meyering@ascend.com>
24644
24645         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
24646         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
24647
24648 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
24649
24650         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
24651         uid and gid actually remain unchanged.
24652
24653 1998-07-07  Jim Meyering  <meyering@ascend.com>
24654
24655         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
24656
24657 1998-07-04  Jim Meyering  <meyering@ascend.com>
24658
24659         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
24660         to prove that this macro can be used in packages without regex.c.
24661
24662 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
24663
24664         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
24665         is to be used.
24666
24667 1998-07-03  Jim Meyering  <meyering@ascend.com>
24668
24669         * m4/gettext.m4: Add -lintl if it's found to be necessary.
24670
24671         * m4/gettext.m4: New file -- from gettext-0.10.35.
24672         * m4/lcmessage.m4: Likewise.
24673         * m4/progtest.m4: Likewise.
24674
24675         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
24676         * m4/jm-macros.m4: Require the new macro.
24677
24678 1998-06-29  Jim Meyering  <meyering@ascend.com>
24679
24680         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
24681         for the definition of NGROUPS (used in a system header included
24682         by sys/mount.h).
24683
24684 1998-06-28  Jim Meyering  <meyering@ascend.com>
24685
24686         * m4/ls-mntd-fs.m4: New file.
24687         * m4/fstypename.m4: New file.
24688
24689         * m4/jm-macros.m4: Require the new macro.
24690         * m4/jm-glibc-io.m4: New file.
24691
24692 1998-05-19  Jim Meyering  <meyering@ascend.com>
24693
24694         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
24695         * m4/lchown.m4: New file.
24696
24697         * m4/Makefile.am.in: New file.
24698         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
24699
24700 1998-05-14  Jim Meyering  <meyering@ascend.com>
24701
24702         * m4/Makefile.am (EXTRA_DIST): Add them.
24703         * m4/jm-macros.m4: New file.
24704         * m4/utimbuf.m4: New file.
24705
24706 1998-05-12  Jim Meyering  <meyering@ascend.com>
24707
24708         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
24709
24710 1998-05-11  Jim Meyering  <meyering@ascend.com>
24711
24712         * m4/isc-posix.m4: New file.
24713
24714 1998-05-10  Jim Meyering  <meyering@ascend.com>
24715
24716         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
24717
24718 1998-05-09  Jim Meyering  <meyering@ascend.com>
24719
24720         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
24721         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
24722         with automake.
24723
24724         * m4/ssize_t.m4: New file.
24725         * m4/mktime.m4: Remove file -- the new automake has this now.
24726
24727 1998-04-26  Jim Meyering  <meyering@ascend.com>
24728
24729         * m4/assert.m4: New file.
24730         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
24731
24732 1998-04-05  Jim Meyering  <meyering@ascend.com>
24733
24734         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
24735         (jm_PREREQ): Use it here.
24736
24737 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
24738
24739         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
24740         in acconfig.h.
24741
24742 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
24743
24744         * m4/prereq.m4: New file.
24745         * m4/error.m4: New file.
24746         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
24747
24748 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
24749
24750         * m4/getline.m4: Don't set am_cv_func_working_getline before the
24751         cache-check for the same variable -- that defeated the purpose of
24752         the test; the test program was never run.  This was a problem only
24753         on systems with losing getline functions -- HP-UX 10.20 is one.
24754         Reported by Bjorn Helgaas.
24755
24756 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
24757
24758         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
24759
24760 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
24761
24762         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
24763
24764         * m4/const.m4: New file.  Use an initializer in this declaration
24765         typedef int charset[2]; const charset x;
24766         Reported by Bob Glickstein.
24767
24768 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
24769
24770         * m4/chown.m4: Fix reversed types on -1 args to chown.
24771         From Kaveh Ghazi.
24772
24773 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
24774
24775         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
24776         Add lseek and memchr.
24777
24778         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
24779         T.E.Dickey <dickey@clark.net> said that some older preprocessors
24780         have a 20-character limit on names.
24781
24782 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
24783
24784         * m4/inttypes_h.m4: New file.
24785         * m4/uintmax_t.m4: New file.
24786         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
24787
24788 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
24789   Free Software Foundation, Inc.
24790 Copying and distribution of this file, with or without modification,
24791 are permitted provided the copyright notice and this notice are preserved.