main must set program_name
[pspp] / ChangeLog
1 2007-01-08  Karl Berry  <karl@gnu.org>
2
3         * doc/error.texi: mention that main() fns must set program_name
4         when progname is used.
5
6 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7
8         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
9         WCTYPE_H is empty, for the benefit of builds from non-distclean
10         directories.  Problem reported by Eric Blake in
11         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
12
13 2007-01-08  Bruno Haible  <bruno@clisp.org>
14
15         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
17         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18         PROVIDE_CANONICALIZE_FILENAME_MODE.
19         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20
21 2007-01-08  Bruno Haible  <bruno@clisp.org>
22
23         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
24         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
26         * lib/fts.c: Likewise.
27         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
28
29 2006-12-25  Bruno Haible  <bruno@clisp.org>
30
31         * modules/utf8-ucs4-safe: New file.
32         * lib/utf8-ucs4-safe.h: New file.
33         * lib/unistr/utf8-ucs4-safe.c: New file.
34
35         * modules/utf16-ucs4-safe: New file.
36         * lib/utf16-ucs4-safe.h: New file.
37         * lib/unistr/utf16-ucs4-safe.c: New file.
38
39 2007-01-08  Bruno Haible  <bruno@clisp.org>
40
41         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
42         (Depends-on): Add unitypes.
43         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44         (u8_mbtouc_aux): Move out to separate file.
45         (u8_mbtouc): Use ucs4_t, uint8_t types.
46         * lib/unistr/utf8-ucs4.c: New file.
47
48         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49         (Depends-on): Add unitypes.
50         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51         (u16_mbtouc_aux): Move out to separate file.
52         (u16_mbtouc): Use ucs4_t, uint16_t types.
53         * lib/unistr/utf16-ucs4.c: New file.
54
55         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56         (Depends-on): Add unitypes.
57         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58         (u8_uctomb_aux): Move out to separate file.
59         (u8_uctomb): Use ucs4_t, uint8_t types.
60         * lib/unistr/ucs4-utf8.c: New file.
61
62         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63         (Depends-on): Add unitypes.
64         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65         (u16_uctomb_aux): Move out to separate file.
66         (u16_uctomb): Use ucs4_t, uint16_t types.
67         * lib/unistr/ucs4-utf16.c: New file.
68
69 2007-01-08  Bruno Haible  <bruno@clisp.org>
70
71         Avoid variable names that conflict with those from libtool.
72         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75         library_names_spec to acl_library_names_spec, hardcode_* to
76         acl_hardcode_*.
77         Reported by Ralf Wildenhues.
78
79 2007-01-08  Bruno Haible  <bruno@clisp.org>
80
81         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
82         definition.
83         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
84         definition.
85         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
86         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
87         definition.
88         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
89         definition.
90         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
91         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
92         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
93         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94         definition.
95         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
96         definition.
97         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
98         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
99         GC_USE_<algorithm>.
100         * lib/gc-libgcrypt.c: Likewise.
101         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
102         * modules/gc-arctwo (configure.ac): Likewise.
103         * modules/gc-des (configure.ac): Likewise.
104         * modules/gc-hmac-md5 (configure.ac): Likewise.
105         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106         * modules/gc-md2 (configure.ac): Likewise.
107         * modules/gc-md4 (configure.ac): Likewise.
108         * modules/gc-md5 (configure.ac): Likewise.
109         * modules/gc-random (configure.ac): Likewise.
110         * modules/gc-rijndael (configure.ac): Likewise.
111         * modules/gc-sha1 (configure.ac): Likewise.
112
113 2007-01-08  Bruno Haible  <bruno@clisp.org>
114
115         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
116         macro definition.
117         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
118         definition.
119         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
120         definition.
121         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
122         * modules/fcntl-safer (configure.ac): Likewise.
123         * modules/fopen-safer (configure.ac): Likewise.
124         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
125         GNULIB_FWRITEERROR macro definition.
126
127 2007-01-08  Bruno Haible  <bruno@clisp.org>
128
129         * m4/gnulib-common.m4: New file.
130         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
131         (func_get_filelist): Add m4/gnulib-common.m4.
132
133 2007-01-08  Bruno Haible  <bruno@clisp.org>
134
135         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
136         command.
137
138 2007-01-08  Jim Meyering  <jim@meyering.net>
139
140         Use a more robust test for a "can't happen" condition.
141         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
142         narrowed the st_size value.  Presuming the "can't happen" condition
143         is true, that narrowing could conceivably convert an invalid st_size
144         value into a valid one.  Instead, use a change based on Matthew
145         Woehlke's original patch.
146
147         Slight readability improvement: use an assert-like macro
148         in place of literal "abort ()" uses.
149         * lib/fts.c (fts_assert): Define.
150         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
151         Use this macro instead of a bare 'abort'.
152
153 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
154
155         Don't worry about using IRIX 5.3's wctype.h broken definitions;
156         simply work around them.
157         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
158         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
159         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
160         Don't bother to define as macros, since the standard doesn't require it.
161         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
162         longer worry about IRIX 5.3.
163         (HAVE_WCTYPE_CTMP_BUG): Remove.
164
165 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
166
167         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
168         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
169         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
170         Problems reported by Georg Schwarz for IRIX 5.3.
171
172         * gnulib-tool (autoconf_minversion): Take the maximum version number
173         found, not the minimum.  Problem reported by James Youngman.
174
175 2007-01-03  Karl Berry  <karl@gnu.org>
176
177         * doc/error.texi: new file, explaining interaction with progname.
178         * doc/gnulib.texi: include it.  Update copyright.
179
180 2007-01-03  Simon Josefsson  <simon@josefsson.org>
181
182         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
183         AC_CANONICAL_HOST, to improve autobuild outputs.
184
185 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
186             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
187
188         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
189         sockets, server sockets, and other file descriptors.  Count errors
190         to compute the return value.  Reorder the code a bit to be easier
191         to follow.  Don't set event bits that were not requested (except
192         POLLERR and POLLHUP).
193
194 2007-01-01  Bruno Haible  <bruno@clisp.org>
195
196         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
197
198 2007-01-03  Jim Meyering  <jim@meyering.net>
199
200         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
201
202 2007-01-02  Bruno Haible  <bruno@clisp.org>
203
204         * modules/settime (Include): Require timespec.h.
205         * modules/nanosleep (Include): Likewise.
206
207 2007-01-01  Bruno Haible  <bruno@clisp.org>
208
209         * gnulib-tool (func_emit_copyright_notice): Bump year.
210         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
211
212 2007-01-01  Bruno Haible  <bruno@clisp.org>
213
214         Improve support for OpenBSD.
215         * build-aux/config.rpath (libname_spec): Export.
216         (library_names_spec): New variable. Export.
217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
218         library_names_spec from the config.rpath output. Locate shared library
219         through the name pattern in library_names_spec.
220
221 2007-01-01  Eric Blake  <ebb9@byu.net>
222
223         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
224
225 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
226
227         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
228         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
229         assume the C locale, and avoid an "eval" that could cause trouble.
230         Problem with SORT reported by Bob Proulx.
231
232         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
233         Define.  Trivial patch from Henning Nielsen Lund, originally
234         sent to bug-grep@gnu.org today.
235
236 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
237
238         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
239         struct stat.  Problem reported by Henning Nielsen Lund.
240         * lib/acl.c: Include acl.h first, to check interface.  Don't
241         bother to include sys/types.h and sys/stat.h again.
242
243 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
244
245         Import the following change from libc; problem reported by
246         Sven Verdoolaege.
247
248         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
249
250         [BZ #1373]
251         * lib/argp.h: Remove __NTH for __argp_usage inline function.
252
253 2006-12-28  Jim Meyering  <jim@meyering.net>
254
255         * build-aux/announce-gen: Do not assume that the package
256         builds any of tar.gz, tar.bz2, and .xdelta files.
257         Suggestion from Simon Josefsson.
258
259 2006-12-28  Simon Josefsson  <simon@josefsson.org>
260
261         * modules/announce-gen: New file.
262
263 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
264
265         * lib/mbchar.h: Just include <wctype.h>; the wctype module
266         handles its gotchas now.
267         * lib/mbswidth.c: Likewise.
268         * lib/wcwidth.h: Likewise.
269         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
270         and iswcntrl; the wctype module does this stuff now.
271         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
273         * modules/mbchar (Depends-on): Add wctype.
274         * modules/mbswidth (Depends-on): Likewise.
275         * modules/wcwidth (Depends-on): Likewise.
276
277 2006-12-27  Eric Blake  <ebb9@byu.net>
278
279         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
280         module uses more than what <wctype.h> is required to provide.
281
282 2006-12-26  Eric Blake  <ebb9@byu.net>
283
284         * gnulib-tool (sed_extract_prog): Avoid space-tab.
285
286 2006-12-26  Eric Blake  <ebb9@byu.net>
287
288         * modules/absolute-header: New module.
289         * modules/fcntl (Depends-on): Depend on it.
290         * modules/inttypes (Depends-on): Likewise.
291         * modules/stdint (Depends-on): Likewise.
292         * modules/sys_stat (Depends-on): Likewise.
293         * modules/wctype (Depends-on): Likewise.
294         * MODULES.html.sh (Support for building libraries and
295         executables): Document it.
296
297 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
298
299         * gnulib-tool (SED): Remove, undoing previous change.
300         The problem was that it broke coreutils on Solaris, because
301         "sed --posix" leaked into a makefile.
302         (sed): New alias, if 'alias' and GNU sed.
303
304 2006-12-24  Jim Meyering  <jim@meyering.net>
305
306         Work around an fchownat bug in glibc-2.4:
307         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
308         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
309         in spite of the -P option.
310         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
311         New macros.
312         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
313         * modules/openat (Files): Add lib/fchownat.c.
314         * lib/openat.c (fchownat): Don't define here.  Move to...
315         * lib/fchownat.c: ...this new file.
316
317 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
318
319         Fix bug reported by Bruno Haible in
320         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
321         where quotearg.c didn't compile on Mac OS X 10.2 because it
322         lacks <wchar.h> and wint_t.
323         * lib/wctype_.h (__wctype_wint_t): New type.
324         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
325         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
326         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
327         Arg is now of type __wctype_wint_t, not wint_t.
328         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
329         substitute HAVE_WINT_T.
330         * modules/wctype (Files): Add m4/wint_t.m4.
331         (wctype.h): Substitute HAVE_WINT_T.
332
333 2006-12-23  Bruno Haible  <bruno@clisp.org>
334
335         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
336
337 2006-12-23  Bruno Haible  <bruno@clisp.org>
338
339         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
340         S_ISLNK.
341         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
342         mingw.
343
344 2006-12-22  Bruno Haible  <bruno@clisp.org>
345
346         * lib/copy-file.c: Include acl.h.
347         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
348         Close the file descriptors only after being done with copy_acl.
349         * modules/copy-file (Depends-on): Add acl.
350
351 2006-12-22  Bruno Haible  <bruno@clisp.org>
352
353         * gnulib-tool (SED): New variable.
354         Use $SED instead of sed everywhere.
355
356 2006-12-22  Bruno Haible  <bruno@clisp.org>
357
358         * modules/no-c++: New file.
359         * m4/no-c++.m4: New file.
360         * MODULES.html.sh (Support for building libraries and executables):
361         Add no-c++.
362
363 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
364
365         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
366         Include <limits.h>, and use its INT_MAX to rewrite the
367         j loop so that it does not overflow 'int'.  Problem reported by
368         Ralf Wildenhues in
369         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
370         Play it safe by shifting left by 1 rather than multiplying by 2,
371         as GCC is less likely to optimize this away when the value
372         is signed (when it assumes overflow leads to undefined behavior).
373         Also, don't assume time_t uses two's complement.
374
375 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
376
377         * MODULES.html.sh: New module wctype.
378         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
379         * lib/fnmatch.c: Don't bother to include <wchar.h> before
380         <wctype.h>, since the new wctype module should fix this.
381         * lib/quotearg.c: Include <wctype.h> unconditionally, since
382         the wctype module should arrange for it.
383         * lib/regex_internal.h: Likewise.
384         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
385         since the wctype module should handle this now.
386         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
387         * modules/fnmatch (Depends-on): Add wctype.
388         * modules/quotearg (Depends-on): Likewise.
389         * modules/regex (Depends-on): Likewise.
390
391 2006-12-19  Bruno Haible  <bruno@clisp.org>
392
393         * lib/strdup.h [C++]: Wrap definitions in extern "C".
394         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
395
396 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
397
398         * modules/savewd (Depends-on): Fix dependency on fcntl.
399
400 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
401
402         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
403         conforms to C99, rather than relying on the user's environment
404         setting of STDINT_H.
405
406 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
407         and Eric Blake  <ebb9@byu.net>
408
409         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
410         This is more consistent with the other defines here.
411         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
412         Port to z/OS.  Problem reported by Paul Gilmartin.
413         Change local vars to use gl_ prefix rather than ac_.
414         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
415         with other defines.
416         * modules/double-slash-root: New module.
417         * modules/dirname (Files): Remove m4/double-slash-root.m4.
418         (Depends-on): Add double-slash-root.
419         * MODULES.html.sh (File system functions): Mention new module.
420
421 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
422
423         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
424         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
425         This is for the benefit of gzip, which doesn't do i18n.
426
427 2006-12-12  Jim Meyering  <jim@meyering.net>
428
429         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
430         Reported by Andreas Schwab <schwab@suse.de>.
431
432 2006-12-12  Bruno Haible  <bruno@clisp.org>
433
434         Merge these changes.
435         2006-09-05  Bruno Haible  <bruno@clisp.org>
436         * lib/iconvme.c (iconv_string): No need to save and restore errno when
437         iconv_alloc succeeded.
438         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
439         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
440         test for " && dest " at the end - dest is always != NULL there. Call
441         iconv with 4xNULL arguments initially, to reset the state. Call iconv
442         with 2xNULL arguments, also to flush the state storage. Handle the
443         IRIX iconv behaviour. Realloc the final result, to throw away unused
444         memory.
445
446 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
447
448         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
449         and fchmodat unconditionally, since glibc 2.4 has them.
450         Problem reported by Arkadiusz Miskiewicz.
451
452 2006-12-10  Bruno Haible  <bruno@clisp.org>
453
454         * gnulib-tool (func_import): Show the include files only for those
455         modules that are copied and specified.
456         Reported by Karl Berry.
457
458 2006-12-08  Jim Meyering  <jim@meyering.net>
459
460         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
461         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
462
463         * build-aux/announce-gen: Add two new options, both optional:
464         --bootstrap-tools=TOOL_LIST
465               a comma-separated list of tools, e.g.,
466               autoconf,automake,bison,gnulib
467         --gnulib-snapshot-date=DATE
468               if gnulib is in the bootstrap tool list,
469               then report this as the snapshot date.
470               If not specified, use the current date/time.
471               If you specify a date here, be sure it's UTC.
472
473 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
474
475         * tests/test-argp-2.sh: Fix test to match actual output.
476         (func_compare): Fix sed script to be portable.
477
478 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
479
480         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
481         workaround for this case.  It is not autoconfigured now; offhand
482         it's hard to see how to autoconfigure it.
483
484 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
485
486         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
487         a directory that is about to be chowned.  Such a directory's
488         initial file permissions should permit the owner only and this
489         should not be changed until after the chown, since the group and
490         other bits would be incorrect if they granted permission before
491         the chown.
492
493         Fix porting problem for iswctype reported by Georg Schwarz in:
494         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
495         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
496         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
497         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
498         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
499
500 2006-12-03  Jim Meyering  <jim@meyering.net>
501
502         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
503         p->fts_statp may not yet be defined.
504         (fts_read): Instead, set it in the caller, once p->fts_statp is
505         sure to be defined, and corresponds to a top-level directory.
506         This bug made du -x fail.  Here's the coreutils test case:
507         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
508         Reported by Mike Frysinger.
509
510 2006-12-01  Jim Meyering  <jim@meyering.net>
511
512         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
513         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
514         Reported by Simon Josefsson.
515
516 2006-11-30  Jim Meyering  <jim@meyering.net>
517
518         * m4/warning.m4: Use the all-permissive copyright notice
519         recommended by RMS (rather than LGPL).
520         * m4/vararrays.m4: Likewise.
521         * m4/flexmember.m4: Likewise.
522
523 2006-11-29  Bruno Haible  <bruno@clisp.org>
524
525         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
526         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
527         using +=.
528         Reported by Simon Josefsson <simon@josefsson.org>.
529
530 2006-11-28  James Youngman <jay@gnu.org>
531
532         * README: Advise users that they might find the bug-gnulib@gnu.org
533         and autotools-announce@gnu.org mailing lists useful.
534
535 2006-11-28  Bruno Haible  <bruno@clisp.org>
536
537         * m4/ptrdiff_max.m4: Remove file.
538
539 2006-11-21  Bruno Haible  <bruno@clisp.org>
540
541         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
542         _AC_COMPUTE_INT.
543         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
544         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
545         _AC_COMPUTE_INT.
546         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
547         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
548         _AC_COMPUTE_INT.
549         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
550
551 2006-11-28  Jim Meyering  <jim@meyering.net>
552
553         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
554         warning from "gcc -Wshadow" about shadowing the builtin.
555
556 2006-11-27  Bruno Haible  <bruno@clisp.org>
557
558         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
559         _AC_COMPUTE_INT.
560         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
561
562 2006-11-27  Bruno Haible  <bruno@clisp.org>
563             Paul Eggert  <eggert@cs.ucla.edu>
564
565         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
566
567 2006-11-26  Bruno Haible  <bruno@clisp.org>
568
569         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
570         noinst_LTLIBRARIES.
571
572 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
573             Bruno Haible  <bruno@clisp.org>
574
575         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
576         if compiling with "gcc -ansi".
577
578 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
579
580         Fix some incompatibilities with gcc -ansi -pedantic.
581         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
582         if compiling pedantically with GCC, unless it's C99 or later.
583         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
584         it mishandles gcc -ansi -pedantic as well.
585         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
586         if gcc -pedantic.
587         * lib/regexec.c (check_node_accept_bytes): Don't use auto
588         initializers for struct if -pedantic, unless it's C99 or later.
589
590 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
591
592         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
593         Don't close an fd more than once. Identical atimes indicate
594         success, not failure.
595
596 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
597
598         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
599
600 2006-11-23  Jim Meyering  <jim@meyering.net>
601
602         * build-aux/announce-gen: New file.  From coreutils.
603
604 2006-11-22  Jim Meyering  <jim@meyering.net>
605
606         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
607         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
608         (fts_read): Use a temporary to narrow the overused st_size member
609         before using it in a switch statement.  Reported by Matthew Woehlke.
610
611         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
612         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
613
614 2006-11-20  Bruno Haible  <bruno@clisp.org>
615
616         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
617         changequote instead of pairs of brackets.
618         Reported by Andreas Schwab <schwab@suse.de>.
619
620 2006-11-21  Jim Meyering  <jim@meyering.net>
621
622         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
623         so as to remain compatible with older compilers.
624         Patch from Michael Deutschmann.
625
626 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
627
628         * MODULES.html.sh (File system functions): Add openat.
629
630         * lib/openat.h (rpl_fstatat): New macro, if
631         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
632         (fstatat): Define to rpl_fstatat under the same conditions,
633         unless COMPILING_FSTATAT.
634         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
635         seems to have the bug.
636         * lib/fstatat.c: New file.
637         * modules/openat (Files): Add it.
638
639 2006-11-20  Bruno Haible  <bruno@clisp.org>
640
641         * Makefile: New file.
642
643 2006-11-20  Jim Meyering  <jim@meyering.net>
644
645         The beginnings of syntax-related checks for gnulib.
646         * lib/Makefile: New file.
647         * lib/t-idcache: New script.  Ensure that the two halves of
648         idcache.c stay in sync.
649
650         * lib/idcache.c: Adjust comments in user- and group- portions to
651         be more accurate, and to be consistent with one another.
652
653 2006-11-20  Jim Meyering  <jim@meyering.net>
654
655         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
656         continue using the flexible array member (thus, this module performs
657         half as many malloc calls), with the addition that...
658         (getgroup, getuser): Consistently record a non-match via an empty
659         "name" string, and map an empty string match to a NULL return value.
660         * modules/idcache (Depends-on): Re-add flexmember.
661
662         * lib/idcache.c (getuser): Remove all uses of the register keyword.
663         (getuidbyname, getgroup, getgidbyname): Likewise.
664
665         Use cleaner syntax: NULL rather than 0.
666         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
667
668 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
669
670         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
671         It mishandled the case where the group was missing.
672         Problem reported by Greg Schafer.
673         * modules/idcache: Likewise.
674
675 2006-11-18  Jim Meyering  <jim@meyering.net>
676
677         * check-module (%exempt_header): Add exception for some
678         conditionally-included headers.
679
680         * modules/i-ring (Depends-on): Add verify.
681         (License): Change to LGPL.
682
683 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
684
685         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
686         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
687         and inttostr.h.  Use snprintf rather than uinttostr, so that
688         LGPLed code doesn't depend on GPLed.
689
690 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
691
692         * modules/inline (License): Change from GPL to LGPL.
693
694 2006-11-17  Jim Meyering  <jim@meyering.net>
695
696         * modules/d-type (License): Switch to LGPL.
697
698 2006-11-15  Bruno Haible  <bruno@clisp.org>
699
700         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
701
702 2006-11-15  Eric Blake  <ebb9@byu.net>
703
704         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
705         the module dependency.
706
707 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
708             Bruno Haible  <bruno@clisp.org>
709
710         * gnulib-tool (func_create_testdir): Add license consistency check.
711
712 2006-11-15  Eric Blake  <ebb9@byu.net>
713
714         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
715         random "(cached)" in configure output.
716
717 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
718
719         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
720         test for conforming inttypes.h is both announced and cached.
721
722         * MODULES.html.sh (seen_modules, seen_files): New variables.
723         (func_module): Rewrite to use a few less gnulib-tool and sed
724         invocations.  Avoid a couple of quadratic algorithms for ...
725         (missed_modules, missed_files): ... these, with ...
726         (func_append, func_tmpdir): ... these new functions, from
727         gnulib-tool.  Analogously, install traps for cleanup.
728
729         * tests/test-gc.c (main): Remove unused variables.
730         * tests/test-read-file.c: Include stdlib.h, for 'free'.
731
732 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
733
734         * modules/inttostr (License): Change to LGPL.
735
736 2006-11-14  Eric Blake  <ebb9@byu.net>
737
738         * modules/tempname (License): Change to LGPL.
739
740 2006-11-14  Eric Blake  <ebb9@byu.net>
741
742         * doc/functions.texi (Function Portability): *printf functions on
743         Cygwin now understand all POSIX size specifiers.
744
745 2006-11-14  Bruno Haible  <bruno@clisp.org>
746
747         * modules/c-ctype (License): Change to LGPL.
748
749 2006-11-12  Bruno Haible  <bruno@clisp.org>
750
751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
752         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
753         for GNOME libraries, for which the include files are installed in
754         subdirectories of $prefix/include.
755
756 2006-11-12  Bruno Haible  <bruno@clisp.org>
757
758         * m4/lib-link.m4: Require at least autoconf-2.54.
759         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
760         name to underscores for the --with option.
761
762 2006-11-13  Bruno Haible  <bruno@clisp.org>
763
764         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
765         the tests directory.
766         Reported by Ralf Wildenhues.
767
768 2006-11-13  Bruno Haible  <bruno@clisp.org>
769
770         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
771         (func_emit_initmacro_end): Undo the override here.
772         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
773         Works around the famous automake error in coreutils.
774
775 2006-11-13  Eric Blake  <ebb9@byu.net>
776
777         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
778         element, not its node.
779
780 2006-11-12  Bruno Haible  <bruno@clisp.org>
781
782         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
783         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
784
785 2006-11-12  Bruno Haible  <bruno@clisp.org>
786
787         * gnulib-tool: New option --local-symlink.
788         (func_usage): Document it.
789         (lsymbolic): New variable.
790         (func_import, func_create_testdir): If --symlink was not specified,
791         test whether --local-symlink was specified and the file comes from
792         the local_gnulib_dir.
793
794 2006-11-12  Bruno Haible  <bruno@clisp.org>
795
796         * gnulib-tool (func_ln): New function.
797         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
798
799 2006-11-12  Bruno Haible  <bruno@clisp.org>
800
801         Finish support for source files in subdirectories.
802         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
803         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
804         AUTOMAKE_OPTIONS.
805         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
806
807 2006-11-12  Bruno Haible  <bruno@clisp.org>
808
809         * gnulib-tool (func_get_automake_snippet): Synthesize also an
810         EXTRA_lib_SOURCES augmentation.
811         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
812
813 2006-11-12  Jim Meyering  <jim@meyering.net>
814
815         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
816         file descriptors.  This also averts a failure on systems with
817         native openat support when a traversed directory lacks "x" access.
818         * lib/fts_.h: Include "i-ring.h"
819         (struct FTS) [fts_fd_ring]: New member.
820         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
821         (FCHDIR): Add parentheses.
822         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
823         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
824         When descending, rather than simply closing the previous
825         fts_cwd_fd value, push that file descriptor onto the ring.
826         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
827         (fts_open): Initialize the new fd_ring member.
828         (fts_close): Clear the ring.
829         (fts_safe_changedir): When possible, use our new fd_ring to skip
830         the diropen and fstat and dev/ino comparison that would normally
831         accompany a virtual `chdir ("..")'.
832
833         * modules/fts (Depends-on): Add i-ring.
834         * modules/i-ring: New module.
835         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
836         * m4/i-ring.m4: New file.
837
838 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
839
840         * gnulib-tool (func_create_testdir): Fix replacement of
841         `build-aux' in configure.ac.  Run autotools in gltests
842         subdirectory.
843         (func_create_testdir, func_create_megatestdir, test): There is
844         no need for '--force' in most autotool invocations in a new
845         tree.  Actually fail the whole test if any of the tools, or the
846         configure or make stages fail.
847
848         Sync from Automake.
849         * build-aux/gnupload: Revert last change.  Add pointer to upload
850         instructions of the GNU Maintenance Instructions.
851         Suggestion by Karl Berry.
852
853 2006-11-10  Jim Meyering  <jim@meyering.net>
854
855         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
856
857 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
858
859         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
860         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
861         (bind_textdomain_codeset) [! ENABLE_NLS]:
862         Evaluate all the arguments.  That way, callers get compatible behavior
863         if the arguments have side effects.  Also, it avoids some GCC
864         diagnostics in some cases; Joel E. Denny reported problems when Bison
865         was configured with --enable-gcc-warnigs.
866
867 2006-11-10  Jim Meyering  <jim@meyering.net>
868
869         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
870         relevant options in CFLAGS (like -O, -fno-inline) are taken into
871         account.
872
873 2006-11-10  Jim Meyering  <jim@meyering.net>
874
875         * modules/inline: New file/module.
876         * modules/xalloc (Files): Remove m4/inline.m4.
877         (Depends-on): Add inline, instead.
878         * modules/oset: Likewise.
879         * modules/list: Likewise.
880
881 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
882
883         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
884         Problem reported by Matthew Woehlke.
885
886 2006-11-09  Bruno Haible  <bruno@clisp.org>
887
888         * lib/tempname.c (gen_tempname): Remove variant that invokes
889         __gen_tempname.
890         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
891         __gen_tempname.
892
893 2006-11-08  Bruno Haible  <bruno@clisp.org>
894
895         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
896         to 'yes' instead of 'cross-compiling'.
897
898 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
899
900         * lib/quotearg.h (quotearg_free): New decl.
901         * lib/quotearg.c (quotearg_free): New function.
902         (slot0, nslots, slotvec0, slotvec):
903         Now file-scope so that quotearg_free can get at them.
904
905 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
906
907         Sync from Automake.
908         * build-aux/gnupload: Add missing 'gnu' to example URL.
909         Report by Karl Berry.
910
911 2006-11-08  Bruno Haible  <bruno@clisp.org>
912
913         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
914         Suggested by Paul Eggert.
915
916 2006-11-08  Jim Meyering  <jim@meyering.net>
917
918         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
919         It's already included if !_LIBC.
920         (fts_safe_changedir): Add a comment.
921
922 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
923
924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
925         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
926         Matthew Woehlke.
927
928         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
929         definitions up, to avoid colliding with change below.
930         (static_inline) [HAVE_INLINE]: New macro.
931         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
932         Provide extern decls when !HAVE_INLINE.  Do not define unless
933         static_inline is defined, either by us or by xmalloc.c.  Use
934         static_inline rather than static inline.
935         (XCALLOC): Optimize sizeof(T) = 1 case.
936         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
937
938 2006-11-07  Bruno Haible  <bruno@clisp.org>
939
940         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
941         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
942         AC_C_INLINE.
943         * modules/xalloc (Files): Add m4/inline.m4.
944
945 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
946
947         * README: Fix typo.
948         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
949         (Miscellanous Notes): ...from this.
950
951 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
952
953         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
954         Mention that offsetof should be used instead of sizeof.
955         From Bruno Haible.
956
957 2006-11-07  Bruno Haible  <bruno@clisp.org>
958
959         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
960
961 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
962
963         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
964         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
965         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
966         (gl_tree_add_before, gl_tree_add_after):
967         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
968         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
969         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
970         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
971         (gl_linked_add_after, gl_linked_add_at): Likewise.
972         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
973         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
974         (gl_tree_add_before, gl_tree_add_after): Likewise.
975         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
976         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
977         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
978
979 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
980
981         * lib/gl_oset.h: Use C comment style, not C++ comment style.
982
983 2006-11-06  Bruno Haible  <bruno@clisp.org>
984
985         * m4/inline.m4: New file.
986         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
987         * modules/list (Files): Add m4/inline.m4.
988         * modules/oset (Files): Likewise.
989
990 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
991
992         * lib/idcache.c: Include <stddef.h>, for offsetof.
993         (struct userid.name): Change from char * to a flexible array member.
994         All uses changed.
995         * modules/idcache (Depends-on): Add flexmember.
996
997         * MODULES.html.sh (Core language properties): New module flexmember.
998         * modules/flexmember, m4/flexmember.m4: New files.
999
1000         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
1001         inline functions that are identical with the old xnmalloc_inline,
1002         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
1003         that we can avoid some unnecessary integer multiplications and
1004         divisions in the common case where the element size is known at
1005         compile time.
1006         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
1007         needed.
1008         (xnboundedmalloc): Remove.
1009         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
1010         arguments, for consistency with rest of this header.
1011         (xcharalloc): Rewrite using XNMALLOC.
1012         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
1013         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
1014         versions have been moved to lib/xalloc.h and renamed to be the
1015         non-*_inline versions.
1016         (xmalloc, xrealloc): Implement without reference to the xnmalloc
1017         and xnrealloc functions, since those functions are now inline and
1018         now call us.
1019         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
1020         renaming described above.
1021         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
1022         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
1023         captures the dependency in AC_C_INLINE.
1024
1025         New module canonicalize-lgpl, proposed by Charles Wilson in
1026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
1027         with a few small changes afterwards.
1028         * MODULES.html.sh (File system functions): New module
1029         canonicalize-lgpl.
1030         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
1031         and canonicalize_file_name.
1032         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
1033         * modules/canonicalize-lgpl: New files.
1034
1035 2006-11-05  Bruno Haible  <bruno@clisp.org>
1036
1037         * gnulib-tool (func_import, func_create_testdir): Create directories
1038         also for files in subdirectories of lib/.
1039
1040 2006-11-05  Bruno Haible  <bruno@clisp.org>
1041
1042         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
1043         ANSI C compliant.
1044
1045 2006-11-03  Bruno Haible  <bruno@clisp.org>
1046
1047         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
1048         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
1049         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
1050         (xnboundedmalloc): New inline function.
1051         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
1052         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
1053         xmalloc.
1054         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
1055         xmalloc.
1056         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
1057         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
1058         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
1059         xmalloc.
1060         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1061         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
1062         xmalloc.
1063         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
1064         gl_tree_add_after): Use XMALLOC instead of xmalloc.
1065         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
1066         xmalloc.
1067         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1068         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
1069         gl_tree_add_after): Use XMALLOC instead of xmalloc.
1070         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
1071         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
1072         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
1073         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
1074
1075 2006-11-03  Bruno Haible  <bruno@clisp.org>
1076
1077         * lib/c-ctype.h [C++]: Define functions without name mangling.
1078         * lib/fwriteerror.h [C++]: Likewise.
1079         * lib/gcd.h [C++]: Likewise.
1080         * lib/linebreak.h [C++]: Likewise.
1081
1082 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
1085         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
1086         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
1087         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1088         Check for functions and headers just once.
1089         Check for declaration of canonicalize_file_name.
1090         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
1091
1092 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1093
1094         * gnulib-tool (func_import): Fix typo in actioncmd.
1095
1096 2006-11-02  Bruno Haible  <bruno@clisp.org>
1097
1098         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
1099         newline sequence in the Makefile.am snippet as a space, like "make"
1100         does.
1101         Reported by Roger Persson <perrog@gmail.com>.
1102
1103 2006-11-01  Bruno Haible  <bruno@clisp.org>
1104
1105         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
1106         already declared in <string.h>.
1107         * lib/strcase.h (strncasecmp): Don't declare it if yes.
1108
1109 2006-11-01  Bruno Haible  <bruno@clisp.org>
1110
1111         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
1112         * lib/strcase.h: Include <string.h>.
1113         (strcasecmp): Define to rpl_strcasecmp here.
1114
1115 2006-11-01  Bruno Haible  <bruno@clisp.org>
1116
1117         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
1118
1119 2006-11-01  Eric Blake  <ebb9@byu.net>
1120
1121         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
1122
1123         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
1124
1125 2006-10-29  Bruno Haible  <bruno@clisp.org>
1126
1127         Make it compile in C++ mode.
1128         * lib/full-write.c (full_rw): Add a cast.
1129
1130 2006-11-01  Bruno Haible  <bruno@clisp.org>
1131
1132         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
1133         be POSIX compliant.
1134         Reported by Roger Persson <perrog@gmail.com>.
1135
1136 2006-11-01  Eric Blake  <ebb9@byu.net>
1137
1138         * lib/getopt_.h: Fix comments.
1139
1140 2006-10-31  Eric Blake  <ebb9@byu.net>
1141
1142         * modules/tmpdir (Depends-on): Add sys_stat.
1143         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
1144         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
1145         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
1146         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
1147         tempname.
1148
1149 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1150
1151         Avoid some C++ diagnostics reported by Bruno Haible.
1152         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
1153         xmalloc.
1154         (quotearg_alloc): Use xcharalloc rather than xmalloc.
1155         (struct slotvec): Move to top level.
1156         (quotearg_n_options): Rewrite to avoid xmalloc.
1157         * lib/xalloc.h (xcharalloc): New function.
1158         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
1159         [defined __cplusplus]: Add function template that provides result
1160         type propagation.  This part of the change is from Bruno Haible.
1161
1162 2006-10-29  Bruno Haible  <bruno@clisp.org>
1163
1164         Make it compile in C++ mode.
1165         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
1166         * lib/strnlen1.c (strnlen1): Cast memchr result.
1167         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
1168         * lib/clean-temp.c (string_equals, string_hash): Add casts.
1169         (create_temp_dir): Rename local variable 'template'.
1170         (compile_csharp_using_sscli): Add cast.
1171         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
1172         * lib/findprog.c (find_in_path): Likewise.
1173         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
1174         * lib/wait-process.c (register_slave_subprocess): Likewise.
1175
1176 2006-10-22  Bruno Haible  <bruno@clisp.org>
1177
1178         * modules/tsearch: New file.
1179         * lib/tsearch.h: New file.
1180         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
1181         * m4/tsearch.m4: New file.
1182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
1183
1184 2006-10-29  Eric Blake  <ebb9@byu.net>
1185
1186         * lib/arcfour.c: Assume config.h.
1187         * lib/arctwo.c: Likewise.
1188         * lib/base64.c: Likewise.
1189         * lib/check-version.c: Likewise.
1190         * lib/crc.c: Likewise.
1191         * lib/des.c: Likewise.
1192         * lib/gc-gnulib.c: Likewise.
1193         * lib/gc-libgcrypt.c: Likewise.
1194         * lib/gc-pbkdf2-sha1.c: Likewise.
1195         * lib/getaddrinfo.c: Likewise.
1196         * lib/getdelim.c: Likewise.
1197         * lib/getline.c: Likewise.
1198         * lib/hmac-md5.c: Likewise.
1199         * lib/hmac-sha1.c: Likewise.
1200         * lib/iconvme.c: Likewise.
1201         * lib/md2.c: Likewise.
1202         * lib/md4.c: Likewise.
1203         * lib/memxor.c: Likewise.
1204         * lib/read-file.c: Likewise.
1205         * lib/readline.c: Likewise.
1206         * lib/rijndael-alg-fst.c: Likewise.
1207         * lib/rijndael-api-fst.c: Likewise.
1208         * lib/xgetdomainname.c: Likewise.
1209
1210 2006-10-28  Eric Blake  <ebb9@byu.net>
1211
1212         * lib/xstrndup.c: Assume config.h.
1213
1214 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1215
1216         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
1217         stat-macros.h is now for our own macros, whereas stat_h is for
1218         macros in the <sys/stat.h> name space.
1219         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
1220         (STAT_MACROS_H): Remove.
1221         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
1222         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
1223         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
1224         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
1225         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
1226         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
1227         Move these macros to ...
1228         * lib/stat_.h: here.  Don't include stat-macros.h.
1229         * lib/canonicalize.c: Don't include stat-macros.h.
1230         * lib/chown.c: Likewise.
1231         * lib/euidaccess.c: Likewise.
1232         * lib/file-type.c: Likewise.
1233         * lib/filemode.c: Likewise.
1234         * lib/glob.c: Likewise.
1235         * lib/isapipe.c: Likewise.
1236         * lib/lchown.c: Likewise.
1237         * lib/lstat.c: Likewise.
1238         * lib/mkdir-p.c: Likewise.
1239         * lib/rmdir.c: Likewise.
1240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
1241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
1242         unless mkdir isn't declared, to speed up 'configure'.
1243         Always create sys/stat.h, since it's unlikely any real sys/stat.h
1244         would define all the S_* symbols.
1245         * modules/canonicalize (Depends-on):
1246         Depend on sys_stat, not stat-macros.
1247         * modules/chown: Likewise.
1248         * modules/euidaccess: Likewise.
1249         * modules/filemode: Likewise.
1250         * modules/file-type: Likewise.
1251         * modules/glob: Likewise.
1252         * modules/isapipe: Likewise.
1253         * modules/lchown: Likewise.
1254         * modules/lstat: Likewise.
1255         * modules/mkancesdirs: Likewise.
1256         * modules/rmdir: Likewise.
1257         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
1258         * modules/modechange: Likewise.
1259         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
1260         (configure.ac): Remove gl_STAT_MACROS.
1261         * modules/sys_stat (Depends-on): Remove stat-macros.
1262
1263 2006-10-27  Bruno Haible  <bruno@clisp.org>
1264
1265         * m4/signed.m4: Remove file.
1266         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
1267         invocation.
1268         * modules/vasnprintf (Files): Remove m4/signed.m4.
1269
1270 2006-10-27  Bruno Haible  <bruno@clisp.org>
1271
1272         Update to GNU gettext 0.16.
1273         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
1274         m4/inttypes-h.m4, m4/signed.m4.
1275         * m4/gettext.m4: Update to GNU gettext 0.16.
1276         * m4/intl.m4: New file, from GNU gettext.
1277         * m4/intldir.m4: New file, from GNU gettext.
1278         * config/srclist.txt: Update
1279
1280 2006-10-27  Eric Blake  <ebb9@byu.net>
1281
1282         * MODULES.html.sh: Document tempname.
1283         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
1284         dependencies.
1285         (Files): Move lib/tempname.c...
1286         * modules/tempname: ...to this new module.
1287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
1288         (gl_PREREQ_TEMPNAME): Move...
1289         * m4/tempname.m4: ...to this new file.
1290         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
1291         * modules/sys_stat (Depends-on): Add stat-macros.
1292         * lib/stat_.h (includes): Pick up stat macros.
1293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
1294         if stat macros are broken.
1295         * lib/tempname.c (includes): No need to include "stat-macros.h".
1296         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
1297         (direxists, __path_search) [!_LIBC]: Don't compile these in
1298         gnulib; the tmpdir module covers that.
1299         * lib/tempname.h: New file.
1300
1301 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1302
1303         * COPYING: Explain how gnulib-tool converts licence headers.
1304         Almost all wording by Eric Blake.
1305
1306 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1307
1308         * lib/mbchar.h (is_basic_table): Make read-only.
1309         * lib/mbchar.c (is_basic_table): Likewise.
1310         Reported by John Darrington.
1311
1312 2006-10-25  Bruno Haible  <bruno@clisp.org>
1313
1314         * lib/progname.h (set_program_name): Undefine before defining.
1315
1316 2006-10-25  Bruno Haible  <bruno@clisp.org>
1317
1318         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
1319         false for non-gcc C++ compilers.
1320         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1321
1322 2006-10-24  Bruno Haible  <bruno@clisp.org>
1323
1324         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
1325         iconv implementations like Irix iconv.
1326
1327 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         * modules/vararrays: New file.
1330         * m4/vararrays.m4: New file, taken from diffutils.
1331         * MODULES.html.sh: New module vararrays.
1332
1333 2006-10-24  Karl Berry  <karl@gnu.org>
1334
1335         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
1336         Don't call GNU Unix.
1337
1338 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1339
1340         * users.txt: Add Libtool.
1341
1342         Sync from Libtool:
1343
1344         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1345
1346         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
1347         to gnulib's policy of including config.h unconditionally.
1348
1349 2006-10-24  Bruno Haible  <bruno@clisp.org>
1350
1351         * modules/wcwidth (Files): Add m4/wint_t.m4.
1352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
1353         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
1354
1355 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1356
1357         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
1358         to pacify GCC with some -W flags enabled.  Problem reported by
1359         Bruno Haible.
1360
1361 2006-10-24  Jim Meyering  <jim@meyering.net>
1362
1363         * MODULES.html.sh: Remove uinttostr.  It's not a module.
1364         Reported by Karl Berry.
1365
1366 2006-10-23  Bruno Haible  <bruno@clisp.org>
1367
1368         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
1369
1370 2006-10-24  Bruno Haible  <bruno@clisp.org>
1371
1372         * lib/gl_list.h: Use C comment style, not C++ comment style.
1373
1374 2006-10-23  Eric Blake  <ebb9@byu.net>
1375
1376         * lib/getaddrinfo.c (includes): Add missing include.
1377
1378 2006-10-23  Bruno Haible  <bruno@clisp.org>
1379             Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         Ability to rename obstack_free.
1382         * lib/obstack.h (__obstack_free): New macro. Declare instead of
1383         obstack_free.
1384         (obstack_free): Invoke the __obstack_free macro.
1385         * lib/obstack.c (obstack_free): Use __obstack_free macro.
1386
1387 2006-10-23  Bruno Haible  <bruno@clisp.org>
1388             Paul Eggert  <eggert@cs.ucla.edu>
1389
1390         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
1391         __argc, __argv from the declaration. (They are defined as macros on
1392         mingw.)
1393
1394 2006-10-22  Bruno Haible  <bruno@clisp.org>
1395
1396         * doc/gnulib-intro.texi: New file.
1397         * doc/gnulib.texi: Include it.
1398
1399 2006-10-21  Bruno Haible  <bruno@clisp.org>
1400
1401         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
1402         "Introduction", "Miscellanous Notes", "Particular Modules".
1403
1404 2006-10-21  Bruno Haible  <bruno@clisp.org>
1405
1406         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1407         Change mostlyclean-local rule to avoid sh syntax error from bash
1408         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
1409
1410 2006-10-23  Jim Meyering  <jim@meyering.net>
1411
1412         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
1413         in place of snprintf.
1414
1415         * modules/inttostr (Files): Add lib/uinttostr.c.
1416         * lib/uinttostr.c (inttostr): New file/function.
1417         * lib/inttostr.h (uinttostr): Declare.
1418         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
1419         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
1420         Add uinttostr.
1421         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
1422
1423 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1424
1425         * lib/canonicalize.c (ELOOP): Define if not already defined.
1426         Problem reported by Bruno Haible in
1427         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
1428
1429 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1430
1431         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
1432         Problem reported by Perry Smith and Ville Laurikari.
1433
1434         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
1435         uses.
1436
1437 2006-10-19  Bruno Haible  <bruno@clisp.org>
1438
1439         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
1440         for mingw.
1441
1442 2006-10-19  Bruno Haible  <bruno@clisp.org>
1443
1444         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
1445         Needed for mingw.
1446
1447 2006-10-19  Bruno Haible  <bruno@clisp.org>
1448
1449         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
1450
1451 2006-10-19  Bruno Haible  <bruno@clisp.org>
1452
1453         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
1454         it.
1455
1456 2006-10-19  Bruno Haible  <bruno@clisp.org>
1457
1458         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
1459         invocation.
1460
1461 2006-10-19  Bruno Haible  <bruno@clisp.org>
1462
1463         * gnulib-tool (func_create_testdir): Don't include ftruncate and
1464         mountlist by default.
1465
1466 2006-10-16  Bruno Haible  <bruno@clisp.org>
1467
1468         * lib/c-strstr.c: Include c-strstr.h.
1469
1470 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
1471
1472         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
1473         in a slash.
1474
1475 2006-10-18  Bruno Haible  <bruno@clisp.org>
1476
1477         * lib/lock.h [C++]: Wrap definitions in extern "C".
1478
1479 2006-10-18  Bruno Haible  <bruno@clisp.org>
1480
1481         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
1482         gl_LIBOBJS list.
1483
1484 2006-10-18  Bruno Haible  <bruno@clisp.org>
1485
1486         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
1487
1488 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1489
1490         * lib/xstrtol.h: Include gettext.h.
1491         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
1492         Problem reported by Eric Blake.
1493         * modules/xstrtol (Depends-on): Add gettext-h.
1494
1495 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
1496
1497         * lib/strftime.c (advance): New macro.
1498         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
1499         incomplete type, so you can't add 0 to it.  Problem and patch
1500         reported by Eelco Dolstra for dietlibc.
1501
1502 2006-10-18  Jim Meyering  <jim@meyering.net>
1503
1504         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
1505         type for a local, and rename it: s/up/user_proc/.
1506
1507 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
1508
1509         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
1510         READ_UTMP_USER_PROCESS.
1511         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
1512
1513 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
1516         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
1517
1518 2006-10-17  Eric Blake  <ebb9@byu.net>
1519
1520         * lib/sigprocmask.c (sigprocmask): Fix typo.
1521
1522         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
1523
1524         * modules/clean-temp (Makefile.am): Don't add to make output...
1525         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
1526         config.h.
1527
1528 2006-10-17  Bruno Haible  <bruno@clisp.org>
1529
1530         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
1531         differently if DEFAULT_TEXT_DOMAIN is set.
1532
1533 2006-10-16  Bruno Haible  <bruno@clisp.org>
1534
1535         * lib/clean-temp.c: Include fwriteerror.h.
1536
1537 2006-10-16  Bruno Haible  <bruno@clisp.org>
1538
1539         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
1540
1541 2006-10-16  Bruno Haible  <bruno@clisp.org>
1542
1543         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
1544         * lib/sigprocmask.h: Include <sys/types.h>.
1545         (sigset_t): Use the system's definition if present.
1546
1547 2006-10-17  Eric Blake  <ebb9@byu.net>
1548
1549         * lib/xvasprintf.c (includes): Assume config.h.
1550         * lib/xasprintf.c (includes): Likewise.
1551
1552 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1553
1554         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
1555         at least as wide as intmax_t.
1556
1557 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
1558
1559         (Imported from Automake.)
1560         * build-aux/gnupload: Update to version 1.1 of directive file.
1561
1562 2006-10-16  Eric Blake  <ebb9@byu.net>
1563
1564         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
1565         match Automake 1.10a.
1566
1567 2006-10-14  Bruno Haible  <bruno@clisp.org>
1568
1569         * modules/sigprocmask: New file.
1570         * lib/sigprocmask.h: New file.
1571         * lib/sigprocmask.c: New file.
1572         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
1573         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
1574         request sigprocmask.o.
1575         (gl_PREREQ_SIGPROCMASK): New macro.
1576         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
1577         (Depends-on): Add sigprocmask.
1578         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
1579         gt_SIGNALBLOCKING. Test for 'raise' only once.
1580         * lib/fatal-signal.c: Include sigprocmask.h.
1581         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
1582         unblock_fatal_signals): Define always.
1583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1584         sigprocmask.
1585
1586 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1587
1588         Sync from Automake.
1589         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
1590         which incorrectly sets the mode of an existing destination
1591         directory.  In some cases the unpatched install-sh could do the
1592         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
1593         system.  We hope this is rare in practice, but it's clearly worth
1594         fixing.  Problem reported by Alex Unleashed in
1595         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
1596         Also, don't bother to check for -m bugs unless we're using -m;
1597         suggested by Stepan Kasal.
1598
1599 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1600
1601         Sync from Automake.
1602         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
1603         `-c' flag, so they appear at the same position as in %FASTDEP%
1604         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
1605         which ignores unknown options only after the first non-option.
1606         Bug report against M4 by Nelson H. F. Beebe.
1607
1608 2006-10-13  Jim Meyering  <jim@meyering.net>
1609
1610         Fix a bug in yesterday's change.
1611         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
1612         p->fts_statp->st_dev would be used uninitialized.
1613         Ensures that we always call fts_stat on the very first entry.
1614         Miklos Szeredi reported that find -xdev stopped working.
1615
1616 2006-10-12  Bruno Haible  <bruno@clisp.org>
1617
1618         * gnulib-tool (func_get_automake_snippet): Append an automatically
1619         computed EXTRA_DIST augmentation.
1620         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
1621         * modules/alloca-opt (Makefile.am): Likewise.
1622         * modules/allocsa (Makefile.am): Likewise.
1623         * modules/arcfour (Makefile.am): Likewise.
1624         * modules/arctwo (Makefile.am): Likewise.
1625         * modules/argmatch (Makefile.am): Likewise.
1626         * modules/argz (Makefile.am): Likewise.
1627         * modules/atexit (Makefile.am): Likewise.
1628         * modules/backupfile (Makefile.am): Likewise.
1629         * modules/byteswap (Makefile.am): Likewise.
1630         * modules/c-strtod (Makefile.am): Likewise.
1631         * modules/c-strtold (Makefile.am): Likewise.
1632         * modules/calloc (Makefile.am): Likewise.
1633         * modules/canon-host (Makefile.am): Likewise.
1634         * modules/canonicalize (Makefile.am): Likewise.
1635         * modules/chdir-long (Makefile.am): Likewise.
1636         * modules/chdir-safer (Makefile.am): Likewise.
1637         * modules/check-version (Makefile.am): Likewise.
1638         * modules/chown (Makefile.am): Likewise.
1639         * modules/cloexec (Makefile.am): Likewise.
1640         * modules/close-stream (Makefile.am): Likewise.
1641         * modules/closeout (Makefile.am): Likewise.
1642         * modules/crc (Makefile.am): Likewise.
1643         * modules/csharpexec (Makefile.am): Likewise.
1644         * modules/cycle-check (Makefile.am): Likewise.
1645         * modules/des (Makefile.am): Likewise.
1646         * modules/dev-ino (Makefile.am): Likewise.
1647         * modules/dirfd (Makefile.am): Likewise.
1648         * modules/dirname (Makefile.am): Likewise.
1649         * modules/dup2 (Makefile.am): Likewise.
1650         * modules/eealloc (Makefile.am): Likewise.
1651         * modules/error (Makefile.am): Likewise.
1652         * modules/euidaccess (Makefile.am): Likewise.
1653         * modules/exclude (Makefile.am): Likewise.
1654         * modules/exitfail (Makefile.am): Likewise.
1655         * modules/fcntl-safer (Makefile.am): Likewise.
1656         * modules/fcntl (Makefile.am): Likewise.
1657         * modules/file-type (Makefile.am): Likewise.
1658         * modules/fileblocks (Makefile.am): Likewise.
1659         * modules/filemode (Makefile.am): Likewise.
1660         * modules/filenamecat (Makefile.am): Likewise.
1661         * modules/fnmatch (Makefile.am): Likewise.
1662         * modules/fopen-safer (Makefile.am): Likewise.
1663         * modules/fpending (Makefile.am): Likewise.
1664         * modules/fprintftime (Makefile.am): Likewise.
1665         * modules/free (Makefile.am): Likewise.
1666         * modules/fsusage (Makefile.am): Likewise.
1667         * modules/ftruncate (Makefile.am): Likewise.
1668         * modules/fts (Makefile.am): Likewise.
1669         * modules/gc-arcfour (Makefile.am): Likewise.
1670         * modules/gc-des (Makefile.am): Likewise.
1671         * modules/gc-hmac-md5 (Makefile.am): Likewise.
1672         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
1673         * modules/gc-md4 (Makefile.am): Likewise.
1674         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1675         * modules/gc-sha1 (Makefile.am): Likewise.
1676         * modules/gc (Makefile.am): Likewise.
1677         * modules/getaddrinfo (Makefile.am): Likewise.
1678         * modules/getcwd (Makefile.am): Likewise.
1679         * modules/getdelim (Makefile.am): Likewise.
1680         * modules/getdomainname (Makefile.am): Likewise.
1681         * modules/getgroups (Makefile.am): Likewise.
1682         * modules/gethostname (Makefile.am): Likewise.
1683         * modules/gethrxtime (Makefile.am): Likewise.
1684         * modules/getline (Makefile.am): Likewise.
1685         * modules/getloadavg (Makefile.am): Likewise.
1686         * modules/getlogin_r (Makefile.am): Likewise.
1687         * modules/getndelim2 (Makefile.am): Likewise.
1688         * modules/getopt (Makefile.am): Likewise.
1689         * modules/getpagesize (Makefile.am): Likewise.
1690         * modules/getpass-gnu (Makefile.am): Likewise.
1691         * modules/getpass (Makefile.am): Likewise.
1692         * modules/getsubopt (Makefile.am): Likewise.
1693         * modules/gettime (Makefile.am): Likewise.
1694         * modules/gettimeofday (Makefile.am): Likewise.
1695         * modules/getugroups (Makefile.am): Likewise.
1696         * modules/getusershell (Makefile.am): Likewise.
1697         * modules/glob (Makefile.am): Likewise.
1698         * modules/group-member (Makefile.am): Likewise.
1699         * modules/hard-locale (Makefile.am): Likewise.
1700         * modules/hash (Makefile.am): Likewise.
1701         * modules/hmac-md5 (Makefile.am): Likewise.
1702         * modules/hmac-sha1 (Makefile.am): Likewise.
1703         * modules/human (Makefile.am): Likewise.
1704         * modules/idcache (Makefile.am): Likewise.
1705         * modules/imaxabs (Makefile.am): Likewise.
1706         * modules/imaxdiv (Makefile.am): Likewise.
1707         * modules/inet_ntop (Makefile.am): Likewise.
1708         * modules/inet_pton (Makefile.am): Likewise.
1709         * modules/intprops (Makefile.am): Likewise.
1710         * modules/inttostr (Makefile.am): Likewise.
1711         * modules/inttypes (Makefile.am): Likewise.
1712         * modules/isapipe (Makefile.am): Likewise.
1713         * modules/javaversion (Makefile.am): Likewise.
1714         * modules/lchmod (Makefile.am): Likewise.
1715         * modules/lchown (Makefile.am): Likewise.
1716         * modules/localcharset (Makefile.am): Likewise.
1717         * modules/long-options (Makefile.am): Likewise.
1718         * modules/lstat (Makefile.am): Likewise.
1719         * modules/malloc (Makefile.am): Likewise.
1720         * modules/mathl (Makefile.am): Likewise.
1721         * modules/mbchar (Makefile.am): Likewise.
1722         * modules/md2 (Makefile.am): Likewise.
1723         * modules/md4 (Makefile.am): Likewise.
1724         * modules/md5 (Makefile.am): Likewise.
1725         * modules/memcasecmp (Makefile.am): Likewise.
1726         * modules/memchr (Makefile.am): Likewise.
1727         * modules/memcmp (Makefile.am): Likewise.
1728         * modules/memcoll (Makefile.am): Likewise.
1729         * modules/memcpy (Makefile.am): Likewise.
1730         * modules/memmem (Makefile.am): Likewise.
1731         * modules/memmove (Makefile.am): Likewise.
1732         * modules/mempcpy (Makefile.am): Likewise.
1733         * modules/memrchr (Makefile.am): Likewise.
1734         * modules/memset (Makefile.am): Likewise.
1735         * modules/memxor (Makefile.am): Likewise.
1736         * modules/mkancesdirs (Makefile.am): Likewise.
1737         * modules/mkdir-p (Makefile.am): Likewise.
1738         * modules/mkdir (Makefile.am): Likewise.
1739         * modules/mkdtemp (Makefile.am): Likewise.
1740         * modules/mkstemp (Makefile.am): Likewise.
1741         * modules/mktime (Makefile.am): Likewise.
1742         * modules/modechange (Makefile.am): Likewise.
1743         * modules/mountlist (Makefile.am): Likewise.
1744         * modules/nanosleep (Makefile.am): Likewise.
1745         * modules/obstack (Makefile.am): Likewise.
1746         * modules/openat (Makefile.am): Likewise.
1747         * modules/pagealign_alloc (Makefile.am): Likewise.
1748         * modules/pathmax (Makefile.am): Likewise.
1749         * modules/physmem (Makefile.am): Likewise.
1750         * modules/poll (Makefile.am): Likewise.
1751         * modules/posixtm (Makefile.am): Likewise.
1752         * modules/posixver (Makefile.am): Likewise.
1753         * modules/putenv (Makefile.am): Likewise.
1754         * modules/quote (Makefile.am): Likewise.
1755         * modules/quotearg (Makefile.am): Likewise.
1756         * modules/raise (Makefile.am): Likewise.
1757         * modules/read-file (Makefile.am): Likewise.
1758         * modules/readline (Makefile.am): Likewise.
1759         * modules/readlink (Makefile.am): Likewise.
1760         * modules/readtokens (Makefile.am): Likewise.
1761         * modules/readutmp (Makefile.am): Likewise.
1762         * modules/realloc (Makefile.am): Likewise.
1763         * modules/regex (Makefile.am): Likewise.
1764         * modules/rename-dest-slash (Makefile.am): Likewise.
1765         * modules/rename (Makefile.am): Likewise.
1766         * modules/rijndael (Makefile.am): Likewise.
1767         * modules/rmdir (Makefile.am): Likewise.
1768         * modules/rpmatch (Makefile.am): Likewise.
1769         * modules/safe-read (Makefile.am): Likewise.
1770         * modules/safe-write (Makefile.am): Likewise.
1771         * modules/same-inode (Makefile.am): Likewise.
1772         * modules/same (Makefile.am): Likewise.
1773         * modules/save-cwd (Makefile.am): Likewise.
1774         * modules/savedir (Makefile.am): Likewise.
1775         * modules/setenv (Makefile.am): Likewise.
1776         * modules/settime (Makefile.am): Likewise.
1777         * modules/sha1 (Makefile.am): Likewise.
1778         * modules/sig2str (Makefile.am): Likewise.
1779         * modules/snprintf (Makefile.am): Likewise.
1780         * modules/stat-macros (Makefile.am): Likewise.
1781         * modules/stat-time (Makefile.am): Likewise.
1782         * modules/stdbool (Makefile.am): Likewise.
1783         * modules/stdint (Makefile.am): Likewise.
1784         * modules/stdlib-safer (Makefile.am): Likewise.
1785         * modules/stpcpy (Makefile.am): Likewise.
1786         * modules/stpncpy (Makefile.am): Likewise.
1787         * modules/strcase (Makefile.am): Likewise.
1788         * modules/strcasestr (Makefile.am): Likewise.
1789         * modules/strchrnul (Makefile.am): Likewise.
1790         * modules/strcspn (Makefile.am): Likewise.
1791         * modules/strdup (Makefile.am): Likewise.
1792         * modules/strerror (Makefile.am): Likewise.
1793         * modules/strftime (Makefile.am): Likewise.
1794         * modules/strndup (Makefile.am): Likewise.
1795         * modules/strnlen (Makefile.am): Likewise.
1796         * modules/strpbrk (Makefile.am): Likewise.
1797         * modules/strsep (Makefile.am): Likewise.
1798         * modules/strstr (Makefile.am): Likewise.
1799         * modules/strtod (Makefile.am): Likewise.
1800         * modules/strtoimax (Makefile.am): Likewise.
1801         * modules/strtok_r (Makefile.am): Likewise.
1802         * modules/strtol (Makefile.am): Likewise.
1803         * modules/strtoll (Makefile.am): Likewise.
1804         * modules/strtoul (Makefile.am): Likewise.
1805         * modules/strtoull (Makefile.am): Likewise.
1806         * modules/strtoumax (Makefile.am): Likewise.
1807         * modules/strverscmp (Makefile.am): Likewise.
1808         * modules/sys_socket (Makefile.am): Likewise.
1809         * modules/sys_stat (Makefile.am): Likewise.
1810         * modules/sysexits (Makefile.am): Likewise.
1811         * modules/time_r (Makefile.am): Likewise.
1812         * modules/timegm (Makefile.am): Likewise.
1813         * modules/timespec (Makefile.am): Likewise.
1814         * modules/tmpfile-safer (Makefile.am): Likewise.
1815         * modules/trim (Makefile.am): Likewise.
1816         * modules/unistd-safer (Makefile.am): Likewise.
1817         * modules/unlinkdir (Makefile.am): Likewise.
1818         * modules/unlocked-io (Makefile.am): Likewise.
1819         * modules/userspec (Makefile.am): Likewise.
1820         * modules/utime (Makefile.am): Likewise.
1821         * modules/utimecmp (Makefile.am): Likewise.
1822         * modules/utimens (Makefile.am): Likewise.
1823         * modules/vasnprintf (Makefile.am): Likewise.
1824         * modules/vasprintf (Makefile.am): Likewise.
1825         * modules/vsnprintf (Makefile.am): Likewise.
1826         * modules/xalloc (Makefile.am): Likewise.
1827         * modules/xgetcwd (Makefile.am): Likewise.
1828         * modules/xnanosleep (Makefile.am): Likewise.
1829         * modules/xreadlink (Makefile.am): Likewise.
1830         * modules/xstrtod (Makefile.am): Likewise.
1831         * modules/xstrtol (Makefile.am): Likewise.
1832         * modules/xstrtold (Makefile.am): Likewise.
1833         * modules/yesno (Makefile.am): Likewise.
1834         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
1835
1836 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1837
1838         * modules/error (Makefile.am): Distribute files through
1839         EXTRA_DIST, not lib_SOURCES.
1840
1841 2006-10-12  Eric Blake  <ebb9@byu.net>
1842
1843         * modules/error (Makefile.am): Distribute files in /lib.
1844         * modules/obstack (Makefile.am): Likewise.
1845
1846 2006-10-12  Bruno Haible  <bruno@clisp.org>
1847
1848         * modules/acl (Makefile.am): Distribute all files in lib/ through
1849         EXTRA_DIST.
1850         * modules/arcfour (Makefile.am): Likewise.
1851         * modules/arctwo (Makefile.am): Likewise.
1852         * modules/argmatch (Makefile.am): Likewise.
1853         * modules/argz (Makefile.am): Likewise.
1854         * modules/atexit (Makefile.am): Likewise.
1855         * modules/backupfile (Makefile.am): Likewise.
1856         * modules/c-strtod (Makefile.am): Likewise.
1857         * modules/c-strtold (Makefile.am): Likewise.
1858         * modules/calloc (Makefile.am): Likewise.
1859         * modules/canon-host (Makefile.am): Likewise.
1860         * modules/canonicalize (Makefile.am): Likewise.
1861         * modules/chdir-long (Makefile.am): Likewise.
1862         * modules/chdir-safer (Makefile.am): Likewise.
1863         * modules/check-version (Makefile.am): Likewise.
1864         * modules/chown (Makefile.am): Likewise.
1865         * modules/cloexec (Makefile.am): Likewise.
1866         * modules/close-stream (Makefile.am): Likewise.
1867         * modules/closeout (Makefile.am): Likewise.
1868         * modules/crc (Makefile.am): Likewise.
1869         * modules/cycle-check (Makefile.am): Likewise.
1870         * modules/des (Makefile.am): Likewise.
1871         * modules/dirfd (Makefile.am): Likewise.
1872         * modules/dirname (Makefile.am): Likewise.
1873         * modules/dup2 (Makefile.am): Likewise.
1874         * modules/euidaccess (Makefile.am): Likewise.
1875         * modules/exclude (Makefile.am): Likewise.
1876         * modules/exitfail (Makefile.am): Likewise.
1877         * modules/fcntl-safer (Makefile.am): Likewise.
1878         * modules/file-type (Makefile.am): Likewise.
1879         * modules/fileblocks (Makefile.am): Likewise.
1880         * modules/filemode (Makefile.am): Likewise.
1881         * modules/filenamecat (Makefile.am): Likewise.
1882         * modules/fnmatch (Makefile.am): Likewise.
1883         * modules/fopen-safer (Makefile.am): Likewise.
1884         * modules/fpending (Makefile.am): Likewise.
1885         * modules/fprintftime (Makefile.am): Likewise.
1886         * modules/free (Makefile.am): Likewise.
1887         * modules/fsusage (Makefile.am): Likewise.
1888         * modules/ftruncate (Makefile.am): Likewise.
1889         * modules/fts (Makefile.am): Likewise.
1890         * modules/gc (Makefile.am): Likewise.
1891         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
1892         * modules/getaddrinfo (Makefile.am): Likewise.
1893         * modules/getcwd (Makefile.am): Likewise.
1894         * modules/getdelim (Makefile.am): Likewise.
1895         * modules/getdomainname (Makefile.am): Likewise.
1896         * modules/getgroups (Makefile.am): Likewise.
1897         * modules/gethostname (Makefile.am): Likewise.
1898         * modules/gethrxtime (Makefile.am): Likewise.
1899         * modules/getline (Makefile.am): Likewise.
1900         * modules/getloadavg (Makefile.am): Likewise.
1901         * modules/getlogin_r (Makefile.am): Likewise.
1902         * modules/getopt (Makefile.am): Likewise.
1903         * modules/getpass (Makefile.am): Likewise.
1904         * modules/getpass-gnu (Makefile.am): Likewise.
1905         * modules/getsubopt (Makefile.am): Likewise.
1906         * modules/gettime (Makefile.am): Likewise.
1907         * modules/gettimeofday (Makefile.am): Likewise.
1908         * modules/getugroups (Makefile.am): Likewise.
1909         * modules/getusershell (Makefile.am): Likewise.
1910         * modules/glob (Makefile.am): Likewise.
1911         * modules/group-member (Makefile.am): Likewise.
1912         * modules/hard-locale (Makefile.am): Likewise.
1913         * modules/hash (Makefile.am): Likewise.
1914         * modules/hmac-md5 (Makefile.am): Likewise.
1915         * modules/hmac-sha1 (Makefile.am): Likewise.
1916         * modules/human (Makefile.am): Likewise.
1917         * modules/idcache (Makefile.am): Likewise.
1918         * modules/imaxabs (Makefile.am): Likewise.
1919         * modules/imaxdiv (Makefile.am): Likewise.
1920         * modules/inet_ntop (Makefile.am): Likewise.
1921         * modules/inet_pton (Makefile.am): Likewise.
1922         * modules/inttostr (Makefile.am): Likewise.
1923         * modules/isapipe (Makefile.am): Likewise.
1924         * modules/lchown (Makefile.am): Likewise.
1925         * modules/long-options (Makefile.am): Likewise.
1926         * modules/lstat (Makefile.am): Likewise.
1927         * modules/malloc (Makefile.am): Likewise.
1928         * modules/mathl (Makefile.am): Likewise.
1929         * modules/mbchar (Makefile.am): Likewise.
1930         * modules/md2 (Makefile.am): Likewise.
1931         * modules/md4 (Makefile.am): Likewise.
1932         * modules/md5 (Makefile.am): Likewise.
1933         * modules/memcasecmp (Makefile.am): Likewise.
1934         * modules/memchr (Makefile.am): Likewise.
1935         * modules/memcmp (Makefile.am): Likewise.
1936         * modules/memcoll (Makefile.am): Likewise.
1937         * modules/memcpy (Makefile.am): Likewise.
1938         * modules/memmem (Makefile.am): Likewise.
1939         * modules/memmove (Makefile.am): Likewise.
1940         * modules/mempcpy (Makefile.am): Likewise.
1941         * modules/memrchr (Makefile.am): Likewise.
1942         * modules/memset (Makefile.am): Likewise.
1943         * modules/memxor (Makefile.am): Likewise.
1944         * modules/mkancesdirs (Makefile.am): Likewise.
1945         * modules/mkdir (Makefile.am): Likewise.
1946         * modules/mkdir-p (Makefile.am): Likewise.
1947         * modules/mkdtemp (Makefile.am): Likewise.
1948         * modules/mkstemp (Makefile.am): Likewise.
1949         * modules/mktime (Makefile.am): Likewise.
1950         * modules/modechange (Makefile.am): Likewise.
1951         * modules/mountlist (Makefile.am): Likewise.
1952         * modules/nanosleep (Makefile.am): Likewise.
1953         * modules/openat (Makefile.am): Likewise.
1954         * modules/pagealign_alloc (Makefile.am): Likewise.
1955         * modules/physmem (Makefile.am): Likewise.
1956         * modules/poll (Makefile.am): Likewise.
1957         * modules/posixtm (Makefile.am): Likewise.
1958         * modules/posixver (Makefile.am): Likewise.
1959         * modules/putenv (Makefile.am): Likewise.
1960         * modules/quote (Makefile.am): Likewise.
1961         * modules/quotearg (Makefile.am): Likewise.
1962         * modules/raise (Makefile.am): Likewise.
1963         * modules/read-file (Makefile.am): Likewise.
1964         * modules/readline (Makefile.am): Likewise.
1965         * modules/readlink (Makefile.am): Likewise.
1966         * modules/readtokens (Makefile.am): Likewise.
1967         * modules/readutmp (Makefile.am): Likewise.
1968         * modules/realloc (Makefile.am): Likewise.
1969         * modules/regex (Makefile.am): Likewise.
1970         * modules/rename (Makefile.am): Likewise.
1971         * modules/rename-dest-slash (Makefile.am): Likewise.
1972         * modules/rijndael (Makefile.am): Likewise.
1973         * modules/rmdir (Makefile.am): Likewise.
1974         * modules/rpmatch (Makefile.am): Likewise.
1975         * modules/safe-read (Makefile.am): Likewise.
1976         * modules/safe-write (Makefile.am): Likewise.
1977         * modules/same (Makefile.am): Likewise.
1978         * modules/save-cwd (Makefile.am): Likewise.
1979         * modules/savedir (Makefile.am): Likewise.
1980         * modules/setenv (Makefile.am): Likewise.
1981         * modules/settime (Makefile.am): Likewise.
1982         * modules/sha1 (Makefile.am): Likewise.
1983         * modules/sig2str (Makefile.am): Likewise.
1984         * modules/snprintf (Makefile.am): Likewise.
1985         * modules/stdlib-safer (Makefile.am): Likewise.
1986         * modules/stpcpy (Makefile.am): Likewise.
1987         * modules/stpncpy (Makefile.am): Likewise.
1988         * modules/strcase (Makefile.am): Likewise.
1989         * modules/strcasestr (Makefile.am): Likewise.
1990         * modules/strchrnul (Makefile.am): Likewise.
1991         * modules/strcspn (Makefile.am): Likewise.
1992         * modules/strdup (Makefile.am): Likewise.
1993         * modules/strerror (Makefile.am): Likewise.
1994         * modules/strftime (Makefile.am): Likewise.
1995         * modules/strndup (Makefile.am): Likewise.
1996         * modules/strnlen (Makefile.am): Likewise.
1997         * modules/strpbrk (Makefile.am): Likewise.
1998         * modules/strsep (Makefile.am): Likewise.
1999         * modules/strstr (Makefile.am): Likewise.
2000         * modules/strtod (Makefile.am): Likewise.
2001         * modules/strtoimax (Makefile.am): Likewise.
2002         * modules/strtok_r (Makefile.am): Likewise.
2003         * modules/strtol (Makefile.am): Likewise.
2004         * modules/strtoll (Makefile.am): Likewise.
2005         * modules/strtoul (Makefile.am): Likewise.
2006         * modules/strtoull (Makefile.am): Likewise.
2007         * modules/strtoumax (Makefile.am): Likewise.
2008         * modules/strverscmp (Makefile.am): Likewise.
2009         * modules/time_r (Makefile.am): Likewise.
2010         * modules/timegm (Makefile.am): Likewise.
2011         * modules/tmpfile-safer (Makefile.am): Likewise.
2012         * modules/unistd-safer (Makefile.am): Likewise.
2013         * modules/unlinkdir (Makefile.am): Likewise.
2014         * modules/userspec (Makefile.am): Likewise.
2015         * modules/utime (Makefile.am): Likewise.
2016         * modules/utimecmp (Makefile.am): Likewise.
2017         * modules/utimens (Makefile.am): Likewise.
2018         * modules/vasnprintf (Makefile.am): Likewise.
2019         * modules/vasprintf (Makefile.am): Likewise.
2020         * modules/vsnprintf (Makefile.am): Likewise.
2021         * modules/xalloc (Makefile.am): Likewise.
2022         * modules/xgetcwd (Makefile.am): Likewise.
2023         * modules/xnanosleep (Makefile.am): Likewise.
2024         * modules/xreadlink (Makefile.am): Likewise.
2025         * modules/xstrtod (Makefile.am): Likewise.
2026         * modules/xstrtol (Makefile.am): Likewise.
2027         * modules/xstrtold (Makefile.am): Likewise.
2028         * modules/yesno (Makefile.am): Likewise.
2029
2030 2006-10-12  Jim Meyering  <jim@meyering.net>
2031
2032         * m4/getloadavg.m4: Revert the change below.
2033
2034         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
2035         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
2036         fail with a symlink, which is what coreutils' ./bootstrap now
2037         creates by default.
2038
2039 2006-10-12  Bruno Haible  <bruno@clisp.org>
2040
2041         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
2042         mingw.
2043         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
2044         MSVC and mingw explicitly.
2045
2046 2006-10-11  Simon Josefsson  <jas@extundo.com>
2047             Bruno Haible  <bruno@clisp.org>
2048
2049         Add support for multiple gnulib-tool invocations in the scope of a
2050         single configure.ac file.
2051         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
2052         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
2053         with the same contents as the _LIBADD variable.
2054         (func_emit_initmacro_start, func_emit_initmacro_end,
2055         func_emit_initmacro_done): New functions.
2056         (func_import, func_create_testdir): Invoke them. Allow the identifiers
2057         gl_LIBOBJS and gl_LTLIBOBJS.
2058
2059 2006-10-11  Bruno Haible  <bruno@clisp.org>
2060
2061         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
2062         (func_create_testdir): Don't create po/Makefile.am, don't invoke
2063         autoreconf. Instead, invoke autopoint explicitly but move back the
2064         *.m4 files from gnulib.
2065
2066 2006-10-11  Bruno Haible  <bruno@clisp.org>
2067
2068         * gnulib-tool (func_usage): Make module names after --create-testdir
2069         optional.
2070         (func_create_testdir): If no module was specified, use nearly all
2071         modules.
2072
2073 2006-10-12  Jim Meyering  <jim@meyering.net>
2074
2075         Big performance improvement for fts-based tools that use FTS_NOSTAT.
2076         Avoid spurious inode-mismatch problems on non-POSIX file systems.
2077         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
2078         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
2079         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
2080         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
2081         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
2082         (fts_set_stat_required): New function.
2083         (fts_open): Defer the calls to fts_stat, if possible or requested.
2084         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
2085         into fts_stat itself.
2086         (fts_read): Perform any required (deferred) fts_stat call.
2087         (fts_build): Likewise, for the directory we're about to open and read.
2088         In the readdir loop, carefully decide whether each entry will require
2089         an eventual call to fts_stat, using dirent.d_type info if available.
2090         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
2091         a command line argument into this function.  Update all callers.
2092         Map a return value of FTS_DOT to FTS_D for a command line argument.
2093         * modules/fts (Depends-on): Add d-type.  Alphabetize.
2094         Thanks to Miklos Szeredi for his tenacity and for the initial
2095         bug report about "find" failing on a FUSE-based file system.
2096
2097         * lib/fts.c (fts_open): Use consistent indentation.
2098
2099 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2100
2101         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
2102         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
2103         reported by Jim Meyering.  All uses of cache variables renamed
2104         to match Autoconf's.
2105         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
2106         the other one.
2107
2108         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2109         Fix misspelling in diagnostic.
2110
2111 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2112
2113         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
2114         defined.  Problem reported by Matthew Woehlke.
2115
2116         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
2117         Add support for Tandem NonStop R series.
2118         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
2119         Use new macro.
2120
2121         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
2122         (has_trailing_slash): Omit size arg; all callers changed.
2123         Omit 'inline', since it doesn't help performance and we'd
2124         need to configure it.
2125         Don't count //, ///, etc. as having a trailing slash.
2126         As a side effect, this removes a C99ism reported by Matthew Woehlke.
2127         (rpl_rename_dest_slash): On failure, use rename's errno rather
2128         than (in some cases) an incorrect or junk errno.
2129         Simplify code by removing need to compute length; this does
2130         cause it to make two passes instead of one over the file name,
2131         but it's worth it.
2132
2133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
2134         change, since Autoconf's version may no longer be appropriate now
2135         that we are using CVS Autoconf's version.  Add support for Tandem.
2136
2137 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2138             Bruno Haible  <bruno@clisp.org>
2139
2140         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
2141         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
2142         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
2143         gl_AC_TYPE_LONG_LONG.
2144
2145         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
2146         instead of HAVE_LONG_LONG.
2147         * lib/printf-args.c (printf_fetchargs): Likewise.
2148         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2149         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2150         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
2151         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
2152         gl_AC_TYPE_LONG_LONG.
2153
2154 2006-10-11  Bruno Haible  <bruno@clisp.org>
2155
2156         * m4/longlong.m4: Add comments.
2157         * m4/ulonglong.m4: Likewise.
2158
2159 2006-10-10  Bruno Haible  <bruno@clisp.org>
2160
2161         Make it possible to #define stpcpy, strdup to aliases.
2162         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
2163         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
2164
2165 2006-10-10  Bruno Haible  <bruno@clisp.org>
2166
2167         Make it possible to #define gcd to an alias.
2168         * lib/gcd.c: Include config.h.
2169
2170 2006-10-10  Bruno Haible  <bruno@clisp.org>
2171
2172         Make it possible to #define c_isascii to an alias.
2173         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
2174         defined. Undefine the macros before defining them, to avoid gcc
2175         warnings.
2176         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
2177         define NO_C_CTYPE_MACROS early.
2178
2179 2006-10-10  Bruno Haible  <bruno@clisp.org>
2180
2181         Make it possible to #define set_program_name to an alias.
2182         * lib/progname.c: Don't undefine set_program_name; instead, undefine
2183         ENABLE_RELOCATABLE early.
2184
2185 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2186
2187         Port to Tandem NSK OSS, which has 64-bit signed int but at most
2188         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
2189         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
2190         More generally, don't assume that 64-bit signed int is available
2191         if unsigned int is, and vice versa.
2192         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
2193         unsigned symbols, not on their signed counterparts.
2194         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
2195         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
2196         (UINT64_C, UINTMAX_C):
2197         Likewise.
2198         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
2199         unsigned counterparts.
2200         (Have_long_long, Unsigned): New macros.
2201         (Int): Renamed from INT.
2202         (strtoimax): Use the new macros.
2203         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
2204         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
2205         * modules/inttypes (inttypes.h): Substitute
2206         HAVE_UNSIGNED_LONG_LONG_INT.
2207         * modules/stdint (stdint.h): Likewise.
2208         (Files): Add m4/ulonglong.m4.
2209
2210 2006-10-10  Bruno Haible  <bruno@clisp.org>
2211
2212         Fix a gcc -Wshadow warning.
2213         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
2214         to 'bucket'.
2215         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
2216         gl_linked_indexof_from_to): Likewise.
2217         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
2218         Likewise.
2219         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
2220         Likewise.
2221         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
2222         Reported by Eric Blake.
2223
2224 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
2225
2226         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
2227         for NetBSD.  Problem reported by Bruno Haible.
2228
2229 2006-10-09  Jim Meyering  <jim@meyering.net>
2230
2231         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
2232         Patch from Bruno Haible.
2233
2234 2006-10-09  Jim Meyering  <jim@meyering.net>
2235
2236         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
2237         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
2238         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
2239
2240 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2241
2242         Don't include <config.h> twice; this doesn't work in some cases,
2243         e.g., when config.h has "#define intmax_t long long int" and
2244         we include <config.h>, <inttypes.h>, <config.h> in that order.
2245         Problem reported by Matthew Woehlke in:
2246         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
2247         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
2248         * lib/fts-cycle.c: Don't include config.h.
2249         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
2250         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
2251         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
2252         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
2253         inttypes.h.
2254         * lib/xstrtoumax.c: Likewise.
2255         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
2256         __strtol and the like, so that this module is more like its siblings.
2257         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
2258         Remove; no longer needed now that we assume gnulib inttypes.h.
2259
2260 2006-10-08  Bruno Haible  <bruno@clisp.org>
2261
2262         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
2263         option.
2264
2265 2006-10-07  Jim Meyering  <jim@meyering.net>
2266
2267         * modules/inttypes (inttypes.h): Revert what seems to have been
2268         an inadvertent part of today's change: use "|", not "/" in the
2269         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
2270
2271 2006-10-07  Bruno Haible  <bruno@clisp.org>
2272
2273         * modules/sublist: New file.
2274
2275 2006-10-07  Bruno Haible  <bruno@clisp.org>
2276
2277         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
2278         * modules/argz (argz.h): Likewise.
2279         * modules/arpa_inet (arpa/inet.h): Likewise.
2280         * modules/byteswap (byteswap.h): Likewise.
2281         * modules/configmake (configmake.h): Likewise.
2282         * modules/fcntl (fcntl.h): Likewise.
2283         * modules/fnmatch (fnmatch.h): Likewise.
2284         * modules/getopt (getopt.h): Likewise.
2285         * modules/glob (glob.h): Likewise.
2286         * modules/inttypes (inttypes.h): Likewise.
2287         * modules/netinet_in (netinet/in.h): Likewise.
2288         * modules/poll (poll.h): Likewise.
2289         * modules/stdbool (stdbool.h): Likewise.
2290         * modules/stdint (stdint.h): Likewise.
2291         * modules/sys_select (sys/select.h): Likewise.
2292         * modules/sys_socket (sys/socket.h): Likewise.
2293         * modules/sys_stat (sys/stat.h): Likewise.
2294         * modules/sysexits (sysexits.h): Likewise.
2295         * modules/unistd (unistd.h): Likewise.
2296         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2297         Add a "DO NOT EDIT" comment to the generated file.
2298         (func_import): Likewise for gnulib-comp.m4.
2299
2300 2006-10-07  Bruno Haible  <bruno@clisp.org>
2301
2302         * lib/gl_sublist.h: New file.
2303         * lib/gl_sublist.c: New file.
2304
2305 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
2308         name (relative to the original working directory) and the file
2309         name component (relative to the temporary working directory).  All
2310         callers changed.
2311         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
2312         * lib/mkdir-p.c (make_dir_parents): Likewise.
2313         * lib/mkdir-p.h (make_dir_parents): Likewise.
2314
2315 2006-10-06  Eric Blake  <ebb9@byu.net>
2316
2317         Define several macros for use by the clean-temp module.
2318         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
2319         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
2320         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
2321
2322         * lib/clean-temp.h (close_stream_temp): New declaration.
2323         * lib/clean-temp.c (includes): Pull in headers according to what
2324         other modules are in use.
2325         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
2326
2327 2006-10-06  Bruno Haible  <bruno@clisp.org>
2328
2329         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
2330         instead of fopen, fwriteerror.
2331
2332 2006-10-06  Bruno Haible  <bruno@clisp.org>
2333
2334         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
2335         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
2336         int.
2337         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
2338         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
2339         Return an error indicator.
2340         Suggested by Eric Blake.
2341
2342 2006-10-06  Bruno Haible  <bruno@clisp.org>
2343
2344         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
2345         Reported by Eric Blake.
2346
2347 2006-10-06  Bruno Haible  <bruno@clisp.org>
2348
2349         * modules/closeout (Description): Mention stderr too.
2350
2351 2006-10-06  Bruno Haible  <bruno@clisp.org>
2352         and Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         * lib/closeout.c (close_stdout): Also close stderr.
2355         * lib/closeout.h: Update comment.
2356
2357 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2358
2359         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
2360         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
2361         * lib/dirchownmod.c: Include lchown.h.
2362         * lib/lchown.c: Don't include files that lchown.h now includes.
2363         Don't declare chown, since lchown.h now does that.
2364         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
2365         (lchown): Define to rpl_chown if lchown is declared but
2366         does not exist.  Declare using a prototype if lchown is not
2367         declared.  Add a copyright notice.
2368         * lib/mkstemp.h: Include <unistd.h>.
2369         * lib/openat.c: Include lchown.h.
2370
2371         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
2372         we now test for that separately.
2373         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
2374         rather than O_NOFOLLOW, when testing whether it's possible to
2375         avoid a race condition reliably.
2376         * lib/savewd.c (savewd_chdir): Likewise.
2377
2378         Remove macros that are no longer needed now that stdint.h is
2379         reliable.
2380         * lib/fsusage.c (UINTMAX_MAX): Remove.
2381         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
2382         * lib/utimecmp.c (SIZE_MAX): Remove.
2383
2384         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
2385
2386         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
2387         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
2388         O_NOATIME works.
2389
2390 2006-10-05  Bruno Haible  <bruno@clisp.org>
2391
2392         * lib/gl_list.h (gl_sortedlist_search_from_to,
2393         gl_sortedlist_indexof_from_to): New declarations.
2394         (gl_list_implementation): New fields sortedlist_search_from_to,
2395         sortedlist_indexof_from_to.
2396         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
2397         inline functions.
2398         * lib/gl_list.c (gl_sortedlist_search_from_to,
2399         gl_sortedlist_indexof_from_to): New functions.
2400         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
2401         function.
2402         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
2403         (gl_array_sortedlist_search_from_to): New function.
2404         (gl_array_list_implementation): Update.
2405         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
2406         function.
2407         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
2408         (gl_carray_sortedlist_search_from_to): New function.
2409         (gl_carray_list_implementation): Update.
2410         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
2411         gl_linked_sortedlist_indexof_from_to): New functions.
2412         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2413         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2414         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
2415         gl_tree_sortedlist_indexof_from_to): New functions.
2416         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2417         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2418         Update.
2419         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2420         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
2421         Update.
2422
2423 2006-10-05  Bruno Haible  <bruno@clisp.org>
2424
2425         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
2426         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
2427         (struct gl_list_implementation): Add fields search_from_to,
2428         indexof_from_to. Remove fields search, indexof.
2429         (gl_list_search): Use the search_from_to method.
2430         (gl_list_search_from, gl_list_search_from_to): New functions.
2431         (gl_list_indexof): Use the indexof_from_to method.
2432         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2433         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
2434         (gl_list_search_from, gl_list_search_from_to): New functions.
2435         (gl_list_indexof): Use the indexof_from_to method.
2436         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2437         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
2438         gl_array_indexof. Add start_index, end_index arguments.
2439         (gl_array_search_from_to): Renamed from gl_array_search. Add
2440         start_index, end_index arguments.
2441         (gl_array_remove, gl_array_list_implementation): Update.
2442         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
2443         gl_carray_indexof. Add start_index, end_index arguments.
2444         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
2445         start_index, end_index arguments.
2446         (gl_carray_remove, gl_carray_list_implementation): Update.
2447         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
2448         gl_linked_search. Add start_index, end_index arguments.
2449         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
2450         start_index, end_index arguments.
2451         (gl_linked_remove): Update.
2452         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2453         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2454         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
2455         field to 'size_t'.
2456         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
2457         gl_tree_search. Add start_index, end_index arguments.
2458         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2459         start_index, end_index arguments.
2460         (gl_tree_remove): Update.
2461         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2462         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2463         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
2464         function.
2465         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
2466         gl_tree_search. Add start_index, end_index arguments.
2467         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2468         start_index, end_index arguments.
2469         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2470         Update.
2471         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
2472
2473 2006-10-05  Bruno Haible  <bruno@clisp.org>
2474
2475         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
2476
2477         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2478         fwriteerror_temp): New declarations.
2479         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
2480         (descriptors): New variable.
2481         (cleanup): First, close the descriptors.
2482         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
2483         fclose_temp, fwriteerror_temp): New functions.
2484
2485 2006-10-04  Jim Meyering  <jim@meyering.net>
2486
2487         * lib/fts.c (fts_open): Tiny comment change.
2488
2489 2006-10-04  Bruno Haible  <bruno@clisp.org>
2490
2491         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
2492         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
2493         gl_LOCK_BODY.
2494         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
2495         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
2496         gl_LOCK_EARLY_BODY.
2497         (gl_LOCK): Require gl_LOCK_BODY.
2498
2499 2006-10-04  Bruno Haible  <bruno@clisp.org>
2500
2501         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
2502         (gl_oset_search_atleast): New declaration.
2503         (struct gl_oset_implementation): Add field 'search_atleast'.
2504         (gl_oset_search_atleast): New inline function.
2505         * lib/gl_oset.c (gl_oset_search_atleast): New function.
2506         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
2507         (gl_array_oset_implementation): Update.
2508         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
2509         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
2510         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
2511
2512 2006-10-04  Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
2515
2516 2006-10-03  Bruno Haible  <bruno@clisp.org>
2517
2518         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
2519         from gl_avltreehash_list_implementation.
2520
2521 2006-10-03  Bruno Haible  <bruno@clisp.org>
2522
2523         * lib/gl_oset.c (gl_oset_add): Fix return type.
2524
2525 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
2526
2527         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
2528
2529 2006-10-02  Eric Blake  <ebb9@byu.net>
2530
2531         * modules/strnlen (Depends-on): Add extensions.
2532
2533 2006-10-02  Eric Blake  <ebb9@byu.net>
2534
2535         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
2536         definition in 2.60+.
2537
2538 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2539
2540         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
2541         checks.
2542
2543 2006-10-02  Bruno Haible  <bruno@clisp.org>
2544
2545         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
2546         to the AUTOMAKE_OPTIONS.
2547         Reported by Jim Meyering.
2548
2549 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
2550
2551         Work around bug in Solaris 10 /proc file system:
2552         /proc/self/fd/NNN/.. isn't the parent directory of
2553         the directory whose file descriptor is NNN.  This needs to
2554         be worked around at run time, not compile time, since a
2555         program might be built on Solaris 8, where things work, and
2556         run on Solaris 10.
2557         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
2558         to use the following interface instead:
2559         (OPENAT_BUFFER_SIZE): New macro.
2560         (openat_proc_name): New function.
2561         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
2562         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
2563         Likewise.
2564         * lib/openat-proc.c: New file.
2565         * modules/openat (Files): Add lib/openat-proc.c.
2566         (Depends-on): Add same-inode, stdbool.
2567         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
2568
2569 2006-09-29  Bruno Haible  <bruno@clisp.org>
2570
2571         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
2572         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
2573         argument. Set stdout_closed before testing for ferror, not after.
2574         (fwriteerror, fwriteerror_no_ebadf): New functions.
2575
2576 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2577
2578         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
2579
2580 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
2581
2582         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
2583         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
2584
2585 2006-09-28  Jim Meyering  <jim@meyering.net>
2586
2587         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
2588         Include <unistd.h>.
2589
2590 2006-09-28  Bruno Haible  <bruno@clisp.org>
2591
2592         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
2593         * modules/linkedhash-list (Depends-on): Likewise.
2594         * modules/rbtreehash-list (Depends-on): Likewise.
2595
2596 2006-09-28  Bruno Haible  <bruno@clisp.org>
2597
2598         * lib/strndup.h: Simplify the redefinition of strndup.
2599         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
2600         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
2601
2602 2006-09-28  Bruno Haible  <bruno@clisp.org>
2603
2604         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
2605         * lib/gl_linkedhash_list.c: Likewise.
2606         * lib/gl_rbtreehash_list.c: Likewise.
2607
2608 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
2609
2610         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
2611         getaddrinfo.
2612
2613         * lib/__fpending.h: Don't include <stdio_ext.h> unless
2614         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
2615         it causes <stdio_ext.h> to cause a compile-time error.
2616         Problem reported by Nelson H. F. Beebe.
2617         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
2618         of HAVE_DECL___PENDING.
2619
2620         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
2621         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
2622         declaration.
2623
2624 2006-09-27  Jim Meyering  <jim@meyering.net>
2625
2626         This file could end up with a definition for a function
2627         named __strndup, rather than rpl_strndup on a system with
2628         incomplete weak_alias support.
2629         * lib/strndup.c (strndup): Rename from __strndup.
2630         Remove #defines that used to map __strndup to strndup.
2631         Don't use K&R prototypes.
2632         Remove LIBC-related code, since this file is not sync'd with glibc.
2633         * lib/strndup.h: Revamp, accordingly.
2634         * m4/strndup.m4: Modernize.
2635
2636 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2637
2638         * modules/savewd (Depends-on): Add 'raise'.
2639         * lib/savewd.c: Include <signal.h>, for 'raise'.
2640
2641 2006-09-26  Jim Meyering  <jim@meyering.net>
2642
2643         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
2644         when we detect Darwin 8.7.0's acl_get_file bug.
2645         Rearrange to perform the new (below) run-test while $LIBS
2646         contains any acl-related library.  Set USE_ACL at the end.
2647         (gl_ACL_GET_FILE): New function.
2648
2649 2006-09-26  Eric Blake  <ebb9@byu.net>
2650
2651         * lib/verror.c: Include <config.h> unconditionally.
2652
2653 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2654
2655         * modules/clock-time (Maintainer): Add self.
2656         * modules/getlogin_r (Depends-on): Add extensions.
2657
2658 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2659
2660         * modules/clock-time: New module.
2661         * modules/nanosleep (Depends-on): Add clock-time.
2662         * modules/gethrxtime (Depends-on): Likewise.
2663         * modules/gettime (Depends-on): Likewise.
2664         * modules/settime (Depends-on): Likewise.
2665
2666         * modules/fts-lgpl: Depend on openat.
2667         * modules/mkancesdirs: Depend on savewd.
2668         * modules/mkdir-p: Likewise.
2669
2670 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2671
2672         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
2673
2674         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
2675         `gl_have_arbitrary_file_name_length_limit' to
2676         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
2677         actually works between configure runs.
2678
2679 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2680             Bruno Haible  <bruno@clisp.org>
2681
2682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
2683
2684 2006-09-25  Jim Meyering  <jim@meyering.net>
2685
2686         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
2687         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
2688
2689 2006-09-25  Eric Blake  <ebb9@byu.net>
2690
2691         * gnulib-tool (func_import, func_create_testdir): Fix typos in
2692         exec's in 2006-09-18 patch when shuffling fds.
2693
2694 2006-09-25  Bruno Haible  <bruno@clisp.org>
2695
2696         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
2697         Reported by Jim Meyering.
2698
2699 2006-09-24  Jim Meyering  <jim@meyering.net>
2700
2701         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
2702         compare a pointer against a literal "0".  That caused failures with
2703         at least HP-UX's hpcc.
2704
2705 2006-09-22  Simon Josefsson  <jas@extundo.com>
2706
2707         * modules/gc-sha1:
2708         * modules/gc-md4:
2709         * modules/gc-hmac-sha1:
2710         * modules/gc-hmac-md5:
2711         * modules/gc-des:
2712         * modules/gc-arcfour: Distribute more files.
2713
2714 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2715
2716         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
2717         (gl_linked_iterator_from_to): Initialize struct completely.
2718         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
2719         (gl_tree_iterator_from_to): Likewise
2720         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
2721         * lib/gl_array_list.c [lint] (gl_array_iterator)
2722         (gl_array_iterator_from_to): Likewise.
2723         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
2724         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
2725         (gl_carray_iterator_from_to): Likewise.
2726
2727         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
2728         * lib/md4.c (md4_process_block): Remove unused variable.
2729         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
2730         parentheses for clarity.
2731
2732 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2733
2734         * modules/bison-i18n (Depends-on): Add gettext.
2735
2736 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2737
2738         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
2739         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
2740         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
2741         also add missing comma that caused broken test.
2742         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
2743         stdlib.h, for `abort'.
2744         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
2745         variables.
2746         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
2747         include unistd.h if present, for `rmdir'.
2748         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
2749         variables.
2750         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
2751         in the process include standard headers for prototypes.
2752         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
2753         gets declared on GNU/Linux.
2754         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
2755         unistd.h, for `rmdir'.
2756         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
2757
2758         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
2759         always true.
2760         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
2761
2762         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
2763
2764 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2765
2766         * gnulib-tool (func_version): Create output all at once.  This
2767         may help avoid triggering unnecessary SIGPIPEs, and at any
2768         rate it doesn't hurt.
2769
2770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2771             Bruno Haible  <bruno@clisp.org>
2772
2773         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
2774         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2775         * m4/signed.m4 (bh_C_SIGNED): Likewise.
2776
2777         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
2778         (gl_FUNC_VASPRINTF): Invoke it.
2779
2780 2006-09-22  Bruno Haible  <bruno@clisp.org>
2781
2782         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
2783         getloadavg.c as first argument.
2784
2785 2006-09-22  Bruno Haible  <bruno@clisp.org>
2786
2787         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
2788         at the beginning of the gl_INIT macro.
2789         * modules/getloadavg (configure.ac): Pass $gl_source_base to
2790         gl_GETLOADAVG.
2791
2792 2006-09-22  Bruno Haible  <bruno@clisp.org>
2793
2794         * gnulib-tool (func_create_megatestdir): Don't include the config-h
2795         module.
2796         Suggested by Ralf Wildenhues.
2797
2798 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2799
2800         Import this patch from libc:
2801
2802         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
2803
2804         * lib/regex_internal.c (re_string_reconstruct): Handle
2805         offset < pstr->valid_raw_len && pstr->offsets_needed case.
2806         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
2807         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
2808         re_string_context_at.
2809
2810         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
2811         now requires it.
2812         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
2813         gl_REGEX now does it for us.
2814         (gl_REGEX): Add test taken from
2815         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
2816
2817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
2818         Check that large offsets work.  Modernize Autoconf usages.
2819         Prefer "yes" to mean a good thing rather than a bad.
2820         Don't put "#define mkstemp" in config.h, as this might interfere
2821         with standard system headers that "#define mkstemp mkstemp64".
2822
2823         * modules/mkstemp (Depends-on): Add extensions, so that
2824         mkstemp is visible on some platforms.
2825         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
2826         (Include): Change to "mkstemp.h" from <stdlib.h>.
2827         (Files): Add mkstemp.h.
2828
2829         * lib/mkstemp.h: New file, since some standard headers
2830         #define mkstemp.
2831         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
2832         Include "mkstemp.h".
2833         Make the _LIBC code resemble glibc original more,
2834         e.g., use K&R style.
2835         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
2836         (mkstemp): Remove, since mkstemp.h does this for us.
2837         * lib/stdlib--.h: Include mkstemp.h.
2838
2839         Import this patch from libc:
2840
2841         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
2842
2843         * lib/tempname.c (__gen_tempname): Change attempts_min
2844         into a macro.  Use preprocessor to decide how to initialize
2845         attempts [Coverity CID 67].
2846
2847 2006-09-20  Bruno Haible  <bruno@clisp.org>
2848
2849         * lib/mkdtemp.c: Import from libc.
2850         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
2851                 * sysdeps/posix/tempname.c (__gen_tempname): Change
2852                 attempts_min into a macro.  Use preprocessor to decide how to
2853                 initialize attempts [Coverity CID 67].
2854         2001-11-27  Paul Eggert  <eggert@twinsun.com>
2855                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2856                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2857
2858 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2859
2860         * gnulib-tool (func_exit): New function, to allow to pass the
2861         exit status portably through the trap.  Use everywhere.
2862         (--help, --version): Signal a write error.
2863         (trap): catch SIGPIPE, for write errors.
2864         Exit at the end of the trap, with the correct exit status.
2865
2866 2006-09-19  Karl Berry  <karl@gnu.org>
2867
2868         * doc/gnulib.texi: note about the license texinfo files.
2869
2870 2006-09-19  Eric Blake  <ebb9@byu.net>
2871
2872         * gnulib-tool: Avoid space-tab.
2873
2874 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
2877         that prevented coreutils 6.1 from building.  Problem reported
2878         by Petter Reinholdtsen.
2879
2880 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2881
2882         * gnulib-tool (avoidlist): Fix typo that broke options like
2883         --avoid=lock that are used by coreutils bootstrap.
2884
2885 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
2886
2887         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
2888         more systematically.
2889
2890 2006-09-18  Jim Meyering  <jim@meyering.net>
2891
2892         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
2893
2894 2006-09-18  Bruno Haible  <bruno@clisp.org>
2895
2896         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
2897
2898 2006-09-18  Bruno Haible  <bruno@clisp.org>
2899
2900         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
2901         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
2902         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
2903         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
2904         * m4/gettext.m4: Require autoconf >= 2.52.
2905         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
2906         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
2907         of gl_cv_header_inttypes_h.
2908
2909 2006-09-18  Bruno Haible  <bruno@clisp.org>
2910
2911         * lib/javaversion.c: Include configmake.h.
2912
2913 2006-09-18  Bruno Haible  <bruno@clisp.org>
2914
2915         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
2916         avoid that the while loops be executed in a subshell.
2917
2918 2006-09-18  Bruno Haible  <bruno@clisp.org>
2919
2920         * MODULES.html.sh (func_module): Break long lines.
2921         Suggested by Bruce Korb <bkorb@gnu.org>.
2922
2923 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2924
2925         Speed up by a factor of 1.12.
2926         * gnulib-tool (nl): New variable.
2927         (func_import): Rewrite include directive extraction to only read each
2928         directive once.
2929
2930 2006-09-17  Bruno Haible  <bruno@clisp.org>
2931
2932         * modules/javaversion (Makefile.am): Remove DEFS setting.
2933         (Depends-on): Add configmake, for PKGDATADIR definition.
2934
2935 2006-09-17  Bruno Haible  <bruno@clisp.org>
2936
2937         * gnulib-tool (func_create_testdir): Rewrite all files at once.
2938
2939 2006-09-17  Bruno Haible  <bruno@clisp.org>
2940
2941         * gnulib-tool (func_append): New function, stolen from libtool.m4.
2942         (func_modules_transitive_closure, func_modules_add_dummy,
2943         func_modules_to_filelist, func_import, func_create_testdir,
2944         func_create_megatestdir, ...): Use it wherever possible.
2945         Suggested by Ralf Wildenhues.
2946
2947 2006-09-16  Karl Berry  <karl@gnu.org>
2948
2949         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
2950         to avoid sectioning errors.
2951         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
2952         [ifinfo]: blank line after @center-ed titles.
2953         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
2954         Spell FSF address consistently with others.
2955         (These changes approved by rms.)
2956
2957 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2958
2959         Speed up by a factor of 1.61.
2960         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
2961         already checked module names again.
2962
2963 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2964
2965         Speed up by a factor of 1.13.
2966         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
2967         for new_files, and the input to func_add_or_update.
2968
2969 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2970
2971         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
2972         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
2973
2974 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2975
2976         * modules/mkancesdirs (Depends-on): Add fcntl.
2977         * modules/savewd: New file.
2978         * MODULES.html.sh (File system functions): Add savewd.
2979
2980         * modules/configmake (Makefile.am): Add support for the
2981         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
2982
2983 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2984
2985         * m4/savewd.m4: New file.
2986
2987 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2988
2989         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
2990         (dirchownmod): New arg FD.  All callers changed.
2991         Use FD rather than opening the directory ourself, as opening is
2992         now the caller's responsibility.
2993         * lib/dirchownmod.h: Likewise.
2994         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
2995         hosts that require <sys/types.h> before <sys/stat.h>.  Include
2996         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
2997         (test_dir): Remove.
2998         (mkancesdirs): Return length of prefix of FILE that has already
2999         been made, or -2 if there is a child doing the work.  Redo
3000         algorithm so that it is O(N) rather than O(N**2).  Optimize away
3001         ".", and treat ".." specially since it might stray back into
3002         already-created areas.  Use a subprocess if necessary.  New arg
3003         WD; all users changed.  MAKE_DIR function should now return 1
3004         if it creates a directory that is not readable.  Return -2 if
3005         a child process is spun off.
3006         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
3007         Adjust signature to match code.
3008         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
3009         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
3010         all users changed.
3011         * lib/savewd.c, lib/savewd.h: New files.
3012
3013 2006-09-15  Jim Meyering  <jim@meyering.net>
3014
3015         * modules/rename-dest-slash: New module.
3016         * MODULES.html.sh (posix_compat): Add it here.
3017
3018         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
3019
3020 2006-09-15  Jim Meyering  <jim@meyering.net>
3021
3022         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
3023         file.
3024
3025         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
3026
3027 2006-09-15  Jim Meyering  <jim@meyering.net>
3028
3029         * lib/rename-dest-slash.c (has_trailing_slash): Use
3030         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
3031         (rpl_rename_dest_slash): Perform the cheaper trailing slash
3032         test before testing whether SRC is a directory.
3033         Suggestions from Bruno Haible.
3034
3035         Avoid a warning about an unused variable.
3036         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
3037         into the #ifdef block where it's used.
3038
3039         * lib/rename-dest-slash.c: New file.
3040
3041 2006-09-14  Bruno Haible  <bruno@clisp.org>
3042
3043         * lib/allocsa.c: Include <config.h> unconditionally.
3044         * lib/asnprintf.c: Likewise.
3045         * lib/asprintf.c: Likewise.
3046         * lib/c-strcasecmp.c: Likewise.
3047         * lib/c-strcasestr.c: Likewise.
3048         * lib/c-strncasecmp.c: Likewise.
3049         * lib/c-strstr.c: Likewise.
3050         * lib/classpath.c: Likewise.
3051         * lib/clean-temp.c: Likewise.
3052         * lib/concatpath.c: Likewise.
3053         * lib/copy-file.c: Likewise.
3054         * lib/csharpcomp.c: Likewise.
3055         * lib/csharpexec.c: Likewise.
3056         * lib/execute.c: Likewise.
3057         * lib/fatal-signal.c: Likewise.
3058         * lib/findprog.c: Likewise.
3059         * lib/fwriteerror.c: Likewise.
3060         * lib/gl_array_list.c: Likewise.
3061         * lib/gl_array_oset.c: Likewise.
3062         * lib/gl_avltree_list.c: Likewise.
3063         * lib/gl_avltree_oset.c: Likewise.
3064         * lib/gl_avltreehash_list.c: Likewise.
3065         * lib/gl_carray_list.c: Likewise.
3066         * lib/gl_linked_list.c: Likewise.
3067         * lib/gl_linkedhash_list.c: Likewise.
3068         * lib/gl_list.c: Likewise.
3069         * lib/gl_oset.c: Likewise.
3070         * lib/gl_rbtree_list.c: Likewise.
3071         * lib/gl_rbtree_oset.c: Likewise.
3072         * lib/gl_rbtreehash_list.c: Likewise.
3073         * lib/imaxabs.c: Likewise.
3074         * lib/imaxdiv.c: Likewise.
3075         * lib/javacomp.c: Likewise.
3076         * lib/javaexec.c: Likewise.
3077         * lib/javaversion.c: Likewise.
3078         * lib/linebreak.c: Likewise.
3079         * lib/localcharset.c: Likewise.
3080         * lib/lock.c: Likewise.
3081         * lib/mbchar.c: Likewise.
3082         * lib/mbswidth.c: Likewise.
3083         * lib/mkdtemp.c: Likewise.
3084         * lib/pipe.c: Likewise.
3085         * lib/printf-args.c: Likewise.
3086         * lib/printf-parse.c: Likewise.
3087         * lib/progname.c: Likewise.
3088         * lib/progreloc.c: Likewise.
3089         * lib/readlink.c: Likewise.
3090         * lib/sh-quote.c: Likewise.
3091         * lib/stpcpy.c: Likewise.
3092         * lib/stpncpy.c: Likewise.
3093         * lib/strcasecmp.c: Likewise.
3094         * lib/strcasestr.c: Likewise.
3095         * lib/strcspn.c: Likewise.
3096         * lib/striconv.c: Likewise.
3097         * lib/strncasecmp.c: Likewise.
3098         * lib/strnlen1.c: Likewise.
3099         * lib/strstr.c: Likewise.
3100         * lib/strtok_r.c: Likewise.
3101         * lib/tls.c: Likewise.
3102         * lib/tmpdir.c: Likewise.
3103         * lib/unicodeio.c: Likewise.
3104         * lib/unsetenv.c: Likewise.
3105         * lib/vasnprintf.c: Likewise.
3106         * lib/vasprintf.c: Likewise.
3107         * lib/wait-process.c: Likewise.
3108         * lib/xallocsa.c: Likewise.
3109         * lib/xsetenv.c: Likewise.
3110         * lib/xstriconv.c: Likewise.
3111
3112 2006-09-13  Simon Josefsson  <jas@extundo.com>
3113
3114         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
3115         that internally, suggested by Ralf Wildenhues
3116         <Ralf.Wildenhues@gmx.de>.
3117
3118 2006-09-13  Simon Josefsson  <jas@extundo.com>
3119
3120         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
3121         @LIBOBJS@.
3122         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3123
3124 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3125
3126         * lib/_fpending.c: Include <config.h> unconditionally, since we no
3127         longer worry about uses that don't define HAVE_CONFIG_H.
3128         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
3129         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
3130         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
3131         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
3132         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
3133         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
3134         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
3135         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
3136         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
3137         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
3138         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
3139         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
3140         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
3141         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
3142         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
3143         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
3144         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
3145         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
3146         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
3147         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
3148         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
3149         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
3150         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
3151         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
3152         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
3153         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
3154         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
3155         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
3156         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
3157         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
3158         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
3159         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
3160         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
3161         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
3162         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
3163         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
3164         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
3165         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
3166         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
3167         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
3168         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
3169         Likewise.
3170
3171 2006-09-13  Eric Blake  <ebb9@byu.net>
3172
3173         * lib/getopt.c: Fix typo in last commit.
3174
3175 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3176
3177         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
3178         dgettext.
3179
3180 2006-09-12  Jim Meyering  <jim@meyering.net>
3181
3182         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
3183         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
3184         Reported by Nelson H. F. Beebe.
3185
3186 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
3187
3188         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
3189         program_invocation_name and program_invocation_short_name are
3190         initialized.
3191         * lib/argp-namefrob.h: Move declarations of program_invocation_name
3192         and program_invocation_short_name to argp.h, so they are visible
3193         to user programs.
3194         * lib/argp.h: Likewise
3195
3196 2006-09-10  Bruno Haible  <bruno@clisp.org>
3197
3198         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3199         m4/inttypes_h.m4, m4/uintmax_t.m4.
3200
3201 2006-09-10  Bruno Haible  <bruno@clisp.org>
3202
3203         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
3204         gl_AC_TYPE_UINTMAX_T.
3205
3206 2006-09-10  Bruno Haible  <bruno@clisp.org>
3207
3208         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
3209
3210 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
3211
3212         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
3213         convention.  Text proposed by Bruno Haible.
3214         (struct argp_option): Document the use of N_() wrappers.
3215
3216         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
3217         '\v', and translate the two parts separately, instead of feeding
3218         the whole string to gettext.  This allows to exclude
3219         '\v' from the strings visible to the translator by writing doc
3220         strings as N_("..") "\v" N_("..").
3221
3222 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3223
3224         * config/srclist.txt: Undo latest change; the bug was fixed.
3225
3226 2006-09-09  Bruno Haible  <bruno@clisp.org>
3227
3228         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
3229         assignments if building a library without libtool.
3230         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
3231         in func_emit_lib_Makefile_am.
3232         (func_import): When building a static library libfoo.a, arrange to
3233         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
3234         (func_create_testdir): Likewise.
3235         * modules/gc (configure.ac, Makefile.am): If building statically,
3236         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
3237         * modules/iconvme (configure.ac, Makefile.am): Likewise.
3238         * modules/striconv (configure.ac, Makefile.am): Likewise.
3239         Based on a suggestion by Ralf Wildenhues.
3240
3241 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3242
3243         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3244         Check for unistd.h too, since Autoconf doesn't assume POSIX.
3245         Also:
3246
3247         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3248         Add year_2050_test to catch glibc bug 2821
3249         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3250
3251         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3252         Prefer #ifdef to #if.
3253
3254         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
3255         Return from 'main' instead of calling 'exit'.
3256
3257 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3258
3259         * lib/mktime.c (guess_time_tm): Fix bug where mktime
3260         returned the maximum time_t value rather than (time_t) -1.
3261         Problem originally reported by William Bardwell
3262         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3263
3264         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3265         Moved to here ...
3266         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3267         ... from here.
3268
3269 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
3270
3271         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
3272         2821 is fixed.
3273
3274 2006-09-08  Jim Meyering  <jim@meyering.net>
3275
3276         Don't make generated files read-only.  That would bother too many
3277         people.  However, do retain the ability to work when targets are
3278         read-only: remove the destination and temporary files before writing
3279         them (when generated via sed or echo), or by using the -f option for
3280         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
3281         * modules/alloca-opt, modules/argz, modules/arpa_inet:
3282         * modules/byteswap, modules/configmake, modules/fcntl:
3283         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3284         * modules/localcharset, modules/netinet_in, modules/poll:
3285         * modules/stdbool, modules/stdint, modules/sys_select:
3286         * modules/sys_socket, modules/sys_stat, modules/sysexits:
3287
3288 2006-09-08  Jim Meyering  <jim@meyering.net>
3289
3290         Avoid new build failure on FreeBSD 6.0.
3291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
3292         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
3293         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
3294
3295 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3296
3297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
3298
3299 2006-09-07  Jim Meyering  <jim@meyering.net>
3300
3301         Fix global typo in last change: use chmod u-w, not chmod u-x.
3302         Spotted by Paul Eggert and Bruce Korb.
3303         * modules/alloca-opt, modules/argz, modules/arpa_inet:
3304         * modules/byteswap, modules/configmake, modules/fcntl:
3305         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3306         * modules/localcharset, modules/netinet_in, modules/poll:
3307         * modules/stdbool, modules/stdint, modules/sys_select:
3308         * modules/sys_socket, modules/sys_stat, modules/sysexits:
3309
3310 2006-09-06  Jim Meyering  <jim@meyering.net>
3311
3312         Make generated files be read-only.
3313         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
3314         Ensure that each generated file is now read-only.
3315         * modules/argz: Likewise.
3316         * modules/arpa_inet: Likewise.
3317         * modules/byteswap: Likewise.
3318         * modules/configmake: Likewise.
3319         * modules/fcntl: Likewise.
3320         * modules/fnmatch: Likewise.
3321         * modules/getopt: Likewise.
3322         * modules/glob: Likewise.
3323         * modules/inttypes: Likewise.
3324         * modules/netinet_in: Likewise.
3325         * modules/poll: Likewise.
3326         * modules/stdbool: Likewise.
3327         * modules/stdint: Likewise.
3328         * modules/sys_select: Likewise.
3329         * modules/sys_socket: Likewise.
3330         * modules/sys_stat: Likewise.
3331         * modules/sysexits: Likewise.
3332         * modules/localcharset: Same as above, but continue using temporary
3333         file named "t-$@" (why different?) rather than the "$@-t" used
3334         everywhere else.
3335
3336         * modules/sysexits (Makefile.am): Replace literal occurrences
3337         of "sysexit.h" more readable, and more consistent, "$@".
3338
3339 2006-09-06  Bruno Haible  <bruno@clisp.org>
3340
3341         * modules/striconv: New file.
3342         * modules/xstriconv: New file.
3343         * MODULES.html.sh (Internationalization functions): Add striconv,
3344         xstriconv.
3345
3346 2006-09-06  Bruno Haible  <bruno@clisp.org>
3347
3348         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
3349         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
3350         not using libtool correctly.
3351
3352 2006-09-06  Bruno Haible  <bruno@clisp.org>
3353
3354         * lib/striconv.h: New file.
3355         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
3356         iconvstring.c.
3357         * lib/xstriconv.h: New file.
3358         * lib/xstriconv.c: New file.
3359
3360 2006-09-06  Bruno Haible  <bruno@clisp.org>
3361
3362         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3363         lib_..._LDFLAGS.
3364
3365 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3366
3367         * lib/argz_.h: Sync from Libtool.
3368
3369         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
3370                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3371
3372         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
3373
3374 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
3375
3376         * modules/trim: New file.
3377
3378 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
3379
3380         * lib/trim.h: New file.
3381         * lib/trim.c: New file.
3382
3383 2006-09-05  Bruno Haible  <bruno@clisp.org>
3384
3385         * MODULES.html.sh (String handling): Add trim.
3386
3387 2006-09-04  Karl Berry  <karl@gnu.org>
3388
3389         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
3390         until next release.
3391
3392 2006-09-03  Bruno Haible  <bruno@clisp.org>
3393
3394         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
3395         correctly.
3396
3397 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3398
3399         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
3400         not gl_GETLOADAVG.  Omit unneeded semicolons.
3401         Problems reported by Ralf Wildenhues in
3402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3403         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
3404         at the end, which is the usual gnulib style.
3405
3406         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
3407         of doing all the work ourselves.
3408         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
3409         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
3410
3411 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3412
3413         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
3414         Problem reported by Ralf Wildenhues in
3415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3416
3417         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
3418         HAVE_STRUCT_STATFS_F_FSTYPENAME.
3419
3420 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3421
3422         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
3423         yesterday's patch by changing test -n to test -z.
3424
3425 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3426
3427         * modules/getloadavg (Files): Add m4/getloadavg.m4.
3428         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
3429         the former is now obsolescent.
3430
3431         * modules/chdir-long (Depends-on): Add fcntl.
3432
3433 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3434
3435         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
3436         obsolescent, and programs should use gnulib instead.
3437         * m4/getloadavg.m4: New file, with contents taken from Autoconf
3438         but with prefixes changed.
3439
3440 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3441
3442         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
3443         or stdbool.h, because they might not exist while configuring.
3444
3445         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
3446         Don't include unistd.h or limits.h; not needed, since chdir-long.h
3447         does that for us.
3448         (O_DIRECTORY): Remove.
3449
3450 2006-08-31  Eric Blake  <ebb9@byu.net>
3451
3452         * gnulib-tool: Don't let emacs change spaces to TAB.
3453
3454 2006-08-31  Bruno Haible  <bruno@clisp.org>
3455
3456         * gnulib-tool: When calling func_import more than once, do it in a
3457         subshell.
3458         Reported by Eric Blake <ebb9@byu.net>.
3459
3460 2006-08-31  Bruno Haible  <bruno@clisp.org>
3461
3462         * gnulib-tool (nl): Remove variable.
3463         (sed_transform_lib_file): Use more robust test for config-h module.
3464         (func_import): Fix typo in 2006-08-25 patch.
3465
3466 2006-08-31  Bruno Haible  <bruno@clisp.org>
3467
3468         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
3469         specified, augment Makefile.am variables instead of assigning them.
3470
3471 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3472
3473         Work around a bug in both the Linux and SunOS 64-bit kernels:
3474         nanosleep mishandles sleeps for longer than 2**31 seconds.
3475         Problem reported by Frank v Waveren in
3476         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
3478         Check for nanosleep bug.
3479         (LIB_NANOSLEEP): Append clock_gettime library if needed.
3480
3481 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3482
3483         Work around a bug in both the Linux and SunOS 64-bit kernels:
3484         nanosleep mishandles sleeps for longer than 2**31 seconds.
3485         Problem reported by Frank v Waveren in
3486         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3487         * lib/nanosleep.c (BILLION): New constant.
3488         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
3489         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
3490         implementation.
3491
3492 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3493
3494         * modules/nanosleep (Depends-on): Add gettime.
3495
3496 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3497         and Simon Josefsson  <jas@extundo.com>
3498         and Oskar Liljeblad  <oskar@osk.mine.nu>
3499
3500         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
3501         * gnulib-tool (func_import): New license type 'unmodifiable license
3502         text'.
3503         * modules/fdl: Use it.  Longer description.
3504         * module/gpl, module/lgpl: New files.
3505
3506 2006-08-30  Jim Meyering  <jim@meyering.net>
3507
3508         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
3509         shadowing the parameter.
3510
3511 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3512
3513         Sync from Libtool:
3514
3515         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3516
3517         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
3518         sharing with gnulib.  Report by Eric Blake.
3519
3520 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3521
3522         * modules/isapipe: New file.
3523         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
3524
3525 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3526
3527         * modules/configmake (Makefile.am): Add a comment, and omit
3528         the CONFIGMAKE_ prefix from generated macro names.  Suggested
3529         by Bruno Haible.
3530
3531 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3532
3533         * m4/isapipe.m4: New file.
3534
3535 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3536
3537         * lib/isapipe.c, lib/isapipe.h: New files.
3538
3539 2006-08-29  Jim Meyering  <jim@meyering.net>
3540
3541         * modules/configmake (Makefile.am): Make configmake.h depend on
3542         Makefile.  Otherwise, a stale configmake.h could hang around.
3543
3544 2006-08-29  Eric Blake  <ebb9@byu.net>
3545
3546         * lib/error.c (error_at_line, print_errno_message): Match libc, after
3547         resolution of upstream bug 3044.
3548
3549 2006-08-29  Bruno Haible  <bruno@clisp.org>
3550
3551         * modules/localcharset (Depends-on): Add configmake.
3552         (Makefile.am): Remove setting of LIBDIR through DEFS.
3553
3554 2006-08-29  Bruno Haible  <bruno@clisp.org>
3555
3556         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
3557         defined.
3558
3559 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3560
3561         * modules/fcntl: New file.
3562         * modules/chdir-safer (Depends-on): Add fcntl.
3563         * modules/fts: Likewise.
3564         * modules/mkdir-p: Likewise.
3565
3566         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
3567         This undoes the most recent change, since we're now addressing the
3568         problem in a different way.
3569
3570         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
3571         into output, since the output might be called Makefile.am even
3572         if $makefile_name is something different.
3573         (func_import): Use $makefile_am rather than
3574         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
3575         empty.
3576
3577         * modules/inttypes (Files): Add m4/inttypes-h.m4.
3578
3579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3580
3581         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
3582         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
3583         recent change to stdint.m4, since we're now addressing the problem in a
3584         different way.
3585
3586 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3587
3588         * m4/fcntl_h.m4: New file.
3589
3590 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
3591
3592         * lib/fcntl_.h: New file.
3593         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
3594         the fcntl module.
3595         * lib/dirchownmod.c: Likewise.
3596         * lib/fts.c: Likewise.
3597
3598         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
3599         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
3600         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
3601         just before including <inttypes.h>, to avoid circular inclusion.
3602
3603 2006-08-28  Jim Meyering  <jim@meyering.net>
3604
3605         * doc/visibility.texi: Actually read and correct the grammar of the
3606         sentence affected by yesterday's change.
3607
3608 2006-08-28  Eric Blake  <ebb9@byu.net>
3609
3610         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
3611         needs wrapper.
3612
3613 2006-08-28  Eric Blake  <ebb9@byu.net>
3614
3615         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
3616
3617 2006-08-28  Eric Blake  <ebb9@byu.net>
3618
3619         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
3620
3621 2006-08-28  Bruno Haible  <bruno@clisp.org>
3622
3623         * modules/c-strstr: New file, from GNU gettext.
3624         * MODULES.html.sh (String handling): Add c-strstr.
3625
3626 2006-08-28  Bruno Haible  <bruno@clisp.org>
3627
3628         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
3629         macros.
3630         Reported by Eric Blake.
3631
3632 2006-08-28  Bruno Haible  <bruno@clisp.org>
3633
3634         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
3635         (VASNPRINTF): Return a string of length > INT_MAX without failing.
3636         * lib/vasprintf.c: Include errno.h, limits.h.
3637         (EOVERFLOW): New fallback definition.
3638         (vasprintf): Test here whether the string length is > INT_MAX.
3639         * lib/vsnprintf.c: Include errno.h, limits.h.
3640         (EOVERFLOW): New fallback definition.
3641         (vsnprintf): Fix bug when generated string was too long for the buffer.
3642         Test here whether the string length is > INT_MAX.
3643
3644 2006-08-28  Bruno Haible  <bruno@clisp.org>
3645
3646         * lib/inttypes_.h (SCNX*): Remove definitions.
3647         Reported by Eric Blake.
3648
3649 2006-08-28  Bruno Haible  <bruno@clisp.org>
3650
3651         * lib/c-strstr.h: New file, from GNU gettext.
3652         * lib/c-strstr.c: New file, from GNU gettext.
3653
3654 2006-08-28  Bruno Haible  <bruno@clisp.org>
3655
3656         * gnulib-tool: Reorder some statements.
3657
3658 2006-08-28  Bruno Haible  <bruno@clisp.org>
3659
3660         * gnulib-tool: New option --makefile-name.
3661         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
3662         $makefile_name.
3663         (func_import): Write $makefile_name to the cache file, and read it from
3664         there unless explicitly specified. Use $makefile_name as file name
3665         instead of Makefile.am. Adjust the recommendations accordingly.
3666
3667 2006-08-28  Bruno Haible  <bruno@clisp.org>
3668
3669         * gnulib-tool (func_verify_module): Check against misapplying patch.
3670
3671 2006-08-28  Bruno Haible  <bruno@clisp.org>
3672
3673         * gnulib-tool (func_relativize, func_relconcat): New functions.
3674         Give an error if --local-dir is given with --update.
3675         Remove trailing slashes from $local_gnulib_dir.
3676         (func_import): Store the relativized $local_gnulib_dir in
3677         gnulib-cache.m4, and read it from there if not specified explicitly.
3678
3679 2006-08-28  Bruno Haible  <bruno@clisp.org>
3680
3681         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
3682         is the current directory. Respect also $local_gnulib_dir.
3683
3684 2006-08-28  Bruno Haible  <bruno@clisp.org>
3685             Simon Josefsson  <jas@extundo.com>
3686
3687         BeOS portability.
3688         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
3689
3690 2006-08-27  Jim Meyering  <jim@meyering.net>
3691
3692         * doc/visibility.texi: Remove duplicate word: "pointer".
3693
3694 2006-08-26  Bruno Haible  <bruno@clisp.org>
3695
3696         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
3697         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
3698         (Makefile.am): Create inttypes.h from inttypes_.h.
3699         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
3700
3701         * modules/imaxabs: New file.
3702
3703         * modules/imaxdiv: New file.
3704
3705 2006-08-26  Bruno Haible  <bruno@clisp.org>
3706
3707         * m4/inttypes.m4: New file.
3708         * m4/_inttypes_h.m4: Remove file.
3709         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
3710         PRI_MACROS_BROKEN.
3711         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
3712
3713         * m4/imaxabs.m4: New file.
3714
3715         * m4/imaxdiv.m4: New file.
3716
3717 2006-08-26  Bruno Haible  <bruno@clisp.org>
3718
3719         * lib/inttypes_.h: New file.
3720         * lib/inttypes.h: Remove file.
3721         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
3722
3723         * lib/imaxabs.c: New file.
3724
3725         * lib/imaxdiv.c: New file.
3726
3727 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3728
3729         New config-h module, so that "make" output needn't be cluttered
3730         by -DHAVE_CONFIG_H.
3731         * MODULES.html.sh (Support for building libraries and executables):
3732         Add config-h.
3733         * modules/config-h: New file.
3734         * gnulib-tool (nl, sed_transform_lib_file): New vars.
3735         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
3736         the config-h module is used.
3737
3738         New configmake module, so that "make" output needn't be cluttered
3739         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
3740         * MODULES.html.sh (Support for building libraries and executables):
3741         Add configmake.
3742         * modules/configmake: New file.
3743
3744 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3745
3746         * m4/config-h.m4: New file.
3747
3748 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3749
3750         * config/srclist.txt: Add elisp-comp.
3751
3752 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3753
3754         * MODULES.html.sh (Support for building libraries and executables):
3755         Add elisp-comp.
3756         * build-aux/elisp-comp: New file.
3757         * modules/elisp-comp: New file.
3758
3759 2006-08-24  Bruno Haible  <bruno@clisp.org>
3760
3761         * gnulib-tool (func_create_testdir): Use non-default values of
3762         sourcebase and m4base.
3763
3764 2006-08-24  Bruno Haible  <bruno@clisp.org>
3765
3766         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
3767         HTML structure.
3768
3769 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3770
3771         * modules/openat (Depends-on): Add lchown.
3772
3773 2006-08-23  Bruno Haible  <bruno@clisp.org>
3774
3775         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
3776         of gl_LOCK_EARLY instead of gl_LOCK.
3777
3778 2006-08-23  Bruno Haible  <bruno@clisp.org>
3779
3780         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
3781         on OSF/1 to no.
3782         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
3783
3784 2006-08-23  Bruno Haible  <bruno@clisp.org>
3785
3786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
3787         as unusable.
3788
3789         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
3790         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
3791         (gl_LOCK): New macro.
3792
3793 2006-08-22  Simon Josefsson  <jas@extundo.com>
3794
3795         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
3796         to md5 module.
3797
3798 2006-08-22  Simon Josefsson  <jas@extundo.com>
3799
3800         * MODULES.html.sh: Add "Support for maintaining and release
3801         projects".
3802
3803         * build-aux/gnupload: New file, from coreutils.
3804
3805 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3806
3807         Avoid the need for AC_LIBSOURCES in m4 macros.
3808         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
3809         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
3810         * modules/check-version (EXTRA_DIST): Add check-version.h.
3811         * modules/crc (EXTRA_DIST): Add crc.h.
3812         * modules/des (EXTRA_DIST): Add des.h.
3813         * modules/gc (EXTRA_DIST): Add gc.h.
3814         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
3815         * modules/getline (EXTRA_DIST): Add getline.h.
3816         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
3817         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
3818         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
3819         * modules/md2 (EXTRA_DIST): Add md2.h.
3820         * modules/md4 (EXTRA_DIST): Add md4.h.
3821         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
3822         * modules/read-file (EXTRA_DIST): Add read-file.h.
3823         * modules/readline (EXTRA_DIST): Add readline.h.
3824         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
3825         rijndael-api-fst.h.
3826
3827 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3828
3829         * m4/rijndael.m4 (gl_ARCFOUR):
3830         * m4/arctwo.m4 (gl_ARCTWO):
3831         * m4/check-version.m4 (gl_CHECK_VERSION):
3832         * m4/crc.m4 (gl_CRC):
3833         * m4/des.m4 (gl_DES):
3834         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
3835         * m4/gc.m4 (gl_GC):
3836         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
3837         * m4/getline.m4 (gl_FUNC_GETLINE):
3838         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
3839         * m4/hmac-md5.m4 (gl_HMAC_MD5):
3840         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
3841         * m4/md2.m4 (gl_MD2):
3842         * m4/md4.m4 (gl_MD4):
3843         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
3844         * m4/read-file.m4 (gl_FUNC_READ_FILE):
3845         * m4/readline.m4 (gl_FUNC_READLINE):
3846         * m4/rijndael.m4 (gl_RIJNDAEL):
3847         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
3848         to get the necessary .h files and whatnot.
3849
3850 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
3853         gnulib rather than the other way around.
3854         * config/srclistvars.sh (COREUTILS): Remove.
3855
3856 2006-08-22  Jim Meyering  <jim@meyering.net>
3857
3858         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
3859
3860         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
3861
3862 2006-08-22  Eric Blake  <ebb9@byu.net>
3863
3864         * modules/regexprops-generic: New file.
3865         * MODULES.html.sh (Support for building documentation): List it.
3866
3867 2006-08-22  Eric Blake  <ebb9@byu.net>
3868
3869         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
3870         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3871         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3872         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3873
3874 2006-08-22  Bruno Haible  <bruno@clisp.org>
3875
3876         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
3877         and lib_LTLIBRARIES like the other lib_* variables.
3878
3879 2006-08-22  Bruno Haible  <bruno@clisp.org>
3880
3881         * build-aux/x-to-1.in: New file, from GNU gettext.
3882
3883 2006-08-22  Bruno Haible  <bruno@clisp.org>
3884
3885         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
3886         <utmpx.h> exists.
3887
3888 2006-08-22  Bruno Haible  <bruno@clisp.org>
3889
3890         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
3891         <utmpx.h> exists.
3892
3893 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3894
3895         BeOS portability.
3896         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
3897         exist.
3898         Problem reported by Bruno Haible.
3899
3900 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3901
3902         Avoid the need for AC_LIBSOURCES in m4 macros.
3903         * modules/acl (EXTRA_DIST): Add acl.h.
3904         * modules/argmatch (Files): Add m4/argmatch.m4.
3905         (configure.ac): Add gl_ARGMATCH.
3906         (EXTRA_DIST): Renamed from lib_SOURCES, for
3907         consistency with the other modules.  Remove argmatch.c.
3908         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
3909         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
3910         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
3911         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
3912         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
3913         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
3914         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
3915         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
3916         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
3917         * modules/closeout (EXTRA_DIST): Add closeout.h.
3918         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
3919         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
3920         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
3921         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
3922         dirname.h; remove basename.c and stripslash.c.
3923         * modules/exclude (EXTRA_DIST): Add exclude.h.
3924         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
3925         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
3926         * modules/file-type (EXTRA_DIST): Add file-type.h.
3927         * modules/filemode (EXTRA_DIST): Add filemode.h.
3928         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
3929         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3930         * modules/fpending (EXTRA_DIST): Add __fpending.h.
3931         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
3932         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
3933         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
3934         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
3935         * modules/getdate (EXTRA_DIST): Add getdate.c.
3936         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
3937         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
3938         * modules/getpass (EXTRA_DIST): Add getpass.h.
3939         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
3940         * modules/group-member (EXTRA_DIST): Add group-member.h.
3941         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
3942         * modules/hash (EXTRA_DIST): Add hash.h.
3943         * modules/human (EXTRA_DIST): Add human.h.
3944         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
3945         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
3946         * modules/lchown (EXTRA_DIST): Add lchown.h.
3947         * modules/long-options (EXTRA_DIST): Add long-options.h.
3948         * modules/lstat (EXTRA_DIST): Add lstat.h.
3949         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
3950         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
3951         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
3952         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
3953         * modules/memxor (EXTRA_DIST): Add memxor.h.
3954         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
3955         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
3956         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
3957         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
3958         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
3959         * modules/physmem (EXTRA_DIST): Add physmem.h.
3960         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
3961         * modules/posixver (EXTRA_DIST): Add posixver.h.
3962         * modules/quote (EXTRA_DIST): Add quote.h.
3963         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
3964         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
3965         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
3966         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
3967         regex_internal.h regexec.c.
3968         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
3969         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
3970         * modules/same (EXTRA_DIST): Add same.h.
3971         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
3972         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
3973         * modules/savedir (EXTRA_DIST): Add savedir.h.
3974         * modules/sha1 (EXTRA_DIST): Add sha1.h.
3975         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
3976         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
3977         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
3978         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
3979         * modules/strdup (EXTRA_DIST): Add strdup.h.
3980         * modules/strftime (EXTRA_DIST): Add strftime.h.
3981         * modules/strndup (EXTRA_DIST): Add strndup.h.
3982         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
3983         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
3984         * modules/time_r (EXTRA_DIST): Add time_r.h.
3985         * modules/timespec (EXTRA_DIST): Add timespec.h.
3986         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
3987         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
3988         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
3989         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
3990         * modules/userspec (EXTRA_DIST): Add userspec.h.
3991         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
3992         * modules/utimens (EXTRA_DIST): Add utimens.h.
3993         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
3994         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
3995         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
3996         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
3997         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
3998         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
3999         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
4000         * modules/yesno (EXTRA_DIST): Add yesno.h.
4001
4002 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4003
4004         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
4005
4006         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
4007         * m4/dev-ino.m4, same-inode.m4: Remove.
4008
4009         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
4010         * m4/acl.m4 (AC_FUNC_ACL):
4011         * m4/backupfile.m4 (gl_BACKUPFILE):
4012         * m4/c-strtod.m4 (gl_C99_STRTOLD):
4013         * m4/canon-host.m4 (gl_CANON_HOST):
4014         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
4016         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
4017         * m4/cloexec.m4 (gl_CLOEXEC):
4018         * m4/close-stream.m4 (gl_CLOSE_STREAM):
4019         * m4/closeout.m4 (gl_CLOSEOUT):
4020         * m4/dirfd.m4 (gl_FUNC_DIRFD):
4021         * m4/dirname.m4 (gl_DIRNAME):
4022         * m4/exclude.m4 (gl_EXCLUDE):
4023         * m4/exitfail.m4 (gl_EXITFAIL):
4024         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
4025         * m4/file-type.m4 (gl_FILE_TYPE):
4026         * m4/filemode.m4 (gl_FILEMODE):
4027         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
4028         * m4/fpending.m4 (gl_FUNC_FPENDING):
4029         * m4/fprintftime.m4 (gl_FPRINTFTIME):
4030         * m4/fts.m4 (gl_FUNC_FTS):
4031         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
4032         * m4/getdate.m4 (gl_GETDATE):
4033         * m4/gethrxtime.m4 (gl_GETHRXTIME):
4034         * m4/getpagesize.m4 (gl_GETPAGESIZE):
4035         * m4/getpass.m4 (gl_FUNC_GETPASS):
4036         * m4/gettime.m4 (gl_GETTIME):
4037         * m4/getugroups.m4 (gl_GETUGROUPS):
4038         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
4039         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
4040         * m4/hard-locale.m4 (gl_HARD_LOCALE):
4041         * m4/hash.m4 (gl_HASH):
4042         * m4/idcache.m4 (gl_IDCACHE):
4043         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
4044         * m4/lchown.m4 (gl_FUNC_LCHOWN):
4045         * m4/long-options.m4 (gl_LONG_OPTIONS):
4046         * m4/lstat.m4 (gl_FUNC_LSTAT):
4047         * m4/md5.m4 (gl_MD5):
4048         * m4/memcasecmp.m4 (gl_MEMCASECMP):
4049         * m4/memcoll.m4 (gl_MEMCOLL):
4050         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
4051         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
4052         * m4/memxor.m4 (gl_MEMXOR):
4053         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
4054         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
4055         * m4/modechange.m4 (gl_MODECHANGE):
4056         * m4/mountlist.m4 (gl_MOUNTLIST):
4057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4058         * m4/openat.m4 (gl_FUNC_OPENAT):
4059         * m4/pathmax.m4 (gl_PATHMAX):
4060         * m4/physmem.m4 (gl_PHYSMEM):
4061         * m4/posixtm.m4 (gl_POSIXTM):
4062         * m4/posixver.m4 (gl_POSIXVER):
4063         * m4/quote.m4 (gl_QUOTE):
4064         * m4/quotearg.m4 (gl_QUOTEARG):
4065         * m4/readtokens.m4 (gl_READTOKENS):
4066         * m4/readutmp.m4 (gl_READUTMP):
4067         * m4/regex.m4 (gl_REGEX):
4068         * m4/safe-read.m4 (gl_SAFE_READ):
4069         * m4/safe-write.m4 (gl_SAFE_WRITE):
4070         * m4/same.m4 (gl_SAME):
4071         * m4/save-cwd.m4 (gl_SAVE_CWD):
4072         * m4/savedir.m4 (gl_SAVEDIR):
4073         * m4/settime.m4 (gl_SETTIME):
4074         * m4/sha1.m4 (gl_SHA1):
4075         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
4076         * m4/stat-macros.m4 (gl_STAT_MACROS):
4077         * m4/stat-time.m4 (gl_STAT_TIME):
4078         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
4079         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
4080         * m4/strdup.m4 (gl_FUNC_STRDUP):
4081         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
4082         * m4/strndup.m4 (gl_FUNC_STRNDUP):
4083         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
4084         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
4085         * m4/time_r.m4 (gl_TIME_R):
4086         * m4/timespec.m4 (gl_TIMESPEC):
4087         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
4088         * m4/unlinkdir.m4 (gl_UNLINKDIR):
4089         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
4090         * m4/userspec.m4 (gl_USERSPEC):
4091         * m4/utimecmp.m4 (gl_UTIMECMP):
4092         * m4/utimens.m4 (gl_UTIMENS):
4093         * m4/xalloc.m4 (gl_XALLOC):
4094         * m4/xgetcwd.m4 (gl_XGETCWD):
4095         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
4096         * m4/xreadlink.m4 (gl_XREADLINK):
4097         * m4/xstrtod.m4 (gl_XSTRTOD):
4098         * m4/yesno.m4 (gl_YESNO):
4099         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
4100         to get the necessary .h files and whatnot.
4101
4102 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
4103             Bruno Haible  <bruno@clisp.org>
4104
4105         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
4106         /bin/sh understanding of '!' conditional negation.
4107
4108 2006-08-21  Jim Meyering  <jim@meyering.net>
4109
4110         * modules/openat (Depends-on): Really alphabetize.
4111
4112         * modules/acl (Depends-on): Add error and quote.
4113
4114         * check-module (find_included_lib_files): Add at-func.c to the
4115         ok-to-include-more-than-once white list.
4116
4117         * modules/openat (Depends-on): Add lstat.  Alphabetize.
4118
4119 2006-08-21  Bruno Haible  <bruno@clisp.org>
4120
4121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4122         Emit a pkgdata_DATA variable only if some snippets add contents to it.
4123         Reported by Martin Lambers <marlam@marlam.de>.
4124
4125 2006-08-21  Bruno Haible  <bruno@clisp.org>
4126
4127         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
4128         specify an installation location, don't emit a noinst_LIBRARIES or
4129         noinst_LTLIBRARIES assignment.
4130
4131 2006-08-21  Bruno Haible  <bruno@clisp.org>
4132
4133         BeOS portability.
4134         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
4135         BeOS has mbrtowc() but no <wctype.h>.
4136
4137 2006-08-21  Bruno Haible  <bruno@clisp.org>
4138
4139         BeOS portability.
4140         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
4141         exist.
4142
4143 2006-08-21  Bruno Haible  <bruno@clisp.org>
4144
4145         BeOS portability.
4146         * lib/mbchar.h: Include <wctype.h> only if it exists.
4147
4148 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4149
4150         Remove files that are no longer needed by their respective modules.
4151         * m4/obstack.m4: Remove.
4152         * m4/strerror_r.m4: Remove.
4153         * m4/uint32_t.m4: Remove.
4154         * m4/uintptr_t.m4: Remove.
4155         * m4/ullong_max.m4: Remove.
4156         * m4/xstrtoimax.m4: Remove.
4157         * m4/xstrtoumax.m4: Remove.
4158
4159         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
4160         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
4161         dependencies now capture this.
4162
4163         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
4164         Do not use AC_LIBSOURCES, since gnulib modules now do this.
4165         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
4166         * m4/human.m4 (gl_HUMAN): Likewise.
4167         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
4168         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
4169
4170         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
4171
4172         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
4173         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
4174         stdint.
4175         * m4/human.m4 (gl_HUMAN): Likewise.
4176         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
4177         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
4178         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4179         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4180         * m4/xstrtol (gl_XSTRTOL): Likewise.
4181
4182         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
4183         AC_TYPE_LONG_LONG_INT.
4184         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4185         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
4186         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
4187         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4188
4189         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
4190         on stdbool.
4191
4192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
4193         (gl_PREREQ_XSTRTOUL): Remove.
4194
4195         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
4196
4197         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
4198         mode.
4199
4200 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         Add and change modules to make it easier for coreutils to use
4203         gnulib-tool.
4204         * modules/backupfile (Files): Remove m4/d-ino.m4.
4205         (Depends-on): Add d-ino.
4206         * modules/cycle-check (Depends-on): Add stdint.
4207         (lib_SOURCES): Add cycle-check.h.
4208         * modules/d-ino: New module.
4209         * modules/d-type: New module.
4210         * modules/error (Files): Remove m4/strerror_r.m4.
4211         * modules/filemode (Files): Add m4/st_dm_mode.m4.
4212         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4213         m4/inttypes_h.m4, m4/uintmax_t.m4.
4214         (Depends-on): Add stdint.
4215         (lib_SOURCES): Add fsusage.h.
4216         * modules/getcwd (Files): Remove d-ino.m4.
4217         (Depends-on): Add d-ino.
4218         * modules/getndelim2 (Depends-on): Add stdint.
4219         * modules/glob (Files): Remove m4/d-type.m4.
4220         (Depends-on): Add d-type.
4221         * modules/host-os: New module.
4222         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
4223         m4/inttypes_h.m4, m4/uintmax_t.m4.
4224         * Depends-on: Add stdint.
4225         (lib_SOURCES): Add human.h.
4226         * modules/inttostr (Files): Remove m4/intmax_t.m4,
4227         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
4228         m4/uintmax_t.m4, m4/ulonglong.m4.
4229         (Depends-on): Add stdint.
4230         (EXTRA_DIST): Add inttostr.h.
4231         * modules/lchmod: New module.
4232         * modules/link-follow: New module.
4233         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
4234         (Depends-on): Add lchmod.
4235         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
4236         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
4237         (Depends-on): Add stdint.
4238         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
4239         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
4240         (Depends-on): Add stdint.
4241         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
4242         * modules/perl: New module.
4243         * modules/regex (Depends-on): Add stdint.
4244         * modules/rmdir-errno: New module.
4245         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4246         m4/intmax_t.m4.
4247         (Depends-on): Add stdint.
4248         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4249         m4/uintmax_t.m4.
4250         (Depends-on): Add stdint.
4251         * modules/unlink-busy: New module.
4252         * modules/utimecmp (Depends-on): Add stdint.
4253         * modules/uptime: New module.
4254         * modules/winsz-ioctl: New module.
4255         * modules/winsz-termios: New module.
4256         * modules/xnanosleep (Depends-on): Add nanosleep.
4257         * modules/ullong_max: Remove.
4258         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
4259         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
4260         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
4261         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
4262         (Depends-on): Add inttypes.
4263         (lib_SOURCES): Add xstrtol.h.
4264         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
4265         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
4266         * MODULES.html.sh: Move 'assert' into the assert section.
4267         Move 'dummy' into the linking section.
4268         Remove ullong_max.
4269         Add section for compatibility checks for POSIX:2001 functions,
4270         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
4271         winsz-ioctl, and winsz-termios into it.
4272         Add lchmod.
4273         Add top-level Misc section and put host-os, perl, and uptime
4274         into it.
4275
4276 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4277
4278         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
4279         now assume the stdint module.  Do not include inttypes.h.
4280         * lib/fsusage.h: Likewise.
4281         * lib/getndelim2.c: Likewise.
4282         * lib/human.h: Likewise.
4283         * lib/inttostr.h: Likewise.
4284         * lib/obstack.c: Likewise.
4285         * lib/regex_internal.h: Likewise.
4286         * lib/tempname.c: Likewise.
4287         * lib/utimecmp.c: Likewise.
4288         * lib/xstrtol.h: Likewise.
4289
4290         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
4291
4292         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
4293         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
4294         * lib/xtime.h: Likewise.
4295
4296 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         * modules/openat (Files): Add lib/fchmodat.c.
4299         Fixes problem reported by Jay Youngman.
4300
4301 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4302
4303         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
4304         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
4305
4306 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4307             Bruno Haible  <bruno@clisp.org>
4308
4309         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
4310         and is a script that invokes bison. Tighten the code. Add comments.
4311
4312 2006-08-18  Jim Meyering  <jim@meyering.net>
4313
4314         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
4315         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
4316         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
4317         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
4318
4319 2006-08-18  Bruno Haible  <bruno@clisp.org>
4320
4321         * modules/bison-i18n: New file.
4322         * MODULES.html.sh (Internationalization functions): Add it.
4323
4324 2006-08-18  Bruno Haible  <bruno@clisp.org>
4325
4326         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
4327         sys/statvfs.h. When getmntinfo was found, check its declaration and
4328         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
4329
4330 2006-08-18  Bruno Haible  <bruno@clisp.org>
4331
4332         * m4/bison-i18n.m4: New file, from bison.
4333
4334 2006-08-18  Bruno Haible  <bruno@clisp.org>
4335
4336         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
4337         (ME_DUMMY): Treat "kernfs" as a dummy.
4338         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
4339
4340 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4341
4342         Update from coreutils.
4343
4344         2006-08-15  Jim Meyering  <jim@meyering.net>
4345
4346         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
4347
4348         2006-01-17  Jim Meyering  <jim@meyering.net>
4349
4350         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
4351
4352         2006-01-11  Jim Meyering  <jim@meyering.net>
4353
4354         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
4355         Check for the lchmod function.
4356
4357 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         Update from coreutils.
4360
4361         * lib/__fpending.h: Add copyright notice.
4362         * lib/fprintftime.h: Likewise.
4363         * lib/savedir.c: Use (C) in copyright notice.
4364         * lib/savedir.h: Likewise.
4365
4366         2006-08-15  Jim Meyering  <jim@meyering.net>
4367
4368         * lib/at-func.c: New file, with the logic of all emulated at-functions.
4369         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
4370         in support of the EXPECTED_ERRNO macro.
4371         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
4372         definitions.  Instead, define the appropriate symbols and include
4373         "at-func.c".
4374         * lib/mkdirat.c (mkdirat): Likewise.
4375         * lib/fchmodat.c (fchmodat): Likewise.
4376         (ENOSYS): Remove definition.
4377         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
4378         it.  Don't include "unistd--.h" -- it wasn't ever used.
4379
4380         2006-01-17  Jim Meyering  <jim@meyering.net>
4381
4382         Rewrite fts.c not to change the current working directory,
4383         by using openat, fstatat, fdopendir, etc..
4384
4385         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
4386         (HAVE_OPENAT_SUPPORT): Define.
4387         [_LIBC] (fchdir): Don't undef or define; no longer used.
4388         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
4389         Now, this `function' always succeeds, and consumes its file descriptor
4390         parameter -- so callers must not close such FDs.  Update callers.
4391         (diropen_fd, opendirat, cwd_advance_fd): New functions.
4392         (diropen): Add parameter, SP.  Adjust all callers.
4393         Implement using diropen_fd, rather than open.
4394         (fts_open): Initialize new member, fts_cwd_fd.
4395         Remove fts_rft-setting code.
4396         (fts_close): Close fts_cwd_fd, if necessary.
4397         (__opendir2): Define in terms of opendir or opendirat,
4398         depending on whether the FST_NOCHDIR flag is set.
4399         (fts_build): Since fts_safe_changedir consumes its FD, and since
4400         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
4401         and close the dup'd file descriptor upon failure.
4402         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
4403         (fts_safe_changedir): Tweak semantics to reflect that this function
4404         now calls cwd_advance_fd and hence consumes its FD argument.
4405         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
4406         [struct FTS] (fts_rft): Remove now-unused member.
4407         [struct FTS] (fts_cycle.state): Improve comment.
4408
4409         * lib/openat.c (openat_needs_fchdir): New function.
4410         * lib/openat.h (openat_needs_fchdir): Declare it.
4411
4412 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4413
4414         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
4415         Problem and fix reported by Pádraig Brady in
4416         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
4417
4418 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
4421
4422 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4423
4424         * lib/memcoll.c (memcoll): Optimize for the common case where the
4425         arguments are bytewise equal.
4426
4427 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4428
4429         * doc/regexprops-generic.texi: Add a copyright notice.
4430
4431 2006-08-15  Bruno Haible  <bruno@clisp.org>
4432
4433         * modules/tmpdir (License): Change to LGPL.
4434
4435 2006-08-15  Bruno Haible  <bruno@clisp.org>
4436
4437         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
4438         module.
4439
4440 2006-08-14  Simon Josefsson  <jas@extundo.com>
4441
4442         * config/srclist.txt: Add gnupload.
4443
4444 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4445
4446         Change copyright notice from LGPL 2 to GPL 2, since that's the
4447         standard form used in the gnulib repository.
4448         * tests/test-lock.c: Likewise.
4449         * tests/test-stdint.c: Likewise.
4450         * tests/test-tls.c: Likewise.
4451
4452         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
4453         prelude-manager.  User shorter URLs for GNU projects, without '?'.
4454         Add copyright notice.
4455
4456         * check-module: Add copyright notice.  Output a copyright
4457         notice if "--version" is specified.
4458         * modules/COPYING: New file.
4459         * tests/test-getaddrinfo.c: Add copyright notice.
4460         * tests/test-verify.c: Likewise.
4461
4462 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4463
4464         Change copyright notice from LGPL 2 to GPL 2, since that's the
4465         standard form used in the gnulib repository.
4466         * lib/lock.c: LGPL -> GPL.
4467         * lib/lock.h: Likewise.
4468         * lib/strnlen1.c: Likewise.
4469         * lib/strnlen1.h: Likewise.
4470         * lib/tls.c: Likewise.
4471         * lib/tls.h: Likewise.
4472         * lib/tmpdir.c: Likewise.
4473
4474         * lib/TODO: Remove; this belongs only in coreutils.
4475
4476 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4477
4478         Add copyright notices to long-enough files that lack them, since
4479         otherwise the files aren't clearly free.  Use the same notice that
4480         getdate.texi already uses.
4481         * doc/alloca-opt.texi: Add copyright notice.
4482         * doc/alloca.texi: Likewise.
4483         * doc/ctime.texi: Likewise.
4484         * doc/functions.texi: Likewise.
4485         * doc/gcd.texi: Likewise.
4486         * doc/gnulib-tool.texi: Likewise.
4487         * doc/inet_ntoa.texi: Likewise.
4488         * doc/visibility.texi: Likewise.
4489
4490         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
4491         * doc/quote.texi: Add copyright notice.
4492
4493         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
4494         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
4495         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
4496         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
4497         is now obsolete, and give a pointer to the Sun list.
4498         Add copyright notice.
4499
4500 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4501
4502         * config/srclistvars.sh: Add copyright notice.
4503
4504 2006-08-14  Eric Blake  <ebb9@byu.net>
4505
4506         Import the following change from libc:
4507
4508         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
4509
4510         Upstream bug 2997.
4511         * lib/misc/error.c: Add space between program name and message if file
4512         name is missing.
4513
4514 2006-08-12  Karl Berry  <karl@gnu.org>
4515
4516         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
4517         remove, these originate in gnulib now.
4518
4519 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4520
4521         * doc/Makefile (standards.info standards.html standards.dvi):
4522         Also depend on make-stds.texi.
4523
4524 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4525
4526         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
4527         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
4528
4529         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
4530         in wchar_t.  Problem reported by Eric Blake.
4531
4532         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
4533         LEN is smaller than SIZE.  Suggested by Bruno Haible.
4534         Also, help the compiler to keep LEN in a register.
4535
4536 2006-08-11  Eric Blake  <ebb9@byu.net>
4537
4538         * users.txt: Sort.  Add tar.
4539
4540 2006-08-11  Bruno Haible  <bruno@clisp.org>
4541
4542         * users.txt: New file.
4543
4544 2006-08-11  Bruno Haible  <bruno@clisp.org>
4545
4546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
4547         before <wchar.h>. Needed for OSF/1 and BSD/OS.
4548
4549 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4550
4551         * modules/snprintf (Depends-on): Remove minmax.
4552         (Maintainer): Add self and Bruno.
4553
4554 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4555
4556         * lib/.cppi-disable: Add snprintf.h, socket_.h.
4557         * lib/snprintf.c: Include <errno.h> and <limits.h>.
4558         (EOVERFLOW): Define if the system does not.
4559         Do not include "minmax.h"; it wasn't used.
4560         (snprintf): Don't assume size_t promotes to an unsigned type.
4561         Fix bug when generated string was too long for the buffer: the
4562         buffer's contents are supposed to be the initial prefix of the
4563         output.  Don't assume vasnprintf returns EOVERFLOW if the size
4564         exceeds INT_MAX; do the check ourselves.
4565
4566         Import the following changes from libc:
4567
4568         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
4569
4570         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
4571         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
4572         set wc to the byte which couldn't be converted.
4573         (re_string_reconstruct): Don't clear valid_raw_len before calling
4574         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
4575         tip_context using re_string_context_at.
4576
4577         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
4578
4579         * lib/posix/regex.h: g++ still cannot handled [restrict].
4580
4581         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
4582
4583         * lib/posix/regex.h: Remove special handling for VMS.
4584
4585 2006-08-10  Jim Meyering  <jim@meyering.net>
4586
4587         * modules/same-inode: New module.
4588         * modules/dev-ino: New module.
4589         * modules/cycle-check: Depend on these modules, rather than simply
4590         including their .h files.
4591         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
4592         required via m4/cycle-check.m4.
4593         * modules/same: Depend on new same-inode module, rather than
4594         including same-inode.h.
4595         * modules/chdir-safer: New file.
4596
4597         * modules/chown (Depends-on): Add stat-macros.
4598
4599 2006-08-10  Jim Meyering  <jim@meyering.net>
4600
4601         * m4/cycle-check.m4: New file.
4602         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
4603         * m4/dev-ino.m4, m4/same-inode.m4: New files.
4604
4605 2006-08-10  Eric Blake  <ebb9@byu.net>
4606
4607         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
4608         in from original proposal.
4609
4610 2006-08-10  Eric Blake  <ebb9@byu.net>
4611         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4612
4613         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
4614         namespace.
4615
4616 2006-08-10  Bruno Haible  <bruno@clisp.org>
4617
4618         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
4619         as well.
4620
4621 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4622
4623         Sync from coreutils.
4624
4625         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
4626
4627         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
4628         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
4629
4630 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4631
4632         * modules/restrict: Remove; no longer needed now that we assume
4633         Autoconf 2.59 or later.
4634         * MODULES.html.sh: Remove 'restrict'.
4635         * modules/argp (Depends-on): Remove 'restrict'.
4636         * modules/base64 (Depends-on): Likewise.
4637         * modules/gc (Depends-on): Likewise.
4638         * modules/getaddrinfo (Depends-on): Likewise.
4639         * modules/glob (Depends-on): Likewise.
4640         * modules/inet_ntop (Depends-on): Likewise.
4641         * modules/inet_pton (Depends-on): Likewise.
4642         * modules/memxor (Depends-on): Likewise.
4643         * modules/regex (Depends-on): Likewise.
4644         * modules/strtok_r (Depends-on): Likewise.
4645         * modules/time_r (Depends-on): Likewise.
4646
4647 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4648
4649         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
4650         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
4651         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4652         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
4653         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4654         * m4/memxor.m4 (gl_MEMXOR): Likewise.
4655         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
4656         gl_C_RESTRICT replaced by AC_C_RESTRICT.
4657
4658         Merge from coreutils.
4659         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
4660         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
4661         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4662         * m4/time_r.m4 (gl_TIME_R): Likewise.
4663
4664 2006-08-09  Karl Berry  <karl@gnu.org>
4665
4666         * config/srclist.txt: no more gettext-tools, per Bruno.
4667
4668 2006-08-08  Eric Blake  <ebb9@byu.net>
4669
4670         * modules/verror: New module.
4671         * MODULES.html.sh: Document it.
4672
4673 2006-08-08  Eric Blake  <ebb9@byu.net>
4674
4675         * lib/verror.h, lib/verror.c: New files.
4676
4677 2006-08-08  Eric Blake  <ebb9@byu.net>
4678
4679         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
4680         verror_at_line output complies with GNU Coding Standards even when
4681         file is NULL.
4682
4683 2006-08-07  Bruno Haible  <bruno@clisp.org>
4684
4685         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
4686         versions of AIX.
4687         Reported by Ralf Wildenhues.
4688
4689 2006-08-07  Bruno Haible  <bruno@clisp.org>
4690
4691         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
4692         in an AC_DEFUN. Needed so that the autoconf snippets can use
4693         AC_REQUIRE.
4694
4695 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4696
4697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4698         Initialize pkgdata_DATA.
4699         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
4700         overriding it.
4701
4702 2006-08-06  Eric Blake  <ebb9@byu.net>
4703
4704         * lib/error.h: Fold in some upstream changes from glibc.
4705         * lib/error.c: Likewise.
4706
4707 2006-08-04  Bruno Haible  <bruno@clisp.org>
4708
4709         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4710         Make the mostlyclean-local rule depend on mostlyclean-generic.
4711         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
4712
4713 2006-07-31  Bruno Haible  <bruno@clisp.org>
4714
4715         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
4716         <stdlib.h>, <string.h>.
4717
4718 2006-07-30  Bruno Haible  <bruno@clisp.org>
4719
4720         * modules/readlink (License): Change to LGPL.
4721
4722 2006-07-30  Bruno Haible  <bruno@clisp.org>
4723
4724         * modules/javaversion (Makefile.am): Distribute javaversion.java and
4725         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
4726         set PKGDATADIR to point to it.
4727
4728 2006-07-30  Bruno Haible  <bruno@clisp.org>
4729
4730         * modules/csharpexec (configure.ac): Comment out macro invocation.
4731         * modules/javaexec (configure.ac): Likewise.
4732         * modules/javacomp-script (configure.ac): Likewise.
4733
4734         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
4735
4736 2006-07-30  Bruno Haible  <bruno@clisp.org>
4737
4738         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
4739         linked-list.
4740
4741 2006-07-30  Bruno Haible  <bruno@clisp.org>
4742
4743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
4744
4745 2006-07-30  Bruno Haible  <bruno@clisp.org>
4746
4747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4748         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
4749         get removed.
4750
4751 2006-07-29  Bruno Haible  <bruno@clisp.org>
4752
4753         Make it possible for gnulib-tool to work with locally modified or
4754         augmented gnulib repositories.
4755         * gnulib-tool (func_usage): Document --local-dir option.
4756         (local_gnulib_dir): New variable.
4757         Handle --local-dir option.
4758         (func_lookup_file): New function.
4759         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
4760         (func_get_description, func_get_filelist, func_get_description,
4761         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
4762         func_get_automake_snippet, func_get_include_directive,
4763         func_get_license, func_get_maintainer): Use func_lookup_file.
4764         (func_import, func_create_testdir): Use func_lookup_file.
4765
4766 2006-07-29  Bruno Haible  <bruno@clisp.org>
4767
4768         * modules/setenv (Depends-on): Add unistd.
4769
4770 2006-07-29  Bruno Haible  <bruno@clisp.org>
4771
4772         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
4773
4774 2006-07-29  Bruno Haible  <bruno@clisp.org>
4775
4776         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
4777
4778 2006-07-29  Bruno Haible  <bruno@clisp.org>
4779
4780         * gnulib-tool (import, update): If there is no Makefile.am, look at
4781         aclocal.m4, instead of bailing out.
4782
4783 2006-07-29  Bruno Haible  <bruno@clisp.org>
4784
4785         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
4786         Categorize the options by when they are useful.
4787
4788 2006-07-29  Bruno Haible  <bruno@clisp.org>
4789
4790         * gnulib-tool (func_usage): Document option --no-libtool.
4791         Handle option --no-libtool.
4792         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
4793         for changed semantics of $libtool variable.
4794         (func_import): Likewise. If libtool is not used, show this through
4795         an option --no-libtool.
4796         (func_create_testdir): Update.
4797
4798 2006-07-29  Bruno Haible  <bruno@clisp.org>
4799
4800         * gnulib-tool (func_import): Extend error message about missing
4801         --doc-base.
4802
4803 2006-07-29  Bruno Haible  <bruno@clisp.org>
4804
4805         * gnulib-tool (func_import): Don't create the $docbase directory if
4806         there is no file to store there.
4807
4808 2006-07-29  Bruno Haible  <bruno@clisp.org>
4809
4810         * gnulib-tool (autoconf_minversion): If a --dir option is given and
4811         relevant, look for configure.ac there, not in the current directory.
4812         Also use a simple search for AC_PREREQ, not "autoconf --trace".
4813
4814 2006-07-29  Bruno Haible  <bruno@clisp.org>
4815
4816         * gnulib-tool (SORT): New variable.
4817         (func_usage): Undocument --assume-autoconf option.
4818         Remove --assume-autoconf option handling.
4819         (autoconf_minversion): Determine from the contents of configure.ac.
4820         (func_import): Remove autoconf_minversion handling.
4821         Suggested by Eric Blake.
4822
4823 2006-07-29  Bruno Haible  <bruno@clisp.org>
4824
4825         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
4826
4827 2006-07-29  Bruno Haible  <bruno@clisp.org>
4828
4829         * config/srclist.txt (*setenv.[ch]): Remove rules.
4830
4831 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4832
4833         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
4834
4835 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4836
4837         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
4838         arpa/inet.h.
4839
4840 2006-07-28  Simon Josefsson  <jas@extundo.com>
4841
4842         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
4843         * modules/inet_pton (Depends-on): Likewise.
4844
4845 2006-07-28  Simon Josefsson  <jas@extundo.com>
4846
4847         * m4/netinet_in_h.m4: New file.
4848
4849 2006-07-28  Simon Josefsson  <jas@extundo.com>
4850
4851         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
4852         #include's.
4853
4854 2006-07-28  Simon Josefsson  <jas@extundo.com>
4855
4856         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
4857         #include's.
4858
4859 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
4862         setgid on directories only if they set these bits.
4863         * lib/modechange.h: Remove obsolete comment about masks.
4864
4865 2006-07-28  Eric Blake  <ebb9@byu.net>
4866
4867         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
4868         macro expansion.
4869
4870 2006-07-28  Bruno Haible  <bruno@clisp.org>
4871
4872         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
4873
4874 2006-07-28  Bruno Haible  <bruno@clisp.org>
4875
4876         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
4877
4878 2006-07-28  Bruno Haible  <bruno@clisp.org>
4879
4880         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4881         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
4882         Define fallbacks.
4883         Avoids link error on FreeBSD 4.x.
4884         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4885
4886         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
4887         encoding.
4888         * lib/mbswidth.c (iswcntrl): Likewise.
4889
4890 2006-07-27  Bruno Haible  <bruno@clisp.org>
4891
4892         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
4893         test.
4894
4895 2006-07-27  Bruno Haible  <bruno@clisp.org>
4896
4897         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
4898         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
4899         defined.
4900
4901 2006-07-26  Eric Blake  <ebb9@byu.net>
4902
4903         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
4904
4905 2006-07-26  Eric Blake  <ebb9@byu.net>
4906
4907         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
4908         like mingw that lack mkstemp.
4909         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
4910         avoid compilation warning on mingw.
4911
4912 2006-07-26  Bruno Haible  <bruno@clisp.org>
4913
4914         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
4915         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
4916         INT_FAST*_MIN, INTPTR_MIN.
4917
4918 2006-07-25  Bruno Haible  <bruno@clisp.org>
4919
4920         * modules/version-etc (Depends-on): Add stdarg.
4921
4922 2006-07-25  Bruno Haible  <bruno@clisp.org>
4923
4924         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
4925         complex commands.
4926
4927 2006-07-25  Bruno Haible  <bruno@clisp.org>
4928
4929         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
4930         defined in <stdarg.h> or config.h.
4931
4932 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4933
4934         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
4935         (gl_STDIO_SAFER): Remove.
4936
4937 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4938
4939         * MODULES.html.sh (File stream based Input/Output):
4940         Add fopen-safer, tmpfile-safer; remove stdio-safer.
4941         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
4942         * modules/fopen-safer, modules/tmpfile-safer: New files.
4943         * modules/stdio-safer: Remove.
4944
4945 2006-07-24  Bruno Haible  <bruno@clisp.org>
4946
4947         * modules/tmpdir: New file.
4948         * MODULES.html.sh (File system functions): Add it.
4949
4950 2006-07-24  Bruno Haible  <bruno@clisp.org>
4951
4952         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
4953         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
4954
4955 2006-07-24  Bruno Haible  <bruno@clisp.org>
4956
4957         * modules/clean-temp: New file.
4958
4959 2006-07-24  Bruno Haible  <bruno@clisp.org>
4960
4961         * m4/tmpdir.m4: New file, from GNU gettext.
4962
4963 2006-07-24  Bruno Haible  <bruno@clisp.org>
4964
4965         * lib/tmpdir.h: New file, from GNU gettext.
4966         * lib/tmpdir.c: New file, from GNU gettext.
4967
4968 2006-07-24  Bruno Haible  <bruno@clisp.org>
4969
4970         * lib/clean-temp.h: New file, from GNU gettext.
4971         * lib/clean-temp.c: New file, from GNU gettext.
4972
4973 2006-07-23  Eric Blake  <ebb9@byu.net>
4974
4975         * modules/stdio-safer (Files): Add tmpfile-safer.c.
4976         (Depends-on): Add binary-io.
4977
4978 2006-07-23  Eric Blake  <ebb9@byu.net>
4979
4980         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
4981
4982 2006-07-23  Eric Blake  <ebb9@byu.net>
4983
4984         * lib/tmpfile-safer.c: New file.
4985         * lib/stdio-safer.h (fopen_safer): Add prototype.
4986         * lib/stdio--.h (tmpfile): Make safer.
4987
4988 2006-07-23  Bruno Haible  <bruno@clisp.org>
4989
4990         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
4991         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
4992         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
4993         gl_linked_remove_at): Use it.
4994
4995 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4996         and Simon Josefsson <jas@extundo.com>
4997
4998         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
4999
5000         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
5001
5002 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5003
5004         * modules/close-stream: New file.
5005         * modules/closeout (Description): Make it clear that it exits
5006         with a diagnostic on error.
5007         (Depends-on): Add close-stream.  Remove fpending, stdbool.
5008         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
5009
5010 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5011
5012         * m4/close-stream.m4: New file.
5013
5014 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5015
5016         * lib/close-stream.c, lib/close-stream.h: New files.
5017
5018 2006-07-22  Bruno Haible  <bruno@clisp.org>
5019
5020         Merge from GNU gettext 0.15.
5021
5022         2006-05-01  Bruno Haible  <bruno@clisp.org>
5023
5024                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
5025
5026         2006-07-22  Bruno Haible  <bruno@clisp.org>
5027
5028                 * modules/javaversion: New file.
5029                 * MODULES.html.sh (Java): Add javaversion.
5030
5031         2006-03-12  Bruno Haible  <bruno@clisp.org>
5032
5033                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
5034
5035         2005-12-04  Bruno Haible  <bruno@clisp.org>
5036
5037                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
5038                 (untested).
5039
5040         2006-06-21  Bruno Haible  <bruno@clisp.org>
5041
5042                 Avoid warnings from recent versions of mcs.
5043                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
5044                 -o, -L, -r any more. Use options documented since mcs-1.0
5045                 instead. Similarly for -g.
5046
5047         2005-12-04  Bruno Haible  <bruno@clisp.org>
5048
5049                 * build-aux/csharpcomp.sh.in: Suffix for resources is
5050                 .resources, not .resource.
5051
5052         2005-07-09  Bruno Haible  <bruno@clisp.org>
5053
5054                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
5055                 add a .dll suffix.
5056                 Reported by Mark Junker <mjscod@gmx.de>.
5057
5058         2006-07-22  Bruno Haible  <bruno@clisp.org>
5059
5060                 * modules/gettext: Upgrade to gettext-0.15.
5061                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
5062                 m4/visibility.m4.
5063                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
5064
5065 2006-07-22  Bruno Haible  <bruno@clisp.org>
5066
5067         Merge from GNU gettext 0.15.
5068
5069         2006-03-25  Bruno Haible  <bruno@clisp.org>
5070
5071                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
5072
5073         2006-07-21  Bruno Haible  <bruno@clisp.org>
5074
5075                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
5076                 "1.1".
5077
5078         2006-05-09  Bruno Haible  <bruno@clisp.org>
5079
5080                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
5081                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
5082                 for the conftestver execution.
5083
5084         2006-05-01  Bruno Haible  <bruno@clisp.org>
5085
5086                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
5087                 optional target-version argument. Verify that the compiler
5088                 groks source of the specified source-version, or add -source
5089                 option as necessary. Verify that the compiler produces
5090                 bytecode in the specified target-version, or add -target and
5091                 -source options as necessary. Make the result of the test
5092                 available as variable CONF_JAVAC. Also log error output in
5093                 config.log.
5094
5095         2006-03-11  Bruno Haible  <bruno@clisp.org>
5096
5097                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
5098
5099         2006-05-09  Bruno Haible  <bruno@clisp.org>
5100
5101                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
5102                 CLASSPATH_SEPARATOR to a semicolon.
5103
5104         2006-03-12  Bruno Haible  <bruno@clisp.org>
5105
5106                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
5107                 available as variable CONF_JAVA, for subsequent autoconf
5108                 tests. Also log error output in config.log.
5109
5110         2006-07-19  Bruno Haible  <bruno@clisp.org>
5111
5112                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
5113                 that getline works on glibc2 systems. Needed to avoid trouble
5114                 in relocatable.c.
5115                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
5116
5117         2005-12-04  Bruno Haible  <bruno@clisp.org>
5118
5119                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
5120                 launcher (untested).
5121
5122         2005-12-04  Bruno Haible  <bruno@clisp.org>
5123
5124                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
5125
5126         2006-07-22  Bruno Haible  <bruno@clisp.org>
5127
5128                 * gettext.m4: Update from GNU gettext-0.15.
5129                 * nls.m4: Likewise.
5130                 * po.m4: Likewise.
5131                 * inttypes-pri.m4: Likewise.
5132                 * inttypes-h.m4: Renamed from inttypes.m4.
5133                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
5134
5135 2006-07-22  Bruno Haible  <bruno@clisp.org>
5136
5137         Merge from GNU gettext 0.15.
5138
5139         2005-07-05  Bruno Haible  <bruno@clisp.org>
5140
5141                 * printf-args.c (printf_fetchargs): Work around broken
5142                 definition of wint_t on mingw.
5143
5144         2005-02-12  Bruno Haible  <bruno@clisp.org>
5145
5146                 * xallocsa.h: Add extern "C" for C++.
5147
5148         2006-05-17  Bruno Haible  <bruno@clisp.org>
5149
5150                 Cygwin portability.
5151                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
5152
5153         2006-04-30  Bruno Haible  <bruno@clisp.org>
5154
5155                 * progreloc.c: Include <mach-o/dyld.h> if available.
5156                 (find_executable): Use _NSGetExecutablePath when possible.
5157
5158         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
5159
5160                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
5161                 function.
5162
5163         2005-12-29  Bruno Haible  <bruno@clisp.org>
5164
5165                 * progreloc.c (set_program_name_and_installdir): Fix
5166                 compilation error.
5167
5168         2005-12-04  Bruno Haible  <bruno@clisp.org>
5169
5170                 Cygwin portability.
5171                 * progreloc.c: Include <windows.h> also on Cygwin.
5172                 (find_executable): Add support for Cygwin.
5173                 (set_program_name_and_installdir): Handle also platforms with
5174                 nonempty EXEEXT.
5175
5176         2006-07-11  Bruno Haible  <bruno@clisp.org>
5177
5178                 * javacomp.c: Fix a comment.
5179                 Reported by Jim Meyering.
5180
5181         2006-04-30  Bruno Haible  <bruno@clisp.org>
5182
5183                 * javacomp.h (compile_java_class): Add source_version,
5184                 target_version arguments.
5185                 * javacomp.c: Rewritten to choose only a compiler that
5186                 respects the specified source_version and target_version.
5187
5188         2006-06-27  Bruno Haible  <bruno@clisp.org>
5189
5190                 Assume correct S_ISDIR macro.
5191                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
5192
5193         2006-07-22  Bruno Haible  <bruno@clisp.org>
5194
5195                 * javaversion.h: New file, from GNU gettext.
5196                 * javaversion.c: New file, from GNU gettext.
5197                 * javaversion.java: New file, from GNU gettext.
5198                 * javaversion.class: New file, from GNU gettext.
5199
5200         2006-05-17  Bruno Haible  <bruno@clisp.org>
5201
5202                 Cygwin portability.
5203                 * javaexec.c (execute_java_class): Test for jview program
5204                 also on Cygwin.
5205
5206         2006-04-09  Bruno Haible  <bruno@clisp.org>
5207
5208                 * fatal-signal.c: Don't include string.h.
5209                 (at_fatal_signal): Use a copying loop instead of memcpy.
5210
5211         2005-12-04  Bruno Haible  <bruno@clisp.org>
5212
5213                 * csharpexec.c: Add support for 'clix' launcher (untested).
5214                 (execute_csharp_using_sscli): New function.
5215                 (execute_csharp_program): Call it.
5216
5217         2006-06-21  Bruno Haible  <bruno@clisp.org>
5218
5219                 Avoid warnings from recent versions of mcs.
5220                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
5221                 -o, -L, -r any more. Use options documented since mcs-1.0
5222                 instead. Similarly for -g.
5223
5224         2005-07-09  Bruno Haible  <bruno@clisp.org>
5225
5226                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
5227                 add a .dll suffix.
5228                 Reported by Mark Junker <mjscod@gmx.de>.
5229
5230         2006-06-17  Bruno Haible  <bruno@clisp.org>
5231
5232                 * config.charset: Update for NetBSD 3.0.
5233
5234         2006-05-17  Bruno Haible  <bruno@clisp.org>
5235
5236                 Cygwin portability.
5237                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
5238
5239         2006-05-16  Bruno Haible  <bruno@clisp.org>
5240
5241                 * localcharset.c [CYGWIN]: Include <windows.h>.
5242                 (get_charset_aliases): For Cygwin, return the same CPxxx
5243                 aliases list as under WIN32.
5244                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
5245                 the environment variables. Fall back to GetACP().
5246
5247         2006-04-05  Bruno Haible  <bruno@clisp.org>
5248
5249                 * config.charset: Update Juan Manuel Guerrero's address.
5250
5251         2005-02-12  Bruno Haible  <bruno@clisp.org>
5252
5253                 * allocsa.h: Add extern "C" for C++.
5254
5255         2005-02-10  Bruno Haible  <bruno@clisp.org>
5256
5257                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
5258                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
5259
5260         2006-07-22  Bruno Haible  <bruno@clisp.org>
5261
5262                 * gettext.h: Update to GNU gettext-0.15.
5263
5264 2006-07-22  Bruno Haible  <bruno@clisp.org>
5265
5266         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
5267         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
5268         lib-prefix.m4, longdouble.m4, ssize_t.m4.
5269
5270 2006-07-21  Eric Blake  <ebb9@byu.net>
5271
5272         * modules/stdlib-safer: New file.
5273         * MODULES.html.sh (File stream based Input/Output): Add
5274         stdlib-safer.
5275
5276 2006-07-21  Eric Blake  <ebb9@byu.net>
5277
5278         * lib/stdlib-safer.h: New file from coreutils, required by
5279         stdlib--.h.
5280
5281 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
5282
5283         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
5284
5285 2006-07-20  Bruno Haible  <bruno@clisp.org>
5286
5287         * gnulib-tool: Recognize new option --assume-autoconf.
5288         (autoconf_minversion): New variable.
5289         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
5290
5291 2006-07-20  Bruno Haible  <bruno@clisp.org>
5292
5293         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
5294
5295 2006-07-19  Derek R. Price  <derek@ximbiot.com>
5296
5297         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
5298         Reindent and repaginate.
5299
5300 2006-07-19  Derek Price  <derek@ximbiot.com>
5301
5302         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
5303         Correct grammar.
5304
5305 2006-07-17  Bruno Haible  <bruno@clisp.org>
5306
5307         * modules/list: New file.
5308         * modules/array-list: New file.
5309         * modules/carray-list, modules/carray-list-tests: New files.
5310         * modules/linked-list, modules/linked-list-tests: New files.
5311         * modules/avltree-list, modules/avltree-list-tests: New files.
5312         * modules/rbtree-list, modules/rbtree-list-tests: New files.
5313         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
5314         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
5315         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
5316         * modules/oset: New file.
5317         * modules/array-oset: New file.
5318         * modules/avltree-oset, modules/avltree-oset-tests: New files.
5319         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
5320         * tests/test-carray_list.c: New file.
5321         * tests/test-linked_list.c: New file.
5322         * tests/test-avltree_list.c: New file.
5323         * tests/test-rbtree_list.c: New file.
5324         * tests/test-linkedhash_list.c: New file.
5325         * tests/test-avltreehash_list.c: New file.
5326         * tests/test-rbtreehash_list.c: New file.
5327         * tests/test-avltree_oset.c: New file.
5328         * tests/test-rbtree_oset.c: New file.
5329         * MODULES.html.sh (Container data structures): New section.
5330
5331 2006-07-17  Bruno Haible  <bruno@clisp.org>
5332
5333         * m4/gl_list.m4: New file.
5334
5335 2006-07-17  Bruno Haible  <bruno@clisp.org>
5336
5337         * lib/gl_list.h: New file.
5338         * lib/gl_list.c: New file.
5339         * lib/gl_array_list.h: New file.
5340         * lib/gl_array_list.c: New file.
5341         * lib/gl_carray_list.h: New file.
5342         * lib/gl_carray_list.c: New file.
5343         * lib/gl_linked_list.h: New file.
5344         * lib/gl_linked_list.c: New file.
5345         * lib/gl_anylinked_list1.h: New file.
5346         * lib/gl_anylinked_list2.h: New file.
5347         * lib/gl_avltree_list.h: New file.
5348         * lib/gl_avltree_list.c: New file.
5349         * lib/gl_anyavltree_list1.h: New file.
5350         * lib/gl_anyavltree_list2.h: New file.
5351         * lib/gl_rbtree_list.h: New file.
5352         * lib/gl_rbtree_list.c: New file.
5353         * lib/gl_anyrbtree_list1.h: New file.
5354         * lib/gl_anyrbtree_list2.h: New file.
5355         * lib/gl_anytree_list1.h: New file.
5356         * lib/gl_anytree_list2.h: New file.
5357         * lib/gl_linkedhash_list.h: New file.
5358         * lib/gl_linkedhash_list.c: New file.
5359         * lib/gl_anyhash_list1.h: New file.
5360         * lib/gl_anyhash_list2.h: New file.
5361         * lib/gl_avltreehash_list.h: New file.
5362         * lib/gl_avltreehash_list.c: New file.
5363         * lib/gl_rbtreehash_list.h: New file.
5364         * lib/gl_rbtreehash_list.c: New file.
5365         * lib/gl_anytreehash_list1.h: New file.
5366         * lib/gl_anytreehash_list2.h: New file.
5367
5368         * lib/gl_oset.h: New file.
5369         * lib/gl_oset.c: New file.
5370         * lib/gl_array_oset.h: New file.
5371         * lib/gl_array_oset.c: New file.
5372         * lib/gl_avltree_oset.h: New file.
5373         * lib/gl_avltree_oset.c: New file.
5374         * lib/gl_rbtree_oset.h: New file.
5375         * lib/gl_rbtree_oset.c: New file.
5376         * lib/gl_anytree_oset.h: New file.
5377
5378 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5379
5380         * m4/mkancesdirs.m4: New file.
5381         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
5382         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
5383         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
5384         it.
5385
5386 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5387
5388         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
5389         * lib/mkancesdirs.h: New files.
5390         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
5391         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
5392         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
5393         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
5394         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
5395         callers changed.  Revamp internals significantly, by not
5396         attempting to create directories that are temporarily more
5397         permissive than the final results.  Do not attempt to use
5398         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
5399         This removes some race conditions, fixes some bugs, and simplifies
5400         things.  Use new dirchownmod function to do owner and mode changes.
5401         * lib/mkdir-p.h: Likewise.
5402         * lib/modechange.c (octal_to_mode): New function.
5403         (struct mode_change): New member mentioned.
5404         (make_node_op_equals): New arg mentioned.  All callers changed.
5405         (mode_compile): Keep track of which mode bits the user has explicitly
5406         mentioned.
5407         (mode_adjust): New arg DIR, so that we implement the X op correctly.
5408         New arg PMODE_BITS, to keep track of which mode bits the user
5409         mentioned; it treats S_ISUID and S_ISGID speciall.
5410         All callers changed.
5411         * lib/modechange.h: Likewise.
5412
5413 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5414
5415         * MODULES.html.sh: Add mkancestors.
5416         * modules/mkancesdirs: New module.
5417         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
5418         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
5419         The chdir-safer and afs files are now orphans; I'll remove them
5420         unless someone speaks up.
5421         Add lib/dirchownmod.c, lib/dirchownmod.h.
5422         (Depends-on): Remove alloca, chown, save-cwd, dirname.
5423         Add lchown, mkancesdirs.
5424         (Maintainer): Add self.
5425
5426 2006-07-15  Karl Berry  <karl@gnu.org>
5427
5428         * gnulib-tool: help message wording/arrangement.
5429
5430 2006-07-14  Simon Josefsson  <jas@extundo.com>
5431
5432         * doc/gnulib.texi (Libtool and Windows): New section.
5433
5434 2006-07-12  Simon Josefsson  <jas@extundo.com>
5435
5436         * modules/gendocs (License): Fix license, approved by Karl.
5437
5438 2006-07-12  Eric Blake  <ebb9@byu.net>
5439
5440         * MODULES.html.sh: Add gendocs.
5441
5442 2006-07-11  Eric Blake  <ebb9@byu.net>
5443
5444         * modules/fdl: New module, to install doc/fdl.texi.
5445         * MODULES.html.sh: Add new section for documentation modules.
5446         * gnulib-tool: Avoid space-tab.
5447         (--doc-base): New option, to manage files from doc.
5448
5449 2006-07-11  Eric Blake  <ebb9@byu.net>
5450
5451         * m4/absolute-header.m4: Fix comments to match recent change.
5452
5453 2006-07-11  Eric Blake  <ebb9@byu.net>
5454
5455         * gnulib-tool: List --doc-base before --tests-base.
5456
5457 2006-07-11  Derek R. Price  <derek@ximbiot.com>
5458
5459         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
5460
5461 2006-07-11  Bruno Haible  <bruno@clisp.org>
5462
5463         * README: Mention where to put documentation.
5464
5465 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5466
5467         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
5468
5469 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5470
5471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
5472         to stdint.m4.
5473
5474 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5475
5476         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
5477         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
5478         "no/such/file/stdint.h" when there is no such file, so that
5479         the resulting C code can be parsed by dodgy compilers.
5480         Problems reported by Bob Proulx.
5481
5482 2006-07-10  Derek R. Price  <derek@ximbiot.com>
5483
5484         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
5485         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
5486         macros into the GNU _D_EXACT_NAMLEN.
5487         * lib/savedir.c:  Likewise.
5488         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
5489
5490 2006-07-10  Derek R. Price  <derek@ximbiot.com>
5491         and Paul Eggert  <eggert@cs.ucla.edu>
5492
5493         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
5494         * m4/savedir.m4:
5495         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
5496         macros into the GNU _D_EXACT_NAMLEN.
5497
5498 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5499
5500         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
5501         around the absolute name, to work around a problem with the HP-UX
5502         11.23 native C compiler, reported by Bob Proulx.
5503
5504 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5505
5506         * doc/maintain.texi, make-stds.texi: Sync from
5507         <http://savannah.gnu.org/projects/gnustandards>.
5508
5509 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5510
5511         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
5512
5513 2006-07-09  Jim Meyering  <jim@meyering.net>
5514
5515         * m4/glob.m4: Remove a doubled word in a comment.
5516
5517 2006-07-09  Jim Meyering  <jim@meyering.net>
5518
5519         * lib/argp-pv.c: Remove a doubled word in a comment.
5520         * lib/check-version.c (check_version): Likewise.
5521         * lib/javacomp.c (compile_java_class): Likewise.
5522
5523 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5524
5525         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
5526         for the benefit of people using Autoconf 2.60.  If you want to
5527         support older Autoconf versions you can copy m4/onceonly_2_57.m4
5528         (or m4/onceonly.m4, if pre-2.57) manually.
5529
5530 2006-07-08  Jim Meyering  <jim@meyering.net>
5531
5532         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
5533         comment.
5534         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
5535         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
5536         comment.
5537
5538 2006-07-08  Jim Meyering  <jim@meyering.net>
5539
5540         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
5541
5542 2006-07-07  Simon Josefsson  <jas@extundo.com>
5543
5544         * tests/test-crc.c: Change expected crc value, the test vector
5545         were probably computed using the old broken crc.c?
5546
5547 2006-07-06  Simon Josefsson  <jas@extundo.com>
5548
5549         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
5550         now the canonical place for the M4 file).
5551
5552         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
5553         from the sys_socket dependency now.
5554
5555         * modules/inet_pton (Files): Ditto.
5556
5557         * modules/inet_ntop (Files): Ditto.
5558
5559 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
5560
5561         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
5562         not gl_PREREQ_GETUSERSHELL.
5563
5564 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5565
5566         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
5567         with only one argument, for Autoconf 2.60.
5568         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
5569         expand to nothing, so add a shell command to avoid syntax error.
5570         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5571
5572 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5573
5574         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
5575
5576 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5577
5578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
5579         no longer needed.  Check for isblank decl.
5580         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
5581         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
5582         of existence.
5583
5584 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5585
5586         * lib/getloadavg.c: Use __VMS, not VMS.
5587         * lib/getopt.c: Likewise.
5588         * lib/getpagesize.h: Likewise.
5589         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
5590         and probably does not work.
5591
5592 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5593
5594         * lib/.cppi-disable: Add wcwidth.
5595         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
5596         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
5597         (ISGRAPH): Remove.  All uses changed to isgraph.
5598         (FOLD) [!defined _LIBC]: Remove special case.
5599         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
5600         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
5601         HAVE_ISBLANK.
5602         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
5603         case.
5604
5605 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
5606
5607         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
5608         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
5609         brackets.  Other minor changes to suppress some compiler
5610         warnings.
5611
5612 2006-07-06  Derek R. Price  <derek@ximbiot.com>
5613         and Paul Eggert  <eggert@cs.ucla.edu>
5614
5615         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
5616         of invoking obsolescent AC_HEADER_DIRENT macro.
5617         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5618         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
5619         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5621         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
5622         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5623         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
5624         * m4/readdir.m4: Remove; no longer needed.
5625
5626 2006-07-06  Derek R. Price  <derek@ximbiot.com>
5627         and Paul Eggert  <eggert@cs.ucla.edu>
5628
5629         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
5630         Don't worry about this obsolete case any more.
5631         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
5632         directories.
5633         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
5634         worry about this obsolete case any more.
5635         * lib/fts.c: Likewise.
5636         * lib/getcwd.c: Likewise.
5637         * lib/glob.h: Likewise.
5638         * lib/savedir.c: Likewise.
5639
5640 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5641
5642         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
5643         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
5644         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
5645         needed.
5646         All uses removed.
5647         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5648         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
5649         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
5650         needed.
5651         * m4/getdate.m4 (gl_GETDATE): Likewise.
5652         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
5653         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
5654         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5655         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5656         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
5657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
5658         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
5659         needed.
5660
5661 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5662
5663         * lib/memcasecmp.c: Include <limits.h>.
5664         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
5665         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
5666         Don't assume isdigit succeeds only on '0' through '9'.
5667
5668 2006-07-05  Eric Blake  <ebb9@byu.net>
5669
5670         * modules/getaddrinfo (Depends-on): Add snprintf.
5671
5672 2006-07-05  Eric Blake  <ebb9@byu.net>
5673
5674         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
5675         to avoid 'header present but could not be compiled' on cygwin.
5676
5677 2006-07-05  Eric Blake  <ebb9@byu.net>
5678
5679         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
5680         missing from netdb.h.
5681         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
5682
5683 2006-07-05  Derek R. Price  <derek@ximbiot.com>
5684
5685         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
5686         no longer needed.
5687         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
5688         * m4/getdate.m4 (gl_GETDATE): Likewise.
5689         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
5690         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
5691         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5692         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
5693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
5694
5695 2006-07-05  Derek R. Price  <derek@ximbiot.com>
5696
5697         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
5698         All uses of is_space replaced by isspace.
5699         * lib/exit.h: Don't talk about STDC_HEADERS.
5700         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
5701         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
5702         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
5703         replaced by isprint etc.
5704         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
5705         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
5706         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
5707         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
5708         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
5709         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
5710
5711 2006-07-05  Bruno Haible  <bruno@clisp.org>
5712
5713         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
5714         the function exists, before testing against AIX.
5715         Reported by Martin Lambers <marlam@marlam.de>.
5716
5717 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
5720         From Mark D. Baushke.
5721
5722 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5723
5724         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
5725         to the absolute name, not just one, to bypass Sun C 5.8's
5726         "warning: #include of /usr/include/... may be non-portable".
5727
5728 2006-07-04  Eric Blake  <ebb9@byu.net>
5729
5730         * modules/dirname-tests: New test module.
5731         * tests/test-dirname.c: New file, replacing dirname.c
5732         TEST_DIRNAME section that was recently deleted.
5733
5734 2006-07-04  Bruno Haible  <bruno@clisp.org>
5735
5736         Assume ANSI C header files and <ctype.h> functions.
5737         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
5738         (mbsnwidth): Use isprint, iscntrl instead.
5739
5740 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5741
5742         Merge from coreutils.
5743         * MODULES.html.sh: Add xstrtold.
5744         * modules/xstrtold: New file.
5745         * modules/cycle-check (Files): Add lib/same-inode.h.
5746         * modules/dirname (Files): Add m4/double-slash-root.m4.
5747         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
5748         * modules/mkdir-p (Files): Add lib/same-inode.h.
5749         * modules/same (Files): Add lib/same-inode.h.
5750
5751 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5752
5753         * m4/absolute-header.m4: Renamed from full-header-path.m4.
5754         This is to keep the terminology clean; POSIX talks about
5755         "absolute pathnames", not "full pathnames", but the GNU
5756         Coding Standards say to use "path" for something else;
5757         so use "absolute" to keep both sides happy.
5758         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
5759         Set gl_absolute_header, not gl_full_header_path.
5760         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
5761         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
5762         All uses changed.
5763
5764         Merge from coreutils.
5765
5766         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5767
5768         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
5769         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
5770         want to require the building of c-strtod.o.
5771         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
5772         needs -lm directly.
5773         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
5774
5775         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
5776
5777         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
5778         --as-needed option if available.  Problem reported by Albert Chin in
5779         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
5780         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
5781         cc merely issues a bunch of annoying warnings for --as-needed
5782         (this problem was reported by Bob Proulx).  Also, try linking with
5783         -lm to detect a bug in binutils 2.16 (this problem was reported
5784         by Ralf Wildenhues).
5785
5786         2006-06-18  Jim Meyering  <jim@meyering.net>
5787
5788         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
5789         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
5790         macro.
5791         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
5792         also check for glibc-2.4's abort-inducing bug.
5793
5794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
5795         Low-probability clean-up should be to use rmdir to get rid of
5796         the just-created directory, not unlink.
5797
5798         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
5799         configure fail, and request a bug report to inform us about it.
5800         Add a comment that, barring reports to the contrary, in 2007 we'll
5801         assume ftruncate is universally available.
5802
5803         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
5804
5805         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
5806
5807         2006-03-12  Jim Meyering  <jim@meyering.net>
5808
5809         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
5810         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
5811         * m4/same.m4 (gl_SAME): Likewise.
5812         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
5813
5814         2006-03-11  Eric Blake  <ebb9@byu.net>
5815
5816         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
5817         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
5818         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
5819         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
5820
5821 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5822
5823         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
5824         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
5825         reported by Mark D. Baushke, one in
5826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
5827
5828         Merge from coreutils.
5829
5830         * lib/.cppi-disable: Add stdint_.h.
5831         * lib/.cvsignore: Add stdint.h.
5832
5833         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5834
5835         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
5836         both double and long double versions.
5837         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
5838         * lib/xstrtold.c: New file.
5839         * lib/xstrtod.h (xstrtold): New decl.
5840
5841         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5842
5843         * lib/filemode.c (setst): Remove.
5844         (strmode): Rewrite to avoid setst.  This makes the code shorter,
5845         (arguably) clearer, and the generated code is a bit smaller on my
5846         Debian GNU/Linux stable x86 host.
5847
5848         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
5849
5850         * lib/filemode.c: Include "filemode.h" first, to test the interface.
5851         Assume that filemode.h includes sys/types.h and sys/stat.h.
5852         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
5853         (ftypelet): Reorder to put common cases first, for efficiency.
5854         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
5855         to do 'M'.
5856         (strmode): Renamed from mode_string, and now stores 12 bytes instead
5857         of 10, for compatibility with FreeBSD.  All callers changed.
5858         (filemodestring): Now stores 12 bytes instead of 10, and sets file
5859         types that can't be deduced solely from st_mode.  First arg is now a
5860         const pointer.
5861         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
5862         (strmode): Renamed from mode_string.
5863         (filemodestring): New decl.
5864         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
5865         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
5866         needed.
5867         (S_ISPORT, S_ISWHT): New macros, if not already defined.
5868
5869         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5870
5871         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
5872         fsusage.h now does that.  Include fsusage.h first, to test interface.
5873         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
5874         at most one method (the old code could have generated decls that
5875         didn't conform to C89, not that this was ever exercised).
5876         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
5877
5878         2006-03-19  Jim Meyering  <jim@meyering.net>
5879
5880         Work even in a chroot where d_ino values for entries in "/"
5881         don't match the stat.st_ino values for the same names.
5882         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
5883         number, iterate through all entries again, using lstat instead.
5884         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
5885         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
5886
5887         * lib/getcwd.c (__getcwd): Clarify a comment.
5888         Use memcpy in place of a call to strcpy.
5889
5890         2006-03-12  Jim Meyering  <jim@meyering.net>
5891
5892         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
5893         matches that of the current directory (which we're about to chdir ".."
5894         out of), then save the dev-ino of the parent, instead.
5895
5896         * lib/same-inode.h (SAME_INODE): New file/macro.
5897         * lib/chdir-safer.c (SAME_INODE): Remove definition.
5898         Include "same-inode.h", instead.
5899         * lib/same.c: Likewise.
5900         * lib/cycle-check.h: Include "same-inode.h".
5901         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
5902         * lib/cycle-check.c (SAME_INODE): Remove definition.
5903         * lib/root-dev-ino.h: Include "same-inode.h".
5904
5905         2006-03-11  Eric Blake  <ebb9@byu.net>
5906
5907         * lib/same.c (same_name): s/base_name/last_component/
5908         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
5909         * lib/filenamecat.c (file_name_concat): Likewise.
5910
5911         2006-03-11  Eric Blake  <ebb9@byu.net>,
5912                     Paul Eggert  <eggert@cs.ucla.edu>
5913
5914         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
5915         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
5916         drive prefix.
5917         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
5918         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
5919         (last_component): New method.
5920         * lib/dirname.c (dir_len): Determine when drive letters need a
5921         subsequent slash.  Preserve // when it is special.
5922         (dir_name): Don't append dot when drive letter is absolute.
5923         [TEST_DIRNAME]: Move into a full-blown gnulib test.
5924         * lib/basename.c (base_name): New semantics - malloc the result.
5925         Preserve // when it is special.  Preserve relative files that look
5926         like drive letters.
5927         (base_len): Preserve // when it is special.
5928         (last_component): New method, similar to old base_name semantics.
5929         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
5930         base_name.  Strip redundant slashes from ///.
5931
5932 2006-07-03  Jim Meyering  <jim@meyering.net>
5933
5934         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
5935         macro is used before the first cycle_check call.
5936
5937 2006-07-03  Eric Blake  <ebb9@byu.net>
5938
5939         * modules/dirname (Depends-on): Add xstrndup.
5940
5941 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5942
5943         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
5944         test cases, so that config.log is a bit easier to follow.
5945
5946 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
5949         both are 64 bits, since this seems to be the tradition, and this
5950         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
5951         we ever run into a host that prefers long long to long in this
5952         case, we'll need another configure-time test.  Problem reported by
5953         Jim Meyering.
5954
5955 2006-07-02  Eric Blake  <ebb9@byu.net>
5956
5957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
5958
5959 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5960
5961         * modules/inttypes (Depends-on): No longer depends on stdint.
5962         * modules/stdint (Description): Say more about assumptions.
5963         Say that the fast types might differ.  Say macros are used.
5964         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
5965         (Makefile.am): Revise list of substituted symbols to match
5966         new stdint.m4.
5967         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
5968         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
5969         * tests/test-stdint.c (verify_same_types)
5970         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
5971         the code conforms to C99/C89.
5972         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
5973         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
5974
5975 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
5978         but fix a bug, by requiring at least 64 bits.
5979         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5980         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
5981         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
5982         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
5983
5984         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
5985         changes.  Make 2.59 a prerequisite.  Check and substitute for
5986         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
5987         inttypes.h.  Do not use special include files; just use the
5988         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
5989         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
5990         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
5991         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
5992         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
5993         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
5994         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
5995         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
5996         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
5997         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
5998         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
5999         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
6000         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
6001         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
6002         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
6003         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
6004         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
6005         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
6006         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
6007         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
6008         WINT_MAX.  Check for C99 conformance more strictly, by detecting
6009         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
6010         not check for things that C99 does not require, e.g., int8_t.  If
6011         a test isn't needed unless <stdint.h> isn't working, and is
6012         unlikely to be needed for any other reason, then don't do it
6013         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
6014         size_t, since we assume C89 freestanding at least.  Do not check
6015         for sig_atomic_t, wchar_t, or wint_t, since the code now does
6016         the right thing even if the types are not defined.  Instead use:
6017         (gl_STDINT_TYPE_PROPERTIES): New macro.
6018         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
6019         testing whether <sys/types.h> clashes, as Autoconf does this for
6020         us now.  All uses removed.
6021         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
6022         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
6023         (gl_CHECK_TYPE_SAME):
6024         Remove; no longer needed.
6025         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
6026         exists, since we'll return 0 anyway in that case.
6027         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
6028
6029 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6030
6031         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
6032         possible collision with system files.
6033         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
6034         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
6035         WCHAR_MIN and WCHAR_MAX in this case.
6036         (<stddef.h>): Do not include; no longer needed.
6037         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
6038         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
6039         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
6040         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
6041         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
6042         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
6043         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
6044         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
6045         !defined(__c99))]: Include in this case too, since it's harmless
6046         now.
6047         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
6048         dangerous to do so.
6049         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
6050         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
6051         (_STDINT_MIN, _STDINT_MAX): New macros.
6052         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
6053         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
6054         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
6055         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
6056         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
6057         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
6058         macros, not typedefs; this simplifies things quite a bit.
6059         Use long int for all types narrower than int64_t.
6060         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
6061         Define in terms of long long int or int64_t or long int,
6062         not int64_t or int32_t.  This saves some compile-time testing.
6063         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
6064         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
6065         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
6066         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
6067         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
6068         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
6069         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
6070         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
6071         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
6072         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
6073         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6074         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6075         undef any previous version and define our own version, for
6076         simplicity and consistency with the new macros for types.
6077         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6078         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6079         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
6080         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
6081         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
6082         @WINT_T_SUFFIX@ to keep things simple here.
6083         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
6084         Simplify by assuming typical 8/16/32/64 host, since we're
6085         already doing that elsewhere anyway.
6086         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
6087         and assume long long int is 64 bits if available.  This
6088         speeds up 'configure'.
6089
6090 2006-07-01  Eric Blake  <ebb9@byu.net>
6091
6092         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
6093         Reported by Andreas Buening.
6094
6095 2006-07-01  Eric Blake  <ebb9@byu.net>
6096
6097         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
6098
6099 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
6100
6101         * lib/getaddrinfo.c: fixed typo
6102
6103 2006-06-29  Jim Meyering  <jim@meyering.net>
6104
6105         * modules/strftime (Maintainer): Add my name, since with the
6106         FPRINTFTIME changes strftime.c has forked from glibc.
6107
6108 2006-06-29  Eric Blake  <ebb9@byu.net>
6109
6110         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
6111
6112 2006-06-29  Eric Blake  <ebb9@byu.net>
6113
6114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
6115
6116 2006-06-29  Eric Blake  <ebb9@byu.net>
6117
6118         * lib/stat_.h: New file.
6119
6120 2006-06-29  Eric Blake  <ebb9@byu.net>
6121
6122         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
6123         unused static function.
6124
6125 2006-06-29  Eric Blake  <ebb9@byu.net>
6126
6127         * doc/functions.texi (Function Portability): Document missing lstat
6128         on mingw.
6129
6130 2006-06-29  Eric Blake  <ebb9@byu.net>
6131
6132         * MODULES.html.sh: Add sys_stat.
6133         * modules/sys_stat: New module.
6134         * modules/mkstemp (Depends-on): Add sys_stat.
6135
6136 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6137
6138         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
6139
6140 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6141
6142         * m4/c-bs-a.m4: Removed.
6143
6144 2006-06-29  Derek R. Price  <derek@ximbiot.com>
6145
6146         * lib/strftime.c: Assume strftime() exists.
6147
6148 2006-06-29  Derek Price  <derek@ximbiot.com>
6149
6150         * modules/c-bs-a: Removed - \a is C89.
6151         * MODULES.html.sh: Remove c-bs-a.
6152
6153 2006-06-29  Bruno Haible  <bruno@clisp.org>
6154
6155         * modules/wcwidth (License): Change to LGPL.
6156
6157 2006-06-28  Simon Josefsson  <jas@extundo.com>
6158
6159         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
6160         on _WIN32.
6161
6162         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
6163         getnameinfo.
6164
6165 2006-06-28  Simon Josefsson  <jas@extundo.com>
6166
6167         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
6168
6169 2006-06-28  Simon Josefsson  <jas@extundo.com>
6170
6171         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
6172         functions there.  It will succeed on Windows XP, but on Windows
6173         2000 and (presumably) earlier, it will fail, and use the internal
6174         re-implementation.
6175         (use_win32_p): New function.
6176         (getaddrinfo): Use strtoul on servname, to support numeric ports.
6177         Support AI_NUMERICSERV to disable getservbyname.
6178         (getnameinfo): New function, only supports
6179         NI_NUMERICHOST|NI_NUMERICSERV for now.
6180
6181         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
6182         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
6183         getnameinfo.
6184
6185 2006-06-28  Eric Blake  <ebb9@byu.net>
6186
6187         * modules/wcwidth: New file.
6188         * modules/mbchar (Depends-on): Add wcwidth.
6189         * modules/mbswidth (Depends-on): Add wcwidth.
6190         * MODULES.html.sh: Add wcwidth.
6191
6192 2006-06-28  Eric Blake  <ebb9@byu.net>
6193
6194         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
6195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
6196
6197 2006-06-28  Eric Blake  <ebb9@byu.net>
6198
6199         * lib/xvasprintf.h: Fix comments.
6200
6201 2006-06-28  Eric Blake  <ebb9@byu.net>
6202
6203         * lib/mbchar.h (wcwidth): Include wcwidth.h.
6204         * lib/mbswidth.c (wcwidth): Move from here...
6205         * lib/wcwidth.h: ...to this new file.
6206
6207 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6208
6209         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
6210
6211         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
6212         it's obsolete.
6213         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
6214
6215 2006-06-28  Derek R. Price  <derek@ximbiot.com>
6216
6217         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
6218         Autoconf 2.60 says this stuff was obsolete.
6219
6220 2006-06-28  Bruno Haible  <bruno@clisp.org>
6221
6222         * modules/wcwidth (Files): Add m4/wchar_t.m4.
6223
6224 2006-06-28  Bruno Haible  <bruno@clisp.org>
6225
6226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
6227         gt_TYPE_WCHAR_T.
6228
6229 2006-06-28  Bruno Haible  <bruno@clisp.org>
6230
6231         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
6232         declaration for wcwidth.
6233         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
6234
6235 2006-06-28  Bruno Haible  <bruno@clisp.org>
6236
6237         * lib/mkdtemp.c [MINGW]: Include <io.h>.
6238         (mkdir): Define using _mkdir.
6239
6240 2006-06-28  Bruno Haible  <bruno@clisp.org>
6241
6242         * lib/getaddrinfo.h: Fix POSIX URL.
6243         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
6244         _WIN32.
6245         (use_win32_p): Make static.
6246         (getaddrinfo): Reject service name if it is empty or does not consist
6247         solely of decimal digits, or if its value is > 65535.
6248         (getnameinfo): Remove useless casts.
6249
6250 2006-06-27  Simon Josefsson  <jas@extundo.com>
6251
6252         * modules/sys_select: New file, suggested by Bruno Haible, Paul
6253         Eggert and Martin Lambers.
6254
6255 2006-06-27  Simon Josefsson  <jas@extundo.com>
6256
6257         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
6258         Eggert and Martin Lambers.
6259
6260 2006-06-27  Bruno Haible  <bruno@clisp.org>
6261
6262         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
6263         result to 0, not to empty.
6264         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
6265
6266 2006-06-27  Bruno Haible  <bruno@clisp.org>
6267
6268         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
6269
6270 2006-06-26  Simon Josefsson  <jas@extundo.com>
6271
6272         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
6273         present.
6274
6275 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
6276
6277         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
6278         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
6279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
6280
6281 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
6282
6283         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
6284
6285 2006-06-26  Bruno Haible  <bruno@clisp.org>
6286
6287         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
6288
6289 2006-06-26  Bruno Haible  <bruno@clisp.org>
6290
6291         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
6292
6293 2006-06-26  Bruno Haible  <bruno@clisp.org>
6294
6295         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
6296         SGI C compiler in pre-C99 mode.
6297         Suggested by Mark D. Baushke and Larry Jones.
6298
6299 2006-06-26  Bruno Haible  <bruno@clisp.org>
6300
6301         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
6302         WCHAR_MAX.
6303         Reported by Mark D. Baushke and Larry Jones.
6304
6305 2006-06-26  Bruno Haible  <bruno@clisp.org>
6306
6307         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
6308         in pre-C99 mode.
6309         Suggested by Mark D. Baushke and Larry Jones.
6310
6311 2006-06-23  Simon Josefsson  <jas@extundo.com>
6312             Bruno Haible  <bruno@clisp.org>
6313
6314         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
6315         Emit mostlyclean-local rule.
6316         (func_emit_tests_Makefile_am): Likewise.
6317         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
6318
6319 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
6320
6321         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
6322
6323 2006-06-23  Bruno Haible  <bruno@clisp.org>
6324
6325         * tests/test-stdint.c: Update to match ISO C 99 Technical
6326         Corrigendum 1.
6327
6328 2006-06-23  Bruno Haible  <bruno@clisp.org>
6329
6330         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
6331
6332 2006-06-23  Bruno Haible  <bruno@clisp.org>
6333
6334         * lib/stdint_.h: Treat IRIX like OpenBSD.
6335
6336 2006-06-23  Bruno Haible  <bruno@clisp.org>
6337
6338         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
6339         ISO C 99 Technical Corrigendum 1.
6340
6341 2006-06-22  Simon Josefsson  <jas@extundo.com>
6342
6343         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
6344         MinGW.
6345
6346 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
6349         needed.  Some compiler complained about some of them.  Problem reported
6350         by Larry Jones in
6351         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
6352
6353 2006-06-21  Simon Josefsson  <jas@extundo.com>
6354
6355         * tests/test-getaddrinfo.c: New file.
6356
6357         * modules/getaddrinfo-tests: New file.
6358
6359         * MODULES.html.sh: Add inet_pton.
6360
6361         * modules/inet_pton: New file.
6362
6363 2006-06-21  Simon Josefsson  <jas@extundo.com>
6364
6365         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
6366         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
6367         of using the (limited) gnulib implementation on Windows XP.
6368
6369         * m4/inet_pton.m4: New file.
6370
6371 2006-06-21  Simon Josefsson  <jas@extundo.com>
6372
6373         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
6374         variable.
6375
6376         * lib/socket_.h: Don't define WINVER.
6377
6378         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
6379         slightly modified to work in gnulib.
6380
6381 2006-06-21  Simon Josefsson  <jas@extundo.com>
6382
6383         * doc/gnulib.texi (Windows sockets): Add.
6384
6385 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         * lib/read-file.c (fread_file): Start with buffer allocation of
6388         0 bytes rather than 1 byte; this simplifies the code.
6389         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
6390         code to free buffer and save/restore errno.
6391         (internal_read_file): Remove unused local.
6392
6393 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6394
6395         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
6396         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
6397         Problem reported by Denis Excoffier in
6398         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
6399
6400 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6401
6402         * modules/sys_socket, modules/socklen: Include sys/types since
6403         FreeBSD 4.x's sys/socket.h needs it.
6404
6405 2006-06-19  Simon Josefsson  <jas@extundo.com>
6406
6407         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
6408
6409 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
6410
6411         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
6412
6413 2006-06-19  Bruno Haible  <bruno@clisp.org>
6414
6415         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
6416         and FULL_PATH_INTTYPES_H in angle brackets.
6417         Reported by Mark D. Baushke <mdb@gnu.org>.
6418
6419 2006-06-17  Eric Blake  <ebb9@byu.net>
6420
6421         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
6422         errno.
6423
6424 2006-06-17  Bruno Haible  <bruno@clisp.org>
6425
6426         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
6427         <sys/inttypes.h>.
6428
6429 2006-06-17  Bruno Haible  <bruno@clisp.org>
6430
6431         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
6432         whether errno is declared. Assume <errno.h> declares errno.
6433
6434 2006-06-17  Bruno Haible  <bruno@clisp.org>
6435
6436         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
6437
6438 2006-06-17  Bruno Haible  <bruno@clisp.org>
6439
6440         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
6441         problem on Solaris 2.5.1.
6442
6443 2006-06-16  Eric Blake  <ebb9@byu.net>
6444
6445         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
6446         * lib/unicodeio.c [!defined errno]: Likewise.
6447         * lib/strtol.c [!defined errno]: Likewise.
6448         * lib/strtod.c [!defined errno]: Likewise.
6449
6450 2006-06-15  Eric Blake  <ebb9@byu.net>
6451
6452         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
6453
6454 2006-06-15  Eric Blake  <ebb9@byu.net>
6455
6456         * config/srclist.txt (ssize_t.m4): Lose sync.
6457
6458 2006-06-15  Bruno Haible  <bruno@clisp.org>
6459
6460         * modules/stdint (Files): Include m4/full-header-path.m4,
6461         m4/size_max.m4, m4/wchar_t.m4.
6462         (Makefile.am): Many more substitutions.
6463         * modules/stdint-tests: New file.
6464         * tests/test-stdint.c: New file.
6465
6466 2006-06-15  Bruno Haible  <bruno@clisp.org>
6467
6468         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
6469         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
6470         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
6471         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
6472         gl_CHECK_TYPE_SAME): New macros.
6473
6474 2006-06-15  Bruno Haible  <bruno@clisp.org>
6475
6476         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
6477
6478 2006-06-15  Bruno Haible  <bruno@clisp.org>
6479
6480         * lib/stdint_.h: Rewritten to be fully auto-configured.
6481         Fixes bug on HP-UX/IA64.
6482
6483 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6484
6485         * lib/getdate.y (__attribute__): Don't define if already defined.
6486         Problem reported by Larry Jones.
6487         * lib/utimens.c (__attribute__): Likewise.
6488
6489 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6490
6491         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
6492         reported by Andreas Schwab.
6493
6494 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6495             Bruno Haible  <bruno@clisp.org>
6496
6497         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
6498         check for the declaration of strnlen and a run test that exposes the
6499         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
6500         rpl_strndup.
6501
6502 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6503             Bruno Haible  <bruno@clisp.org>
6504
6505         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
6506
6507 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6508
6509         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
6510         compile test, for Tru64 4.0D.
6511
6512 2006-05-28  Karl Berry  <karl@gnu.org>
6513
6514         * config/srclist.txt (printf-args.c): lose sync.
6515
6516 2006-05-26  Martin Lambers  <marlam@marlam.de>
6517
6518         * lib/getpass.c: Updates the test for the native W32 API, and adds
6519         missing includes, thus fixing compilation warnings.
6520
6521 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6522
6523         * lib/exclude.c (exclude_fnmatch): New function.
6524         (excluded_file_name): Call exclude_fnmatch.
6525         * lib/exclude.h (excluded_file_name): New prototype
6526
6527 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6528
6529         * lib/tempname.c (small_open, large_open): New macros.
6530         (__open, __open64) [!_LIBC]: Remove.
6531         (__gen_tempname): Use small_open and large_open instead of __open
6532         and __open64.  This fixes a portability bug on HP-UX 11.11i
6533         reported by Simon Wing-Tang in
6534         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
6535
6536 2006-05-24  Bruno Haible  <bruno@clisp.org>
6537
6538         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
6539         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
6540         Reported by Thorsten Maerz <torte@netztorte.de> via
6541         Aaron Stone <aaron@serendipity.cx>.
6542
6543 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6544
6545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
6546         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
6547         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
6548         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
6549         not really conditional on the cache.
6550         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
6551
6552 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6553
6554         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
6555         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
6556         (my_usleep): Don't mishandle maximum value.
6557
6558 2006-05-19  Jim Meyering  <jim@meyering.net>
6559
6560         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
6561
6562 2006-05-17  Bruno Haible  <bruno@clisp.org>
6563
6564         Cygwin portability.
6565         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
6566
6567 2006-05-17  Bruno Haible  <bruno@clisp.org>
6568
6569         * lib/stdint_.h: Fix recognition of Cygwin.
6570
6571 2006-05-15  Bruno Haible  <bruno@clisp.org>
6572
6573         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
6574         on libtool patch by Ralf Wildenhues.
6575
6576 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6577
6578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
6579         test for C99 conformance; (bool) 0.5 is an integer constant
6580         expression, but (bool) -0.5 is not.  Problem reported by Fedor
6581         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
6582
6583 2006-05-11  Simon Josefsson  <jas@extundo.com>
6584
6585         * m4/xvasprintf.m4: Fix obvious typo.
6586
6587 2006-05-11  Jim Meyering  <jim@meyering.net>
6588
6589         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
6590         James Lemley.
6591
6592 2006-05-10  Simon Josefsson  <jas@extundo.com>
6593
6594         * lib/md4.c: Typo fix, update copyright years.
6595         (K1, K2): Don't use L because it turn computations into 64-bit on
6596         64-bit platforms.
6597
6598 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6599
6600         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
6601         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
6602         unwanted sign propagation, e.g., on hosts with 64-bit int.
6603         There still are some problems with reeelly weird theoretical hosts
6604         (e.g., 33-bit int) but it's not worth worrying about now.
6605         * lib/sha1.c (rol): Likewise.
6606         (K1, K2, K3, K4): Remove unnecessary L suffix.
6607
6608 2006-05-10  Bruno Haible  <bruno@clisp.org>
6609
6610         * lib/des.c: Cast to avoid warnings.
6611
6612 2006-05-09  Bruno Haible  <bruno@clisp.org>
6613
6614         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
6615         (Depends-on): Depend also on xsize, stdarg.
6616         (configure.ac): Add gl_XVASPRINTF.
6617
6618 2006-05-09  Bruno Haible  <bruno@clisp.org>
6619
6620         * m4/xvasprintf.m4: New file.
6621
6622 2006-05-09  Bruno Haible  <bruno@clisp.org>
6623
6624         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
6625         (EOVERFLOW): Define fallback value.
6626         (xstrcat): New function.
6627         (xvasprintf): Recognize the special case of a string concatenation.
6628
6629 2006-05-08  Eric Blake  <ebb9@byu.net>
6630
6631         * gnulib-tool (func_version): Base copyright year on CVS date.
6632         (func_emit_copyright_notice): New function.
6633         (func_emit_lib_Makefile_am): Use it.
6634         (func_emit_tests_Makefile_am): Likewise.
6635         (func_import): Likewise.
6636
6637 2006-05-08  Bruno Haible  <bruno@clisp.org>
6638
6639         * modules/stdarg: New file.
6640         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
6641
6642 2006-05-08  Bruno Haible  <bruno@clisp.org>
6643
6644         * m4/stdarg.m4: New file, from GNU gettext.
6645
6646 2006-05-08  Bruno Haible  <bruno@clisp.org>
6647
6648         * config/srclist.txt (build-aux/config.rpath): different from latest
6649         release.
6650
6651 2006-05-08  Bruno Haible  <bruno@clisp.org>
6652
6653         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
6654
6655 2006-05-05  Jim Meyering  <jim@meyering.net>
6656
6657         * m4/warning.m4: New file, derived from bison's file by the same name.
6658
6659 2006-05-03  Bruno Haible  <bruno@clisp.org>
6660
6661         * lib/stdint_.h: Shorter URL.
6662         * lib/inttypes.h: Likewise.
6663
6664 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6665
6666         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
6667
6668 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         * lib/verify.h: Document the internals better.  Most of this change
6671         was written by Bruno Haible.
6672
6673 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         * doc/verify.texi: New file, partly based on a proposal by
6676         Bruno Haible.
6677
6678 2006-05-02  Bruno Haible  <bruno@clisp.org>
6679
6680         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
6681         test from here...
6682         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
6683
6684 2006-04-29  Bruno Haible  <bruno@clisp.org>
6685
6686         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
6687         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
6688
6689 2006-04-29  Bruno Haible  <bruno@clisp.org>
6690
6691         * gnulib-tool: Make --update option actually work.
6692
6693 2006-04-29  Bruno Haible  <bruno@clisp.org>
6694
6695         * doc/gcd.texi: New file.
6696         * doc/gnulib.texi: Include it.
6697
6698 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         * lib/getdate.y (get_date): When adding relative date, start with the
6701         initial time, not with the result of the first mktime call.
6702
6703 2006-04-25  Bruno Haible  <bruno@clisp.org>
6704
6705         * gnulib-tool (func_import): Output the include directives in three
6706         blocks, sorted separately.
6707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6708
6709 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6710
6711         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
6712         to define main with arguments, for C++.  Reported by Eric Blake.
6713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6714         Prefer 'int main ()' to 'int main (void)', for C++.
6715         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
6717         for 'main', for C99 and C++.
6718
6719 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6720
6721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
6722         Don't assume that exit status -1 is valid.
6723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6724         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6725         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6726         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
6727         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
6728         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
6729         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
6730         functions can be used without declaring them, or that you can
6731         exit with status -1.
6732         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
6733
6734 2006-04-24  Karl Berry  <karl@gnu.org>
6735
6736         * config/srclist.txt (longdouble.m4): sync lost.
6737
6738 2006-04-24  Eric Blake  <ebb9@byu.net>
6739
6740         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
6741
6742 2006-04-24  Bruno Haible  <bruno@clisp.org>
6743
6744         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
6745         poll() implementation in AIX.
6746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6747
6748 2006-04-24  Bruno Haible  <bruno@clisp.org>
6749
6750         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
6751         assigned exactly once.
6752
6753 2006-04-23  Claudio Fontana  <claudio@gnu.org>
6754             Bruno Haible  <bruno@clisp.org>
6755
6756         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
6757         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
6758         for AM_CPPFLAGS.
6759
6760 2006-04-23  Bruno Haible  <bruno@clisp.org>
6761
6762         * modules/copy-file: Depend on unistd.
6763         * modules/execute: Likewise.
6764         * modules/fatal-signal: Likewise.
6765         * modules/findprog: Likewise.
6766         * modules/mkdtemp : Likewise.
6767         * modules/pipe: Likewise.
6768         * modules/wait-process: Likewise.
6769
6770 2006-04-23  Bruno Haible  <bruno@clisp.org>
6771
6772         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
6773         condition was already detected.
6774         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6775
6776 2006-04-23  Bruno Haible  <bruno@clisp.org>
6777
6778         * lib/copy-file.c: Include <unistd.h> unconditionally.
6779         * lib/execute.c: Likewise.
6780         * lib/fatal-signal.c: Likewise.
6781         * lib/findprog.c: Likewise.
6782         * lib/mkdtemp.c: Likewise.
6783         * lib/pipe.h: Likewise.
6784         * lib/pipe.c: Likewise.
6785         * lib/wait-process.h: Likewise.
6786
6787 2006-04-23  Bruno Haible  <bruno@clisp.org>
6788
6789         * gnulib-tool (func_usage): Fix --import description. Document
6790         --update.
6791         (func_import): Create temporary file in a temporary directory, if
6792         --dry-run is specified. Silence errors from 'grep' when there are no
6793         m4 files in $m4dir.
6794         (func_create_testdir): Silence errors from 'grep' when there are no
6795         m4 files in $m4dir.
6796         Reported by Karl Berry <karl@freefriends.org>.
6797
6798 2006-04-20  Bruno Haible  <bruno@clisp.org>
6799
6800         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
6801         one argument, so that the code will be portable to Autoconf 2.60.
6802         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
6803         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6804         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
6805
6806 2006-04-19  Derek Price  <derek@ximbiot.com>
6807             Eric Blake  <ebb9@byu.net>
6808
6809         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
6810         rather than "/full/path.h".  Update comment to match.  Shorten &
6811         generalize m4_translit call via AS_TR_CPP.
6812
6813 2006-04-19  Derek Price  <derek@ximbiot.com>
6814             Eric Blake  <ebb9@byu.net>
6815
6816         * lib/inttypes.h: Correct grammar in comment.
6817
6818 2006-04-18  Derek Price  <derek@ximbiot.com>
6819             Paul Eggert  <eggert@cs.ucla.edu>
6820
6821         * modules/inttypes: New file.
6822         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
6823
6824 2006-04-18  Derek Price  <derek@ximbiot.com>
6825             Paul Eggert  <eggert@cs.ucla.edu>
6826
6827         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
6828         New files.
6829
6830 2006-04-18  Derek Price  <derek@ximbiot.com>
6831             Paul Eggert  <eggert@cs.ucla.edu>
6832
6833         * lib/inttypes.h: New file.
6834         * lib/strtoimax.c: Assume <inttypes.h>.
6835
6836 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6837
6838         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
6839         isn't mounted.  Problem reported by Kir Kolyshkin.
6840
6841 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6842
6843         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
6844         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
6845         Derek R. Price.
6846         * lib/regex.h (RE_DUP_MAX): Update comment to match current
6847         implementation.
6848
6849 2006-04-12  Eric Blake  <ebb9@byu.net>
6850
6851         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
6852         is now done automatically by the corresponding Autoconf macro.
6853
6854 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6855
6856         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
6857         time_r.h.
6858
6859 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6860
6861         Merge regex changes from libc, removing some of our
6862         POSIX-conformance changes that were rejected and redoing them in a
6863         less-intrusive way.
6864
6865         * lib/regcomp.c (re_compile_internal, init_dfa):
6866         Length arg is now size_t, not Idx.  All uses changed.
6867         (peek_token): Forward decl now says internal_function.
6868         (__re_error_msgid, __re_error_msgid_idx):
6869         Now static rather than extern with attribute_hidden.
6870         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
6871         For some reason libc prefers K&R style defns for external functions.
6872         (regerror) [!defined _LIBC]: Likewise.
6873         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
6874         (seek_collating_symbol_entry, lookup_collation_sequence_value):
6875         (build_range_exp, build_collating_symbol):
6876         Use K&R-style defn.
6877         (re_compile_fastmap): Use '\0' to memset, not 0.
6878         (utf8_sb_map): Make the calculations more obvious.
6879         (init_dfa, parse_bracket_exp, build_charclass_op):
6880         Call calloc and cast result, as glibc does.
6881         (init_word_char, fetch_token, peek_token, peek_token_bracket):
6882         (build_range_exp, build_collating_symbol):
6883         Now internal functions.
6884
6885         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
6886
6887         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
6888         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
6889         Don't depend on VMS; depend on __VMS instead, for POSIX
6890         namespace cleanness.
6891         (regoff_t): Define to ssize_t, not long int.
6892
6893         Remove the REG_ macros named below.  Instead, make the old names
6894         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
6895         __USE_GNU_REGEX.
6896         (REG_BACKSLASH_ESCAPE_IN_LISTS):
6897         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
6898         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
6899         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
6900         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
6901         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
6902         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
6903         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
6904         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
6905         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
6906         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
6907         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
6908         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
6909         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
6910         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
6911         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
6912         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
6913         (REG_NREGS):
6914         Remove.  All uses replaced by the old RE_* names.
6915         (RE_BACKSLASH_ESCAPE_IN_LISTS):
6916         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
6917         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
6918         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
6919         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
6920         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
6921         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
6922         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
6923         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
6924         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
6925         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
6926         Don't bother having these macros be independent of each others'
6927         values, since they no longer exist in the POSIX name space.
6928
6929         Rename the following member names back to their old names,
6930         unless !__USE_GNU_REGEX.  All uses changed back.
6931         (buffer): Renamed from re_buffer.
6932         (allocated): Renamed from re_allocated.
6933         (used): Renamed from re_used.
6934         (syntax): Renamed from re_syntax.
6935         (fastmap): Renamed from re_fastmap.
6936         (translate): Renamed from re_translate.
6937         (can_be_null): Renamed from re_can_be_null.
6938         (regs_allocated): Renamed from re_regs_allocated.
6939         (fastmap_accurate): Renamed from re_fastmap_accurate.
6940         (no_sub): Renamed from re_no_sub.
6941         (not_bol): Renamed from re_not_bol.
6942         (not_eol): Renamed from re_not_eol.
6943         (newline_anchor): Renamed from re_newline_anchor.
6944         (num_regs): Renamed from rm_num_regs.
6945         (start): Renamed from rm_start.
6946         (end): Renamed from rm_end.
6947
6948         (free_state): Move up a bit.
6949
6950         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
6951         #define to be empty.
6952         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
6953         when that is what is intended.
6954         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
6955         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
6956         (MAX): New macro.
6957         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
6958         All uses changed back to re_malloc, etc.  It's now the caller's
6959         responsibility to check for overflow; all callers changed.
6960         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
6961         (re_x2nrealloc): Remove.
6962         (free_state): Remove decl.
6963
6964         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
6965         (re_set_registers, re_exec):
6966         Use K&R-style defn.
6967
6968         2006-01-31  Roland McGrath  <roland@redhat.com>
6969
6970         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
6971         Reported by Mike Frysinger <vapier@gentoo.org>.
6972
6973         2006-01-15  Andreas Jaeger  <aj@suse.de>
6974
6975         [BZ #1950]
6976         * lib/regex_internal.c (re_string_reconstruct): Adjust for
6977         build_wcs_upper_buffer change.
6978         (build_wcs_upper_buffer): Change return type.
6979
6980         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
6981
6982         * lib/regex_internal.h: Include <stdint.h> if available.
6983
6984         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
6985
6986         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
6987
6988         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
6989
6990         * lib/regcomp.c: Adjust for changed secondary hash function.
6991
6992         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
6993
6994         * lib/regex.h: Pretty printing.
6995         Clean up namespace a bit.
6996
6997         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
6998
6999         * lib/regexec.c (update_cur_sifted_state, check_arrival,
7000         check_arrival_add_next_nodes): Avoid using uninitialized variable.
7001
7002         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7003                     Ulrich Drepper  <drepper@redhat.com>
7004
7005         [BZ #1302]
7006         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
7007         changed.
7008         (bitset_word_t): Renamed from bitset_word.  All uses changed.
7009
7010         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
7011
7012         [BZ #281]
7013         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
7014         * lib/regcomp.c: Remove unnecessary uses of
7015         unsigned RE_TRANSLATE_TYPE.
7016         * lib/regex_internal.h: Likewise.
7017         * lib/regex_internal.c: Likewise.
7018         * lib/regexec.c: Likewise.
7019         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
7020
7021         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
7022
7023         * lib/regexec.c (find_recover_state): Remove unnecessary
7024         initialization.
7025         (transit_state_bkref): Make DFA a const pointer.
7026         (get_subexp): Likewise.
7027         (check_arrival): Likewise.
7028         (update_cur_sifted_state): Likewise.
7029         (re_search_internal): Likewise.
7030         (prune_impossible_nodes): Likewise.
7031         (acquire_init_state_context): Likewise.
7032         (proceed_next_node): Likewise.
7033         (set_regs): Likewise.
7034         (free_fail_stack_return): Likewise.
7035         (check_arrival_expand_ecl): Mark DFA parameter as const.
7036         (check_arrival_expand_ecl_sub): Likewise.
7037         (check_subexp_limits): Likewise.
7038         (sub_epsilon_src_nodes):  Likewise.
7039         (add_epsilon_src_nodes):  Likewise.
7040         (merge_state_array): Likewise.
7041         (update_regs): Likewise.
7042         (build_trtable): Likewise.
7043         (sift_states_backward): Mark MCTX parameter as const.
7044         (build_sifted_states): Likewise.
7045         (update_cur_sifted_state): Likewise.
7046         (sift_states_mkref): Likewise.
7047         (check_arrival_expand_ecl): Mark eclosure as const.
7048         (check_dst_limits_calc_pos_1): Likewise.
7049         * lib/regex_internal.h (re_match_context_t): Make dfa a const
7050         pointer.
7051
7052         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
7053
7054         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
7055         (transit_state_sb): Likewise.
7056         (transit_state_mb): Likewise.
7057         (sift_states_iter_mb): Likewise.
7058         (check_arrival_add_next_nodes): Likewise.
7059         (check_node_accept_bytes): Change first parameter to pointer-to-const.
7060         [_LIBC] (re_search_2_stub): Use mempcpy.
7061
7062         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
7063         mbrtowc for very simple UTF-8 case.
7064
7065         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
7066         a pointer-to-const.
7067         (re_acquire_state_context): Likewise.
7068         * lib/regex_internal.h: Adjust prototypes.
7069
7070         * lib/regex.c: Prevent using C++ compilers.
7071
7072         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
7073         (re_acquire_state_context): Likewise.
7074
7075 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7076
7077         * modules/regex (Depends-on): Add ssize_t.
7078
7079 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7080
7081         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
7082         translation table.
7083
7084 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7085
7086         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
7087
7088 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
7089             Bruno Haible  <bruno@clisp.org>
7090
7091         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
7092         <sys/types.h> and <inttypes.h>.
7093
7094 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7095
7096         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
7097         `__error_t_defined', so argp.h will not typedef the former.
7098
7099 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7100
7101         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
7102         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
7103         glibc names.  Even if glibc is changed to conform to POSIX, the
7104         traditional names will be available anyway, since regex depends on
7105         the extensions module.  Also, fix a longstanding typo in the
7106         implementation of Spencer ERE test #75 from grep 2.3.  Problems
7107         reported by Emanuele Giaquinta.  Also, change sense of cached
7108         variable, so that the message makes sense.
7109
7110 2006-03-24  Simon Josefsson  <jas@extundo.com>
7111
7112         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
7113         including some doc fixes.
7114         (base64_encode_alloc): Fix +1 bug on allocation failures.
7115
7116 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7117
7118         * lib/base64.c (base64_encode): Do not read past end of array with
7119         unsanitized input on systems with CHAR_BIT > 8.
7120
7121 2006-03-24  Eric Blake  <ebb9@byu.net>
7122
7123         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
7124
7125 2006-03-22  Karl Berry  <karl@gnu.org>
7126
7127         * config/srclist.txt (*setenv.[ch]): get from coreutils.
7128         * config/srclistvars.sh (COREUTILS): new var.
7129
7130 2006-03-17  Jim Meyering  <jim@meyering.net>
7131
7132         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
7133         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
7134
7135 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
7136
7137         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
7138         no longer needs it.  Instead, check that regoff_t is as least
7139         as wide as ptrdiff_t.
7140
7141         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
7142         so that our regex.h stays compatible with the installed regex.
7143         This is helpful for installers who configure --without-included-regex.
7144         Problem reported by Emanuele Giaquinta.
7145
7146 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
7147
7148         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
7149         Typedef to long int, not to off_, as POSIX will likely change
7150         in that direction.
7151
7152 2006-03-15  Eric Blake  <ebb9@byu.net>
7153
7154         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
7155
7156 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7157
7158         * lib/argp-help.c (validate_uparams): Fix typo
7159         * lib/argp-parse.c (argp_default_options): Consistently begin help
7160         messages with a lowercase letter.
7161
7162 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7163
7164         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
7165         overrun buffers and shouldn't be used (much as gets shouldn't be
7166         used).
7167         * lib/time_r.c (asctime_r, ctime_r): Likewise.
7168
7169 2006-03-08  Simon Josefsson  <jas@extundo.com>
7170
7171         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
7172         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7173
7174 2006-03-08  Simon Josefsson  <jas@extundo.com>
7175
7176         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
7177         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7178
7179 2006-03-08  Simon Josefsson  <jas@extundo.com>
7180
7181         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
7182         signal that configure disabled the device.
7183
7184 2006-03-08  Simon Josefsson  <jas@extundo.com>
7185
7186         * build-aux/maint.mk: Fix refresh-po, to handle no translated
7187         languages.
7188
7189 2006-03-07  Simon Josefsson  <jas@extundo.com>
7190
7191         * modules/getopt (Depends-on): Add unistd.
7192
7193         * modules/unistd: New file.
7194
7195 2006-03-07  Simon Josefsson  <jas@extundo.com>
7196
7197         * modules/gc-random: New file.
7198
7199 2006-03-07  Simon Josefsson  <jas@extundo.com>
7200
7201         * m4/unistd_h.m4: New file.
7202
7203 2006-03-07  Simon Josefsson  <jas@extundo.com>
7204
7205         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
7206         test to be side-effect free by storing the result in the cache
7207         variable gl_cv_lib_readline, and moving the assignment of
7208         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
7209         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7210
7211 2006-03-07  Simon Josefsson  <jas@extundo.com>
7212
7213         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
7214         error on missing devices (the functions will return an error).
7215
7216         * m4/gc.m4: Move random stuff to gc-random.m4
7217
7218 2006-03-07  Simon Josefsson  <jas@extundo.com>
7219
7220         * lib/unistd_.h: New file.
7221
7222 2006-03-07  Simon Josefsson  <jas@extundo.com>
7223
7224         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
7225
7226 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7227
7228         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
7229         Problem reported by Juan Manuel Guerrero.
7230
7231 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7232
7233         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
7234         the unistd module.
7235         * lib/getlogin_r.c: Likewise.
7236         * lib/getlogin_r.h: Likewise.
7237         * lib/glob.c: Likewise.
7238         * lib/pagealign_alloc.c: Likewise.
7239         * lib/unistd_.h: Remove; no longer needed.
7240
7241 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7242
7243         * MODULES.html.sh (Support for systems lacking POSIX:2001):
7244         Add unistd.
7245         * modules/c-stack (Depends-on): Add unistd.
7246         * modules/getlogin_r: Likewise.
7247         * modules/glob: Likewise.
7248         * modules/pagealign_alloc: Likewise.
7249         * modules/unistd (Files): Remove lib/unistd_.h.
7250         (EXTRA_DIST): Remove.
7251         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
7252         need unistd_.h.
7253         (MOSTLYCLEANFILES): Remove unistd.h-t.
7254
7255 2006-03-03  Simon Josefsson  <jas@extundo.com>
7256
7257         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
7258
7259 2006-03-03  Simon Josefsson  <jas@extundo.com>
7260
7261         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
7262         libidn and bison.
7263
7264 2006-03-03  Simon Josefsson  <jas@extundo.com>
7265
7266         * build-aux/maint.mk: Add indent target.
7267
7268 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
7269
7270         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
7271         our replacement poll.h in any case, to avoid a differing
7272         declaration from a system header.  Seen on AIX.
7273
7274 2006-03-01  Simon Josefsson  <jas@extundo.com>
7275
7276         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
7277         <kasal@ucw.cz>.
7278
7279 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7280
7281         * modules/gettime (Depends-on): Add extensions module.
7282         * modules/nanosleep (Depends-on): Likewise.
7283         * modules/settime (Depends-on): Likewise.
7284
7285 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
7286
7287         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
7288         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
7289         pedantically.
7290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7291         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
7292
7293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
7294         not "==".  Reported by Ralf Wildenhues.
7295
7296 2006-03-01  Karl Berry  <karl@gnu.org>
7297
7298         * doc/Copyright/request-*: new files, synced from gnuorg.
7299
7300 2006-03-01  Karl Berry  <karl@gnu.org>
7301
7302         * config/srclist.txt (Copyright/*): new entries.
7303
7304 2006-02-28  Simon Josefsson  <jas@extundo.com>
7305
7306         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
7307
7308 2006-02-27  Simon Josefsson  <jas@extundo.com>
7309
7310         * lib/base64.h: Indent #define's.  From Jim Meyering
7311         <jim@meyering.net>.
7312
7313 2006-02-27  Jim Meyering  <jim@meyering.net>
7314
7315         Revert the change of 2006-02-24, so these files can continue
7316         to be sync'd from gettext.
7317         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
7318         of `config.h'.
7319
7320 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7321
7322         * modules/intprops: New file.
7323         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
7324         Add intprops.
7325         * modules/getloadavg (Files): Remove lib/intprops.h.
7326         (Depends-on): Add intprops.
7327         * modules/human: Likewise.
7328         * modules/inttostr: Likewise.
7329         * modules/openat: Likewise.
7330         * modules/sig2str: Likewise.
7331         * modules/userspec: Likewise.
7332         * modules/utimecmp: Likewise.
7333         * modules/xnanosleep: Likewise.
7334         * modules/xstrtol: Likewise.
7335
7336 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
7337
7338         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
7339         * modules/lock-tests (TESTS): Use $(EXEEXT).
7340         * modules/tls-tests: Likewise.
7341         * modules/argp-tests: Likewise.
7342         (check_PROGRAMS): New var, replacing...
7343         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
7344
7345 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7346
7347         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
7348         `config.h'.
7349
7350 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
7353
7354 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7355
7356         Sync from coreutils.
7357         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
7358         gl_CHDIR_SAFER.
7359
7360 2006-02-22  Jim Meyering  <jim@meyering.net>
7361
7362         Sync from coreutils.
7363         * m4/chdir-safer.m4: New file.
7364
7365 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7366
7367         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
7368         AT_FDCWD exceeds INT_MAX.
7369         * lib/openat.h (AT_FDCWD): Likewise.
7370
7371 2006-02-17  Eric Blake  <address@hidden>
7372
7373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
7374
7375 2006-02-16  Simon Josefsson  <jas@extundo.com>
7376
7377         * modules/getaddrinfo (Depends-on): Add sys_socket.
7378
7379 2006-02-15  Simon Josefsson  <jas@extundo.com>
7380
7381         * build-aux/maint.mk: Add dsyntax-check rule.
7382
7383 2006-02-15  Eric Blake  <ebb9@byu.net>
7384
7385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
7386         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
7387         'present but cannot compile' warnings on cygwin.
7388         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
7389         use ws2tcpip.h if sys/socket.h works.
7390         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
7391         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
7392
7393 2006-02-14  Simon Josefsson  <jas@extundo.com>
7394
7395         * modules/maintainer-makefile (Files): Rename.
7396
7397         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
7398         and (the local) Makefile.cfg to maint-cfg.mk.
7399
7400         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
7401         to the latter.
7402
7403         * modules/maintainer-makefile: New module.
7404
7405         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
7406         severaly stripped to make it possible to build it up from scratch
7407         with reliable tests.
7408
7409         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
7410         fixes to permit overriding the default actions when configure and
7411         makefile are not available.
7412
7413 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7414
7415         Sync from coreutils.
7416         * modules/lstat (Depends-on): Don't depend on xalloc.
7417         (License): Change from GPL to LGPL, since this is now simply a
7418         replacement for a libc function.
7419
7420 2006-02-14  Jim Meyering  <jim@meyering.net>
7421
7422         Sync from coreutils.
7423
7424         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
7425         failure on deficient systems, and simplify gnulib lgpl dependencies.
7426         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
7427         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
7428
7429         * lib/xalloc-die.c: Remove unused definition of N_.
7430
7431 2006-02-14  Jim Meyering  <jim@meyering.net>
7432
7433         Sync from coreutils.
7434         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
7435         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7436         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
7437         double-quote uses of that variable, to accommodate the rare case in
7438         which getmntent is available in none of the libraries checked.  This
7439         happens at least on FreeBSD 5.0.
7440
7441 2006-02-13  Simon Josefsson  <jas@extundo.com>
7442
7443         * gnulib-tool (Usage): Fix --import, from
7444         karl@freefriends.org (Karl Berry).
7445
7446 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
7447
7448         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
7449
7450 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
7451
7452         * lib/argp-namefrob.h: Restore changes accidentally lost during the
7453         "autoupdate" on 2005-12-12.
7454
7455 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7456
7457         * modules/closeout (Depends-on): Remove atexit.
7458
7459 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7460
7461         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
7462         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
7463
7464 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7465
7466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
7467         __EXTENSIONS__ if this causes compilation to fail.  Problem
7468         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
7469         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
7470
7471 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7472
7473         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
7474         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
7475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
7476         All uses changed.
7477
7478 2006-01-26  Simon Josefsson  <jas@extundo.com>
7479
7480         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
7481         prototype is visible on mingw32.
7482
7483         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
7484         for mingw32.
7485
7486         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
7487         mingw32).
7488
7489 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
7490
7491         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
7492         attempt to open for write; this always fails, at least on POSIX
7493         hosts.  This reinstates the 2006-01-09 change, which was
7494         inadvertently removed.
7495
7496 2006-01-26  Bruno Haible  <bruno@clisp.org>
7497
7498         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
7499         Reported by Paul Eggert.
7500
7501 2006-01-26  Bruno Haible  <bruno@clisp.org>
7502             Paul Eggert  <eggert@cs.ucla.edu>
7503
7504         * lib/stdbool_.h (_Bool)
7505         [(! (defined __cplusplus || defined __BEOS__)
7506           && !defined __GNUC__
7507           && !(defined __HP_cc || defined __xlc__
7508                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
7509                || defined __sgi))]:
7510         #define to signed char in these cases too; this simplifies
7511         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
7512         etc., separately) and makes it more conservative.
7513
7514 2006-01-25  Simon Josefsson  <jas@extundo.com>
7515
7516         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
7517         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
7518         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
7519
7520 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7521
7522         * lib/argp-namefrob.h: Bugfix. Remove stray #
7523
7524 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7525
7526         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
7527         so that we test the test.
7528         Check for yet another HP-UX cc bug involving *bool |= bool.
7529
7530 2006-01-25  Karl Berry  <karl@gnu.org>
7531
7532         * config/srclist.txt (vasnprintf.c): sync lost.
7533
7534 2006-01-25  Jim Meyering  <jim@meyering.net>
7535
7536         Sync from the stable (b5) branch of coreutils:
7537
7538         * lib/fts.c (fts_children): Don't let close() clobber errno from
7539         failed fchdir().
7540
7541         * lib/fts.c (fts_stat): When following a symlink-to-directory,
7542         don't necessarily interpret stat-fails+lstat-succeeds as indicating
7543         a dangling symlink.  That can also happen at least for ELOOP.
7544         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
7545         FYI, this bug predates the inclusion of fts.c in coreutils.
7546
7547         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
7548         in their own block, so pre-c99 compilers don't object.
7549
7550         Avoid the double-free (first in fts_read, second in fts_close) that
7551         would occur when an `active' directory is made inaccessible (e.g.,
7552         via chmod a-x) during a traversal.
7553         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7554         before returning.  Reproduce this failure by
7555         mkdir -p a/b; cd a; chmod a-x . b
7556         Reported by Stavros Passas.
7557
7558 2006-01-25  Jim Meyering  <jim@meyering.net>
7559
7560         * lib/fileblocks.c: Remove more useless parentheses.
7561         * lib/readutmp.h: Likewise.
7562
7563 2006-01-25  Bruno Haible  <bruno@clisp.org>
7564
7565         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
7566         warnings.
7567         Reported by Paul Eggert.
7568
7569 2006-01-25  Bruno Haible  <bruno@clisp.org>
7570
7571         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
7572         rid of a trap command. For Solaris sh.
7573         Reported by Mark D. Baushke <mdb@gnu.org>.
7574
7575 2006-01-24  Simon Josefsson  <jas@extundo.com>
7576
7577         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
7578         Bruno.
7579
7580 2006-01-24  Karl Berry  <karl@gnu.org>
7581
7582         * config/srclist.txt (argp-namefrob.h): sync lost.
7583
7584 2006-01-24  Jim Meyering  <jim@meyering.net>
7585
7586         * modules/openat (Files): Add lib/intprops.h.
7587         From Mark D. Baushke.
7588
7589 2006-01-24  Jim Meyering  <jim@meyering.net>
7590
7591         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
7592         Reported by Mark D. Baushke.
7593
7594 2006-01-24  Jim Meyering  <jim@meyering.net>
7595
7596         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
7597
7598 2006-01-24  Bruno Haible  <bruno@clisp.org>
7599
7600         * modules/strnlen (Maintainer): Change from glibc to all.
7601
7602 2006-01-24  Bruno Haible  <bruno@clisp.org>
7603
7604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
7605         Patch by Paul Eggert.
7606
7607 2006-01-24  Bruno Haible  <bruno@clisp.org>
7608
7609         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
7610         already has it.
7611         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
7612         2005-11-26.
7613
7614         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
7615         'signed char' to avoid problems with the built-in _Bool type.
7616         Reported by Paul Eggert on 2005-11-26.
7617
7618 2006-01-24  Bruno Haible  <bruno@clisp.org>
7619
7620         * gnulib-tool (func_import): Avoid constructing complicated sed
7621         expressions inside backquote.
7622         Report and solution by Mark D. Baushke <mdb@gnu.org>.
7623
7624 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
7625
7626         These changes imported from libc.
7627         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
7628         test and two separate function calls.
7629         * lib/strndup.c (__strndup): Add libc_hidden_def.
7630
7631 2006-01-23  Simon Josefsson  <jas@extundo.com>
7632
7633         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
7634         Remove the test_*_SOURCES variable: automake infers it by default.
7635         * modules/tls-tests: Likewise.
7636
7637 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7638
7639         Work around porting bugs reported by Dieter in
7640         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
7641         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
7642         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
7643         Include "getopt.h" first, to check interface.
7644         (getenv): Declare only if defined HAVE_DECL_GETENV &&
7645         !HAVE_DECL_GETENV.
7646         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
7647         (__strndup): Revert to K&R-style function dfns, the glibc style.
7648         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
7649         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
7650         Include strnlen.h first, to get prototype properly.
7651         (strnlen): Renamed from __strnlen.
7652         Remove weak alias.
7653
7654 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7655
7656         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
7657
7658 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7659
7660         * config/srclist.txt: Adjust to reflect glibc reorganization.
7661         This affects only comments.
7662
7663 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7664
7665          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
7666          Reported by Bruce Korb <bkorb@gnu.org>.
7667
7668 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
7669
7670         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
7671         to pacify gcc -Wswitch-default.
7672
7673 2006-01-22  Bruno Haible  <bruno@clisp.org>
7674
7675         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
7676         temporary buffer for sprintf, take into account the precision also
7677         for 'd', 'i', 'u', 'o', 'x', 'X'.
7678
7679 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
7680
7681         * modules/argp-tests: New module
7682         * tests/test-argp.c: New file
7683         * tests/test-argp-2.sh: New file
7684
7685 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
7686
7687         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
7688         (__argp_base_name): Removed
7689         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
7690         typo.
7691         (__argp_base_name): Provide macro definition or extern declaration
7692         depending on the configuration
7693
7694 2006-01-20  Simon Josefsson  <jas@extundo.com>
7695
7696         * modules/inet_ntop (Depends-on): Depend on sys_socket.
7697
7698 2006-01-20  Simon Josefsson  <jas@extundo.com>
7699
7700         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
7701
7702 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7703
7704         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
7705         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
7706         Suggested by Bruno Haible.
7707
7708 2006-01-20  Karl Berry  <karl@gnu.org>
7709
7710         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
7711         until changes propagate, I guess.
7712
7713 2006-01-19  Simon Josefsson  <jas@extundo.com>
7714
7715         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
7716
7717 2006-01-19  Simon Josefsson  <jas@extundo.com>
7718
7719         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
7720
7721 2006-01-19  Simon Josefsson  <jas@extundo.com>
7722
7723         * gnulib-tool: Set check_PROGRAMS.
7724
7725         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
7726         modules/des-tests, modules/gc-arcfour-tests,
7727         modules/gc-arctwo-tests, modules/gc-des-tests,
7728         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
7729         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
7730         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
7731         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
7732         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
7733         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
7734         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
7735         test_*_SOURCES.
7736
7737 2006-01-18  Simon Josefsson  <jas@extundo.com>
7738
7739         * modules/socklen (Depends-on): Depend on sys_socket.
7740
7741 2006-01-18  Simon Josefsson  <jas@extundo.com>
7742
7743         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
7744         modules/des-tests, modules/gc-arcfour-tests,
7745         modules/gc-arctwo-tests, modules/gc-des-tests,
7746         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
7747         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
7748         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
7749         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
7750         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
7751         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
7752         $(EXEEXT) to automake TESTS variable, for mingw32.
7753
7754 2006-01-17  Simon Josefsson  <jas@extundo.com>
7755
7756         * modules/socklen (Include): Need sys/socket.h.
7757
7758 2006-01-17  Bruno Haible  <bruno@clisp.org>
7759
7760         * modules/ssize_t (Include): Add <sys/types.h>.
7761
7762 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7763
7764         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
7765         it's not portable and it doesn't work with cross-compiles.
7766         Problem reported by Bruno Haible.  Fix missing-$ typo in
7767         'test "gl_cv_ignore_unused_libraries" ...' that prevented
7768         -zignore from being used with Sun's C compiler.
7769
7770 2006-01-12  Simon Josefsson  <jas@extundo.com>
7771
7772         * lib/base64.c: Fix warning, reported by Bruno Haible
7773         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
7774
7775 2006-01-12  Bruno Haible  <bruno@clisp.org>
7776
7777         * modules/ldd: New file.
7778         * build-aux/ldd.sh.in: New file.
7779         * MODULES.html.sh (Support for building libraries and executables): Add
7780         ldd.
7781
7782 2006-01-12  Bruno Haible  <bruno@clisp.org>
7783
7784         * m4/ldd.m4: New file.
7785
7786 2006-01-12  Bruno Haible  <bruno@clisp.org>
7787
7788         * gnulib-tool (func_import, func_create_testdir): Don't go into an
7789         endless loop while replacing $auxdir with build-aux.
7790
7791 2006-01-11  Simon Josefsson  <jas@extundo.com>
7792
7793         * lib/stdint_.h (SIZE_MAX): Add missing (.
7794
7795 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7796
7797         Sync from coreutils.
7798         * lib/md5.c: Fix commentary typos.
7799         (alignof, UNALIGNED_P): No need for a GCC-specific version.
7800         * lib/md5.h (__attribute__): Remove; unused.
7801         * lib/sha1.c: Fix commentary to match md5 better.
7802         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
7803         so that we don't need to worry about alignment.  All uses changed.
7804         This merges the 2005-10-28 md5 change into sha1.
7805
7806 2006-01-11  Jim Meyering  <jim@meyering.net>
7807
7808         Sync from coreutils.
7809         * lib/md5.c (OP): Fix spacing.
7810
7811 2006-01-11  Bruno Haible  <bruno@clisp.org>
7812
7813         Ensure automatic ordering between gl_LOCK and gl_ARGP.
7814         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
7815         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
7816
7817 2006-01-11  Bruno Haible  <bruno@clisp.org>
7818
7819         Ensure automatic ordering between gl_LOCK and gl_ARGP.
7820         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
7821         the "early" section as well.
7822
7823 2006-01-11  Bruno Haible  <bruno@clisp.org>
7824
7825         Avoid "ar: no archive members specified" error on MacOS X.
7826         * gnulib-tool (func_modules_add_dummy): New function.
7827         (func_import, func_create_testdir): Invoke it.
7828
7829 2006-01-11  Bruno Haible  <bruno@clisp.org>
7830
7831         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
7832         with $auxdir in AC_CONFIG_FILES statements.
7833
7834 2006-01-11  Bruno Haible  <bruno@clisp.org>
7835
7836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7837         Initialize also noinst_HEADERS to empty.
7838
7839 2006-01-11  Bruno Haible  <bruno@clisp.org>
7840
7841         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
7842         variables.
7843         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
7844         autoreconf.
7845
7846 2006-01-11  Bruno Haible  <bruno@clisp.org>
7847
7848         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
7849         overridable by the user.
7850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7851
7852 2006-01-10  Simon Josefsson  <jas@extundo.com>
7853
7854         * modules/sys_socket: New file.
7855
7856 2006-01-10  Simon Josefsson  <jas@extundo.com>
7857
7858         * m4/sys_socket_h.m4: New file.
7859
7860 2006-01-10  Simon Josefsson  <jas@extundo.com>
7861
7862         * lib/socket_.h: New file.
7863
7864 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7865
7866         * modules/readutmp (Maintainer): Add myself.
7867
7868 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7869
7870         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
7871         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
7872         People who are still concerned with buggy memcmp implementations
7873         can invoke gl_FUNC_MEMCMP themselves.
7874
7875 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7876
7877         * lib/regex_internal.h (BITSET_WORD_BITS):
7878         Work around a bug in 64-bit PGC (before version 6.1-2), where the
7879         preprocessor mishandles large unsigned values as if they were signed.
7880         Problem reported by Claudio Fontana in
7881         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
7882
7883 2006-01-10  Jim Meyering  <jim@meyering.net>
7884
7885         Avoid the double-free (first in fts_read, second in fts_close) that
7886         would occur when an `active' directory is made inaccessible (e.g.,
7887         via chmod a-x) during a traversal.
7888         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
7889         before returning.  Reproduce this failure by
7890         mkdir -p a/b; cd a; chmod a-x . b
7891         Reported by Stavros Passas.
7892
7893         Sync from coreutils.
7894         * lib/sha1.c: Tweak grammar in a comment.
7895
7896 2006-01-10  Jim Meyering  <jim@meyering.net>
7897
7898         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
7899         Patch by Joerg Sonnenberger.
7900
7901 2006-01-10  Bruno Haible  <bruno@clisp.org>
7902
7903         * modules/readutmp: Depend on module free.
7904         * modules/strtok_r: Depend on module restrict.
7905
7906 2006-01-10  Bruno Haible  <bruno@clisp.org>
7907
7908         * modules/gettext (configure.ac): Add an invocation of
7909         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
7910
7911 2006-01-10  Bruno Haible  <bruno@clisp.org>
7912
7913         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
7914         Reported by Werner Lemberg <wl@gnu.org>.
7915
7916 2006-01-10  Bruno Haible  <bruno@clisp.org>
7917
7918         * lib/localcharset.c: Update from GNU gettext.
7919
7920 2006-01-10  Bruno Haible  <bruno@clisp.org>
7921
7922         * lib/argp.h (__const): Remove macro. Use const instead.
7923         * lib/argp-fmtstream.h (__const): Likewise.
7924         * lib/glob_.h (__const): Remove macro.
7925         * lib/glob-libc.h: Use const instead of __const.
7926
7927 2006-01-10  Bruno Haible  <bruno@clisp.org>
7928
7929         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
7930         variable.
7931         Needed to avoid an automake error regarding the 'gettext' module.
7932
7933 2006-01-09  Simon Josefsson  <jas@extundo.com>
7934
7935         * modules/inet_ntop (Depends-on): Add restrict.
7936
7937 2006-01-09  Simon Josefsson  <jas@extundo.com>
7938
7939         * modules/gc-rijndael-tests (License): Put under LGPL.
7940
7941         * modules/gc-des-tests (License): Likewise.
7942
7943         * modules/gc-arcfour-tests (License): Likewise.
7944
7945         * modules/gc-arctwo-tests (License): Likewise.
7946
7947         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
7948
7949         * modules/gc-hmac-sha1-tests (Files): Likewise.
7950
7951         * modules/gc-hmac-md5-tests (License): Likewise.
7952
7953         * modules/gc-sha1-tests (License): Likewise.
7954
7955         * modules/gc-md5-tests (License): Likewise.
7956
7957         * modules/gc-md4-tests (License): Likewise.
7958
7959         * modules/gc-md2-tests (License): Likewise.
7960
7961         * modules/gc-tests (License): Likewise.
7962
7963         * modules/des-tests (License): Likewise.
7964
7965         * modules/md4-tests (License): Likewise.
7966
7967         * modules/md2-tests (License): Likewise.
7968
7969 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7970
7971         Sync from coreutils:
7972
7973         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
7974         * modules/lib-ignore: New file.
7975         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
7976         chdir-safer.m4, lchmod.m4.
7977         * modules/openat: Add mkdirat.c, openat-priv.h.
7978
7979 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7980
7981         Sync from coreutils.
7982         * m4/lib-ignore.m4: New file.
7983         * m4/lchmod.m4: New file.
7984
7985 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7986
7987         Sync from coreutils.
7988         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
7989         for write access: POSIX says that must fail.
7990         * lib/fts.c (diropen): Likewise.
7991         * lib/save-cwd.c (save_cwd): Likewise.
7992         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
7993         well, for minor improvements on hosts that lack O_DIRECTORY.
7994         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
7995         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
7996         Fall back on chown if open failed with EACCES.
7997
7998         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
7999         Report an error at compile-time if only a 1-second nominal clock
8000         resolution is found.
8001
8002         * lib/lchmod.h: New file.
8003         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
8004         (make_dir_parents): Use lchown rather than chown, and
8005         lchmod rather than chmod.
8006
8007         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
8008         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
8009         "proc" reported by n0dalus.
8010
8011         * lib/mountlist.c: Include <limits.h>.
8012         (dev_from_mount_options)
8013         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
8014         New function.  It no longer assumes "dev=" has the System V meaning
8015         on Linux (since it doesn't).  It also parses "dev=" more carefully.
8016         (read_file_system_list)
8017         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
8018         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
8019         dev= in that case.
8020
8021         * lib/posixtm.h (PDS_PRE_2000): New macro.
8022         * lib/posixtm.c (year): Arg is now syntax_bits rather than
8023         allow_century.  All usages changed.  Reject dates outside the range
8024         1969-1999 if PDS_PRE_2000 is used.
8025
8026 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8027
8028         Sync from coreutils.
8029         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
8030         (Time of day items): Mention the possibility of leap seconds.
8031         Problem reported by Dr. David Alan Gilbert.
8032
8033 2006-01-09  Jim Meyering  <jim@meyering.net>
8034
8035         Sync from coreutils.
8036
8037         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
8038
8039         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
8040
8041         * lib/modechange.c (mode_compile): Reject an invalid mode string
8042         that starts with an octal digit.  From Andreas Gruenbacher.
8043
8044         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
8045         and dup to open_safer and dup_safer, respectively.
8046         (openat_permissive): Fix typo in comment.
8047
8048         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
8049         "gettext.h"; either no longer needed or are guaranteed by openat.h.
8050         (_): Remove; no longer needed.
8051         (openat): Renamed from rpl_openat; no need for rpl_openat
8052         since openat.h renames openat for us.
8053         Replace most of the body with a call to openat_permissive,
8054         to avoid duplicate code.
8055         Port to (probably hypothetical) environments were mode_t is
8056         wider than int.
8057         (openat_permissive): Require mode arg, so that we can check
8058         types better.  Put it just after flags.  Change cwd failure
8059         indicator from pointer-to-bool to pointer-to-errno-value.
8060         All callers changed.
8061         Invoke openat_save_fail and/or openat_restore_fail if
8062         cwd_errno is null, so that openat can call us.
8063         (openat_permissive, fdopendir, fstatat, unlinkat):
8064         Simplify errno handling to avoid some duplicate code,
8065         as it's OK to set errno on success.
8066         * lib/openat.h: Revamp code so that function macros depend on
8067         __OPENAT_PREFIX only, not also on AT_FDCWD.
8068         (openat_ro): Remove.  Caller changed to use openat_permissive.
8069         (openat_permissive): Now a macro, if not a function.
8070         (openat_restore_fail, openat_save_fail): Now always functions,
8071         since mkdirat needs them even if __OPENAT_PREFIX is defined.
8072
8073         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
8074         and openat.c.
8075         * lib/mkdirat.c: Include openat-priv.h.
8076         Remove definitions of macros defined therein.
8077         * lib/openat.c: Likewise.
8078
8079         * lib/mkdirat.c (mkdirat): New file and function.
8080         * lib/openat.h (mkdirat): Declare.
8081
8082         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
8083
8084         * lib/openat.h (openat_permissive): Declare.
8085         (openat_ro): Define.
8086
8087         * lib/openat.c (EXPECTED_ERRNO): New macro.
8088         (openat_permissive): New function -- used in remove.c rewrite.
8089         (all functions): Set errno just before returning, only if there
8090         was an actual failure.
8091         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
8092
8093         Emulate openat-family functions using Linux's procfs, if possible.
8094         Idea and some code based on Ulrich Drepper's glibc changes.
8095
8096         * lib/openat.c: (BUILD_PROC_NAME): New macro.
8097         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
8098         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
8099         before falling back on save_cwd and restore_cwd.
8100         (fdopendir, fstatat, unlinkat): Likewise.
8101
8102         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
8103         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
8104
8105         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
8106         as second argument to va_arg.  Otherwise, some versions of gcc
8107         warn that `if this code is reached, the program will abort'.
8108
8109 2006-01-09  Jim Meyering  <jim@meyering.net>
8110
8111         Sync from coreutils.
8112         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
8113         Require openat-priv.h.
8114
8115 2006-01-09  Bruno Haible  <bruno@clisp.org>
8116
8117         * modules/strnlen (Include): Use strnlen.h.
8118
8119 2006-01-09  Bruno Haible  <bruno@clisp.org>
8120
8121         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
8122
8123 2006-01-09  Bruno Haible  <bruno@clisp.org>
8124
8125         * lib/sysexit_.h (EX_OK): New macro.
8126         Suggested by Martin Lambers <marlam@marlam.de>.
8127
8128 2006-01-09  Bruno Haible  <bruno@clisp.org>
8129
8130         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
8131         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
8132
8133 2006-01-09  Bruno Haible  <bruno@clisp.org>
8134
8135         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
8136         numbers.
8137
8138 2006-01-09  Bruno Haible  <bruno@clisp.org>
8139
8140         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
8141         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
8142         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
8143         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
8144
8145 2006-01-09  Bruno Haible  <bruno@clisp.org>
8146
8147         * build-aux/javacomp.sh.in: New file, moved from lib/.
8148         * modules/javacomp-script (Files): Update.
8149         (configure.ac): Add AC_CONFIG_FILES invocation.
8150         (EXTRA_DIST): Remove variable.
8151
8152         * build-aux/javaexec.sh.in: New file, moved from lib/.
8153         * modules/javaexec (Files): Update.
8154         (configure.ac): Add AC_CONFIG_FILES invocation.
8155         (EXTRA_DIST): Remove javaexec.sh.in.
8156
8157         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
8158         * modules/csharpcomp-script (Files): Update.
8159         (configure.ac): Add AC_CONFIG_FILES invocation.
8160         (EXTRA_DIST): Remove variable.
8161
8162         * build-aux/csharpexec.sh.in: New file, moved from lib/.
8163         * modules/csharpexec (Files): Update.
8164         (configure.ac): Add AC_CONFIG_FILES invocation.
8165         (EXTRA_DIST): Remove csharpexec.sh.in.
8166
8167 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8168
8169         Sync from coreutils.
8170
8171         Add POSIX ACL support
8172         * lib/acl.h (copy_acl, set_acl): Add declarations.
8173         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
8174         systems other than Linux.
8175         (chmod_or_fchmod): New function: use fchmod when possible,
8176         and chmod otherwise.
8177         (file_has_acl): Add a POSIX ACL implementation, with a
8178         Linux-specific subcase.
8179         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
8180         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
8181         acls are unsupported.
8182         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
8183         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
8184         are unsupported.
8185
8186 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
8187
8188         Sync from coreutils.
8189         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
8190
8191 2006-01-07  Bruno Haible  <bruno@clisp.org>
8192
8193         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
8194         gl_EARLY.
8195
8196 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8197
8198         * lib/strftime.c (tzname): Don't declare if it is already #defined.
8199         Problem reported for Mingw by Mark Junker.
8200
8201 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8202
8203         * README: Gnulib normally doesn't generate a tarball.
8204
8205 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8206
8207         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
8208         long int, not int, for nanosecond counts, so that people who are
8209         used to POSIX struct timespec won't be surprised.  Reported by Jim
8210         Meyering.
8211
8212 2005-12-28  Bruno Haible  <bruno@clisp.org>
8213
8214         * build-aux/config.rpath: Update from GNU gettext.
8215
8216 2005-12-16  Jim Meyering  <jim@meyering.net>
8217
8218         * modules/fprintftime: New module.
8219         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
8220
8221 2005-12-16  Jim Meyering  <jim@meyering.net>
8222
8223         * m4/fprintftime.m4: New file.
8224
8225 2005-12-16  Jim Meyering  <jim@meyering.net>
8226
8227         * lib/fprintftime.c, lib/fprintftime.h: New files.
8228
8229 2005-12-15  Simon Josefsson  <jas@extundo.com>
8230
8231         * modules/socklen (configure.ac): Fix M4 macro name, to align with
8232         new m4/socklen.m4.
8233
8234 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8235
8236         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
8237         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
8238
8239 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8240
8241         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
8242         * lib/argp-help.c (fill_in_uparams): Check if the constructed
8243         struct uparams is valid. Fall back to the default values if it is
8244         not.
8245
8246 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8247
8248         * modules/argp (Files): Add argp-pin.c
8249         (Depends-on): dirname
8250         (lib_SOURCES): Add argp-pin.c
8251
8252 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8253
8254         * m4/argp.m4:  Check if program_invocation_name and
8255         program_invocation_short_name are declared and define appropriate
8256         macros if they are not.
8257
8258 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8259
8260         * lib/argp-help.c (__argp_base_name): New function
8261         (__argp_short_program_name): Rewrite using __argp_base_name
8262         * lib/argp-namefrob.h: Define program_invocation_name and
8263         program_invocation_short_name if requested
8264         (__argp_base_name): Add prototype
8265         * lib/argp-parse.c (argp_def): Use gettext wrappers
8266         (argp_default_parser): Use __argp_base_name
8267         * lib/argp-pin.c: New file. Defines program_invocation_name and
8268         program_invocation_short_name on systems that lack them.
8269
8270 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8271
8272         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
8273         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8274         porting problem reported by Georg Schwarz in
8275         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8276
8277 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
8278
8279         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
8280         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8281         porting problem reported by Georg Schwarz in
8282         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8283
8284 2005-12-05  Bruno Haible  <bruno@clisp.org>
8285
8286         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
8287         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
8288         Reported by Mark Junker <mjscod@gmx.de>.
8289
8290 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8291
8292         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
8293         Use implementation from Albert Chin, with some
8294         comments/corrections by Stepan Kasal and myself.
8295
8296 2005-12-02  Bruno Haible  <bruno@clisp.org>
8297
8298         * gnulib-tool (func_import): Accept GPLed build tool modules when
8299         --lgpl is given.
8300         * modules/csharpcomp-script: New file.
8301         * modules/csharpcomp: Depend on it.
8302         * modules/javacomp-script: New file.
8303         * modules/javacomp: Depend on it.
8304         Suggested by Simon Josefsson.
8305
8306 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8307
8308         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
8309         statement, to work around an HP-UX 10.20 compiler bug reported by
8310         Peter O'Gorman.
8311
8312 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8313
8314         * modules/savedir (Depends-on): Add openat.
8315
8316 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
8317
8318         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
8319         (uintmax_t) [defined uintmax_t]: Do not declare.
8320         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
8321         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
8322         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
8323         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
8324         sake of portability to weird hosts that C allows (though we don't
8325         know of any practical examples).
8326
8327         * lib/savedir.h (fdsavedir): New decl.
8328         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
8329         contains most of the former guts of savedir.
8330         (savedir): Use savedirstream.
8331         Include "openat.h".
8332
8333 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8334
8335         * modules/obstack (Files): Add m4/ulonglong.m4.
8336         Problem reported by Davide Angelocola.
8337
8338 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8339
8340         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
8341         coreutils no longer futzes with rounding modes.
8342
8343 2005-11-14  Jim Meyering  <jim@meyering.net>
8344
8345         * lib/mkstemp-safer.c: Include <config.h>, required for possible
8346         replacement of mkstemp.
8347
8348 2005-11-10  Simon Josefsson  <jas@extundo.com>
8349
8350         * lib/readline.c: Remove EOL.
8351
8352 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8353
8354         * modules/gethrxtime (Depends-on): Add gettime.
8355
8356 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8357
8358         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
8359         or gettimeofday; no longer needed.
8360
8361 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8362
8363         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
8364         time business.
8365         (gethrxtime) [! (HAVE_NANOUPTIME
8366         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
8367         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
8368         our own approximation.
8369
8370 2005-11-08  Eric Blake  <ebb9@byu.net>
8371
8372         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8373
8374 2005-11-08  Eric Blake  <ebb9@byu.net>
8375
8376         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8377
8378 2005-11-04  Bruno Haible  <bruno@clisp.org>
8379
8380         * gnulib-tool: Implement --update mode.
8381
8382 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8383
8384         Fix porting problem reported by Theodoros V. Kalamatianos.
8385         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
8386         Don't assume that futimes failing means we must fail.
8387
8388 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8389
8390         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
8391         variables to suggest the intended function of the PATH_MAX check.
8392
8393 2005-10-30  Kean Johnston  <jkj@sco.com>
8394
8395         Trivial changes to support SCO systems.
8396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
8397         as PATH_MAX.
8398         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
8399         where __ptr is null when no I/O is pending.
8400
8401 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
8402
8403         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
8404         leave errno alone.  Problem reported by Dmitry V. Levin.
8405
8406 2005-10-28  Simon Josefsson  <jas@extundo.com>
8407
8408         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
8409         Test more.
8410
8411         * tests/test-gc-md2.c, tests/test-md2.c: New files.
8412
8413         * modules/md2, modules/md2-tests: New files.
8414
8415 2005-10-28  Simon Josefsson  <jas@extundo.com>
8416
8417         * m4/inet_ntop.m4: More tests.
8418
8419         * m4/gc-md2.m4, md2.m4: New file.
8420
8421 2005-10-28  Simon Josefsson  <jas@extundo.com>
8422
8423         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
8424         "restrict" keywords, as per POSIX.  Protect the function
8425         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
8426         Don't use K&R prototypes.  Check the sprintf return values.
8427         Re-define EAFNOSUPPORT if not present.  Indent.
8428
8429         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
8430         suggested by Bruno Haible <bruno@clisp.org>.
8431
8432         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
8433
8434         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
8435
8436         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
8437         libgcrypt).
8438
8439         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
8440
8441         * lib/md2.h, lib/md2.c: New files.
8442
8443 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
8444
8445         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
8446         errno alone.  Problem reported by Frederic Jolliton.
8447
8448 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8449
8450         * modules/verify (License): Change from GPL to LGPL.  This is a
8451         tiny module and there are apparently near-equivalents that are
8452         under the BSD license.
8453
8454 2005-10-24  Simon Josefsson  <jas@extundo.com>
8455
8456         * modules/sha1: Relicense to LGPL.
8457
8458 2005-10-24  Simon Josefsson  <jas@extundo.com>
8459
8460         * lib/md4.h: Shrink buffer size, now that we changed the type.
8461
8462 2005-10-23  Simon Josefsson  <jas@extundo.com>
8463
8464         * gnulib-tool (func_import): Fix --tests-base.
8465
8466 2005-10-22  Simon Josefsson  <jas@extundo.com>
8467
8468         * modules/arcfour (Depends-on): Need stdint.
8469
8470 2005-10-22  Simon Josefsson  <jas@extundo.com>
8471
8472         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
8473         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
8474
8475 2005-10-22  Simon Josefsson  <jas@extundo.com>
8476
8477         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
8478         suggested by Bruno Haible <bruno@clisp.org>.
8479
8480 2005-10-22  Simon Josefsson  <jas@extundo.com>
8481
8482         * lib/crc.h: Include stddef.h, for size_t.
8483
8484 2005-10-22  Simon Josefsson  <jas@extundo.com>
8485
8486         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
8487         arcfour_context struct (simplify test vector testing in GNU
8488         Shishi).
8489
8490 2005-10-21  Simon Josefsson  <jas@extundo.com>
8491
8492         * modules/des, modules/des-tests: New files.
8493
8494         * modules/gc-des, modules/gc-des-tests: New files.
8495
8496         * tests/test-des.c, tests/test-gc-des.c: New file.
8497
8498 2005-10-21  Simon Josefsson  <jas@extundo.com>
8499
8500         * modules/arctwo, modules/arctwo-tests: New files.
8501
8502         * tests/test-arctwo.c: New file.
8503
8504         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
8505
8506         * tests/test-gc-arctwo.c: New file.
8507
8508 2005-10-21  Simon Josefsson  <jas@extundo.com>
8509
8510         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
8511         Bruno Haible <bruno@clisp.org>.
8512
8513         * m4/gc-des.m4: New file.
8514
8515 2005-10-21  Simon Josefsson  <jas@extundo.com>
8516
8517         * m4/arctwo.m4: New file.
8518
8519         * m4/gc-arctwo.m4: New file.
8520
8521 2005-10-21  Simon Josefsson  <jas@extundo.com>
8522
8523         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
8524         block.
8525
8526 2005-10-21  Simon Josefsson  <jas@extundo.com>
8527
8528         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
8529         <bruno@clisp.org>.
8530
8531         * lib/hmac-sha1.c (hmac_sha1): Likewise.
8532
8533         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
8534         Bruno Haible <bruno@clisp.org>.
8535
8536         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
8537         <bruno@clisp.org>.
8538
8539 2005-10-21  Simon Josefsson  <jas@extundo.com>
8540
8541         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
8542
8543 2005-10-21  Simon Josefsson  <jas@extundo.com>
8544
8545         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
8546
8547 2005-10-21  Simon Josefsson  <jas@extundo.com>
8548
8549         * lib/des.h, lib/des.c: New files.
8550
8551         * lib/gc-gnulib.c: Support DES.c
8552
8553 2005-10-21  Simon Josefsson  <jas@extundo.com>
8554
8555         * lib/arctwo.h, lib/arctwo.c: New files.
8556
8557         * lib/gc-gnulib.c: Support ARCTWO.
8558
8559 2005-10-21  Simon Josefsson  <jas@extundo.com>
8560
8561         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
8562         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8563
8564 2005-10-21  Simon Josefsson  <jas@extundo.com>
8565
8566         * gnulib-tool (func_import, func_create_testdir): Define automake
8567         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
8568         Makefile.am snippet),
8569         suggested by Bruno Haible <bruno@clisp.org>.
8570
8571         * modules/gc (Makefile.am): Use it.
8572
8573 2005-10-21  Bruno Haible  <bruno@clisp.org>
8574
8575         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
8576         patch.
8577
8578 2005-10-19  Simon Josefsson  <jas@extundo.com>
8579
8580         * tests/test-gc-rijndael.c: New file.
8581
8582         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
8583
8584 2005-10-19  Simon Josefsson  <jas@extundo.com>
8585
8586         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
8587         interface too.
8588
8589 2005-10-19  Simon Josefsson  <jas@extundo.com>
8590
8591         * tests/test-gc-arcfour.c: New file.
8592
8593         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
8594
8595 2005-10-19  Simon Josefsson  <jas@extundo.com>
8596
8597         * modules/gc-md4, modules/gc-md4-tests: New file.
8598
8599         * tests/test-gc-md4.c: New file.
8600
8601 2005-10-19  Simon Josefsson  <jas@extundo.com>
8602
8603         * m4/gc-md4.m4: New file.
8604
8605 2005-10-19  Simon Josefsson  <jas@extundo.com>
8606
8607         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
8608         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
8609         <kasal@ucw.cz>.
8610
8611 2005-10-19  Simon Josefsson  <jas@extundo.com>
8612
8613         * m4/gc-arcfour.m4: New file.
8614
8615         * m4/gc-rijndael.m4: New file.
8616
8617 2005-10-19  Simon Josefsson  <jas@extundo.com>
8618
8619         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
8620
8621 2005-10-19  Simon Josefsson  <jas@extundo.com>
8622
8623         * lib/gc-gnulib.c: Support ARCFOUR.
8624
8625 2005-10-19  Simon Josefsson  <jas@extundo.com>
8626
8627         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
8628         support.
8629
8630         * lib/gc.h: Add ECB enum type.
8631
8632         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
8633
8634 2005-10-18  Simon Josefsson  <jas@extundo.com>
8635
8636         * tests/test-md5.c: New file.
8637
8638         * modules/md5-tests: New file.
8639
8640 2005-10-18  Simon Josefsson  <jas@extundo.com>
8641
8642         * tests/test-md4.c: New file.
8643
8644         * modules/md4, modules/md4-tests: New files.
8645
8646 2005-10-18  Simon Josefsson  <jas@extundo.com>
8647
8648         * m4/md4.m4: New file.
8649
8650 2005-10-18  Simon Josefsson  <jas@extundo.com>
8651
8652         * lib/md4.h, lib/md4.c: New files, based on md5.?.
8653
8654 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
8655
8656         * gnulib-tool (func_create_testdir): Omit the second check whether
8657         BUILT_SOURCES in nonempty.
8658
8659 2005-10-17  Simon Josefsson  <jas@extundo.com>
8660
8661         * tests/test-rijndael.c: New file.
8662
8663 2005-10-17  Simon Josefsson  <jas@extundo.com>
8664
8665         * modules/sha1: Depend on stdint instead of md5.
8666
8667         * modules/md5: Depend on stdint, remove uint32_t.
8668
8669 2005-10-17  Simon Josefsson  <jas@extundo.com>
8670
8671         * modules/gc-sha1-tests: New file.
8672
8673         * tests/test-gc-sha1.c: New file.
8674
8675 2005-10-17  Simon Josefsson  <jas@extundo.com>
8676
8677         * m4/md5.m4: Remove call to uint32_t.m4.
8678
8679 2005-10-17  Simon Josefsson  <jas@extundo.com>
8680
8681         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
8682
8683         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
8684         md5.h.
8685
8686         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
8687
8688         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
8689
8690 2005-10-17  Simon Josefsson  <jas@extundo.com>
8691
8692         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
8693
8694 2005-10-17  Simon Josefsson  <jas@extundo.com>
8695
8696         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
8697
8698 2005-10-17  Simon Josefsson  <jas@extundo.com>
8699
8700         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
8701
8702         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
8703
8704 2005-10-17  Bruno Haible  <bruno@clisp.org>
8705
8706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
8707         that it can also be used in a test.
8708
8709 2005-10-16  Bruno Haible  <bruno@clisp.org>
8710
8711         * gnulib-tool (func_emit_tests_Makefile_am): Also define
8712         TESTS_ENVIRONMENT, so that individual tests can augment it.
8713
8714         * gnulib-tool (func_create_testdir): Use an intermediate target for
8715         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
8716         macros, like $(ALLOCA_H), which cannot be passed through the command
8717         line.
8718
8719 2005-10-15  Simon Josefsson  <jas@extundo.com>
8720
8721         * modules/rijndael-tests: New file.
8722
8723         * modules/rijndael: New file.
8724
8725 2005-10-15  Simon Josefsson  <jas@extundo.com>
8726
8727         * m4/rijndael.m4: New file.
8728
8729 2005-10-15  Simon Josefsson  <jas@extundo.com>
8730
8731         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
8732
8733         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
8734
8735 2005-10-14  Simon Josefsson  <jas@extundo.com>
8736
8737         * tests/test-arcfour.c: New file.
8738
8739         * modules/arcfour, modules/arcfour-tests: New files.
8740
8741 2005-10-14  Simon Josefsson  <jas@extundo.com>
8742
8743         * m4/arcfour.m4: New file.
8744
8745 2005-10-14  Simon Josefsson  <jas@extundo.com>
8746
8747         * lib/arcfour.h, lib/arcfour.c: New files.
8748
8749 2005-10-14  Roland McGrath  <roland@redhat.com>
8750
8751         Import from libc.  [BZ #1331]
8752         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
8753         macro argument.
8754         Reported by Matej Vela <vela@debian.org>.
8755
8756 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8757
8758         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
8759         include <wchar.h>; no longer needed.
8760
8761 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8762
8763         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
8764
8765 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
8766         and  Ulrich Drepper  <drepper@redhat.com>
8767
8768         Import from libc.
8769         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
8770         instead of inline stream orientation test and two separate
8771         function calls.  Pay no attention to USE_IN_LIBIO.
8772
8773 2005-10-13  Simon Josefsson  <jas@extundo.com>
8774
8775         * modules/gc-hmac-md5-tests: New file.
8776
8777         * tests/test-gc-hmac-sha1.c: New file.
8778
8779         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
8780
8781         * modules/gc-hmac-md5-tests: New file.
8782
8783         * tests/test-gc-md5.c: New file.
8784
8785         * modules/gc-md5-tests: New file.
8786
8787 2005-10-13  Simon Josefsson  <jas@extundo.com>
8788
8789         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
8790         Move memory allocation outside of loop.
8791
8792 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8793
8794         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
8795         intermediate directory is in a read-only file system.  Problem
8796         reported by Eric Blake.
8797
8798 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
8799
8800         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
8801
8802 2005-10-12  Simon Josefsson  <jas@extundo.com>
8803
8804         * tests/test-hmac-sha1.c: New file.
8805
8806         * modules/hmac-sha1-tests: New file.
8807
8808         * modules/hmac-sha1: New file.
8809
8810 2005-10-12  Simon Josefsson  <jas@extundo.com>
8811
8812         * modules/gc-sha1: New file.
8813
8814 2005-10-12  Simon Josefsson  <jas@extundo.com>
8815
8816         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
8817
8818         * tests/test-gc-pbkdf2-sha1.c: New file.
8819
8820 2005-10-12  Simon Josefsson  <jas@extundo.com>
8821
8822         * modules/gc-md5, modules/gc-hmac-md5: New files.
8823
8824         * modules/gc (Files): Remove md5, memxor and hmac files.
8825
8826 2005-10-12  Simon Josefsson  <jas@extundo.com>
8827
8828         * m4/gc-pbkdf2-sha1.m4: New file.
8829
8830         * m4/gc-hmac-sha1.m4: New file.
8831
8832         * m4/gc-sha1: New file.
8833
8834         * m4/hmac-sha1.m4: New file.
8835
8836 2005-10-12  Simon Josefsson  <jas@extundo.com>
8837
8838         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
8839
8840         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
8841
8842 2005-10-12  Simon Josefsson  <jas@extundo.com>
8843
8844         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
8845         suggested by Bruno Haible <bruno@clisp.org>.
8846
8847 2005-10-12  Simon Josefsson  <jas@extundo.com>
8848
8849         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
8850
8851 2005-10-12  Simon Josefsson  <jas@extundo.com>
8852
8853         * lib/gc-pbkdf2-sha1.c: New file.
8854
8855         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
8856
8857 2005-10-12  Simon Josefsson  <jas@extundo.com>
8858
8859         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
8860
8861         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
8862
8863 2005-10-12  Simon Josefsson  <jas@extundo.com>
8864
8865         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
8866         GC_USE_HMAC_MD5, respectively.
8867
8868         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
8869         (gc_md5): Fix typo.
8870
8871         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
8872
8873         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
8874
8875         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
8876
8877 2005-10-12  Bruno Haible  <bruno@clisp.org>
8878
8879         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
8880         Reported by Stepan Kasal <kasal@ucw.cz>.
8881
8882 2005-10-11  Simon Josefsson  <jas@extundo.com>
8883
8884         * tests/test-crc.c: New file.
8885
8886         * modules/crc, modules/crc-tests: New files.
8887
8888 2005-10-11  Simon Josefsson  <jas@extundo.com>
8889
8890         * m4/crc.m4: New file.
8891
8892 2005-10-11  Simon Josefsson  <jas@extundo.com>
8893
8894         * lib/gc.h: Add gc_hash and gc_hash_buffer.
8895
8896         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
8897
8898         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
8899
8900 2005-10-11  Simon Josefsson  <jas@extundo.com>
8901
8902         * lib/crc.h, lib/crc.c: New files.
8903
8904         * lib/gc.h (gc_hash_buffer): Add doc.
8905
8906 2005-10-11  Bruno Haible  <bruno@clisp.org>
8907
8908         * modules/c-strcasestr: New file.
8909         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
8910
8911 2005-10-11  Bruno Haible  <bruno@clisp.org>
8912
8913         * modules/c-strcase: New file.
8914         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
8915
8916 2005-10-11  Bruno Haible  <bruno@clisp.org>
8917
8918         * lib/strcasecmp.c: Include limits.h.
8919         (strcasecmp): Avoid integer overflow on exotic platforms.
8920         * lib/strncasecmp.c: Include limits.h.
8921         (strncasecmp): Avoid integer overflow on exotic platforms.
8922         Reported by Paul Eggert.
8923
8924 2005-10-11  Bruno Haible  <bruno@clisp.org>
8925
8926         * lib/c-strcasestr.h: New file, from GNU gettext.
8927         * lib/c-strcasestr.c: New file, from GNU gettext.
8928
8929 2005-10-11  Bruno Haible  <bruno@clisp.org>
8930
8931         * lib/c-strcase.h: New file, from GNU gettext.
8932         * lib/c-strcasecmp.c: New file, from GNU gettext.
8933         * lib/c-strncasecmp.c: New file, from GNU gettext.
8934
8935 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8936
8937         * modules/mempcpy (License): GPL -> LGPL.
8938         * modules/strchrnul (License): Likewise.
8939         * modules/sysexits (License): Likewise.
8940
8941 2005-10-08  Simon Josefsson  <jas@extundo.com>
8942
8943         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
8944
8945 2005-10-07  Simon Josefsson  <jas@extundo.com>
8946
8947         * m4/memxor.m4: Remove gl_C_RESTRICT call.
8948
8949 2005-10-06  Simon Josefsson  <jas@extundo.com>
8950
8951         * tests/test-hmac-md5.c: New file.
8952
8953         * modules/hmac-md5-tests: New file.
8954
8955         * modules/hmac-md5: New file.
8956
8957 2005-10-06  Simon Josefsson  <jas@extundo.com>
8958
8959         * m4/hmac-md5.m4: New file.
8960
8961         * m4/memxor.m4: Require gl_C_RESTRICT.
8962
8963 2005-10-06  Simon Josefsson  <jas@extundo.com>
8964
8965         * lib/memxor.c (memxor): Avoid casts and warnings.
8966
8967 2005-10-06  Simon Josefsson  <jas@extundo.com>
8968
8969         * lib/hmac-md5.c: New file.
8970
8971         * lib/hmac.h: New file.
8972
8973 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8974
8975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
8976         promotes to int, not unsigned int, to catch the AIX 5.3
8977         compiler bug.
8978
8979 2005-10-05  Simon Josefsson  <jas@extundo.com>
8980
8981         * modules/memxor: New file.
8982
8983         * modules/iconv (Files): Move config.rpath to havelib, it is used
8984         there.
8985
8986         * modules/havelib (Files): Add config.rpath.
8987
8988 2005-10-05  Simon Josefsson  <jas@extundo.com>
8989
8990         * m4/memxor.m4: New file.
8991
8992 2005-10-05  Simon Josefsson  <jas@extundo.com>
8993
8994         * lib/memxor.c (memxor): Fix compiler error.
8995
8996         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
8997         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
8998
8999         * lib/memxor.h, lib/memxor.c: New files.
9000
9001         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
9002         we assume all systems have it, suggested by Jim Meyering
9003         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
9004         any systems lack sys/socket.h; mingw32 is known to lack it, but we
9005         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
9006         same reasons.
9007
9008 2005-10-05  Simon Josefsson  <jas@extundo.com>
9009
9010         * config/srclist.txt: Add glibc bug 1423 for md5.h.
9011
9012 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9013
9014         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
9015         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
9016         needed, since the source code now assumes these .h files.
9017
9018 2005-10-05  Derek Price  <derek@ximbiot.com>
9019
9020         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
9021
9022 2005-10-05  Bruno Haible  <bruno@clisp.org>
9023
9024         * modules/stdint (License): Change to LGPL.
9025
9026 2005-10-04  Simon Josefsson  <jas@extundo.com>
9027
9028         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
9029         D. Baushke" <mdb@gnu.org>.
9030
9031 2005-10-04  Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/verify.h (verify_true): Provide alternative definition for C++.
9034
9035 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9036
9037         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
9038         (SSIZE_MAX): New macro, if not already defined.
9039         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
9040         than 2 GiB.
9041
9042 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9043
9044         Sync from coreutils.
9045         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
9046         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
9047         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
9048         ULLONG_MAX doesn't work with 2.7.2.1.
9049
9050 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9051
9052         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
9053         From Ben Pfaff.
9054
9055         * modules/exclude (Depends-on): Depend on verify.
9056         * modules/strtoimax (Depends-on): Likewise.
9057         * modules/utimecmp (Depends-on): Likewise.
9058
9059 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
9060
9061         * lib/exclude.c: Include verify.h.
9062         (verify): Remove.  All callers changed to use verify.h's version.
9063         * lib/strtoimax.c: Likewise.
9064         * lib/utimecmp.c: Likewis.e
9065
9066         Sync from coreutils.
9067         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
9068         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
9069         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
9070         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
9071         bother returning ENOSYS if settimeofday or stime fails; just let
9072         them return whatever errno they want to return.
9073         * lib/utimens.c: Include unistd.h, for dup2.
9074         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
9075         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
9076
9077 2005-10-02  Jim Meyering  <jim@meyering.net>
9078
9079         Sync from coreutils.
9080         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
9081         from glibc-2.2.5 that fails for read-only files.
9082
9083 2005-10-02  Jim Meyering  <jim@meyering.net>
9084
9085         Sync from coreutils.
9086         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
9087         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
9088         `#if HAVE_CONFIG_H'.
9089         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
9090         Remove AT_FDCWD test.
9091         Do not consume the fd unless successful.
9092         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
9093         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
9094         block, so that we don't even try to compile it if settimeofday is
9095         available.  This works around a compilation failure on OSF1 V5.1,
9096         due to stime requiring a `long int*' while tv_sec is `int'.
9097
9098 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
9099
9100         Sync from coreutils.
9101         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
9102         against `yes', rather than just testing for nonempty.
9103
9104 2005-10-01  Simon Josefsson  <jas@extundo.com>
9105
9106         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
9107         and Darwin.
9108
9109         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
9110         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
9111         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
9112         freeaddrinfo and gai_strerror are declared by the POSIX headers.
9113         Check if struct addrinfo is declared.
9114
9115 2005-10-01  Simon Josefsson  <jas@extundo.com>
9116
9117         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
9118         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
9119         AI_* and EAI_* definitions.  Protect function declarations.
9120
9121 2005-10-01  Jim Meyering  <jim@meyering.net>
9122
9123         Sync from coreutils.
9124
9125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
9126         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
9127         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
9128         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9129         in the inet and nsl libraries.  Required on Solaris 5.7.
9130
9131 2005-10-01  Jim Meyering  <jim@meyering.net>
9132
9133         Sync from coreutils.
9134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9135         in the inet and nsl libraries.  Required on Solaris 5.7.
9136
9137 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
9138
9139         * lib/getdelim.c (getdelim): Remove unused variables.
9140
9141 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9142
9143         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
9144         so that the code works even with ancient cpp.  Portability problem
9145         with GCC 2.7.2.1 reported by Thomas M.Ott.
9146
9147 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9148
9149         * modules/regex (Depends-on): Add strcase.
9150
9151         * modules/gethostname (Licence): Change from GPL to LGPL, since
9152         gethostname.c is a trivial implementation of a standard library
9153         function.
9154         * modules/poll (License): Change from GPL to LGPL, since it's
9155         derived from LGPL code.
9156
9157 2005-09-27  Jim Meyering  <jim@meyering.net>
9158
9159         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
9160         HAVE_CONFIG_H.
9161
9162         * lib/intprops.h (signed_type_or_expr__): Define.
9163         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
9164         for unsigned types.
9165
9166 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9167
9168         * lib/verify.h (verify_expr): Remove, replacing with:
9169         (verify_true): New macro that returns true instead of void.
9170         (verify_type__): Remove.
9171         (verify): Use verify_true rather than verify_type__.
9172
9173 2005-09-26  Bruno Haible  <bruno@clisp.org>
9174
9175         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
9176         is necessary.
9177         (lib_SOURCES): Remove mbchar.c.
9178         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
9179         (Files): Add m4/mbrtowc.m4.
9180         * modules/mbiter: Likewise.
9181         * modules/mbuiter: Likewise.
9182
9183 2005-09-26  Bruno Haible  <bruno@clisp.org>
9184
9185         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
9186         compile mbchar.c if they are not both present.
9187         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
9188         * m4/mbiter.m4 (gl_MBITER): Likewise.
9189         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
9190         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
9191         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
9192
9193 2005-09-25  Jim Meyering  <jim@meyering.net>
9194
9195         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
9196         also uses socklen_t.
9197
9198 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9199
9200         * lib/utimens.c (ENOSYS): Define if not already defined.
9201         (futimens): Support having a null PATH if the file descriptor
9202         is nonnegative.
9203
9204         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
9205         Remove.
9206         (__attribute): Define to empty unless GCC 3.1 or later.
9207         This works around a core dump on OpenBSD 3.4, which has GCC
9208         2.95.3, which dumps core when given __attribute__(()).  It also
9209         simplifies other tests, since we really don't want to bother with
9210         worrying about which ancient version of GCC supported what.
9211         Original problem reported by Yoann Vandoorselaere, with part of
9212         the fix suggested by Derek Price.
9213
9214 2005-09-24  Jim Meyering  <jim@meyering.net>
9215
9216         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
9217         so we can once again use a positive bitfield width of 1 -- now we
9218         don't have to explain why we were using a bitfield width of 2.
9219
9220 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9221
9222         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
9223         and similarly for the other external symbols.  Problem reported
9224         by James Gallager.
9225
9226         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
9227         bug reported by Jim Meyering.
9228
9229         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
9230         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
9231         not needed, since socklen is a prerequisite module.
9232
9233 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9234
9235         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
9236         Problem reported by Eric Blake.
9237         (getaddrinfo): Initialize se so that it's not garbage.
9238         Redo internal storage allocation so that it doesn't make unportable
9239         assumptions about alignment.
9240         Fix a memory leak.
9241
9242         * lib/utimens.c (futimens): Use futimesat if available.
9243         Prefer it to futimes since it doesn't have the futimes bug.
9244
9245         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
9246         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
9247         Instead, declare a function that returns a pointer to an array,
9248         and use verify_type__ to declare the size of the array.
9249         Problem and germ of a solution reported by Bruno Haible.
9250         (verify_type__): Use 2, not 1, for bitfield size, to avoid
9251         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
9252
9253 2005-09-23  Jim Meyering  <jim@meyering.net>
9254
9255         Sync from coreutils.
9256         Correct build failure (socklen_t not defined) on at least
9257         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
9258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
9259
9260 2005-09-23  Jim Meyering  <jim@meyering.net>
9261
9262         * modules/getaddrinfo (Depends-on): Add socklen.
9263
9264 2005-09-23  Bruno Haible  <bruno@clisp.org>
9265
9266         * tests/test-verify.c: New file.
9267
9268 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9269
9270         Sync from coreutils.
9271
9272         * modules/argmatch (Depends-on): Add verify.
9273         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
9274         unistd-safer.
9275         * modules/save-cwd (Depends-on): Likewise.
9276
9277         * modules/openat (Files): Add lib/openat-die.c.
9278         (Depends-on): Remove error, exitfail.
9279         Add dirname.
9280
9281         * modules/verify: New file.
9282         * MODULES.html.sh (Diagnostics <assert.h>): New section,
9283         with "verify" module.
9284
9285 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9286
9287         Sync from coreutils.
9288
9289         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
9290         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
9291         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
9292         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
9293         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
9294         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
9295         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
9296         Don't bother checking for string.h, stdlib.h, unistd.h.
9297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
9298         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
9299         module's job.
9300         * m4/jm-macros.m4 (gl_MACROS): Likewise.
9301         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
9302
9303         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
9304         (gl_GETDATE): Use it.
9305
9306         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
9307
9308 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9309
9310         Sync from coreutils.
9311
9312         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
9313         stat-time.h.
9314         * lib/argmatch.h: Include verify.h
9315         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
9316         (ARGMATCH_ASSERT): Remove; unused.
9317         * lib/canonicalize.c: Assume STDC_HEADERS.
9318         * lib/exclude.c: Include "strcase.h".
9319         * lib/regex_internal.h [!defined _LIBC]: Likewise.
9320         * lib/getusershell.c: Include stdio--.h rather than stdio.h
9321         and stdio-safer.h.
9322         (getusershell): Call fopen, not fopen_safer.
9323         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
9324         Do not include unistd-safer.h.
9325         (save_cwd): Don't call fd_safer; no longer needed
9326         now that we include fcntl--.h.
9327
9328         * lib/getdate.y (relative_time): New type.
9329         (RELATIVE_TIME_0): New constant.
9330         (parser_control): Use relative_time instead of doing it ourselves.
9331         (%union): Add new relative_time rel member.
9332         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
9333         Now typeless.
9334         (relunit, relunit_snumber): Now of type rel.
9335         (zone, rel, relunit, get_date): Adjust to above changes.
9336
9337         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
9338         Do not include unistd-safer.h.
9339         (getloadavg): Don't call fd_safer; no longer needed
9340         now that we include fcntl--.h.
9341
9342         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
9343         (make_dir_parents): Treat ENOSYS like EEXIST.
9344
9345         Improve quality of diagnostics on restore_cwd failure.
9346         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
9347         (make_dir_parents): Last arg is now int * (for errno), not bool *.
9348         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
9349         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
9350         each time through the loop.  Do not diagnose restore_cwd failure;
9351         that is the caller's job (and perhaps the caller does not care).
9352
9353         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
9354         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
9355         If the file already exists but is not a directory, don't bother
9356         to try to make its parents.
9357         Close potential file descriptor leak if we can't chdir("/") (!).
9358         Don't always return true if chdir($PWD) fails; return true only
9359         if the requested action was done successfully (except for the
9360         chdir($PWD)).
9361         Don't log final directory unless we actually made it.
9362         Refactor to avoid duplicate code to fix up permissions.
9363         Don't attempt to fix up parent permissions if chdir($PWD) fails.
9364
9365         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
9366         to make it a bit faster and (I hope) clearer.
9367         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
9368         Fix bug in formats like %2N.
9369
9370         * lib/verify.h: New file.
9371
9372 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         Sync from coreutils.
9375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
9376
9377 2005-09-22  Jim Meyering  <jim@meyering.net>
9378
9379         Sync from coreutils.
9380
9381         * m4/lstat.m4 (gl_FUNC_LSTAT):
9382         Use AC_LIBSOURCES to require lstat.c and lstat.h.
9383         Remove obsolete comment.
9384         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
9385         * m4/xstrtod.m4: Likewise.
9386
9387         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
9388
9389 2005-09-22  Jim Meyering  <jim@meyering.net>
9390
9391         Sync from coreutils.
9392
9393         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
9394
9395         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
9396         the .tm_year member, since otherwise gcc-4.0 would now warn about
9397         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
9398
9399         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
9400         order to avoid an unsuppressible warning from gcc on 64-bit systems.
9401
9402         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
9403         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
9404         when run in a time zone for which daylight savings time is in effect
9405         for the starting date.
9406
9407         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
9408         stop us from restricting permissions of just-created absolute-named
9409         directories.
9410         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
9411         to restore initial working directory.
9412         * lib/mkdir-p.c (make_dir_parents): New parameter:
9413         different_working_dir, to tell caller if/when we change the working
9414         directory and are unable to return to the initial one.
9415         * lib/mkdir-p.h (make_dir_parents): Update prototype.
9416         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
9417         `return false'.  This fixes a bug introduced on 2004-07-30.
9418
9419         * lib/openat.c (fdopendir): Be sure to close the supplied
9420         file descriptor before returning.  This makes our replacement
9421         implementation a little closer to Solaris's, where fdopendir
9422         ties the file descriptor to the returned DIR* pointer.
9423         * lib/openat.c (unlinkat): New function.
9424         * lib/openat.h (unlinkat): Add prototype.
9425         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
9426         (openat_restore_fail): Rename from openat_restore_die.
9427         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
9428
9429         Provide an alternative to exiting immediately upon save_cwd or
9430         restore_cwd failure.  Now, an application can arrange e.g.,
9431         to perform a longjump in that case.
9432         * lib/openat.c: Include dirname.h.
9433         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
9434         (rpl_openat, fdopendir, fstatat): Call openat_save_die
9435         and openat_restore_die rather than calling error directly.
9436         Don't include "error.h" or "exitfail.h"; they're no longer needed.
9437
9438         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
9439         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
9440         define.
9441
9442         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
9443         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
9444                             int utc, int nanoseconds);
9445         Background:
9446         date should not have to allocate a megabyte of virtual memory to
9447         handle a format argument like +%1048575T.  When implemented with
9448         strftime, it must allocate such a buffer, use strftime to fill it
9449         in, print it, then free it.
9450         With fprintftime, it simply prints everything and exits.
9451         With no need for memory allocation, that's one fewer way to fail.
9452         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
9453         optional field width, not before, so we accept %9:z, not %:9z.
9454         (my_strftime): Be sure to use L_('x') for literals.
9455
9456         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
9457         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
9458         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
9459         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
9460         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
9461         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
9462         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
9463         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
9464         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
9465         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
9466         * lib/xgethostname.c, lib/xreadlink.c:
9467         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
9468
9469         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
9470         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
9471         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
9472         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9473         and don't include <sys/file.h>).
9474
9475 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
9476
9477         Sync from coreutils.
9478
9479         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
9480         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
9481         [!LDAV_DONE]: Avoid unused variable warning.
9482
9483 2005-09-21  Bruno Haible  <bruno@clisp.org>
9484
9485         * lib/unicodeio.h (unicode_to_mb): New declaration.
9486
9487 2005-09-20  Derek Price  <derek@ximbiot.com>
9488
9489         * lib/getaddrinfo.c: Don't include <netdb.h> included from
9490         getaddrinfo.h.
9491
9492 2005-09-20  Bruno Haible  <bruno@clisp.org>
9493
9494         * gnulib-tool: Remove trailing slashes from the values specified for
9495         --source-base, --m4-base, --tests-base, --aux-dir.
9496         Suggested by Simon Josefsson <jas@extundo.com>.
9497
9498 2005-09-20  Bruno Haible  <bruno@clisp.org>
9499
9500         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
9501         func_modules_to_filelist, func_import, func_create_testdir): Make all
9502         sorting results locale-independent, so that gnulib-cache.m4 doesn't
9503         change when gnulib-tool is invoked in a different locale.
9504
9505 2005-09-19  Simon Josefsson  <jas@extundo.com>
9506
9507         * m4/socklen.m4: Fix typo.
9508
9509 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9510
9511         Use a consistent style for including <config.h>.
9512         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
9513         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
9514         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
9515         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
9516         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
9517         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
9518         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
9519         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
9520         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
9521         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
9522         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
9523         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
9524         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
9525         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
9526         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
9527         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
9528         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
9529         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
9530         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
9531         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
9532         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
9533         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
9534         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
9535         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
9536         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
9537         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
9538         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
9539         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
9540         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
9541         lib/xstrtoumax.c, lib/yesno.c:
9542         Standardize inclusion of config.h.
9543         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
9544         lib/inttostr.h:  Removed inclusion of config.h from header files.
9545         * lib/inttostr.c:  Adjusted in-tree users.
9546         * lib/timespec.h: Remove superfluous warning to include config.h.
9547         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
9548         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
9549         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
9550         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
9551         config.h with HAVE_CONFIG_H.
9552
9553 2005-09-19  Jim Meyering  <jim@meyering.net>
9554
9555         * modules/pathmax (License): Change to LGPL.
9556
9557 2005-09-19  Derek Price  <derek@ximbiot.com>
9558
9559         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
9560
9561 2005-09-19  Bruno Haible  <bruno@clisp.org>
9562
9563         * gnulib-tool (import): Provide default for --tests-base.
9564
9565 2005-09-19  Bruno Haible  <bruno@clisp.org>
9566
9567         * doc/quote.texi: New file, extracted from gnulib.texi.
9568         * doc/ctime.texi: New file, extracted from gnulib.texi.
9569         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
9570         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
9571         * doc/gnulib.texi: Include them.
9572
9573 2005-09-18  Bruno Haible  <bruno@clisp.org>
9574
9575         Portability fix.
9576         * gnulib-tool (func_readlink): New function.
9577         (func_ln_if_changed): Use it.
9578
9579 2005-09-18  Bruno Haible  <bruno@clisp.org>
9580
9581         * gnulib-tool: Support --with-tests also with --import.
9582         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
9583         (func_import): Use variables $testsbase and $inctests. Emit a
9584         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
9585         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
9586         SUBDIRS += $testsdir.
9587         (func_create_testdir): Update.
9588
9589 2005-09-18  Bruno Haible  <bruno@clisp.org>
9590
9591         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
9592         instead of $dry_run.
9593         (func_cp_if_changed, func_mv_if_changed): Remove functions.
9594         (func_ln_if_changed): Don't handle dry-run here.
9595         (func_import): In dry-run mode, detect more precisely which actions
9596         would be performed, and don't use "...ing" verbs.
9597
9598 2005-09-18  Bruno Haible  <bruno@clisp.org>
9599
9600         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
9601         (func_import): Use join on two temporary files instead of three nested
9602         loops, in order to determine which files are new or old.
9603
9604 2005-09-18  Bruno Haible  <bruno@clisp.org>
9605
9606         * gnulib-tool (func_import): Comment out code that spits out the
9607         new files with --dry-run.
9608
9609 2005-09-18  Bruno Haible  <bruno@clisp.org>
9610
9611         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
9612
9613 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9614
9615         * lib/stat-time.h: New file.
9616         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
9617         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
9618         in a different way.
9619         (timespec_cmp): New function.
9620         * lib/utimecmp.c: Include stat-time.h.
9621         (SYSCALL_RESOLUTION): Depend on whether various struct stat
9622         members exist, not on the obsolescent ST_MTIM_NSEC.
9623         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
9624
9625 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9626
9627         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
9628
9629 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9630
9631         * MODULES.html.sh (File system functions): Add stat-time.
9632         * modules/stat-time: New file.
9633         * modules/timespec (Files): Remove m4/st_mtim.m4; this
9634         is now done in a different way, by the stat-time module.
9635         * modules/utimecmp (Depends-on): Add stat-time.
9636
9637 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9638
9639         * m4/st_mtim.m4: Remove.  Superseded by...
9640         * m4/stat-time.m4: New file.
9641         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
9642         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
9643
9644 2005-09-15  Derek Price  <derek@ximbiot.com>
9645
9646         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
9647
9648 2005-09-15  Derek Price  <derek@ximbiot.com>
9649
9650         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
9651         * lib/regex_internal.c: Ditto, using this...
9652         (__GNUC_PREREQ): ...new macro.
9653         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
9654         using...
9655         (__GNUC_PREREQ): ...this new macro.
9656
9657         * lib/strstr.h: Include string.h. Define strstr as a macro here.
9658
9659 2005-09-15  Derek Price  <derek@ximbiot.com>
9660             Paul Eggert  <eggert@cs.ucla.edu>
9661
9662         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
9663         changes, consolidating in...
9664         * lib/regex_internal.h: ...this file.
9665
9666 2005-09-13  Jim Meyering  <jim@meyering.net>
9667
9668         * lib/canon-host.c: Filter through gnu indent and reword comments
9669         slightly.
9670         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
9671
9672 2005-09-13  Derek Price  <derek@ximbiot.com>
9673
9674         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
9675         failure.
9676         Reported by Jim Meyering  <jim@meyering.net>.
9677
9678 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9679
9680         * lib/base64.c: Typo.
9681         (base64_encode): Put b64str in initialized data section.
9682
9683 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         Merge glibc and coreutils changes into gnulib, plus a few
9686         extra fixes.
9687         * lib/md5.c: Use #error rather than a string.
9688         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
9689         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
9690         (__attribute__): Define to empty for non recent-GCC.
9691         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
9692         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
9693         Renamed from their non-__ counterparts, with new macros replacing
9694         them if not _LIBC.  Add __THROW attribute.
9695         (rol): Remove.
9696         (struct md5_ctx): Align buffer if using GCC.
9697         * lib/sha1.h (struct sha1_ctx): Likewise.
9698         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
9699         The old name was backwards.
9700         (NOTSWAP): Remove; not used.
9701         (rol): New macro, moved here from md5.h.
9702         (sha1_process_block): Remove a FIXME that doesn't make sense.
9703
9704 2005-09-12  Derek Price  <derek@ximbiot.com>
9705
9706         Return usable errors from canon-host.
9707         * lib/canon-host.h: New file.
9708         * lib/canon-host.c (canon_host): Wrap...
9709         (canon_host_r): ...this new function, which now relies exclusively on
9710         getaddrinfo.
9711         (ch_strerror): New function.
9712         (last_cherror): New global.
9713         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
9714         interface.
9715         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
9716         void *.
9717         (freeaddrinfo): Free ai->ai_canonname when set.
9718
9719 2005-09-12  Derek Price  <derek@ximbiot.com>
9720
9721         Make canon-host require getaddrinfo.
9722         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
9723         AC_LIBSOURCE canon-host.h.  Call...
9724         (gl_PREREQ_CANON_HOST): ...this new function, which requires
9725         gl_GETADDRINFO.
9726         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
9727
9728 2005-09-12  Derek Price  <derek@ximbiot.com>
9729
9730         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
9731         LGPL.
9732         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
9733
9734 2005-09-12  Derek Price  <derek@ximbiot.com>
9735
9736         * lib/gai_strerror.c: Include config.h when available.  Include
9737         getaddrinfo.h before other headers to test interface.
9738         Reported by Larry Jones <lawrence.jones@ugs.com>.
9739
9740 2005-09-12  Derek Price  <derek@ximbiot.com>
9741             Paul Eggert  <eggert@cs.ucla.edu>
9742
9743         * modules/glob (Files): Add glob-libc.h.
9744
9745 2005-09-12  Derek Price  <derek@ximbiot.com>
9746             Paul Eggert  <eggert@cs.ucla.edu>
9747
9748         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
9749         glob_.h, glob-libc.h.
9750         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
9751
9752 2005-09-12  Derek Price  <derek@ximbiot.com>
9753             Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
9756         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
9757         protecting things that should be done only in gnulib contexts.
9758         * lib/glob_.h: New file, containing only the glob things needed for
9759         gnulib.
9760         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
9761         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
9762         (glob, globfree, glob_pattern_p): Now defined simply in terms of
9763         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
9764         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
9765         and to respect the namespace rules better.
9766
9767 2005-09-08  Simon Josefsson  <jas@extundo.com>
9768
9769         * modules/socklen: New file.
9770
9771 2005-09-08  Simon Josefsson  <jas@extundo.com>
9772
9773         * m4/socklen.m4: New file.
9774
9775 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9776
9777         * modules/utimens (Files): Add m4/utimbuf.m4, since
9778         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
9779         Reported by Sergey Poznyakoff.
9780
9781 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9782
9783         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
9784         definitions, since that's the preferred style in glibc.
9785         Fix a minor spacing issue, and update copyright notice to match
9786         glibc's.
9787
9788 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9789
9790         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
9791
9792 2005-09-06  Simon Josefsson  <jas@extundo.com>
9793
9794         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
9795         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
9796
9797 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9798
9799         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
9800         warning.
9801
9802 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9803
9804         * config/srclist.txt: Add glibc bug 1302.
9805
9806 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9807
9808         Change bitset word type from unsigned int to unsigned long int,
9809         as this has better performance on typical 64-bit hosts.
9810         Port bitset code to hosts with unusual word sizes.
9811         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
9812         (build_collating_symbol):
9813         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
9814         argument is a bitset.  This is merely a style issue, but it makes
9815         it clearer that an entire array is expected.
9816         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
9817         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
9818         Port to the case where bitset_word is not the same as unsigned int.
9819         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
9820         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
9821         Likewise.
9822         * lib/regexec.c (check_dst_limits_calc_pos_1,
9823         check_subexp_matching_top):
9824         (build_trtable, group_nodes_into_DFAstates):
9825         Likewise.
9826         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
9827         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
9828         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
9829         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
9830         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
9831         * lib/regcomp.c (optimize_subexps, lower_subexp):
9832         Work even if bitset_word has holes in its bitwise representation.
9833         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
9834         * lib/regexec.c (check_dst_limits_calc_pos_1,
9835         check_subexp_matching_top):
9836         Likewise.
9837         * lib/regex_internal.c (re_string_reconstruct):
9838         Don't assume UCHAR_MAX == 255.
9839         * lib/regex_internal.h (bitset_set_all): Likewise.
9840         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
9841         All uses changed.
9842         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
9843         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
9844         All uses changed.
9845         (BITSET_WORD_MAX): New macro.
9846         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
9847         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
9848         (bitset_empty, bitset_copy):
9849         Prefer sizeof (bitset) to multiplying it out ourselves.
9850         (bitset_not_merge): Remove; unused.
9851         (bitset_contain): Return bool, not unsigned int with one bit on.
9852         All callers changed.
9853         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
9854         alignment than re_node_set; do this by defining a new internal
9855         type struct dests_alloc and using it to allocate memory.
9856
9857 2005-09-05  Bruno Haible  <bruno@clisp.org>
9858
9859         * gnulib-tool (func_import): Fix comparison in handling of symbolic
9860         links.
9861
9862 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
9863
9864         * modules/size_max (Makefile.am): Add size_max.h
9865
9866 2005-09-04  Derek Price  <derek@ximbiot.com>
9867
9868         * gnulib-tool (func_import): Fix reversed $symbolic logic.
9869
9870 2005-09-03  Simon Josefsson  <jas@extundo.com>
9871
9872         * gnulib-tool: Fix typo.
9873
9874 2005-09-03  Simon Josefsson  <jas@extundo.com>
9875
9876         * config/srclist.txt: Add glibc bug 1293.
9877
9878 2005-09-03  Derek Price  <derek@ximbiot.com>
9879
9880         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
9881         From Larry Jones <lawrence.jones@ugs.com>.
9882
9883 2005-09-02  Simon Josefsson  <jas@extundo.com>
9884
9885         * modules/socklen: New file.
9886
9887 2005-09-02  Simon Josefsson  <jas@extundo.com>
9888
9889         * modules/havelib: New module.
9890
9891         * modules/gettext, modules/iconv, modules/lock, modules/readline:
9892         Use havelib.
9893
9894 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9895
9896         Check for arithmetic overflow when calculating sizes, to prevent
9897         some buffer-overflow issues.  These patches are conservative, in the
9898         sense that when I couldn't determine whether an overflow was possible,
9899         I inserted a run-time check.
9900         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
9901         macros.
9902         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
9903         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
9904         (re_xnrealloc, re_x2nrealloc): New inline functions.
9905         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
9906         parse_bracket_exp):
9907         (build_equiv_class, build_charclass): Check for arithmetic overflow
9908         in size expression calculations.
9909         * lib/regex_internal.c (re_string_realloc_buffers):
9910         (build_wcs_upper_buffer, re_node_set_add_intersect):
9911         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
9912         (re_dfa_add_node, register_state): Likewise.
9913         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
9914         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
9915         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
9916         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
9917
9918 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
9921         m4/ulonglong.m4.  Problem reported by Martin Lambers.
9922
9923 2005-09-02  Bruno Haible  <bruno@clisp.org>
9924
9925         Support for lib vs. lib64 distinction on biarch platforms.
9926         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
9927         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
9928         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
9929
9930 2005-09-02  Bruno Haible  <bruno@clisp.org>
9931
9932         * gnulib-tool (import): In the other first-use case, provide defaults
9933         as well.
9934
9935 2005-09-02  Bruno Haible  <bruno@clisp.org>
9936
9937         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
9938         patches not yet found in the latest gettext release.
9939
9940 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
9943         to avoid a collision with bits/local_lim.h in glibc.
9944         All uses changed.  Problem reported by Dmitry V. Levin in
9945         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
9946
9947         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
9948         bugs in int versus size_t comparisons.
9949         (re_string_context_at): Fix bug where the code assumed that
9950         Idx is signed.
9951
9952         Use bool where appropriate.
9953         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
9954         All callers changed.
9955         (calc_eclosure_iter): Likewise, for ROOT arg.
9956         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
9957         (build_charclass_op): Likewise, for NON_MATCH arg.
9958         * lib/regex_internal.c (re_string_allocate, re_string_construct):
9959         (re_string_construct_common): Likewise, for ICASE arg.
9960         * lib/regexec.c (re_search_2_stub, re_search_stub):
9961         Likewise, for RET_LEN arg.
9962         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
9963         (set_regs): Likewise, for FL_BACKTRACK arg.
9964         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
9965         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
9966         (calc_eclosure_iter, parse_bracket_exp):
9967         Use bool for internal variables that are booleans.
9968         * lib/regexec.c (re_search_internal, check_matching,
9969         proceed_next_node):
9970         (set_regs, build_sifted_states, sift_states_bkref):
9971         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
9972         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
9973         (find_collation_sequence_value):
9974         Likewise.
9975         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
9976         (re_node_set_compare):
9977         Return bool, not int. All callers changed.
9978         * lib/regexec.c (check_halt_node_context, check_dst_limits):
9979         (build_trtable, check_node_accept): Likewise.
9980         * lib/regex_internal.h: Include stdbool.h.
9981
9982         Fix bugs uncovered when converting to bool.
9983         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
9984         failure instead of charging ahead blindly.
9985         * lib/regex_internal.c (register_state): Likewise.
9986         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
9987         for freeing internal storage.
9988         (group_nodes_into_DFA_states): Use unsigned int, not int, for
9989         bitset pieces used as boolean, to avoid undefined behavior
9990         on hosts that do int overflow checking.
9991
9992 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9993
9994         * config/srclist.txt: Add glibc bugs 1285-1287.
9995
9996 2005-09-01  Jim Meyering  <jim@meyering.net>
9997
9998         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
9999         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
10000         Require gl_STAT_MACROS, too.
10001
10002 2005-09-01  Bruno Haible  <bruno@clisp.org>
10003
10004         * gnulib-tool (import): In the first-use case, provide defaults.
10005
10006 2005-09-01  Bruno Haible  <bruno@clisp.org>
10007
10008         * gnulib-tool (func_import): Remove the .tmp files.
10009
10010 2005-09-01  Bruno Haible  <bruno@clisp.org>
10011
10012         * gnulib-tool (func_import): Fix handling of symbolic links.
10013
10014 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10015
10016         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
10017         old glibc regex code mishandles strings longer than 2**31 bytes.
10018         This patch fixes this when the regex code is used in gnulib
10019         (i.e., outside glibc).
10020
10021         This patch should not affect the use of the regex code inside
10022         glibc.  No doubt this problem also needs to be handled for glibc
10023         as well, but the result will be an incompatible change to the
10024         glibc ABI, and the old ABI will have to be supported too.  That
10025         can be the the subject for another patch.
10026
10027         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
10028         governing whether the rest of this patch is active.  By default,
10029         the macro is disabled and the patch has no effect.
10030         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
10031         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
10032         (struct re_pattern_buffer, re_search, re_search_2, re_match):
10033         (re_match_2, re_set_registers): Use the new types.
10034         * lib/regex_internal.h (Idx, re_hashval_t): New types.
10035         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
10036         New macros.
10037         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
10038         (re_string_context_at, bin_tree_t, re_dfastate_t):
10039         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
10040         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
10041         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
10042         (re_string_char_size_at, re_string_wchar_at):
10043         (re_string_elem_size_at):
10044         Use the new types and macros to port to 64-bit hosts.
10045         Use unsigned types for internal values, so that the code
10046         mostly works even for arrays larger than SSIZE_MAX.
10047         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
10048         (search_duplicated_node, calc_eclosure_iter, fetch_number):
10049         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
10050         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
10051         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
10052         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
10053         (calc_inveclosure, parse_dup_op, build_range_exp):
10054         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
10055         (fetch_number, create_token_tree, mark_opt_subexp):
10056         Likewise.
10057         * lib/regex_internal.c (re_string_construct_common,
10058         create_ci_newstate):
10059         (create_cd_newstate, re_string_allocate, re_string_construct):
10060         (re_string_realloc_buffers, build_wcs_upper_buffer):
10061         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10062         (re_string_reconstruct, re_string_peek_byte_case):
10063         (re_string_fetch_byte_case, re_string_context_at):
10064         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10065         (re_node_set_init_copy, re_node_set_add_intersect):
10066         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10067         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10068         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10069         (re_acquire_state, re_acquire_state_context, register_state):
10070         Likewise.
10071         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
10072         search_cur_bkref_entry):
10073         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
10074         (re_search_internal, re_search_2_stub, re_search_stub)
10075         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
10076         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
10077         (update_cur_sifted_state, check_dst_limits):
10078         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10079         (check_subexp_limits, sift_states_bkref, merge_state_array):
10080         (check_subexp_matching_top, get_subexp, get_subexp_sub):
10081         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
10082         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10083         (expand_bkref_cache, check_node_accept_bytes):
10084         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
10085         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
10086         (acquire_init_state_context, check_halt_node_context):
10087         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
10088         (sift_states_backward, clean_state_log_if_needed):
10089         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
10090         (find_recover_state, transit_state_sb, transit_state_mb):
10091         (transit_state_bkref, build_trtable, match_ctx_clean):
10092         Likewise.
10093         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
10094         to work around an assumption that REG_MISSING is negative.
10095
10096         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
10097         (seek_collating_symbol_entry) [defined _LIBC]:
10098         (lookup_collation_sequence_value) [defined _LIBC]:
10099         (build_range_exp, build_collating_symbol) [defined _LIBC]:
10100         Use prototypes rather than old-style function definitions.
10101         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
10102         (transit_state_sb) [0]:
10103         (find_collation_sequence_value) [defined _LIBC]: Likewise.
10104
10105         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
10106         rm_eo.
10107
10108         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
10109         (optimize_subexps, lower_subexp):
10110         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
10111         since the signed shift might overflow.  Use 1u<<31 instead.
10112         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
10113         Likewise.
10114         * lib/regexec.c (check_dst_limits_calc_pos_1,
10115         check_subexp_matching_top): Likewise.
10116
10117         * lib/regcomp.c (optimize_subexps, lower_subexp):
10118         Use CHAR_BIT rather than 8, for clarity.
10119         * lib/regexec.c (check_dst_limits_calc_pos_1):
10120         (check_subexp_matching_top): Likewise.
10121         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
10122         have to worry about portability issues when shifting it left.
10123         Remove no-longer-needed test for table_size > 0.
10124         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
10125         in a word, as the resulting behavior is undefined.
10126         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
10127         in one case, a <= should have been an <, and in another case the
10128         whole test was missing.
10129         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
10130         the standard name CHAR_BIT.
10131         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
10132         this is not true on one's complement and signed-magnitude hosts.
10133
10134         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
10135         next_last_offset.
10136         (struct re_dfa_t): Remove unused member states_alloc.
10137         * lib/regcomp.c (init_dfa): Don't initialize unused members.
10138
10139 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10140
10141         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
10142         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
10143         and large-file glibc and in 32-bit large-file Solaris.
10144
10145 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10146
10147         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
10148         lengths fit in regoff_t; this isn't true if regoff_t is the same
10149         width as size_t.
10150         * lib/regex.c (re_search_internal): 5th arg is LAST_START
10151         (= START + RANGE) instead of RANGE.  This avoids overflow
10152         problems when regoff_t is the same width as size_t.
10153         All callers changed.
10154         (re_search_2_stub): Check for overflow when adding the
10155         sizes of the two strings.
10156         (re_search_stub): Check for overflow when adding START
10157         to RANGE; if it occurs, substitute the extreme value.
10158
10159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10160
10161         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
10162
10163 2005-08-31  Jim Meyering  <jim@meyering.net>
10164
10165         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
10166         a pointer-to-const.
10167         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
10168         (register_state): Likewise.
10169         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
10170         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10171         (group_nodes_into_DFAstates): Likewise.
10172
10173 2005-08-31  Jim Meyering  <jim@meyering.net>
10174
10175         * check-module: Add a FIXME comment.
10176
10177 2005-08-31  Eric Blake  <ebb9@byu.net>
10178
10179         * modules/unistd-safer (Files): Add unistd--.h.
10180         * modules/stdio-safer (Files): Add stdio--.h.
10181
10182 2005-08-31  Derek Price  <derek@ximbiot.com>
10183
10184         * lib/getdelim.c (getdelim): Return EOF on EOF.
10185         Reported by Larry Jones <lawrence.jones@ugs.com>.
10186
10187 2005-08-31  Bruno Haible  <bruno@clisp.org>
10188
10189         Avoid unnecessary diffs in the generated lib/Makefile.am.
10190         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
10191         the generated files.
10192         (func_import): Don't set cmd.
10193
10194 2005-08-31  Bruno Haible  <bruno@clisp.org>
10195
10196         * lib/strstr.c: Include <stddef.h>, for NULL.
10197         * lib/strcasestr.c: Likewise.
10198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10199
10200 2005-08-31  Bruno Haible  <bruno@clisp.org>
10201
10202         * gnulib-tool: New option --macro-prefix.
10203         (func_import): Use macro_prefix.
10204         (import): Handle option --macro-prefix.
10205
10206 2005-08-31  Bruno Haible  <bruno@clisp.org>
10207
10208         * gnulib-tool (import): Rename most ac_* variables to cached_*.
10209         Also use new variables cached_lgpl, cached_libtool.
10210
10211 2005-08-31  Bruno Haible  <bruno@clisp.org>
10212
10213         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
10214         always instantiating them.
10215
10216 2005-08-31  Bruno Haible  <bruno@clisp.org>
10217
10218         * gnulib-tool (func_import): Read the previous cached settings
10219         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
10220         earlier added by gnulib but are now dropped. Warn when a gnulib file
10221         overwrites a non-gnulib file.
10222
10223 2005-08-31  Bruno Haible  <bruno@clisp.org>
10224
10225         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
10226         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
10227         projects that don't keep autogenerated files in CVS. Put into
10228         actioncmd only the specified modules, not the transitive closure.
10229
10230 2005-08-31  Bruno Haible  <bruno@clisp.org>
10231
10232         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
10233         Create directories that shall be filled.
10234         (import): Don't look for gl_* macros in configure.ac. Recurse across
10235         all directories containing a gnulib-cache.m4 files, if meaningful.
10236
10237 2005-08-31  Bruno Haible  <bruno@clisp.org>
10238
10239         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
10240         (import): Set seen_libtool when we see gl_LIBTOOL.
10241
10242 2005-08-31  Bruno Haible  <bruno@clisp.org>
10243
10244         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
10245         declaration macro definitions from generated gnulib.m4.
10246
10247 2005-08-30  "Oskar Liljeblad"  <oskar@osk.mine.nu>
10248
10249         * lib/iconvme.h: Add prototype for iconv_alloc.
10250
10251 2005-08-29  Simon Josefsson  <jas@extundo.com>
10252
10253         * lib/iconvme.c: Fix errno.
10254
10255 2005-08-29  Bruno Haible  <bruno@clisp.org>
10256
10257         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
10258         that it works when the directory contains spaces.
10259
10260 2005-08-29  Bruno Haible  <bruno@clisp.org>
10261
10262         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
10263
10264 2005-08-29  Bruno Haible  <bruno@clisp.org>
10265
10266         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
10267         Emit more advice.
10268
10269 2005-08-29  Bruno Haible  <bruno@clisp.org>
10270         and Stepan Kasal  <kasal@ucw.cz>
10271
10272         * check-module: If more parameters are given, check each of them
10273         separately; add more exceptions, as noted by Jim Meyering.
10274         (check_module): New procedure.
10275         (%exempt_header): Now contains all exceptions.
10276
10277 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
10278
10279         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
10280
10281 2005-08-29  "Oskar Liljeblad"  <oskar@osk.mine.nu>
10282
10283         * lib/iconvme.c: Split iconv_string into iconv_alloc.
10284
10285 2005-08-28  Bruno Haible  <bruno@clisp.org>
10286
10287         * m4/gnulib-tool.m4: New file.
10288
10289 2005-08-27  Jim Meyering  <jim@meyering.net>
10290
10291         * modules/unistd-safer (Files): Add pipe-safer.c.
10292         * modules/fcntl-safer (Files): Add creat-safer.c.
10293
10294 2005-08-27  Jim Meyering  <jim@meyering.net>
10295
10296         * m4/stdlib-safer.m4: New file.  From coreutils.
10297         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
10298         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
10299         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
10300         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
10301         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
10302
10303 2005-08-27  Jim Meyering  <jim@meyering.net>
10304
10305         * lib/fopen-safer.c: Merge minor changes from coreutils.
10306         * lib/dup-safer.c: Likewise.
10307         * lib/fd-safer.c: Likewise.
10308
10309         Merge from coreutils.
10310         * lib/stdio--.h: New file.
10311         * lib/stdlib--.h: New file.
10312         * lib/mkstemp-safer.c: New file.
10313
10314         GNU tar needs these.
10315         * lib/pipe-safer.c: New file.
10316         * lib/creat-safer.c: New file.
10317         * lib/fcntl--.h (creat): Define to creat_safer.
10318         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
10319         * lib/unistd--.h (pipe): Define to pipe_safer.
10320         * lib/unistd-safer.h: Declare pipe_safer.
10321
10322 2005-08-26  Simon Josefsson  <jas@extundo.com>
10323
10324         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
10325         Haible <bruno@clisp.org>.
10326
10327 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
10328
10329         * lib/regex_internal.h: Remove all references to
10330         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
10331         or better.
10332         (bitset_not, bitset_merge, bitset_not_merge):
10333         (bitset_mask, re_string_allocate, re_string_construct):
10334         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
10335         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
10336         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
10337         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
10338         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10339         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10340         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
10341         (re_acquire_state_context):
10342         Remove unnecessary forward decls.
10343         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
10344         Put __attribute at function definition,
10345         now that the function decl has been removed.
10346         * lib/regex_internal.c (re_string_peek_byte_case):
10347         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
10348         Likewise.
10349
10350 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
10351
10352         * m4/regex.m4: Add AC_PREREQ(2.50).
10353         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
10354
10355 2005-08-25  Simon Josefsson  <jas@extundo.com>
10356
10357         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
10358         __fsetlocking.
10359
10360 2005-08-25  Simon Josefsson  <jas@extundo.com>
10361
10362         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
10363         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
10364         GLIBC specific code.
10365
10366 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10367
10368         Make regex safe for g++.  This fixes one real bug (an "err"
10369         that should have been "*err").  g++ problem reported by
10370         Sam Steingold.
10371         * lib/regex_internal.h (re_calloc): New macro, consistent with
10372         re_malloc etc.  All callers of calloc changed to use re_calloc.
10373         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
10374         not int.  All callers changed.
10375         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
10376         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
10377         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
10378         (find_recover_state): Change "err" to "*err"; this fixes what
10379         appears to be a real bug.
10380         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
10381         versus int.
10382
10383 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10384
10385         * modules/regex (Depends-on): Add malloc, since the code
10386         assumes that !malloc(0) means failure.
10387
10388 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10389
10390         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
10391
10392         alloca modernization/simplification for regex.
10393         * lib/regex.c: Remove portability cruft for alloca.  This no longer
10394         needs to be at the start of the file, and can be moved into
10395         regex_internal.h and simplified.
10396         * lib/regex_internal.h: Include <alloca.h>.
10397         (__libc_use_alloca) [!defined _LIBC]: New macro.
10398         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
10399         now works outside glibc.
10400
10401 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10402
10403         * config/srclist.txt: Add glibc bugs 1241, 1245.
10404
10405 2005-08-25  Jim Meyering  <jim@meyering.net>
10406
10407         * lib/open-safer.c: Include <config.h>.
10408         Otherwise, we'd lose LARGEFILE support in any file using
10409         e.g. "fcntl--.h"
10410
10411 2005-08-25  Bruno Haible  <bruno@clisp.org>
10412
10413         * m4/minmax.m4: Require autoconf 2.52.
10414         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
10415         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
10416         alternatives of translit over the alphabet.
10417         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
10418
10419 2005-08-24  Simon Josefsson  <jas@extundo.com>
10420
10421         * tests/test-getpass.c: New file.
10422
10423 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10424
10425         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
10426         for GNU regex features.
10427
10428 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10429
10430         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
10431         * lib/regex.h (regerror): Likewise.
10432
10433         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
10434         requires this.  (The code never needed it.)
10435
10436         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
10437         All uses of recently-renamed identifiers changed to use the new,
10438         POSIX-compliant names.  The code will build and run just fine
10439         without these changes, but it's better to eat our own dog food
10440         and use the standard-conforming names.
10441
10442         * lib/regex.h: Fix a multitude of POSIX name space violations.
10443         These changes have an effect only for programs that define
10444         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
10445         do not change anything for programs compiled in the normal way.
10446         Also, there is no effect on the ABI.
10447
10448         (_REGEX_SOURCE): New macro.
10449         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
10450         defined and _GNU_SOURCE is not; this fixes a name space violation.
10451
10452         Rename the following macros to obey POSIX requirements.
10453         The old names are still visible as macros if _REGEX_SOURCE is defined.
10454         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
10455         RE_BACKSLASH_ESCAPE_IN_LISTS.
10456         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
10457         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
10458         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
10459         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
10460         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
10461         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
10462         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
10463         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
10464         (REG_INTERVALS): renamed from RE_INTERVALS.
10465         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
10466         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
10467         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
10468         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
10469         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
10470         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
10471         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
10472         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
10473         RE_UNMATCHED_RIGHT_PAREN_ORD.
10474         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
10475         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
10476         (REG_DEBUG): renamed from RE_DEBUG.
10477         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
10478         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
10479         unusual, since we can't clash with the POSIX REG_ICASE.
10480         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
10481         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
10482         (REG_NO_SUB): renamed from RE_NO_SUB.
10483         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
10484         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
10485         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
10486         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
10487         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
10488         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
10489         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
10490         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
10491         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
10492         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
10493         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
10494         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
10495         RE_SYNTAX_POSIX_MINIMAL_BASIC.
10496         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
10497         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
10498         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
10499         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
10500         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
10501         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
10502         (REG_FIXED): Renamed from REGS_FIXED.
10503         (REG_NREGS): Renamed from RE_NREGS.
10504
10505         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
10506         of other REG_* macros, since POSIX says the user is allowed to
10507         #undef these macros selectively.
10508
10509         (reg_errcode_t): Update comment stating what other tables need
10510         to be consistent.
10511
10512         Rename the following enum values to obey POSIX requirements.
10513         The old names are still visible as macros.
10514         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
10515         is not defined, since GNU is supposed to be a superset of POSIX as
10516         much as possible, and since we want reg_errcode_t to be a signed
10517         type for implementation consistency.
10518         (_REG_NOERROR): Renamed from REG_NOERROR.
10519         (_REG_NOMATCH): Renamed from REG_NOMATCH.
10520         (_REG_BADPAT): Renamed from REG_BADPAT.
10521         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
10522         (_REG_ECTYPE): Renamed from REG_ECTYPE.
10523         (_REG_EESCAPE): Renamed from REG_EESCAPE.
10524         (_REG_ESUBREG): Renamed from REG_ESUBREG.
10525         (_REG_EBRACK): Renamed from REG_EBRACK.
10526         (_REG_EPAREN): Renamed from REG_EPAREN.
10527         (_REG_EBRACE): Renamed from REG_EBRACE.
10528         (_REG_BADBR): Renamed from REG_BADBR.
10529         (_REG_ERANGE): Renamed from REG_ERANGE.
10530         (_REG_ESPACE): Renamed from REG_ESPACE.
10531         (_REG_BADRPT): Renamed from REG_BADRPT.
10532         (_REG_EEND): Renamed from REG_EEND.
10533         (_REG_ESIZE): Renamed from REG_ESIZE.
10534         (_REG_ERPAREN): Renamed from REG_ERPAREN.
10535         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
10536         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
10537         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
10538         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
10539
10540         (_REG_RE_NAME, _REG_RM_NAME): New macros.
10541         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
10542         changed.  But support the old name if the new one is not defined
10543         and if _REGEX_SOURCE.
10544
10545         Change the following member names in struct re_pattern_buffer.
10546         The old names are still supported if !_REGEX_SOURCE.
10547         The new names are always supported, regardless of _REGEX_SOURCE.
10548         (re_buffer): Renamed from buffer.
10549         (re_allocated): Renamed from allocated.
10550         (re_used): Renamed from used.
10551         (re_syntax): Renamed from syntax.
10552         (re_fastmap): Renamed from fastmap.
10553         (re_translate): Renamed from translate.
10554         (re_can_be_null): Renamed from can_be_null.
10555         (re_regs_allocated): Renamed from regs_allocated.
10556         (re_fastmap_accurate): Renamed from fastmap_accurate.
10557         (re_no_sub): Renamed from no_sub.
10558         (re_not_bol): Renamed from not_bol.
10559         (re_not_eol): Renamed from not_eol.
10560         (re_newline_anchor): Renamed from newline_anchor.
10561
10562         Change the following member names in struct re_registers.
10563         The old names are still supported if !_REGEX_SOURCE.
10564         The new names are always supported, regardless of _REGEX_SOURCE.
10565         (rm_num_regs): Renamed from num_regs.
10566         (rm_start): Renamed from start.
10567         (rm_end): Renamed from end.
10568
10569         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
10570         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
10571         Prepend __ to parameter names.
10572
10573         Undo yesterday's changes.
10574
10575 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
10578         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
10579         lib/regex.c.
10580
10581 2005-08-24  Jim Meyering  <jim@meyering.net>
10582
10583         Sync from coreutils.
10584         * m4/fcntl-safer.m4: New file.
10585
10586         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
10587         and object files for this module.
10588
10589 2005-08-24  Jim Meyering  <jim@meyering.net>
10590
10591         Sync from coreutils.
10592         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
10593
10594 2005-08-24  Jim Meyering  <jim@meyering.net>
10595
10596         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
10597         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
10598
10599 2005-08-24  Jim Meyering  <jim@meyering.net>
10600
10601         * modules/fcntl-safer: New module.
10602         * modules/fts (Depends-on): Add fcntl-safer.
10603         * MODULES.html.sh (File descriptor based Input/Output):
10604         Add fcntl-safer.
10605
10606 2005-08-24  Bruno Haible  <bruno@clisp.org>
10607
10608         Support for unit test modules.
10609         * modules/README: Mention tests modules.
10610         * modules/TEMPLATE-TESTS: New file.
10611         * gnulib-tool: New options --extract-tests-module, --with-tests and
10612         --tests-base (unused for the moment).
10613         (testsbase, inctests): New variables.
10614         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
10615         (func_verify_module): Exclude TEMPLATE-TESTS.
10616         (func_verify_nontests_module, func_verify_tests_module): New functions.
10617         (func_get_dependencies): Add implicit dependency for tests modules.
10618         (func_get_tests_module): New function.
10619         (func_modules_transitive_closure): When --with-tests was specified,
10620         include the unit tests as well, unless explicitly avoided.
10621         (func_emit_lib_Makefile_am): Ignore the tests modules here.
10622         (func_emit_tests_Makefile_am): New function.
10623         (func_create_testdir): When --with-tests was specified, emit a
10624         tests/ directory.
10625         * MODULES.html.sh (Future developments): Update.
10626
10627 2005-08-24  Bruno Haible  <bruno@clisp.org>
10628
10629         * modules/tls-tests: New file.
10630         * tests/test-tls.c: New file, from GNU gettext.
10631
10632 2005-08-24  Bruno Haible  <bruno@clisp.org>
10633
10634         * modules/lock-tests: New file.
10635         * tests/test-lock.c: New file, from GNU gettext.
10636
10637 2005-08-24  Bruno Haible  <bruno@clisp.org>
10638
10639         * lib/lock.h: Add multiple inclusion guard.
10640         * lib/tls.h: Add multiple inclusion guard.
10641
10642 2005-08-24  Bruno Haible  <bruno@clisp.org>
10643
10644         * gnulib-tool: Add support for the --aux-dir option to
10645         --create-testdir, --create-megatestdir, --test, --megatest.
10646         (func_create_testdir, func_create_megatestdir): Optionally emit a
10647         AC_CONFIG_AUX_DIR directive.
10648         (create-testdir, create-megatestdir, test, megatest): Provide a
10649         default value for $auxdir.
10650
10651 2005-08-24  Bruno Haible  <bruno@clisp.org>
10652
10653         * gnulib-tool (import): Use compound statement instead of subshell
10654         where possible.
10655
10656 2005-08-24  Bruno Haible  <bruno@clisp.org>
10657
10658         * gnulib-tool (import): Change --aux-dir default to "build-aux".
10659
10660 2005-08-24  Bruno Haible  <bruno@clisp.org>
10661
10662         * gnulib-tool (func_version): Update.
10663
10664 2005-08-24  Bruno Haible  <bruno@clisp.org>
10665
10666         * gnulib-tool (func_import, func_create_testdir,
10667         func_create_megatestdir): Quote all autoconf macro arguments.
10668
10669 2005-08-24  Bruno Haible  <bruno@clisp.org>
10670
10671         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
10672         option --force, because --force causes the aclocal.m4 of each
10673         subdirectory to be newer than the corresponding config.h.in.
10674
10675 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10676
10677         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
10678         All contents moved to gl_REGEX.
10679         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
10680         assume that it does.
10681
10682 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10683
10684         * lib/regex.h (REG_NOSYS)
10685         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
10686         Define, since POSIX requires it as of 2001.
10687         (_REG_ENOSYS)
10688         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
10689         New private symbol, used to keep the enum signed in all cases.
10690         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
10691         Youngman in
10692         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
10693
10694         * lib/regex_internal.c (re_string_skip_chars, register_state):
10695         (calc_state_hash):
10696         Remove forward decls; no longer needed now that we use prototypes.
10697         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
10698         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
10699         (clean_state_log_if_needed): Likewise.
10700
10701 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10702
10703         * config/srclist.txt: Add glibc bugs 1231-1233.
10704
10705 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         Fix problems reported by Sam Steingold in
10708         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
10709         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
10710         assumed that reg_errcode_t is a signed type, which is not
10711         necessarily true if _XOPEN_SOURCE is not defined.
10712         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
10713         since some compilers warn about it otherwise.
10714
10715 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10716
10717         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
10718         (init_word_char, create_initial_state, duplicate_node_closure):
10719         (fetch_token, peek_token_bracket, build_range_exp):
10720         (build_collating_symbol): Remove forward decls; no longer needed
10721         now that we use prototypes.
10722
10723         * lib/regcomp.c:
10724         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
10725         (re_compile_fastmap_iter, regcomp, regerror, regfree):
10726         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
10727         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
10728         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
10729         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
10730         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
10731         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
10732         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
10733         (build_range_exp, build_collating_symbol, parse_bracket_exp):
10734         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
10735         (build_charclass, build_charclass_op, fetch_number, create_tree):
10736         (create_token_tree, mark_opt_subexp, duplicate_tree):
10737         Use prototypes rather than old-style definitions.
10738
10739         * lib/regex_internal.c:
10740         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
10741         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
10742         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10743         (re_string_reconstruct, re_string_peek_byte_case):
10744         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
10745         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10746         (re_node_set_init_copy, re_node_set_add_intersect):
10747         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10748         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10749         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10750         (re_acquire_state, re_acquire_state_context, register_state):
10751         (create_ci_newstate, create_cd_newstate, free_state):
10752         Likewise.
10753         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
10754         re_search_2):
10755         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
10756         (re_search_internal, prune_impossible_nodes):
10757         (acquire_init_state_context, check_matching, static):
10758         (check_halt_node_context, check_halt_state_context, proceed_next_node):
10759         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
10760         (update_regs, sift_states_backward, build_sifted_states):
10761         (clean_state_log_if_needed, merge_state_array):
10762         (update_cur_sifted_state, add_epsilon_src_nodes):
10763         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
10764         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
10765         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
10766         (find_recover_state, check_subexp_matching_top, transit_state_mb):
10767         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
10768         (check_arrival, check_arrival_add_next_nodes):
10769         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10770         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
10771         (check_node_accept_bytes, check_node_accept, extend_buffers):
10772         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
10773         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
10774         (sift_ctx_init):
10775         Likewise.
10776
10777         * lib/regex_internal.h:
10778         (re_string_allocate, re_string_construct, re_string_reconstruct):
10779         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
10780         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
10781         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
10782         (re_string_context_at, re_string_peek_byte_case):
10783         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
10784         is defined, since we now use prototypes always.
10785
10786         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
10787         C89 or better.  All uses removed.
10788
10789 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10790
10791         * config/srclist.txt: Add glibc bugs 1220-1227.
10792
10793 2005-08-20  Jim Meyering  <jim@meyering.net>
10794
10795         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
10796         of unused local, dfa.
10797
10798 2005-08-20  Bruno Haible  <bruno@clisp.org>
10799
10800         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
10801
10802 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
10805         (re_node_set_insert_last, re_dfa_add_node):
10806         Rename local variables to avoid GCC shadowing warnings.
10807
10808 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10809
10810         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
10811         [defined lint]: Suppress bogus uninitialized-variable warnings.
10812
10813         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
10814         and let the caller return REG_ESPACE if out of space.  This
10815         removes an uninitialied-variable warning with GCC 4.0.1, and also
10816         avoids taking the address of a local variable.  All callers
10817         changed.
10818
10819 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10820
10821         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
10822         $LIBCSRC/posix/regexec.c.
10823         Add glibc bug 1217 for regcomp.c.
10824
10825 2005-08-19  Jim Meyering  <jim@meyering.net>
10826
10827         * lib/regexec.c (proceed_next_node): Redo local variables to
10828         avoid GCC shadowing warnings.
10829
10830 2005-08-18  Bruno Haible  <bruno@clisp.org>
10831
10832         * lib/strstr.c (strstr): Fix return value in multibyte case.
10833         * lib/strcasestr.c (strcasestr): Likewise.
10834
10835 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10836
10837         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
10838
10839 2005-08-17  Jim Meyering  <jim@meyering.net>
10840
10841         Make the %s format (seconds since the epoch) work for a negative
10842         number and when used with a zero-padded field width, e.g. %015s.
10843
10844         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
10845         label so that it precedes the code to set `digits'.  Otherwise,
10846         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
10847         print `00-22'.  Now, it prints `-0022', as it should.
10848
10849 2005-08-17  Bruno Haible  <bruno@clisp.org>
10850
10851         * modules/strstr (Files): Add m4/mbrtowc.m4.
10852         (Depends-on): Add mbuiter.
10853
10854 2005-08-17  Bruno Haible  <bruno@clisp.org>
10855
10856         * modules/strcasestr: New file.
10857         * MODULES.html.sh (String handling, based on ANSI C 89): Add
10858         strcasestr.
10859
10860 2005-08-17  Bruno Haible  <bruno@clisp.org>
10861
10862         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
10863
10864 2005-08-17  Bruno Haible  <bruno@clisp.org>
10865
10866         * modules/mbuiter: New file.
10867         * MODULES.html.sh (Extended multibyte and wide character utilities):
10868         Add mbuiter.
10869
10870 2005-08-17  Bruno Haible  <bruno@clisp.org>
10871
10872         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
10873         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
10874
10875 2005-08-17  Bruno Haible  <bruno@clisp.org>
10876
10877         * m4/strcasestr.m4: New file.
10878
10879 2005-08-17  Bruno Haible  <bruno@clisp.org>
10880
10881         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
10882         * lib/strstr.c: Completely rewritten, with multibyte locale support.
10883
10884 2005-08-17  Bruno Haible  <bruno@clisp.org>
10885
10886         * lib/strcasestr.h: New file.
10887         * lib/strcasestr.c: New file.
10888
10889 2005-08-17  Bruno Haible  <bruno@clisp.org>
10890
10891         * lib/strcasecmp.c: Use mbuiter.h.
10892
10893 2005-08-17  Bruno Haible  <bruno@clisp.org>
10894
10895         * lib/mbuiter.h: New file.
10896
10897 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10898
10899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
10900         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
10901         and gl_GETOPT are both invoked via different paths (as happens
10902         with GNU tar CVS because it uses both argp and getopt), the former
10903         wins.
10904
10905 2005-08-16  Bruno Haible  <bruno@clisp.org>
10906
10907         * modules/tls: New file.
10908         * MODULES.html.sh (Multithreading): Add tls.
10909
10910 2005-08-16  Bruno Haible  <bruno@clisp.org>
10911
10912         * modules/strnlen1: New file.
10913         * MODULES.html.sh (String handling): Add strnlen1.
10914
10915 2005-08-16  Bruno Haible  <bruno@clisp.org>
10916
10917         * modules/strcase (Files): Add m4/mbrtowc.m4.
10918         (Depends-on): Add strnlen1, mbchar.
10919
10920 2005-08-16  Bruno Haible  <bruno@clisp.org>
10921
10922         * modules/mbiter: New file.
10923         * MODULES.html.sh (Extended multibyte and wide character utilities):
10924         Add mbiter.
10925
10926 2005-08-16  Bruno Haible  <bruno@clisp.org>
10927
10928         * modules/mbfile: New file.
10929         * MODULES.html.sh (Extended multibyte and wide character utilities):
10930         Add mbfile.
10931
10932 2005-08-16  Bruno Haible  <bruno@clisp.org>
10933
10934         * modules/mbchar: New file.
10935         * MODULES.html.sh (Extended multibyte and wide character utilities):
10936         New section.
10937
10938 2005-08-16  Bruno Haible  <bruno@clisp.org>
10939
10940         * m4/tls.m4: New file, from GNU gettext.
10941
10942 2005-08-16  Bruno Haible  <bruno@clisp.org>
10943
10944         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
10945         always.
10946         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
10947
10948 2005-08-16  Bruno Haible  <bruno@clisp.org>
10949
10950         * m4/mbiter.m4: New file.
10951
10952 2005-08-16  Bruno Haible  <bruno@clisp.org>
10953
10954         * m4/mbfile.m4: New file.
10955
10956 2005-08-16  Bruno Haible  <bruno@clisp.org>
10957
10958         * m4/mbchar.m4: New file.
10959
10960 2005-08-16  Bruno Haible  <bruno@clisp.org>
10961
10962         * lib/tls.h: New file, from GNU gettext.
10963         * lib/tls.c: New file, from GNU gettext.
10964
10965 2005-08-16  Bruno Haible  <bruno@clisp.org>
10966
10967         * lib/strnlen1.h: New file.
10968         * lib/strnlen1.c: New file.
10969
10970 2005-08-16  Bruno Haible  <bruno@clisp.org>
10971
10972         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
10973         (mbi_init): Update.
10974         (mbi_avail, mbi_advance): Let the iteration end before the terminating
10975         NUL byte, not after it.
10976
10977 2005-08-16  Bruno Haible  <bruno@clisp.org>
10978
10979         * lib/strcase.h (strcasecmp): Add note in comments.
10980         * lib/strncasecmp.c: Use code from strcasecmp.c.
10981         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
10982         (strcasecmp): Work correctly in multibyte locales.
10983
10984 2005-08-16  Bruno Haible  <bruno@clisp.org>
10985
10986         * lib/mbiter.h: New file.
10987
10988 2005-08-16  Bruno Haible  <bruno@clisp.org>
10989
10990         * lib/mbfile.h: New file.
10991
10992 2005-08-16  Bruno Haible  <bruno@clisp.org>
10993
10994         * lib/mbchar.h: New file.
10995         * lib/mbchar.c: New file.
10996
10997 2005-08-16  Bruno Haible  <bruno@clisp.org>
10998
10999         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
11000         the valid ones. Makes the comparison operations transitive:
11001         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
11002         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
11003
11004 2005-08-15  Simon Josefsson  <jas@extundo.com>
11005
11006         * modules/ssize_t (License): Change to 'unlimited'.
11007
11008         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
11009
11010 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11011
11012         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
11013         Add comments for each pending glibc patch.
11014
11015 2005-08-15  Bruno Haible  <bruno@clisp.org>
11016
11017         * lib/regex.h (__restrict_arr): Don't define to __restrict if
11018         __cplusplus is defined.
11019
11020 2005-08-14  Jim Meyering  <jim@meyering.net>
11021
11022         Sync from coreutils.
11023
11024         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
11025         Use the hash-table-based cycle-detection code not just when
11026         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
11027         Reported by James Youngman in
11028         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
11029         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
11030         FTS_TIGHT_CYCLE_CHECK.
11031         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
11032         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
11033         once again.
11034         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
11035         * lib/fts.c (fd_safer): Remove decl.
11036         Include fcntl--.h rather than unistd-safer.h
11037         (fts_safe_changedir): Don't call fd_safer; no longer needed
11038         now that we include fcntl--.h.
11039
11040 2005-08-12  Simon Josefsson  <jas@extundo.com>
11041
11042         * modules/getndelim2: Use ssize_t module.
11043         * modules/getnline: Likewise.
11044         * modules/safe-read: Likewise.
11045         * modules/xreadlink: Likewise.
11046
11047         * modules/ssize_t: New file.
11048
11049 2005-08-12  Simon Josefsson  <jas@extundo.com>
11050
11051         * m4/readline.m4: Look for termcap, curses or ncurses if required.
11052
11053 2005-08-12  Simon Josefsson  <jas@extundo.com>
11054
11055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11056         ssize_t.
11057
11058 2005-08-12  Simon Josefsson  <jas@extundo.com>
11059
11060         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
11061         readline, getdelim and check_version.
11062         (Support for systems lacking ISO C 99: Sizes of integer types):
11063         Add size_max.
11064
11065 2005-08-12  Bruno Haible  <bruno@clisp.org>
11066
11067         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
11068
11069 2005-08-11  Simon Josefsson  <jas@extundo.com>
11070
11071         * modules/readline: New file.
11072
11073         * modules/strnlen (Files): Add strnlen.h.
11074
11075 2005-08-11  Simon Josefsson  <jas@extundo.com>
11076
11077         * m4/readline.m4: New file.
11078
11079 2005-08-11  Simon Josefsson  <jas@extundo.com>
11080
11081         * lib/readline.h, readline.c: New file.
11082
11083 2005-08-11  Simon Josefsson  <jas@extundo.com>
11084
11085         * doc/gnulib.texi (Initial import, Finishing touches): Mention
11086         gl_AVOID.
11087
11088 2005-08-11  Bruno Haible  <bruno@clisp.org>
11089
11090         * lib/strnlen.h (strnlen): Change parameter name to match comment.
11091
11092 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
11093
11094         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
11095
11096 2005-08-10  Simon Josefsson  <jas@extundo.com>
11097
11098         * tests/test-iconvme.c: New file.
11099
11100 2005-08-10  Simon Josefsson  <jas@extundo.com>
11101
11102         * m4/strnlen.m4: New file.
11103
11104         * m4/strndup.m4: Don't check for strnlen declaration, done in
11105         strnlen.m4.
11106
11107 2005-08-10  Simon Josefsson  <jas@extundo.com>
11108
11109         * lib/strndup.c: Use strnlen.h.
11110
11111         * lib/strnlen.h: New file.
11112
11113 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11114
11115         * README: Typos.
11116
11117 2005-08-02  Simon Josefsson  <jas@extundo.com>
11118
11119         * modules/readline: New file.
11120
11121 2005-08-02  Simon Josefsson  <jas@extundo.com>
11122
11123         * modules/getdelim: New file.
11124
11125         * modules/getline: Rewrite, don't use getndelim2.
11126
11127 2005-08-02  Simon Josefsson  <jas@extundo.com>
11128
11129         * m4/getline.m4: Separate out getdelim stuff into separate module.
11130
11131         * m4/getdelim.m4: New file.
11132
11133 2005-08-02  Simon Josefsson  <jas@extundo.com>
11134
11135         * lib/getline.h, getline.c: Rewrite.
11136
11137         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
11138
11139 2005-07-31  Bruno Haible  <bruno@clisp.org>
11140
11141         * lib/lock.h (gl_lock_initializer): New macro.
11142         (gl_lock_define_initialized): Use it.
11143         (gl_rwlock_initializer): New macro.
11144         (gl_rwlock_define_initialized): Use it.
11145         (gl_recursive_lock_initializer): New macro.
11146         (gl_recursive_lock_define_initialized): Use it.
11147
11148 2005-07-30  Karl Berry  <karl@gnu.org>
11149
11150         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
11151         Report from Ben Pfaff, regarding getopt.
11152
11153 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
11154
11155         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
11156         normal way.
11157         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
11158         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
11159         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
11160         (gl_GETOPT): Use the new macros.  Most of the implementation
11161         is moved to the new macros.  This is for programs like Emacs
11162         that don't want all the functionality of gl_GETOPT.
11163
11164 2005-07-26  Bruno Haible  <bruno@clisp.org>
11165
11166         * m4/lock.m4: Update from GNU gettext.
11167
11168 2005-07-26  Bruno Haible  <bruno@clisp.org>
11169
11170         * lib/lock.h: Update from GNU gettext.
11171         * lib/lock.c: Update from GNU gettext.
11172
11173 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11174
11175         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
11176         obsolescent AC_TRY_RUN.  Include the default includes files, for
11177         'exit'.
11178
11179 2005-07-24  Bruno Haible  <bruno@clisp.org>
11180
11181         * modules/visibility: New file.
11182         * MODULES.html.sh (Misc): Add visibility.
11183
11184 2005-07-24  Bruno Haible  <bruno@clisp.org>
11185
11186         * m4/visibility.m4: New file.
11187
11188 2005-07-24  Bruno Haible  <bruno@clisp.org>
11189
11190         * doc/visibility.texi: New file.
11191
11192 2005-07-22  Bruno Haible  <bruno@clisp.org>
11193
11194         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
11195         $(ALLOCA_H), redundant through BUILT_SOURCES.
11196         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
11197         redundant through BUILT_SOURCES.
11198         * modules/byteswap (Makefile.am): Remove explicit dependency on
11199         $(BYTESWAP_H), redundant through BUILT_SOURCES.
11200         * modules/fnmatch (Makefile.am): Remove explicit dependency on
11201         $(FNMATCH_H), redundant through BUILT_SOURCES.
11202         * modules/getopt (Makefile.am): Remove explicit dependency on
11203         $(GETOPT_H), redundant through BUILT_SOURCES.
11204         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
11205         redundant through BUILT_SOURCES.
11206         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
11207         redundant through BUILT_SOURCES.
11208         * modules/stdbool (Makefile.am): Remove explicit dependency on
11209         $(STDBOOL_H), redundant through BUILT_SOURCES.
11210         * modules/stdint (Makefile.am): Remove explicit dependency on
11211         $(STDINT_H), redundant through BUILT_SOURCES.
11212         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
11213         Remove explicit dependency on $(SYSEXITS_H).
11214         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
11215
11216 2005-07-18  Simon Josefsson  <jas@extundo.com>
11217
11218         * lib/check-version.c (check_version): Accept identical versions too.
11219
11220 2005-07-18  Bruno Haible  <bruno@clisp.org>
11221
11222         * modules/lock: New file.
11223         * MODULES.html.sh (Multithreading): New section.
11224
11225 2005-07-18  Bruno Haible  <bruno@clisp.org>
11226
11227         * m4/lock.m4: New file, from GNU gettext.
11228
11229 2005-07-18  Bruno Haible  <bruno@clisp.org>
11230
11231         * lib/lock.h: New file, from GNU gettext.
11232         * lib/lock.c: New file, from GNU gettext.
11233
11234 2005-07-18  Bruno Haible  <bruno@clisp.org>
11235
11236         * lib/lock.h (gl_once_t): New type.
11237         (gl_once_define, gl_once): New macros.
11238         * lib/lock.c (fresh_once): New variable.
11239         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
11240         functions.
11241
11242 2005-07-16  Simon Josefsson  <jas@extundo.com>
11243
11244         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
11245         workaround, suggested by Bruno.
11246
11247 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11248
11249         * modules/xalloc (Depends-on): Add xalloc-die.
11250         * modules/xvasprintf (Depends-on): Add xalloc-die.
11251
11252 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
11255         with a minor change.
11256
11257 2005-07-15  Bruno Haible  <bruno@clisp.org>
11258
11259         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
11260         When using lib/poll.c, define poll as rpl_poll.
11261
11262 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         * modules/argp (Depends-on): Remove unlocked-io.
11265
11266 2005-07-14  Derek Price  <derek@ximbiot.com>
11267
11268         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
11269         for glob symlink bug.
11270
11271 2005-07-14  Bruno Haible  <bruno@clisp.org>
11272
11273         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
11274         Instead, test for *_unlocked function declarations directly.
11275
11276 2005-07-11  Simon Josefsson  <jas@extundo.com>
11277
11278         * modules/size_max: New file.
11279
11280         * modules/xsize: Depend on size_max module for size_max.m4.
11281
11282 2005-07-11  Simon Josefsson  <jas@extundo.com>
11283
11284         * lib/size_max.h: New file.
11285
11286 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
11287
11288         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
11289         copyright symbol and the year.
11290         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
11291         (version_etc_va): Use parameterized copyright notice.
11292         Reword to conform to the current GNU coding standards.
11293
11294 2005-07-11  Karl Berry  <karl@gnu.org>
11295
11296         * doc/gnulib.texi (Quoting): new node.
11297         (Initial import): more info, from Patrice.
11298
11299 2005-07-11  Bruno Haible  <bruno@clisp.org>
11300
11301         * gnulib-tool (func_usage): Document option --avoid.
11302         (Command line options): Handle --avoid.
11303         (func_acceptable): New function.
11304         (func_modules_transitive_closure): Use it.
11305
11306 2005-07-11  Bruno Haible  <bruno@clisp.org>
11307
11308         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
11309         Reported by Jim Meyering.
11310
11311 2005-07-10  Bruno Haible  <bruno@clisp.org>
11312
11313         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
11314         Needed when size_t is smaller than 'unsigned int'.
11315         Reported by Paul Eggert.
11316
11317 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11318
11319         * modules/argp (Depends-on): Add unlocked-io
11320
11321 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
11322
11323         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
11324         block of defines.
11325
11326 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11327
11328         * config/srclist.txt: Comment out regcomp.c, since we have a porting
11329         fix now.
11330
11331 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
11332         and Paul Eggert  <eggert@cs.ucla.edu>
11333
11334         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
11335         in wint_t, not wchar_t.  Remove now-unnecessary cast.
11336
11337 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11338
11339         * modules/regex (Files): Add lib/regex_internal.c,
11340         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
11341         (Depends-on): Add extensions.
11342         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
11343
11344 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11345
11346         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
11347         pathconf.
11348         * m4/same.m4 (gl_SAME): Likewise.
11349         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
11350
11351         * m4/regex.m4: Adjust to new libc regex implementation.
11352         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
11353         all the .c and .h parts of (the new) regex.
11354         Quote the m4 stuff better.
11355         Check for RE_ICASE bug of old gnulib.
11356         Check for REG_STARTEND of recent libc.
11357         Rename local variables from jm_* to gl_*.
11358         Quote operand of "test -f".
11359         Say "recent enough" version of libc, not "version 2".
11360         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
11361         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
11362         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
11363         Remove check for btowc, isascii.
11364         Require AM_LANGINFO_CODESET.
11365
11366 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11367
11368         * lib/regex.c, regex.h: Sync from libc.
11369         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
11370         * lib/regexec.c:
11371         New files, synced from libc, except that regex_internal.h
11372         currently has a small porting fix.
11373
11374 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
11375
11376         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
11377         regex_internal.c, regexec.c.
11378         Add regex_internal.h too, but as a comment, since the libc version
11379         is currently broken in gnulib mode.
11380
11381 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11382
11383         Support programs like Emacs that use gnulib but not gettext.
11384         * MODULES.html.sh (Internationalization functions): Add gettext-h.
11385         * modules/gettext-h: New file.
11386         * modules/gettext (Files): Remove lib/gettext.h.
11387         (Depends-on): Add gettext-h.
11388         (Makefile.am): Remove lib_SOURCES.
11389         * modules/argmatch, modules/c-stack, modules/closeout:
11390         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
11391         * modules/execute, modules/file-type, modules/getaddrinfo:
11392         * modules/getopt, modules/human, modules/javacomp:
11393         * modules/javaexec, modules/mkdir-p, modules/obstack:
11394         * modules/openat, modules/pagealign_alloc, modules/pipe:
11395         * modules/quotearg, modules/regex, modules/rpmatch:
11396         * modules/unicodeio, modules/userspec, modules/version-etc:
11397         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
11398         * modules/xsetenv:
11399         Depend on gettext-h, not gettext.
11400
11401 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * gnulib-tool (func_import): Add support for 'public domain' license.
11404         * modules/alloca, modules/atexit, modules/memmove:
11405         Now public domain, not GPL.
11406         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
11407         * modules/realloc, modules/strerror, modules/strtod:
11408         Now LGPL, not GPL.
11409
11410 2005-07-05  Bruno Haible  <bruno@clisp.org>
11411
11412         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
11413         autoconf CVS. Needed for mingw.
11414
11415 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11416
11417         Remove the dependency of the strftime module on the tzset module.
11418         * modules/strftime (Depends-on): Remove dependency on tzset.
11419
11420 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         Remove the dependency of the strftime module on the tzset module.
11423         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
11424         gl_FUNC_TZSET_CLOBBER.
11425
11426 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         Remove the dependency of the strftime module on the tzset module.
11429         * lib/strftime.c (my_strftime)
11430         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
11431         Copy the input structure, to work around some of the bug with
11432         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
11433         Solaris releases, you should also use the tzset module, but we won't
11434         require it as a dependency any more since we don't want LGPLed code
11435         to depend on GPLed code.
11436
11437 2005-07-02  Jim Meyering  <jim@meyering.net>
11438
11439         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
11440         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
11441         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
11442         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
11443
11444 2005-07-02  Jim Meyering  <jim@meyering.net>
11445
11446         * lib/backupfile.c (backup_args): Change a `0' to NULL.
11447
11448 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11449
11450         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
11451         declares only 'struct timespec;' (!).
11452
11453 2005-07-01  Jim Meyering  <jim@meyering.net>
11454
11455         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
11456         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
11457         * lib/save-cwd.c, tempname.c:
11458         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11459         and don't include <sys/file.h>).
11460
11461 2005-06-29  Jim Meyering  <jim@meyering.net>
11462
11463         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
11464         type name.  Use the variable name instead.
11465         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11466         Likewise.
11467
11468 2005-06-28  Simon Josefsson  <jas@extundo.com>
11469
11470         * modules/check-version (Files): Add check-version.m4.
11471
11472 2005-06-28  Simon Josefsson  <jas@extundo.com>
11473
11474         * m4/check-version.m4: New file, suggested by Jim Meyering
11475         <jim@meyering.net>.
11476
11477 2005-06-28  Simon Josefsson  <jas@extundo.com>
11478
11479         * lib/check-version.h, lib/check-version.c: New files.
11480
11481 2005-06-28  Simon Josefsson  <jas@extundo.com>
11482
11483         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
11484         collision with global variable.  Better indentation.  Don't
11485         increment buffer pointer beyond buffer end.  Based on comments
11486         from Paul Eggert <eggert@cs.ucla.edu>.
11487
11488         * lib/base64.h: Indent.
11489
11490 2005-06-28  Simon Josefsson  <jas@extundo.com>
11491
11492         * doc/gnulib.texi (Library version handling): New section.
11493
11494 2005-06-28  Jim Meyering  <jim@meyering.net>
11495
11496         * check-module (find_included_lib_files): Hard-code another
11497         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
11498         but modules/fts-lgpl (correctly) does not list those files.
11499
11500         * modules/canonicalize (Files): Add lib/pathmax.h.
11501
11502 2005-06-25  Simon Josefsson  <jas@extundo.com>
11503
11504         * modules/check-version: New file.
11505
11506 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11507
11508         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
11509         initializer of struct addrinfo, as an indication that we don't
11510         care how many members the structure has.
11511
11512 2005-06-24  Derek Price  <derek@ximbiot.com>
11513         and Bruno Haible  <bruno@clisp.org>
11514
11515         Remove stat module & update lstat.
11516         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
11517         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11518         * m4/stat.m4: Remove this file.
11519
11520 2005-06-24  Derek Price  <derek@ximbiot.com>
11521         and Bruno Haible  <bruno@clisp.org>
11522
11523         Remove stat module & update lstat.
11524         * lib/stat.c: Remove this file...
11525         (slash_aware_lstat): ...moving this content and its support...
11526         * lib/lstat.c (rpl_lstat): ...into here.
11527         * lib/lstat.h: New file.
11528
11529 2005-06-24  Derek Price  <derek@ximbiot.com>
11530         and Bruno Haible  <bruno@clisp.org>
11531
11532         Remove stat module & update lstat.
11533         * config/srclist.txt (libc sources): Remove stat.
11534
11535 2005-06-24  Derek Price  <derek@ximbiot.com>
11536         and Bruno Haible  <bruno@clisp.org>
11537
11538         Remove stat module & update lstat.
11539         * MODULES.html.sh (stat): Remove.
11540         * MODULES.html: Regenerated.
11541         * modules/lstat (Description): Correct function name.
11542         (Files): Add "lstat.h".
11543         (Depends-on): Remove stat, add xalloc, stat-macros.
11544         * modules/stat: Remove this file.
11545         (Include): Add "lstat.h", remove <sys/stat.h>.
11546
11547 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11548
11549         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
11550         (ranged_convert): Don't save conversion in a temporary struct.
11551         This causes a warning with GCC 4.0.0, and anyway in the typical
11552         case it's not worth the extra 100 bytes or so of code.
11553         (ranged_convert, __mktime_internal): When calling a function via a
11554         pointer P, use P () rather than (*P) (), as we now assume C89 or
11555         better.
11556
11557 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
11558
11559         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
11560         "who -r" failed to give output.  Problem reported by Tim Waugh.
11561
11562         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
11563         (xcalloc): Use it to avoid needless tests.
11564         Problem reported by Jim Meyering.
11565
11566 2005-06-20  Derek Price  <derek@ximbiot.com>
11567
11568         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
11569         unnecessary for Autoconfs > 2.59c.
11570
11571 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
11572
11573         * lib/argp.h (__option_is_short): Check upper limit of
11574         __key. Isprint() requires its argument to have the value
11575         of an unsigned char or EOF.
11576
11577 2005-06-16  Jim Meyering  <jim@meyering.net>
11578
11579         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
11580         when either N or S is zero.
11581
11582 2005-06-16  Derek Price  <derek@ximbiot.com>
11583
11584         * m4/bison.m4: Declare YACC & YFLAGS precious.
11585
11586 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
11587
11588         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
11589         multibyte string or pattern, fall back on unibyte matching.
11590         Problem reported by James Youngman.
11591
11592 2005-06-08  Bruno Haible  <bruno@clisp.org>
11593
11594         * modules/csharpcomp: New file.
11595         * MODULES.html.sh (C#): Add csharpcomp.
11596
11597 2005-06-08  Bruno Haible  <bruno@clisp.org>
11598
11599         * m4/csharpcomp.m4: New file, from GNU gettext.
11600
11601 2005-06-08  Bruno Haible  <bruno@clisp.org>
11602
11603         * lib/csharpcomp.h: New file, from GNU gettext.
11604         * lib/csharpcomp.c: New file, from GNU gettext.
11605         * lib/csharpcomp.sh.in: New file, from GNU gettext.
11606
11607 2005-06-08  Bruno Haible  <bruno@clisp.org>
11608
11609         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
11610         warning on mingw.
11611
11612 2005-06-07  Derek Price  <derek@ximbiot.com>
11613
11614         Sync from CVS.
11615         * lib/glob_.h: Indent nested #ifdef.
11616
11617 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11618
11619         Sync from coreutils.
11620         Use "file name" when talking about file names, instead of "filename"
11621         or "path", as per the GNU coding standards.
11622         * lib/mkdir-p.c: Renamed from makepath.c.
11623         (make_dir_parents): Renamed from make_path.  All callers changed.
11624         * lib/mkdir-p.h: Likewise.  All includers changed.
11625         * lib/filenamecat.c: Renamed from path-concat.c.
11626         (file_name_concat): Renamed from path_concat.  All callers changed.
11627         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
11628         * lib/filenamecat.h: Likewise.  All includers changed.
11629         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
11630         in comments or local variable names.
11631         * lib/basename.c: Likewise.
11632         * lib/canonicalize.c, canonicalize.h: Likewise.
11633         * lib/dirname.c, dirname.h: Likewise.
11634         * lib/euidaccess.c: Likewise.
11635         * lib/exclude.c: Likewise
11636         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
11637         * lib/fsusage.c, fsuage.h: Likewise.
11638         * lib/fts.c, fts_.h: Likewise.
11639         * lib/getcwd.c: Likewise.
11640         * lib/getloadavg.c: Likewise.
11641         * lib/mkstemp.c: Likewise.
11642         * lib/mountlist.c, mountlist.h: Likewise.
11643         * lib/openat.c, openat.h: Likewise.
11644         * lib/readlink-stub.c: Likewise.
11645         * lib/readutmp.c, readutmp.h: Likewise.
11646         * lib/rename.c: Likewise.
11647         * lib/rmdir.c: Likewise.
11648         * lib/same.c: Likewise.
11649         * lib/savedir.c: Likewise.
11650         * lib/stripslash.c: Likewise.
11651         * lib/tempname.c: Likewise.
11652         * lib/xreadlink.c: Likewise.
11653         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
11654         All uses changed.
11655         * lib/exclude.h: Likewise.
11656
11657         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
11658         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11659         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
11660         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11661         * lib/pathmax.h: Include <limits.h> unconditionally, since other
11662         files have been getting away with it for years (MORE/BSD 4.3
11663         is extinct now).
11664         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
11665         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
11666
11667         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
11668         Define to 256, not 255, as per modern POSIX.
11669
11670 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         Sync from coreutils.
11673         Use "file name" when talking about file names, instead of "filename"
11674         or "path", as per the GNU coding standards.
11675         * MODULES.html.sh: mkdir-p renamed from makepath.
11676         filenamecat renamed from path-concat.
11677         * modules/filenamecat: Renamed from modules/path-concat.
11678         (Files): filenamecat.h and filenamecat.c renamed from
11679         path-concat.h and path-concat.c.
11680         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
11681         (Include): filenamecat.h, not path-concat.h.
11682         * modules/mkdir-p: Renamed from modules/makepath.
11683         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
11684         makepath.c.
11685         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
11686         (Include): mkdir-p.h, not makepath.h.
11687
11688 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         Sync from coreutils.
11691         * m4/mkdir-p.m4: Renamed from makepath.m4.
11692         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
11693         Rename files from makepath.c to mkdir-p.c, and from
11694         makepath.h to mkdir-p.h.
11695         * m4/filenamecat.m4: Renamed from path-concat.m4.
11696         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
11697         Rename files from path-concat.c to filenamecat.c,
11698         and from path-concat.h to filenamecat.h.
11699         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
11700         "file name" in local variables or comments.
11701         * m4/rename.m4: Likewise.
11702
11703 2005-06-01  Bruno Haible  <bruno@clisp.org>
11704
11705         * modules/csharpexec: New file.
11706         * MODULES.html.sh (C#): New section.
11707
11708 2005-06-01  Bruno Haible  <bruno@clisp.org>
11709
11710         * m4/csharp.m4: New file, from GNU gettext.
11711         * m4/csharpexec.m4: New file, from GNU gettext.
11712
11713 2005-06-01  Bruno Haible  <bruno@clisp.org>
11714
11715         * lib/csharpexec.h: New file, from GNU gettext.
11716         * lib/csharpexec.c: New file, from GNU gettext.
11717         * lib/csharpexec.sh.in: New file, from GNU gettext.
11718
11719 2005-05-31  Derek Price  <derek@ximbiot.com>
11720             Paul Eggert  <eggert@cs.ucla.edu>
11721
11722         Sync from cvs.
11723         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
11724
11725 2005-05-31  Derek Price  <derek@ximbiot.com>
11726             Paul Eggert  <eggert@cs.ucla.edu>
11727
11728         Sync from cvs.
11729         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
11730
11731 2005-05-29  Derek Price  <derek@ximbiot.com>
11732
11733         * config/srclist.txt (glob_.h, glob.c): Add these files.
11734
11735 2005-05-29  Derek Price  <derek@ximbiot.com>
11736
11737         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
11738         * modules/glob: New file.
11739         * modules/getlogin_r: Add link to POSIX spec in description.
11740
11741 2005-05-29  Derek Price  <derek@ximbiot.com>
11742             Paul Eggert  <eggert@cs.ucla.edu>
11743
11744         * m4/glob.m4: New file.
11745
11746 2005-05-29  Derek Price  <derek@ximbiot.com>
11747             Paul Eggert  <eggert@cs.ucla.edu>
11748
11749         * lib/glob_.h, lib/glob.c: New files.
11750
11751 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11752
11753         * modules/fts (Files): Remove m4/inttypes-pri.m4.
11754         * modules/fts-lgpl (Depends-on): Remove gettext.
11755
11756 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11757
11758         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
11759         and don't require gt_INTTYPES_PRI.
11760
11761 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
11764
11765         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
11766         the configuration hassle isn't worth it.
11767         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
11768         (LONGEST_MODIFIER, PRIuMAX): Remove.
11769
11770 2005-05-27  Bruno Haible  <bruno@clisp.org>
11771
11772         * lib/getlogin_r.h: Remove second include of <stddef.h>.
11773
11774 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
11777         _POSIX_PTHREAD_SEMANTICS for Solaris.
11778
11779 2005-05-25  Derek Price  <derek@ximbiot.com>
11780
11781         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
11782
11783 2005-05-25  Derek Price  <derek@ximbiot.com>
11784             Paul Eggert  <eggert@cs.ucla.edu>
11785
11786         * modules/getlogin_r, m4/getlogin_r.m4: New files.
11787         * lib/getlogin_r.c, getlogin_r.h: New files.
11788
11789 2005-05-25  Bruno Haible  <bruno@clisp.org>
11790             Derek Price  <derek@ximbiot.com>
11791
11792         * lib/getlogin_r.h: Simplify API documentation.
11793
11794 2005-05-23  Derek Price  <derek@ximbiot.com>
11795
11796         * modules/minmax (Files): Add m4/minmax.m4.
11797         (configure.ac): Add gl_MINMAX.
11798
11799 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11800
11801         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
11802         so that unistd-safer.h (GPL'ed code) need not be included.
11803
11804 2005-05-22  Bruno Haible  <bruno@clisp.org>
11805
11806         * m4/minmax.m4: New file.
11807         Based on a patch by Derek Price <derek@ximbiot.com>.
11808
11809 2005-05-22  Bruno Haible  <bruno@clisp.org>
11810
11811         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
11812         (INT64_MIN): Fix definition.
11813         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11814
11815         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
11816         NEED_SIGNED_INT_TYPES.
11817
11818         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
11819         HAVE_SYSTEM_INTTYPES.
11820
11821 2005-05-22  Bruno Haible  <bruno@clisp.org>
11822
11823         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
11824         Also include <sys/param.h> if it defines MIN, MAX.
11825         Based on a patch by Derek Price <derek@ximbiot.com>.
11826
11827 2005-05-21  Jim Meyering  <jim@meyering.net>
11828
11829         * modules/fts (Files): Add m4/inttypes-pri.m4.
11830         (Depends-on): Add lstat and remove gettext.  Alphabetize.
11831
11832 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11833
11834         New fts module.
11835         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
11836         (setup_dir, free_dir): New functions.
11837         (enter_dir, leave_dir): Define trivial
11838         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
11839         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
11840         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
11841         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
11842         Move to fts-cycle.c.
11843         (fts_open): Use setup_dir.
11844         (fts_close): Use free_dir.
11845         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
11846         This adds a label and some gotos, but the alternatives were messier.
11847         Check for memory allocation failure when entering a dir.
11848         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
11849         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
11850         (FTS): New member fts_cycle, that is a union that contains the
11851         old active_dir_ht and cycle_state.  All uses changed to mention
11852         fts_cycle.ht and fts_cycle.state.
11853         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
11854         fts.c, with the following changes:
11855         (setup_dir, free_dir): New functions.
11856         (enter_dir): Now returns bool.  Return true if successful, false
11857         if memory exhausted.  All callers changed.
11858         Do not bother partly cleaning up on
11859         memory allocation failure; that is free_dir's job.
11860         However, free ad if hash_insert fails, to avoid memory leak.
11861         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
11862         fts->fts_options to see which union member to use.
11863
11864 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
11867         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
11868
11869 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11870
11871         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
11872
11873 2005-05-20  Jim Meyering  <jim@meyering.net>
11874
11875         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
11876         Now a macro, to pacify GCC.
11877
11878 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
11879
11880         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
11881         of -1.
11882
11883 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
11884
11885         * lib/chown.c (rpl_chown): Return -1 on failure.
11886
11887 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11888
11889         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
11890         Don't check for stddef.h.
11891         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
11892         don't use its results.
11893         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
11894         since we include them unconditionally.  Don't require
11895         AM_STDBOOL_H, since stdbool is a prerequisite.
11896         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
11897         since we assume C89 or better.
11898         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
11899         as we don't use their results.
11900         Don't check for fchdir, memmove, memset, strrchr, as we use
11901         them unconditionally.
11902         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
11903         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
11904
11905 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
11908         Include <stddef.h> unconditionally, since we assume C89 now.
11909         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
11910         * lib/fts.c: Include fts_.h first, to check interface.
11911         Do not include intprops.h; no longer needed.
11912         Include cycle-check.h and hash.h, since fts_.h no longer does.
11913         Remove unnecessary casts of closedir to void.
11914         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
11915         decide whether to decrement nlinks.
11916         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
11917         (FTS): Use struct hash_table * instead of Hash_table, so that
11918         we no longer need to include hash.h here.
11919
11920 2005-05-18  Jim Meyering  <jim@meyering.net>
11921
11922         * modules/dirfd (License): Change to LGPL.  Most of the code
11923         is already in the public domain.
11924
11925 2005-05-18  Jim Meyering  <jim@meyering.net>
11926
11927         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
11928         Reported by Yoann Vandoorselaere.
11929
11930 2005-05-17  Jim Meyering  <jim@meyering.net>
11931
11932         * m4/fts.m4: New file, from coreutils.
11933
11934 2005-05-17  Jim Meyering  <jim@meyering.net>
11935
11936         * lib/fts.c, lib/fts_.h: New files, from coreutils.
11937
11938 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11939
11940         Sync from coreutils.
11941         * m4/unlinkdir.m4: New file.
11942
11943 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11944
11945         Sync from coreutils.
11946         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
11947         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
11948         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
11949         White space changes only.
11950         * lib/makepath.c (make_path): Port to hosts where leading "//" is
11951         special.
11952         * lib/yesno.c: Include getline.h, not ctype.h.
11953         (yesno): Don't remove leading white space; POSIX doesn't allow it.
11954         Use getline to remove arbitrary restriction on response length.
11955
11956 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11957
11958         * config/srclist-update: Spell out "Street" in FSF postal
11959         mail address; this is the style the FSF seems to prefer.
11960
11961         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
11962         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
11963         this updates FSF postal mail address.
11964
11965         Sync from coreutils.
11966         * modules/unlinkdir: New file.
11967         * modules/yesno (Depends-on): Add getline.
11968         * MODULES.html.sh (File system functions): Add unlinkdir.
11969
11970 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11971
11972         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
11973         lib/strsep.h:
11974         Change the initial comment to refer to GPL, not LGPL.
11975         gnulib-tool will change it to LGPL as needed.
11976
11977         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
11978         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
11979         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
11980         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
11981         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
11982         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
11983         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
11984         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
11985         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
11986         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
11987         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
11988         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
11989         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
11990         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
11991         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
11992         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
11993         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
11994         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
11995         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
11996         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
11997         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
11998         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
11999         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
12000         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
12001         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
12002         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
12003         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
12004         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
12005         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
12006         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
12007         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
12008         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
12009         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
12010         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
12011         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
12012         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
12013         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
12014         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
12015         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
12016         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
12017         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
12018         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
12019         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
12020         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
12021         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
12022         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
12023         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
12024         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
12025         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
12026         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
12027         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
12028         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
12029         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
12030         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
12031         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
12032         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
12033         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
12034         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
12035         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
12036         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
12037         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
12038         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
12039         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
12040         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
12041         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
12042         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
12043         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
12044         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
12045         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
12046         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
12047         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
12048         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
12049         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
12050         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
12051         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
12052         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
12053         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
12054         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
12055         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
12056         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
12057         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
12058         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
12059         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
12060         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
12061         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
12062         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
12063         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
12064         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
12065         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
12066         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
12067         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
12068         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
12069         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
12070         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
12071         lib/yesno.c, lib/yesno.h:
12072         Update FSF postal mail address.
12073
12074 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12075
12076         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
12077         tests/test-memmem.c, tests/test-stpncpy.c:
12078         Update FSF postal mail address.
12079
12080 2005-05-13  Bruno Haible  <bruno@clisp.org>
12081
12082         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
12083         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
12084         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
12085         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
12086         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
12087         Add support for 64-bit integers in the MSVC compiler.
12088
12089 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12090
12091         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
12092
12093 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
12094
12095         * gnulib-tool (func_import): Sort and uniquify recommended includes.
12096
12097 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12098
12099         * doc/getdate.texi (General date syntax): Don't say that date
12100         date --iso-8601=ns generates acceptable dates; it doesn't yet.
12101         Problem reported by Nic Ferrier.
12102
12103 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12104
12105         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
12106         specified in ai_socktype. Fix invalid ai_protocol
12107         check. ai_protocol is usually set to 0 or depending on
12108         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
12109         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
12110         ai_socktype / ai_protocol in the returned addrinfo structure.
12111
12112 2005-05-10  Simon Josefsson  <jas@extundo.com>
12113
12114         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
12115         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12116
12117 2005-05-10  Karl Berry  <karl@gnu.org>
12118
12119         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
12120         (from http://www.gnu.org/licenses).
12121         * doc/COPYING.LIB: also rename to COPYING.LESSER.
12122         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
12123         fdl.texi suffices.
12124
12125 2005-05-10  Karl Berry  <karl@gnu.org>
12126
12127         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
12128         (COPYING.DOC): remove.
12129
12130         * config/srclist-update: new FSF address.
12131
12132 2005-05-10  Derek Price  <derek@ximbiot.com>
12133
12134         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
12135         possible.
12136
12137 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12138             Bruno Haible  <bruno@clisp.org>
12139
12140         * modules/inet_ntop: New file.
12141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12142         inet_ntop.
12143
12144 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12145             Bruno Haible  <bruno@clisp.org>
12146
12147         * m4/inet_ntop.m4: New file.
12148
12149 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12150             Bruno Haible  <bruno@clisp.org>
12151
12152         * lib/inet_ntop.h: New file.
12153         * lib/inet_ntop.c: New file, from glibc with modifications.
12154
12155 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
12156
12157         * modules/time_r (License): Change to LGPL.
12158         * modules/extensions (License): Change to LGPL.  Actually,
12159         the license is more permissive than that, but currently gnulib-tool
12160         doesn't know how to handle more-permissive licenses.
12161
12162         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
12163         Problem reported by Dave Love.
12164
12165 2005-05-08  Jim Meyering  <jim@meyering.net>
12166
12167         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
12168         blank.
12169
12170 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
12171
12172         * modules/argmatch (Depends-on): Add stdbool.
12173         * modules/backupfile (Depends-on): Likewise.
12174         * modules/chdir-long (Depends-on): Likewise.
12175         * modules/closeout (Depends-on): Likewise.
12176         * modules/cycle-check (Depends-on): Likewise.
12177         * modules/dirname (Depends-on): Likewise.
12178         * modules/fnmatch (Depends-on): Likewise.
12179         * modules/fsusage (Depends-on): Likewise.
12180         * modules/fwriteerror (Depends-on): Likewise.
12181         * modules/getcwd (Depends-on): Likewise.
12182         * modules/getloadavg (Depends-on): Likewise.
12183         * modules/hard-locale (Depends-on): Likewise.
12184         * modules/makepath (Depends-on): Likewise.
12185         * modules/mountlist (Depends-on): Likewise.
12186         * modules/nanosleep (Depends-on): Likewise.
12187         * modules/posixtm (Depends-on): Likewise.
12188         * modules/quotearg (Depends-on): Likewise.
12189         * modules/readtokens (Depends-on): Likewise.
12190         * modules/readtokens0 (Depends-on): Likewise.
12191         * modules/readutmp (Depends-on): Likewise.
12192         * modules/save-cwd (Depends-on): Likewise.
12193         * modules/strftime (Depends-on): Likewise.
12194         * modules/userspec (Depends-on): Likewise.
12195         * modules/utimecmp (Depends-on): Likewise.
12196         * modules/xgetcwd (Depends-on): Likewise.
12197         * modules/xnanosleep (Depends-on): Likewise.
12198         * modules/xstrtod (Depends-on): Likewise.
12199         * modules/yesno (Depends-on): Likewise.
12200
12201 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12202
12203         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
12204         needless checks.
12205
12206 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12207
12208         Merge from coreutils.  Among other things,
12209         add bulletproofing for cases where stdin, stdout, or stderr are closed.
12210         * lib/fd-safer.c: New file.
12211         * lib/fcntl-safer.h, open-safer.c: Remove.
12212         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
12213         * lib/dup-safer.c: Include unistd-safer.h first.
12214         Don't include errno.h.
12215         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
12216         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
12217         * lib/file-type.c: Rely on file-type.h change.
12218         * lib/getloadavg.c: Include unistd-safer.h.
12219         (getloadavg): Use safer open.
12220         * lib/getusershell.c: Include "stdio-safer.h".
12221         (getusershell): Use safer fopen.
12222         * lib/long-options.c (long_options): Use NULL rather than 0.
12223         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
12224         'free'.
12225         * lib/modechange.c: Likewise.
12226         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
12227         (MODE_DONE): New constant.
12228         (struct mode_change): Remove 'next' member.
12229         (make_node_op_equals): New function; like the old one of the
12230         same name, except it allocates an array.
12231         (mode_compile, mode_create_from_ref): Use it.
12232         (mode_compile): Allocate result as an array, not a linked list.
12233         Parse octal string ourself, so that we catch mistakes like "+0".
12234         (mode_adjust): Arg is an array, not a linked list.
12235         * lib/modechange.c: Include stat-macros.h, xalloc.h.
12236         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
12237         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
12238         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
12239         Remove.  This is now stat-macros.h's job.
12240         (talloc): Remove.  All callers replaced by xalloc, so that
12241         our invokers don't have to worry about reporting memory failures.
12242         (make_node_op_equals): Remove.
12243         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12244         New constants.
12245         (struct mode_change): Moved here from modechange.h.
12246         (mode_append_entry): Remove.
12247         (mode_compile): Remove MASKED_OPS arg, since it encouraged
12248         apps to have incorrect behavior.  Use simpler algorithm for head
12249         and tail.  Don't futz with umask; that's now the job of mode_adjust.
12250         Detect more invalid usages rather than having somewhat-random behavior.
12251         Don't insert an "a=" action, as that leads to incorrect behavior.
12252         (mode_compile, mode_create_from_ref): Return NULL on error instead
12253         of an enum, since now there's only one way to have an error.  All
12254         callers changed.
12255         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
12256         at the correct time.  Simplify calculation of "+u" and its ilk.
12257         Don't mishandle "+X".
12258         (mode_free): Remove "register" and localize decls.
12259         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12260         (struct mode_change): Move to modechange.c; callers don't
12261         need to see this stuff.
12262         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
12263         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
12264         (mode_change, mode_adjust): Reflect the new signatures noted above.
12265         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
12266         that might redefine system include files.
12267         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
12268         (my_usleep): Use NULL rather than (void *) 0.
12269         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
12270         Use siginterrupt to specify that system calls should be interrupted.
12271         (rpl_nanosleep): Move initialization of suspended closer to call of
12272         my_usleep.
12273         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
12274         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
12275         (desirable_utmp_entry): New function.
12276         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
12277         using x2nrealloc, to simplify logic.
12278         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
12279         size calculation.  Do not assume utmp file is a regular file.
12280         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
12281         (READ_UTMP_CHECK_PIDS): New constant.
12282         * lib/save-cwd.c: Include unistd-safer.h.
12283         (save_cwd): Use fd_safer.
12284         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
12285         [!_LIBC] Include "stat-macros.h" instead.
12286         * lib/unistd-safer.h (fd_safer): New decl.
12287
12288 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12289
12290         * modules/getloadavg (Depends-on): Add unistd-safer.
12291         * modules/getusershell (Depends-on): Add stdio-safer.
12292         * modules/lstat (Depends-on): Remove xalloc.
12293         * modules/mkstemp (Depends-on): Add stat-macros.
12294         * modules/modechange (Depends-on): Remove xstrtol.
12295         Add stat-macros, xalloc.
12296         * modules/save-cwd (Depends-on): Add unistd-safer.
12297         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
12298         * modules/unistd-safer (Files): Add lib/fd-safer.c
12299         (Makefile.am): Remove lib_SOURCES.
12300
12301         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
12302         Remove fcntl-safer; unistd-safer supersedes it.
12303
12304 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12305
12306         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
12307         AC_HEADER_STAT.
12308         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
12309         (gl_PREREQ_CHOWN): Remove.
12310         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
12311         it.  Don't require AC_HEADER_STAT.
12312         (gl_PREREQ_LSTAT): Remove.
12313         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
12314         Don't require AC_HEADER_STAT.
12315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
12316         (gl_PREREQ_RMDIR): Remove.
12317         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
12318         mention stat-macros.h or AC_HEADER_STAT, since we'll make
12319         the stat-macros module a prerequisite.
12320         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
12321         * m4/filemode.m4 (gl_FILEMODE): Likewise.
12322         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
12323         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
12324         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
12325         variable names.
12326         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
12327         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
12328         variable prefixes.
12329         * m4/fcntl-safer.m4: Remove.
12330         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
12331         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
12332         Invoke gl_PREREQ_FD_SAFER.
12333         (gl_PREREQ_FD_SAFER): New macro.
12334         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
12335         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
12336         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
12337         Remove duplicate call to AC_LIBOBJ(readutmp).
12338         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
12339
12340         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
12341         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
12342
12343 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12344
12345         * MODULES.html.sh (Misc): Add byteswap.
12346
12347 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12348
12349         * modules/getcwd (Depends-on): Add extensions.
12350         * modules/openat (Depends-on): Likewise.
12351
12352 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12353
12354         * modules/byteswap: New file.
12355
12356 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12357
12358         * m4/byteswap.m4: New file.
12359
12360 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
12361
12362         * lib/byteswap_.h: New file.
12363
12364 2005-04-25  Karl Berry  <karl@gnu.org>
12365
12366         * m4/gettext.m4: Update from GNU gettext 0.14.4.
12367
12368 2005-04-25  Albert Chin  <china@thewrittenword.com>
12369
12370         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
12371         Toolkit C bug.
12372
12373 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
12374
12375         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
12376         (func_ln_if_changed) Remove forcibly for no error message
12377         in case file does not exist.
12378
12379 2005-04-19  Simon Josefsson  <jas@extundo.com>
12380
12381         * gnulib-tool (Options): Make --symlink mean --symbolic.
12382
12383 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
12384
12385         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
12386
12387 2005-04-16  Simon Josefsson  <jas@extundo.com>
12388
12389         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
12390
12391 2005-04-15  Simon Josefsson  <jas@extundo.com>
12392
12393         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
12394
12395 2005-04-15  Simon Josefsson  <jas@extundo.com>
12396
12397         * gnulib-tool: Rename --symlink to --symbolic.
12398
12399 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
12400
12401         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
12402         symbolic links to files instead of copying/moving.  Add --aux-dir,
12403         specifying directory relative --dir where auxiliary build tools
12404         are placed.
12405
12406 2005-04-14  Bruno Haible  <bruno@clisp.org>
12407
12408         * modules/allocsa (License): Change to LGPL.
12409         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12410
12411 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
12414         that "UTC +1 second" continues to work.  Problem reported
12415         by Dmitry V. Levin.
12416         (relunit_snumber): New rule.
12417         (relunit): Use it.
12418
12419 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
12420
12421         * lib/getdate.y (universal_time_zone_table): New constant.
12422         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
12423         universal_time_zone_table.
12424         (lookup_zone): Prefer universal_time_zone_table to
12425         local_time_zone_table, so that "GMT" time stamps are allowed in
12426         London during the summer.  Problem reported by Ian Abbott.
12427
12428 2005-04-12  Jim Meyering  <jim@meyering.net>
12429
12430         * lib/human.c (humblock): Set *options even when returning due to
12431         xstrtoumax conversion failure.  Thanks to a used-uninitialized
12432         warning from gcc-4.
12433
12434 2005-04-09  Jim Meyering  <jim@meyering.net>
12435
12436         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
12437         -Wuninitialized: initialize tm0.tm_year.
12438
12439 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
12442         count, since there's no maximum.  All uses changed.
12443         Add member dsts_seen.
12444         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
12445         not being INT_MAX.
12446         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
12447         Use pc_rels_seen to decide whther a date is absolute.
12448
12449         * lib/getdate.y (number): Don't overwrite year.
12450         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
12451         check.
12452
12453 2005-04-02  Simon Josefsson  <jas@extundo.com>
12454
12455         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
12456         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
12457
12458 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
12459
12460         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
12461         where no absolute path name can be longer than PATH_MAX.
12462
12463 2005-03-27  Jim Meyering  <jim@meyering.net>
12464
12465         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
12466
12467 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
12470         "one's complement" -> "ones' complement" in comment, as per Knuth.
12471         "value of type" -> "type or expression" in comment.
12472         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
12473
12474 2005-03-26  Jim Meyering  <jim@meyering.net>
12475
12476         Comment nits.
12477         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
12478         Correct typos: s/or/of/.
12479
12480 2005-03-26  Jim Meyering  <jim@meyering.net>
12481
12482         * modules/check-include-files: Move to ../ and rename to...
12483         * check-module: ...this.
12484
12485 2005-03-25  Jim Meyering  <jim@meyering.net>
12486
12487         * modules/xvasprintf (Files): Add xalloc.h.
12488
12489 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12490
12491         * modules/gettext (Files): config/config.rpath ->
12492         build-aux/config.rpath
12493         * modules/iconv (Files): Likewise.
12494         Problem reported by Oskar Liljeblad.
12495
12496 2005-03-23  Jim Meyering  <jim@meyering.net>
12497
12498         * modules/check-include-files: New script to check for
12499         missing dependencies, multiple includes, etc.
12500
12501         * modules/c-strtold (Depends-on): Add xalloc.
12502         * modules/c-strtod (Depends-on): Add xalloc.
12503         * modules/hash (Depends-on): Add xalloc.
12504         (Files): Remove lib/xalloc.h.
12505
12506         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
12507         * modules/userspec (Files): Add lib/inttostr.h.
12508
12509 2005-03-23  Jim Meyering  <jim@meyering.net>
12510
12511         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
12512
12513 2005-03-22  Jim Meyering  <jim@meyering.net>
12514
12515         * modules/stat-macros: New module.
12516         * modules/canonicalize, modules/euidaccess, modules/file-type,
12517         * modules/filemode, modules/lchown, modules/makepath,
12518         * modules/rmdir, modules/stat: Depend on new stat-macros module
12519         rather than listing lib/stat-macros.h manually.
12520         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
12521
12522 2005-03-22  Jim Meyering  <jim@meyering.net>
12523
12524         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
12525
12526 2005-03-22  Bruno Haible  <bruno@clisp.org>
12527
12528         * config/srclist.txt: Replace target directory 'config' with
12529         'build-aux'.
12530         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
12531         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
12532         ../build-aux/.
12533
12534 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         * modules/chdir-long (Depends-on): Add mempcpy.
12537
12538         * modules/acl, modules/backupfile, modules/c-strtod,
12539         modules/c-strtold, modules/canon-host, modules/canonicalize,
12540         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
12541         modules/exclude, modules/exitfail, modules/file-type,
12542         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
12543         modules/getdate, modules/getline, modules/getpagesize,
12544         modules/getpass, modules/getugroups, modules/group-member,
12545         modules/hard-locale, modules/hash, modules/human, modules/idcache,
12546         modules/inttostr, modules/long-options, modules/makepath,
12547         modules/md5, modules/memcasecmp, modules/memcoll,
12548         modules/modechange, modules/mountlist, modules/path-concat,
12549         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
12550         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
12551         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
12552         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
12553         modules/strftime, modules/strndup, modules/strverscmp,
12554         modules/timespec, modules/unlocked-io, modules/userspec,
12555         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
12556         modules/yesno:
12557         Remove lib_SOURCES line from Makefile.am section, as this is now
12558         done automatically by the corresponding Autoconf macro.
12559
12560 2005-03-21  Jim Meyering  <jim@meyering.net>
12561
12562         Changes imported from coreutils.
12563
12564         * lib/cycle-check.c: Don't include xalloc.h.
12565
12566         * lib/path-concat.c: Don't include assert.h.
12567         (path_concat): Remove assertion that would have triggered
12568         for ABASE starting with more than one slash.
12569         Reported by Andreas Schwab.
12570
12571         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
12572         properly when ABASE is an absolute file name.
12573         Correct the description of this function.
12574         Include <assert.h>.
12575         Add an assertion and a test driver.
12576         This fixes a bug introduced on 2004-07-02.
12577         Andreas Schwab reported the resulting failure of cp --parents:
12578         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
12579
12580 2005-03-21  Jim Meyering  <jim@meyering.net>
12581
12582         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
12583         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
12584
12585 2005-03-21  Jim Meyering  <jim@meyering.net>
12586         and  Paul Eggert  <eggert@cs.ucla.edu>
12587
12588         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
12589         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
12590         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
12591         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
12592         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
12593         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
12594         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
12595         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
12596         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
12597         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
12598         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
12599         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
12600         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
12601         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
12602         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
12603         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
12604         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
12605         for these modules.
12606
12607 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12608
12609         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
12610         (which shouldn't happen), generate nothing instead of returning 0
12611         immediately, so that nstrftime (NULL, ...) doesn't return 0.
12612
12613 2005-03-16  Bruno Haible  <bruno@clisp.org>
12614
12615         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
12616         HAVE_LONGLONG_64BIT.
12617
12618 2005-03-16  Bruno Haible  <bruno@clisp.org>
12619
12620         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
12621         HAVE_LONGLONG_64BIT.
12622
12623 2005-03-16  Bruno Haible  <bruno@clisp.org>
12624
12625         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
12626         HAVE_LONGLONG_64BIT.
12627
12628 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12629
12630         * lib/strftime.c (my_strftime): Prepend space to format so that we can
12631         reliably distinguish strftime failure from empty output on POSIX
12632         hosts.
12633
12634 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12635
12636         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
12637         (iconv_string): Don't guess a size-zero buffer, as that might cause
12638         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
12639         result would be 'too large', where 'too large' is (heuristically)
12640         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
12641         overflow concerns.  This will prevent some unwanted malloc failures
12642         when the inputs are very large.
12643
12644 2005-03-15  Karl Berry  <karl@gnu.org>
12645
12646         * config/srclist.txt (config.rpath): from gettext.
12647         * config/config.rpath: update.
12648
12649 2005-03-15  Bruno Haible  <bruno@clisp.org>
12650
12651         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
12652         to 'negate'.
12653
12654         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
12655         variable.
12656
12657         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
12658         results.
12659
12660 2005-03-14  Simon Josefsson  <jas@extundo.com>
12661
12662         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
12663         <fx@gnu.org>.
12664
12665 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12666
12667         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
12668         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
12669         intprops.h.
12670         * lib/strtol.c: Likewise.
12671
12672 2005-03-14  Jim Meyering  <jim@meyering.net>
12673
12674         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
12675         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
12676         to be nonzero so that we (and caller) can detect the difference
12677         between a valid zero-length expansion and an error return, even
12678         when the underlying strftime fails before writing anything into
12679         that location.
12680
12681 2005-03-14  Bruno Haible  <bruno@clisp.org>
12682
12683         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
12684         Update from GNU gettext 0.14.3.
12685
12686 2005-03-10  Jim Meyering  <jim@meyering.net>
12687
12688         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
12689
12690 2005-03-10  Jim Meyering  <jim@meyering.net>
12691
12692         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
12693         so that this module works on systems without fchdir.
12694
12695 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12696
12697         Factor int-properties macros into a single file, except for
12698         glibc-related files.
12699         * lib/intprops.h: New file.
12700         * lib/getloadavg.c: Include it instead of limits.h.
12701         (INT_STRLEN_BOUND): Remove.
12702         * lib/human.c: Include intprops.h.
12703         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
12704         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
12705         302/1000.
12706         * lib/inttostr.h: Include intprops.h instead of limits.h.
12707         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
12708         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
12709         for consistency with intprops.h.
12710         (time_t_is_integer, twos_complement_arithmetic): Use them.
12711         * lib/sig2str.h: Include <signal.h>, intprops.h.
12712         (INT_STRLEN_BOUND): Remove.
12713         * lib/strftime.c (TYPE_SIGNED): Remove.
12714         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
12715         * lib/strtol.c: Adjust comments to match intprops.h.
12716         * lib/userspec.c: Include intprops.h.
12717         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
12718         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
12719         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
12720         instead of rolling our own expressions.
12721         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
12722
12723         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
12724         instead of int.
12725         (my_strftime): Do not mishandle years close to INT_MAX, by doing
12726         the right thing even if adding 1900 would overflow.  Similarly
12727         for tm_mon + 1 and tm_yday + 1.
12728         Make %Y always equivalent to %C%y, and similarly for %G and %g.
12729         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
12730         (DO_SIGNED_NUMBER): New macro.
12731         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
12732
12733 2005-03-07  Bruno Haible  <bruno@clisp.org>
12734
12735         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
12736
12737 2005-03-07  Bruno Haible  <bruno@clisp.org>
12738
12739         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
12740
12741 2005-03-04  Derek R. Price  <derek@ximbiot.com>
12742
12743         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
12744         (func_import): Only replace files via --import when they have actually
12745         changed.
12746
12747 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12748
12749         * m4/mmap-anon.m4: New file.
12750         * m4/pagealign_alloc.m4: New file.
12751
12752 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12753             Bruno Haible  <bruno@clisp.org>
12754
12755         * modules/pagealign_alloc: New file.
12756         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
12757
12758 2005-03-03  Derek R. Price  <derek@ximbiot.com>
12759             Bruno Haible  <bruno@clisp.org>
12760
12761         * lib/pagealign_alloc.h: New file.
12762         * lib/pagealign_alloc.c: New file.
12763
12764 2005-03-03  Bruno Haible  <bruno@clisp.org>
12765
12766         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
12767         Use an all-permissive copyright notice, recommended by RMS.
12768
12769 2005-03-02  Bruno Haible  <bruno@clisp.org>
12770
12771         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
12772         of AIX, the replacement has to be done only after <string.h> is
12773         included, therefore not in config.h. stpncpy.h does the replacement,
12774         and stpncpy.c uses it.
12775
12776 2005-03-02  Bruno Haible  <bruno@clisp.org>
12777
12778         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
12779         stpncpy.c uses it.
12780
12781 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
12784         The workaround isn't strictly needed for POSIX conformance, and
12785         it's too much of a pain to configure and maintain.  We'll ask
12786         people to fix their kernels instead.
12787         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
12788         (NANOSLEEP_BUG_WORKAROUND): Remove.
12789         (xnanosleep): Remove the workaround.
12790
12791 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12792
12793         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
12794         Reported by Derek Price.
12795         (Include): Add "timespec.h".
12796
12797         * modules/xnanosleep (Depends-on): Remove gethrxtime.
12798
12799 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12800
12801         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
12802         to detect nanosleep bug.
12803
12804 2005-03-01  Bruno Haible  <bruno@clisp.org>
12805
12806         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
12807
12808 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12809
12810         * modules/gethrxtime: New file.
12811         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
12812         (Depends-on): Add gethrxtime.
12813         (configure.ac): Add gl_XNANOSLEEP.
12814         (Makefile.am): Remove lib_SOURCES line.
12815
12816 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12817
12818         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
12819         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
12820
12821 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12822
12823         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
12824         * lib/timespec.h (gettime): Return void, since it always
12825         succeeds now.  All uses changed.
12826         * lib/gettime.c (gettime) Likewise.
12827         [HAVE_NANOTIME]: Prefer nanotime.
12828         Assume gettimeofday succeeds, as POSIX requires.
12829         Assime time () succeeds, since other code already does.
12830         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
12831         (timespec_subtract): Remove.
12832         (NANOSLEEP_BUG_WORKAROUND): New constant.
12833         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
12834         things considerably.  Use it only on GNU/Linux hosts, since the
12835         workaround shouldn't be needed elsewhere.
12836
12837 2005-02-24  Bruno Haible  <bruno@clisp.org>
12838
12839         * modules/gettext (Files): Add m4/glibc2.m4.
12840
12841 2005-02-24  Bruno Haible  <bruno@clisp.org>
12842
12843         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
12844         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
12845         * m4/progtest.m4:
12846         Update from GNU gettext 0.14.2.
12847         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
12848
12849 2005-02-24  Bruno Haible  <bruno@clisp.org>
12850
12851         * lib/localcharset.c: Update from GNU gettext 0.14.2.
12852         * lib/config.charset: Update from GNU gettext 0.14.2.
12853
12854 2005-02-24  Bruno Haible  <bruno@clisp.org>
12855
12856         * lib/gettext.h: Update from GNU gettext 0.14.2.
12857
12858 2005-02-23  Simon Josefsson  <jas@extundo.com>
12859
12860         * m4/iconvme.m4: New file.
12861
12862 2005-02-23  Jim Meyering  <jim@meyering.net>
12863
12864         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
12865         change.
12866         Thanks to Bruno Haible for catching it.
12867
12868 2005-02-22  Simon Josefsson  <jas@extundo.com>
12869
12870         * modules/iconvme: New file.
12871
12872         * MODULES.html.sh: Add iconvme.
12873
12874 2005-02-22  Simon Josefsson  <jas@extundo.com>
12875
12876         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
12877
12878 2005-02-22  Simon Josefsson  <jas@extundo.com>
12879
12880         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
12881
12882 2005-02-22  Jim Meyering  <jim@meyering.net>
12883
12884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
12885         s/ifndef/ifdef/.
12886
12887 2005-02-20  Neil Conway  <neilc@samurai.com>
12888
12889         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
12890         returned by OSX/Darwin if the specified buffer is not large
12891         enough for the hostname.
12892
12893 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12894
12895         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
12896         pass it to _help, otherwise the latter coredumps trying to
12897         dereference state.root_argp.
12898
12899 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12900
12901         * modules/chdir-long (Depends-on): Add memrchr.
12902         * modules/memrchr (Files): Add lib/memrchr.h.
12903         (Include): "memrchr.h".
12904
12905 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12906
12907         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
12908
12909 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12910
12911         * lib/memrchr.h: New file.
12912         * lib/chdir-long.c: Include it.
12913         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
12914         Don't bother including stddef.h.
12915
12916 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
12917
12918         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
12919         inclusion.
12920         Include <sys/types.h>, for dev_t.
12921         (ME_DUMMY, ME_REMOTE): Move from here....
12922         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
12923         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
12924         Dmitry V. Levin.
12925         Include mountlist.h first, to test the interface.
12926
12927 2005-01-29  Bruno Haible  <bruno@clisp.org>
12928
12929         * lib/progname.c (program_name): Initialize.
12930         Needed when linking statically on MacOS X.
12931
12932 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12933
12934         Sync from coreutils.
12935         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
12936         (Depends-on): Add c-strtod.
12937         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
12938
12939 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12940
12941         Sync from coreutils.
12942         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
12943
12944         Remove files that are specific to coreutils.
12945         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
12946
12947 2005-01-28  Bruno Haible  <bruno@clisp.org>
12948
12949         * modules/javacomp: New file.
12950         * MODULES.html.sh (Java): Add javacomp.
12951
12952 2005-01-28  Bruno Haible  <bruno@clisp.org>
12953
12954         * m4/javacomp.m4: New file, from GNU gettext.
12955
12956 2005-01-28  Bruno Haible  <bruno@clisp.org>
12957
12958         * lib/javacomp.sh.in: New file, from GNU gettext.
12959         * lib/javacomp.h: New file, from GNU gettext.
12960         * lib/javacomp.c: New file, from GNU gettext.
12961
12962 2005-01-26  Simon Josefsson  <jas@extundo.com>
12963
12964         * lib/gai_strerror.c: Use GPL in header.
12965
12966 2005-01-26  Bruno Haible  <bruno@clisp.org>
12967
12968         * modules/javaexec: New file.
12969         * MODULES.html.sh (Java): Add javaexec.
12970
12971 2005-01-26  Bruno Haible  <bruno@clisp.org>
12972
12973         * m4/javaexec.m4: New file, from GNU gettext.
12974
12975 2005-01-26  Bruno Haible  <bruno@clisp.org>
12976
12977         * lib/javaexec.sh.in: New file, from GNU gettext.
12978         * lib/javaexec.h: New file, from GNU gettext.
12979         * lib/javaexec.c: New file, from GNU gettext.
12980
12981 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12982
12983         * modules/lchown (Depends-on): Remove lchown.h
12984
12985 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12986
12987         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
12988         must be defined if the header file was not found, in order
12989         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
12990
12991 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
12992
12993         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
12994         initializers for struct pentry_state.
12995         (__argp_error): Check return value of __asprintf
12996         (__argp_failure): Translate error message
12997
12998         * lib/argp-parse.c: Removed braces around the expansion of N_()
12999
13000 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13001
13002         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
13003         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
13004         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
13005         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
13006         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
13007         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
13008         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
13009         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
13010         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
13011         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
13012         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
13013         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
13014         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
13015         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
13016         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
13017         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
13018         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
13019         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
13020         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
13021         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
13022         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
13023         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
13024         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
13025         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
13026         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
13027         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
13028         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
13029         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
13030         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
13031         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
13032         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
13033         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
13034         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
13035         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
13036         xstrtol.m4, xstrtoumax.m4, yesno.m4:
13037         Use an all-permissive copyright notice, recommended by RMS.
13038
13039 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13040
13041         * modules/chdir-long (Depends-on): Remove mempcpy.
13042
13043 2005-01-21  Jim Meyering  <jim@meyering.net>
13044
13045         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
13046         same value as for Solaris 9.
13047
13048         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
13049         component length.  This included changing the parameter to be
13050         of type `char *' rather than `char const *'.
13051         * lib/chdir-long.h (chdir_long): Update prototype.
13052
13053         * lib/openat.c (fdopendir, fstatat): New functions.
13054         * lib/openat.h: Include headers required for use of DIR and struct
13055         stat.
13056         [AT_SYMLINK_NOFOLLOW]: Define.
13057         (fdopendir, fstatat): Add prototypes.
13058
13059 2005-01-21  Bruno Haible  <bruno@clisp.org>
13060
13061         * modules/classpath: New file.
13062         * MODULES.html.sh (Java): Add classpath.
13063
13064 2005-01-21  Bruno Haible  <bruno@clisp.org>
13065
13066         * lib/classpath.h: New file, from GNU gettext.
13067         * lib/classpath.c: New file, from GNU gettext.
13068
13069 2005-01-20  Simon Josefsson  <jas@extundo.com>
13070
13071         * modules/version-etc-fsf: New file.
13072
13073 2005-01-20  Simon Josefsson  <jas@extundo.com>
13074
13075         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
13076         * lib/version-etc.c: Remove version_etc_copyright.
13077         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
13078         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
13079
13080 2005-01-20  Simon Josefsson  <jas@extundo.com>
13081
13082         * lib/base64.h (isbase64): Add.
13083
13084         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
13085         using a unsigned prototype, don't inline.
13086         (base64_decode): Use it.
13087
13088 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13089
13090         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
13091         it.
13092
13093 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13094
13095         * lib/save-cwd.c (save_cwd): Remove code to support the case
13096         where fchdir is missing or flaky.
13097
13098 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
13101
13102 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13103
13104         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
13105         AC_LIBSOURCES now does this.
13106         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
13107         with new ullong_max module.
13108
13109 2005-01-19  Bruno Haible  <bruno@clisp.org>
13110
13111         * modules/sh-quote: New file.
13112         * MODULES.html.sh (Executing programs): Add sh-quote.
13113
13114 2005-01-19  Bruno Haible  <bruno@clisp.org>
13115
13116         * lib/sh-quote.h: New file, from GNU gettext.
13117         * lib/sh-quote.c: New file, from GNU gettext.
13118
13119 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13120
13121         Merge from coreutils.
13122         * m4/ullong_max.m4: New file.
13123         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
13124         (gl_MACROS): Assume localeconv exists.
13125
13126 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13127
13128         Merge changes from coreutils, as described below in several
13129         changelogs dated today.
13130
13131         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
13132         (O_DIRECTORY): Remove; not needed here, since "." must be
13133         a directory.  All uses removed.
13134         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
13135         universal on Suns, and we also need to test for IRIX.
13136         Revamp code to use 'if' rather than '#if'.
13137         Avoid unnecessary comparison of cwd->desc to 0.
13138
13139         * lib/utimens.c (futimens): Robustify the previous patch, by checking
13140         for known valid error numbers rather than observed invalid ones.
13141
13142 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13143
13144         * modules/ullong_max: New file.
13145
13146         * modules/chdir-long, modules/openat: New files.
13147         * modules/save-cwd (Depends-on): Depend on chdir-long.
13148         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
13149
13150 2005-01-18  Jim Meyering  <jim@meyering.net>
13151
13152         Merge from coreutils.
13153         * m4/chdir-long.m4, m4/openat.m4: New files.
13154         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
13155         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
13156         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
13157         is sane and DOES follow symlinks.  Besides, testing 20 different
13158         systems found no broken chown implementations.
13159         Prompted by a change in rsync's copy of this macro.
13160         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
13161
13162         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
13163
13164         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
13165         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
13166         NULL-means-set-to-current-time semantics.
13167         Remove temporary file immediately, rather than waiting
13168         for configure's at-exit trap code to do it.
13169
13170 2005-01-18  Jim Meyering  <jim@meyering.net>
13171
13172         * lib/version-etc.c (version_etc_copyright): Update copyright date.
13173
13174         * lib/utimens.c (futimens): Account for the fact that futimes
13175         can also fail with errno == ENOSYS or errno == ENOENT.
13176         Patch from Dmitry V. Levin.
13177
13178         Change the name of the robust chdir function from chdir to chdir_long.
13179         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
13180         (restore_cwd): Use chdir_long, not chdir.
13181         * lib/chdir-long.c: Renamed from chdir.c.
13182         * lib/chdir-long.h: Renamed from chdir.h.
13183         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
13184         Hurd.
13185
13186 2005-01-18  Bruno Haible  <bruno@clisp.org>
13187
13188         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
13189         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
13190         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
13191         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
13192         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
13193         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
13194         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
13195         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
13196         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
13197         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
13198         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
13199         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
13200         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
13201         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
13202         Use an all-permissive copyright notice, recommended by RMS.
13203
13204 2005-01-18  Bob Proulx  <bob@proulx.com>
13205
13206         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
13207         simplify offsetof() macro construct to avoid compile failure with
13208         native HP-UX 11.0 ANSI C compiler.
13209
13210 2005-01-17  Bruno Haible  <bruno@clisp.org>
13211
13212         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
13213         redundant because stpncpy.m4 takes care of it.
13214
13215 2005-01-17  Bruno Haible  <bruno@clisp.org>
13216
13217         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
13218
13219 2005-01-17  Bruno Haible  <bruno@clisp.org>
13220
13221         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
13222         used.
13223
13224 2005-01-17  Bruno Haible  <bruno@clisp.org>
13225
13226         * lib/fwriteerror.h (fwriteerror): Change specification to include
13227         fclose.
13228         * lib/fwriteerror.c: Include <stdbool.h>.
13229         (fwriteerror): At the end, close the file stream. Record whether
13230         stdout was already closed.
13231
13232 2005-01-17  Bruno Haible  <bruno@clisp.org>
13233
13234         * lib/execute.c (environ): Declare if needed.
13235         * lib/pipe.c (environ): Likewise.
13236         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
13237
13238 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13239
13240         * modules/argp: Depend on vsnprintf
13241
13242 2005-01-10  Jim Meyering  <jim@meyering.net>
13243
13244         * modules/closeout (Depends-on): Add atexit.
13245
13246 2005-01-06  Bruno Haible  <bruno@clisp.org>
13247
13248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
13249
13250 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13251
13252         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
13253         definitions to be after all include files, to avoid collisions.
13254         Problem reported by Bob Proulx.
13255
13256 2005-01-04  Jim Meyering  <jim@meyering.net>
13257
13258         Changes imported from coreutils.
13259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
13260         as the mkstemp template, use a temporary directory and an
13261         8.3-friendly template to avoid trouble on systems like DJGPP.
13262         Reported by Juan M. Guerrero via Stepan Kasal.
13263         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
13264         close. Remove the temporary directory right away, rather than waiting
13265         for configure's at-exit trap code to do it.
13266         Suggestion from Stepan Kasal.
13267
13268 2005-01-01  Simon Josefsson  <jas@extundo.com>
13269
13270         * gnulib-tool: Print #include directives when --import'ing.
13271
13272 2004-12-28  Simon Josefsson  <jas@extundo.com>
13273
13274         * tests/test-base64.c: Include required header files.  Remove
13275         unused variables.
13276
13277 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13278
13279         * modules/error (Depends-on): Remove gettext.
13280
13281 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13282
13283         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
13284         not needed.  This removes a dependency on the gettext module.
13285         [defined _LIBC]: Do not include <libintl.h>; not needed.
13286
13287 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
13288
13289         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
13290         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
13291
13292 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
13293
13294         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
13295         HAVE_DECL_STRTOLD.
13296
13297 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13298
13299         * modules/getdate (Depends-on): Remove alloca-opt.
13300
13301 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13302
13303         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
13304
13305 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13306
13307         * lib/argp-parse.c: Include <stddef.h>.
13308         (alignof, alignto): New macros.
13309         (parser_init): Don't assume that void * is aligned sufficiently
13310         for struct option.
13311
13312         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
13313         need to extend the stack.
13314         (YYINITDEPTH): New macro, so that the initial stack isn't overly
13315         large.
13316
13317 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13318
13319         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
13320
13321 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13322
13323         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
13324         (2004-10-24) change.  Apparently this was a false alarm.
13325
13326         * modules/getdate: Depend on alloca-opt, not alloca.
13327
13328 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13329
13330         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
13331         Remove now-obsolete comment about AIX.
13332         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
13333         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
13334         (YYMAXDEPTH): New macro.
13335
13336 2004-12-18  Simon Josefsson  <jas@extundo.com>
13337
13338         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
13339
13340 2004-12-18  Bruno Haible  <bruno@clisp.org>
13341
13342         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
13343
13344 2004-12-18  Bruno Haible  <bruno@clisp.org>
13345
13346         * lib/fatal-signal.c (fatal_signals): Make non-const.
13347         (init_fatal_signals): New function.
13348         (uninstall_handlers, install_handlers): Ignore signals that were set to
13349         SIG_IGN.
13350         (at_fatal_signal): Call init_fatal_signals.
13351         (init_fatal_signal_set): Likewise. Ignore signals that were set to
13352         SIG_IGN.
13353         Reported by Paul Eggert.
13354
13355 2004-12-18  Bruno Haible  <bruno@clisp.org>
13356
13357         * doc/alloca.texi: New file.
13358         * doc/alloca-opt.texi: New file.
13359
13360 2004-12-17  Jim Meyering  <jim@meyering.net>
13361
13362         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
13363         Otherwise, install-sh could exit with improper exit status when
13364         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
13365
13366 2004-12-16  Simon Josefsson  <jas@extundo.com>
13367
13368         * tests/test-base64.c: Add license.
13369
13370 2004-12-15  Stepan Kasal  <address@hidden>
13371
13372         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
13373
13374 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13375
13376         * modules/getcwd (Files): Add m4/d-ino.m4.
13377         Suggested by Mark D. Baushke.
13378
13379 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         * lib/getdate.y (textint): New member "negative".
13382         (time_zone_hhmm): New function.
13383         Expect 14 shift-reduce conflicts, not 13.
13384         (o_colon_minutes): New rule.
13385         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
13386         (yylex): Set the "negative" member of signed numbers.
13387
13388 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         * doc/getdate.texi (Time of day items, Time zone items):
13391         Describe new formats +00:00, UTC+00:00.
13392
13393 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13394
13395         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
13396         spurious "-l"s.  Problem reported by Stepan Kasal.
13397
13398 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
13399
13400         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
13401         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
13402
13403 2004-12-04  Simon Josefsson  <jas@extundo.com>
13404
13405         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
13406         Vandoorselaere <yoann@prelude-ids.org>.
13407
13408 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13409
13410         Changes imported from coreutils.
13411         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
13412         exist.
13413         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
13414
13415 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13416
13417         Changes imported from coreutils.
13418         * lib/hard-locale.c: Assume <locale.h> exists.
13419         Include "strdup.h".
13420         (GLIBC_VERSION): New macro.
13421         (hard_locale): Assume setlocale exists.
13422         Rewrite to avoid #ifdef.
13423         Use strdup rather than malloc + strcpy.
13424         * lib/human.c: Assume <locale.h> exists.
13425         (human_readable): Assume localeconv exists.
13426
13427 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
13428
13429         * modules/hard-locale (Depends-on): Add strdup.
13430
13431 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
13432
13433         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
13434         convert T2, not T.  (Imported from libc.)
13435
13436 2004-11-30  Simon Josefsson  <jas@extundo.com>
13437
13438         * modules/restrict (License): Change to LGPL.
13439
13440 2004-11-30  Simon Josefsson  <jas@extundo.com>
13441
13442         * m4/restrict.m4: Add copyright and copying conditions.
13443
13444 2004-11-30  Simon Josefsson  <jas@extundo.com>
13445
13446         * m4/base64.m4: New file.
13447
13448 2004-11-30  Simon Josefsson  <jas@extundo.com>
13449
13450         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
13451         base64.
13452
13453         * tests/test-base64.c: New file.
13454
13455         * modules/base64: New file.
13456
13457 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13458
13459         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13460         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
13461
13462         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
13463
13464 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
13467         (__getcwd.c): Don't restore errno; glibc doesn't.
13468         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
13469         first, falling back to our code only if its results look suspicious.
13470         Ensure that the resulting buffer is only as large as necessary.
13471
13472         * lib/readutmp.c: Include readutmp.h first.
13473         Include <errno.h>, since readutmp.h no longer does that.
13474         * lib/readutmp.h: Don't include <errno.h>,
13475         <sys/param.h>, <time.h>; not needed to establish interface.
13476         (errno): Remove decl.
13477         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
13478         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
13479         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
13480
13481 2004-11-28  Simon Josefsson  <jas@extundo.com>
13482
13483         * lib/base64.h, base64.c: New file.
13484
13485 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13486
13487         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
13488
13489 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
13490
13491         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
13492         (Depends-on): Remove pathmax, same.  Add mempcpy.
13493         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
13494         (Makefile.am): Append getcwd.h to lib_SOURCES.
13495         (Include): Add getcwd.h.
13496         (Maintainer): Change from Jim Meyering to "all, glibc",
13497         since getdate now uses intended-for-glibc code.
13498         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
13499         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
13500
13501 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13502
13503         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
13504         HP's ANSI C compiler.
13505         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
13506         Declaring int functions causes warnings on some modern systems and
13507         shouldn't be needed to compile on ancient ones.
13508         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
13509         defined.
13510
13511         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
13512         with the following changes.
13513         (__set_errno): Parenthesize properly.
13514         Include <stdbool.h>.
13515         (MIN, MAX, MATCHING_INO): New macros.
13516         (__getcwd): Define with prototype, not K&R form.
13517         Use heuristics to allocate default buffer on stack if possible.
13518         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
13519         behavior, and to avoid the PATH_MAX limit when computing
13520         ../../../../...
13521         Use MATCHING_INO to compare inode number to file.
13522         Check for arithmetic overflow in size calculations.
13523         Fix bug in reallocation of dot array that caused getcwd to fail
13524         on directories nested deeper than 75.
13525         Be more careful about saving errno on error.
13526         Do not use realloc; use only free+malloc, as this is a bit
13527         more flexible and avoids a needless copy operation.
13528         Do not inspect st_dev and st_ino for symbolic links; POSIX
13529         doesn't specify the latter.
13530         Check for closedir errors.
13531         Avoid needless casts.
13532         Use "#ifdef weak_alias" around weak_alias, to be like other
13533         glibc code.
13534         The following changes to getcwd.c have effect only when used in
13535         gnulib; they have no effect inside glibc proper.
13536         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
13537         as alloca isn't used.
13538         (alloca, __alloca): Likewise.
13539         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
13540         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
13541         unconditionally, as gnulib assumes C89 or better.
13542         Do not include <sys/param.h>.
13543         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
13544         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
13545         better.
13546         (NULL) [!defined NULL]: Remove; we assume C89 or better.
13547         Include <dirent.h> in a way that is compatible with modern Autoconf.
13548         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
13549         New macros, if not already defined.
13550         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
13551         Use "_LIBC", not "defined _LIBC", for consistency.
13552         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
13553         a mempcpy module.
13554         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
13555         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
13556         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
13557         credit only to Jim Meyering and adjust the copyright dates.
13558         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
13559         <stdlib.h>, <unistd.h>, "pathmax.h".
13560         Instead, include "xgetcwd.h" (first) and "getcwd.h".
13561         (INITIAL_BUFFER_SIZE): Remove.
13562         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
13563
13564 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13565
13566         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
13567         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
13568         Use the _ONCE methods, for efficiency.
13569         Check for fcntl.h.  In test program, include <errno.h>
13570         and <fcntl.h> if available.  Remove old K&R cruft from
13571         test program.  Check for common errors in GNU/Linux,
13572         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
13573         don't do AC_LIBOBJ, as that's getcwd.m4's job.
13574         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
13575         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
13576         name accordingly.
13577         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
13578         accommodate new getcwd.c.
13579         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
13580         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
13581         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
13582         that's all we need now.
13583
13584 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13585
13586         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
13587         argp-parse.c depends on getopt internals, that means we should
13588         always use our getopt, to be on the safe side.
13589         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
13590         order not to spoil the result of an eventual previous invocation
13591         of gl_GETOPT_SUBSTITUTE.
13592
13593 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13594
13595         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
13596         redefinition warnings. To avoid them, include the defines
13597         in `#if !defined __need_getopt ... #endif'. The only place
13598         where __getopt_argv_const is used is in definitions
13599         of getopt_long and getopt_long_only below, which are as well
13600         protected by `#ifndef __need_getopt'.
13601         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
13602         __need_getopt after including <stdio.h> and <unistd.h> These
13603         headers might have defined it.
13604
13605 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13606
13607         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
13608
13609 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
13612         (futimens): New function, which uses futimes if available.
13613         (futimens, utimens): Support timespec==NULL, with same semantics
13614         as utime and utimens.
13615         * lib/utimens.h (futimens): New decl.
13616
13617 2004-11-23  Jim Meyering  <jim@meyering.net>
13618
13619         * lib/getopt_.h: Remove trailing blanks.
13620
13621 2004-11-23  Jim Meyering  <jim@meyering.net>
13622
13623         * lib/__fpending.c: Add comment.
13624
13625 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
13626
13627         * modules/canonicalize (Depends-on): Add xreadlink.
13628         Problem reported by James Youngman.
13629
13630 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13631
13632         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
13633         New macros.
13634         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
13635         optopt): Use them instead of invoking ## directly; otherwise, the
13636         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
13637
13638 2004-11-19  Bruno Haible  <bruno@clisp.org>
13639
13640         * lib/strtok_r.c: Move comments from here...
13641         * lib/strtok_r.h: ... to here.
13642
13643 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13644
13645         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
13646         implementations that mishandle size_t overflow.
13647
13648 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13649
13650         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
13651         might fail.  Problem reported by Yoann Vandoorselaere.
13652         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
13653         implementations that mishandle size_t overflow.
13654
13655 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         * modules/canon-host (Depends-on): Add strdup.
13658
13659 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13660
13661         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
13662
13663 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13664
13665         * lib/canon-host.c: Include "strdup.h".
13666         (canon_host): Use getaddrinfo if available, so that IPv6 works.
13667         Use strdup instead of malloc/strcpy to duplicate strings.
13668
13669         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
13670         (human_space_before_unit): New constant.
13671         * lib/human.c (human_readable): Support it.
13672
13673         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
13674         (xgetcwd): Set errno correctly when failing.
13675         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
13676         the failure is actually due to a PATH_MAX problem.
13677
13678         Further getopt changes to make it more likely that glibc will
13679         buy the changes back.
13680         * lib/getopt.c (POSIXLY_CORRECT): New constant.
13681         (getopt): Use it, so to preserve glibc semantic
13682         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
13683         when compiling for libc.
13684         * lib/getopt_.h (__getopt_argv_const): Bring it back.
13685         (getopt_long, getopt_long_only): Use it.
13686
13687         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
13688         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
13689         (getopt): Argv is now char * const *, as per standard.
13690         (_getopt_internal_r, _getopt_internal): Argv is now char **,
13691         not char *__getopt_argv_const *.
13692         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
13693         _getopt_long_only_r): Likewise.
13694         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
13695         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
13696         _getopt_long_r, _getopt_long_only_r): Likewise.
13697         * lib/getopt_.h (__getopt_argv_const): Remove.
13698         (getopt): Argv is now char * const *, as per standard.
13699
13700         * lib/getdate.y (tORDINAL): New token.
13701         (day, relunit): Allow it for relative times.
13702         (relative_time_table): Use tORDINAL for ordinals.
13703
13704 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13705
13706         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
13707         Document that "second" isn't allowed as an ordinal number.
13708
13709 2004-11-16  Jim Meyering  <jim@meyering.net>
13710
13711         * modules/closeout (Depends-on): Add fpending.
13712
13713 2004-11-15  Jim Meyering  <jim@meyering.net>
13714
13715         * lib/closeout.c: Include "__fpending.h" once again.
13716         Include <stdbool.h>.
13717         (close_stdout): Don't fail just because stdout was closed initially,
13718         since some programs don't write to stdout in the normal course of
13719         operation (other than --version and --help), and we don't want this
13720         function to make e.g. `touch file >&-' fail.
13721         But do fail if it was closed and someone has tried to write to it.
13722         E.g., `printf foo >&-' must fail.
13723
13724 2004-11-13  Jim Meyering  <jim@meyering.net>
13725
13726         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
13727
13728 2004-11-12  Simon Josefsson  <jas@extundo.com>
13729
13730         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
13731         small doc fix is still pending.
13732
13733 2004-11-11  Simon Josefsson  <jas@extundo.com>
13734
13735         * modules/strtok_r: New file.
13736
13737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13738         strtok_r.
13739
13740 2004-11-11  Simon Josefsson  <jas@extundo.com>
13741
13742         * m4/strtok_r.m4: New file.
13743
13744         * m4/getopt.m4: Replace opterr.
13745
13746 2004-11-11  Simon Josefsson  <jas@extundo.com>
13747
13748         * lib/strtok_r.h, strtok_r.c: New file.
13749
13750 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13751
13752         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
13753         of replacing opterr, getopt, etc.  This should handle the
13754         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
13755
13756 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13757
13758         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
13759         we can stop lying to compilers about the constness of argv when we
13760         are compiled outside glibc.
13761         (getopt, getopt_long, getopt_long_only): Use it.
13762         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
13763         _getopt_internal, getopt): Likewise.
13764         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
13765         _getopt_long_only_r): Likewise.
13766         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
13767         _getopt_long_r, _getopt_long_only_r): Likewise.
13768
13769         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
13770         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
13771         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
13772         the other external symbols.
13773         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
13774         declaration, since the above renaming now works around collisions.
13775
13776 2004-11-11  Jim Meyering  <jim@meyering.net>
13777
13778         * lib/linebreak.c: Remove trailing blanks.
13779         * lib/alloca_.h: Likewise.
13780         * lib/acosl.c: Likewise.
13781         * lib/euidaccess.c: Likewise.
13782         * lib/allocsa.h: Likewise.
13783
13784 2004-11-10  Simon Josefsson  <jas@extundo.com>
13785
13786         * m4/getaddrinfo.m4: New file.
13787
13788 2004-11-10  Simon Josefsson  <jas@extundo.com>
13789
13790         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
13791
13792 2004-11-10  Simon Josefsson  <jas@extundo.com>
13793
13794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13795         getaddrinfo.
13796
13797         * modules/getaddrinfo: New file.
13798
13799 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
13802
13803 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13804
13805         * lib/mktime.c (SHR): New macro, which is a portable
13806         substitute for >> that should work even on Crays.
13807         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
13808         Problem reported by Mark D. Baushke in
13809         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
13810         * lib/getdate.y (SHR): Likewise.
13811         (tm_diff): Use it.
13812         * lib/strftime.c (SHR): Likewise.
13813         (tm_diff): Use it.
13814         * lib/quotearg.c (struct quoting_options): Use unsigned int for
13815         quote_these_too, so that right shifts are well defined.  All uses
13816         changed.
13817
13818 2004-11-10  Jim Meyering  <jim@meyering.net>
13819
13820         Ensure that no close failure goes unreported.
13821         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
13822         return early when it seems there's nothing to flush.
13823         Don't include __fpending.h.
13824
13825 2004-11-10  Jim Meyering  <jim@meyering.net>
13826
13827         * modules/closeout (Depends-on): Remove fpending.
13828
13829 2004-11-10  Jim Meyering  <jim@meyering.net>
13830
13831         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
13832
13833 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13834
13835         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
13836         gl_FUNC_STRFTIME.
13837         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
13838         and AC_REQUIRE when possible, to avoid duplicate checks.
13839         Check for <wchar.h>.
13840
13841 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13842
13843         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
13844
13845 2004-11-09  Bruno Haible  <bruno@clisp.org>
13846
13847         * m4/sockpfaf.m4: New file.
13848
13849 2004-11-05  Bruno Haible  <bruno@clisp.org>
13850
13851         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
13852         Reported by Mark D. Baushke <mdb@cvshome.org>.
13853
13854 2004-11-04  Bruno Haible  <bruno@clisp.org>
13855
13856         2004-09-11  Bruno Haible  <bruno@clisp.org>
13857                 * allocsa.valgrind: New file.
13858         2004-02-06  Bruno Haible  <bruno@clisp.org>
13859                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
13860                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
13861                 Reported by Christopher Seip <chris.seip@hp.com>.
13862
13863 2004-11-04  Bruno Haible  <bruno@clisp.org>
13864
13865         * modules/allocsa (Files): Add lib/allocsa.valgrind.
13866         (Makefile.am): Distribute it.
13867
13868 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13869
13870         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
13871         with errno == ERANGE if the buffer is too small.
13872         Problem reported by Mark D. Baushke.
13873
13874 2004-11-03  Albert Chin  <china@thewrittenword.com>
13875             Paul Eggert  <eggert@cs.ucla.edu>
13876
13877         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
13878         equivalent, substitute $ac_type for equivalent type rather than
13879         blindly using uint32_t *always* which won't work if uint32_t is not
13880         available.  Define _UINT32_T to work around typedef of uint32_t if
13881         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
13882         2.5.1.
13883
13884 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13885
13886         * m4/jm-macros.m4: Sync from coreutils.
13887         (gl_MACROS): Check for mbrlen, for pathchk.
13888         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
13889
13890 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13891
13892         * lib/xreadlink.c (MAXSIZE): New macro.
13893         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
13894         size does not exceed MAXSIZE.  Avoid cast.
13895         As suggested by Mark D. Baushke in
13896         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
13897         if readlink fails with buffer size just under MAXSIZE, try again
13898         with MAXSIZE.
13899
13900 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13901
13902         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
13903
13904 2004-11-02  Derek R. Price  <derek@ximbiot.com>
13905         and  Paul Eggert  <eggert@cs.ucla.edu>
13906
13907         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
13908         (get_date): Overparenthesize to avoid GCC warning.
13909
13910 2004-11-02  Bruno Haible  <bruno@clisp.org>
13911
13912         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
13913         returns void.
13914
13915 2004-11-02  Bruno Haible  <bruno@clisp.org>
13916
13917         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
13918         function returns void.
13919
13920 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13921
13922         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
13923         fflush_unlocked, flockfile, funlockfile, funlockfile,
13924         fputs_unlocked, putc_unlocked.
13925
13926 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13927
13928         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
13929         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
13930         already declared.
13931
13932 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         * modules/getdate (Files): Add doc/getdate.texi.
13935         (Depends-on): Add setenv, xalloc.
13936
13937 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13938
13939         * lib/getdate.y: Add support for TZ="foo" within a date string.
13940         Fix some bugs near time_t boundaries.  Reject dates with
13941         out-of-range components, e.g., "Sept 31".
13942         Include <stdlib.h>, "setenv.h", "xalloc.h".
13943         (ISDIGIT_LOCALE): Remove; unused.
13944         Note that the TZ and time functions used here are not reentrant.
13945         (mktime_ok, get_tz): New functions.
13946         (TZBUFSIZE): New constant.
13947         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
13948         This requires that we sometimes generate our own TZ="XXX..." setting.
13949
13950 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13951
13952         * doc/getdate.texi: New file, from coreutils with modifications for
13953         the new TZ parsing.
13954
13955 2004-10-27  Derek R. Price  <derek@ximbiot.com>
13956
13957         * lib/mktime.c (not_equal_tm): Remove redundant check.
13958
13959 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13960
13961         * modules/regex (lib_SOURCES): Add regex.c.
13962         Reported by James Youngman in
13963         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
13964
13965 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13966
13967         * lib/getdate.y: Use Bison 1.875 features, and some minor
13968         code cleanups.  This change does not affect semantics.
13969         Don't include <stdlib.h>; no longer needed.
13970         Don't include unlocked-io.h; only the "#if TEST" code uses
13971         stdio, and performance isn't crucial there.
13972         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
13973         Bison 1.875 features as described below.
13974         All uses of "PC." replaced by "pc->".
13975         (YYSTYPE): Add a forward declaration.
13976         (yylex, yyerror): Use full prototypes in forward decls.
13977         Use "%pure-parser" rather than obsolescent "%pure_parser".
13978         Use %parse-param and %lex-param instead of obsolescent
13979         YYPARSE_PARAM and YYLEX_PARAM.
13980         (meridian_table, month_and_day_table, time_units_table,
13981         relative_time_table, time_zone_table, military_table,
13982         lookup_zone, lookup_word, get_date):
13983         Use NULL instead of 0 where appropriate.
13984         (to_hour): Avoid abort (), to avoid a dependency on
13985         stdlib.h.
13986         (yyerror, yylex): Now accepts parser_control * arg.
13987         (main) [TEST]: Use '\0' rather than 0 for char.
13988
13989 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13990
13991         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
13992
13993 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13994
13995         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
13996         It's now the caller's responsibility to handle the case where
13997         !HAVE_GETPAGESIZE && !defined getpagesize.
13998
13999         * lib/mktime.c (leapyear): Arg is long int, not int.
14000
14001 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
14002
14003         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
14004
14005 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
14006
14007         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
14008         missing.  Problem reported by James Youngman.
14009
14010 2004-10-16  Simon Josefsson  <jas@extundo.com>
14011
14012         * gnulib-tool: Fix comments.  Fix parse problem.
14013         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
14014
14015 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14016
14017         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
14018         implementation of getopt_long.  Problem reported by Alexander Taler in:
14019         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
14020
14021 2004-10-15  Bruno Haible  <bruno@clisp.org>
14022
14023         * gnulib-tool: Untabify. Initialize supplied_libname.
14024         (func_usage): More homogenous output.
14025         (func_modules_transitive_closure, func_modules_to_filelist,
14026         func_emit_lib_Makefile_am): New functions.
14027         (func_import): New function, extracted from big case statement. Use
14028         func_get_license, func_modules_transitive_closure,
14029         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
14030         opt_lgpl. Don't use test -a, as it's not portable.
14031         (func_create_testdir): Use func_modules_transitive_closure,
14032         func_modules_to_filelist, func_emit_lib_Makefile_am.
14033
14034 2004-10-15  Bruno Haible  <bruno@clisp.org>
14035
14036         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
14037
14038 2004-10-15  Bruno Haible  <bruno@clisp.org>
14039
14040         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
14041         the portions belonging to each module.
14042         Suggested by Derek Robert Price <derek@ximbiot.com>.
14043
14044 2004-10-12  Simon Josefsson  <jas@extundo.com>
14045
14046         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
14047         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
14048         to real functions.
14049
14050 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14051
14052         * modules/vsnprintf: New file.
14053
14054 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14055
14056         * m4/vsnprintf.m4: New file.
14057
14058 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14059
14060         * lib/vsnprintf.h: New file.
14061         * lib/vsnprintf.c: New file.
14062
14063 2004-10-11  Bruno Haible  <bruno@clisp.org>
14064
14065         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
14066         vsnprintf.
14067
14068 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14069
14070         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
14071
14072 2004-10-07  Bruno Haible  <bruno@clisp.org>
14073
14074         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
14075         fits into the provided buffer.
14076
14077 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         * lib/diacrit.c, diacrit.h: Add GPL notice.
14080
14081         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
14082         notice.
14083         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
14084         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
14085         This avoids a potential constant-folding bug.
14086
14087 2004-10-05  Bruno Haible  <bruno@clisp.org>
14088
14089         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
14090         for the declaration of strsep.
14091
14092 2004-10-05  Bruno Haible  <bruno@clisp.org>
14093
14094         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
14095
14096 2004-10-04  Simon Josefsson  <jas@extundo.com>
14097
14098         * modules/memmem: New file.
14099         * tests/test-memmem.c: New file.
14100         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
14101
14102 2004-10-04  Simon Josefsson  <jas@extundo.com>
14103
14104         * m4/memmem.m4: New file.
14105
14106 2004-10-04  Simon Josefsson  <jas@extundo.com>
14107
14108         * lib/memmem.h: New file.
14109         * lib/memmem.c: New file, taken from glibc.
14110
14111 2004-10-04  Simon Josefsson  <jas@extundo.com>
14112
14113         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
14114         '#ifdef USE_UNLOCKED_IO'.
14115
14116 2004-10-04  Simon Josefsson  <jas@extundo.com>
14117
14118         * config/srclist.txt: Add memmem from glibc.
14119
14120 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14121
14122         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
14123
14124         * modules/argmatch, modules/argp, modules/closeout, modules/error,
14125         modules/exclude, modules/getdate, modules/getline,
14126         modules/getndelim2, modules/getpass, modules/getpass-gnu,
14127         modules/getusershell, modules/linebuffer, modules/md5,
14128         modules/mountlist, modules/posixtm, modules/readtokens,
14129         modules/readutmp, modules/regex, modules/sha1,
14130         modules/version-etc, modules/yesno:
14131         Remove dependency on unlocked-io.
14132
14133 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
14136
14137         * m4/unlocked-io.m4: Add copyright notice.
14138         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
14139
14140 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14141
14142         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
14143         * lib/xmalloc.c (xmemdup): Likewise.
14144         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
14145         XFREE): Remove these long-obsolescent macros.
14146         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
14147         * lib/xstrdup.c: Remove.
14148
14149         * lib/regex.c (re_comp): Cast gettext return value to char *,
14150         Problem reported by Martin Neitzel via Mark D. Baushke.
14151
14152 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
14153
14154         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
14155         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
14156         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
14157         regex.c, sha1.c, version-etc.c, yesno.c:
14158         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
14159         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
14160         the includer's responsibility.
14161
14162         Sync from coreutils.
14163
14164         * lib/modechange.c (mode_compile): Don't decrement a pointer that
14165         points to the start of a string, as the C Standard says the
14166         resulting behavior is undefined.
14167
14168         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
14169         simple -> simple_backups, numbered_existing ->
14170         numbered_existing_backups, numbered -> numbered_backups
14171         to avoid shadowing problems.  All uses changed.
14172         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
14173         * lib/backupfile.c (check_extension, numbered_backup):
14174         Rename locals to avoid shadowing 'basename'.
14175         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
14176         once.
14177
14178         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
14179         * lib/.cvsignore: Add getopt.h.
14180
14181 2004-10-04  Bruno Haible  <bruno@clisp.org>
14182
14183         * modules/README: New file.
14184         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
14185         not a module.
14186
14187 2004-10-02  Jim Meyering  <jim@meyering.net>
14188
14189         * lib/dirfd.h, getpagesize.h: Add copyright notice.
14190
14191 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14192
14193         * modules/strsep: New file.
14194
14195 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14196
14197         * m4/strsep.m4: New file.
14198
14199 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14200
14201         * lib/strsep.h: New file.
14202         * lib/strsep.c: New file.
14203
14204 2004-10-01  Simon Josefsson  <jas@extundo.com>
14205
14206         * lib/snprintf.c (snprintf): Handle size==0.
14207
14208 2004-10-01  Simon Josefsson  <jas@extundo.com>
14209             Bruno Haible  <bruno@clisp.org>
14210
14211         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
14212         (snprintf): Declare 'args'.
14213
14214 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         * lib/snprintf.c: Remove comments as to why each header is needed.
14217
14218 2004-10-01  Bruno Haible  <bruno@clisp.org>
14219
14220         * MODULES.html.sh: Add strsep.
14221
14222 2004-09-30  Simon Josefsson  <jas@extundo.com>
14223
14224         * modules/snprintf: New file.
14225
14226 2004-09-30  Simon Josefsson  <jas@extundo.com>
14227
14228         * m4/snprintf.m4: New file.
14229
14230 2004-09-30  Simon Josefsson  <jas@extundo.com>
14231
14232         * lib/snprintf.h, lib/snprintf.c: New files.
14233
14234 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14235
14236         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
14237         (hol_entry_help): Never translate an empty string.
14238         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
14239         * lib/argp.h (OPTION_NO_TRANS): New option.
14240
14241 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14242
14243         * modules/argp (Maintainer): Replace Simon Josefsson
14244         by Sergey Poznyakoff.
14245
14246 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14247
14248         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
14249         changes merged back into glibc.
14250
14251 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
14252
14253         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
14254
14255 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
14256
14257         * lib/xvasprintf.c: Include xalloc.h.
14258         (xvasprintf): Use xalloc_die, not xmalloc_die.
14259
14260 2004-09-29  Bruno Haible  <bruno@clisp.org>
14261
14262         * modules/alloca-opt: New file, derived from modules/alloca.
14263         * modules/allocsa: Depend on alloca-opt instead of alloca.
14264         * modules/setenv: Likewise.
14265         * modules/vasnprintf: Likewise.
14266         * MODULES.html.sh: Add alloca-opt.
14267
14268 2004-09-28  Simon Josefsson  <jas@extundo.com>
14269
14270         * gnulib-tool: New parameter --lgpl, to asseert that modules are
14271         LGPL, and to replace license template from GPL to LGPL.
14272
14273 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14274
14275         * modules/dummy: Change license to LGPL.
14276
14277 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
14278
14279         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
14280
14281 2004-09-24  Simon Josefsson  <jas@extundo.com>
14282
14283         * modules/minmax (License): Change from GPL to LGPL.
14284
14285 2004-09-23  Simon Josefsson  <jas@extundo.com>
14286
14287         * gnulib-tool (--import): Typo.
14288
14289 2004-09-23  Simon Josefsson  <jas@extundo.com>
14290
14291         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
14292
14293 2004-09-22  Bruno Haible  <bruno@clisp.org>
14294
14295         * modules/*: Add 'License' field.
14296         * gnulib-tool: Accept --extract-license option.
14297         (func_get_license): New function.
14298
14299 2004-09-21  Bruno Haible  <bruno@clisp.org>
14300
14301         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
14302         Reported by Simon Josefsson.
14303
14304 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14305
14306         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
14307         gl_AC_TYPE_LONG_LONG.
14308
14309 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14310
14311         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
14312
14313 2004-09-18  Simon Josefsson  <jas@extundo.com>
14314         and  Paul Eggert  <eggert@cs.ucla.edu>
14315
14316         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
14317         calls with autoreconf.  Define GL_LIB.
14318
14319 2004-09-14  Karl Berry  <karl@gnu.org>
14320
14321         * config/srclist.txt: unsync setenv.c, sigh.
14322
14323 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14324
14325         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
14326         Problem reported by Bruno Haible in:
14327         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
14328
14329 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14330
14331         * config/srclist.txt: Comment out argp-pvh.c.
14332
14333 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14334
14335         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
14336         in case some system header has #define'd it.  Problem reported by
14337         Soeren D. Schulze in
14338         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
14339
14340 2004-09-09  Karl Berry  <karl@gnu.org>
14341
14342         * regex.[ch]: delete from the root.  These were supposed to be
14343                 synced with emacs cvs, but this has not happened for about
14344                 a year, and anyway nothing else uses emacs regex.[ch].
14345                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
14346                 lib/regex[.ch] is untouched.
14347
14348 2004-09-09  Bruno Haible  <bruno@clisp.org>
14349
14350         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
14351
14352 2004-09-09  Bruno Haible  <bruno@clisp.org>
14353
14354         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
14355         modifications.
14356         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
14357
14358 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
14359
14360         * modules/xvasprintf: New file.
14361         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
14362
14363 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
14364
14365         * lib/xvasprintf.h: New file.
14366         * lib/xvasprintf.c: New file.
14367         * lib/xasprintf.c: New file.
14368
14369 2004-09-08  Bruno Haible  <bruno@clisp.org>
14370
14371         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
14372
14373 2004-09-08  Bruno Haible  <bruno@clisp.org>
14374
14375         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
14376         length is > INT_MAX.
14377         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
14378         more.
14379
14380 2004-09-08  Bruno Haible  <bruno@clisp.org>
14381
14382         * lib/stdint_.h: New file, taken from GNU clisp.
14383
14384 2004-09-08  Bruno Haible  <bruno@clisp.org>
14385             Oskar Liljeblad  <oskar@osk.mine.nu>
14386
14387         * modules/stdint: New file.
14388         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
14389
14390 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14391
14392         Import from coreutils.
14393         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
14394         strings on unbounded length.  alloca's performance benefits aren't
14395         that important here.
14396         (V_STRDUP): Remove.
14397         (parse_with_separator): New function, with most of the internals
14398         of the old parse_user_spec.  Allow user to omit both user and group,
14399         for compatibility with FreeBSD.
14400         Clone only the user name, not the entire spec.
14401         Do not set *uid, *gid unless entirely successful.
14402         Avoid memory leak in some failing cases.
14403         Fix regression for USER.GROUP reported by Dmitry V. Levin in
14404         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
14405         (parse_user_spec): Rewrite to use parse_with_separator.
14406
14407 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         * modules/userspec: Don't depend on alloca.
14410
14411 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
14412
14413         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
14414
14415 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
14416
14417         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
14418         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
14419         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
14420
14421 2004-08-16  Simon Josefsson  <jas@extundo.com>
14422
14423         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
14424         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
14425         Add --dry-run for --import.
14426         Let user provided command line parameters override configure.ac
14427         settings.
14428
14429 2004-08-12  Simon Josefsson  <jas@extundo.com>
14430
14431         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
14432         as discussed with Paul Eggert in threads rooted at
14433         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
14434         and
14435         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
14436         Before, the test was empty, and relied on ELIDE_CODE in source
14437         code.)
14438         (gl_PREREQ_GETOPT): New macro.
14439         (gl_GETOPT): Use them.
14440
14441 2004-08-12  Simon Josefsson  <jas@extundo.com>
14442
14443         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
14444         * lib/getopt_.h: Renamed from getopt.h.
14445
14446 2004-08-12  Simon Josefsson  <jas@extundo.com>
14447
14448         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
14449         Change default library name from libfoo to libgnu.
14450         Now, if you have a configure.ac that says:
14451                 gl_SOURCE_BASE(gl)
14452                 gl_M4_BASE(gl/m4)
14453                 gl_MODULES(error getopt etcetera)
14454                 gl_INIT
14455         you can import all you need by running:
14456                 ../gnulib/gnulib-tool --import
14457
14458         * modules/getopt (Files): Rename getopt.h to getopt_.h.
14459         (Makefile.am): Rewrite, use logic from argz.
14460         (Include): Use <getopt.h> instead of "getopt.h".
14461
14462 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14463
14464         * modules/argp (Files): Add m4/unlocked-io.m4.
14465         (Depends-on): Add extensions.
14466
14467 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14468
14469         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
14470         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
14471         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
14472         Check for program_invocation_name, program_invocation_short_name,
14473         flockfile, funlockfile, features.h, _getopt_long_only_r.
14474
14475 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14476
14477         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
14478         its complicated substitute.
14479         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
14480         and program_invocation_name.
14481         (__argp_basename) [!_LIBC]: Remove; the only use was
14482         replaced by its body.
14483         (__argp_short_program_name): Change condition from
14484         !defined __argp_short_program_name to
14485         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
14486         to match argp-namefrob.h.
14487         (__argp_failure): Don't assume strerror_r returns char *.
14488         * lib/argp-parse.c (N_): Define unconditionally.
14489         (argp_default_options): Fill out initializers with 0 to avoid
14490         gcc warnings.
14491
14492 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14493
14494         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
14495         getopt1.c.
14496
14497 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         Merge from coreutils.
14500
14501         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
14502
14503         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
14504         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
14505
14506 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14507
14508         Merge from coreutils.
14509
14510         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
14511         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
14512         for Reliant Unix 5.43.
14513
14514         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
14515         (union fooround): Use uintmax_t, not long int.
14516         The rest is a merge from libc:
14517         [defined _LIBC]: Include <shlib-compat.h>.
14518         (_obstack) [defined _LIBC]: Remove after 2.3.4.
14519
14520         * lib/settime.c (settime): Recode to avoid warning with
14521         Sun Forte C 6U2.
14522
14523         * lib/strverscmp.c: Convert to UTF-8.
14524
14525 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14526
14527         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
14528         m4/uintmax_t.m4.
14529
14530 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14531
14532         * modules/xalloc-die: New file.
14533         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
14534
14535         * modules/md5 (Files): Add m4/uint32_t.m4.
14536         * modules/sha1: Renamed from modules/sha.
14537         (Files):
14538         Rename lib/sha.h to lib/sha1.h.
14539         Rename lib/sha.c to lib/sha1.c.
14540         Rename m4/sha.m4 to m4/sha1.m4.
14541         (lib_SOURCES): Likewise.
14542         (configure.ac): Rename gl_SHA to gl_SHA1.
14543         (Include): sha.h -> sha1.h.
14544
14545 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14546
14547         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
14548         * m4/sha1.m4: Renamed from sha.m4.
14549         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
14550
14551 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
14552
14553         * lib/obstack.h (obstack_empty_p):
14554         Don't assume that chunk->contents is suitably aligned.
14555         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
14556         Likewise. Problem reported by Benno in
14557         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
14558
14559         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
14560         readable.  This could be improved further but it'd take some work.
14561
14562 2004-08-08  Simon Josefsson  <jas@extundo.com>
14563
14564         * modules/xgethostname (Depends-on): Remove exit and error (not
14565         used).
14566
14567         * modules/getpass-gnu: Add getpass.h.
14568         (Depends-on): Add stdbool.
14569         * modules/getpass: Add getpass.h.
14570
14571 2004-08-08  Simon Josefsson  <jas@extundo.com>
14572
14573         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
14574         Check getpass declaration.
14575
14576 2004-08-08  Simon Josefsson  <jas@extundo.com>
14577
14578         * lib/xgethostname.c: Don't include error.h (not used).
14579
14580         * lib/getpass.h: Add.
14581         * lib/getpass.c: Include getpass.h first.
14582
14583 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14584
14585         * lib/xalloc-die.c: New file.
14586         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
14587         All uses removed.
14588         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
14589         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
14590         xalloc-die.c.
14591         (_, N_, xalloc_die): Move to xalloc-die.c.
14592         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
14593         so that we needn't mess with xalloc_msg_memory_exhausted.
14594
14595         * lib/sha1.h: Renamed from sha.h.
14596         (SHA1_H): Renamed from _SHA_H.
14597         (sha1_ctx): Renamed from sha_ctx.
14598         (sha1_init_ctx): Renamed from sha_init_ctx.
14599         (sha1_process_block): Renamed from sha_process_block.
14600         (sha1_process_bytes): Renamed from sha_process_bytes.
14601         (sha1_finish_ctx): Renamed from sha_finish_ctx.
14602         (sha1_read_ctx): Renamed from sha_read_ctx.
14603         (sha1_stream): Renamed from sha_stream.
14604         (sha1_buffer): Renamed from sha_buffer.
14605         * lib/sha1.c: Likewise; renamed from sha.c.
14606         Do not include <sys/types.h>.
14607         Include <stddef.h> rather than <stdlib.h>.
14608
14609 2004-08-08  Bruno Haible  <bruno@clisp.org>
14610
14611         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
14612         FILESYSTEM_PREFIX_LEN.
14613         * lib/progreloc.c: Likewise.
14614         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
14615
14616 2004-08-06  Simon Josefsson  <jas@extundo.com>
14617
14618         * modules/progname (Depends-on): Don't depend on stdbool.
14619
14620 2004-08-06  Simon Josefsson  <jas@extundo.com>
14621
14622         * modules/getsubopt: New file.
14623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14624         getsubopt.
14625
14626 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14627
14628         More merge from coreutils.
14629
14630         * m4/utimens.m4, m4/utimecmp.m4: New files.
14631         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
14632         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
14633         prereq.m4, sha.m4: Import changes from coreutils.
14634
14635 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14636
14637         More merge from coreutils.
14638         * modules/raise, modules/readtokens0, modules/utimens:
14639         * modules/utimecmp, module/xnanosleep: New files.
14640         * modules/strftime: Add lib/strftime.h.
14641         Change include from <time.h> to "strftime.h".
14642         * modules/yesno: Add lib/yesno.h.
14643         * modules/backupfile: Remove lib/addext.c.
14644         * modules/euidaccess: Add stat-macros.h.
14645         * modules/canonicalize, modules/euidaccess,
14646         modules/filemode, modules/lchown, modules/makepath,
14647         modules/rmdir, modules/stat: Likewise.
14648
14649 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
14650
14651         Merge from tar.
14652         * lib/argp-help.c (make_hol, hol_append): Don't assume that
14653         SIZE_MAX is a valid preprocessor constant.
14654         (__argp_basename): Change from "#ifndef _LIBC"
14655         to "#ifndef __argp_short_program_name", so that
14656         we don't compile these functions for tar.
14657
14658         More merges from coreutils.
14659         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
14660         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
14661         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
14662         * lib/addext.c: Remove; no longer needed.
14663         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
14664         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
14665         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
14666         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
14667         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
14668         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
14669         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
14670         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
14671         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
14672         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
14673         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
14674         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
14675         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
14676         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
14677         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
14678         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
14679         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
14680         Import changes from coreutils.
14681
14682 2004-08-05  Simon Josefsson  <jas@extundo.com>
14683
14684         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
14685
14686 2004-08-05  Simon Josefsson  <jas@extundo.com>
14687
14688         * m4/getsubopt.m4: New file.
14689
14690 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14691
14692         Merge from coreutils.
14693
14694         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
14695         * m4/getcwd-path-max.m4: New files.
14696
14697         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
14698         FILESYSTEM_PREFIX_LEN ->
14699         FILE_SYSTEM_PREFIX_LEN.
14700         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
14701         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
14702         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
14703         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
14704
14705         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
14706         prerequisite modules now handle the DOS stuff.
14707         Don't check for unistd.h.
14708
14709 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14710
14711         Merge from coreutils.
14712
14713         * lib/.gdb-history: Remove; this doesn't belong here.
14714
14715         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
14716         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
14717         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
14718         * lib/getcwd.c: New files.
14719
14720         * lib/dirname.h: Include <stdbool.h>.
14721         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
14722         for consistency with POSIX terminology.  All uses changed.
14723         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
14724         (strip_trailing_slashes): Use bool for booleans.
14725         * lib/stripslash.c (strip_trailing_slashes): Likewise.
14726
14727         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
14728         sometimes returns a positive errno value even when it succeeds.
14729         (print_errno_message) [!LIBC]: Fall back on strerror if
14730         __strerror_r fails.
14731
14732         * lib/path-concat.c (mempcpy): Don't define if a system header defines
14733         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
14734         (longest_relative_suffix): New function.
14735         (path_concat): Use it.  Assume first argument is not NULL.
14736         Port to DOS.  Omit redundant separators.
14737         Report an error instead of returning NULL.
14738         Use mempcpy instead of memcpy.
14739         (xpath_concat): Remove: not declared or used.
14740
14741         * lib/same.h: Include <stdbool.h>
14742         (same_name): Return bool, not int.
14743         * lib/same.c (same_name): Likewise.
14744         (errno): Don't declare; we assume C89 or better now.
14745
14746         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
14747         if not already defined.
14748
14749         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
14750         * lib/dup-safer.c (errno): Likewise.
14751
14752 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         Merge from coreutils.
14755         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
14756         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
14757         * modules/path-concat: Don't depend on strdup.
14758
14759 2004-08-03  Simon Josefsson  <jas@extundo.com>
14760
14761         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
14762         * lib/progname.h: Don't include stdbool.h.
14763
14764 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14765
14766         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
14767         * MODULES.html.sh (func_all_modules): Remove fatal.
14768
14769 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
14772
14773 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14774
14775         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
14776         working.
14777
14778 2004-08-02  Simon Josefsson  <jas@extundo.com>
14779
14780         * lib/getsubopt.h: New file, with comments from Bruno Haible.
14781         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
14782         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
14783
14784 2004-08-01  Simon Josefsson  <jas@extundo.com>
14785
14786         * lib/xgetdomainname.c: Include stdlib.h, for free().
14787
14788 2004-07-19  Bruno Haible  <bruno@clisp.org>
14789
14790         * MODULES.html.sh (func_all_modules): Add dummy.
14791
14792 2004-07-16  Simon Josefsson  <jas@extundo.com>
14793
14794         * modules/dummy: New file.
14795
14796 2004-07-16  Simon Josefsson  <jas@extundo.com>
14797
14798         * lib/dummy.c: New file.
14799
14800 2004-07-16  Bruno Haible  <bruno@clisp.org>
14801
14802         * lib/backupfile.h: Add extern "C" for C++.
14803         * lib/closeout.h: Likewise.
14804         * lib/copy-file.h: Likewise.
14805         * lib/findprog.h: Likewise.
14806         * lib/full-write.h: Likewise.
14807         * lib/pathname.h: Likewise.
14808         * lib/progname.h: Likewise.
14809         * lib/stpcpy.h: Likewise.
14810         * lib/stpncpy.h: Likewise.
14811         * lib/strcase.h: Likewise.
14812         * lib/strstr.h: Likewise.
14813         * lib/xalloc.h: Likewise.
14814
14815         * lib/mbswidth.h: Add extern "C" for C++.
14816         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
14817
14818 2004-07-13  Robert Millan  <robertmh@gnu.org>
14819
14820         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
14821
14822 2004-07-09  Simon Josefsson  <jas@extundo.com>
14823
14824         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
14825         failed without this.)
14826
14827 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14828
14829         * modules/chown (Files): Add lib/fchown-stub.c, since
14830         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
14831
14832 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14833
14834         * lib/fchown-stub.c: New file.
14835
14836 2004-06-24  Jim Meyering  <jim@meyering.net>
14837
14838         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
14839
14840 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14841
14842         * modules/argz: Omit "#include".
14843
14844         * MODULES.html.sh (func_all_modules): Add calloc, to match
14845         2004-06-01 addition of calloc module.
14846
14847 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14848
14849         * m4/argz.m4: New file, which is autoupdated from libtool.
14850
14851 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14852
14853         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
14854         libtool.
14855
14856 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14857
14858         * config/srclist-update: Don't insist on "USA." before the
14859         close-comment, as libtool omits the period and puts the */ on a
14860         separate line.
14861         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
14862         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
14863
14864 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
14865
14866         * modules/argz: New file.
14867         * MODULES.html.sh (func_all_modules): Add argz.
14868
14869 2004-06-12  Jim Meyering  <jim@meyering.net>
14870         and  Paul Eggert  <eggert@cs.ucla.edu>
14871
14872         * modules/hash (Files): Add lib/xalloc.h.
14873         * modules/pipe (Depends-on): Add wait-process.
14874         * modules/stat (Depends-on): Add xalloc.
14875         * modules/userspec (Files): Add lib/userspec.h.
14876         * modules/xstrto
14877
14878         Upgrade from gettext-0.13.
14879         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
14880         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
14881         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
14882
14883 2004-06-10  Jim Meyering  <jim@meyering.net>
14884
14885         * lib/calloc.c: New file.
14886
14887 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14888
14889         * lib/getdate.y (yylex): Allow space between sign and number.
14890         Problem reported by Dan Jacobson.
14891
14892 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14893
14894         Merge from coreutils CVS.
14895
14896         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
14897         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
14898         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
14899         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
14900         xstrtol.m4: Fix copyright date and/or serial number.
14901
14902         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
14903         See if we need an fchown replacement.
14904         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
14905         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
14906         and use the replacement function if we detect either defect.
14907
14908         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
14909         gl_UTIMECMP.
14910
14911 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14912         and  Jim Meyering  <jim@meyering.net>
14913
14914         Merge from coreutils CVS.
14915
14916         * lib/stat-macros.h: New file, with contents from file-type.h
14917         and coreutils' system.h.
14918         * lib/file-type.c: Include "stat-macros.h".
14919         * lib/file-type.h (file_type): Move all macro definitions to new file,
14920         stat-macros.h.
14921
14922         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
14923         Wrap old code with this conditional.
14924         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
14925         function that does not dereference symlinks.
14926         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
14927
14928         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
14929         dependency problems.
14930         (xreadlink): Accept new arg SIZE, for efficiency.
14931         All decls and uses changed.
14932         * lib/xreadlink.h: Include <stddef.h>, for size_t.
14933
14934         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
14935         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
14936
14937         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
14938         sysexits.h.
14939
14940 2004-06-01  Jim Meyering  <jim@meyering.net>
14941
14942         * m4/calloc.m4: New file.
14943
14944 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14945
14946         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
14947         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
14948         Also, fix a typo in a diagnostic.
14949
14950 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
14953         or AC_FUNC_REALLOC.
14954
14955 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14956
14957         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
14958         macros to be defined.
14959         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
14960         the allocator returns NULL because the requested size is zero.
14961
14962 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14963
14964         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
14965         var.  Add comment explaining why libc still defines it.  This
14966         merges the following patch from glibc:
14967         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
14968
14969 2004-05-20  Andreas Schwab  <schwab@suse.de>
14970
14971         * m4/free.m4: Replace free if it not known to work, not the other
14972         way round.
14973
14974 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
14977         present in glibc since revision 1.1 of this file.
14978         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
14979         obstack_alignment_mask, obstack_alloc, obstack_base,
14980         obstack_blank, obstack_blank_fast, obstack_chunk_size,
14981         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
14982         obstack_grow0, obstack_init, obstack_int_grow,
14983         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
14984         obstack_next_free, obstack_object_size, obstack_ptr_grow,
14985         obstack_ptr_grow_fast, obstack_room): Remove declarations of
14986         nonexistent functions.
14987
14988 2004-05-18  Karl Berry  <karl@gnu.org>
14989
14990         * config/srclist.txt: break link for vasnprintf.c.
14991
14992 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14993
14994         Port obstack to the AS/400, where pointers are 16 bytes wide and
14995         you cannot cast an integer to a valid pointer.  This patch is
14996         currently waiting to be integrated into glibc; see
14997         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
14998
14999         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
15000         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
15001         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
15002         (struct obstack): temp member is now a union of a pointer and
15003         an integer, instead of an integer.  All integer uses changed.
15004         This does not affect the physical layout of struct obstack,
15005         except on hosts (like the AS/400) where the size or alignment of
15006         void * is greater than that of ptrdiff_t.
15007         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
15008         __STDC__)]: Store temporary in pointer member of union, not
15009         integer member.
15010         * lib/obstack.c: Include <stddef.h>, for offsetof.
15011         (struct fooalign): Remove; it doesn't need a name.
15012         (union fooround): Change double to long double, and add void *.
15013         (DEFAULT_ALIGNMENT): Use offsetof to compute.
15014         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
15015         not a macro.  Hence the values are always int; so remove all
15016         casts-to-int in uses.
15017
15018 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15019
15020         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
15021         we can get this patch merged into glibc.
15022
15023 2004-05-17  Derek R. Price  <derek@ximbiot.com>
15024             Paul Eggert  <eggert@cs.ucla.edu>
15025
15026         * m4/argp: Depend on alloca.
15027
15028 2004-05-17  Derek R. Price  <derek@ximbiot.com>
15029             Paul Eggert  <eggert@cs.ucla.edu>
15030
15031         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
15032         freecoding.
15033
15034 2004-05-17  Bruno Haible  <bruno@clisp.org>
15035
15036         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
15037         precision that consists of a '.' followed by an empty digit string.
15038         Patch by Tor Lillqvist <tml@iki.fi>.
15039
15040 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15041
15042         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
15043         for backward compatibility with older code.  We need our own
15044         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
15045         it under some other name, and our alloca.h will define it.
15046
15047 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15048             Derek Price  <derek@ximbiot.com>
15049
15050         * lib/alloca.c: Include <alloca.h>, to get our interface.
15051         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
15052         include <alloca.h> first.  Use C89 prototype for alloca; this
15053         requires including <stddef.h> for size_t.  Use extern "C" if C++.
15054         Use #elif for simplicity, since we can assume C89 now.
15055         Don't try to source the system alloca.h since it will not be found
15056         and to prevent recursively including its replacement.
15057         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
15058         * lib/regex.c: Likewise.
15059
15060 2004-05-16  Derek Price  <derek@ximbiot.com>
15061             Paul Eggert  <eggert@cs.ucla.edu>
15062
15063         getline cleanup.  This changes the getndelim2 API: both order of
15064         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
15065         no delimiter).
15066
15067         * lib/getline.c: Don't include stddef.h or stdio.h, since our
15068         interface does that.
15069         (getline): Always use getdelim, so that we don't have two
15070         copies of this code.
15071         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
15072         if available.
15073         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
15074         (GETNDELIM2_MAXIMUM): New macro.
15075         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
15076         instead of the old practice of delim2==0.  All callers changed.
15077         Return -1 on overflow, instead of returning junk.
15078         Do not set *linesize unless allocation succeeds.
15079         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
15080         that we include sys/types.h.
15081         * lib/getnline.h: Likewise.
15082         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
15083         (getndelim2): Reorder arguments.
15084         * lib/getnline.c (getnline, getndelim):
15085         Don't discard the NMAX argument.
15086         (getnline): Invoke getndelim, to avoid code duplication.
15087         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
15088         of (size_t) -1 by callers of the getnline family.
15089
15090 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15091
15092         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
15093         Check for gettimeofday.
15094         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
15095         Check for settimeofday, stime.
15096
15097 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         * lib/nanosleep.c (suspended): Change its type from int to
15100         sig_atomic_t volatile.
15101         (first_call): Make it private to rpl_nanosleep, and have it
15102         be zero initially as that's a bit faster.
15103         (my_usleep): Round up fractional times instead of truncating them,
15104         as this is the usual meaning for 'sleep'.
15105
15106         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
15107         doesn't work.
15108         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
15109         (ENOSYS): Define if not defined.
15110         (settime): Fall back on stime if it exists and settimeofday fails.
15111         But don't bother with fallbacks if a method fails with errno == EPERM.
15112
15113 2004-05-11  Jim Meyering  <jim@meyering.net>
15114
15115         Prior to this change, the save_cwd caller required read access to the
15116         current directory on most systems (ones with the fchdir function).
15117
15118         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
15119         fails, try write-only, and finally, resort to using xgetcwd.
15120
15121 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15122
15123         * lib/obstack.c, obstack.h: Import changes from libc.
15124
15125 2004-04-28  Bruno Haible  <bruno@clisp.org>
15126
15127         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
15128         also implicitly appends .exe to executables.
15129         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
15130         accepts Windows pathnames.
15131         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15132         Treat Cygwin like Windows, since it now accepts Windows pathnames.
15133         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15134         Treat Cygwin like Windows, since it now accepts Windows pathnames.
15135         Reported by Derek Robert Price <derek@ximbiot.com>.
15136
15137 2004-04-21  Karl Berry  <karl@gnu.org>
15138
15139         * config/srclist.txt (localcharset.c): break sync.
15140
15141 2004-04-20  Paul Eggert  <eggert@twinsun.com>
15142
15143         * m4/host-os.m4: Add a copyright notice.
15144
15145 2004-04-20  Jim Meyering  <jim@meyering.net>
15146
15147         Change UTILS_ to gl_ in AC_DEFINE'd names.
15148         Change utils_- and jm_-prefixed variables, too.
15149         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
15150         UTILS_FUNC_MKDIR_TRAILING_SLASH.
15151         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
15152
15153         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
15154         Don't emit trailing blanks.
15155         Also rename jm_-prefixed variables to have gl_ prefix.
15156
15157         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
15158         Also rename jm_-prefixed variables to have gl_ prefix.
15159
15160         * m4/jm-macros.m4: Reflect the renamings.
15161         * m4/prereq.m4: Likewise.
15162
15163 2004-04-20  Jim Meyering  <jim@meyering.net>
15164
15165         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
15166         memory.
15167
15168 2004-04-20  Jim Meyering  <jim@meyering.net>
15169             Bruno Haible  <bruno@clisp.org>
15170
15171         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
15172         memory when realloc fails.
15173
15174 2004-04-19  Jim Meyering  <jim@meyering.net>
15175
15176         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
15177         now that readutmp.c may call `free (0)'.
15178
15179 2004-04-19  Bruno Haible  <bruno@clisp.org>
15180
15181         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
15182         * m4/inttypes_h.m4: Likewise.
15183         * m4/stdint_h.m4: Likewise.
15184         * m4/intmax_t.m4: Likewise.
15185         * m4/uintmax_t.m4: Likewise.
15186
15187 2004-04-18  Jim Meyering  <jim@meyering.net>
15188
15189         * m4/prereq.m4: Don't forbid jm_ prefix.
15190
15191         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
15192         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
15193         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
15194         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
15195         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
15196         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
15197         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
15198         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
15199         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
15200         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
15201         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
15202         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
15203         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
15204         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
15205         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
15206         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
15207         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
15208         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
15209         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
15210
15211 2004-04-18  Jim Meyering  <jim@meyering.net>
15212
15213         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
15214         failure, don't leak memory and do call END_UTMP_ENT.
15215
15216 2004-04-16  Jim Meyering  <jim@meyering.net>
15217
15218         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
15219         coreutils' stat program.
15220         (gl_PREREQ): Don't require jm_PREREQ_STAT.
15221
15222 2004-04-11  Paul Eggert  <eggert@twinsun.com>
15223
15224         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
15225         C89.
15226         (CHAR_BIT): Remove, since we assume C89.
15227         Include <stdint.h> if available, as per current Autoconf CVS advice.
15228
15229 2004-03-31  Jim Meyering  <jim@meyering.net>
15230
15231         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
15232         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
15233         * m4/xalloc.m4: Likewise.
15234
15235 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15236
15237         Merge from coreutils.
15238
15239         * m4/inttostr.m4: New file.
15240         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
15241         Require AM_STDBOOL_H and gl_TIMESPEC instead.
15242         Require gl_CLOCK_TIME.
15243         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
15244
15245 2004-03-30  Paul Eggert  <eggert@twinsun.com>
15246
15247         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
15248         not bool, to be more consistent with Unix conventions.
15249         Suggested by Bruno Haible.
15250
15251         Merge from coreutils.
15252
15253         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
15254         * lib/umaxtostr.c: New files.
15255
15256         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
15257         the usual <time.h> dance.
15258         (get_date): Change signature to support fractional time stamps.
15259         All callers changed.
15260         * lib/getdate.y: Include "getdate.h" first, as we can now
15261         assume C89 and don't need to worry about 'const'.
15262         Similarly, include "unlocked-io.h" near start, not in middle.
15263         Include <limits.h>.
15264         (textint.value): Use long int rather than int.
15265         (textint.digits): Use size_t rather than int.
15266         (BILLION, LOG10_BILLION): New constants.
15267         (parser_control): New member rel_ns.  Members day_ordinal,
15268         time_zone, month, day, hour, minutes, rel_year, rel_month,
15269         rel_day, rel_hour, rel_minutes, rel_seconds
15270         are now long int, not int.  Member seconds is now struct timespec,
15271         not int.  New member timespec_seen.  Members dates_seen, days_seen,
15272         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
15273         not int.
15274         (%union.intval): Now long int, not int.
15275         New member timespec.
15276         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
15277         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
15278         (spec): Now is a timespec or an item list.
15279         (timespec, items): New nonterminals.
15280         (time, rel, relunit, number, get_date):
15281         Add support for fractional seconds.
15282         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
15283         (gmtime, localtime, mktime): Remove decls; not needed with C89.
15284         (to_hour): First arg is now long int, not int.
15285         (to_year): Returns long int, not int.
15286         Don't treat year -70 like 70.
15287         (tm_diff): Returns long int, not int.
15288         (lookup_word): Use bool instead of int when appropriate.
15289         (yylex): Use size_t for count, not int.
15290         Detect overflow when parsing large integer constants.
15291         Add support for fractions.
15292         (get_date): Make pointers 'const' if possible.
15293         Use more-portable code to detect integer overflow.
15294         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
15295         Don't use ctime; it's not reliable if the year has >4 digits.
15296
15297         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
15298         This is for compatibility with BSD.
15299
15300         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
15301         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
15302         From coreutils' system.h.
15303
15304         * lib/userspec.c: Don't include "posixver.h".
15305         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
15306         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
15307         compatible extension.  Simplify code by removing a boolean int
15308         that was always nonzero if a string was nonnull.
15309
15310 2004-03-30  Jim Meyering  <jim@meyering.net>
15311
15312         Merge from coreutils.
15313
15314         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
15315         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
15316         on some systems one must include <grp.h> before it.
15317         Reported by Christian Krackowizer.
15318
15319 2004-03-30  Jim Meyering  <jim@meyering.net>
15320
15321         Merge from coreutils.
15322
15323         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
15324
15325         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
15326         an empty input stream.
15327
15328         * lib/readtokens.c: Include <stdbool.h>.
15329         (readtoken): Use `size_t' rather than int/long.
15330         All callers adjusted.
15331         Use `bool' rather than `int' where appropriate.
15332         Use memset rather than an explicit loop.
15333         Use x2nrealloc rather than xrealloc.
15334         Allow the use of `\0' as a delimiter.
15335         (readtokens): Likewise.
15336         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
15337
15338 2004-03-30  Jim Meyering  <jim@meyering.net>
15339
15340         * m4/realloc.m4: Remove file, since now it does no more than
15341         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
15342         the `configure.ac' section of module/realloc.
15343         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
15344
15345 2004-03-30  Bruno Haible  <bruno@clisp.org>
15346
15347         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
15348         nonnull.
15349
15350 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15351
15352         Merge changes to getloadavg.c from coreutils and Emacs.
15353
15354         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
15355         Define to an expression, not to the empty string.
15356         Include cloexec.h and xalloc.h.
15357         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
15358         Use set_cloexec_flag rather than rolling our own.
15359         * lib/cloexec.c, lib/cloexec.h: New files.
15360
15361 2004-03-29  Paul Eggert  <eggert@twinsun.com>
15362
15363         * m4/cloexec.m4: New file.
15364
15365 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15366
15367         * lib/getopt.h: Sync with libc CVS.
15368
15369 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15370             Bruno Haible  <bruno@clisp.org>
15371
15372         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
15373         mbswidth.
15374
15375 2004-03-18  Paul Eggert  <eggert@twinsun.com>
15376             Bruno Haible  <bruno@clisp.org>
15377
15378         * lib/mbswidth.h: Include <wchar.h> only if
15379         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
15380         <wchar.h>.
15381         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
15382
15383 2004-03-09  Paul Eggert  <eggert@twinsun.com>
15384
15385         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
15386         Sync with libc CVS.
15387         * lib/getopt_int.h: New file, also synced from libc.
15388
15389 2004-03-09  Paul Eggert  <eggert@twinsun.com>
15390
15391         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
15392         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
15393         Bring back getopt.c, getopt.h, getopt1.c.
15394
15395 2004-03-07  Paul Eggert  <eggert@twinsun.com>
15396
15397         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
15398         All uses changed.  Check for sa_sigaction member; this fixes
15399         a bug first reported by Jason Andrade in
15400         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15401
15402 2004-03-07  Paul Eggert  <eggert@twinsun.com>
15403
15404         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
15405         '#if' expressions.  Unlike the code it replaces, it does not
15406         depend on (defined _SC_PAGESIZE).  However, it does depend on
15407         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
15408         first reported by Jason Andrade in
15409         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15410
15411 2004-02-25  Simon Josefsson  <jas@extundo.com>
15412
15413         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
15414
15415 2004-02-25  Simon Josefsson  <jas@extundo.com>
15416
15417         * lib/strdup.h: New file.
15418         * lib/strdup.c: Include it.
15419         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
15420         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
15421
15422 2004-02-23  Karl Berry  <karl@gnu.org>
15423
15424         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
15425         (from fencepost.gnu.org:/gd/gnuorg).
15426
15427 2004-02-23  Karl Berry  <karl@gnu.org>
15428
15429         * config/srclistvars.sh (GNUORG) [karl]: redefine.
15430         * config/srclist.txt: add maintain/standards documents.
15431
15432 2004-02-18  Bruno Haible  <bruno@clisp.org>
15433
15434         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
15435         Reported by Derek Robert Price <derek@ximbiot.com>.
15436
15437 2004-02-16  Karl Berry  <karl@gnu.org>
15438
15439         * config/mkinstalldirs, install-sh: update from automake.
15440
15441 2004-02-06  Karl Berry  <karl@gnu.org>
15442
15443         * m4/po.m4: update from gettext 0.14.1.
15444
15445 2004-02-06  Karl Berry  <karl@gnu.org>
15446
15447         * lib/config.charset: update from gettext 0.14.1.
15448
15449 2004-02-05  Paul Eggert  <eggert@twinsun.com>
15450
15451         Add comments and code, prompted by suggestions from Bruno Haible
15452         for sh-quote.
15453         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
15454         describing the enum quoting_style values.
15455         * lib/quotearg.c (quotearg_alloc): New function.
15456         (quotearg_buffer_restyled): Treat lone { and } as special.
15457         Treat = as special.  Work around bug with older shells
15458         that "see" a '\' that is really the 2nd byte of a multibyte char.
15459         Quote empty string with shell_quoting_style.
15460
15461 2004-02-03  Bruno Haible  <bruno@clisp.org>
15462
15463         * m4/pipe.m4: New file, from GNU gettext.
15464
15465 2004-02-03  Bruno Haible  <bruno@clisp.org>
15466
15467         * lib/pipe.h: New file, from GNU gettext.
15468         * lib/pipe.c: New file, from GNU gettext.
15469
15470 2004-01-27  Bruno Haible  <bruno@clisp.org>
15471
15472         * m4/execute.m4: New file, from GNU gettext.
15473
15474 2004-01-27  Bruno Haible  <bruno@clisp.org>
15475
15476         * lib/execute.h: New file, from GNU gettext.
15477         * lib/execute.c: New file, from GNU gettext.
15478         * lib/w32spawn.h: New file, from GNU gettext.
15479
15480 2004-01-24  Paul Eggert  <eggert@twinsun.com>
15481
15482         Merge from diffutils.
15483
15484         * lib/file-type.c (file_type): Add typed memory objects.
15485         * lib/file-type.h (S_TYPEISTMO): New macro.
15486
15487         * lib/c-stack.h (c_stack_action): Remove argv argument.
15488         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
15489         (die): Don't calculate message unless segv_action returns.
15490         (get_stack_location, min_address_from_argv, max_address_from_argv,
15491         volatile stack_base, volatile_stack_size): Remove.
15492         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
15493         that every segmentation violation is a stack overflow.  (Ouch!)
15494         See Debian bug 136249 (still outstanding) for more info about why
15495         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
15496
15497 2004-01-24  Paul Eggert  <eggert@twinsun.com>
15498
15499         Exit-status fix from coreutils.
15500
15501         Use exit_failure consistently in place of EXIT_FAILURE,
15502         so that program exit statuses are consistent on failure.
15503
15504         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
15505         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
15506         * lib/argmatch.h: Comment fix to match the above.
15507         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
15508         Now a macro referring to exit_failure, instead of a separate
15509         variable.  Include "exitfail.h" to get it.
15510         * lib/xstrtol.h: Include "exitfail.h".
15511         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
15512
15513         * lib/long-options.c (parse_long_options): Use prototype
15514         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
15515         for clarity.
15516
15517 2004-01-21  Jim Meyering  <jim@meyering.net>
15518
15519         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
15520         so as not to conflict with a different-sized __mktime_internal
15521         function in GNU libc.
15522         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
15523         Problem building statically-linked `ls' reported by Michael Brunnbauer.
15524
15525 2004-01-20  Karl Berry  <karl@gnu.org>
15526
15527         * config/config.guess: update from config.
15528
15529         * config/srclistvars.sh: GNUWWWLICENSES for karl.
15530
15531 2004-01-20  Bruno Haible  <bruno@clisp.org>
15532
15533         Safer stack allocation.
15534         * lib/setenv.c: Include allocsa.h.
15535         (alloca): Remove fallback definition.
15536         (freea): Remove macro.
15537         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
15538         instead of freea.
15539
15540 2004-01-20  Bruno Haible  <bruno@clisp.org>
15541
15542         * m4/eealloc.m4: New file, from GNU gettext.
15543
15544 2004-01-20  Bruno Haible  <bruno@clisp.org>
15545
15546         * m4/allocsa.m4: New file, from GNU gettext.
15547
15548 2004-01-20  Bruno Haible  <bruno@clisp.org>
15549
15550         * lib/xallocsa.h: New file, from GNU gettext.
15551         * lib/xallocsa.c: New file, from GNU gettext.
15552
15553 2004-01-20  Bruno Haible  <bruno@clisp.org>
15554
15555         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
15556
15557 2004-01-20  Bruno Haible  <bruno@clisp.org>
15558
15559         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
15560         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
15561         specially.
15562
15563 2004-01-20  Bruno Haible  <bruno@clisp.org>
15564
15565         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
15566         patch.
15567
15568 2004-01-20  Bruno Haible  <bruno@clisp.org>
15569
15570         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
15571
15572 2004-01-20  Bruno Haible  <bruno@clisp.org>
15573
15574         * lib/eealloc.h: New file.
15575
15576 2004-01-20  Bruno Haible  <bruno@clisp.org>
15577
15578         * lib/binary-io.h: Avoid warnings on Cygwin.
15579
15580 2004-01-20  Bruno Haible  <bruno@clisp.org>
15581
15582         * lib/allocsa.h: New file, from GNU gettext.
15583         * lib/allocsa.c: New file, from GNU gettext.
15584
15585 2004-01-18  Karl Berry  <karl@gnu.org>
15586
15587         * doc/gpl.texi, doc/lgpl.texi: new files.
15588
15589 2004-01-18  Karl Berry  <karl@gnu.org>
15590
15591         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
15592         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
15593
15594 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15595
15596         Merge from coreutils.
15597
15598         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
15599         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
15600         (gl_DEFAULT_POSIX2_VERSION): Move
15601         the documentation from 'configure' into 'config.hin',
15602         so that 'configure --help' isn't burdened by it and
15603         we don't have to worry about its formatting there.
15604         Reword the documentation so that it's more succinct
15605         and can be run together into a single paragraph.
15606         * m4/same.m4 (gl_SAME): Check for pathconf.
15607
15608 2004-01-15  Paul Eggert  <eggert@twinsun.com>
15609
15610         Merge from coreutils.
15611
15612         * lib/posixver.c: Include posixver.h.
15613
15614         * lib/same.c: Include <stdbool.h>, <limits.h>.
15615         (_POSIX_NAME_MAX): Define if not defined.
15616         (MIN): New macro.
15617         (same_name): If file names are silently truncated, report
15618         that the file names are the same if they are the same after
15619         the silent truncation.
15620
15621         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
15622         conversion function.
15623         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
15624         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
15625         longer needed.
15626
15627 2004-01-15  Jim Meyering  <jim@meyering.net>
15628
15629         Merge from coreutils.
15630
15631         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
15632         if no library is required.
15633         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
15634         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
15635         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
15636         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
15637         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
15638         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
15639         value, $ac_cv_search_crypt, if it's "none required".
15640         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
15641         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
15642         not gl_FUNC_GETLOADAVG.
15643         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
15644         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
15645
15646 2004-01-15  Jim Meyering  <jim@meyering.net>
15647
15648         Merge from coreutils.
15649
15650         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
15651         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
15652         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
15653
15654         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
15655         optional configure-time default.
15656
15657         * lib/version-etc.c (version_etc_copyright): Update copyright date.
15658
15659         * lib/xreadlink.c (xreadlink): Correct outdated comment.
15660
15661 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
15662
15663         Merge from coreutils.
15664
15665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
15666         value, $ac_cv_search_nanosleep, if it's "none required".
15667
15668 2004-01-14  Paul Eggert  <eggert@twinsun.com>
15669
15670         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
15671         with like-named macro in fnmatch.c.
15672         (EXT): Use an internal constant instead.
15673
15674         Merge fnmatch patches from glibc.
15675         * lib/fnmatch.c (mbsinit): Remove define.
15676         Add libc_hidden_ver (__fnmatch, fnmatch).
15677         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
15678         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
15679
15680 2004-01-14  Karl Berry  <karl@gnu.org>
15681
15682         * config/install-sh: update from automake.
15683
15684 2004-01-13  Karl Berry  <karl@gnu.org>
15685
15686         * config/install-sh: update from automake.
15687
15688 2004-01-09  Karl Berry  <karl@gnu.org>
15689
15690         * config/install-sh: update from automake.
15691
15692 2004-01-05  Karl Berry  <karl@gnu.org>
15693
15694         * config/config.{sub,guess}: update from config.
15695
15696 2003-12-31  Karl Berry  <karl@gnu.org>
15697
15698         * config/depcomp: update from automake.
15699
15700 2003-12-14  Karl Berry  <karl@gnu.org>
15701
15702         * lib/config.charset: update from gettext-runtime.
15703
15704 2003-12-03  Paul Eggert  <eggert@twinsun.com>
15705
15706         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
15707         Bug reported by Alfred M. Szmidt.
15708
15709 2003-12-03  Bruno Haible  <bruno@clisp.org>
15710
15711         * m4/gettext.m4: Upgrade from gettext-0.13.
15712         * m4/po.m4: Upgrade from gettext-0.13.
15713         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
15714         * m4/intmax.m4: New file, from gettext-0.13.
15715         * m4/printf-posix.m4: New file, from gettext-0.13.
15716
15717 2003-11-29  Karl Berry  <karl@gnu.org>
15718
15719         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
15720
15721 2003-11-25  Paul Eggert  <eggert@twinsun.com>
15722             Bruno Haible  <bruno@clisp.org>
15723
15724         * lib/printf-parse.h: Don't include sys/types.h.
15725         (ARG_NONE): New macro.
15726         (char_directive): Change type of *arg_index fields to size_t.
15727         * lib/printf-parse.c: Don't include sys/types.h.
15728         (SSIZE_MAX): Remove macro.
15729         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
15730         Remove unnecessary overflow check.
15731         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
15732         fields.
15733
15734 2003-11-25  Bruno Haible  <bruno@clisp.org>
15735
15736         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
15737
15738 2003-11-25  Bruno Haible  <bruno@clisp.org>
15739
15740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
15741         gt_TYPE_SSIZE_T.
15742
15743 2003-11-24  Paul Eggert  <eggert@twinsun.com>
15744
15745         * modules/alloca: Remove dependency on xalloc.
15746
15747 2003-11-24  Paul Eggert  <eggert@twinsun.com>
15748
15749         * lib/alloca.c: Remove dependency on xalloc module.
15750         (xalloc_die): Remove.
15751         (memory_full) [!defined emacs]: New macro.
15752         [!defined emacs]: Don't include xalloc.h.
15753         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
15754         address arithmetic overflows.  Change datatypes a bit to avoid
15755         unnecessary casts.
15756
15757 2003-11-22  Jim Meyering  <jim@meyering.net>
15758
15759         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
15760         s/size/size_t/.
15761
15762 2003-11-21  Karl Berry  <karl@gnu.org>
15763
15764         * config/config.{sub,guess}: update from config.
15765
15766 2003-11-18  Karl Berry  <karl@gnu.org>
15767
15768         * config/config.{sub,guess}: update from config.
15769
15770         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
15771
15772 2003-11-17  Paul Eggert  <eggert@twinsun.com>
15773
15774         * README: Mention that S+T cannot overflow if S is the size of
15775         an existing object and T is sufficiently small.
15776
15777 2003-11-17  Jim Meyering  <jim@meyering.net>
15778
15779         On systems without utime and without a utimes function capable of
15780         dealing with a NULL struct utimbuf* argument, this utime replacement
15781         could -- in unusual circumstances -- leak a file descriptor.
15782         * lib/utime.c: Include <unistd.h> and <errno.h>.
15783         (utime_null): Be sure to close `fd' and to preserve errno.
15784         Reported by Geoff Collyer via Arnold Robbins.
15785
15786 2003-11-17  Bruno Haible  <bruno@clisp.org>
15787
15788         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
15789         (Depends-on): Add xsize.
15790
15791 2003-11-17  Bruno Haible  <bruno@clisp.org>
15792
15793         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
15794
15795 2003-11-17  Bruno Haible  <bruno@clisp.org>
15796
15797         * lib/vasnprintf.c (alloca): Remove fallback definition.
15798         (freea): Remove definition.
15799         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
15800         Reported by Paul Eggert.
15801
15802 2003-11-16  Paul Eggert  <eggert@twinsun.com>
15803             Bruno Haible  <bruno@clisp.org>
15804
15805         Protect against address arithmetic overflow.
15806         * lib/printf-args.h: Include stddef.h.
15807         (arguments): Change type of field 'count' to size_t.
15808         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
15809         'unsigned int' where appropriate.
15810         * lib/printf-parse.h: Include sys/types.h.
15811         (char_directive): Change type of *arg_index fields to ssize_t.
15812         (char_directives): Change type of fields 'count', max_*_length to
15813         size_t.
15814         * lib/printf-parse.c: Include sys/types.h and xsize.h.
15815         (SSIZE_MAX): Define fallback value.
15816         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
15817         instead of 'int' where appropriate. Check a_allocated, d_allocated
15818         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
15819         * lib/vasnprintf.c: Include xsize.h.
15820         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
15821         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
15822         overflow. Avoid wraparound when converting a width or precision from
15823         decimal to binary.
15824
15825 2003-11-16  Bruno Haible  <bruno@clisp.org>
15826
15827         Update from GNU gettext.
15828         * lib/printf-parse.c: Generalize to it can be compiled for wide
15829         strings.
15830         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
15831         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
15832         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
15833         SNPRINTF): New macros.
15834         Don't include <alloca.h> if the file is used inside libintl.
15835         (local_wcslen): New function, for Solaris 2.5.1.
15836         (VASNPRINTF): Use it instead of wcslen.
15837
15838 2003-11-16  Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/xsize.h (xmax): New function.
15841         (xsum, xsum3, xsum4): Declare as "pure" functions.
15842
15843 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15844
15845         * modules/xalloc (Files): Undo latest change, since xalloc.h
15846         no longer needs SIZE_MAX or PTRDIFF_MAX.
15847
15848 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15849
15850         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
15851         gl_PTRDIFF_MAX.
15852
15853 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15854
15855         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
15856         "return", to pacify some unknown compiler.  Problem reported
15857         by Joerg Schilling.
15858
15859 2003-11-12  Paul Eggert  <eggert@twinsun.com>
15860
15861         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
15862         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
15863         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
15864         heuristic is just as accurate as far as we know, and it removes a
15865         dependency on size_max.m4 and ptrdiff_max.m4.
15866
15867 2003-11-11  Bruno Haible  <bruno@clisp.org>
15868
15869         * modules/xsize (Files): Add m4/size_max.m4.
15870         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
15871
15872 2003-11-11  Bruno Haible  <bruno@clisp.org>
15873
15874         * m4/size_max.m4: New file.
15875         * m4/ptrdiff_max.m4: New file.
15876         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
15877         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
15878         (gl_XALLOC): Invoke it.
15879
15880 2003-11-11  Bruno Haible  <bruno@clisp.org>
15881
15882         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
15883         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
15884         defined.
15885
15886 2003-11-10  Paul Eggert  <eggert@twinsun.com>
15887
15888         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
15889         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
15890         rejected some allocations of exactly SIZE_MAX - 2 bytes.
15891         From Bruno Haible.
15892         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
15893         not (size_t) -1, since it's defined here.
15894
15895 2003-11-09  Karl Berry  <karl@gnu.org>
15896
15897         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
15898
15899 2003-11-06  Paul Eggert  <eggert@twinsun.com>
15900
15901         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
15902         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
15903         Reject sizes of exactly SIZE_MAX bytes.
15904         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
15905         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
15906
15907 2003-11-05  Bruno Haible  <bruno@clisp.org>
15908
15909         * lib/xsize.h: Include limits.h, to avoid a possible collision with
15910         SIZE_MAX defined in <limits.h> on Solaris.
15911
15912 2003-11-04  Jim Meyering  <jim@meyering.net>
15913
15914         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
15915         variable names, rather than @VAR@.
15916         * modules/poll: Likewise.
15917
15918 2003-11-04  Bruno Haible  <bruno@clisp.org>
15919
15920         * modules/xsize: New file.
15921         * modules/linebreak: Depend on xsize.
15922         * MODULES.html.sh (func_all_modules): Add xsize.
15923
15924 2003-11-04  Bruno Haible  <bruno@clisp.org>
15925
15926         * m4/xsize.m4: New file.
15927
15928 2003-11-04  Bruno Haible  <bruno@clisp.org>
15929
15930         * lib/xsize.h: New file.
15931         * lib/linebreak.c: Include xsize.h.
15932         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
15933         argument for overflow.
15934         Suggested by Paul Eggert.
15935
15936 2003-11-03  Karl Berry  <karl@gnu.org>
15937
15938         * config/config.{guess,sub}: update from config.
15939
15940 2003-11-03  Jim Meyering  <jim@meyering.net>
15941
15942         * modules/userspec (lib_SOURCES): Add userspec.h.
15943         (Include): Add "userspec.h".
15944         Improve description.
15945
15946 2003-11-03  Jim Meyering  <jim@meyering.net>
15947
15948         * lib/userspec.c: Include "userspec.h".
15949         * lib/userspec.h: New file.
15950
15951 2003-11-03  Bruno Haible  <bruno@clisp.org>
15952
15953         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
15954
15955 2003-11-03  Bruno Haible  <bruno@clisp.org>
15956
15957         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
15958         available, to avoid (extremely rare) race condition.
15959         Suggested by Paul Eggert.
15960
15961 2003-11-02  Karl Berry  <karl@gnu.org>
15962
15963         * config/srclist.txt (vasprintf.c): sync broken, sigh.
15964
15965 2003-10-31  Paul Eggert  <eggert@twinsun.com>
15966
15967         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
15968         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
15969         (read_filesystem_list): Set and use me_type_malloced.
15970         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
15971         whatever the type happens to be), for brevity and consistency.
15972         Check for size calculation overflow on Alphas running OSF/1.
15973
15974 2003-10-31  Jim Meyering  <jim@meyering.net>
15975
15976         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
15977
15978         * lib/linebuffer.c: Include <string.h> for declaration of memset.
15979
15980 2003-10-30  Paul Eggert  <eggert@twinsun.com>
15981             Bruno Haible  <bruno@clisp.org>
15982
15983         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
15984         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
15985
15986 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15987
15988         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
15989         netbsd*-gnu*.  Suggested by Robert Millan.
15990
15991 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15992
15993         * modules/group-member: Depend on stdbool.
15994
15995 2003-10-29  Paul Eggert  <eggert@twinsun.com>
15996
15997         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
15998
15999 2003-10-29  Paul Eggert  <eggert@twinsun.com>
16000
16001         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
16002         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
16003         after the 'gnu' in these cases.  This fixes some bugs in the
16004         previous change, and is based on suggestions by Robert Millan.
16005
16006 2003-10-29  Paul Eggert  <eggert@twinsun.com>
16007
16008         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
16009         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
16010         no longer needed.
16011         * lib/quotearg.c (quotearg_n_options): Use it.
16012         * lib/group-member.c: Include <stdbool.h>.
16013         (free_group_info): Arg is now const *; don't free arg.
16014         (get_group_info): Now returns bool and accepts struct group_info *,
16015         rather than returning a malloc'ed struct group_info *.
16016         All uses changed.  Check for overflow in internal size calculation.
16017
16018         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
16019         rather than xmalloc/xrealloc.
16020         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
16021         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
16022         conformance bug: the old code used a pointer after freeing the
16023         storage that it addressed.
16024         * lib/hash.c (hash_initialize): Simplify the code by using
16025         xalloc_oversized rather than doing it by hand.
16026         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
16027         the buffer preserved.  Use free and xmalloc instead.
16028         * lib/quotearg.c (quotearg_n_options): Likewise.
16029         Use a simpler test for size overflow.  Don't use xalloc_oversized
16030         because unsigned int might be wider than size_t (!); this suggests
16031         that we should switch from unsigned int to size_t for slot numbers.
16032
16033 2003-10-28  Paul Eggert  <eggert@twinsun.com>
16034
16035         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
16036         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
16037         NetBSD kernels.  Requested by Richard Stallman.
16038
16039 2003-10-27  Paul Eggert  <eggert@twinsun.com>
16040
16041         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
16042         to allocate the returned structure.  Do not allocate a subarray,
16043         as x2nrealloc will do that.
16044         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
16045         instead of xnrealloc.
16046         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
16047
16048 2003-10-27  Bruno Haible  <bruno@clisp.org>
16049
16050         * lib/stdbool_.h: Better support for BeOS.
16051
16052 2003-10-26  Paul Eggert  <eggert@twinsun.com>
16053
16054         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
16055         now uses inline.
16056
16057 2003-10-26  Paul Eggert  <eggert@twinsun.com>
16058
16059         * lib/xalloc.h (xalloc_oversized): New static inline function, for
16060         callers that want to do their own size-overflow checking.  Include
16061         <stdbool.h>, since xalloc_oversized returns bool.
16062         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
16063         to use xalloc_oversized.
16064
16065         Add two functions x2realloc, x2nrealloc, for programs that grow
16066         arrays dynamically by doubling their sizes.
16067         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
16068         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
16069         New functions.
16070
16071         Port to C99 semantics for 'inline' of external functions.
16072         Bug reported by Bruno Haible.
16073         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
16074         with the old contents of xnmalloc.
16075         (xnmalloc, xmalloc): Use it.
16076         (xnrealloc_inline): New static inline function,
16077         with the old contents of xnrealloc.
16078         (xnrealloc, xrealloc): Use it.
16079
16080         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
16081         that.
16082
16083 2003-10-26  Karl Berry  <karl@gnu.org>
16084
16085         * config/srclist.txt (COPYING.DOC): no longer available from
16086         /gd/gnuorg; don't know where the ultimate source is.
16087
16088 2003-10-25  Paul Eggert  <eggert@twinsun.com>
16089
16090         Fix several address-calculation bugs in the hash modules,
16091         plus some minor code cleanup.
16092
16093         * lib/hash.h: Include <stdbool.h>, for bool.
16094         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
16095         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
16096         hash_get_n_entries, hash_get_max_bucket_length,
16097         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
16098         hash_rehash): Use size_t rather than unsigned.
16099         * lib/hash.c (struct hash_table, hash_get_n_buckets,
16100         hash_get_n_buckets_used, hash_get_n_entries,
16101         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
16102         hash_get_entries, hash_do_for_each, hash_string, is_prime,
16103         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
16104         Likewise.
16105         (SIZE_MAX): Define if not defined.
16106         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
16107         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
16108         hash_print):
16109         Use const * when possible.
16110         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
16111         (check_tuning): Fix bug: if tuning parameters were very close to
16112         0 or 1, rounding errors could have caused subscript violations.
16113         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
16114         (hash_initialize): Add 'fail:' label
16115         to free table and return NULL, and use it to simplify code.
16116         Use calloc rather than clearing the storage ourself.
16117         (hash_initialize, hash_rehash): Check for arithmetic overflow in
16118         buffer size calculations.
16119         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
16120         Include <stddef.h>, for size_t.
16121         * lib/hash-pjw.c (hash_pjw): Likewise.
16122         Switch to method described by Bruno Haible.
16123         Include <limits.h>, for CHAR_BIT.
16124         (SIZE_BITS): New macro.
16125
16126 2003-10-23  Paul Eggert  <eggert@twinsun.com>
16127
16128         * m4/getline.m4 (AM_FUNC_GETLINE):
16129         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
16130         hosts.  Problem reported by Derek Robert Price in
16131         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
16132         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
16133         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
16134
16135 2003-10-21  Paul Eggert  <eggert@twinsun.com>
16136
16137         * lib/getndelim2.c (getndelim2): When size calculation overflows,
16138         ceiling the allocation at NMAX bytes rather than silently
16139         discarding input bytes before NMAX is reached.  This makes
16140         a difference only if NMAX exceeds SIZE_MAX / 2.
16141
16142         * lib/obstack.c: Merge from glibc.
16143         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
16144         Add libc_hidden_def (_obstack_newchunk).
16145         (_obstack_free) [! defined _LIBC]: Remove.
16146         [defined _LIBC]: Make a strong alias from obstack_free, rather than
16147         a clone of the function body.
16148         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
16149         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
16150
16151         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
16152         glibc.
16153         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
16154         arg to memcpy.
16155
16156         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
16157         (obstack_ptr_grow_fast, obstack_int_grow_fast):
16158         Don't use lvalue casts, as GCC plans to remove support for them
16159         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
16160         was also present in the non-GCC version, indicating that this
16161         code had always been buggy and had never been widely used.
16162         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
16163         Use the fast variant of each macro, rather than copying the
16164         definiens of the fast variant; that way, we'll be more likely to
16165         catch future bugs in the fast variants.
16166
16167 2003-10-20  Bruno Haible  <bruno@clisp.org>
16168
16169         * modules/wait-process: New file.
16170         * MODULES.html.sh (func_all_modules): Add wait-process.
16171
16172 2003-10-20  Bruno Haible  <bruno@clisp.org>
16173
16174         * m4/wait-process.m4: New file.
16175
16176 2003-10-20  Bruno Haible  <bruno@clisp.org>
16177
16178         * lib/wait-process.h: New file, from GNU gettext.
16179         * lib/wait-process.c: New file, from GNU gettext.
16180
16181 2003-10-19  Jim Meyering  <jim@meyering.net>
16182
16183         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
16184         HPUX 10.20.
16185
16186 2003-10-18  Karl Berry  <karl@gnu.org>
16187
16188         * config/config.guess: update from config.
16189
16190 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16191
16192         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
16193         (getgroups): First arg is int, not size_t.
16194         Don't let 'free' mangle errno.
16195
16196 2003-10-16  Paul Eggert  <eggert@twinsun.com>
16197
16198         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
16199
16200 2003-10-16  Karl Berry  <karl@gnu.org>
16201
16202         * config/config.{guess,sub}: update from config.
16203
16204 2003-10-16  Jim Meyering  <jim@meyering.net>
16205
16206         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
16207         memcpy.
16208
16209 2003-10-15  Paul Eggert  <eggert@twinsun.com>
16210
16211         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
16212         (SIZE_MAX): Remove.
16213         (new_exclude, add_exclude_file): Initial size no longer needs to
16214         be a power of 2.
16215         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
16216         our own address arithmetic overflow checking.
16217
16218         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
16219         (fnmatch): Do not alloca more than 2000 wide characters;
16220         instead, use malloc for large buffers.
16221         Check for address arithmetic overflow, and return -1
16222         with errno set to ENOMEM in that case.
16223         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
16224         (NEW_PATTERN): Do not alloca more than 8000 bytes;
16225         instead, return -1.  Check for address arithmetic overflow.
16226
16227 2003-10-14  Paul Eggert  <eggert@twinsun.com>
16228
16229         Handle invalid suffixes and overflow independently, so that
16230         callers can treat them independently as needed.  Fix some bugs in
16231         suffix handling, e.g., "100k@" was not diagnosed as an invalid
16232         suffix for a human-readable blocksize.  The major caller-visible
16233         change is the addition of a new
16234         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
16235         that both overflow and suffix chars were found.
16236
16237         * lib/human.c (humblock): Don't check separately for invalid suffix
16238         char; that is xstrtoumax's job (now that its bug is fixed).
16239         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
16240         INTMAX_MAX]: New macros.
16241         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
16242         TYPE_MAXIMUM): New macros.
16243         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
16244         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
16245         if overflow occurs, as it's what __strtol does and it's more useful
16246         in practice.
16247         (__xstrtol): If __strtol reports some error other than ERANGE,
16248         reflect it to the caller as LONGINT_INVALID.  If it reports
16249         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
16250         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
16251         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
16252         value.
16253         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
16254         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
16255         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
16256         [defined UINTMAX_MAX]: New macros.
16257
16258 2003-10-14  Bruno Haible  <bruno@clisp.org>
16259
16260         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
16261
16262 2003-10-14  Bruno Haible  <bruno@clisp.org>
16263
16264         * m4/sig_atomic_t: New file, from GNU gettext.
16265         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
16266
16267 2003-10-14  Bruno Haible  <bruno@clisp.org>
16268
16269         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
16270         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
16271         Also use volatile where needed.
16272
16273 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16274
16275         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
16276         Change maintainer from Bruno Haible to 'all'.
16277
16278 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16279
16280         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
16281
16282 2003-10-12  Paul Eggert  <eggert@twinsun.com>
16283
16284         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
16285         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
16286         and define in terms of the other primitives.
16287         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
16288         (SIZE_MAX): Define if not already defined.
16289         (array_size_overflow): New function.
16290         (xalloc_die): Abort instead of exiting if 'error' returns.
16291         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
16292         (xmalloc, xrealloc): Use them.
16293         (xcalloc): Check for address arithmetic overflow.
16294         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
16295         a bit faster than strcpy.
16296
16297 2003-10-10  Simon Josefsson  <jas@extundo.com>
16298
16299         * modules/argp (Depends-on): Add restrict and strcase.
16300
16301 2003-10-10  Simon Josefsson  <jas@extundo.com>
16302
16303         * m4/argp.m4: Add AC_C_INLINE.
16304
16305 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16306
16307         Merge getpass from libc, plus a few fixes.
16308
16309         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
16310         Include <stdbool.h>.
16311         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
16312         __fsetlocking to empty.
16313         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
16314         do include <bits/libc-lock.h>.
16315         Do not include <fcntl.h>; not needed.
16316         [_LIBC]: Include <wchar.h>.
16317         (NOTCANCEL_MODE): New macro.
16318         (flockfile, funlockfile) [_LIBC]: New macros.
16319         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
16320         [!_LIBC]: New macros.
16321         (call_fclose): New function.
16322         (getpass): Use it.  Save tty stream separately; this simplifies the
16323         code and makes it more reliable if stdin happens to equal stdout.
16324         Invoke __fsetlocking on tty.
16325         Handle thread cancellation if needed.
16326         Namespace cleanup (use __tcgetattr, __getline).
16327         Use bool for Booleans.
16328         [USE_IN_LIBIO]: Handle wide streams.
16329         [!_LIBC]: Unconditionally do the fseek, since we don't know what
16330         stream might go where.
16331
16332         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
16333         doesn't have to include <stdio.h> before us.
16334         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
16335         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
16336         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
16337         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
16338         if not declared, so that we can use getpass.c code from libc without
16339         rewriting it.
16340         (flockfile, ftrylockfile, funlockfile): New macros.
16341
16342 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16343
16344         * modules/getpass: Depend on stdbool.
16345
16346 2003-10-08  Paul Eggert  <eggert@twinsun.com>
16347
16348         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
16349
16350 2003-10-07  Karl Berry  <karl@gnu.org>
16351
16352         * config/config.{guess,sub}: update from config.
16353
16354 2003-10-06  Jim Meyering  <jim@meyering.net>
16355             Bruno Haible  <bruno@clisp.org>
16356
16357         This lets translators provide better translations for the
16358         "Written by ..." part of --version output.
16359         * lib/version-etc.h: Include stdarg.h.
16360         (version_etc_copyright): Declare as readonly.
16361         (version_etc): Make this function variadic with a NULL-terminated list
16362         of author name strings.
16363         (version_etc_va): New declaration.
16364         * lib/version-etc.c: Include stdarg.h, stdlib.h.
16365         (version_etc_copyright): Declare as readonly.
16366         (version_etc_va): New function. Provide a different translatable string
16367         for each possible number of authors < 10. Abbreviate when there are 10
16368         authors or more.
16369         (version_etc): Make this function variadic. Call version_etc_va.
16370         Suggestion from Gary V. Vaughan.
16371
16372         * lib/long-options.h (parse_long_options): Change prototype: the
16373         authors string is moved to the end and becomes variadic.
16374         * lib/long-options.c: Include stdarg.h.
16375         (parse_long_options): Make this function variadic, too.
16376         Call version_etc_va, not version_etc.
16377
16378 2003-10-06  Bruno Haible  <bruno@clisp.org>
16379
16380         * modules/version-etc-2: Remove file.
16381         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
16382
16383 2003-10-06  Bruno Haible  <bruno@clisp.org>
16384
16385         * modules/fatal-signal: New file.
16386         * MODULES.html.sh (func_all_modules): Add fatal-signal.
16387
16388 2003-10-06  Bruno Haible  <bruno@clisp.org>
16389
16390         * m4/fatal-signal.m4: New file.
16391         * m4/signalblocking.m4: New file, from GNU gettext.
16392
16393 2003-10-06  Bruno Haible  <bruno@clisp.org>
16394
16395         * lib/version-etc-2.h: Remove file.
16396         * lib/version-etc-2.c: Remove file.
16397
16398 2003-10-06  Bruno Haible  <bruno@clisp.org>
16399
16400         * lib/fatal-signal.h: New file, from GNU gettext.
16401         * lib/fatal-signal.c: New file, from GNU gettext.
16402
16403 2003-10-05  Paul Eggert  <eggert@twinsun.com>
16404
16405         * README: Rework advice for preventing empty .o files.
16406         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
16407         not <sys/types.h>.
16408
16409 2003-10-04  Karl Berry  <karl@gnu.org>
16410
16411         * lib/argp*: update from libc.
16412
16413 2003-10-04  Karl Berry  <karl@gnu.org>
16414
16415         * config/config.{guess,sub}: update from config.
16416
16417 2003-10-02  Bruno Haible  <bruno@clisp.org>
16418
16419         * modules/lchown (Include): Add lchown.h.
16420         * modules/time_r (Include): Use "..." syntax.
16421         * modules/xgetdomainname (Include): Add xgetdomainname.h.
16422
16423 2003-10-01  Simon Josefsson  <jas@extundo.com>
16424
16425         * MODULES.html.sh (func_all_modules): Move gethostname from section
16426         'based on' to section 'lacking' POSIX:2001.
16427
16428 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
16429
16430         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
16431         to output mode on the same stream.
16432
16433 2003-09-29  Paul Eggert  <eggert@twinsun.com>
16434
16435         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
16436         Fix arg typo in previous patch.
16437
16438 2003-09-28  Jim Meyering  <jim@meyering.net>
16439
16440         * lib/error.c: Correct cpp indentation.
16441
16442 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16443
16444         * modules/free: New file.
16445
16446 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16447
16448         * m4/free.m4: New file.
16449
16450 2003-09-27  Paul Eggert  <eggert@twinsun.com>
16451
16452         * lib/minmax.h (MIN, MAX)
16453         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
16454         Omit the special code that used __typeof__, since we worry that
16455         it could be more trouble than it's worth.  See:
16456         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
16457         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
16458
16459         * lib/free.c: New file.
16460
16461 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
16462
16463         Trivial fixes to Makefile.am parts of module listings.
16464         * modules/strstr: Append strstr.h to lib_SOURCES.
16465         * modules/strcase: Likewise, for strcase.h.
16466
16467 2003-09-27  Karl Berry  <karl@gnu.org>
16468
16469         * config/mkinstalldirs: update from automake.
16470
16471 2003-09-26  Paul Eggert  <eggert@twinsun.com>
16472
16473         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
16474         (error_tail): Do not loop, reallocating temporary buffer, since
16475         the output cannot contain more wide characters than the input
16476         contains bytes, the size must be big enough already.  This avoids
16477         one potential size overflow calculation.  Check for size overflow
16478         when calculating temporary buffer size.  Free temporary buffer
16479         when done, if it was allocated with malloc; this plugs a memory
16480         leak.  Remove casts from void * to pointers, that are no longer
16481         needed now that we're assuming C89 or better.
16482
16483         Merge error changes from glibc.
16484
16485         * lib/error.c, error.h: Update copyright notice header to match glibc.
16486         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
16487         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
16488         Disable cancellation while printing error.
16489         * lib/error.h: Prepend __ to parameter names.
16490
16491 2003-09-26  Jim Meyering  <jim@meyering.net>
16492
16493         * lib/error.c (error_tail): Move some declarations
16494         into inner scope where the local variables are used.
16495
16496 2003-09-26  Bruno Haible  <bruno@clisp.org>
16497
16498         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
16499         stpncpy().
16500         Don't define stpncpy through config.h; it's now done through stpncpy.h.
16501
16502 2003-09-26  Bruno Haible  <bruno@clisp.org>
16503
16504         * lib/stpncpy.h (gnu_stpncpy): New declaration.
16505         (stpncpy): Define as alias for gnu_stpncpy.
16506         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
16507
16508 2003-09-25  Simon Josefsson  <jas@extundo.com>
16509
16510         * lib/xgetdomainname.h: New file.
16511         * lib/xgetdomainname.c: New file.
16512
16513 2003-09-25  Simon Josefsson  <jas@extundo.com>
16514             Bruno Haible  <bruno@clisp.org>
16515
16516         * modules/getdomainname: New file.
16517         * modules/xgetdomainname: New file.
16518         * MODULES.html.sh (func_all_modules): Add getdomainname,
16519         xgetdomainname.
16520
16521 2003-09-25  Simon Josefsson  <jas@extundo.com>
16522             Bruno Haible  <bruno@clisp.org>
16523
16524         * m4/getdomainname.m4: New file.
16525
16526 2003-09-25  Simon Josefsson  <jas@extundo.com>
16527             Bruno Haible  <bruno@clisp.org>
16528
16529         * lib/getdomainname.h: New file.
16530         * lib/getdomainname.c: New file.
16531
16532 2003-09-25  Karl Berry  <karl@gnu.org>
16533
16534         * lib/argp-fmtstream.c, argp-help.c: update from libc.
16535
16536 2003-09-25  Karl Berry  <karl@gnu.org>
16537
16538         * config/install-sh: update from automake.
16539
16540 2003-09-25  Bruno Haible  <bruno@clisp.org>
16541
16542         * modules/version-etc-2: New file, from modules/version-etc with
16543         modifications.
16544         * MODULES.html.sh (func_all_modules): Add version-etc-2.
16545
16546 2003-09-25  Bruno Haible  <bruno@clisp.org>
16547
16548         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
16549         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
16550
16551 2003-09-24  Simon Josefsson  <jas@extundo.com>
16552
16553         * modules/xgethostname: Add xgethostname.h.
16554
16555 2003-09-24  Paul Eggert  <eggert@twinsun.com>
16556
16557         * lib/linebuffer.c (freebuffer): Don't free the argument, just
16558         the buffer associated with the argument.  Bug reported by
16559         Simon Josefsson.
16560
16561 2003-09-24  Paul Eggert  <eggert@twinsun.com>
16562
16563         * README: Document assumptions that 'int' is at least 32 bits
16564         wide, that integer arithmetic is 2's complement without overflow,
16565         that there are no holes in integer values, that adding sizes of
16566         two nonoverlapping objects can't overflow, and that all-bits-zero
16567         yields scalar zero.  Fix spelling and capitalization typos.
16568
16569 2003-09-19  Karl Berry  <karl@gnu.org>
16570
16571         * lib/argp.h: update from libc.
16572
16573 2003-09-17  Paul Eggert  <eggert@twinsun.com>
16574
16575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
16576         to avoid spurious warnings like "AC_RUN_IFELSE was called before
16577         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
16578
16579 2003-09-17  Paul Eggert  <eggert@twinsun.com>
16580
16581         * gnulib-tool: Use "test -h", not "test -L", for portability
16582         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
16583         (tags_regexp): Remove, since \| doesn't conform to POSIX.
16584         (sed_extract_prog): Issue s commands one-by-one, rather than
16585         using \| in one s command.
16586
16587 2003-09-16  Paul Eggert  <eggert@twinsun.com>
16588
16589         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
16590         input error, instead of returning NULL the next time we are called
16591         (and therefore losing track of errno).
16592
16593 2003-09-16  Bruno Haible  <bruno@clisp.org>
16594
16595         * gnulib-tool (func_create_testdir): Warn about duplicated
16596         dependencies.
16597
16598 2003-09-15  Paul Eggert  <eggert@twinsun.com>
16599
16600         * modules/argmatch, modules/fatal, modules/obstack,
16601         modules/xalloc, modules/xgethostname: Sort dependencies by
16602         importance, not alphabetically.
16603
16604 2003-09-15  Paul Eggert  <eggert@twinsun.com>
16605
16606         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
16607         fails, so that the caller gets the proper errno.
16608
16609         * lib/readutmp.c (read_utmp): Likewise.
16610         Check for fstat error.  Close stream and free storage
16611         when failing.
16612
16613 2003-09-14  Karl Berry  <karl@gnu.org>
16614
16615         * config/srclist.txt (strdup.c): disable for c89 changes.
16616
16617 2003-09-14  Jim Meyering  <jim@meyering.net>
16618
16619         * lib/getloadavg.c: Correct cpp indentation.
16620         * lib/strdup.c: Likewise.
16621         * lib/vasnprintf.c: Likewise.
16622
16623 2003-09-14  Bruno Haible  <bruno@clisp.org>
16624
16625         * modules/fwriteerror: New file.
16626         * MODULES.html.sh (func_all_modules): Add fwriteerror.
16627
16628 2003-09-14  Bruno Haible  <bruno@clisp.org>
16629
16630         * lib/fwriteerror.h: New file.
16631         * lib/fwriteerror.c: New file.
16632
16633 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16634
16635         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
16636         modules/xgethostname, modules/xalloc: Depend on exit.
16637
16638 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16639
16640         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
16641
16642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
16643         and AC_MINIX, too, so that their extensions are available.
16644
16645         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
16646         This macro has been superseded by gl_BACKUPFILE.
16647
16648         More patches to assume C89 or better.
16649
16650         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
16651
16652         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
16653         unconditionally.
16654         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
16655         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
16656         Include <string.h>, <stdlib.h> unconditionally.
16657         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
16658         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
16659         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
16660         headers or for string.h.
16661         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
16662         or strtoul.
16663
16664         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
16665         headers.
16666         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
16667         * m4/userspec.m4 (gl_USERSPEC): Likewise.
16668         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
16669         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
16670         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16671         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
16672         memcpy, memset.
16673         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
16674         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
16675         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
16676         strtol.
16677         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
16678         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
16679         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
16680         strtoul.
16681
16682 2003-09-12  Paul Eggert  <eggert@twinsun.com>
16683
16684         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
16685         * lib/obstack.c [!defined _LIBC]: Likewise.
16686         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
16687         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
16688         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
16689
16690         More changes to assume C89 or better.
16691
16692         * lib/error.c (error_tail): Assume vprintf.
16693
16694         * lib/argmatch.c (getenv): Remove decl.
16695         * lib/progreloc.c (get_full_program_name): Define via prototype.
16696         * lib/setenv.c (clearenv): Likewise.
16697         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
16698         needed.
16699         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
16700         (malloc, memcpy): Remove decls.
16701         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
16702         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
16703         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
16704         (memcpy): Remove macro.
16705         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
16706         (__P): Remove.  All uses removed.
16707         (PTR): Remove.  All uses changed to void *.
16708         (CHAR_BIT, NULL): Remove.
16709         (spaces, zeros, memset_space, memset_zero)
16710         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
16711         Remove.
16712         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
16713         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
16714         Define with prototype.
16715         Remove now-unnecessary prototype decl.
16716         (extra_args_spec): Assume ANSI C.  All uses changed.
16717         (extra_args_spec_iso): Remove.
16718         (my_strftime, emacs_strftimeu): Define via prototype.
16719         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
16720         unconditionally.
16721         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
16722         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
16723         (strtoul, strtol): Remove decls.
16724         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
16725         LONG_MAX): Remove.
16726         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
16727         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
16728         (LOCALE_PARAM_PROTO): New macro.
16729         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
16730         (INTERNAL (strtol), strtol): Define with a prototype.
16731         (PARAMS): Remove.  All uses removed.
16732         * lib/tempname.c: Include <string.h> unconditionally.
16733         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
16734         * lib/xgethostname.c (main): Define with a prototype.
16735         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
16736         Include <stdlib.h> unconditionally.
16737         (calloc, malloc, realloc, free): Remove decls.
16738         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
16739         Include <stdlib.h> unconditionally.  Sort include file names.
16740         (strtod): Remove.
16741         (xstrtod): Define with a prototype.
16742         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
16743         (strtol, strtoul): Remove decls.
16744
16745 2003-09-11  Paul Eggert  <eggert@twinsun.com>
16746
16747         More patches to assume C89 or better.
16748         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
16749         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
16750         string.h, memchr, STDC_HEADERS.
16751
16752 2003-09-11  Paul Eggert  <eggert@twinsun.com>
16753
16754         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
16755         Include <stdlib.h>, <string.h> unconditionally.
16756         Remove now-unnecessary cast to char *.
16757         * lib/strnlen.c: Include <string.h> unconditionally.
16758         * lib/yesno.c (yesno): Define with a prototype.
16759
16760 2003-09-11  Bruno Haible  <bruno@clisp.org>
16761
16762         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
16763
16764 2003-09-10  Jim Meyering  <jim@meyering.net>
16765
16766         * lib/error.c: Correct indentation of cpp directives.
16767
16768 2003-09-10  Bruno Haible  <bruno@clisp.org>
16769
16770         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
16771         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
16772         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
16773         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
16774         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
16775         <stdlib.h> and <string.h> checks.
16776         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
16777         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
16778
16779 2003-09-10  Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/strcspn.c: Include <string.h> unconditionally.
16782         * lib/strpbrk.c: Include <string.h> unconditionally.
16783         * lib/strstr.c: Include <string.h> unconditionally.
16784         * lib/unicodeio.c: Include <string.h> unconditionally.
16785         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
16786         * lib/unsetenv.c: Likewise.
16787         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
16788         * lib/yesno.c: Include <stdlib.h> unconditionally.
16789         (rpmatch): Add prototype.
16790
16791 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16792
16793         More patches to assume C89 or better.
16794         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
16795         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
16796         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
16797         or for string.h.
16798         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
16799         stdlib.h.
16800         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
16801         C headers.
16802         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
16803         string.h.
16804         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
16805         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
16806         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
16807         or for string.h.
16808         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
16809         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
16810         C headers.
16811         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
16812         memcpy.
16813         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
16814         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
16815         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
16816         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
16817         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
16818         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
16819         string.h, free.
16820         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
16821         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
16822         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
16823         C headers, or for string.h.
16824         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
16825         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
16826         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
16827         headers, memory.h, stdlib.h, string.h, strings.h.
16828         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
16829         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
16830         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
16831         strchr.
16832         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
16833         headers, memory.h, string.h.
16834         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
16835         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
16836         free.
16837         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
16838         headers.
16839         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
16840         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
16841         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
16842         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
16843         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
16844
16845 2003-09-09  Paul Eggert  <eggert@twinsun.com>
16846
16847         More K&R removal.
16848
16849         * lib/acosl.c (main): Use a prototype.
16850         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
16851         tanl.c: Likewise.
16852
16853         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
16854
16855         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
16856         (getopt, etopt_long, getopt_long_only, _getopt_internal)
16857         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
16858         with a prototype.
16859         * lib/getopt.c (const): Remove macro.
16860         Include <string.h> unconditionally.
16861         (my_index): Remove; all uses changed to strchr.
16862         (strlen): Remove decl.
16863         (exchange): Remove forward decl; no longer needed.
16864         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
16865         Define with prototype.
16866         * lib/getopt1.c (const): Remove macro.
16867         (getopt_long, getopt_long_only, main): Define with prototype.
16868
16869         * lib/getugroups.c: Include <string.h> unconditionally.
16870
16871         * lib/getusershell.c: Include <stdlib.h> unconditionally.
16872         (getusershell, setusershell, endusershell, readname, main):
16873         Define with prototypes.
16874
16875         * lib/group-member.c: Include group-member.h first.
16876         Include <stdlib.h> unconditionally.
16877
16878         * lib/hard-locale.c: Include hard-locale.h first.
16879         Include <stdlib.h>, <string.h> unconditionally.
16880
16881         * lib/hash.c (free, malloc): Remove decls.
16882         Include <stdlib.h> unconditionally.
16883
16884         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
16885         (getenv): Do not declare.
16886
16887         * lib/idcache.c: Include <string.h> unconditionally.
16888
16889         * lib/long-options.c: Include long-options.h first, to test interface.
16890         Include <stdlib.h> unconditionally.
16891
16892         * lib/makepath.c: Include makepath.h first, to test interface.
16893         Include <stdlib.h> and <string.h> unconditionally.
16894
16895         * lib/linebuffer.c: Include <stdlib.h>.
16896         (free): Remove decl.
16897
16898         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
16899         stddef.h. rpl_malloc returns void *, not char *.
16900         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
16901         prototype.
16902
16903         * lib/md5.h: Include <limits.h> unconditionally.
16904         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
16905         (__P): Remove; all uses removed.
16906         * lib/md5.c: Include "md5.h" first.
16907         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
16908         md5_buffer, md5_process_bytes, md5_process_block):
16909         Define with prototypes.
16910         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
16911         * lib/sha.c: Include "sha.h" first.
16912         Include <stdlib.h>, <string.h> unconditionally.
16913
16914         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
16915         * lib/memcmp.c (__ptr_t): Likewise.
16916         * lib/memrchr.c (__ptr_t): Likewise.
16917         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
16918         Include <string.h> unconditionally.
16919         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
16920         * lib/memchr.c: Include <stdlib.h> unconditionally.
16921         * lib/memchr.c (LONG_MAX): Remove.
16922         * lib/memrchr.c (LONG_MAX): Likewise.
16923         * lib/memchr.c (__memchr): Define via a prototype.
16924         * lib/memrchr.c (__memrchr): Likewise.
16925         * lib/memcmp.c (__P): Remove, and remove all uses.
16926         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
16927         Remove forward decls; no longer needed.
16928         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
16929         Use types required by C89 in prototype.
16930
16931         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
16932         * lib/savedir.c: Likewise.
16933         * lib/mkdir.c (free): Remove decl.
16934         * lib/rmdir.c (rmdir): Define with a prototype.
16935         * lib/savedir.c: Include savedir.h first, to test interface.
16936
16937         * lib/mktime.c (STDC_HEADERS): Remove.
16938         Include <stdlib.h>, <string.h> unconditionally.
16939
16940         * lib/modechange.c: Include <stdlib.h> unconditionally.
16941         (malloc): Remove decl.
16942
16943         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
16944         (free): Remove decl.
16945
16946         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
16947         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
16948         (This type really should be intptr_t, but that's a C99ism.)
16949         (_obstack_memcpy): Remove: all uses changed to memcpy.
16950         Include <string.h> unconditionally.
16951         (struct obstack): Assume __STDC__ for types of members
16952         chunkfun, freefun, extra_arg.
16953         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
16954         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
16955         obstack_begin, obstack_specify_allocation,
16956         obstack_specify_allocation_with_arg, obstack_chunkfun,
16957         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
16958         Remove unprototyped decls and the macros that use them.
16959         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
16960         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
16961         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
16962         (defined __STDC__ && __STDC__)]:
16963         Remove nonprototyped code.
16964         Include <stdlib.h> unconditionally.
16965         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
16966         _obstack_allocated_p, _obstack_free, obstack_free,
16967         _obstack_memory_used, print_and_abort):
16968         Define using prototypes.
16969         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
16970         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
16971         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
16972         obstack_next_free, obstack_object_size, obstack_room) [0]:
16973         Remove unused, unprototyped code.
16974
16975         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
16976
16977         * lib/physmem.c (physmem_total, physmem_available, main): Define
16978         with prototypes.
16979
16980         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
16981         (main): Define with a prototype.
16982
16983         * lib/posixver.c (getenv): Remove decl.
16984
16985         * lib/putenv.c (malloc): Returns void *, not char *.
16986         Include <string.h> unconditionally.
16987         (strchr, memcpy, NULL): Do not define.
16988
16989         * lib/readtokens.c: Include readtokens.h first, to test interface.
16990         Include <stdlib.h>, <string.h> unconditionally.
16991         (init_tokenbuffer): Define with a prototype.
16992
16993         * lib/regex.c (PARAMS): Remove.  All uses removed.
16994         All uses of _RE_ARGS removed, too.
16995         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16996         unconditionally.
16997         (bzero): Assume memset exists.
16998         (memcmp, memcpy, NULL): Remove.
16999         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
17000         char, or assignments to local vars of type signed char.
17001         (init_syntax_once, PREFIX(extract_number_and_incr),
17002         PREFIX(print_partial_compiled_pattern),
17003         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
17004         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
17005         PREFIX(regex_grow_registers), PREFIX(regex_compile),
17006         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
17007         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
17008         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
17009         wcs_compile_range, byte_compile_range, truncate_wchar,
17010         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
17011         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
17012         count_mbs_length, wcs_re_match_2_internal,
17013         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
17014         PREFIX(alt_match_null_string_p),
17015         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
17016         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
17017         regfree, PREFIX(extract_number)): Define with prototype.  Remove
17018         now-unnecessary declaration, if any.
17019         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
17020         regcomp, regexec):
17021         Remove now-unnecessary casts among pointer types.
17022         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
17023
17024         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
17025         (free): Remove decl.
17026
17027         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
17028
17029         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
17030         (free): Remove decl.
17031
17032         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
17033         * lib/xgetcwd.c: Likewise.
17034
17035         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
17036         (free): Remove decl.
17037
17038         * lib/strchrnul.c (strchrnul): Define with a prototype.
17039         Fix bug: c_in was not converted to char before searching.
17040
17041         The following changes are not K&R related:
17042
17043         * lib/group-member.h: Include <sys/types.h>, so that this file is
17044         self-contained.
17045         * lib/makepath.h: Likewise.
17046
17047         * lib/getusershell.c (readname, default_index, line_size, readname):
17048         Use size_t, not int, for sizes.
17049         (readname): If the size overflows, report an error instead of
17050         looping forever.
17051
17052 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17053
17054         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
17055         libc.
17056
17057 2003-09-09  Paul Eggert  <eggert@twinsun.com>
17058
17059         * README: New section: portability guidelines.
17060
17061 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
17062
17063         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
17064         C89 spec.
17065
17066 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
17067
17068         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
17069
17070 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17071
17072         Assume C89 or better; remove K&R cruft.
17073         A few of these changes were first proposed by Derek Robert Price
17074         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
17075
17076         * lib/addext.c: Include <string.h> unconditionally.
17077         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
17078         Don't declare getenv or malloc.
17079
17080         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
17081         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
17082         (NULL): Remove.
17083         (find_stack_direction, alloca): Use prototypes.
17084
17085         * lib/atexit.c (atexit): Define using a prototype.
17086
17087         * lib/basename.c, dirname.c, stripslash.c:
17088         Include <string.h> unconditionally.
17089
17090         * lib/bcopy.c: Include <stddef.h>.
17091         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
17092
17093         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
17094
17095         * lib/error.h (error, error_at_line, error_print_progname)
17096         [! (defined (__STDC__) && __STDC__)]: Remove decls.
17097         * lib/error.c: Include error.h first, to check interface.
17098         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17099         (VA_START): Remove; all uses changeed to va_start.
17100         (exit, strerror): Remove decls.
17101         (error_print_progname): Prototype uncondionally.
17102         Don't include <errno.h>; no longer needed.
17103         (private_strerror): Remove.
17104         (error_tail): Always define.
17105         (error, error_at_line): Assume C89 or better; always use prototypes.
17106         * lib/fatal.c: Include "fatal.h" first, to test interface.
17107         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17108         (VA_START): Remove; all uses changed to va_start.
17109         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
17110         this case.
17111         (exit): Remove decl.
17112         (fatal): Prototype unconditionally.  Assume va_start works.
17113         Abort at end, to pacify gcc.
17114
17115         * lib/euidaccess.c (main): Define with a prototype.
17116
17117         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
17118
17119         * lib/exitfail.c: Include <stdlib.h> unconditionally.
17120
17121         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
17122         prototypes.
17123         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
17124         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
17125         (getenv): Remove decl.
17126         (fnmatch): Define using a prototype.
17127         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
17128         (FCT): Define using a prototype.
17129
17130         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
17131
17132         * lib/gethostname.c: Include <stddef.h>.
17133         (gethostname): Define with prototype.  Length is size_t, not int.
17134
17135 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17136
17137         Assume C89 or better; remove K&R cruft.
17138         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
17139         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
17140         string.h, getenv, malloc.
17141         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
17142         headers.
17143         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
17144         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
17145         do not check for strerror.
17146         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
17147         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
17148         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
17149         do not check for doprnt or vprintf.
17150         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
17151         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
17152
17153 2003-09-08  Paul Eggert  <eggert@twinsun.com>
17154
17155         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
17156         getversion.c should have been removed then, but was accidentally
17157         preserved.
17158
17159         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
17160         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
17161
17162 2003-09-08  Karl Berry  <karl@gnu.org>
17163
17164         * config/config.sub, config.guess, srclistvars.sh: update from savannah
17165                 config, forget about prep.
17166
17167         * config/depcomp, missing: update from automake.
17168
17169 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17170
17171         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
17172         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17173
17174 2003-09-07  Paul Eggert  <eggert@twinsun.com>
17175
17176         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
17177         copy_tm_result.  Bug reported by Simon Josefsson in
17178         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17179
17180 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17181
17182         * m4/time_r.m4: New file.
17183         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
17184         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
17185         is. Check for timegm declaration.
17186         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
17187         Do not check for gmtime_r.
17188         Replace mktime if __mktime_internal does not exist and if mktime
17189         hasn't been replaced already.
17190
17191 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17192
17193         * lib/time_r.c, lib/time_r.h: New files.
17194
17195         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
17196         __localtime_r.
17197         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
17198         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
17199
17200         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
17201         __gmtime_r.
17202         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
17203         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
17204         Include <time_r.h>.
17205
17206         * lib/timegm.c: Switch to glibc implementation, with the following
17207         changes:
17208         [defined HAVE_CONFIG_H]: Include <config.h>.
17209         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
17210         (__mktime_internal) [!defined _LIBC]: New decl.
17211         (__gmtime_r) [!defined _LIBC]: New macro and function.
17212         (timegm): Use a prototype, since gnulib assumes C89.
17213         Do not bother declaring tmp to be const, as it's not really usefu.
17214         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
17215         (timegm): Declare only if HAVE_DECL_TIMEGM.
17216
17217 2003-09-06  Paul Eggert  <eggert@twinsun.com>
17218
17219         * MODULES.html.sh (func_all_modules): Add time_r.
17220         * modules/time_r: New file.
17221         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
17222         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
17223
17224 2003-09-03  Paul Eggert  <eggert@twinsun.com>
17225
17226         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
17227         Bug reported by Lute Kamstra in
17228         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
17229
17230         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
17231         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
17232         course with correspondingly smaller numbers for tomorrow and
17233         yesterday.  From Tadayoshi Funaba.  Originally installed into
17234         sh-utils on 1999-08-07, but the patch got lost (I guess during the
17235         coreutils merge?).
17236
17237 2003-08-31  Simon Josefsson  <jas@extundo.com>
17238
17239         * modules/timegm: New file.
17240         * MODULES.html.sh (func_all_modules): Add timegm.
17241
17242 2003-08-31  Simon Josefsson  <jas@extundo.com>
17243
17244         * m4/timegm.m4: New file.
17245
17246 2003-08-31  Simon Josefsson  <jas@extundo.com>
17247
17248         * lib/timegm.h: New file.
17249         * lib/timegm.c: New file.  Based on
17250         wget-1.8.2/src/http.c:mktime_from_utc.
17251
17252 2003-08-31  Karl Berry  <karl@gnu.org>
17253
17254         * lib/argp.h: update from libc.
17255
17256 2003-08-28  Bruno Haible  <bruno@clisp.org>
17257
17258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
17259         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
17260         followed by '#define fnmatch fnmatch_posix' gives an error.
17261
17262 2003-08-28  Bruno Haible  <bruno@clisp.org>
17263
17264         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
17265         warning on QNX, which defines O_BINARY to 000000.
17266
17267 2003-08-27  Jim Meyering  <jim@meyering.net>
17268
17269         * m4/mkstemp.m4: Require that the system mkstemp be able to create
17270         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
17271         would fail after 32.  Reported by Danny Levinson.  Details here:
17272         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
17273
17274 2003-08-24  Bruno Haible  <bruno@clisp.org>
17275
17276         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
17277         MSVC7 <stdio.h> is included later.
17278
17279 2003-08-22  Simon Josefsson  <jas@extundo.com>
17280
17281         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
17282
17283 2003-08-20  Karl Berry  <karl@gnu.org>
17284
17285         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
17286
17287 2003-08-20  Bruno Haible  <bruno@clisp.org>
17288
17289         * modules/progname: New file.
17290         * MODULES.html.sh (func_all_modules): Add progname.
17291
17292 2003-08-20  Bruno Haible  <bruno@clisp.org>
17293
17294         * lib/progname.h: New file, from GNU gettext.
17295         * lib/progname.c: New file, from GNU gettext.
17296         * lib/progreloc.c: New file, from GNU gettext.
17297
17298 2003-08-19  Jim Meyering  <jim@meyering.net>
17299
17300         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
17301         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
17302
17303 2003-08-19  Bruno Haible  <bruno@clisp.org>
17304
17305         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
17306         more.
17307
17308 2003-08-19  Bruno Haible  <bruno@clisp.org>
17309
17310         * lib/xstrdup.c: Assume <string.h> exists.
17311
17312 2003-08-18  Paul Eggert  <eggert@twinsun.com>
17313
17314         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
17315         in makefile rules.
17316
17317 2003-08-18  Jim Meyering  <jim@meyering.net>
17318
17319         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
17320         * m4/lib-ld.m4: Likewise.
17321
17322 2003-08-18  Jim Meyering  <jim@meyering.net>
17323
17324         * lib/setenv.h: Indent nested cpp directive.
17325         * lib/vasnprintf.c: Remove trailing blanks.
17326
17327 2003-08-17  Simon Josefsson  <jas@extundo.com>
17328
17329         * modules/xstrndup: New file.
17330         * MODULES.html.sh (func_all_modules): Add xstrndup.
17331
17332 2003-08-17  Simon Josefsson  <jas@extundo.com>
17333
17334         * modules/argp: Fix autoconf macro name. Add more dependencies.
17335
17336 2003-08-17  Simon Josefsson  <jas@extundo.com>
17337
17338         * m4/xstrndup.m4: New file.
17339
17340 2003-08-17  Simon Josefsson  <jas@extundo.com>
17341
17342         * m4/argp.m4: New file.
17343
17344 2003-08-17  Simon Josefsson  <jas@extundo.com>
17345             Bruno Haible  <bruno@clisp.org>
17346
17347         * lib/xstrndup.h: New file.
17348         * lib/xstrndup.c: New file.
17349
17350 2003-08-17  Bruno Haible  <bruno@clisp.org>
17351
17352         * modules/strndup (Files, Include): Add lib/strndup.h.
17353
17354 2003-08-17  Bruno Haible  <bruno@clisp.org>
17355
17356         * modules/euidaccess (Files): Add lib/euidaccess.h.
17357
17358 2003-08-17  Bruno Haible  <bruno@clisp.org>
17359
17360         * lib/strndup.h: New file.
17361
17362 2003-08-17  Bruno Haible  <bruno@clisp.org>
17363
17364         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
17365         like AC_GNU_SOURCE.
17366         * modules/extensions (configure.ac): Comment out the invocation of
17367         gl_USE_SYSTEM_EXTENSIONS.
17368
17369 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17370
17371         Merges from coreutils, etc.
17372         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
17373         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
17374         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
17375         fixing a typo.
17376         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
17377         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
17378
17379 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17380
17381         Document merge from coreutils.
17382         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
17383         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
17384         * modules/utime: Add m4/utimes-null.m4.
17385
17386 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17387
17388         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
17389         space, undoing this 2003-08-12 change:
17390         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17391
17392 2003-08-16  Paul Eggert  <eggert@twinsun.com>
17393
17394         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
17395         strtoul.c from libc, undoing this 2003-08-12 change:
17396         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17397
17398 2003-08-16  Jim Meyering  <jim@meyering.net>
17399
17400         Merges from coreutils.
17401         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
17402         prefix.  Adjust cache variables similarly.  Create 500 rather than
17403         just 300 files, to exercise bug on Darwin6.5, too.
17404         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
17405         $missing_dir.
17406         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
17407         AM_SYS_POSIX_TERMIOS.
17408         Reported by mkc@mathdogs.com.
17409         Also change use of $am_cv_sys_posix_termios
17410         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
17411         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
17412         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
17413         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
17414         in /proc/mounts until it finds one with matching device number.  This
17415         is unnecessary when the FILE argument *is* a mount point.  No stat call
17416         is necessary in that case.  So, disable the statvfs-testing code on
17417         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
17418         as RedHat bug# 84846.
17419         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17420         to 1MB, so as not to render systems with no stack size limit (e.g.,
17421         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
17422         Include <unistd.h>.  On some systems,
17423         it is required for the definition of _SC_PAGESIZE.
17424
17425 2003-08-16  Jim Meyering  <jim@meyering.net>
17426
17427         Merge from coreutils.
17428         * lib/xstrtoimax.c: #else #if -> #elif.
17429         * lib/xstrtoumax.c: Likewise.
17430
17431 2003-08-16  Jim Meyering  <jim@meyering.net>
17432
17433         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
17434         * m4/utimes.m4: Removed.
17435         * m4/utimes-null.m4: Renamed from utimes.m4.
17436
17437         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17438         to 1MB, so as not to render systems with no stack size limit (e.g.,
17439         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
17440         Include <unistd.h>.  On some systems,
17441         it is required for the definition of _SC_PAGESIZE.
17442
17443 2003-08-16  Jim Meyering  <jim@meyering.net>
17444         and Paul Eggert  <eggert@cs.ucla.edu>
17445
17446         Merges from coreutils, etc.
17447
17448         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
17449         using the latest version from cvs.  This avoids problems with #line
17450         directives using a vendor (Sun) compiler.
17451         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
17452         Don't set GETGROUPS_LIB here; now it's
17453         done via getgroups.m4's wrapper function.
17454         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
17455         rather than just in sh-util/configure.in, so that the
17456         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
17457         same.
17458         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
17459         AC_FUNC_GETLOADAVG where to find getloadavg.c.
17460         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
17461         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
17462         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
17463         Remove code that is now done by the newly-required macros.
17464         Append $(EXEEXT) to DF_PROG.
17465         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
17466         Do not invoke or require the following here,
17467         since prereq.m4 or some gnulib .m4 now does this for us:
17468         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
17469         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
17470         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
17471         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
17472         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
17473         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
17474         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
17475         AC_FUNC_OBSTACK.
17476         Do not replace the following functions, as this is now the job
17477         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
17478         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
17479         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
17480         atexit getpass, strdup, getpagesize.
17481         Replace 'raise'.
17482         Do not check for the following functions, as this is now the job
17483         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
17484         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
17485         setregid.
17486         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
17487         Check for sys/sysctl.h.
17488         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
17489         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
17490         of checking for ssize_t ourselves.
17491
17492         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
17493         Require every macro that gnulib/modules/* suggests for us.
17494         (jm_PREREQ_ADDEXT): New macro.
17495         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
17496         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
17497
17498         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
17499         (gl_PHYSMEM): Use it.
17500         Also check for `table' function.
17501         Check for new headers and functions.
17502         Add check for sys/sysmp.h.
17503         With suggestions from Kaveh Ghazi.
17504         Ignore headers that are present but cannot be compiled.  This
17505         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
17506         C 5.4.
17507
17508 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17509
17510         Document merge from coreutils.
17511         * modules/userspec: Depend on posixver.
17512         * modules/strftime: Depend on tzset.
17513
17514 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17515
17516         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
17517         rather than tab, after '#' in shell-script copyright notices.
17518         Suggested by Bruno Haible.
17519
17520 2003-08-15  Paul Eggert  <eggert@twinsun.com>
17521
17522         * config/srclist-update: Use three spaces, rather than tab, after '#'
17523         in shell-script copyright notices.  Suggested by Bruno Haible.
17524         Remove unnecessary parenthesization in regular expression.
17525
17526 2003-08-15  Jim Meyering  <jim@meyering.net>
17527
17528         Merge from coreutils.
17529         * lib/xgethostname.c: Include <stdlib.h>.
17530         (xghostname): Don't exit for anything other than memory-related
17531         failure; just return NULL.
17532         * lib/userspec.c: Include "posixver.h".
17533         (parse_user_spec): Accept `.' as a separator only
17534         in pre-POSIX-200112 mode.
17535         * lib/strtoimax.c: Use #elif rather than #else #if.
17536         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
17537         Remove function, now that we can rely on a working tzset function.
17538         [!_LIBC]: Ensure that the required autoconf test has been run.
17539         [!defined _NL_CURRENT && HAVE_STRFTIME]:
17540         Use underlying_strftime for %r.
17541         * lib/sha.c: Merge in some clean-up and optimization changes from
17542         glibc.
17543         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
17544         Ensure that it is a multiple of 64.
17545         Rearrange loop exit tests so as to avoid performing an
17546         additional fread after encountering an error or EOF.
17547         * lib/realloc.c: Update copyright date.
17548
17549 2003-08-15  Jim Meyering  <jim@meyering.net>
17550         and Paul Eggert  <eggert@twinsun.com>
17551
17552         Merge from coreutils.
17553         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
17554         member but strut utmpx does not.  Needed for AIX 4.3.3.
17555         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
17556
17557 2003-08-15  Jim Meyering  <jim@meyering.net>
17558         and Paul Eggert  <eggert@cs.ucla.edu>
17559
17560         Merges from coreutils, etc.
17561         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
17562         Require gl_FUNC_TZSET_CLOBBER.
17563         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
17564         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
17565         members.
17566
17567 2003-08-14  Paul Eggert  <eggert@twinsun.com>
17568
17569         Help the merge from coreutils.
17570         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
17571         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
17572         * m4/tzset.m4: Use it too.
17573
17574 2003-08-14  Paul Eggert  <eggert@twinsun.com>
17575
17576         * modules/tzset: New file.
17577
17578 2003-08-14  Jim Meyering  <jim@meyering.net>
17579
17580         Merges from coreutils.
17581         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
17582         variable names, rather than @FNMATCH_H@.
17583         * modules/alloca: Likewise for $(ALLOCA_H).
17584
17585         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
17586         the three copies of the literal target, `fnmatch.h'.
17587         * modules/alloca (alloca.h): Likewise.
17588
17589 2003-08-14  Jim Meyering  <jim@meyering.net>
17590
17591         Merge from coreutils.
17592         * m4/tzset.m4: New file.
17593         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
17594         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
17595         otherwise, AIX 5.1 systems would end up using the latter.
17596         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
17597         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
17598         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
17599         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
17600
17601 2003-08-14  Jim Meyering  <jim@meyering.net>
17602
17603         Merge from coreutils.
17604         * lib/obstack.h: Whitespace changes.
17605         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
17606         and xcalloc return values.
17607         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
17608         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
17609         hang on OSF/1 5.1 for DIR on both local and remote file systems.
17610         Reported by (and fix confirmed by) Nelson H. F. Beebe.
17611         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
17612         error from mntctl.
17613         Use mntctl's return value to drive the entry-processing loop, since
17614         we can't rely on the value of the vmt_length member in the last
17615         entry.  On some systems doing so could result in exhausting
17616         virtual memory.  Based in part on a patch from Mike Jetzer.
17617
17618 2003-08-14  Jim Meyering  <jim@meyering.net>
17619         and Paul Eggert  <eggert@twinsun.com>
17620
17621         Merges from coreutils, plus other fixes.
17622         * lib/physmem.c: Merge in portability changes from gcc/libiberty
17623         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
17624         for credits and details.  Thanks to Kaveh Ghazi for helping
17625         to keep these files in sync.
17626         (ARRAY_SIZE): Define it.
17627         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
17628         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
17629         (memcasecmp): Don't assume size_t fits in unsigned int.
17630         Remove casts and duplicate code.
17631         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
17632         (memcpy): Remove definition.
17633         Merge in some clean-up and optimization changes from glibc.
17634         [BLOCKSIZE]: Move definition to top of file.
17635         Ensure that it is a multiple of 64.
17636         Rearrange loop exit tests so as to avoid performing an
17637         additional fread after encountering an error or EOF.
17638         * lib/md5.h (md5_uintptr): Define.
17639         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
17640         return to the initial working directory.  Preserve errno
17641         for caller.
17642         * lib/idcache.c: Include "xalloc.h".
17643         (xmalloc, xrealloc): Remove decls.
17644         (getuser): Remove casts no longer required in C89.
17645         * lib/human.c: Include stdio.h, for sprintf.
17646         * lib/group-member.c: Include "xalloc.h".
17647         (xmalloc, xrealloc): Remove decls.
17648         (get_group_info): Remove casts no longer required in C89.
17649         * lib/getusershell.c (readname): Remove casts no longer required in
17650         C89.
17651         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
17652         * lib/getline.c: Whitespace fix, from coreutils.
17653
17654 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17655
17656         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
17657         Check for isascii.
17658
17659         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
17660         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
17661         Undo previous (whitespace-only) change.
17662
17663 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17664
17665         * lib/exclude.c: Include <ctype.h>
17666         (IN_CTYPE_DOMAIN): New macro.
17667         (is_space): New fn.
17668         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
17669         and empty lines.
17670
17671         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
17672         Undo previous (whitespace-only) change.
17673
17674 2003-08-13  Paul Eggert  <eggert@twinsun.com>
17675
17676         * config/srclist-update: Change update back to the old behavior,
17677         leaving whitespace alone.  Use one 'sed' command rather than a
17678         pipeline.
17679         (fixlicense): Now a variable, not a function.
17680         (remove_trailing_blanks): Remove.
17681         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
17682         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
17683         Undo previous (whitespace-only) change.
17684
17685 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17686
17687         Merge from coreutils.
17688         * modules/euidaccess: Add lib_SOURCES, include for new
17689         file euidaccess.h
17690
17691 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17692
17693         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
17694         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
17695         Normalize leading white space and remove trailing white space.
17696
17697         Merge from coreutils
17698         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
17699
17700         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
17701         0.12.1.  These files are now being upgraded automatically by
17702         ../config/srclist-update.
17703
17704 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17705
17706         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
17707         Normalize leading white space and remove trailing white space.
17708         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
17709         notice, as per ../config/srclist-update.
17710
17711         Merge from coreutils.
17712         * lib/euidaccess.h: New file.
17713         * lib/euidaccess.c: Include it.
17714         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
17715         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
17716         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
17717
17718 2003-08-12  Paul Eggert  <eggert@twinsun.com>
17719
17720         * config/srclist-update: Add copyright notice.
17721         (remove_id_lines, remove_trailing_blanks): New constants.
17722         (fixfile): Use them to normalize spacing a bit in copied files.
17723         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
17724         Normalize leading white space and remove trailing white space.
17725
17726         * config/texinfo.tex: Sync with texinfo.
17727
17728         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
17729         strtoul.c from libc, to merge coreutils whitespace changes.
17730
17731         * config/srclist.txt: Get the following m4 files from gettext:
17732         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
17733         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
17734         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
17735         wint_t.m4.
17736
17737 2003-08-12  Karl Berry  <karl@gnu.org>
17738
17739         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
17740         been made.
17741
17742 2003-08-11  Paul Eggert  <eggert@twinsun.com>
17743
17744         * modules/gnu-source, m4/gnu-source.m4:
17745         Remove; we're assuming Autoconf 2.54 or later now.
17746         Suggested by Bruno Haible.
17747         * MODULES.html.sh (func_all_modules): Remove gnu-source.
17748
17749 2003-08-11  Bruno Haible  <bruno@clisp.org>
17750
17751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
17752
17753 2003-08-11  Bruno Haible  <bruno@clisp.org>
17754
17755         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
17756         (vasnprintf): Use it instead of wcslen.
17757
17758 2003-08-11  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
17761         value to ensure that _Bool promotes to int. Use #define for _Bool when
17762         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
17763
17764 2003-08-10  Karl Berry  <karl@gnu.org>
17765
17766         * lib/regex.h: update from libc (whitespace fix).
17767
17768 2003-08-09  Paul Eggert  <eggert@twinsun.com>
17769
17770         Merge some files from coreutils.  These changes were
17771         originally made by Jim Meyering.
17772         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
17773         many older Unixes require this.
17774         * lib/alloca.c (alloca): Remove cast to argument of free;
17775         no longer needed in C89.
17776         * lib/alloca_.h, regex.h: Fix white space to match
17777         what GNU indent does.
17778
17779 2003-08-09  Paul Eggert  <eggert@twinsun.com>
17780
17781         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
17782         apparently Emacs's Unicode mode got confused before my 2003-08-05
17783         checkin.
17784
17785 2003-08-08  Paul Eggert  <eggert@twinsun.com>
17786
17787         * m4/extensions.m4: New file.
17788         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
17789         Require gl_USE_SYSTEM_EXTENSIONS.
17790         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
17791         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
17792
17793 2003-08-08  Paul Eggert  <eggert@twinsun.com>
17794
17795         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
17796         * modules/extensions, modules/gnu-source: New files.
17797         * modules/timespec, modules/unlocked-io: Depend on extensions.
17798
17799 2003-08-07  Paul Eggert  <eggert@twinsun.com>
17800
17801         * modules/restrict: New file.
17802         * MODULES.html.sh (func_all_modules): Add restrict.
17803         * modules/regex: Depend on restrict.
17804
17805 2003-08-07  Paul Eggert  <eggert@twinsun.com>
17806
17807         * m4/restrict.m4: New file.
17808         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
17809
17810 2003-08-07  Bruno Haible  <bruno@clisp.org>
17811
17812         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
17813         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
17814
17815 2003-08-07  Bruno Haible  <bruno@clisp.org>
17816
17817         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
17818         makes the module 'getndelim2' compatible with the module 'getline'.
17819
17820 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17821
17822         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
17823         byte with "\201" to avoid glitches when editing that source file
17824         with multi-gnome-terminal.
17825
17826 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17827
17828         * lib/bumpalloc.h: Remove.
17829
17830 2003-08-05  Paul Eggert  <eggert@twinsun.com>
17831
17832         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
17833         * modules/bumpalloc: Remove.
17834
17835 2003-08-04  Paul Eggert  <eggert@twinsun.com>
17836
17837         * lib/getloadavg.c: Change copyright notice and spacing to conform to
17838         GNU coding style.
17839
17840         Merge from coreutils.
17841         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
17842         1. From glibc.
17843         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
17844         from Karl Berry, implemented by Jim Meyering.
17845         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
17846         from Dmitry V. Levin.
17847         Remove anachronistic cast of xrealloc.
17848         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
17849         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
17850         type. Otherwise, it wouldn't compile with at least /bin/cc on
17851         ymp-cray-unicos9.0.2.X.
17852         Combine two mostly-identical uses of alloca into one.
17853         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
17854
17855 2003-08-04  Dave Love  <d.love@dl.ac.uk>
17856
17857         [From Emacs.]
17858
17859         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
17860         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
17861         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
17862         obsolete NLIST_NAME_UNION.
17863         [__GNU__]: Undef BSD and FSCALE.
17864         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
17865
17866 2003-08-03  Paul Eggert  <eggert@twinsun.com>
17867
17868         * lib/stdbool_.h (_Bool): Make it signed char, instead of
17869         an enum type, so that it's guaranteed to promote to int.  See:
17870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
17871
17872 2003-08-03  Karl Berry  <karl@gnu.org>
17873
17874         * config/depcomp: update from automake.
17875
17876 2003-07-31  Paul Eggert  <eggert@twinsun.com>
17877
17878         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
17879         (strerror): Don't assume that a printable int fits in 14 bytes.
17880
17881 2003-07-31  Bruno Haible  <bruno@clisp.org>
17882
17883         * modules/getpass-gnu: New file.
17884         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
17885
17886 2003-07-31  Bruno Haible  <bruno@clisp.org>
17887
17888         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
17889
17890 2003-07-24  Karl Berry  <karl@gnu.org>
17891
17892         * config/missing: update from automake.
17893
17894 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
17895             Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
17898         * lib/getline.c (getline, getdelim): Likewise.
17899         Remove _GNU_SOURCE define; now it's defined in config.h through
17900         m4/getline.m4.
17901
17902 2003-07-23  Karl Berry  <karl@gnu.org>
17903
17904         * config/config.sub: update from prep.
17905
17906 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17907
17908         * modules/xalloc (Depends-on): Add exitfail.
17909         * modules/xmemcoll: Likewise.
17910
17911 2003-07-22  Paul Eggert  <eggert@twinsun.com>
17912
17913         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
17914         over-parenthesization in macros.
17915
17916         Sync with coreutils.
17917
17918         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
17919         required by C99.
17920
17921         Use `exit_failure' for xalloc and xmemcoll instead of their own
17922         private exit-failure variables.
17923         * lib/xalloc.h (xalloc_exit_failure): Remove.
17924         * lib/xmalloc.c: Likewise.  Include exitfail.h.
17925         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
17926         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
17927         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
17928         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
17929
17930 2003-07-20  Jim Meyering  <jim@meyering.net>
17931
17932         * modules/closeout (Depends-on): Add exitfail.
17933         Suggestion from Bruno Haible.
17934
17935 2003-07-19  Karl Berry  <karl@gnu.org>
17936
17937         * config/config.sub: update from prep.
17938
17939 2003-07-18  Paul Eggert  <eggert@twinsun.com>
17940
17941         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
17942         Remove.
17943         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
17944         to test that it can stand by itself.  Include "exitfail.h".
17945         Clients should set exit_failure instead.
17946         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
17947
17948 2003-07-18  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/getndelim2: New file.
17951         * modules/getline: Share files with module getndelim2.
17952         * modules/getnline: Depend on getndelim2 instead of sharing files with
17953         it. Add getnline.c to lib_SOURCES.
17954         * MODULES.html.sh (func_all_modules): Add getndelim2.
17955
17956 2003-07-18  Bruno Haible  <bruno@clisp.org>
17957
17958         * m4/getndelim2.m4: New file.
17959         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
17960         invoke gl_PREREQ_GETNDELIM2.
17961         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
17962         gl_PREREQ_GETNDELIM2.
17963         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
17964         gl_GETNDELIM2.
17965
17966 2003-07-18  Bruno Haible  <bruno@clisp.org>
17967
17968         * lib/getndelim2.h: New file.
17969         * lib/getndelim2.c: Make into a module of its own. Include config.h,
17970         getndelim2.h.
17971         (getndelim2): Make non-static. Change return type to ssize_t.
17972         * lib/getline.h: Change argument names.
17973         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
17974         * lib/getnline.c: Include getndelim2.h.
17975
17976 2003-07-18  Andreas Schwab  <schwab@suse.de>
17977
17978         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
17979
17980 2003-07-17  Karl Berry  <karl@gnu.org>
17981
17982         * config/config.sub: update from prep.
17983
17984 2003-07-17  Bruno Haible  <bruno@clisp.org>
17985
17986         * modules/getnline: New file.
17987         * modules/getline: Add lib/getndelim2.c to source file list.
17988         * MODULES.html.sh (func_all_modules): Add getnline.
17989
17990 2003-07-17  Bruno Haible  <bruno@clisp.org>
17991
17992         * m4/getnline.m4: New file.
17993
17994 2003-07-17  Bruno Haible  <bruno@clisp.org>
17995
17996         * m4/Makefile.am.in: Remove file.
17997         * m4/Makefile.am: Remove file.
17998         * m4/Makefile.in: Remove file.
17999
18000 2003-07-17  Bruno Haible  <bruno@clisp.org>
18001
18002         * lib/getnline.h: New file.
18003         * lib/getnline.c: New file.
18004         * lib/getndelim2.c: New file, extracted from getline.c.
18005         (getndelim2): Renamed from getdelim2, with added nmax argument.
18006         * lib/getline.c: Include getndelim2.c.
18007         (getdelim2): Moved out to getndelim2.c.
18008         (getline, getdelim): Update.
18009
18010 2003-07-17  Bruno Haible  <bruno@clisp.org>
18011
18012         * lib/Makefile.am: Remove file.
18013         * lib/Makefile.in: Remove file.
18014
18015 2003-07-17  Bruno Haible  <bruno@clisp.org>
18016
18017         * configure.in: Remove file.
18018         * Makefile.in: Remove file.
18019
18020 2003-07-17  Bruno Haible  <bruno@clisp.org>
18021
18022         * MODULES.html.sh: Put the </BODY> right before </HTML>.
18023
18024 2003-07-16  Karl Berry  <karl@gnu.org>
18025
18026         * config/srclist-update: was running fixlicense twice, which caused
18027                 texinfo.tex to be nullified for some reason.  Simplify,
18028                 $gplsrc is no longer needed as far as I can see?
18029
18030 2003-07-16  Jim Meyering  <jim@meyering.net>
18031
18032         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
18033
18034 2003-07-15  Paul Eggert  <eggert@twinsun.com>
18035
18036         * config/srclist.txt: Get the following files from gettext-runtime/intl
18037         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
18038         ref-del.sin.  From Bruno Haible.
18039         * config/srclist-update (fixfile): Change grep pattern again, since the
18040         previous fix didn't work (there was another trailing $).  Use
18041         '[$]' to escape the $s.
18042
18043 2003-07-15  Karl Berry  <karl@gnu.org>
18044
18045         * lib/vasnprintf.c: update from gettext.
18046
18047 2003-07-15  Karl Berry  <karl@gnu.org>
18048
18049         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
18050         gets expanded when surrounded by '$'.
18051
18052 2003-07-15  Jim Meyering  <jim@meyering.net>
18053
18054         * modules/save-cwd: Don't depend on error.  From Derek Price.
18055
18056 2003-07-15  Jim Meyering  <jim@meyering.net>
18057
18058         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
18059
18060 2003-07-14  Simon Josefsson  <jas@extundo.com>
18061
18062         * modules/mempcpy: New file.
18063         * MODULES.html.sh (func_all_modules): Add mempcpy.
18064
18065 2003-07-14  Simon Josefsson  <jas@extundo.com>
18066
18067         * m4/mempcpy.m4: New file.
18068
18069 2003-07-14  Simon Josefsson  <jas@extundo.com>
18070
18071         * lib/mempcpy.h: New file.
18072         * lib/mempcpy.c: New file.
18073
18074 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18075
18076         * modules/getdate, modules/posixtm: Depend on mktime.
18077
18078 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18079
18080         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
18081         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
18082         unicodeio.c, unicodeio.h, unlocked-io.h:
18083         Switch from LGPL to GPL.
18084
18085 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18086
18087         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
18088         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
18089         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
18090         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
18091         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
18092         updated automatically by ../config/srclist-update.  This changes
18093         their license from LPGL to GPL.
18094
18095 2003-07-14  Paul Eggert  <eggert@twinsun.com>
18096
18097         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
18098         assumed to refer to the root of the most recent stable gettext version.
18099         * config/srclistvars.sh: Add defaults for eggert.
18100         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
18101         Match "This program" as well as "The program".  This is needed
18102         for gettext.
18103
18104 2003-07-14  Jim Meyering  <jim@meyering.net>
18105
18106         Don't emit diagnostics.  Let callers do that.
18107         * lib/save-cwd.c: Don't include "error.h".
18108         (save_cwd): Don't call error.  Ensure that errno is valid
18109         when returning nonzero.
18110
18111         * lib/save-cwd.h (restore_cwd): Update prototype.
18112         * lib/save-cwd.c (restore_cwd): Remove two parameters.
18113         Simplify.  Don't call error upon failure.  Let callers do that.
18114         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
18115         when auditing is enabled.  But don't bother updating the #if.
18116
18117 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
18118
18119         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
18120         it breaks C++ compilation.
18121         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
18122
18123 2003-07-10  Simon Josefsson  <jas@extundo.com>
18124
18125         * modules/strchrnul (Makefile.am): Add strchrnul.h.
18126
18127 2003-07-10  Jim Meyering  <jim@meyering.net>
18128
18129         * m4/clock_time.m4: Remove trailing blank.
18130         * m4/intmax_t.m4: Likewise.
18131
18132 2003-07-10  Jim Meyering  <jim@meyering.net>
18133
18134         * lib/vasnprintf.c: Remove trailing blanks.
18135         Make cpp indentation consistent.
18136
18137 2003-07-09  Paul Eggert  <eggert@twinsun.com>
18138
18139         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
18140         posixver.c, strftime.c, strnlen.c, strverscmp.c:
18141         Switch from LGPL to GPL.
18142
18143 2003-07-09  Paul Eggert  <eggert@twinsun.com>
18144
18145         * config/srclist.txt: Sort sublists.  Add
18146         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
18147         that differ from gnulib for one reason or another; we'd like this list
18148         to be smaller but for now let's document what we have.
18149
18150 2003-07-08  Paul Eggert  <eggert@twinsun.com>
18151
18152         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
18153         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
18154         and sweeter "eval x=$x".
18155         * config/srclist.txt: Get lib/argp* from glibc.
18156
18157 2003-07-07  Paul Eggert  <eggert@twinsun.com>
18158
18159         * lib/mktime.c: Fix some boundary cases and remove need for floating
18160         point.
18161
18162         Issue a compile-time diagnostic if time_t is floating point, or if
18163         two's complement arithmetic is not in effect, or if arithmetic
18164         right shift does not propagate the sign.  These assumptions were
18165         all in the original code but they weren't checked.
18166
18167         (TIME_T_MIDPOINT, verify): New macros.
18168         (__isleap): Remove; it has integer overflow problems.
18169         (leapyear): New function, without those problems.
18170         (ydhms_tm_diff): Remove; splitting into two parts.
18171         (ydhms_diff): New function, containing the arithmetic part of
18172         the old ydhms_tm_diff function.  Issue a compile-time
18173         diagnostic if we are not using C99 integer division.
18174         Avoid casts when possible.
18175         (guess_time_tm): New function, containing the checking part of
18176         the old ydhms_tm_diff function.  Return the new value, rather than
18177         the difference between it and the old.  Accept a new argument T
18178         so that *T specifies the old value.  Check for overflow in the result.
18179
18180         (__mktime_internal): Use a time_t offset, not a long int offset.
18181         This undoes the 2003-06-04 change, which is no longer needed now
18182         that we have better overflow checking.
18183         (localtime_offset): Likewise.
18184
18185         (__mktime_internal): Avoid harmful overflow on hosts where time_t
18186         and long are 64-bit but int is only 32-bit.
18187         (ydhms_diff): Use long int to store year1 and yday1.
18188         Issue a compile-time diagnostic if long int is not wide enough.
18189
18190         (__mktime_internal): Use long int to store adjusted year and yday.
18191         Use plain C rather than preprocessor commands, if that doesn't
18192         affect efficiency.
18193         Check for overflow (and try to repair) after each probe
18194         rather than checking only at the very end.  This avoids some bugs
18195         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
18196         does not equal GMT offset at maximum time).
18197         Use integer to check for overflow rather than floating point; this
18198         is more portable to non-IEEE hosts, and is a tad faster.
18199         When we detect that we are oscillating between two values,
18200         don't check whether tm_isdst has the requested value, since
18201         we already know the answer.  When tm_isdst has the wrong value,
18202         use a different heuristic to find the right one, based on the
18203         extreme values actually observed in practice in tz2003a,
18204         rather than the (overly optimistic) "previous 3 calendar quarters".
18205
18206         (not_equal_tm, print_tm, check_result): Use "const T" rather than
18207         "T const" to accommodate glibc style.
18208         (check_result): Use less-confusing report format.  "long" -> "long int.
18209         (main): Likewise.
18210         Don't loop if the iteration overflows time_t.
18211         Allow a negative step in the iteration.
18212
18213 2003-07-06  Karl Berry  <karl@gnu.org>
18214
18215         * config/depcomp: update from automake.
18216         * config/config.sub: update from prep.
18217
18218 2003-07-03  Karl Berry  <karl@gnu.org>
18219
18220         * config/config.guess: update from prep.
18221
18222 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18223
18224         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
18225         xreadlink.c now includes it unconditionally.
18226
18227 2003-07-01  Paul Eggert  <eggert@twinsun.com>
18228
18229         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
18230         having it depend on HAVE_SYS_TYPES_H.
18231
18232 2003-07-01  Bruno Haible  <bruno@clisp.org>
18233
18234         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
18235         <sys/types.h> should be sufficient.
18236         Reported by Paul Eggert.
18237
18238 2003-06-26  Karl Berry  <karl@gnu.org>
18239
18240         * config/depcomp: update from automake.
18241
18242 2003-06-26  Bruno Haible  <bruno@clisp.org>
18243
18244         * modules/human: Depend on module stdbool.
18245
18246 2003-06-25  Bruno Haible  <bruno@clisp.org>
18247
18248         * modules/readlink: New file.
18249         * modules/xreadlink: Depend on it.
18250         * MODULES.html.sh (func_all_modules): Add readlink.
18251
18252 2003-06-25  Bruno Haible  <bruno@clisp.org>
18253
18254         * m4/readlink.m4: New file.
18255
18256 2003-06-25  Bruno Haible  <bruno@clisp.org>
18257
18258         * lib/readlink.c: New file.
18259
18260 2003-06-22  Karl Berry  <karl@gnu.org>
18261
18262         * config/srclist.txt: update mkinstalldirs from automake.
18263         * config/mkinstalldirs: update.
18264
18265 2003-06-22  Bruno Haible  <bruno@clisp.org>
18266
18267         Portability to mingw32.
18268         * m4/ssize_t.m4: New file, from GNU gettext.
18269         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
18270         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
18271
18272 2003-06-22  Bruno Haible  <bruno@clisp.org>
18273
18274         * modules/safe-read: Add m4/ssize_t.m4.
18275         * modules/xreadlink: Add m4/ssize_t.m4.
18276
18277 2003-06-20  Bruno Haible  <bruno@clisp.org>
18278
18279         Assume C89, so PARAMS isn't needed.
18280         * lib/unicodeio.h (PARAMS): Remove.
18281         * lib/unicodeio.c: Don't use PARAMS.
18282
18283 2003-06-18  Karl Berry  <karl@gnu.org>
18284
18285         * config/config.{guess,sub}: update from prep.
18286
18287 2003-06-18  Jim Meyering  <jim@meyering.net>
18288
18289         Merge changes from coreutils.
18290         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
18291         Remove explicit declarations of xmalloc and realloc.
18292         Include xalloc.h.
18293         (read_utmp): Remove anachronistic cast of xmalloc.
18294
18295 2003-06-17  Paul Eggert  <eggert@twinsun.com>
18296
18297         Assume C89, so PARAMS isn't needed.
18298         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
18299         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
18300         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
18301         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
18302         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
18303         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
18304         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
18305         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
18306         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
18307         lib/xstrtod.h, lib/xstrtol.h: Likewise.
18308         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
18309         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
18310         no longer needed. Anyway, config.h should always be included before any
18311         other file.
18312
18313 2003-06-11  Simon Josefsson  <jas@extundo.com>
18314
18315         * modules/sysexits: New file.
18316         * MODULES.html.sh (func_all_modules): Add sysexits.
18317
18318 2003-06-11  Simon Josefsson  <jas@extundo.com>
18319
18320         * lib/sysexit_.h: New file.
18321
18322 2003-06-11  Derek Price  <derek@ximbiot.com>
18323
18324         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
18325         necessary.
18326
18327 2003-06-11  Bruno Haible  <bruno@clisp.org>
18328
18329         * m4/sysexits.m4: New file.
18330
18331 2003-06-10  Simon Josefsson  <jas@extundo.com>
18332
18333         * lib/argp.h: New file, from glibc.
18334         * lib/argp-ba.c: New file, from glibc.
18335         * lib/argp-eexst.c: New file, from glibc.
18336         * lib/argp-fmtstream.c: New file, from glibc.
18337         * lib/argp-fmtstream.h: New file, from glibc.
18338         * lib/argp-fs-xinl.c: New file, from glibc.
18339         * lib/argp-help.c: New file, from glibc.
18340         * lib/argp-namefrob.h: New file, from glibc.
18341         * lib/argp-parse.c: New file, from glibc.
18342         * lib/argp-pv.c: New file, from glibc.
18343         * lib/argp-pvh.c: New file, from glibc.
18344         * lib/argp-xinl.c: New file, from glibc.
18345
18346 2003-06-10  Simon Josefsson  <jas@extundo.com>
18347
18348         * modules/strchrnul: New file.
18349
18350 2003-06-10  Simon Josefsson  <jas@extundo.com>
18351
18352         * modules/argp: New file.
18353
18354 2003-06-10  Simon Josefsson  <jas@extundo.com>
18355
18356         * m4/strchrnul.m4: New file.
18357
18358 2003-06-10  Simon Josefsson  <jas@extundo.com>
18359
18360         * lib/strchrnul.h: New file.
18361         * lib/strchrnul.c: New file.
18362
18363 2003-06-10  Bruno Haible  <bruno@clisp.org>
18364
18365         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
18366
18367 2003-06-07  Karl Berry  <karl@gnu.org>
18368
18369         * config/config.{guess,sub}: update from prep.
18370
18371 2003-06-07  Jim Meyering  <jim@meyering.net>
18372
18373         * modules/strtod: Use $(...) notation, not @...@ for
18374         AC_REPLACE'd variables.
18375         * modules/localcharset: Likewise.
18376
18377 2003-06-07  Jim Meyering  <jim@meyering.net>
18378
18379         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
18380         in place of my name in the copyright comment.
18381         Remove definition and uses of __P.
18382
18383         From coreutils.
18384         * lib/stat.c: Don't declare xmalloc explicitly.
18385         Instead, include "xalloc.h".
18386         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
18387         xrealloc, and xcalloc return values.
18388         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
18389         Improve comment.
18390         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
18391
18392 2003-06-07  Bruno Haible  <bruno@clisp.org>
18393
18394         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
18395         avoid AC_CONFIG_LINKS.
18396         * modules/fnmatch (Makefile.am): Use explicit creation rule for
18397         fnmatch.h, to avoid AC_CONFIG_LINKS.
18398         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
18399
18400 2003-06-07  Bruno Haible  <bruno@clisp.org>
18401
18402         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
18403         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
18404         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18405         directory.
18406         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
18407         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18408         directory.
18409
18410 2003-06-06  Jim Meyering  <jim@meyering.net>
18411
18412         Merge from coreutils.
18413         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
18414         Consolidate declarations and initializations of *_base* locals.
18415
18416         Merge from coreutils.
18417         This avoids a core dump on systems without GNU putenv,
18418         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
18419         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
18420         (unsetenv): New static function, from GNU libc.
18421         (rpl_putenv): Use it.
18422
18423         * lib/modechange.c: Remove trailing blanks.
18424
18425         Merge from coreutils.
18426         * lib/fsusage.c: Remove declaration of statfs.
18427         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
18428
18429         * lib/posixtm.c: Include <stdbool.h> unconditionally.
18430
18431 2003-06-06  Jim Meyering  <jim@meyering.net>
18432
18433         * lib/stdbool_.h: Renamed from stdbool.h.in.
18434
18435 2003-06-06  Jim Meyering  <jim@meyering.net>
18436             Bruno Haible  <bruno@clisp.org>
18437
18438         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
18439         Adjust Makefile.am snippet not to redirect directly to target.
18440         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
18441
18442 2003-06-05  Paul Eggert  <eggert@twinsun.com>
18443
18444         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
18445         mismatch, look in future quarters as well as past.  This fixes a
18446         bug when processing fall-backwards gaps immediately after a long
18447         period of daylight-saving time.
18448
18449         * lib/mktime.c: Assume freestanding C89 or better.
18450         (HAVE_LIMITS_H): Remove.  Assume it's 1.
18451         (__P): Remove; not used.
18452         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
18453         (mktime, not_equal_tm, print_tm, check_result,
18454         main): Use prototypes.  Use const * where appropriate.
18455         (main): Fix typo in testing code that uncovered by above changes.
18456         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
18457
18458 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18459
18460         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
18461         locale.h, localeconv.  This merges changes from coreutils.
18462
18463         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
18464         It can be removed after the next Autoconf is released.
18465         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
18466         needed.
18467
18468 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18469
18470         * lib/mktime.c: Fix Debian bug 177940
18471         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
18472         (localtime_offset): Now long int, not time_t, because we want it
18473         to be guaranteed to be signed.  All uses changed.
18474         (__mktime_internal): If overflow would occur when adding offset,
18475         don't add it.
18476
18477         Merge 'human' changes from coreutils.  Rewrite to support
18478         locale-specific notations like thousands separators.
18479         * lib/human.c: Simplify authorship notice.
18480         Include human.h immediately after config.h.
18481         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
18482         <limits.h>: Do not include, since human.h does.
18483         (SIZE_MAX, UINTMAX_MAX): New macros.
18484         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
18485         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
18486         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
18487         (power_letter): Renamed from suffixes.
18488         (generate_suffix_backwards): Remove.
18489         (adjust_value): Now takes int style (because of human.h changes)
18490         and long double value (for greater precision on some platforms).
18491         (group_number): New function.
18492         (human_readable): Use it.  Use integer options, not enum.
18493         Put the options before the sizes in the arg list.
18494         Support all the new options.
18495         The old human_readable function has been removed;
18496         use inttostr.h instead.
18497         (human_readable, default_block_size, humblock):
18498         Use uintmax_t, not int, for block sizes.
18499         (human_readable_inexact, block_size_types): Remove.
18500         (block_size_opts): New constant.
18501         (human_options): Renamed from human_block_size, with new signature
18502         that allows block sizes up to UINTMAX_MAX.  All callers changed.
18503         * lib/human.h: Add copyright and authorship notice.
18504         Include <limits.h> and <stdbool.h> unconditionally.
18505         (PARAMS): Remove.  All uses removed.
18506         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
18507         (enum human_inexact_style): Remove tag; now a nameless enum.
18508         (human_floor, human_ceiling, human_round_to_even): Now have
18509         values 2, 0, 1 rather than -1, 1, 0.
18510         (human_group_digits, human_suppress_point_zero, human_autoscale,
18511         human_base_1024, human_SI, human_B): New constants.
18512         (human_readable_inexact, human_block_size): Remove.
18513         (human_readable): Size args are now uintmax_t, not int.
18514         (human_options): New decl.
18515
18516         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
18517         unnecessary now that we assume C89 or better.  This change
18518         imported from coreutils.
18519
18520         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
18521         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
18522         in the 2003-05-30 sync from glibc.
18523
18524         .h files should stand alone, but we shouldn't include <sys/types.h>
18525         if we can get away with just <stddef.h>.
18526
18527         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
18528         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
18529         rather than <sys/types.h>, as we merely need size_t.
18530         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
18531         to get size_t.
18532         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
18533         Include <stdio.h>, to get FILE.
18534         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
18535         memcasecmp.h has included <stddef.h> and all we need is size_t.
18536         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
18537         our interface, instead of including <sys/types.h>
18538
18539 2003-06-04  Paul Eggert  <eggert@twinsun.com>
18540
18541         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
18542         now, as glibc mktime is buggy on non-glibc systems.
18543
18544 2003-06-03  Karl Berry  <karl@gnu.org>
18545
18546         * config/config.sub: update from prep.
18547
18548 2003-06-02  Paul Eggert  <eggert@twinsun.com>
18549
18550         [from coreutils]
18551         Fix some minor time-related bugs with POSIX time arguments.
18552         Some valid time stamps were being rejected (notably -1, and
18553         time stamps before 1900 on 64-bit hosts).  And some invalid
18554         time stamps were being accepted, e.g. September 31.
18555
18556         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
18557         that we can return (time_t) -1 successfully.
18558         * lib/posixtm.c: Likewise.
18559         [HAVE_STDBOOL_H]: Include <stdbool.h>.
18560         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
18561         (t): Remove static var.
18562         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
18563         of static var.  All uses changed.
18564         (year): Do not reject years before 1900; they can occur with
18565         64-bit time_t.
18566         (posix_time_parse): Do not check for out-of-range components;
18567         that is now the caller's responsibility, since our checks were
18568         only approximations.
18569         (posixtime): Use mktime to check for out-of-range components,
18570         since it knows them exactly.
18571         If mktime returns (time_t) -1, check whether an error actually occurred
18572         by invoking localtime on -1.
18573         (main) [TEST_POSIXTIME]: Check for input data errors, and report
18574         posixtime failures better.
18575         Improve the test data (in comments only).
18576
18577 2003-06-02  Karl Berry  <karl@gnu.org>
18578
18579         * config/mkinstalldirs (version): new variable.
18580         (--version): new option.
18581         (usage): improve message.
18582
18583 2003-05-30  Karl Berry  <karl@gnu.org>
18584
18585         * lib/mktime.c: update from libc.
18586
18587 2003-05-30  Bruno Haible  <bruno@clisp.org>
18588
18589         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
18590         * config/config.rpath: Upgrade to gettext-0.12.1.
18591
18592 2003-05-30  Bruno Haible  <bruno@clisp.org>
18593
18594         * m4/gettext.m4: Upgrade to gettext-0.12.1.
18595         * m4/nls.m4: New file, from gettext-0.12.1.
18596         * m4/po.m4: New file, from gettext-0.12.1.
18597         * m4/progtest.m4: Upgrade to gettext-0.12.1.
18598
18599 2003-05-30  Bruno Haible  <bruno@clisp.org>
18600
18601         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
18602         * lib/localcharset.h: Likewise.
18603         * lib/localcharset.c: Likewise.
18604
18605 2003-05-29  Karl Berry  <karl@gnu.org>
18606
18607         * config/config.rpath: update from gettext.
18608
18609 2003-05-28  Paul Eggert  <eggert@twinsun.com>
18610
18611         Assume the headers required for C89 freestanding compilers.
18612         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
18613         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
18614         * m4/human.m4 (gl_HUMAN): Likewise.
18615         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
18616         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
18617         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18618         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
18619         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18620         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
18621
18622 2003-05-28  Paul Eggert  <eggert@twinsun.com>
18623
18624         Assume the headers required for C89 freestanding compilers.
18625         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
18626         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
18627         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
18628         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
18629         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
18630         define, since <limits.h> is guaranteed to do that.
18631         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
18632         * lib/exclude.c: Include <stdbool.h> unconditionally.
18633         * lib/tempname.c: Include <stddef.h> unconditionally.
18634         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
18635         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
18636         <stddef.h> does that.
18637         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
18638         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
18639         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
18640         needed.
18641         * lib/xstrtol.c: Likewise.
18642         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
18643         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
18644
18645         * lib/addext.c (addext): Use assignment rather than cast, to avoid
18646         warnings on some platforms.
18647
18648         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
18649         arbitrarily.
18650
18651 2003-05-26  Jim Meyering  <jim@meyering.net>
18652
18653         Merge in a change from coreutils:
18654         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
18655         that is guaranteed to be `no'.  Use `no_such_member' to indicate
18656         that condition, rather than `-1' which is slightly misleading.
18657         Change the name of the cache variable to have the gl_ prefix.
18658         Prompted by a patch from Richard Dawe for DJGPP.
18659
18660 2003-05-24  Karl Berry  <karl@gnu.org>
18661
18662         * config/config.guess: update from prep.
18663
18664 2003-05-22  Karl Berry  <karl@gnu.org>
18665
18666         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
18667
18668 2003-05-20  Karl Berry  <karl@gnu.org>
18669
18670         * config/config.guess: update from prep.
18671
18672 2003-05-18  Karl Berry  <karl@gnu.org>
18673
18674         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
18675         might actually be set by the user.
18676
18677         * config/depcomp, install-sh, mdate-sh: update from automake.
18678
18679 2003-05-17  Bruno Haible  <bruno@clisp.org>
18680
18681         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
18682         invalid expansion for AC_EGREP_CPP.
18683         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18684         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18685         Suggested by Akim Demaille <akim@epita.fr> in
18686         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
18687
18688 2003-05-12  Jim Meyering  <jim@meyering.net>
18689
18690         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
18691         the space-padded-by-default conversion specifiers, %e, %k, %l.
18692
18693 2003-05-12  Bruno Haible  <bruno@clisp.org>
18694
18695         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
18696         the string is longer than 4 KB.
18697
18698 2003-05-11  Karl Berry  <karl@gnu.org>
18699
18700         * config/config.{guess,sub}: update from prep.
18701
18702 2003-05-09  Bruno Haible  <bruno@clisp.org>
18703
18704         * modules/error: Add m4/strerror_r.m4 to file list.
18705
18706 2003-05-03  Bruno Haible  <bruno@clisp.org>
18707
18708         Upgrade to Unicode-4.0.
18709         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
18710         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
18711         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
18712         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
18713         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
18714         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
18715         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
18716         Change width of U+E0100..U+E01EF from 1 to 0.
18717
18718 2003-04-25  Jim Meyering  <jim@meyering.net>
18719
18720         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
18721         of type size_t, not int.
18722
18723 2003-04-25  Bruno Haible  <bruno@clisp.org>
18724
18725         * lib/copy-file.c: Include <stddef.h>, for size_t.
18726
18727 2003-04-21  Paul Eggert  <eggert@twinsun.com>
18728
18729         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
18730         code which expansion is under static control.  Patch imported from
18731         Akim Demaille's patch to Bison; see
18732         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
18733
18734 2003-04-14  Bruno Haible  <bruno@clisp.org>
18735
18736         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
18737
18738 2003-04-11  Jim Meyering  <jim@meyering.net>
18739
18740         Merge changes from Coreutils.
18741
18742         2003-03-22  Jim Meyering  <jim@meyering.net>
18743
18744         * lib/strftime.c (widen): Cast alloca return value to proper type.
18745
18746         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
18747
18748         From GNU libc.
18749         * lib/strftime.c (my_strftime): Handle very large width
18750         specifications for numeric values correctly.  Improve checks for
18751         overflow.
18752
18753         2003-01-19  Jim Meyering  <jim@meyering.net>
18754
18755         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
18756         definitions.
18757         (nl_get_alt_digit) [! defined my_strftime]: Define.
18758         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
18759         _nl_get_alt_digit and _nl_get_walt_digit.
18760
18761         * lib/strftime.c (my_strftime): Merge in locale-related changes from
18762         libc. These changes have no effect outside of _LIBC.
18763
18764 2003-04-10  Bruno Haible  <bruno@clisp.org>
18765
18766         * modules/findprog: New file.
18767         * MODULES.html.sh (func_all_modules): Add it.
18768
18769 2003-04-10  Bruno Haible  <bruno@clisp.org>
18770
18771         * m4/findprog.m4: New file.
18772         * m4/eaccess.m4: New file.
18773
18774 2003-04-10  Bruno Haible  <bruno@clisp.org>
18775
18776         * lib/findprog.h: New file, from GNU gettext.
18777         * lib/findprog.c: New file, from GNU gettext.
18778
18779 2003-04-05  Jim Meyering  <jim@meyering.net>
18780
18781         Merge changes from Coreutils.
18782
18783         * lib/exclude.h (PARAMS): Remove definition and uses.
18784         * lib/exclude.c: Remove uses of `PARAMS'.
18785
18786         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
18787         Add test-cases for DOS filenames. Declare program_name.
18788         (main): Set up program_name.  Patch by Rich Dawe.
18789
18790         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18791         error from mntctl.
18792         Use mntctl's return value to drive the entry-processing loop, since
18793         we can't rely on the value of the vmt_length member in the last
18794         entry.  On some systems doing so could result in exhausting
18795         virtual memory.  Based in part on a patch from Mike Jetzer.
18796
18797 2003-04-04  Bruno Haible  <bruno@clisp.org>
18798
18799         * modules/linebreak: New file.
18800         * MODULES.html.sh (func_all_modules): Add it.
18801
18802 2003-04-04  Bruno Haible  <bruno@clisp.org>
18803
18804         * m4/linebreak.m4: New file.
18805
18806 2003-04-04  Bruno Haible  <bruno@clisp.org>
18807
18808         * lib/linebreak.h: New file, from GNU gettext.
18809         * lib/linebreak.c: New file, from GNU gettext with slight
18810         modifications.
18811         * lib/lbrkprop.h: New file, from GNU gettext.
18812
18813 2003-04-03  Bruno Haible  <bruno@clisp.org>
18814
18815         * modules/utf8-ucs4: New file.
18816         * modules/utf16-ucs4: New file.
18817         * modules/ucs4-utf8: New file.
18818         * modules/ucs4-utf16: New file.
18819         * MODULES.html.sh (func_all_modules): Add them.
18820
18821 2003-04-03  Bruno Haible  <bruno@clisp.org>
18822
18823         * m4/utf-ucs4.m4: New file.
18824         * m4/ucs4-utf.m4: New file.
18825
18826 2003-04-03  Bruno Haible  <bruno@clisp.org>
18827
18828         * lib/utf8-ucs4.h: New file, from GNU gettext.
18829         * lib/utf16-ucs4.h: New file, from GNU gettext.
18830         * lib/ucs4-utf8.h: New file, from GNU gettext.
18831         * lib/ucs4-utf16.h: New file, from GNU gettext.
18832
18833 2003-04-02  Bruno Haible  <bruno@clisp.org>
18834
18835         * modules/binary-io: New file.
18836         * MODULES.html.sh (func_all_modules): Add it.
18837
18838 2003-04-02  Bruno Haible  <bruno@clisp.org>
18839
18840         * lib/binary-io.h: New file, from GNU gettext.
18841
18842 2003-04-01  Bruno Haible  <bruno@clisp.org>
18843
18844         * modules/pathname: New file.
18845         * MODULES.html.sh (func_all_modules): Add it.
18846
18847 2003-04-01  Bruno Haible  <bruno@clisp.org>
18848
18849         * lib/pathname.h: New file, from GNU gettext.
18850         * lib/concatpath.c: New file, from GNU gettext.
18851
18852 2003-03-30  Bruno Haible  <bruno@clisp.org>
18853
18854         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
18855
18856 2003-03-30  Bruno Haible  <bruno@clisp.org>
18857
18858         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
18859         function chown() doesn't exist.
18860
18861 2003-03-28  Bruno Haible  <bruno@clisp.org>
18862
18863         * modules/copy-file: New file.
18864         * MODULES.html.sh (func_all_modules): Add it.
18865
18866 2003-03-28  Bruno Haible  <bruno@clisp.org>
18867
18868         * m4/copy-file.m4: New file.
18869
18870 2003-03-28  Bruno Haible  <bruno@clisp.org>
18871
18872         * lib/copy-file.h: New file, from GNU gettext.
18873         * lib/copy-file.c: New file, from GNU gettext.
18874
18875 2003-03-18  Jim Meyering  <jim@meyering.net>
18876
18877         * lib/quote.c (quote_n): Fix typo in comment.
18878
18879 2003-03-18  Bruno Haible  <bruno@clisp.org>
18880
18881         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
18882         checking.
18883         * m4/onceonly_2_57.m4: Likewise.
18884
18885 2003-03-17  Bruno Haible  <bruno@clisp.org>
18886
18887         * m4/onceonly.m4: Require autoconf 2.54 or newer.
18888         (m4_quote): Remove macro.
18889         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
18890
18891 2003-03-14  Jim Meyering  <jim@meyering.net>
18892
18893         Merge changes from Coreutils.
18894         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
18895         to be const, in order to avoid warnings.
18896         (obstack_room): Likewise.
18897         (obstack_empty_p): Likewise.
18898
18899 2003-03-14  Bruno Haible  <bruno@clisp.org>
18900
18901         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
18902         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
18903
18904 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18905
18906         Merge changes from Bison.
18907         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
18908         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
18909         when compiling Bison 1.875's `bitset bset = obstack_alloc
18910         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
18911         * lib/hash.c: Include <stdbool.h> unconditionally.
18912
18913 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18914
18915         * m4/onceonly.m4 (m4_quote): New macro.
18916         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
18917         Quote AC_FOREACH variable-expansions properly.
18918
18919 2003-03-13  Paul Eggert  <eggert@twinsun.com>
18920
18921         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
18922
18923 2003-03-09  Paul Eggert  <eggert@twinsun.com>
18924
18925         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
18926         Reported by Bruce Becker; see:
18927         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
18928
18929 2003-03-03  Paul Eggert  <eggert@twinsun.com>
18930             Bruno Haible  <bruno@clisp.org>
18931
18932         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
18933         Reported by John Hughes, see
18934         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
18935
18936 2003-02-20  Bruno Haible  <bruno@clisp.org>
18937
18938         * MODULES.html.sh (func_all_modules): Add poll.
18939
18940 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18941
18942         * modules/poll: New file.
18943
18944 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18945
18946         * lib/poll_.h: New file.
18947         * lib/poll.c: New file.
18948
18949 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
18950
18951         * m4/poll.m4: New file.
18952
18953 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18954
18955         * modules/mathl: New file.
18956
18957 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18958
18959         * lib/mathl.h: New file.
18960         * lib/acosl.c: New file.
18961         * lib/asinl.c: New file.
18962         * lib/atanl.c: New file.
18963         * lib/ceill.c: New file.
18964         * lib/cosl.c: New file.
18965         * lib/expl.c: New file.
18966         * lib/floorl.c: New file.
18967         * lib/frexpl.c: New file.
18968         * lib/ldexpl.c: New file.
18969         * lib/logl.c: New file.
18970         * lib/sincosl.c: New file.
18971         * lib/sinl.c: New file.
18972         * lib/sqrtl.c: New file.
18973         * lib/tanl.c: New file.
18974         * lib/trigl.c: New file.
18975         * lib/trigl.h: New file.
18976
18977 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
18978
18979         * m4/mathl.m4: New file.
18980
18981 2003-02-18  Bruno Haible  <bruno@clisp.org>
18982
18983         * MODULES.html.sh (func_all_modules): Add mathl.
18984
18985 2003-02-17  Bruno Haible  <bruno@clisp.org>
18986
18987         * modules/mkdtemp: New module.
18988         * MODULES.html.sh (func_all_modules): Add it.
18989
18990 2003-02-17  Bruno Haible  <bruno@clisp.org>
18991
18992         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
18993
18994 2003-02-17  Bruno Haible  <bruno@clisp.org>
18995
18996         * lib/mkdtemp.h: New file, from GNU gettext.
18997         * lib/mkdtemp.c: New file, from GNU gettext.
18998
18999 2003-02-02  Jim Meyering  <jim@meyering.net>
19000
19001         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
19002         e.g. glibc-2.2.93.
19003
19004 2003-01-31  Bruno Haible  <bruno@clisp.org>
19005
19006         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
19007         'rpl_rename'.
19008         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
19009         'rpl_strnlen'.
19010         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
19011         'rpl_strtod'.
19012         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
19013         'rpl_utime'.
19014
19015 2003-01-31  Bruno Haible  <bruno@clisp.org>
19016
19017         * lib/rename.c: #undef rename before defining rpl_rename.
19018         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
19019
19020 2003-01-30  Bruno Haible  <bruno@clisp.org>
19021
19022         * modules/vasnprintf, modules/vasprintf: New modules.
19023         * MODULES.html.sh (func_all_modules): Add them.
19024
19025 2003-01-30  Bruno Haible  <bruno@clisp.org>
19026
19027         * m4/signed.m4: New file, from GNU gettext.
19028         * m4/longdouble.m4: New file, from GNU gettext.
19029         * m4/wchar_t.m4: New file, from GNU gettext.
19030         * m4/wint_t.m4: New file, from GNU gettext.
19031         * m4/vasnprintf.m4: New file.
19032         * m4/vasprintf.m4: New file.
19033
19034 2003-01-30  Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/printf-args.h: New file, from GNU gettext.
19037         * lib/printf-args.c: New file, from GNU gettext.
19038         * lib/printf-parse.h: New file, from GNU gettext.
19039         * lib/printf-parse.c: New file, from GNU gettext.
19040         * lib/vasnprintf.h: New file, from GNU gettext.
19041         * lib/vasnprintf.c: New file, from GNU gettext.
19042         * lib/asnprintf.c: New file, from GNU gettext.
19043         * lib/vasprintf.h: New file, from GNU gettext with modifications.
19044         * lib/vasprintf.c: New file, from GNU gettext.
19045         * lib/asprintf.c: New file, from GNU gettext.
19046
19047 2003-01-29  Bruno Haible  <bruno@clisp.org>
19048
19049         * modules/stpncpy: New module.
19050         * MODULES.html.sh (func_all_modules): Add it.
19051
19052 2003-01-29  Bruno Haible  <bruno@clisp.org>
19053
19054         * m4/stpncpy.m4: New file.
19055
19056 2003-01-29  Bruno Haible  <bruno@clisp.org>
19057
19058         * lib/stpncpy.h: New file, from GNU gettext with modifications.
19059         * lib/stpncpy.c: New file, from GNU gettext with modifications.
19060
19061 2003-01-28  Bruno Haible  <bruno@clisp.org>
19062
19063         * modules/c-ctype: New module.
19064         * MODULES.html.sh (func_all_modules): Add it.
19065
19066 2003-01-28  Bruno Haible  <bruno@clisp.org>
19067
19068         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
19069         Paul Eggert.
19070         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
19071         Paul Eggert.
19072
19073 2003-01-27  Bruno Haible  <bruno@clisp.org>
19074
19075         * modules/xsetenv: New module.
19076         * MODULES.html.sh (func_all_modules): Add it.
19077
19078 2003-01-27  Bruno Haible  <bruno@clisp.org>
19079
19080         * lib/xsetenv.h: New file, from GNU gettext.
19081         * lib/xsetenv.c: New file, from GNU gettext.
19082
19083 2003-01-23  Jim Meyering  <jim@meyering.net>
19084
19085         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
19086         from working on systems without dirfd (at least Irix and OSF1/Tru64).
19087
19088 2003-01-23  Bruno Haible  <bruno@clisp.org>
19089
19090         * modules/minmax: New module.
19091         * MODULES.html.sh (func_all_modules): Add it.
19092
19093 2003-01-23  Bruno Haible  <bruno@clisp.org>
19094
19095         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
19096         Eggert.
19097
19098 2003-01-22  Bruno Haible  <bruno@clisp.org>
19099
19100         * modules/exit: New module.
19101         * MODULES.html.sh (func_all_modules): Add it.
19102
19103 2003-01-22  Bruno Haible  <bruno@clisp.org>
19104
19105         * lib/exit.h: New file, from GNU gettext.
19106
19107 2003-01-19  Bruno Haible  <bruno@clisp.org>
19108
19109         * gnulib-tool: Recognize option --extract-maintainer.
19110         (func_get_maintainer): New function.
19111         * modules/*: Add Maintainer entry.
19112
19113 2003-01-16  Jim Meyering  <jim@meyering.net>
19114
19115         * m4/regex.m4: The `regex' struct is both input and output.
19116         Initialize it before each use.  Patch by Tim Waugh.
19117
19118 2003-01-16  Bruno Haible  <bruno@clisp.org>
19119
19120         * MODULES.html.sh: Add a table of contents. Add the module name as
19121         leftmost column. Add hyperlinks.
19122
19123 2003-01-15  Bruno Haible  <bruno@clisp.org>
19124
19125         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
19126
19127 2003-01-15  Bruno Haible  <bruno@clisp.org>
19128
19129         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
19130         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
19131         suffix.
19132
19133 2003-01-15  Bruno Haible  <bruno@clisp.org>
19134
19135         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
19136
19137 2003-01-15  Bruno Haible  <bruno@clisp.org>
19138
19139         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
19140         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
19141
19142 2003-01-14  Jim Meyering  <jim@meyering.net>
19143
19144         * lib/same.c (same_name): Tweak a comment.
19145
19146 2003-01-14  Bruno Haible  <bruno@clisp.org>
19147
19148         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
19149         when a string comparison is sufficient.
19150
19151 2003-01-14  Bruno Haible  <bruno@clisp.org>
19152
19153         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
19154         'unsigned int'.
19155
19156 2003-01-14  Bruno Haible  <bruno@clisp.org>
19157
19158         * lib/hash-pjw.c: Add comment about low quality of this function.
19159
19160 2003-01-13  Bruno Haible  <bruno@clisp.org>
19161
19162         * modules/stpcpy: Distribute lib/stpcpy.h.
19163         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
19164
19165 2003-01-13  Bruno Haible  <bruno@clisp.org>
19166
19167         * modules/*: Add a description.
19168         * modules/strpbrk: Fix Makefile.am snippet.
19169         * modules/strtoimax: Fix dependencies.
19170         * modules/strtoumax: Likewise.
19171
19172 2003-01-13  Bruno Haible  <bruno@clisp.org>
19173
19174         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
19175         * modules/alloca (Makefile.am): All object files depend on alloca.h.
19176         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
19177
19178 2003-01-13  Bruno Haible  <bruno@clisp.org>
19179
19180         * gnulib-tool (func_create_testdir): Store config/* files in the main
19181         directory.
19182         * config.rpath: Move to ...
19183         * config/config.rpath: ... here.
19184         * modules/gettext: Contains config/config.rpath, not config.rpath.
19185         * modules/iconv: Likewise.
19186
19187 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19188
19189         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19190         to avoid collisions with libcurses and libreadline.
19191
19192         * m4/getstr.m4: Remove.
19193         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
19194
19195 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19196
19197         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19198         to avoid collisions with libcurses and libreadline.
19199
19200         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
19201         * lib/getstr.h, getstr.c: Remove.
19202         * lib/getline.c: Include "getline.h", to check interface.
19203         Move body of old getstr.c here: this defines MIN_CHUNK and
19204         declares getdelim2, which is renamed from getstr.
19205         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
19206
19207         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
19208         All uses changed.
19209         * lib/linebuffer.h: Likewise.
19210         (readline): Remove backward-compatibility macro.
19211
19212 2003-01-12  Paul Eggert  <eggert@twinsun.com>
19213
19214         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19215         to avoid collisions with libcurses and libreadline.
19216         * getstr: Remove.
19217         * MODULES.html.sh: Remove getstr.
19218         * modules/getline: Depend on unlocked-io, not getstr.
19219
19220 2003-01-12  Jim Meyering  <jim@meyering.net>
19221
19222         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
19223
19224 2003-01-10  Bruno Haible  <bruno@clisp.org>
19225
19226         * modules/alloca: Change Makefile.am requirements. Simplify Include
19227         requirements. Add lib/alloca_.h to file list.
19228
19229 2003-01-10  Bruno Haible  <bruno@clisp.org>
19230
19231         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
19232
19233 2003-01-10  Bruno Haible  <bruno@clisp.org>
19234
19235         * lib/alloca_.h: New file.
19236         * lib/getdate.y: Unconditionally include alloca.h.
19237         * lib/makepath.c: Likewise.
19238         * lib/setenv.c: Likewise.
19239         * lib/userspec.c: Likewise.
19240
19241 2003-01-09  Karl Berry  <karl@gnu.org>
19242
19243         * MODULES.html.sh: include `dirname $0` in PATH, to find
19244         gnulib-tool.
19245
19246 2003-01-09  Bruno Haible  <bruno@clisp.org>
19247
19248         * modules/stdbool: Change configure.ac, Makefile.am requirements.
19249         Simplify Include requirements. Add lib/stdbool.h.in to file list.
19250
19251 2003-01-09  Bruno Haible  <bruno@clisp.org>
19252
19253         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
19254
19255 2003-01-09  Bruno Haible  <bruno@clisp.org>
19256
19257         * lib/stdbool.h.in: New file.
19258
19259 2003-01-09  Bruno Haible  <bruno@clisp.org>
19260
19261         * gnulib-tool (func_all_modules): Ignore files ending in ~.
19262         * MODULES.html.sh: Likewise.
19263
19264 2003-01-08  Jim Meyering  <jim@meyering.net>
19265
19266         * lib/full-write.c: Undefine and define-away `const' after inclusion
19267         of errno.h, not before.  Suggestion from Bruno Haible.
19268
19269 2003-01-08  Bruno Haible  <bruno@clisp.org>
19270
19271         * modules/full-read: Depend on full-write.
19272
19273 2003-01-08  Bruno Haible  <bruno@clisp.org>
19274
19275         * lib/safe-read.c: Include specification header first, to ensure its
19276         selfcontainedness.
19277         * lib/full-write.c: Likewise.
19278
19279 2003-01-07  Jim Meyering  <jim@meyering.net>
19280
19281         * lib/full-write.c: Rework so that it may serve to define full_read,
19282         too.
19283         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
19284
19285 2003-01-07  Bruno Haible  <bruno@clisp.org>
19286
19287         * lib/strtoimax.c: Include <stdint.h> as an alternative to
19288         <inttypes.h>.
19289         * lib/xstrtol.h: Likewise.
19290         * lib/xstrtoimax.c: Likewise.
19291         * lib/xstrtoumax.c: Likewise.
19292         * lib/human.h: Likewise.
19293
19294         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
19295         on systems that have <inttypes.h> but not <stdint.h>.
19296
19297 2003-01-07  Bruno Haible  <bruno@clisp.org>
19298
19299         * MODULES.html.sh: Add copyright notice.
19300         (missed_files): Omit CVS directory entries.
19301         (func_module): Make it work with sed-3.02.
19302         * MODULES.txt: Remove file.
19303
19304 2003-01-06  Jim Meyering  <jim@meyering.net>
19305
19306         * lib/version-etc.c: Update year in translatable copyright string.
19307
19308 2003-01-03  Karl Berry  <karl@gnu.org>
19309
19310         * config/config.{guess,sub}: update from prep.
19311
19312 2003-01-02  Karl Berry  <karl@gnu.org>
19313
19314         * doc/COPYING.DOC: belatedly updated to 1.2.
19315
19316 2003-01-01  Karl Berry  <karl@gnu.org>
19317
19318         * gnulib-tool (func_verify_module): report module name $module in
19319         error message, not $1.
19320         * gnulib-tool (create-testdir): don't complain if destdir couldn't
19321         be created, only if it doesn't exist.
19322         * gnulib-tool (last_checkin_date): don't expand the $Date here.
19323
19324 2002-12-31  Paul Eggert  <eggert@twinsun.com>
19325
19326         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
19327
19328 2002-12-31  Paul Eggert  <eggert@twinsun.com>
19329
19330         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
19331         memcmp if strcoll doesn't work.
19332
19333 2002-12-31  Bruno Haible  <bruno@clisp.org>
19334
19335         * lib/utime.c (utime_null): No need to call ftruncate if the file was
19336         nonempty.
19337
19338 2002-12-31  Bruno Haible  <bruno@clisp.org>
19339
19340         * lib/memcoll.c (STRCOLL): New macro.
19341         (memcoll): Use it.
19342
19343 2002-12-31  Bruno Haible  <bruno@clisp.org>
19344
19345         * lib/localcharset.h: New file.
19346         * lib/localcharset.c: Include it.
19347         * lib/unicodeio.c: Likewise.
19348
19349 2002-12-31  Bruno Haible  <bruno@clisp.org>
19350
19351         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
19352         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
19353
19354 2002-12-31  Bruno Haible  <bruno@clisp.org>
19355
19356         * lib/getline.h: Include <stddef.h>, for size_t.
19357
19358         * lib/unicodeio.h: Include <stddef.h>, for size_t.
19359         * lib/unicodeio.c: Don't include <stddef.h>.
19360
19361 2002-12-31  Bruno Haible  <bruno@clisp.org>
19362
19363         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
19364         HAVE_TM_ZONE.
19365
19366 2002-12-24  Karl Berry  <karl@gnu.org>
19367
19368         * config/config.guess: update from prep.
19369
19370 2002-12-24  Bruno Haible  <bruno@clisp.org>
19371
19372         General infrasructure.
19373         * m4/README: Rewritten.
19374         * m4/onceonly.m4: New file.
19375         * m4/onceonly_2_57.m4: New file.
19376
19377         Module atexit.
19378         * m4/atexit.m4: New file.
19379
19380         Module strtod.
19381         * m4/strtod.m4: New file.
19382
19383         Module strtol.
19384         * m4/strtol.m4: New file.
19385
19386         Module strtoul.
19387         * m4/strtoul.m4: New file.
19388
19389         Module memchr.
19390         * m4/memchr.m4: New file.
19391
19392         Module memcmp.
19393         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
19394         (jm_FUNC_MEMCMP): Invoke it.
19395
19396         Module memcpy.
19397         * m4/memcpy.m4: New file.
19398
19399         Module memmove.
19400         * m4/memmove.m4: New file.
19401
19402         Module memset.
19403         * m4/memset.m4: New file.
19404
19405         Module strcspn.
19406         * m4/strcspn.m4: New file.
19407
19408         Module strpbrk.
19409         * m4/strpbrk.m4: New file.
19410
19411         Module strstr.
19412         * m4/strstr.m4: New file.
19413
19414         Module strerror.
19415         * m4/strerror.m4: New file.
19416
19417         Module mktime.
19418         * m4/mktime.m4: Renamed from jm-mktime.m4.
19419         (gl_PREREQ_MKTIME): New macro.
19420         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
19421
19422         Module malloc.
19423         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
19424         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
19425         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
19426
19427         Module realloc.
19428         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
19429         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
19430         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
19431
19432         Module strftime.
19433         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
19434         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
19435         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
19436         gl_TM_GMTOFF.
19437         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
19438
19439         Module xalloc.
19440         * m4/xalloc.m4: New file.
19441
19442         Module alloca.
19443         * m4/alloca.m4: New file.
19444
19445         Module putenv.
19446         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19447         (jm_FUNC_PUTENV): Invoke it.
19448
19449         Module setenv.
19450         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
19451         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
19452         when invoked twice.
19453         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
19454         gt_FUNC_SETENV.
19455
19456         Module memrchr.
19457         * m4/memrchr.m4: New file.
19458
19459         Module stpcpy.
19460         * m4/stpcpy.m4: New file.
19461
19462         Module strcase.
19463         * m4/strcase.m4: New file.
19464
19465         Module strdup.
19466         * m4/strdup.m4: New file.
19467
19468         Module strnlen.
19469         * m4/strnlen.m4: New file.
19470
19471         Module strndup.
19472         * m4/strndup.m4: New file.
19473
19474         Module xstrtod.
19475         * m4/xstrtod.m4: New file.
19476
19477         Module xstrtol.
19478         * m4/xstrtol.m4: New file.
19479
19480         Module getdate.
19481         * m4/getdate.m4: New file.
19482
19483         Module unlocked-io.
19484         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
19485         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
19486         * m4/jm-glibc-io.m4n: Remove file.
19487
19488         Module long-options.
19489         * m4/long-options.m4: New file.
19490
19491         Module md5.
19492         * m4/md5.m4: New file.
19493
19494         Module sha.
19495         * m4/sha.m4: New file.
19496
19497         Module getstr.
19498         * m4/getstr.m4: New file.
19499
19500         Module getline.
19501         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
19502         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
19503         <sys/types.h>, for size_t. Use the function name gnu_getline, not
19504         simply getline. Infoke gl_PREREQ_GETLINE.
19505
19506         Module obstack.
19507         * m4/obstack.m4: New file.
19508
19509         Module hash.
19510         * m4/hash.m4: New file.
19511
19512         Module readtokens.
19513         * m4/readtokens.m4: New file.
19514
19515         Module strverscmp.
19516         * m4/strverscmp.m4: New file.
19517
19518         Module stdbool.
19519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
19520         OSF/1.
19521
19522         Module strtoll.
19523         * m4/strtoll.m4: New file.
19524
19525         Module strtoull.
19526         * m4/strtoull.m4: New file.
19527
19528         Module strtoimax.
19529         * m4/strtoimax.m4: New file.
19530
19531         Module strtoumax.
19532         * m4/strtoumax.m4: New file.
19533
19534         Module xstrtoimax.
19535         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
19536         jm_AC_PREREQ_XSTRTOIMAX.
19537         Moved the strtol prerequisites to strtol.m4.
19538         Moved the strtoll prerequisites to strtoll.m4.
19539         Moved the strtoimax prerequisites to strtoimax.m4.
19540
19541         Module xstrtoumax.
19542         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
19543         jm_AC_PREREQ_XSTRTOUMAX.
19544         Moved the strtoul prerequisites to strtoul.m4.
19545         Moved the strtoull prerequisites to strtoull.m4.
19546         Moved the strtoumax prerequisites to strtoumax.m4.
19547
19548         Module chown.
19549         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
19550         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
19551
19552         Module dup2.
19553         * m4/dup2.m4: New file.
19554
19555         Module ftruncate.
19556         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
19557         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
19558
19559         Module getgroups.
19560         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
19561         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
19562
19563         Module gettimeofday.
19564         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
19565         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
19566         gl_PREREQ_GETTIMEOFDAY.
19567
19568         Module mkdir.
19569         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
19570         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
19571
19572         Module mkstemp.
19573         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
19574         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
19575         jm_AC_TYPE_UINTMAX_T.
19576         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
19577
19578         Module stat.
19579         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
19580         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
19581
19582         Module lstat.
19583         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
19584         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
19585
19586         Module timespec.
19587         * m4/timespec.m4 (gl_TIMESPEC): New macro.
19588         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
19589         * m4/st_mtim.m4: Indentation.
19590
19591         Module nanosleep.
19592         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
19593         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
19594         gl_PREREQ_NANOSLEEP.
19595
19596         Module regex.
19597         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
19598         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
19599         (gl_REGEX): New macro.
19600
19601         Module rename.
19602         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
19603         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
19604
19605         Module rmdir.
19606         * m4/rmdir.m4: New file.
19607
19608         Module utime.
19609         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
19610         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
19611         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
19612
19613         Module dirname.
19614         * m4/dirname.m4: New file.
19615
19616         Module getopt.
19617         * m4/getopt.m4: New file.
19618
19619         Module unistd-safer.
19620         * m4/unistd-safer.m4: New file.
19621
19622         Module fnmatch.
19623         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
19624         declaration.
19625         (gl_PREREQ_FNMATCH_EXTRA): New macro.
19626         (gl_FUNC_FNMATCH_POSIX): New macro.
19627         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
19628         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
19629         simply fnmatch.
19630
19631         Module exclude.
19632         * m4/exclude.m4: New file.
19633
19634         Module human.
19635         * m4/human.m4: New file.
19636
19637         Module acl.
19638         * m4/acl.m4: Nop.
19639
19640         Module backupfile.
19641         * m4/backupfile.m4: New file.
19642         * m4/d-ino.m4: Indentation.
19643
19644         Module fsusage.
19645         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
19646         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
19647         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
19648
19649         Module dirfd.
19650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
19651         requirements.
19652
19653         Module euidaccess.
19654         * m4/euidaccess.m4: New file.
19655
19656         Module file-type.
19657         * m4/file-type.m4: New file.
19658
19659         Module fileblocks.
19660         * m4/fileblocks.m4: New file.
19661
19662         Module filemode.
19663         * m4/filemode.m4: New file.
19664
19665         Module isdir.
19666         * m4/isdir.m4: New file.
19667
19668         Module lchown.
19669         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
19670         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
19671
19672         Module makepath.
19673         * m4/makepath.m4: New file.
19674
19675         Module modechange.
19676         * m4/modechange.m4: New file.
19677
19678         Module mountlist.
19679         * m4/mountlist.m4: New file.
19680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
19681         Indentation.
19682
19683         Module path-concat.
19684         * m4/path-concat.m4: New file.
19685
19686         Module pathmax.
19687         * m4/pathmax.m4: New file.
19688
19689         Module same.
19690         * m4/same.m4: New file.
19691
19692         Module save-cwd.
19693         * m4/save-cwd.m4: New file.
19694
19695         Module savedir.
19696         * m4/savedir.m4: New file.
19697
19698         Module xgetcwd.
19699         * m4/xgetcwd.m4: New file.
19700         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
19701
19702         Module xreadlink.
19703         * m4/xreadlink.m4: New file.
19704
19705         Module safe-read.
19706         * m4/safe-read.m4: New file.
19707
19708         Module safe-write.
19709         * m4/safe-write.m4: New file.
19710
19711         Module closeout.
19712         * m4/closeout.m4: New file.
19713
19714         Module stdio-safer.
19715         * m4/stdio-safer.m4: New file.
19716
19717         Module getpass.
19718         * m4/getpass.m4: New file.
19719
19720         Module getugroups.
19721         * m4/getugroups.m4: New file.
19722
19723         Module group-member.
19724         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
19725         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
19726
19727         Module idcache.
19728         * m4/idcache.m4: New file.
19729
19730         Module userspec.
19731         * m4/userspec.m4: New file.
19732
19733         Module gettime.
19734         * m4/clock_time.m4: New file.
19735         * m4/gettime.m4: New file.
19736
19737         Module settime.
19738         * m4/settime.m4: New file.
19739
19740         Module posixtm.
19741         * m4/posixtm.m4: New file.
19742
19743         Module gethostname.
19744         * m4/gethostname.m4: New file.
19745
19746         Module canon-host.
19747         * m4/canon-host.m4: New file.
19748
19749         Module gettext.
19750         * m4/codeset.m4: New file, from gettext-0.11.5.
19751         * m4/gettext.m4: New file, from gettext-0.11.5.
19752         * m4/glibc21.m4: New file, from gettext-0.11.5.
19753         * m4/iconv.m4: New file, from gettext-0.11.5.
19754         * m4/intdiv0.m4: New file, from gettext-0.11.5.
19755         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
19756         * m4/inttypes.m4: New file, from gettext-0.11.5.
19757         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
19758         * m4/isc-posix.m4: New file, from gettext-0.11.5.
19759         * m4/lcmessage.m4: New file, from gettext-0.11.5.
19760         * m4/lib-ld.m4: New file, from gettext-0.11.5.
19761         * m4/lib-link.m4: New file, from gettext-0.11.5.
19762         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
19763         * m4/progtest.m4: New file, from gettext-0.11.5.
19764         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
19765         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
19766         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
19767
19768         Module localcharset.
19769         * m4/localcharset.m4: New file.
19770
19771         Module hard-locale.
19772         * m4/hard-locale.m4: New file.
19773
19774         Module mbswidth.
19775         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
19776         onceonly macros.
19777         * m4/mbrtowc.m4: Add comment.
19778
19779         Module memcasecmp.
19780         * m4/memcasecmp.m4: New file.
19781
19782         Module memcoll.
19783         * m4/memcoll.m4: New file.
19784
19785         Module unicodeio.
19786         * m4/unicodeio.m4: New file.
19787
19788         Module rpmatch.
19789         * m4/rpmatch.m4: New file.
19790
19791         Module yesno.
19792         * m4/yesno.m4: New file.
19793
19794         Module exitfail.
19795         * m4/exitfail.m4: New file.
19796
19797         Module c-stack.
19798         * m4/c-stack.m4 (gl_C_STACK): New macro.
19799         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
19800
19801         Module error.
19802         * m4/error.m4 (gl_ERROR): New macro.
19803         (jm_PREREQ_ERROR): Use onceonly macros.
19804
19805         Module fatal.
19806         * m4/fatal.m4: New file.
19807
19808         Module getloadavg.
19809         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
19810         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
19811
19812         Module getpagesize.
19813         * m4/getpagesize.m4: New file.
19814
19815         Module getusershell.
19816         * m4/getusershell.m4: New file.
19817
19818         Module physmem.
19819         * m4/physmem.m4: New file.
19820
19821         Module posixver.
19822         * m4/posixver.m4: New file.
19823
19824         Module quotearg.
19825         * m4/quotearg.m4: New file.
19826
19827         Module quote.
19828         * m4/quote.m4: New file.
19829
19830         Module readutmp.
19831         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
19832
19833         Module sig2str.
19834         * m4/sig2str.m4: New file.
19835
19836         Other.
19837         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
19838         ulonglong.m4.
19839         * m4/intmax_t.m4: New file.
19840         * m4/d-type.m4: Indentation.
19841         * m4/jm-macros.m4: Update.
19842         * m4/prereq.m4 (jm_PREREQ): Update.
19843         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
19844         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
19845         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
19846         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
19847         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
19848         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
19849         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
19850         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
19851         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
19852         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
19853         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
19854         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
19855         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
19856         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
19857         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
19858         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
19859         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
19860         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
19861         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
19862
19863 2002-12-24  Bruno Haible  <bruno@clisp.org>
19864
19865         * MODULES.txt: Update according to m4/ changes.
19866
19867         Module gettext.
19868         * config.rpath: New file, from gettext-0.11.5.
19869
19870         * modules/*: New module descriptions.
19871         * gnulib-tool: New file.
19872         * MODULES.html.sh: New file.
19873
19874 2002-12-21  Karl Berry  <karl@gnu.org>
19875
19876         * doc/fdl.texi: update to version 1.2.
19877
19878 2002-12-19  Karl Berry  <karl@gnu.org>
19879
19880         * config/config.guess: update from prep.
19881
19882 2002-12-18  Bruno Haible  <bruno@clisp.org>
19883
19884         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
19885         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
19886
19887 2002-12-17  Bruno Haible  <bruno@clisp.org>
19888
19889         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
19890         stdlib.h, string.h.
19891
19892 2002-12-17  Bruno Haible  <bruno@clisp.org>
19893
19894         * lib/canon-host.c (strdup): Remove unused declaration.
19895
19896         * lib/fsusage.c: Include full_read.h.
19897         (get_fs_usage): Use full_read instead of safe_read.
19898
19899         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
19900
19901 2002-12-12  Karl Berry  <karl@gnu.org>
19902
19903         * config/config.guess: update from prep.
19904
19905 2002-12-11  Bruno Haible  <bruno@clisp.org>
19906
19907         * m4/setenv.m4: New file, from gettext-0.11.5.
19908
19909 2002-12-11  Bruno Haible  <bruno@clisp.org>
19910
19911         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
19912         not unsetenv().
19913         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
19914         modifications:
19915
19916         2002-12-11  Bruno Haible  <bruno@clisp.org>
19917
19918                 * setenv.c (alloca): Fall back to malloc.
19919                 (freea): New macro.
19920                 (setenv): Use freea() to free memory allocated with alloca().
19921
19922         2002-11-13  Bruno Haible  <bruno@clisp.org>
19923
19924                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
19925                 function declarations.
19926                 * unsetenv.c (unsetenv): Likewise.
19927
19928         2002-03-04  Bruno Haible  <bruno@clisp.org>
19929
19930                 Portability to AIX 4.3.3.
19931                 * unsetenv.c: New file, extracted from setenv.c.
19932                 * setenv.c: Move the unsetenv() function to unsetenv.c.
19933
19934         2001-12-20  Bruno Haible  <bruno@clisp.org>
19935
19936                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
19937                 use malloc instead. For SunOS 4.
19938
19939         2001-12-11  Bruno Haible  <bruno@clisp.org>
19940
19941                 * setenv.c: Declare alloca.
19942                 (compar_fn_t): New typedef.
19943                 (KNOWN_VALUE, STORE_VALUE): Use it.
19944
19945         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
19946         setenv.h.
19947
19948 2002-12-10  Paul Eggert  <eggert@twinsun.com>
19949
19950         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
19951         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
19952         Choose values that are less likely to collide with system fnmatch
19953         options.
19954         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
19955         defined (e.g., a pure POSIX system).
19956         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
19957         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
19958
19959 2002-12-06  Paul Eggert  <eggert@twinsun.com>
19960
19961         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
19962         a pain in practice to deal with generated m4 files.  This change
19963         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
19964
19965         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
19966         and jm-glibc-io.m4, as they are no longer a special case.
19967         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
19968         kludge and the auto-generation stuff.  Check only whether the
19969         functions are declared, not whether they exist, since older hosts
19970         that don't declare the functions can't use the optimization anyway.
19971
19972 2002-12-06  Jim Meyering  <jim@meyering.net>
19973
19974         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
19975
19976         Merge in changes from libc's misc/error.c, in preparation
19977         for the merge of gnulib's changes back into libc.
19978
19979         * lib/error.c (_): Define only if not already defined.
19980         Move definition to follow all #include directives.
19981         Include unlocked-io.h only if !_LIBC.
19982         [_LIBC]: Include <libio/libioP.h>.
19983         [USE_IN_LIBIO]: Include <libio/iolibio.h>
19984         (fflush): Tweak definition to use INTUSE.
19985         (putc): Define.
19986
19987 2002-12-05  Paul Eggert  <eggert@twinsun.com>
19988
19989         * lib/alloca.c [defined emacs]: Include "lisp.h".
19990         (xalloc_die) [defined emacs]: New macro.
19991         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
19992         [! defined emacs]: Include <xalloc.h>.
19993         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
19994         (pointer): Typedef to POINTER_TYPE *.
19995         (malloc): Remove decl; we now always use xmalloc.
19996         (alloca): Use old-style definition, since Emacs needs this.
19997         Check for arithmetic overflow when computing combined size.
19998
19999 2002-12-04  Paul Eggert  <eggert@twinsun.com>
20000
20001         Do not generate unlocked-io.h automatically, since it's easier to
20002         maintain it by hand.
20003
20004         * lib/unlocked-io.h: New file, from GNU diffutils,
20005         but with proper copyright notice and attribution.
20006         * lib/gen-uio: Remove.
20007         * lib/Makefile.am: Add copyright notice.
20008         (libfetish_a_SOURCES): Add unlocked-io.h.
20009         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
20010         (DISTCLEANFILES, io_functions): Remove macros.
20011         (EXTRA_DIST): Remove gen_uio.
20012         (unlocked-io.h): Remove rule.
20013
20014 2002-12-04  Jim Meyering  <jim@meyering.net>
20015
20016         Reflect the fact that stat.c and lstat.c are no longer generated.
20017         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
20018         (DISTCLEANFILES): Likewise.
20019         (EXTRA_DIST): Likewise.
20020         (all_local): Don't depend on stat.c or lstat.c.
20021         (stat.c, lstat.c): Remove rules.
20022         (EXTRA_DIST): Remove xstat.in.
20023
20024         * lib/xstat.in: Remove file.  Contents moved into stat.c.
20025         * lib/stat.c: New file.  Contents mostly from xstat.in.
20026         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
20027         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
20028
20029         * lib/safe-read.c: Rework so that it may serve to define safe_write,
20030         too.
20031         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
20032
20033 2002-12-03  Jim Meyering  <jim@meyering.net>
20034
20035         * lib/safe-read.c, safe-write.c: Change variable names and comments,
20036         but not semantics, to minimize the differences between these two files.
20037         (safe_read): Change comment to mention SAFE_READ_ERROR.
20038
20039         * lib/safe-read.c (IS_EINTR): Define.
20040         (safe_read): Use IS_EINTR in place of in-function cpp directives.
20041
20042 2002-12-02  Jim Meyering  <jim@meyering.net>
20043
20044         * lib/safe-read.c (EINTR): Define.
20045         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20046         (INT_MAX): Provide fallback.
20047         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
20048
20049         * lib/safe-read.h (SAFE_READ_ERROR): Define.
20050
20051 2002-12-02  Bruno Haible  <bruno@clisp.org>
20052
20053         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
20054         Define, taken from safe-read.c.
20055         (INT_MAX): Provide fallback.
20056         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
20057         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
20058
20059         * lib/safe-read.c (EINTR): Remove definition.
20060         (safe_read): Don't use EINTR if it is absent.
20061
20062 2002-12-01  Jim Meyering  <jim@meyering.net>
20063
20064         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
20065         zero.
20066         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
20067
20068 2002-11-27  Paul Eggert  <eggert@twinsun.com>
20069
20070         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
20071         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
20072         with `if (! (value < limit)) abort ();', for readability.
20073
20074 2002-11-26  Karl Berry  <karl@gnu.org>
20075
20076         * lib/strdup.c: copy from libc again, with jim's ok.
20077         * lib/.cppi-disable: re-add strdup.c
20078
20079 2002-11-25  Karl Berry  <karl@gnu.org>
20080
20081         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
20082         instead of "strtol.c".
20083
20084 2002-11-25  Karl Berry  <karl@gnu.org>
20085
20086         * config/install-sh: update from automake for variable quoting, $0 in
20087         error msgs, etc.
20088
20089         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
20090         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
20091         entry.
20092
20093 2002-11-25  Jim Meyering  <jim@meyering.net>
20094
20095         * lib/mktime.c: Sync from libc, now that it has the latest fix.
20096
20097 2002-11-24  Karl Berry  <karl@gnu.org>
20098
20099         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
20100         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
20101
20102 2002-11-24  Jim Meyering  <jim@meyering.net>
20103
20104         Update from coreutils:
20105
20106         * lib/mktime.c: Merge in changes from libc.
20107
20108         Avoid a link-time failure on some Linux systems.
20109         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
20110         (otherwise).
20111         (__mon_yday): Declare with the STATIC attribute.
20112         (__mktime_internal): Likewise.
20113         Based on a report from Greg Schafer.
20114
20115 2002-11-23  Jim Meyering  <jim@meyering.net>
20116
20117         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
20118         Use `unsigned', not `int', as type of index.
20119
20120         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
20121
20122         * lib/fsusage.c: Remove unneeded parentheses around operands of
20123         `defined'.
20124
20125 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20126
20127         * lib/quotearg.h: Allow multiple inclusion by surrounding with
20128         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
20129         so that we can be included first.
20130         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
20131         * lib/quotearg.c: Include quotearg.h immediately after config.h.
20132         No need to include stddef.h or sys/types.h any more.
20133         Surround local include files with "", not "<>".
20134         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
20135         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
20136         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
20137         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
20138         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
20139         (ISPRINT): Remove; no longer needed now that we assume C89.
20140
20141         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
20142         Preserve errno.
20143
20144         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
20145         quotearg_char): Use SIZE_MAX rather than
20146         (size_t) -1 when we are talking about "infinity".
20147
20148         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
20149
20150 2002-11-22  Paul Eggert  <eggert@twinsun.com>
20151
20152         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
20153         hint that one should use `if (! x) abort ();' rather than `assert
20154         (x);', and anyway it's one less thing to worry about configuring.
20155         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
20156         hash_rehash, hash_insert): Use abort rather than assert.
20157
20158 2002-11-22  Bruno Haible  <bruno@clisp.org>
20159
20160         * lib/safe-read.h: Assume C89. Add comments.
20161         (safe_read): Change return type to size_t.
20162         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
20163         byte counts > SSIZE_MAX correctly.
20164         * lib/safe-write.h: New file.
20165         * lib/safe-write.c: New file.
20166         * lib/full-read.h: New file.
20167         * lib/full-read.c: New file.
20168         * lib/full-write.h: Assume C89. Add comments.
20169         * lib/full-write.c: Include safe-write.h.
20170         (full_write): Rewritten to use safe_write.
20171         Suggested by Jim Meyering and Paul Eggert.
20172
20173 2002-11-21  Jim Meyering  <jim@meyering.net>
20174
20175         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
20176
20177         Merge in changes from the coreutils.
20178
20179         2002-09-25  Paul Eggert  <eggert@twinsun.com>
20180         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
20181         <stdint.h>.
20182         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
20183         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
20184         int.  Work more efficiently if X is the same width as uintmax_t.
20185         Do not compare X to -1, to avoid bogus compiler warning.
20186         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
20187         Don't assume that f_frsize and f_bsize are the same type.
20188
20189         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
20190         warning on FreeBSD.
20191
20192         * lib/makepath.c (make_path): Restore umask *before* creating the final
20193         component.
20194         (make_path): Minor reformatting.
20195
20196         * lib/xmalloc.c: Adjust to work with new autoconf macros,
20197         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
20198         HAVE_MALLOC/HAVE_REALLOC.
20199
20200         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
20201         dummy ones.  At least on GNU/Linux systems, `auto' means something
20202         else.
20203         From Michael Stone.
20204
20205 2002-11-21  Bruno Haible  <bruno@clisp.org>
20206
20207         Remove case insensitive option matching.
20208         * lib/argmatch.h (argcasematch): Remove declaration.
20209         (ARGCASEMATCH): Remove macro.
20210         (__xargmatch_internal): Remove case_sensitive argument.
20211         (XARGMATCH): Update.
20212         (XARGCASEMATCH): Remove macro.
20213         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
20214         case_sensitive argument.
20215         (argcasematch): Remove function.
20216         (__xargmatch_internal): Remove case_sensitive argument.
20217         (main): Use XARGMATCH instead of XARGCASEMATCH.
20218
20219         * lib/xmalloc.c: Change compile-time error message. Add comment about
20220         required autoconf version.
20221
20222 2002-11-20  Paul Eggert  <eggert@twinsun.com>
20223
20224         Merge argmatch cleanups from Bison.  Assume C89.
20225
20226         * lib/argmatch.c: Include config.h here, not in argmatch.h.
20227         Include stdlib.h, for EXIT_FAILURE.
20228         Always include <string.h>, since we assume C89.
20229         (EXIT_FAILURE): Remove pre-C89 bug workaround.
20230         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
20231         Include <stddef.h> instead, since it's all we need for size_t.
20232         (PARAMS): Remove.  All uses removed.
20233         (ARRAY_CARDINALITY): Do not bother to #undef.
20234         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
20235         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20236         Remove unnecessary parentheses.
20237         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20238         Insert necessary parentheses.
20239         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
20240         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
20241
20242 2002-11-19  Bruno Haible  <bruno@clisp.org>
20243
20244         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
20245         * lib/mbswidth.h: Include <stddef.h>, for size_t.
20246
20247         * lib/mbswidth.h (PARAMS): Remove macro.
20248         (mbswidth, mbsnwidth): Use ANSI C function declarations.
20249         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
20250
20251         * lib/gcd.h (PARAMS): Remove macro.
20252         (gcd): Use ANSI C function declarations.
20253         * lib/gcd.c (gcd): Likewise.
20254
20255 2002-11-15  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/strcspn.c: Include <stddef.h>.
20258         (strcspn): Use ANSI C function declaration. Change return type to
20259         size_t. Use NULL.
20260         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
20261         (strpbrk): Use NULL.
20262         * lib/strpbrk.h (PARAMS): Remove macro.
20263         (strpbrk): Use ANSI C function declaration.
20264         * lib/strstr.c: Don't include <sys/types.h>.
20265         * lib/strstr.h (PARAMS): Remove macro.
20266         (strstr): Use ANSI C function declarations.
20267
20268 2002-11-14  Karl Berry  <karl@gnu.org>
20269
20270         * config/mkinstalldirs: `do' on separate line, instead of
20271         `for var; do'.
20272
20273 2002-11-06  Bruno Haible  <bruno@clisp.org>
20274
20275         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
20276         * lib/gcd.c (gcd): Likewise.
20277
20278 2002-11-05  Bruno Haible  <bruno@clisp.org>
20279
20280         * lib/gcd.h: New file, from gettext-0.11.5.
20281         * lib/gcd.c: New file, from gettext-0.11.5.
20282
20283 2002-11-05  Bruno Haible  <bruno@clisp.org>
20284
20285         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20286         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20287         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20288         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20289
20290         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
20291         <libintl.h>.
20292         * lib/makepath.c: Include gettext.h instead of <locale.h> and
20293         <libintl.h>.
20294
20295         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
20296         * lib/human.c: Include gettext.h instead of <libintl.h>.
20297         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
20298         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
20299         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
20300         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
20301         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
20302         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
20303         (textdomain): Remove definition.
20304         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
20305
20306         * lib/long-options.c: Remove include of <libintl.h> and definition of
20307         _.
20308         * lib/same.c: Remove include of <libintl.h> and definition of _.
20309
20310 2002-11-04  Owen Taylor  <otaylor@redhat.com>
20311
20312         * lib/config.charset: A few additions for Solaris.
20313
20314 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
20315
20316         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
20317         * lib/localcharset.c (locale_charset): Declare as extern "C".
20318
20319 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
20320
20321         * lib/config.charset: msdos in uk_UA uses CP1125.
20322
20323 2002-11-04  Bruno Haible  <bruno@clisp.org>
20324
20325         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
20326         * lib/strcase.h: New file, from GNU gettext-0.11.5.
20327         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
20328         * lib/strstr.h: New file, from GNU gettext-0.11.5.
20329         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
20330
20331 2002-11-04  Bruno Haible  <bruno@clisp.org>
20332
20333         * lib/localcharset.c (locale_charset): Don't return an empty string.
20334
20335 2002-11-04  Bruno Haible  <bruno@clisp.org>
20336
20337         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
20338         aliases.
20339
20340 2002-11-04  Bruno Haible  <bruno@clisp.org>
20341
20342         * lib/config.charset: Update for newest glibc. Add canonical names
20343         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
20344
20345 2002-11-04  Bruno Haible  <bruno@clisp.org>
20346
20347         * lib/config.charset: Add support for NetBSD.
20348
20349 2002-11-04  Bruno Haible  <bruno@clisp.org>
20350
20351         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
20352
20353 2002-11-01  Bruno Haible  <bruno@clisp.org>
20354
20355         * configure.in: Add AC_CONFIG_AUX_DIR call.
20356         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
20357         test/Makefile.
20358         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
20359
20360 2002-09-28  Karl Berry  <karl@gnu.org>
20361
20362         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
20363         installed automake until the next release, since changes have been
20364         made.
20365
20366 2002-09-25  Karl Berry  <karl@gnu.org>
20367
20368         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
20369         * lib/getopt*: copy from libc/posix.
20370         * lib/gettext.h: copy from gettext.
20371         * lib/.cppi-disable: add strdup.c, gettext.h.
20372
20373 2002-09-25  Karl Berry  <karl@gnu.org>
20374
20375         * config/srclist.txt: enable gettext.h check.
20376         * config/config.{guess,sub}: update from prep.
20377         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
20378                 from automake 1.6.3.
20379         See srclist*.
20380
20381 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
20382
20383         * regex.c (PATFETCH): Remove the translating fetch.
20384         (PATFETCH_RAW): Rename to PATFETCH.
20385         (set_image_of_range): New fun.
20386         (SET_RANGE_TABLE_WORK_AREA): Use it.
20387         (regex_compile): Don't translate the pattern chars so eagerly.
20388         Only do it when inserting an `exactn' bytecode or when handling
20389         a char-range.
20390         (mutually_exclusive_p): Avoid empty statement.
20391
20392 2002-07-06  Jim Meyering  <meyering@lucent.com>
20393
20394         * m4/README: Don't mention Makefile.am.in.
20395         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
20396
20397 2002-07-01  Jim Meyering  <meyering@lucent.com>
20398
20399         * lib/c-stack.c: Include sys/time.h.
20400         From Volker Borchert.
20401
20402 2002-06-26  Paul Eggert  <eggert@twinsun.com>
20403
20404         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
20405
20406 2002-06-26  Paul Eggert  <eggert@twinsun.com>
20407
20408         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
20409         New macro.  Use it uniformly instead of
20410         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
20411         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
20412         reported by Vin Shelton.
20413
20414 2002-06-22  Paul Eggert  <eggert@twinsun.com>
20415
20416         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
20417         Do not assume SA_SIGINFO behavior.
20418         Bug reported by Jim Meyering on NetBSD 1.5.2.
20419
20420 2002-06-22  Jim Meyering  <meyering@lucent.com>
20421
20422         * m4/c-stack.m4: New file, from diffutils-2.8.2.
20423         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
20424
20425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
20426         now that configure.ac uses AC_GNU_SOURCE.
20427         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
20428         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
20429
20430         Update to latest tools.  Suggestions from Paul Eggert.
20431         * m4/stdbool.m4: New file, from diffutils-2.8.2.
20432         * m4/gnu-source.m4: Update from diffutils-2.8.2.
20433         * m4/fnmatch.m4: Likewise.
20434         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
20435         to AC_HEADER_STDBOOL
20436
20437 2002-06-22  Jim Meyering  <meyering@lucent.com>
20438
20439         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
20440         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
20441
20442 2002-06-22  Jim Meyering  <meyering@lucent.com>
20443
20444         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
20445
20446         * lib/exitfail.c, exitfail.h: Likewise.
20447         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
20448
20449         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
20450         of fnmatch.h.
20451         (EXTRA_DIST): Add fnmatch_loop.c.
20452         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
20453
20454         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
20455         * lib/fnmatch.c: Update from diffutils-2.8.2.
20456         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
20457         * lib/fnmatch.h: Remove file.
20458
20459 2002-06-21  Jim Meyering  <meyering@lucent.com>
20460
20461         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
20462         * m4/mbrtowc.m4: Likewise.
20463
20464         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
20465         * m4/mbswidth.m4: Reflect name change:
20466         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
20467         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20468
20469         * m4/lib-link.m4: Update from gettext-0.11.2.
20470         * m4/gettext.m4: Likewise.
20471
20472         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
20473         From Alfred M. Szmidt.
20474
20475 2002-06-18  Paul Eggert  <eggert@twinsun.com>
20476
20477         * lib/file-type.h: Report an error if neither S_ISREG nor
20478         S_IFREG is defined, instead of using a test specific to glibc
20479         2.2.  This should be safe, since POSIX requires S_ISREG and
20480         Unix Version 7 had S_IFREG.  We don't need to check for
20481         <sys/types.h> since we don't use any symbols that it defines.
20482
20483 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
20484
20485         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
20486         $@-t, so that each temporary file name is unique and valid in the first
20487         8 characters, for operation under DOS.
20488
20489 2002-06-15  Paul Eggert  <eggert@twinsun.com>
20490
20491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
20492
20493 2002-06-15  Jim Meyering  <meyering@lucent.com>
20494
20495         Work even with DJGPP 2.03, which lacks support for symlinks.
20496         From Richard Dawe.
20497         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
20498         is defined.
20499         * lib/lchown.c (S_ISLNK): Likewise.
20500
20501 2002-06-15  Jim Meyering  <meyering@lucent.com>
20502
20503         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
20504         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
20505         have been included before this file.
20506
20507 2002-06-14  Jim Meyering  <meyering@lucent.com>
20508
20509         * lib/file-type.h: Use the version from diffutils-2.8.2.
20510         * lib/file-type.c: Likewise.
20511
20512 2002-06-07  Jim Meyering  <meyering@lucent.com>
20513
20514         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
20515         They're needed at least for NetBSD 1.5.2.
20516         ($statxfs_includes): Include those same headers.
20517         ($statxfs_includes): Include sys/vfs.h if available.
20518         ($statxfs_includes): Likewise for sys/statvfs.h.
20519         Check for the following members in both structs statfs and statvfs:
20520         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
20521
20522 2002-06-01  Jim Meyering  <meyering@lucent.com>
20523
20524         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
20525         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
20526
20527 2002-05-28  Jim Meyering  <meyering@lucent.com>
20528
20529         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
20530         Reported by Volker Borchert.
20531
20532 2002-05-27  Jim Meyering  <meyering@lucent.com>
20533
20534         Fix a problem seen only on nonconforming systems whereby ls.c's
20535         use of localtime, and then of gettimeofday would cause trouble:
20536         the localtime call used to initialize rpl_gettimeofday's save
20537         mechanism would clobber ls's current local time information so
20538         that in any long listing the first file would always be listed
20539         with date 1970-01-01.  Analysis by Volker Borchert.
20540
20541         * lib/gettimeofday.c (localtime): Undefine.
20542         (rpl_localtime): New function.
20543
20544 2002-05-27  Jim Meyering  <meyering@lucent.com>
20545
20546         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
20547         localtime.
20548
20549         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
20550         use the replacement function; it wouldn't resolve at link time.
20551         Reported by Volker Borchert.
20552
20553 2002-05-22  Jim Meyering  <meyering@lucent.com>
20554
20555         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
20556         file-type.h.
20557         * lib/file-type.h: New file.
20558         * lib/file-type.c (file_type): New file/function.  Extracted from
20559         diffutils.
20560
20561 2002-04-30  Jim Meyering  <meyering@lucent.com>
20562
20563         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
20564
20565 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20566
20567         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
20568
20569 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20570
20571         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
20572         Do not check for alloca.h (no longer used) or stdbool.h (was never
20573         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
20574
20575 2002-04-29  Paul Eggert  <eggert@twinsun.com>
20576
20577         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
20578
20579 2002-04-29  Jim Meyering  <meyering@lucent.com>
20580
20581         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
20582         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
20583         Use AC_FUNC_STRNLEN here instead.
20584
20585         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
20586         With autoconf-2.53a, it's part of AC_PROG_CC.
20587
20588 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20589
20590         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
20591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
20592
20593 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20594
20595         * lib/sig2str.h, lib/sig2str.c: New files.
20596         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
20597
20598 2002-04-28  Paul Eggert  <eggert@twinsun.com>
20599
20600         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
20601         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
20602         of 127, since 64 is the largest conceivable number for ancient
20603         nonstandard hosts.
20604         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
20605
20606 2002-04-28  Jim Meyering  <meyering@lucent.com>
20607
20608         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
20609
20610 2002-04-24  Jim Meyering  <meyering@lucent.com>
20611
20612         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
20613         (jm_PREREQ): Use it.
20614
20615         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
20616         mach/mach.h fcntl.h.
20617         Check for this function: setlocale.
20618
20619 2002-04-24  Jim Meyering  <meyering@lucent.com>
20620
20621         * lib/gettext.h: New file, from Gettext.
20622         * lib/Makefile.am (INCLUDES): Remove -I../intl.
20623         (libfetish_a_SOURCES): Add gettext.h.
20624
20625 2002-04-16  Jim Meyering  <meyering@lucent.com>
20626
20627         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
20628         ut_pid, ut_id, ut_exit.
20629
20630 2002-04-16  Jim Meyering  <meyering@lucent.com>
20631
20632         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
20633         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
20634         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
20635
20636 2002-04-12  Jim Meyering  <meyering@lucent.com>
20637
20638         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
20639         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
20640         existence of the getmntinfo function.  Needed for Darwin 5.3.
20641
20642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
20643         This is necessary at least on Darwin 5.3.
20644
20645         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
20646         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
20647         strnlen.o in the library, and that makes some versions of ranlib
20648         object.
20649
20650 2002-04-12  Jim Meyering  <meyering@lucent.com>
20651
20652         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
20653
20654 2002-04-09  Jim Meyering  <meyering@lucent.com>
20655
20656         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
20657         to be more precise.  Rather than saying we're checking whether the
20658         function `works', say what we're testing.
20659         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
20660         Reported by Bruno Haible.
20661
20662 2002-03-10  Jim Meyering  <meyering@lucent.com>
20663
20664         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
20665         Suggestion from Santiago Vila.
20666
20667 2002-03-08  Jim Meyering  <meyering@lucent.com>
20668
20669         * lib/rename.c: Mention that this wrapper is needed also on
20670         mips-dec-ultrix4.4 systems.
20671
20672 2002-03-02  Jim Meyering  <meyering@lucent.com>
20673
20674         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
20675         not HAVE_CLOCK_SETTIME.
20676
20677 2002-02-27  Paul Eggert  <eggert@twinsun.com>
20678
20679         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
20680         Check for clock_settime.
20681
20682 2002-02-27  Paul Eggert  <eggert@twinsun.com>
20683
20684         * lib/nanosleep.h: Rename to....
20685         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
20686
20687         * lib/gettime.c: New file.
20688         * lib/settime.c: New file.
20689         * lib/stime.c: Remove.
20690
20691         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
20692         timespec.h.  Remove nanosleep.h.
20693
20694 2002-02-25  Paul Eggert  <eggert@twinsun.com>
20695
20696         * m4/acl.m4: New file.
20697         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
20698         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
20699
20700 2002-02-25  Paul Eggert  <eggert@twinsun.com>
20701
20702         * lib/acl.c, lib/acl.h: New files.
20703         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
20704
20705 2002-02-24  Jim Meyering  <meyering@lucent.com>
20706
20707         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
20708         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
20709         cause trouble.  Reported by Nelson Beebe.
20710
20711 2002-02-23  Paul Eggert  <eggert@twinsun.com>
20712
20713         * lib/path-concat.c (xpath_concat): Reorder code to pacify
20714         compilers that don't know that xalloc_die never returns.
20715
20716 2002-02-20  Jim Meyering  <meyering@lucent.com>
20717
20718         * lib/getdate.c: Regenerate using bison-1.33.
20719
20720 2002-02-17  Jim Meyering  <meyering@lucent.com>
20721
20722         * config/config.guess (main): Don't use `head -1'; it's no longer
20723         portable. Use `sed 1q' instead.
20724
20725 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
20726
20727         * m4/codeset.m4: Upgrade to gettext-0.11.
20728         * m4/gettext.m4: Upgrade to gettext-0.11.
20729         * m4/glibc21.m4: Upgrade to gettext-0.11.
20730         * m4/iconv.m4: Upgrade to gettext-0.11.
20731         * m4/isc-posix.m4: Upgrade to gettext-0.11.
20732         * m4/lcmessage.m4: Upgrade to gettext-0.11.
20733         * m4/lib-ld.m4: New file, from gettext-0.11.
20734         * m4/lib-link.m4: New file, from gettext-0.11.
20735         * m4/lib-prefix.m4: New file, from gettext-0.11.
20736         * m4/progtest.m4: Upgrade to gettext-0.11.
20737
20738 2002-02-15  Paul Eggert  <eggert@twinsun.com>
20739
20740         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
20741         (jm_PREREQ): Use it.
20742
20743 2002-02-15  Paul Eggert  <eggert@twinsun.com>
20744
20745         * lib/posixver.c, lib/posixver.h: New files.
20746         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
20747
20748 2002-02-02  Paul Eggert  <eggert@twinsun.com>
20749             Bruno Haible  <bruno@clisp.org>
20750
20751         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
20752         (fwrite_success_callback): New declaration.
20753         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
20754         print_unicode_char. Call failure callback instead of error.
20755         (fwrite_success_callback): New function.
20756         (exit_failure_callback): New function.
20757         (fallback_failure_callback): New function.
20758         (print_unicode_char): Call unicode_to_mb.
20759
20760 2002-01-26  Jim Meyering  <meyering@lucent.com>
20761
20762         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
20763         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
20764
20765 2002-01-26  Jim Meyering  <meyering@lucent.com>
20766
20767         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
20768
20769 2002-01-22  Paul Eggert  <eggert@twinsun.com>
20770
20771         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
20772
20773 2002-01-22  Jim Meyering  <meyering@lucent.com>
20774
20775         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
20776         Otherwise, some versions of automake would omit the rule that makes
20777         Makefile from Makefile.in.
20778
20779 2002-01-21  Paul Eggert  <eggert@twinsun.com>
20780
20781         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
20782         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
20783         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
20784         (memcoll): Set errno to zero if there is no error.
20785
20786         * lib/quotearg.c (quotearg_buffer_restyled):
20787         Fix bug with quoting buffers containing NUL when backslashing escapes.
20788         This bug was exposed by the other changes in this patch.
20789         (quotearg_n_options): New arg ARGSIZE.
20790         All callers changed.
20791         (quoting_options_from_style): New function.
20792         (quotearg_n_style): Use it.
20793         (quotearg_n_style_mem): New function.
20794
20795         * lib/quotearg.h (quotearg_n_style_mem): New function.
20796
20797 2002-01-19  Jim Meyering  <meyering@lucent.com>
20798
20799         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
20800         Remove useless quotes: DF_PROG="df".
20801         * m4/strnlen.m4: New file.
20802
20803 2002-01-16  Paul Eggert  <eggert@twinsun.com>
20804
20805         * lib/backupfile.c (ISDIGIT): Comment fix.
20806         * lib/getdate.y (ISDIGIT): Likewise.
20807         * lib/posixtm.c (ISDIGIT, year): Likewise.
20808         * lib/strverscmp.c (ISDIGIT): Likewise.
20809         * lib/userspec.c (ISDIGIT): Likewise.
20810
20811 2002-01-16  Jim Meyering  <meyering@lucent.com>
20812
20813         * lib/getdate.y: Add three semicolons, each just before a closing
20814         brace. Bison (as of version 1.31) no longer papers over that mistake.
20815
20816 2002-01-05  Jim Meyering  <meyering@lucent.com>
20817
20818         * lib/version-etc.c (version_etc_copyright): Update copyright year.
20819
20820 2001-12-19  Paul Eggert  <eggert@twinsun.com>
20821
20822         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
20823         not silently exit merely because the output buffer happens to
20824         have nothing pending.
20825
20826 2001-12-18  Paul Eggert  <eggert@twinsun.com>
20827
20828         See the big note in ../ChangeLog.
20829         * lib/human.c (suffixes): Prefer K to k for 1024.
20830         (generate_suffix_backwards): New function.
20831         (human_readable_inexact): Use it.
20832         * lib/xstrtol.c (__xstrtol): If there is no number but there
20833         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
20834         Accept 'K' as well as 'k'.
20835
20836 2001-12-15  Jim Meyering  <meyering@lucent.com>
20837
20838         * lib/regex.h (__restrict_arr): Update from libc.
20839
20840         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
20841         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
20842         (STREQ): Define.
20843
20844 2001-12-14  Jim Meyering  <meyering@lucent.com>
20845
20846         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
20847         Suggestion from Bruno Haible.
20848
20849 2001-12-10  Jim Meyering  <meyering@lucent.com>
20850
20851         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
20852         xrealloc, Instead, include "xalloc.h".
20853         (initbuffer): Don't cast xmalloc return value to char*.
20854         (readline): Reword comment.
20855         Don't cast xrealloc return value to char*
20856         Return NULL, not 0.
20857
20858 2001-12-09  Jim Meyering  <meyering@lucent.com>
20859
20860         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
20861         about `signed and unsigned type in conditional expression'.
20862         * lib/posixtm.c (posix_time_parse): Likewise.
20863
20864         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
20865
20866         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
20867         to avoid a pedantic warning.
20868
20869         * lib/getstr.c: Don't include assert.h.
20870         (getstr): Remove warning-evoking assertions.
20871         Return -1 if offset parameter is out of bounds.
20872         Change the type of a local from int to size_t.
20873
20874         * lib/strftime.c (my_strftime_localtime_r): Include this function
20875         definition in the `#if ! HAVE_TM_GMTOFF' block.
20876
20877         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
20878         Include xalloc.h instead.
20879
20880 2001-12-02  Jim Meyering  <meyering@lucent.com>
20881
20882         * lib/tempname.c: Don't declare getenv, thus reverting the change of
20883         2001-11-18.  It's no longer necessary, now that stdlib.h is always
20884         included.
20885
20886         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
20887         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
20888
20889 2001-11-30  Akim Demaille  <akim@epita.fr>
20890
20891         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
20892         before being defined.
20893
20894 2001-11-27  Paul Eggert  <eggert@twinsun.com>
20895
20896         * lib/quotearg.h (quotearg_n, quotearg_n_style):
20897         First arg is int, not unsigned.
20898         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
20899         (SIZE_MAX, UINT_MAX): New macros.
20900         (quotearg_n_options): Abort if N is negative.
20901         Avoid overflow check on hosts where size_t is 64 bits and int
20902         is 32 bits, as overflow is impossible there.
20903         Fix off-by-one typo that caused unnecessary reallocation.
20904
20905 2001-11-27  Jim Meyering  <meyering@lucent.com>
20906
20907         * lib/tempname.c: Merge with version from libc.
20908         * lib/regex.c: Likewise.
20909
20910         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
20911         systems for which STDC_HEADERS is 0, it was not included, resulting in
20912         a warning about an integer-to-pointer conversion problem with getenv.
20913         Reported by Volker Borchert.
20914
20915 2001-11-26  Jim Meyering  <meyering@lucent.com>
20916
20917         * lib/gtod.h: Remove file.
20918         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
20919         * lib/gettimeofday.c: Don't include gtod.h.
20920         (GTOD_init): Remove function.
20921         (rpl_gettimeofday): Do its job here instead, rather than aborting.
20922         Suggestion from Volker Borchert.
20923
20924 2001-11-23  Jim Meyering  <meyering@lucent.com>
20925
20926         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
20927         it.
20928         * lib/hash.c (struct hash_table): Define it here instead.
20929
20930 2001-11-22  Jim Meyering  <meyering@lucent.com>
20931
20932         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
20933
20934 2001-11-20  Jim Meyering  <meyering@lucent.com>
20935
20936         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
20937         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
20938
20939 2001-11-19  Jim Meyering  <meyering@lucent.com>
20940
20941         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
20942         directory.  Use "conftestXXXXXX" as the template.
20943         Suggestion from Paul Eggert.
20944
20945         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
20946         immediately, so the test doesn't mistakenly hit the max-open-files
20947         limit.
20948
20949 2001-11-18  Paul Eggert  <eggert@twinsun.com>
20950
20951         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
20952         (TEMPORARIES): New macro.
20953         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
20954         removes an artificial limitation (e.g. HP-UX 10.20, where
20955         TMP_MAX is 17576).
20956
20957 2001-11-18  Jim Meyering  <meyering@lucent.com>
20958
20959         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
20960
20961 2001-11-18  Jim Meyering  <meyering@lucent.com>
20962
20963         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
20964         on SunOS 4.
20965
20966         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
20967         files will be created before anything else.
20968
20969 2001-11-17  Paul Eggert  <eggert@twinsun.com>
20970
20971         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
20972         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
20973
20974 2001-11-17  Jim Meyering  <meyering@lucent.com>
20975
20976         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
20977         Prompted by a report from Bob Proulx.
20978
20979         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
20980         Instead, require UTILS_FUNC_MKSTEMP.
20981
20982 2001-11-17  Jim Meyering  <meyering@lucent.com>
20983
20984         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
20985         Now, that's done as part of AC_FUNC_STRTOD.
20986
20987 2001-11-17  Jim Meyering  <meyering@lucent.com>
20988
20989         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
20990         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
20991         rather than group writable.  Patch by Juan F. Codagnone.
20992
20993         * lib/readtokens.c: Remove explicit declarations of xmalloc and
20994         xrealloc, Instead, include "xalloc.h".
20995
20996         * lib/mountlist.c: Include unlocked-io.h after all system headers.
20997         Remove explicit declarations of xmalloc, xrealloc,
20998         and xstrdup.  Instead, include "xalloc.h".
20999
21000         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
21001         unlocked-io.h.
21002         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
21003         Likewise.
21004         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
21005
21006         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
21007         Reported by Padraig Brady.
21008
21009         * lib/mkstemp.c: #undef mkstemp.
21010         Include config.h.
21011         (rpl_mkstemp): Rename from mkstemp.
21012         Protoize.
21013
21014 2001-11-16  Jim Meyering  <meyering@lucent.com>
21015
21016         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
21017         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
21018         determine the amount of total physical memory, use pstat_getstatic.
21019         HPUX-11 doesn't define _SC_PHYS_PAGES.
21020         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
21021         If sysconf couldn't be used to determine the amount of available
21022         physical memory, use both pstat_getstatic and pstat_getdynamic.
21023         Based on a patch from Bob Proulx.
21024
21025 2001-11-10  Jim Meyering  <meyering@lucent.com>
21026
21027         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
21028         (jm_PREREQ): Use it.
21029
21030 2001-11-09  Jim Meyering  <meyering@lucent.com>
21031
21032         * m4/jm-macros.m4: Require autoconf-2.52f.
21033         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
21034         Use these AC_-prefixed names, not the AM_-prefixed ones.
21035
21036         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
21037
21038 2001-11-05  Jim Meyering  <meyering@lucent.com>
21039
21040         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
21041
21042 2001-11-04  Jim Meyering  <meyering@lucent.com>
21043
21044         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
21045         $DEFS.
21046
21047 2001-11-03  Jim Meyering  <meyering@lucent.com>
21048
21049         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
21050         of AC_DEFUN.
21051
21052         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
21053         know the name of the variable in the macro definition.
21054
21055 2001-11-03  Jim Meyering  <meyering@lucent.com>
21056
21057         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
21058         in argmatch_to_argument call.
21059
21060         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
21061         argument.
21062
21063         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
21064         e.g., a fault due to an attempt to free a NULL pointer.
21065
21066 2001-11-01  Jim Meyering  <meyering@lucent.com>
21067
21068         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
21069         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
21070
21071 2001-11-01  Jim Meyering  <meyering@lucent.com>
21072
21073         * lib/dirfd.c, lib/dirfd.h: New files.
21074         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
21075
21076         * lib/hash.c (hash_print) [TESTING]: Clean up.
21077
21078 2001-10-22  Paul Eggert  <eggert@twinsun.com>
21079
21080         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
21081         to avoid a warning if -Wall.
21082
21083 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
21084
21085         * README: New file
21086         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
21087         (per RMS's instructions, this is now the canonical source)
21088         * lgpl/, gpl/: New directories.
21089
21090 2001-10-21  Paul Eggert  <eggert@twinsun.com>
21091
21092         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
21093
21094 2001-10-21  Jim Meyering  <meyering@lucent.com>
21095
21096         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
21097         this code would end up calling gettext even in packages built
21098         with --disable-nls.
21099         * lib/getopt.c (_): Likewise.
21100         * lib/regex.c (_): Likewise.
21101
21102 2001-10-20  Paul Eggert  <eggert@twinsun.com>
21103
21104         * m4/error.m4 (jm_PREREQ_ERROR):
21105         Do not invoke AC_CHECK_FUNCS with strerror_r, as
21106         AC_FUNC_STRERROR_R does that.
21107         Check for strerror declaration.
21108
21109         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
21110         are supposed to have them these days.
21111         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
21112         Merge changes from latest Autoconf CVS.
21113         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
21114         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
21115         POSIX decided to standardize on the int flavor of strerror_r.
21116
21117 2001-10-20  Paul Eggert  <eggert@twinsun.com>
21118
21119         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
21120         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
21121         Use strerror_r that is only a macro, even if it is not a function.
21122         (strerror): Check for HAVE_DECL_STRERROR before declaring.
21123         (private_strerror): Use prototypes, not old-style function definition.
21124         (print_errno_message): New function.
21125         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
21126         char*-flavored one.
21127         (error_tail, error, error_at_line): Use it.
21128
21129 2001-10-11  Jim Meyering  <meyering@lucent.com>
21130
21131         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
21132         and quote_n (1, ... to avoid clobbering a buffer.
21133
21134 2001-10-05  Jim Meyering  <meyering@lucent.com>
21135
21136         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
21137         hash-pjw.h.
21138         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
21139         * lib/hash-pjw.h: New file.
21140
21141 2001-09-30  Jim Meyering  <meyering@lucent.com>
21142
21143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
21144         `struct fsstat' has the `f_fstypename' member.
21145         Use that to define FS_TYPE, which is now used to make
21146         the getfsstat link test tighter.
21147
21148 2001-09-30  Jim Meyering  <meyering@lucent.com>
21149
21150         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
21151         Include <sys/ucred.h>, for Apple Darwin.
21152         Include sys/mount.h and sys/fs_types.h only if available.
21153         (FS_TYPE): Define.
21154         (read_filesystem_list): Use FS_TYPE.
21155
21156 2001-09-29  Paul Eggert  <eggert@twinsun.com>
21157
21158         * lib/exclude.c (excluded_filename): 0 -> false, since it's
21159         a boolean context.
21160
21161 2001-09-29  Jim Meyering  <meyering@lucent.com>
21162
21163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21164         [one-argument getmntent function]): Include stdio.h before mntent.h.
21165         SunOS 4.1.x needs it for the declaration of `FILE'.
21166         Patch by Volker Borchert.
21167
21168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21169         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
21170         sys/fs_types.h, and make the link-test for getfsstat guard #include
21171         directives with appropriate #if HAVE_*_H tests so that we can
21172         detect getfsstat on Apple Darwin1.3.7 systems.
21173         Reported by Nelson Beebe.
21174         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
21175
21176 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21177
21178         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21179         #defines strtoimax.  Also treat the other strto* functions
21180         like strtoimax.
21181
21182         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21183         Check for strtoul and strtoumax,
21184         as those declarations are made even in the signed case.
21185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
21186         Likewise, for strtol and strtoimax.
21187
21188 2001-09-28  Paul Eggert  <eggert@twinsun.com>
21189
21190         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21191         #defines strtoimax.  Also treat the other strto* functions
21192         like strtoimax.
21193
21194         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
21195         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
21196         (strtoimax, strtoumax): Do not declare if already defined as a macro.
21197
21198 2001-09-26  Jim Meyering  <meyering@lucent.com>
21199
21200         Most macros in unlocked-io.h had the wrong number of arguments.
21201         * lib/gen-uio: New script.
21202         (USE_UNLOCKED_IO): Define to 1 if not already defined.
21203         * lib/unlocked-io.hin: Remove file.
21204         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
21205         rather than trying to embed it here.
21206         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
21207         Reported by Padraig Brady.
21208
21209 2001-09-25  Volker Borchert  <bt@teknon.de>
21210
21211         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
21212         `result'.
21213
21214 2001-09-24  Jim Meyering  <meyering@lucent.com>
21215
21216         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
21217
21218 2001-09-23  Jim Meyering  <meyering@lucent.com>
21219
21220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
21221         instead of the mere test for existence of mntent.h.  The latter
21222         would get a false-positive on AIX 3.4 systems.
21223         In the outer getmntent if-block, don't die if neither of the getmntent
21224         tests succeeds.  Instead, just fall through and continue with the
21225         remaining tests.
21226
21227 2001-09-23  Jim Meyering  <meyering@lucent.com>
21228
21229         * lib/mountlist.c: Remove useless parentheses in #if directives.
21230         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
21231         the deprecated MOUNTED symbol is no longer defined in mntent.h.
21232
21233 2001-09-22  Jim Meyering  <meyering@lucent.com>
21234
21235         * m4/gettext.m4: New file.  From gettext.
21236         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
21237         * m4/progtest.m4: Likewise
21238         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
21239         * m4/glibc21.m4: Likewise.
21240
21241         * m4/libintl.m4: Remove.  No longer used.
21242
21243 2001-09-22  Jim Meyering  <meyering@lucent.com>
21244
21245         * lib/localcharset.c: Update from latest gettext.
21246         * lib/config.charset: Likewise.
21247
21248 2001-09-20  Jim Meyering  <meyering@lucent.com>
21249
21250         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
21251         strtoimax.
21252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
21253         strtoumax.
21254
21255 2001-09-20  Jim Meyering  <meyering@lucent.com>
21256
21257         * lib/xstrtol.c (strtoimax): Guard declaration with
21258         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
21259         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
21260         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
21261         (strtoumax): Likewise, for completeness (it wasn't necessary).
21262
21263 2001-09-17  Paul Eggert  <eggert@twinsun.com>
21264
21265         * lib/strtoimax.c (HAVE_LONG_LONG):
21266         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
21267         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
21268         to work around bug in IBM C compiler.
21269
21270 2001-09-17  Jim Meyering  <meyering@lucent.com>
21271
21272         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
21273         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
21274         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
21275         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
21276         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
21277         whenever the right hand side need not be expanded by the shell.
21278
21279 2001-09-16  Paul Eggert  <eggert@twinsun.com>
21280
21281         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
21282         library.  It's not correct, as some older glibcs are buggy.
21283         fnmatch wasn't fixed until glibc 2.2.
21284
21285         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
21286         special shell magic here.
21287
21288 2001-09-16  Jim Meyering  <meyering@lucent.com>
21289
21290         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
21291         * m4/jm-macros.m4: Require it.
21292
21293 2001-09-16  Jim Meyering  <meyering@lucent.com>
21294
21295         * lib/mkdir.c: New file.
21296
21297 2001-09-15  Jim Meyering  <meyering@lucent.com>
21298
21299         * m4/jm-macros.m4: Check for help2man.
21300
21301 2001-09-11  Jim Meyering  <meyering@lucent.com>
21302
21303         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
21304         The body, by Paul Eggert, was moved here from configure.in.
21305         * m4/jm-macros.m4: Require UTILS_HOST_OS.
21306
21307 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21308
21309         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
21310         (jm_PREREQ): Use it.
21311
21312 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21313
21314         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
21315         Use ssize_t, not int, to store result of readlink.
21316         Check for ssize_t overflow as well as size_t overflow,
21317         as POSIX says the result of readlink is implementation-defined
21318         when ssize_t overflows.
21319         Remove unnecessary cast to char*.
21320         Use free+malloc instead of realloc, as the storage doesn't need
21321         to be preserved and it's clearer and can be more efficient that way.
21322         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
21323         * lib/xreadlink.h (xreadlink): Update prototype.
21324
21325 2001-09-04  Paul Eggert  <eggert@twinsun.com>
21326
21327         * lib/xgetcwd.c: Revert some of the previous change; intead,
21328         fix the HAVE_GETCWD_NULL code to behave more like the
21329         !HAVE_GETCWD_NULL code used to.
21330
21331         Include "xalloc.h".
21332         (xgetcwd): Do not return NULL when memory is exhausted; instead,
21333         invoke xalloc_die.
21334
21335 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21336
21337         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
21338         sys/param.h, as pathmax.h includes them.
21339
21340 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21341
21342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
21343         (jm_PREREQ_XGETCWD): New macro.
21344
21345         * m4/getcwd.m4: New file.
21346
21347 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21348
21349         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
21350         like the HAVE_GETCWD_NULL code.
21351         Include pathmax.h if not HAVE_GETCWD.
21352         Do not include xalloc.h.
21353         (INITIAL_BUFFER_SIZE): New symbol.
21354         Do not use xmalloc / xrealloc, since the caller is responsible for
21355         handling errors.  Preserve errno around `free' during failure.
21356         Do not overrun buffer when using getwd.
21357
21358 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21359
21360         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
21361         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
21362         getcwd (NULL, 0).
21363
21364 2001-09-03  Paul Eggert  <eggert@twinsun.com>
21365
21366         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
21367         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
21368         spotted by Jim Meyering.
21369
21370 2001-09-03  Jim Meyering  <meyering@lucent.com>
21371
21372         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
21373         failure.
21374
21375 2001-09-02  Jim Meyering  <meyering@lucent.com>
21376
21377         * lib/error.c: Update from GNU libc.
21378
21379 2001-09-01  Jim Meyering  <meyering@lucent.com>
21380
21381         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
21382         Used by df.
21383
21384 2001-09-01  Jim Meyering  <meyering@lucent.com>
21385
21386         * lib/xreadlink.c: New file.
21387         * lib/xreadlink.h: New file.
21388         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
21389         xreadlink.h.
21390
21391         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
21392         doesn't conflict with sparc Solaris 7's definition in
21393         /usr/include/sys/int_types.h.
21394
21395         * lib/exclude.c: Use `""', not `<>' to #include non-system header
21396         files.
21397         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
21398         and strncasecmp as r-values.  Unixware didn't have declarations.
21399
21400 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21401
21402         * lib/xstrtol.h: Add copyright notice.
21403         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
21404         LONGINT_INVALID_SUFFIX_CHAR.
21405
21406 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21407
21408         * lib/xstrtol.c (strtoimax): New decl.
21409
21410 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21411
21412         * lib/xgetcwd.c: Don't include pathmax.h.
21413         Include stdlib.h and unistd.h if available.
21414         Include xalloc.h.
21415         (xmalloc, xstrdup, free): Remove decls.
21416         (xgetcwd): Don't assume sizes fit in unsigned.
21417         Check for overflow when computing sizes.
21418         Simplify reallocation code.
21419
21420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21421
21422         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
21423         a directory's st_size can have an arbitrary value, so the old
21424         usage could waste an arbitrary amount of memory.  All uses
21425         changed.
21426         * lib/savedir.h: Update prototype.
21427
21428 2001-08-31  Paul Eggert  <eggert@twinsun.com>
21429
21430         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
21431
21432         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
21433         old strtoimax.c.
21434
21435         Also, make the following further changes to make this file's
21436         configuration more similar to that of strtol.c:
21437         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
21438         (strtoumax, uintmax_t, strtoull, strtol): Remove.
21439         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
21440         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
21441         changed to signed values.
21442
21443         And make the following changes as well:
21444         Fix copyright notice, as 1999 was missing.
21445         (verify): New macro.
21446         (strtoimax): Check sizes at compile-time, not run-time.
21447         Prefer strtol to strtoll if both work.
21448         (main): Remove; it was not that useful and was a pain to maintain.
21449
21450         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
21451
21452 2001-08-31  Jim Meyering  <meyering@lucent.com>
21453
21454         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
21455         Use an initial, malloc'd, buffer of length 128 rather than
21456         a statically allocated one of length 1024.
21457
21458 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21459
21460         Simplify code, partly by assuming autoconf 2.52 semantics.
21461
21462         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
21463
21464         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
21465         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
21466         All uses removed.
21467         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
21468         Move AC_REQUIRE to next-to-top level, to avoid confusion.
21469         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
21470         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
21471         jm_AC_HEADER_INTTYPES_H.
21472         * m4/jm-macros.m4 (jm_MACROS): Likewise.
21473
21474         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
21475
21476         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21477         Quote first arg of AC_DEFUN.
21478         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
21479         since they are needed to parse the include file even if we need
21480         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
21481         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
21482         but with opposite signedness.
21483
21484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21485
21486         Merge 'exclude' changes from tar 1.13.22.
21487         This fixes one or two unlikely storage allocation overflow bugs,
21488         but doesn't change user-visible behavior otherwise.
21489
21490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21491
21492         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
21493         (jm_PREREQ_EXCLUDE): New macro.
21494
21495 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21496
21497         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
21498         tm to be declared.
21499
21500 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21501
21502         * lib/hash.c: Remove '2001' from copyright notice.
21503
21504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21505
21506         * lib/full-write.h: New file.
21507         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
21508         * lib/full-write.c: Correct credits, as cccp.c no longer
21509         exists and anyway it was so heavily changed from the old cccp
21510         code as to be unrecognizable.  Include full-write.h.
21511         (full_write) Return size_t, with short writes meaning failure.
21512         All callers changed.  This fixes a bug with large buffers
21513         on 64-bit hosts.
21514         * lib/utime.c: Include full-write.h.
21515
21516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21517
21518         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
21519         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
21520         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
21521         Include if available.
21522         (<xalloc.h>): Include
21523         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
21524         (verify): New macro.  Use it to verify that EXCLUDE macros do not
21525         collide with FNM macros.
21526         (struct patopts): New struct.
21527         (struct exclude): Use it, as exclude patterns now come with options.
21528         (new_exclude): Support above changes.
21529         (new_exclude, add_exclude_file):
21530         Initial size must now be a power of two to simplify overflow checking.
21531         (free_exclude, fnmatch_no_wildcards): New function.
21532         (excluded_filename): No longer requires options arg, as the options
21533         are determined by add_exclude.  Now returns bool, not int.
21534         (excluded_filename, add_exclude):
21535         Add support for the fancy new exclusion options.
21536         (add_exclude, add_exclude_file): Now takes int options arg.
21537         Check for arithmetic overflow when computing sizes.
21538         (add_exclude_file): xrealloc might modify errno, so don't
21539         realloc until after errno might be used.
21540
21541         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
21542         New macros.
21543         (free_exclude): New decl.
21544         (add_exclude, add_exclude_file): Now takes int options arg.
21545         (excluded_filename): No longer requires options arg, as the options
21546         are determined by add_exclude.  Now returns bool, not int.
21547
21548 2001-08-30  Paul Eggert  <eggert@twinsun.com>
21549
21550         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
21551
21552 2001-08-27  Jim Meyering  <meyering@lucent.com>
21553
21554         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
21555
21556         * lib/version-etc.c (N_): Remove definition.
21557         Revert most of last change.
21558         Instead, simply don't mark the `Copyright...' string for translation.
21559         Based on advice from Paul Eggert.
21560
21561         * lib/strtoxmax.c: Tweak comment.
21562
21563 2001-08-26  Jim Meyering  <meyering@lucent.com>
21564
21565         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
21566
21567         * m4/xstrtoimax.m4: New file.
21568         * m4/xstrtoumax.m4: Add comments explaining why we
21569         AC_REPLACE_FUNCS(strtol).
21570
21571 2001-08-26  Jim Meyering  <meyering@lucent.com>
21572
21573         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
21574         of copyright with `%s' so translators don't get an untranslated
21575         message in 2002.
21576         (COPYRIGHT_YEAR): Define.
21577         (version_etc): Use fprintf rather than fputs.
21578         Suggestion from Ulrich Drepper.
21579
21580         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
21581
21582         * lib/strtoll.c: New file, from GNU libc.
21583         * lib/xstrtoimax.c: New file.
21584
21585         * lib/xstrtol.h: Add xstrtoimax.
21586         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
21587         * lib/strtoimax.c: New file.  Likewise, but first define
21588         STRTOUXMAX_SIGNED.
21589
21590         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
21591         ...
21592         * lib/strtoxmax.c: ... then renamed to this.
21593
21594 2001-08-18  Paul Eggert  <eggert@twinsun.com>
21595
21596         * m4/inttypes.m4: Add AC_PREREQ(2.13).
21597         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
21598         (jm_AC_TYPE_INTMAX_T): New macro.
21599         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
21600
21601         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
21602
21603         * m4/longlong.m4: Renamed from ulonglong.m4.
21604         * m4/inttypes.m4: Renamed from inttypes_h.m4.
21605         * m4/uintmax_t.m4: Removed.
21606
21607 2001-08-13  Paul Eggert  <eggert@twinsun.com>
21608
21609         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
21610         Port to Solaris 8, where 'sed' requires a space after the 'r'
21611         command, and where sh dislikes "$/".  Clean up the spacing a bit.
21612         Redirect output to $tmp just once.
21613
21614 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
21615
21616         * lib/addext.c (<errno.h>): Include.
21617         (errno): Declare if not defined.
21618         (addext): Work correctly when pathconf returns -1 and leaves
21619         errno alone because there is no limit.  Also, work even if
21620         pathconf returns a value greater than SIZE_MAX.
21621
21622 2001-08-12  Jim Meyering  <meyering@lucent.com>
21623
21624         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
21625         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
21626         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
21627         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
21628         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
21629         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
21630         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
21631         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
21632         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
21633         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
21634         utime.m4, utimes.m4, xstrtoumax.m4:
21635         Quote the first argument in each use of AC_DEFUN.
21636
21637 2001-08-12  Jim Meyering  <meyering@lucent.com>
21638
21639         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
21640         Simply `return getcwd (NULL, 0);'.
21641         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
21642         Use 1300 as initial value for length, not PATH_MAX.
21643
21644         * lib/pathmax.h: Clean up cpp syntax.
21645
21646 2001-08-12  Jim Meyering  <meyering@lucent.com>
21647
21648         * lib/gettimeofday.c: New file.
21649         * lib/gtod.h: New file.
21650         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
21651
21652 2001-08-05  Jim Meyering  <meyering@lucent.com>
21653
21654         * m4/jm-macros.m4: Require autoconf-2.52.
21655
21656 2001-08-04  Jim Meyering  <meyering@lucent.com>
21657
21658         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
21659         stmt, to get in sync with glibc.
21660
21661 2001-08-03  Paul Eggert  <eggert@twinsun.com>
21662
21663         The following changes are from gettext 0.10.39 as maintained by
21664         Bruno Haible.
21665
21666         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
21667         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
21668         with inverted sense.  All uses changed.
21669
21670         * lib/mbswidth.c: Don't include <limits.h>.
21671         Include <stdlib.h> and <string.h> unconditionally.
21672         (iswcntrl, mbsinit, ISCNTRL): New macros.
21673         (mbsnwidth): Use K&R style function declarations.
21674         Don't bother checking for MB_LEN_MAX == 1, since the compiler
21675         can optimize it when MB_CUR_MAX == 1.
21676         The width of control characters is zero, not 1.
21677
21678 2001-08-03  Paul Eggert  <eggert@twinsun.com>
21679
21680         The following changes are from gettext 0.10.39 as maintained by
21681         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
21682
21683         * m4/codeset.m4: Upgrade to serial AM1.
21684         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
21685         all uses changed.  Quote first arg of AC_DEFUN.
21686         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
21687
21688         * m4/iconv.m4: Upgrade to serial AM2.
21689         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
21690         Add --with-libconv-prefix.
21691         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
21692         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
21693         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
21694         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
21695         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
21696
21697         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
21698         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
21699         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
21700         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
21701         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
21702         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
21703         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21704         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
21705         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
21706
21707         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
21708         string.h any more.
21709
21710         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
21711         not the default value.
21712
21713         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
21714         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
21715         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
21716         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
21717         Also check for iswcntrl, used for wcwidth fallback.
21718         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
21719         to Autoconf 2.13.
21720
21721 2001-08-03  Jim Meyering  <meyering@lucent.com>
21722
21723         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
21724         as it was in the original.  Reported by Paul Eggert.
21725
21726 2001-07-16  Jim Meyering  <meyering@lucent.com>
21727
21728         * m4/gettimeofday.m4: New file.
21729         Prompted by a report from Bernhard Baehr.
21730
21731 2001-07-15  Jim Meyering  <meyering@lucent.com>
21732
21733         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
21734         stuff. Now it's in ../Makefile.cfg.
21735
21736 2001-07-15  Jim Meyering  <meyering@lucent.com>
21737
21738         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
21739         (BUILT_SOURCES): Add unlocked-io.h.
21740         (io_functions): Define.
21741         (unlocked-io.h): New rule.
21742         (DISTCLEANFILES): Add unlocked-io.h.
21743         (all-local): Depend on unlocked-io.h, to ensure it is created.
21744
21745         * lib/unlocked-io.hin: New file
21746
21747         * lib/regex.c: Update from glibc.
21748
21749 2001-07-05  Jim Meyering  <meyering@lucent.com>
21750
21751         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
21752         recommendation.
21753         (libfetish_a_SOURCES): Put all .h files here instead.
21754         Remove a thus-exposed (better checks in automake) duplicate and
21755         two unnecessary .h files.
21756
21757 2001-07-04  Jim Meyering  <meyering@lucent.com>
21758
21759         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
21760         that generates jm-glibc-io.m4 so that it doesn't trigger any make
21761         distcheck failure.
21762
21763 2001-07-02  Jim Meyering  <meyering@lucent.com>
21764
21765         The following changes were prompted by suggestions from Bruno Haible.
21766
21767         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
21768         is now generated.
21769         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
21770         definition of EXTRA_DIST.
21771         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
21772         ensure that the generated file is created/updated whenever the list
21773         of $(unlocked_functions) is changed.
21774         (jm-glibc-io.m4): New rule.
21775         (unlocked-io.h): New rule -- currently unused.
21776
21777 2001-06-24  Jim Meyering  <meyering@lucent.com>
21778
21779         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
21780         unmatched right bracket, rather than kludging it with an extra,
21781         falsely-matching quote in a comment.  Patch by Akim Demaille.
21782
21783 2001-06-11  Jim Meyering  <meyering@lucent.com>
21784
21785         * lib/regex.c: Update from GNU libc.
21786
21787 2001-05-27  Jim Meyering  <meyering@lucent.com>
21788
21789         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
21790         Check for ut_type in struct utmp.
21791
21792 2001-05-27  Jim Meyering  <meyering@lucent.com>
21793
21794         * lib/readutmp.h (UT_TYPE): Define.
21795
21796 2001-05-24  Jim Meyering  <meyering@lucent.com>
21797
21798         * lib/argmatch.c: Include "quote.h".
21799         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
21800         quote function.  Reported by Göran Uddeborg.
21801
21802 2001-05-22  Jim Meyering  <meyering@lucent.com>
21803
21804         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
21805         now that we use the package-supplied version unconditionally.
21806         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
21807
21808 2001-05-21  Jim Meyering  <meyering@lucent.com>
21809
21810         * m4/regex.m4: Change a couple backticks to single quotes to avoid
21811         shell syntax errors.
21812
21813 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21814
21815         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
21816
21817 2001-05-20  Paul Eggert  <eggert@twinsun.com>
21818
21819         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
21820         Don't bother to check library strftime, since
21821         we'll be using our own my_strftime function anyway.
21822         Define my_strftime instead of strftime.
21823
21824 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
21825
21826         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
21827         which is not yet declared.
21828
21829 2001-05-15  Jim Meyering  <meyering@lucent.com>
21830
21831         * m4/regex.m4: Use proper quoting so brackets appear in the test
21832         program.
21833         Reported by, and with help from, Bruno Haible.
21834
21835 2001-05-13  Jim Meyering  <meyering@lucent.com>
21836
21837         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
21838         undefined.
21839
21840 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21841
21842         dirname code cleanup.  base_name now behaves more compatibly
21843         with POSIX basename when given file names that have trailing
21844         slashes, and similarly for dir_name.  Add new primitives
21845         base_len and dir_len.  Put the directory-name-related decls
21846         into dirname.h.
21847
21848         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
21849         * lib/backupfile.c (base_name): Likewise.
21850         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
21851         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
21852         * lib/makepath.c (strip_trailing_slashes): Likewise.
21853         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
21854         ISSLASH): Likewise.
21855         * lib/rename.c (strip_trailing_slashes): Likewise.
21856         * lib/same.c (base_name): Likewise.
21857         * lib/stripslash.c (ISSLASH): Likewise.
21858
21859         * lib/addext.c: Include <dirname.h> after size_t is defined.
21860         * lib/backupfile.c: Likewise.
21861
21862         * lib/addext.c (addext): Use base_len to trim redundant
21863         trailing slashes instead of doing it ourselves.
21864         But do not trim the last slash if it is not redundant.
21865
21866         * lib/backupfile.c (find_backup_file_name,
21867         max_backup_version): Use base_len instead of rolling it ourselves.
21868         Handle the case of "" and (on DOS) "C:" correctly.
21869
21870         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
21871         needed. Include <string.h>, <dirname.h>.
21872         (base_name): Allow file names ending in slashes, other than names
21873         that are all slashes.  In this case, return the basename followed
21874         by the slashes.  This is more general, and can be used in places
21875         where the original base_name purposely had an assertion failure.
21876         (base_len): New function.
21877
21878         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
21879         Do not include <assert.h>; no longer needed.
21880         Include xalloc.h.
21881         (memrchr): Remove decl.
21882         (dir_name_r): Remove.
21883         (dir_len): Renamed from dirlen.  All callers changed.
21884         Rewrite in terms of base_name, for simplicity and consistency.
21885         (dir_name): Never return NULL.  All callers changed.
21886         Do not include <stdlib.h> in test program; no longer needed.
21887         return 0; is fine for test program.
21888
21889         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
21890         New macros.
21891         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
21892
21893         * lib/path-concat.c (path_concat): Use base_len to compute
21894         base length, not strlen; this means we cannot rely on memcpy
21895         to null-terminate.
21896
21897         * lib/same.c (STREQ): Remove.
21898         (same_name): Handle the case where the basename ends in trailing '/'.
21899
21900         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
21901         a slash was stripped.  Do not strip the last slash after a
21902         file system prefix.
21903
21904 2001-05-11  Paul Eggert  <eggert@twinsun.com>
21905
21906         * lib/Makefile.am (libfetish_a_SOURCES):
21907         Add strftime.c, since we now compile it on all hosts.
21908
21909         * lib/strftime.c (my_strftime):
21910         Define to nstrftime if emacs, but only if my_strftime is not defined.
21911         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
21912         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
21913         Add one more extra argument: a nanoseconds value.
21914         All uses changed.
21915         (ns): New macro.
21916         (my_strftime function): Add %N format.
21917         (emacs_strftimeu): Renamed from emacs_strftime,
21918         with extra ut argument.
21919
21920 2001-05-09  Paul Eggert  <eggert@twinsun.com>
21921
21922         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
21923
21924 2001-04-21  Jim Meyering  <meyering@lucent.com>
21925
21926         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
21927         doesn't interfere.
21928
21929 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21930
21931         * m4/ftruncate.m4: Check for chsize.
21932         Link with ftruncate.o unconditionally if ftruncate is missing.
21933         This was required when cross-compiling to i586-mingw32msvc.
21934
21935 2001-04-08  Jim Meyering  <meyering@lucent.com>
21936
21937         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
21938         recomputed; that's necessary when the offset spans a DST transition.
21939         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
21940
21941 2001-04-02  Jim Meyering  <meyering@lucent.com>
21942
21943         * lib/regex.h, regex.c: Update from GNU libc.
21944
21945 2001-03-24  Jim Meyering  <meyering@lucent.com>
21946
21947         * m4/jm-macros.m4: Require autoconf-2.49d.
21948
21949 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
21950
21951         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
21952
21953 2001-03-19  Paul Eggert  <eggert@twinsun.com>
21954
21955         * lib/version-etc.c (version_etc_copyright): Update to 2001.
21956
21957 2001-03-17  Jim Meyering  <meyering@lucent.com>
21958
21959         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
21960         now that the version in autoconf is equivalent.
21961         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
21962
21963         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
21964         Suggestion from Akim Demaille.
21965
21966         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
21967         (jm_PREREQ_TEMPNAME): New function.
21968
21969 2001-03-16  Paul Eggert  <eggert@twinsun.com>
21970
21971         * lib/tempname.c (uint64_t): Define to uintmax_t if
21972         not defined, and if UINT64_MAX is not defined.
21973         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
21974         Reported by John David Anglin.
21975
21976 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
21977
21978         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
21979         resolve alias if codeset is empty.
21980         * lib/config.charset (BeOS): Use wildcard syntax.
21981
21982 2001-03-13  Jim Meyering  <meyering@lucent.com>
21983
21984         * lib/path-concat.c (path_concat)
21985         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
21986         concatenating e.g., `C:' and `foo'.
21987         From Bruno Haible.
21988
21989 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21990
21991         * lib/localcharset.c (locale_charset): Don't use
21992         setlocale(LC_CTYPE,NULL). Don't return NULL.
21993         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
21994
21995 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
21996
21997         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
21998         support for DOS/DJGPP.
21999
22000 2001-03-01  Paul Eggert  <eggert@twinsun.com>
22001
22002         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
22003         lacks mkstemp.  Compile our own tempname.c if we compile our own
22004         mkstemp.c, as mkstemp relies on tempname.
22005
22006 2001-03-01  Jim Meyering  <meyering@lucent.com>
22007
22008         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
22009         AH_VERBATIM really does output its argument verbatim.
22010
22011 2001-02-28  Paul Eggert  <eggert@twinsun.com>
22012
22013         * lib/Makefile.am (libfetish_a_SOURCES):
22014         Add dup-safer.c, fopen-safer.c.
22015         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
22016
22017         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
22018         * lib/unistd-safer.h: New files.
22019
22020 2001-02-25  Paul Eggert  <eggert@twinsun.com>
22021
22022         The mkstemp replacement is taken from glibc 2.2.2, with some
22023         portability fixes for use outside glibc, as follows:
22024
22025         * lib/tempname.c (struct_stat64): New macro.
22026         (direxists, __gen_tempname): Use it.
22027         This avoids a portability problem with Solaris 8.
22028
22029         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
22030         (<stddef.h>, <stdint.h>, <string.h>):
22031         Include only if STDC_HEADERS || _LIBC.
22032         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
22033         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
22034         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
22035         (__set_errno): Define this macro if <errno.h> doesn't.
22036         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
22037         Define these macros if <stdio.h> doesn't.
22038         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
22039         Define these macros if <sys/stat.h>
22040         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
22041         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
22042         __xstat64): Define if not _LIBC.
22043         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
22044         (__gen_tempname): Invoke gettimeofday only if
22045         HAVE_GETTIMEOFDAY || _LIBC;
22046         otherwise, fall back on plain "time".
22047         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
22048
22049         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
22050
22051         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
22052
22053 2001-02-18  Paul Eggert  <eggert@twinsun.com>
22054
22055         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
22056
22057 2001-02-17  Paul Eggert  <eggert@twinsun.com>
22058
22059         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
22060         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
22061         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
22062         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22063
22064 2001-02-17  Paul Eggert  <eggert@twinsun.com>
22065
22066         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
22067         Remove workaround macros for hosts that have mbrtowc but not
22068         mbstate_t, as we now insist on proper declarations for both
22069         before using mbrtowc.
22070
22071 2001-02-17  Jim Meyering  <meyering@lucent.com>
22072
22073         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
22074         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
22075         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
22076         UnixWare 7.1.1.
22077
22078         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
22079         rather than AC_CACHE_VAL.
22080
22081 2001-02-17  Jim Meyering  <meyering@lucent.com>
22082
22083         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
22084         around included file name.
22085
22086         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
22087
22088         * lib/strftime.c: Update from GNU libc (the only changes were to
22089         comments).
22090
22091 2001-02-17  Jim Meyering  <meyering@lucent.com>
22092
22093         * lib/regex.c: Update from libc.
22094
22095 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
22096
22097         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
22098         clash.
22099
22100 2001-02-16  Paul Eggert  <eggert@twinsun.com>
22101
22102         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
22103         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
22104         Reported by Mark Hounschell via Paul Eggert.
22105
22106 2001-02-07  Jim Meyering  <meyering@lucent.com>
22107
22108         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
22109
22110 2001-02-05  Jim Meyering  <meyering@lucent.com>
22111
22112         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
22113         it includes the patch required for `large file' support with at least
22114         HP-UX's 10.20 /bin/cc.
22115
22116 2001-02-03  Jim Meyering  <meyering@lucent.com>
22117
22118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
22119         AS_IF, now that it works once again (mysteriously).
22120         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22121
22122 2001-01-30  Jim Meyering  <meyering@lucent.com>
22123
22124         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
22125         * m4/chown.m4: Rename conftestchown to conftest.chown.
22126         * m4/rename.m4: s/conftestdir/conftest.d1/ and
22127         s/conftestdir2/conftest.d2/.
22128         * m4/utimes.m4: s/conftestdata/conftest.data/
22129         Inspired by Pavel Roskin's change in autoconf.
22130
22131 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
22132
22133         * lib/config.charset: Update for FreeBSD 4.2.
22134
22135 2001-01-27  Jim Meyering  <meyering@lucent.com>
22136
22137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
22138         a use of AS_IF.
22139         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22140
22141 2001-01-26  Jim Meyering  <meyering@lucent.com>
22142
22143         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
22144         quotearg.c includes it.
22145
22146 2001-01-26  Jim Meyering  <meyering@lucent.com>
22147
22148         * lib/quotearg.c: Include stddef.h.
22149         * lib/quote.c: Include stddef.h.
22150         Reported by Axel Kittenberger.
22151
22152         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
22153         line in double quotes so that it evokes a better diagnostic.
22154         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
22155         Reported by Axel Kittenberger.
22156
22157 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
22158
22159         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
22160         as if it was a `charset'.
22161
22162 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22163
22164         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
22165         has const.
22166
22167 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
22168
22169         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
22170         to avoid a warning.  Add back 'const' to inptr.
22171
22172 2001-01-20  Jim Meyering  <meyering@lucent.com>
22173
22174         Be sure that headers are checked before used in code compiled
22175         for the type checks.
22176         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
22177         In place of that, invoke jm_CHECK_ALL_TYPES.
22178         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
22179         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
22180         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
22181         The check for ssize_t was mistakenly run before the test for unistd.h.
22182
22183         The configure-time check for stdbool.h was missing.
22184         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
22185         (jm_PREREQ_HASH): New function.
22186
22187 2001-01-17  Jim Meyering  <meyering@lucent.com>
22188
22189         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
22190         for autoconf-2.49c.
22191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
22192
22193 2001-01-16  Jim Meyering  <meyering@lucent.com>
22194
22195         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
22196         From Bruno Haible.
22197
22198 2001-01-14  Jim Meyering  <meyering@lucent.com>
22199
22200         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
22201         foo and bar.  Create conftestdir/ in the script, not in the C code.
22202         Remove directories in the script, not in the C code.
22203         Remove conftestdir{,2} before trying to create the directory.
22204         Make the entire configure script fail if the mkdir fails.
22205
22206 2001-01-14  Jim Meyering  <meyering@lucent.com>
22207
22208         * lib/rename.c: New file.  From Volker Borchert.
22209         Include stdlib.h, string.h or strings.h, and xalloc.h.
22210         Use strip_trailing_slashes rather than open-coding it.
22211
22212 2001-01-03  Paul Eggert  <eggert@twinsun.com>
22213
22214         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
22215
22216 2001-01-03  Jim Meyering  <meyering@lucent.com>
22217
22218         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
22219         of local `inptr' to avoid warning with some system declarations of
22220         iconv.
22221
22222 2001-01-02  Volker Borchert  <bt@teknon.de>
22223
22224         * m4/rename.m4: New file.
22225         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
22226
22227 2001-01-01  Jim Meyering  <meyering@lucent.com>
22228
22229         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
22230         even on systems with utmpx.h.  It's necessary for the declaration of
22231         utmp's ut_user member.  Reported by Andreas Jaeger.
22232
22233         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
22234         available. They are required for the declarations of getgrgid and
22235         getpwuid resp.
22236         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
22237         Reported by Andreas Jaeger.
22238
22239 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
22240
22241         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
22242         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
22243         so `make install' also works in VPATH builds.
22244
22245 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
22246
22247         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
22248         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
22249         can be used in subdirectories.
22250
22251 2000-12-29  Paul Eggert  <eggert@twinsun.com>
22252
22253         * lib/modechange.c: Do not assume that mode_t uses the
22254         traditional octal encoding.  E.g. "chmod 1 FOO" should set
22255         the other-execute bit of FOO even if S_IXOTH != 1.
22256
22257         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
22258         WOTH, XOTH, ALLM): New macros.
22259         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
22260          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
22261         Use them.
22262         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
22263         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
22264         (mode_compile):
22265         No need to use uintmax_t; unsigned long is long enough.
22266         Don't bother to get suffix since we don't use it.
22267
22268 2000-12-26  Jim Meyering  <meyering@lucent.com>
22269
22270         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
22271         better with autoheader.
22272
22273 2000-12-24  Jim Meyering  <meyering@lucent.com>
22274
22275         * lib/hash.c (is_prime): Return explicit boolean values.
22276         (hash_get_first): Return NULL to appease Irix5.6's 89.
22277         Reported by Nelson Beebe.
22278
22279 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
22280
22281         * lib/localcharset.c (locale_charset): Add support for Win32.
22282
22283 2000-12-18  Paul Eggert  <eggert@twinsun.com>
22284
22285         * lib/physmem.h, lib/physmem.c: New files.
22286
22287         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
22288         (noinst_HEADERS): Add physmem.h.
22289
22290         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
22291         't' for compatibility with Solaris 8 sort.
22292
22293 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
22294
22295         * lib/config.charset: Add support for BeOS.
22296
22297 2000-12-17  Jim Meyering  <meyering@lucent.com>
22298
22299         * m4/dos.m4 (jm_AC_DOS): New file and macro.
22300         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
22301
22302 2000-12-16  Jim Meyering  <meyering@lucent.com>
22303
22304         This bug had a serious impact on chown: `chown N:M FILE' (for integer
22305         N and M) would have treated it like `chown N:N FILE'.
22306
22307         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
22308
22309 2000-12-16  Jim Meyering  <meyering@lucent.com>
22310
22311         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
22312         SHELLS_FILE to a file name that's useful on djgpp systems.
22313         Include stdlib.h.
22314         (ADDITIONAL_DEFAULT_SHELLS): Define.
22315         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
22316         Based mostly on a patch from Prashant TR.
22317
22318 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
22319
22320         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
22321         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
22322         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
22323
22324 2000-12-08  Andreas Schwab  <schwab@suse.de>
22325
22326         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
22327         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
22328
22329 2000-12-07  Jim Meyering  <meyering@lucent.com>
22330
22331         * lib/stripslash.c (ISSLASH): Define.
22332         (strip_trailing_slashes): Use ISSLASH rather than comparing against
22333         `/'.
22334         From Prashant TR.
22335
22336         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
22337         (dir_name_r): Declare this function as static.
22338         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
22339         manifest itself on a name containing a mix of slashes and
22340         backslashes.
22341         Make this function work with names starting with a DOS-style
22342         drive letter and colon prefix.
22343         (dir_name): Append `.' if necessary.
22344         Based mostly on patches from Prashant TR and Eli Zaretskii.
22345
22346         * lib/dirname.h (dir_name_r): Remove prototype.
22347
22348 2000-12-06  Paul Eggert  <eggert@twinsun.com>
22349
22350         * m4/off_t-format.m4: Remove this file.
22351         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
22352
22353 2000-12-06  Jim Meyering  <meyering@lucent.com>
22354
22355         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
22356         replacement strtoull, we may well need the replacement strtoul, too.
22357         Check for declarations of strtoul and strtoull.
22358         Check for strtol.  Mainly as a cue to cause automake to include
22359         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
22360         Check for limits.h -- strtol.c needs it.
22361
22362 2000-12-05  Jim Meyering  <meyering@lucent.com>
22363
22364         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
22365
22366 2000-12-04  Jim Meyering  <meyering@lucent.com>
22367
22368         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
22369         Also include memory.h, stdlib.h, unistd.h if appropriate.
22370         Reported by Andreas Jaeger (conflicting declaration of malloc).
22371
22372 2000-12-02  Jim Meyering  <meyering@lucent.com>
22373
22374         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
22375         * m4/jm-macros.m4 (jm_MACROS): require it.
22376
22377 2000-12-02  Jim Meyering  <meyering@lucent.com>
22378
22379         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
22380
22381 2000-12-01  Paul Eggert  <eggert@twinsun.com>
22382
22383         * lib/memrchr.c: Include <config.h> before any system include file.
22384
22385 2000-11-30  Jim Meyering  <meyering@lucent.com>
22386
22387         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
22388
22389 2000-11-30  Jim Meyering  <meyering@lucent.com>
22390
22391         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
22392
22393 2000-11-29  Paul Eggert  <eggert@twinsun.com>
22394
22395         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
22396
22397 2000-11-26  Jim Meyering  <meyering@lucent.com>
22398
22399         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
22400
22401 2000-11-22  Paul Eggert  <eggert@twinsun.com>
22402
22403         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
22404         size of (size_t) -1; it's not portable.
22405
22406 2000-11-17  Jim Meyering  <meyering@lucent.com>
22407
22408         * lib/strstr.c: Update from GNU libc.
22409
22410 2000-11-17  Akim Demaille  <akim@epita.fr>
22411
22412         * lib/obstack.h: Formatting changes.
22413         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
22414         prevent type checking.
22415         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
22416         cast the value to (void *): assigning a `foo *' to a `void *'
22417         variable is valid.
22418         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
22419
22420 2000-11-16  Jim Meyering  <meyering@lucent.com>
22421
22422         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
22423
22424 2000-11-11  Jim Meyering  <meyering@lucent.com>
22425
22426         * lib/error.c: Add a couple #includes, merging from GNU libc version.
22427
22428 2000-11-10  Jim Meyering  <meyering@lucent.com>
22429
22430         * lib/obstack.h: Update from GNU libc.
22431         * lib/obstack.c: Likewise.
22432
22433 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
22434
22435         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
22436
22437 2000-11-06  Paul Eggert  <eggert@twinsun.com>
22438
22439         * lib/getusershell.c (setusershell): Use rewind rather than
22440         fseek/fseeko, to avoid configuration hassles with fseeko.
22441         Don't bother opening SHELLS_FILE if shellstream is NULL;
22442         it's not necessary.
22443
22444 2000-11-05  Jim Meyering  <meyering@lucent.com>
22445
22446         * lib/makepath.h (make_dir): Declare.
22447         * lib/makepath.c (make_dir): Remove `static' attribute.
22448         Tweak a comment.
22449
22450 2000-11-04  Jim Meyering  <meyering@lucent.com>
22451
22452         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
22453
22454 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
22455
22456         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
22457         last one in a bucket, advance to the next bucket.
22458
22459 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
22460
22461         * lib/fnmatch.c: Do not comment out all the code if we are using
22462         the GNU C library, because in some cases we are replacing buggy
22463         code in the GNU C library itself.
22464
22465 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
22466
22467         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
22468         (regex_compile): Catch bogus \(\1\).
22469
22470 2000-10-30  Paul Eggert  <eggert@twinsun.com>
22471
22472         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
22473         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
22474         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
22475
22476 2000-10-30  Paul Eggert  <eggert@twinsun.com>
22477
22478         * lib/error.h, getline.h, modechange.h:
22479         Remove "2000" from Copyright line, as the file hasn't been
22480         changed this year other than in the copyright notice.
22481
22482         * lib/xalloc.h: Add "2000" to Copyright line, as this file
22483         was changed this year.
22484
22485 2000-10-29  Jim Meyering  <meyering@lucent.com>
22486
22487         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
22488         renaming.
22489         * m4/ls-mntd-fs.m4: Likewise
22490
22491 2000-10-29  Jim Meyering  <meyering@lucent.com>
22492
22493         * lib/xstat.in: Fix grammar in comment.
22494
22495 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
22496
22497         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
22498         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
22499         doesn't define __restrict_arr.
22500
22501 2000-10-28  Jim Meyering  <meyering@lucent.com>
22502
22503         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
22504         (jm_PREREQ_MEMCHR): New function.
22505
22506 2000-10-28  Jim Meyering  <meyering@lucent.com>
22507
22508         * lib/memchr.c: Update from libc.
22509         Adjust for portability:
22510         [HAVE_STDLIB_H]: Include stdlib.h.
22511         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
22512         Undef __memchr, too.
22513         [!weak_alias]: Define __memchr to memchr.
22514
22515         * lib/regex.c: Update from libc.
22516         * lib/regex.h: Likewise.
22517         * lib/getopt1.c: Likewise.
22518         * lib/memcmp.c: Likewise.
22519
22520         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
22521         Avoid using fseek, when possible -- it's broken by design.
22522         Patch by Ulrich Drepper.
22523
22524 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
22525
22526         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
22527         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
22528         Giving in to popular pressure to shut up the compiler with casts.
22529
22530 2000-10-26  Jim Meyering  <meyering@lucent.com>
22531
22532         * lib/strftime.c: Update from libc.
22533
22534 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
22535
22536         * regex.c: More `unsigned char' -> `re_char' changes.
22537         Also change several `int' into `re_wchar_t'.
22538         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
22539         (PUSH_FAILURE_POINTER): Don't cast any more.
22540         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
22541         We want GCC to complain, since this piece of code makes
22542         re_match non-reentrant, which *should* be fixed.
22543         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
22544         (EXTEND_BUFFER): Use RETALLOC.
22545         (SET_LIST_BIT): Don't cast.
22546         (re_wchar_t): New type.
22547         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
22548         that those two functions will always properly return.
22549         (IMMEDIATE_QUIT_CHECK): Cast to void.
22550         (analyse_first): Use recursion rather than an explicit stack.
22551         (re_compile_fastmap): Can't fail anymore.
22552         (re_search_2): Don't check re_compile_fastmap for failure.
22553         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
22554         Now also sets the new value (passed in a new argument).
22555         (re_match_2_internal): Use it.
22556         Also, use a new var `reg' of type size_t when looping through regs
22557         rather than reuse the inappropriate `mcnt'.
22558
22559 2000-10-25  Jim Meyering  <meyering@lucent.com>
22560
22561         * lib/obstack.c: Update from libc.
22562
22563 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
22564
22565         * regex.c (regex_compile): Change the way of handling a range from
22566         a char less than 256 to a char not less than 256.
22567
22568 2000-10-24  Andrew Innes  <andrewi@gnu.org>
22569
22570         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
22571         NT-Emacs only.
22572         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
22573         so that re_search functions only quit when callers expect them to.
22574
22575 2000-10-23  Jim Meyering  <meyering@lucent.com>
22576
22577         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
22578         wrong.  That set_locale call must not have any side effects.
22579         From Paul Eggert.
22580
22581 2000-10-22  Jim Meyering  <meyering@lucent.com>
22582
22583         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
22584         [CYCLIC]: Remove now-unused definition.
22585
22586         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
22587         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
22588         Suggestion from Ulrich Drepper.
22589
22590 2000-10-21  Jim Meyering  <meyering@lucent.com>
22591
22592         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
22593         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
22594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
22595
22596 2000-10-21  Jim Meyering  <meyering@lucent.com>
22597
22598         * lib/dirname.c (memrchr): Declare if necessary.
22599         (dir_name): Remove the restriction that there be no
22600         trailing slashes.  Now, this code skips past them, effectively
22601         ignoring them.
22602         [TEST_DIRNAME] (main): New unit tests.
22603
22604         * lib/memrchr.c: New file from GNU libc.
22605         Undef __memrchr, too.
22606         [!weak_alias]: Define __memrchr to memrchr.
22607         Guard weak_alias use with `#ifdef weak_alias'.
22608
22609 2000-10-21  Jim Meyering  <meyering@lucent.com>
22610
22611         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
22612         (dir_name): Use dir_name_r.
22613         * lib/dirname.h (dir_name_r): Declare it.
22614
22615 2000-10-17  Jim Meyering  <meyering@lucent.com>
22616
22617         * lib/quote.h (PARAMS): Define and use.
22618         Reported by Akim Demaille.
22619
22620         * lib/getopt.c: Update from libc.
22621
22622 2000-10-16  Jim Meyering  <meyering@lucent.com>
22623
22624         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
22625         setlocale.
22626         From Jan Fedak.
22627
22628 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
22629
22630         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
22631
22632 2000-09-25  Jim Meyering  <meyering@lucent.com>
22633
22634         * lib/md5.h (rol): Define (from GnuPG).
22635
22636         * lib/sha.c: Give credit (GnuPG) where due.
22637         (M): Use rol rather than open-coding it.
22638         Add a FIXME comment.
22639
22640 2000-09-21  Jim Meyering  <meyering@lucent.com>
22641
22642         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
22643         Reported by Michael Stone.
22644
22645 2000-09-20  Jim Meyering  <meyering@lucent.com>
22646
22647         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
22648         (noinst_HEADERS): Add sha.h.
22649         Based on code from Scott G. Miller and from GnuPG.
22650
22651 2000-09-18  Jim Meyering  <meyering@lucent.com>
22652
22653         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
22654         LIBS. Otherwise, everyone ends up linking with -lelf for some
22655         configurations.
22656         Reported by Mike Stone.
22657
22658 2000-09-15  Jim Meyering  <meyering@lucent.com>
22659
22660         * lib/regex.c: Update from libc.
22661
22662 2000-09-10  Jim Meyering  <meyering@lucent.com>
22663
22664         * lib/getopt.c (_getopt_internal): Update from glibc.
22665
22666 2000-09-09  Jim Meyering  <meyering@lucent.com>
22667
22668         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
22669         think it should be used as a general replacement for isascii.
22670         * lib/fnmatch.c: Likewise.
22671         * lib/mbswidth.c: Likewise
22672         * lib/regex.c: Likewise.
22673
22674         Don't use atoi.
22675         * lib/userspec.c: Include sys/param.h and limits.h.
22676         Include xstrtol.h.
22677         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
22678         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
22679         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
22680         UID, GID.  Check range.
22681
22682 2000-09-06  Jim Meyering  <meyering@lucent.com>
22683
22684         * lib/getopt.c (_getopt_internal): Update from glibc.
22685
22686 2000-08-30  Jim Meyering  <meyering@lucent.com>
22687
22688         * lib/strftime.c: Merge in changes from GNU libc.
22689
22690 2000-08-26  Jim Meyering  <meyering@lucent.com>
22691
22692         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
22693         * m4/fpending.m4: New file.
22694
22695 2000-08-26  Jim Meyering  <meyering@lucent.com>
22696
22697         * lib/closeout.c: Include "__fpending.h".
22698         (close_stdout_status): Return right away if there's nothing to flush.
22699
22700         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
22701         * lib/__fpending.c: New file.
22702         * lib/__fpending.h: New file.
22703
22704 2000-08-20  Jim Meyering  <meyering@lucent.com>
22705
22706         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
22707         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
22708         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
22709
22710 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
22711
22712         Improve fileutils installation on systems where running
22713         programs (like install) can't be unlinked.
22714         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
22715         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
22716
22717 2000-08-07  Paul Eggert  <eggert@twinsun.com>
22718
22719         Standardize on "memory exhausted" instead of "Memory exhausted"
22720         or "virtual memory exhausted".
22721         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
22722         "virtual memory exhausted".
22723         * lib/same.c (same_name): Invoke xalloc_die instead of printing
22724         our own message.
22725         * lib/userspec.c (parse_user_spec): Likewise.
22726         * lib/bumpalloc.h: comment fix
22727         * lib/same.c, userspec.c: Include xalloc.h.
22728
22729         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
22730         not char *const and pointing to a constant array.
22731         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
22732         (xrealloc): Comment fix.
22733
22734         * lib/userspec.c (parse_user_spec):
22735         Don't translate a message until just before returning,
22736         to avoid unnecessary translation.
22737
22738 2000-08-07  Jim Meyering  <meyering@lucent.com>
22739
22740         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
22741         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
22742         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
22743         getgroups.c, gethostname.c, getopt.h, group-member.c,
22744         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
22745         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
22746         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
22747         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
22748         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
22749         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
22750         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
22751         yesno.c: Back out Copyright date changes for each file with no change
22752         this year.  This eases coordination with other programs using the same
22753         source code modules.  From Paul Eggert.
22754
22755 2000-08-06  Paul Eggert  <eggert@twinsun.com>
22756
22757         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
22758         not char, for compatibility with glibc 2.1.3 strftime.c.
22759
22760 2000-08-03  Greg McGary  <greg@mcgary.org>
22761
22762         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
22763         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
22764         (EXTEND_BUFFER): Use them.
22765
22766 2000-08-01  Jim Meyering  <meyering@lucent.com>
22767
22768         * lib/dirname.c (ISSLASH): Define.
22769         (BACKSLASH_IS_PATH_SEPARATOR): Define.
22770         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
22771         both `\' and `/' may be use as path separators.
22772         Based on a patch from Prashant TR.
22773
22774 2000-07-31  Paul Eggert  <eggert@twinsun.com>
22775
22776         * lib/quotearg.c (quotearg_n_options): Don't make the initial
22777         slot vector a constant, since it might get modified.
22778
22779 2000-07-31  Jim Meyering  <meyering@lucent.com>
22780
22781         * lib/xmalloc.c: Use `virtual memory exhausted', not
22782         `Memory exhausted'.
22783         * lib/obstack.c (print_and_abort): Likewise.
22784
22785 2000-07-30  Paul Eggert  <eggert@twinsun.com>
22786
22787         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
22788         buffer, so that the caller can always quote one small
22789         component of a "memory exhausted" message in slot 0.
22790         From a suggestion by Jim Meyering.
22791
22792 2000-07-30  Jim Meyering  <meyering@lucent.com>
22793
22794         * lib/makepath.c (make_path): Quote the other instance, too.
22795
22796         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
22797         (STATIC_BUF_SIZE): Define.
22798         (quotearg_n_options): Use only statically allocated storage when
22799         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
22800         than STATIC_BUF_SIZE.
22801
22802 2000-07-29  Jim Meyering  <meyering@lucent.com>
22803
22804         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
22805         * lib/dirname.c (dir_name): Likewise.
22806
22807         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
22808         `/'.
22809
22810         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
22811         (dir_name): Assert that there are no trailing slashes.
22812
22813 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
22814
22815         * lib/mbswidth.h (mbswidth): Add a flags argument.
22816         (mbswidth): New declaration.
22817         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
22818         * lib/mbswidth.c (mbswidth): Add a flags argument.
22819         (mbsnwidth): New function.
22820
22821 2000-07-24  Jim Meyering  <meyering@lucent.com>
22822
22823         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
22824
22825 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22826
22827         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
22828
22829 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22830
22831         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
22832         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
22833         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
22834         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
22835         invoke multibyte primitives.
22836
22837 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22838
22839         * lib/quotearg.c:
22840         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
22841         so that mbstate_t is always defined.
22842
22843         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
22844         be 1 in at least one GCC installation, and this configuration
22845         error is likely to be common.  Ignoring MB_LEN_MAX hurts
22846         performance on hosts that have mbrtowc but have only unibyte
22847         locales, but I assume these hosts are rare.
22848
22849 2000-07-23  Paul Eggert  <eggert@twinsun.com>
22850
22851         * lib/mbswidth.c (_XOPEN_SOURCE):
22852         Don't define; this causes problems on Solaris 7.
22853         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
22854
22855 2000-07-23  Jim Meyering  <meyering@lucent.com>
22856
22857         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
22858         too: getgrgid, getpwuid, getuid.
22859
22860 2000-07-23  Jim Meyering  <meyering@lucent.com>
22861
22862         * lib/basename.c (base_name): Add an assertion.
22863
22864 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
22865
22866         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
22867         shadow its mbsinit function.
22868
22869 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
22870
22871         * lib/mbswidth.h: New file.
22872         * lib/mbswidth.c: New file.
22873         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
22874         (noinst_HEADERS): Add mbswidth.h.
22875
22876 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
22877
22878         * lib/config.charset: Add support for FreeBSD. Improve support for
22879         HP-UX and IRIX 6.
22880
22881 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
22882
22883         * m4/mbswidth.m4: New file.
22884         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
22885
22886 2000-07-15  Jim Meyering  <meyering@lucent.com>
22887
22888         * lib/makepath.c: Include quote.h.
22889         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
22890         corresponding argument in a `quote (...)' call.
22891         Give better diagnostics.
22892
22893         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
22894         (noinst_HEADERS): Add quote.h.
22895
22896         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
22897         from tar's src/misc.c.
22898         * lib/quote.h: New file.  Prototypes for same.
22899
22900 2000-07-14  Paul Eggert  <eggert@twinsun.com>
22901
22902         From a suggestion by Bruno Haible.
22903         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
22904         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
22905         to decide whether to define the BeOS workaround macro;
22906         this adjusts to the change to AC_MBSTATE_T.
22907
22908 2000-07-14  Jim Meyering  <meyering@lucent.com>
22909
22910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
22911         jm_AC_TYPE_UINTMAX_T.
22912
22913 2000-07-13  Paul Eggert  <eggert@twinsun.com>
22914
22915         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
22916
22917         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
22918         quotearg_buffer_restyled): Add support for
22919         clocale_quoting_style.  Undo previous change to
22920         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
22921         and "{RIGHT QUOTATION MARK}" msgids.
22922
22923 2000-07-10  Paul Eggert  <eggert@twinsun.com>
22924
22925         From a suggestion by Bruno Haible.
22926         * m4/mbstate_t.m4 (AC_MBSTATE_T):
22927         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
22928         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
22929         and mbstate_t, to a single-part test that simply defines mbstate_t.
22930         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
22931         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
22932
22933 2000-07-10  Jim Meyering  <meyering@lucent.com>
22934
22935         * m4/strerror_r.m4: Mirror the correction made in autoconf.
22936
22937         * m4/gnu-source.m4: Output to confdefs.h directly.
22938         Suggestion from Akim Demaille.
22939
22940 2000-07-09  Paul Eggert  <eggert@twinsun.com>
22941
22942         The old behavior of quoting `like this' doesn't look good with
22943         newer, ISO-style fonts.  See:
22944         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
22945
22946         Instead, quote "like this" by default.  Let the translator
22947         tailor the locale-specific quoting behavior by providing
22948         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
22949
22950         * lib/quotearg.c (N_): New macro.
22951         (gettext_default): New function.
22952         (quotearg_buffer_restyled): Use
22953         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
22954         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
22955
22956 2000-07-09  Jim Meyering  <meyering@lucent.com>
22957
22958         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
22959         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
22960
22961         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
22962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
22963
22964 2000-07-09  Jim Meyering  <meyering@lucent.com>
22965
22966         * lib/Most files: Update copyright dates to include 2000.
22967
22968 2000-07-08  Jim Meyering  <meyering@lucent.com>
22969
22970         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
22971         if not defined.
22972         (xgethostname): Remove now-unnecessary #ifdef.
22973         Move declaration of `err' into loop where it's used.
22974
22975 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22976         and Bruno Haible  <haible@clisp.cons.org>
22977
22978         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
22979         only if the test for an object-type mbstate_t fails.  This
22980         prevents us from mistakenly reporting that mbstate_t is a
22981         system object type after we "#define mbstate_t int" to work
22982         around its lack.
22983
22984 2000-07-05  Paul Eggert  <eggert@twinsun.com>
22985         and Bruno Haible  <haible@clisp.cons.org>
22986
22987         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
22988
22989 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22990
22991         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
22992         to strerror_r.
22993         Include <ctype.h> for use of isalpha.
22994
22995 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
22996
22997         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
22998         by allocating a larger buffer. Test the gethostname return value for
22999         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
23000         returns an error and ENAMETOOLONG isn't defined.
23001
23002 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
23003
23004         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
23005         dimension.
23006
23007 2000-07-04  Jim Meyering  <meyering@lucent.com>
23008
23009         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
23010         of the deprecated AC_CHECKING.
23011
23012 2000-07-04  Jim Meyering  <meyering@lucent.com>
23013
23014         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
23015         Reported by Bruno Haible.
23016
23017 2000-07-04  Jim Meyering  <meyering@lucent.com>
23018
23019         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
23020         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
23021         lacks mbrtowc.
23022
23023 2000-07-03  Paul Eggert  <eggert@twinsun.com>
23024
23025         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
23026         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
23027
23028 2000-07-03  Paul Eggert  <eggert@twinsun.com>
23029         and Bruno Haible  <haible@clisp.cons.org>
23030
23031         * lib/quotearg.c (mbrtowc):
23032         Assign to *pwc, and return 1 only if result is nonzero.
23033         (iswprint): Use ISPRINT when substituting our own mbrtowc.
23034
23035 2000-07-03  Jim Meyering  <meyering@lucent.com>
23036
23037         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
23038
23039 2000-07-03  Jim Meyering  <meyering@lucent.com>
23040
23041         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
23042         This is necessary to get a definition of e.g., UTMP_FILE on
23043         HP-UX 10.20.
23044         From Bob Proulx.
23045
23046 2000-07-02  Jim Meyering  <meyering@lucent.com>
23047
23048         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
23049
23050         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
23051         AC_LIBOBJ(function_name).
23052         * m4/chown.m4: Likewise.
23053         * m4/fnmatch.m4: Likewise.
23054         * m4/ftruncate.m4: Likewise.
23055         * m4/getgroups.m4: Likewise.
23056         * m4/getline.m4: Likewise.
23057         * m4/group-member.m4: Likewise.
23058         * m4/jm-macros.m4: Likewise.
23059         * m4/lstat.m4: Likewise.
23060         * m4/malloc.m4: Likewise.
23061         * m4/memcmp.m4: Likewise.
23062         * m4/nanosleep.m4: Likewise.
23063         * m4/putenv.m4: Likewise.
23064         * m4/realloc.m4: Likewise.
23065         * m4/regex.m4: Likewise.
23066         * m4/stat.m4: Likewise.
23067         * m4/strftime.m4: Likewise.
23068
23069 2000-07-02  Jim Meyering  <meyering@lucent.com>
23070
23071         * lib/quotearg.c (mbstate_t): Don't define here.
23072
23073 2000-07-02  Jim Meyering  <meyering@lucent.com>
23074
23075         * lib/nanosleep.c (SIGCONT): Define if not already defined.
23076
23077 2000-07-01  Jim Meyering  <meyering@lucent.com>
23078
23079         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
23080
23081 2000-07-01  Jim Meyering  <meyering@lucent.com>
23082
23083         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
23084         problem.
23085
23086 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
23087
23088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
23089         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
23090
23091 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
23092
23093         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
23094         per change in ../m4/ls-mntd-fs.m4.
23095         (read_filesystem_list): Ignore symbolic links.
23096
23097 2000-06-29  Jim Meyering  <meyering@lucent.com>
23098
23099         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
23100         for declaration of strcmp.
23101
23102         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
23103
23104         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
23105         Avoid warning by casting result to `char *' to remove `const'.
23106
23107 2000-06-28  Jim Meyering  <meyering@lucent.com>
23108
23109         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
23110         included by quotearg.c, for which we perform this test.  From
23111         Bruno Haible.
23112
23113 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
23114
23115         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
23116         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
23117         <utmpx.h> exists, put readutmp.o into LIBOBJS.
23118
23119 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
23120
23121         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
23122
23123 2000-06-26  Paul Eggert  <eggert@twinsun.com>
23124
23125         savedir now sets errno on failure and invokes xmalloc to get memory.
23126         Fix a couple of other minor bugs while we're at it.
23127
23128         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
23129         (NAMLEN): Remove macro.
23130         (malloc, realloc): Remove decls.
23131         (stpcpy): Likewise.
23132         ("xalloc.h"): Include.
23133         (NAME_SIZE_DEFAULT): New macro.
23134         (savedir): Use xmalloc / xrealloc to allocate memory.
23135         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
23136         Skip "" directory entries.
23137         Use strlen to calculate directory entry length, since the old method
23138         is rarely used these days and isn't worth supporting.
23139         Don't use a pointer after freeing it.
23140         Check for integer overflow when calculating allocation size.
23141         Use memcpy to copy entries, instead of stpcpy.
23142         Set errno properly when returning NULL.
23143         Check for readdir error.
23144
23145 2000-06-26  Jim Meyering  <meyering@lucent.com>
23146
23147         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
23148
23149 2000-06-25  Jim Meyering  <meyering@lucent.com>
23150
23151         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
23152         Linux header bug when _XOPEN_SOURCE is defined to 500.
23153
23154 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23155
23156         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
23157         deficiency.
23158
23159 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
23160
23161         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
23162         Include xalloc.h.
23163         Don't include <stdlib.h>.  Don't declare malloc, realloc.
23164
23165 2000-06-24  Jim Meyering  <meyering@lucent.com>
23166
23167         * m4/strerror_r.m4: Revive this file -- to try out an experimental
23168         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
23169         for which strerror does return char*, but which lacks a conveniently
23170         accessible declaration of the function.  If the compile-test says
23171         strerror_r doesn't work, then resort to a `run'-test that works on
23172         BeOS and segfaults on DEC Unix.
23173
23174 2000-06-24  Jim Meyering  <meyering@lucent.com>
23175
23176         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
23177
23178 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23179
23180         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
23181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
23182
23183 2000-06-23  Paul Eggert  <eggert@twinsun.com>
23184
23185         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
23186         (mbrtowc, mbstate_t): Define substitutes if
23187         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
23188         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
23189         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
23190
23191 2000-06-23  Jim Meyering  <meyering@lucent.com>
23192
23193         * m4/afs.m4: Add missing AC_MSG_RESULT.
23194         Reported by Bruno Haible.
23195
23196         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
23197         Suggestion from Bruno Haible.
23198
23199 2000-06-23  Jim Meyering  <meyering@lucent.com>
23200
23201         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
23202
23203 2000-06-21  Jim Meyering  <meyering@lucent.com>
23204
23205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
23206
23207 2000-06-21  Jim Meyering  <meyering@lucent.com>
23208
23209         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
23210         (noinst_HEADERS): Add getstr.h.
23211
23212         * lib/getline.c (getstr): Move into a separate file.
23213         * lib/getstr.c (getstr): New file, extracted from getline.c, with
23214         the following changes: new parameter, delim2; both delim[12]
23215         parameters have type `int', not `char'.  The latter would lose
23216         with 8-bit delimiters.
23217         * lib/getstr.h: New file.
23218
23219 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23220
23221         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
23222         than 1024, return a memory chunk of least possible size, instead
23223         of size PATH_MAX + 2. In the loop, increment the size proportionally.
23224         Use free/xmalloc instead of xrealloc to avoid copying for very long
23225         paths.
23226
23227 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23228
23229         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
23230         the empty string.
23231
23232 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
23233
23234         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
23235         address, not strdup.  Include <stdlib.h> and don't declare free().
23236
23237 2000-06-19  Jim Meyering  <meyering@lucent.com>
23238
23239         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
23240
23241 2000-06-18  Jim Meyering  <meyering@lucent.com>
23242
23243         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
23244
23245         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
23246         `checking whether...' message to be consistent with that of the
23247         lstat test.
23248
23249 2000-06-18  Jim Meyering  <meyering@lucent.com>
23250
23251         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
23252         Besides, these days every porting target provides a mkdir function.
23253
23254         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
23255         needed. (this snippet comes from src/system.h).
23256
23257 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
23258
23259         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
23260
23261 2000-06-15  Paul Eggert  <eggert@twinsun.com>
23262
23263         * lib/human.c (adjust_value): New function.
23264         (human_readable_inexact): Apply rounding style even when
23265         printing approximate values.
23266
23267 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23268
23269         * lib/human.c (human_readable_inexact): Allow an input block
23270         size that is not a multiple of the output block size, and vice versa.
23271         Reported by Piergiorgio Sartor.
23272
23273 2000-06-14  Paul Eggert  <eggert@twinsun.com>
23274
23275         * lib/getdate.y (get_date): Apply relative times after time
23276         zone indicator, not before.  Reported by Todd A. Jacobs.
23277
23278 2000-06-13  Jim Meyering  <meyering@lucent.com>
23279
23280         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
23281
23282         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
23283
23284 2000-06-12  Paul Eggert  <eggert@twinsun.com>
23285
23286         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
23287
23288 2000-06-12  Jim Meyering  <meyering@lucent.com>
23289
23290         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
23291         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
23292         optional argument.
23293         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
23294         the optional argument, `lib'.
23295
23296 2000-06-08  Jim Meyering  <meyering@lucent.com>
23297
23298         * m4/largefile.m4: Remove file (now that it's part of autoconf).
23299
23300 2000-06-04  Paul Eggert  <eggert@twinsun.com>
23301
23302         Rewrite largefile configuration so that we don't need to run
23303         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
23304         AC_CANONICAL_HOST in configure.in -- jmm]
23305
23306         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
23307         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
23308         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
23309         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
23310         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
23311         All uses changed.
23312         Instead of inspecting the output of getconf, try to compile the
23313         test program without and with the macro definition.
23314         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
23315         for getconf.  Instead, check for the needed flags by compiling
23316         test programs.
23317
23318 2000-06-04  Paul Eggert  <eggert@twinsun.com>
23319
23320         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
23321
23322 2000-06-04  Jim Meyering  <meyering@lucent.com>
23323
23324         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
23325         SunOS 4.1.4 for which gid_t is an unsigned type.
23326
23327 2000-06-03  Jim Meyering  <meyering@lucent.com>
23328
23329         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
23330         now that autoconf requires that.
23331
23332         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
23333         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
23334         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
23335
23336 2000-06-03  Jim Meyering  <meyering@lucent.com>
23337
23338         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
23339
23340 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
23341
23342         * m4/glibc21.m4: New file.
23343         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
23344
23345 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
23346
23347         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
23348         newer, don't install charset.alias.
23349         * lib/config.charset: Change the Linux/glibc rules so they become empty
23350         on glibc-2.1 or newer.
23351
23352 2000-06-02  Jim Meyering  <meyering@lucent.com>
23353
23354         * lib/mountlist.c: Back out last change.  Instead, do this...
23355         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
23356         me_dummy member using the same `ignore'-testing code.
23357         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
23358         fs_type strings.
23359         From Mark D. Roth.
23360
23361 2000-05-29  Jim Meyering  <meyering@lucent.com>
23362
23363         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
23364         mounts with the `ignore' attribute.  Based on a patch from
23365         Mark D. Roth.
23366
23367 2000-05-28  Jim Meyering  <meyering@lucent.com>
23368
23369         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
23370         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23371         * m4/stat.m4: Likewise.
23372         * m4/lstat.m4: Likewise.
23373         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
23374
23375         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
23376         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
23377
23378 2000-05-26  Jim Meyering  <meyering@lucent.com>
23379
23380         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
23381
23382 2000-05-24  Jim Meyering  <meyering@lucent.com>
23383
23384         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
23385         autoconf requires that.
23386         * m4/lib-check.m4: Likewise.
23387         * m4/jm-macros.m4: Likewise.
23388         * m4/strftime.m4: Likewise.
23389
23390         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
23391         AC_CHECK_DECLS, now that autoconf requires that.
23392
23393 2000-05-22  Jim Meyering  <meyering@lucent.com>
23394
23395         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23396         * m4/lstat.m4: Likewise.
23397
23398 2000-05-22  Jim Meyering  <meyering@lucent.com>
23399
23400         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
23401
23402 2000-05-20  Jim Meyering  <meyering@lucent.com>
23403
23404         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
23405         (jm_PREREQ): Use it.
23406
23407 2000-05-18  Jim Meyering  <meyering@lucent.com>
23408
23409         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
23410         back, too, since it may have been modified by allocate_entry.
23411         (hash_delete): Rewrite to use neither the assignment operator
23412         nor the comma operator in an if-expression.
23413
23414 2000-05-15  Paul Eggert  <eggert@twinsun.com>
23415
23416         * lib/closeout.c:
23417         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
23418         Remove; no longer needed.
23419         "quotearg.h": Add include.
23420         (file_name): Do not bother to explicitly initialize to NULL; it's less
23421         efficient on some hosts.
23422         (close_stdout_status): Remove test as to whether stdout was already
23423         closed; it breaks for the case "echo x | sort >&-".
23424         Quote file name colons.
23425         Do not assume that _("write error") lacks format strings.
23426
23427 2000-05-15  Jim Meyering  <meyering@lucent.com>
23428
23429         * lib/version-etc.c (version_etc_copyright): Update the copyright
23430         string used in all --version output.
23431
23432 2000-05-14  Jim Meyering  <meyering@lucent.com>
23433
23434         * lib/closeout.c (close_stdout_set_file_name): New function.
23435         (close_stdout_status): Use new file-scoped global.
23436         Return right away if fstat says the stdout file descriptor is invalid.
23437         * lib/closeout.h (close_stdout_set_file_name): Declare.
23438
23439 2000-05-10  Jim Meyering  <meyering@lucent.com>
23440
23441         * lib/closeout.c [default_exit_status]: New file-scoped variable.
23442         (close_stdout_set_status): New function.
23443         * lib/closeout.h (close_stdout_set_status): Declare.
23444
23445 2000-05-09  Jim Meyering  <meyering@lucent.com>
23446
23447         * m4/gettext.m4: Rename this...
23448         * m4/libintl.m4: ...to this.
23449
23450 2000-05-08  Jim Meyering  <meyering@lucent.com>
23451
23452         * lib/long-options.c: Don't include closeout.h.
23453         (parse_long_options): Don't call close_stdout for --version.
23454
23455 2000-05-06  Paul Eggert  <eggert@twinsun.com>
23456
23457         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
23458         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
23459         2.1.3 bug.  This avoids a clash when files like regex.c define
23460         _GNU_SOURCE.
23461
23462 2000-05-06  Jim Meyering  <meyering@lucent.com>
23463
23464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
23465         (AC_REPLACE_FUNCS): Add strnlen.
23466
23467         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
23468         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
23469
23470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
23471         AC_SEARCH_LIBS call for nanosleep.
23472         (LIB_NANOSLEEP): Set and AC_SUBST.
23473
23474 2000-05-06  Jim Meyering  <meyering@lucent.com>
23475
23476         * lib/strnlen.c: Undefine __strnlen and strnlen.
23477         [!weak_alias]: Define __strnlen to strnlen.
23478
23479         * lib/atexit.c: New file, from libiberty.
23480
23481 2000-05-06  Jim Meyering  <meyering@lucent.com>
23482
23483         * lib/closeout.c (close_stdout_status): Also check for errors on the
23484         stderr stream.
23485
23486 2000-05-05  Jim Meyering  <meyering@lucent.com>
23487
23488         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
23489         AC_SEARCH_LIBS call for clock_gettime.
23490         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
23491
23492         * m4/search-libs.m4: Update from autoconf.
23493
23494         su doesn't work on Solaris 2.6.
23495         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
23496         <shadow.h>.  Reported by Dragos Harabor.
23497
23498 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
23499
23500         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
23501         memcpy instead of xmalloc, xrealloc, path_concat.
23502         (locale_charset): Treat empty environment variables as absent.
23503         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
23504
23505 2000-05-04  Jim Meyering  <meyering@lucent.com>
23506
23507         * lib/getopt.c: Update from glibc.
23508         * lib/obstack.c: Likewise.
23509         * lib/obstack.h: Likewise.
23510         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
23511         file
23512
23513         * lib/regex.h: Likewise.
23514         * lib/strndup.c: Likewise.
23515         * lib/strnlen.c: New file, from glibc.
23516
23517 2000-05-03  Jim Meyering  <meyering@lucent.com>
23518
23519         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
23520
23521 2000-05-02  Paul Eggert  <eggert@twinsun.com>
23522
23523         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
23524         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
23525         compile-time test, rather than inspecting host and OS, to
23526         decide whether to define _LARGEFILE_SOURCE.
23527
23528 2000-05-01  Jim Meyering  <meyering@lucent.com>
23529
23530         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
23531
23532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
23533         Based on a patch from Bruno Haible.
23534
23535 2000-05-01  Jim Meyering  <meyering@lucent.com>
23536
23537         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
23538
23539 2000-04-29  Jim Meyering  <meyering@lucent.com>
23540
23541         * lib/path-concat.c: Declare strdup only if it's not defined.
23542         * lib/canon-host.c: Likewise.
23543
23544 2000-04-28  Jim Meyering  <meyering@lucent.com>
23545
23546         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
23547         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
23548         is included first, then limits.h is included by locale.h by libintl.h.
23549         From John David Anglin.
23550
23551 2000-04-25  Jim Meyering  <meyering@lucent.com>
23552
23553         * lib/makepath.c (S_IRWXUGO): Define.
23554         (make_path): Always perform explicit chmod if MODE specifies any
23555         of the `special' permission bits.  Prompted by a bug report against
23556         install from Mate Wierdl and Joost van Baal.
23557
23558 2000-04-18  Jim Meyering  <meyering@lucent.com>
23559
23560         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
23561         (jm_PREREQ): Use it.
23562
23563 2000-04-18  Jim Meyering  <meyering@lucent.com>
23564
23565         * lib/README: New file.
23566
23567         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
23568         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
23569
23570 2000-04-17  Jim Meyering  <meyering@lucent.com>
23571
23572         Get it right :-)
23573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
23574         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
23575         Suggestion from Akim Demaille.
23576
23577 2000-04-17  Jim Meyering  <meyering@lucent.com>
23578
23579         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
23580         the definition of it to rpl_strftime also defined-away the system's
23581         declaration.
23582
23583 2000-04-15  Jim Meyering  <meyering@lucent.com>
23584
23585         Use `C' to denote so-called `contiguous' files, the same way
23586         that tar does.
23587         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
23588         (ftypelet): Use S_ISCTG.
23589         From Michael Deutschmann.
23590
23591 2000-04-14  Jim Meyering  <meyering@lucent.com>
23592
23593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
23594         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
23595         clobbered.
23596
23597 2000-04-14  Jim Meyering  <meyering@lucent.com>
23598
23599         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
23600
23601 2000-04-13  Jim Meyering  <meyering@lucent.com>
23602
23603         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
23604         AH_VERBATIM to insert required #ifndef into config.h.in.
23605         Suggestion from Akim Demaille.
23606
23607 2000-04-12  Jim Meyering  <meyering@lucent.com>
23608
23609         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
23610         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
23611         Christian Krackowizer.
23612
23613         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
23614         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
23615         (AC_SYS_LARGEFILE): Require.
23616         (AM_C_PROTOTYPES): Require.
23617
23618 2000-04-08  Jim Meyering  <meyering@lucent.com>
23619
23620         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
23621         names don't conflict.  Reported by Eli Zaretskii.
23622
23623 2000-04-07  Jim Meyering  <meyering@lucent.com>
23624
23625         * lib/putenv.c: Move inclusion of errno.h so it follows that of
23626         sys/types.h, to work around system header problems on AIX 3.2.5.
23627         From Bruno Haible.
23628
23629 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
23630
23631         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
23632         bug.  Deal with the different error behavior of Irix iconv.
23633
23634 2000-04-05  Paul Eggert  <eggert@twinsun.com>
23635
23636         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
23637         IRIX if the installer said otherwise.
23638
23639 2000-04-05  Jim Meyering  <meyering@lucent.com>
23640
23641         Portability tweaks required for ultrix4.3.
23642         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
23643         (jm_CHECK_DECLS): Add getutent to the list of functions.
23644         (_jm_DECL_HEADERS): Add utmpx.h.
23645         From John David Anglin.
23646
23647         * m4/strftime.m4: Back out the 2000-04-02 change.
23648         Instead of that change, simply undefine putenv in the test program.
23649
23650 2000-04-05  Jim Meyering  <meyering@lucent.com>
23651
23652         Portability tweaks required for ultrix4.3.
23653         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
23654         getutent.
23655         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
23656         * lib/canon-host.c: Declare strdup.
23657         * lib/path-concat.c: Likewise.
23658         From John David Anglin.
23659
23660 2000-04-04  Jim Meyering  <meyering@lucent.com>
23661
23662         Be more DOS 8.3-friendly.
23663         * lib/ref-add.sin: Renamed from ref-add.sed.in.
23664         * lib/ref-del.sin: Renamed from ref-del.sed.in.
23665         * lib/Makefile.am: Reflect renaming.
23666         Reported by Eli Zaretskii.
23667
23668         Use a temporary file name that won't clash with `charset.alias'
23669         in the DOS 8.3 name space.
23670         * lib/Makefile.am (charset_tmp): Define.
23671         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
23672         (uninstall-local): Likewise.
23673         Reported by Eli Zaretskii.
23674
23675 2000-04-03  Jim Meyering  <meyering@lucent.com>
23676
23677         * m4/gettext.m4: Fix typo in comment.
23678
23679         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
23680         textutils/configure.in).  Suggestion from Paul Eggert.
23681         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
23682
23683 2000-04-02  Paul Eggert  <eggert@twinsun.com>
23684
23685         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
23686         variable in the shell rather than using putenv, which isn't
23687         portable.  This avoids the configure-time inter-test dependency
23688         on the potentially-renamed putenv function.
23689
23690 2000-03-30  Paul Eggert  <eggert@twinsun.com>
23691
23692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
23693         before checking struct stat.st_blksize, so that
23694         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
23695
23696 2000-03-29  Paul Eggert  <eggert@twinsun.com>
23697
23698         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
23699         since strftime.c uses HAVE_STRFTIME to decide whether to use
23700         the underlying strftime.
23701
23702 2000-03-29  Paul Eggert  <eggert@twinsun.com>
23703
23704         * lib/time/strftime.c (my_strftime): Make sure we call the system
23705         strftime, not ourselves, when invoking the underlying strftime.
23706
23707 2000-03-24  Jim Meyering  <meyering@lucent.com>
23708
23709         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
23710         (charset_alias): Define.
23711         (install-exec-local): Factor out common code.
23712         (uninstall-local): Split lines longer than 80.
23713         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
23714         (SUFFIXES): Define.
23715         (.sed.in.sed): New rule.  Don't redirect directly to $@.
23716         (CLEANFILES): Add ref-add.sed and ref-del.sed.
23717
23718 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
23719
23720         * lib/config.charset: Output a line containing "Packages using this
23721         file".
23722         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
23723         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
23724         ref-del.sed): New rules.
23725
23726 2000-03-17  Jim Meyering  <meyering@lucent.com>
23727
23728         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
23729         Otherwise, include <strings.h>
23730
23731 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
23732
23733         * lib/unicodeio.c (utf8_wctomb): New function.
23734         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
23735         format instead of in UCS-4 with platform dependent endianness.
23736
23737 2000-03-10  Jim Meyering  <meyering@lucent.com>
23738
23739         * m4/lib-check.m4: Look for getspnam in -lgen, too.
23740         From Marco Franzen.
23741
23742 2000-03-07  Paul Eggert  <eggert@twinsun.com>
23743
23744         * lib/savedir.c (savedir): Work even if directory size is
23745         negative; this can happen with some screwy NFS configurations.
23746
23747 2000-03-06  Jim Meyering  <meyering@lucent.com>
23748
23749         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
23750         if it's NULL (because we ran out of memory).  From Bruno Haible.
23751
23752 2000-03-05  Jim Meyering  <meyering@lucent.com>
23753
23754         * lib/localcharset.c ("path-concat.h"): Include.
23755         (get_charset_aliases): Use path_concat instead of ANSI string
23756         concatenation.
23757
23758         * lib/unicodeio.h (PARAMS): Define.
23759         Use it to guard prototype.
23760
23761 2000-03-04  Jim Meyering  <meyering@lucent.com>
23762
23763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
23764         for lib/localcharset.c.
23765
23766 2000-03-04  Jim Meyering  <meyering@lucent.com>
23767
23768         * lib/Makefile.am (install-exec-local): Create $(libdir) before
23769         installing into it.
23770         (uninstall-local): Uncomment this rule so `make distcheck' works
23771         once again.
23772
23773         * lib/unicodeio.c (<errno.h>): Include it.
23774         (errno): Declare if not defined.
23775
23776         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
23777
23778         * lib/config.charset: New version, incorporating remarks from a linux
23779         i18n mailing list.  From Bruno Haible.
23780
23781 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
23782
23783         * m4/codeset.m4: New file.
23784         * m4/iconv.m4: New file.
23785         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
23786
23787 2000-03-03  Jim Meyering  <meyering@lucent.com>
23788
23789         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
23790
23791 2000-03-02  Jim Meyering  <meyering@lucent.com>
23792
23793         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
23794         the messages come out on separate lines.
23795
23796         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
23797         rather than jm_CHECK_DECLARATIONS.
23798         * m4/decl.m4: Remove now-unused file.
23799
23800         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
23801         geteuid.
23802
23803 2000-03-02  Jim Meyering  <meyering@lucent.com>
23804
23805         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
23806
23807 2000-03-01  Jim Meyering  <meyering@lucent.com>
23808
23809         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
23810         * lib/unicodeio.c: Likewise.
23811
23812 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
23813
23814         * lib/config.charset: New file.
23815         * lib/localcharset.c: New file.
23816         * lib/unicodeio.h, lib/unicodeio.c: New files.
23817         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
23818         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
23819         (noinst_HEADERS): Add unicodeio.h.
23820         (all-local, install-exec-local, charset.alias): New targets.
23821
23822 2000-02-28  Paul Eggert  <eggert@twinsun.com>
23823
23824         * lib/quotearg.c (ALERT_CHAR): New macro.
23825         (quotearg_buffer_restyled): Use it.
23826
23827 2000-02-27  Jim Meyering  <meyering@lucent.com>
23828
23829         * m4/check-decl.m4: Add getenv to the list.
23830
23831 2000-02-27  Jim Meyering  <meyering@lucent.com>
23832
23833         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
23834         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
23835
23836         * lib/backupfile.c: Guard inclusion of stdlib.h with
23837         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
23838         Declare malloc if needed.
23839
23840         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
23841         `#ifndef HAVE_DECL..'
23842         now that autoconf always defines the HAVE_DECL_ symbols.
23843         * lib/human.c: Likewise.
23844         * lib/same.c: Likewise.
23845         * lib/strtoumax.c: Likewise.
23846
23847         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
23848         declaration check was not run.
23849         * lib/hash.c: Likewise.
23850         * lib/human.c: Likewise.
23851         * lib/same.c: Likewise.
23852         * lib/strtoumax.c: Likewise.
23853
23854         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
23855         `.', then first look up the entire `.'-containing string as a login
23856         name.
23857
23858 2000-02-23  Jim Meyering  <meyering@lucent.com>
23859
23860         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
23861         in place of my hack.
23862
23863 2000-02-18  Paul Eggert  <eggert@twinsun.com>
23864
23865         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
23866         (textint): New typedef.
23867         (parser_control): Member year changed from int to textint.
23868         All uses changed.
23869         (YYSTYPE): Removed; replaced by %union with int and textint members.
23870         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
23871         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
23872         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
23873         (tSNUMBER, tUNUMBER): Now of type <textintval>.
23874         (date, number, to_year): Use width of number in digits, not its value,
23875         to determine whether it's a 2-digit year, or a 2-digit time.
23876         (yylex): Store number of digits of numeric tokens.
23877         Reported by John Kendall.
23878
23879         (parser_control): Changed from struct parser_control to typedef (for
23880         consistency).  All uses changed.
23881
23882         (tID): Removed; not used.
23883         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
23884
23885 2000-02-14  Paul Eggert  <eggert@twinsun.com>
23886
23887         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
23888         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
23889
23890 2000-02-12  Jim Meyering  <meyering@lucent.com>
23891
23892         * lib/userspec.c (ISDIGIT): Define it.
23893         (isdigit): Remove definition.
23894         (is_number): Use ISDIGIT, not isdigit.
23895         <libintl.h>: Include.
23896         (_ and N_): Define.
23897         (parse_user_spec): Mark translatable strings.
23898
23899 2000-02-10  Jim Meyering  <meyering@lucent.com>
23900
23901         With these changes, nanosleep.[ch] are finally enough like the other
23902         lib/* replacement files to compile on a few more losing systems.
23903
23904         * lib/nanosleep.h: Don't include config.h.
23905         Remove prototype from declaration of nanosleep.
23906         (PARAMS): Remove now-unneeded definition.
23907         * lib/nanosleep.c: #undef nanosleep.
23908         (rpl_nanosleep): Rename from nanosleep.
23909
23910 2000-02-10  Jim Meyering  <meyering@lucent.com>
23911
23912         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
23913         gnu_nanosleep to rpl_nanosleep.
23914
23915 2000-02-09  Jim Meyering  <meyering@lucent.com>
23916
23917         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
23918         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
23919
23920 2000-02-08  Akim Demaille  <akim@epita.fr>
23921
23922         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
23923         `[' and `]' and remove uses of `changequote'.
23924         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
23925         (AC_SYS_LARGEFILE): Likewise.
23926         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23927         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
23928         of changequote.
23929         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
23930         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
23931         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
23932         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
23933
23934 2000-02-05  Jim Meyering  <meyering@lucent.com>
23935
23936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
23937         Remove explicit use of AC_HEADER_TIME.  It is required by
23938         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
23939         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
23940         in autoconf whereby the expansion of the latter ended up preceding
23941         the expansion of its prerequisite, AC_HEADER_TIME.
23942         Reported by Volker Borchert.
23943
23944 2000-02-03  Jim Meyering  <meyering@lucent.com>
23945
23946         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
23947
23948 2000-02-03  Jim Meyering  <meyering@lucent.com>
23949
23950         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
23951         rather than with `#if HAVE_UTMPNAME'.
23952
23953 2000-02-02  Jim Meyering  <meyering@lucent.com>
23954
23955         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
23956         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
23957         Reported by Eli Zaretskii.
23958
23959 2000-02-01  Jim Meyering  <meyering@lucent.com>
23960
23961         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
23962
23963 2000-01-31  Jim Meyering  <meyering@lucent.com>
23964
23965         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
23966         functions.  Add the time.h and sys/time.h headers along with the
23967         AC_REQUIRE'ment of AC_HEADER_TIME.
23968
23969 2000-01-31  Jim Meyering  <meyering@lucent.com>
23970
23971         * lib/nanosleep.h (nanosleep): Guard declaration with
23972         `#if ! HAVE_DECL_NANOSLEEP'.
23973         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
23974         the declaration in that vendor's sys/timers.h.
23975         Reported by Christian Krackowizer.
23976
23977         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
23978         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
23979         (ISPRINT): Likewise.
23980         Reported by Tom Tromey.
23981
23982 2000-01-30  Jim Meyering  <meyering@lucent.com>
23983
23984         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
23985
23986         * m4/prereq.m4 (utmp_includes): Define.
23987         Check for ut_user and ut_name members in both struct utmpx
23988         and struct utmp.
23989
23990 2000-01-30  Jim Meyering  <meyering@lucent.com>
23991
23992         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
23993         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
23994         header files where only utmpx.ut_user is declared.
23995
23996         * lib/readutmp.h (UT_USER): Define.
23997
23998 2000-01-29  Jim Meyering  <meyering@lucent.com>
23999
24000         * m4/lib-check.m4: New file containing library-related checks from
24001         fileutils and sh-utils (textutils had none).
24002
24003 2000-01-28  Jim Meyering  <meyering@lucent.com>
24004
24005         * m4/perl.m4: Change format of warning message to look more like that
24006         from the missing script.  Suggestion from François Pinard.
24007
24008 2000-01-25  Jim Meyering  <meyering@lucent.com>
24009
24010         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
24011         well as time.h in the compile check.
24012         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
24013         Fix typo in cross-compiling case: s/yes/no/.
24014
24015 2000-01-23  Jim Meyering  <meyering@lucent.com>
24016
24017         * m4/jm-macros.m4: Move df-related tests here from
24018         fileutils/configure.in
24019
24020         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
24021         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
24022
24023         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
24024         s/space/ac_fsusage_space/.
24025         (jm_FILE_SYSTEM_USAGE): Take two parameters.
24026
24027         * m4/ftruncate.m4: New file (derived from part of
24028         fileutils/configure.in).
24029         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
24030         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
24031
24032         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
24033         AC_SUBST these here, rather than just in sh-util/configure.in, so
24034         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
24035         all the same.
24036         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
24037         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
24038         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
24039         (AC_SUBST(POW_LIBM)): Likewise.
24040         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
24041
24042 2000-01-23  Jim Meyering  <meyering@lucent.com>
24043
24044         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
24045         obstack.c.
24046
24047 2000-01-22  Jim Meyering  <meyering@lucent.com>
24048
24049         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
24050
24051         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
24052
24053         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
24054         configure.in
24055         (AC_CHECK_HEADERS): Likewise for sh-utils.
24056         (AC_CHECK_HEADERS): Likewise for textutils.
24057         Merge the three lists of headers.
24058
24059         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
24060         from fileutils' configure.in.
24061
24062         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
24063         code. Moved tests into their own function (_jm_DECL_HEADERS) in
24064         check-decl.m4.
24065
24066         * m4/check-decl.m4: Use #if rather than #ifdef.
24067         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
24068         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
24069         (_jm_DECL_HEADERS): Define new function.
24070         (jm_CHECK_DECLARATIONS): Require it.
24071
24072 2000-01-22  Jim Meyering  <meyering@lucent.com>
24073
24074         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
24075         [! HAVE_DECL_STRTOULL]: Declare strtoull.
24076         Required for some AIX systems.  Reported by Christian Krackowizer.
24077         [TESTING] (main): New function.
24078
24079         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
24080         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
24081         letters.
24082
24083         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
24084         iswprint.
24085
24086         * lib/strverscmp.c (ISDIGIT): Define.
24087         (strverscmp): Use ISDIGIT, not isdigit.
24088
24089 2000-01-19  Jim Meyering  <meyering@lucent.com>
24090
24091         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
24092         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
24093         defines `struct timespec' in <sys/time.h>
24094
24095         * m4/c-bs-a.m4: Remove uses of changequote altogether.
24096         Thanks to Akim for explaining.
24097
24098 2000-01-17  Paul Eggert  <eggert@twinsun.com>
24099
24100         * lib/nanosleep.c (nanosleep):
24101         Don't use SA_INTERRUPT to decide whether to call sigaction, as
24102         POSIX.1 doesn't require SA_INTERRUPT and some systems
24103         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
24104         it's been part of POSIX.1 since day 1 (in 1988).
24105
24106 2000-01-17  Jim Meyering  <meyering@lucent.com>
24107
24108         * lib/interlock: Remove unused file.  Reported by François Pinard.
24109
24110 2000-01-16  Paul Eggert  <eggert@twinsun.com>
24111
24112         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
24113         alert, backslash, formfeed, and vertical tab unnecessarily in
24114         shell quoting style.
24115
24116 2000-01-16  Jim Meyering  <meyering@lucent.com>
24117
24118         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
24119         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
24120         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
24121         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
24122
24123 2000-01-16  Jim Meyering  <meyering@lucent.com>
24124
24125         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
24126         because the latter didn't work.
24127
24128 2000-01-15  Jim Meyering  <meyering@lucent.com>
24129
24130         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
24131         (AC_REPLACE_FUNCS): Add memcpy and memset.
24132         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
24133         Add strpbrk.
24134         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
24135
24136 2000-01-12  Jim Meyering  <meyering@lucent.com>
24137
24138         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
24139         (jm_PREREQ): Use it.
24140         (jm_PREREQ_READUTMP): New macro.
24141         (jm_PREREQ): Use it.
24142
24143 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24144
24145         Quote multibyte characters correctly.
24146         * m4/c-bs-a.m4: New file.
24147         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
24148         (jm_PREREQ): Use it.
24149
24150 2000-01-11  Paul Eggert  <eggert@twinsun.com>
24151
24152         * m4/uintmax_t.m4: Port to autoconf 2.13.
24153
24154 2000-01-08  Jim Meyering  <meyering@ascend.com>
24155
24156         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
24157         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
24158
24159 2000-01-04  Jim Meyering  <meyering@ascend.com>
24160
24161         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
24162         jm_STRUCT_DIRENT_D_TYPE.
24163         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
24164         jm_STRUCT_DIRENT_D_INO.
24165         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
24166         jm_STRUCT_UTIMBUF.
24167         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
24168         renamings.
24169         * m4/utime.m4: Likewise.
24170
24171         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
24172         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
24173
24174 2000-01-03  Paul Eggert  <eggert@twinsun.com>
24175
24176         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
24177         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
24178
24179 2000-01-02  Jim Meyering  <meyering@ascend.com>
24180
24181         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
24182         remember if this is necessary.
24183
24184 1999-12-26  Jim Meyering  <meyering@ascend.com>
24185
24186         * m4/jm-macros.m4: Use it here.
24187         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
24188
24189 1999-12-23  Jim Meyering  <meyering@ascend.com>
24190
24191         * m4/jm-macros.m4: Check for clock_gettime (moved from
24192         fileutils/configure.in)
24193         Check for gettimeofday.
24194
24195 1999-12-20  Jim Meyering  <meyering@ascend.com>
24196
24197         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
24198         autoconf-2.14a-1999-12-20.
24199
24200 1999-12-19  Jim Meyering  <meyering@ascend.com>
24201
24202         * m4/lstat-slash.m4: New file.
24203         * m4/jm-macros.m4: Use the new macro:
24204         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24205
24206 1999-12-07  Jim Meyering  <meyering@ascend.com>
24207
24208         * m4/perl.m4: Require that File::Compare be available, too.
24209         Too many systems seem to lack it.
24210
24211         * m4/strftime.m4: Add checks for most of the cpp macros tested in
24212         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
24213
24214 1999-11-18  Paul Eggert  <eggert@twinsun.com>
24215
24216         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
24217         problem with the QNX 4.25 shell, which doesn't propagate exit
24218         status of failed commands inside shell assignments.
24219
24220 1999-11-17  Jim Meyering  <meyering@ascend.com>
24221
24222         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
24223
24224 1999-11-07  Jim Meyering  <meyering@ascend.com>
24225
24226         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
24227
24228 1999-11-06  Jim Meyering  <meyering@ascend.com>
24229
24230         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
24231         * m4/jm-macros.m4 (jm_MACROS): Use it here.
24232
24233 1999-11-05  Jim Meyering  <meyering@ascend.com>
24234
24235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
24236         configure.in of textutils, fileutils, and sh-utils into this one
24237         (shared between those packages) file.
24238         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
24239         AC_STRUCT_ST_BLKSIZE.
24240
24241 1999-11-03  Jim Meyering  <meyering@ascend.com>
24242
24243         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
24244         of AC_CHECK_TYPE checks includes unistd.h.
24245         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
24246         Suggestion from Akim Demaille.
24247
24248 1999-10-30  Jim Meyering  <meyering@ascend.com>
24249
24250         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
24251         m4-quoted string.
24252         * m4/ls-mntd-fs.m4: Likewise.
24253         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
24254         * m4/jm-winsz1.m4: Likewise.
24255
24256         * m4/const.m4: Remove file, since the fix made it into the experimental
24257         version of autoconf.
24258         * m4/mktime.m4: Likewise.
24259
24260         * m4/check-type.m4: Remove file, now that the latest version of
24261         AC_CHECK_TYPE takes a third arg to specify additional #includes.
24262
24263         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
24264         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
24265         AC_CHECK_TYPE.
24266
24267 1999-10-04  Jim Meyering  <meyering@ascend.com>
24268
24269         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
24270
24271 1999-09-22  Paul Eggert  <eggert@twinsun.com>
24272
24273         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
24274         2.95.1 bug with HP-UX 10.20.
24275
24276 1999-09-17  Jim Meyering  <meyering@ascend.com>
24277
24278         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
24279         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
24280         due to missing strdup (against sh-utils-2.0).
24281
24282 1999-08-29  Jim Meyering  <meyering@ascend.com>
24283
24284         * m4/jm-macros.m4: Require jm_BISON.
24285         * m4/bison.m4: New file.
24286
24287 1999-08-17  Paul Eggert  <eggert@twinsun.com>
24288
24289         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
24290         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
24291
24292 1999-08-05  Jim Meyering  <meyering@ascend.com>
24293
24294         * m4/getline.m4: Rename test file from conftestdata to conftest.data
24295         to avoid conflicts with `conftest' on 8+3 filesystems.
24296         Suggestion from Eli Zaretskii.
24297
24298 1999-08-04  Jim Meyering  <meyering@ascend.com>
24299
24300         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
24301         fileutils and sh-utils (textutils's getline test was inadequate).
24302         (AM_FUNC_GETLINE): Run this test.
24303         (AC_CHECK_FUNCS): Check for getdelim.
24304         Reported by Bob Proulx.
24305
24306 1999-08-02  Jim Meyering  <meyering@ascend.com>
24307
24308         * m4/jm-macros.m4: Add a comment.
24309
24310 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24311
24312         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
24313         <inttypes.h> defines strtoumax as a macro (and not as a
24314         function).
24315
24316 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24317
24318         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
24319         that we can shift, multiply and divide unsigned long long
24320         values; Ultrix cc can't do it.
24321
24322 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24323
24324         * m4/mktime.m4: New file, which is a preview of what should appear
24325         in the next public autoconf release.
24326
24327 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24328
24329         * m4/lfs.m4: Remove this file.
24330         * m4/largefile.m4: New file.  It contains the old contents of
24331         lfs.m4, except that all names with prefix AC_LFS have been
24332         changed to use the prefix AC_SYS_LARGEFILE instead, to be
24333         compatible with future autoconf versions.  Also, some minor m4
24334         quoting problems have been fixed.
24335
24336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
24337
24338         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
24339         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
24340         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
24341         and simplify the shell code.
24342
24343 1999-08-01  Jim Meyering  <meyering@ascend.com>
24344
24345         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
24346         m4.
24347
24348 1999-07-20  Jim Meyering  <meyering@ascend.com>
24349
24350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
24351
24352 1999-07-15  Jim Meyering  <meyering@ascend.com>
24353
24354         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
24355
24356 1999-05-22  Jim Meyering  <meyering@ascend.com>
24357
24358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
24359
24360 1999-05-20  Jim Meyering  <meyering@ascend.com>
24361
24362         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
24363         Add a colon after each `then' in case $4 is empty.
24364
24365 1999-05-16  Jim Meyering  <meyering@ascend.com>
24366
24367         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
24368
24369 1999-05-10  Jim Meyering  <meyering@ascend.com>
24370
24371         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
24372
24373         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
24374         AC_FUNC_MKTIME.
24375
24376 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
24377
24378         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
24379
24380 1999-05-04  Paul Eggert  <eggert@twinsun.com>
24381
24382         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
24383         not CPPFLAGS, so that linking works correctly in IRIX.
24384
24385 1999-04-30  Paul Eggert  <eggert@twinsun.com>
24386
24387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
24388
24389 1999-04-20  Paul Eggert  <eggert@twinsun.com>
24390
24391         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
24392         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
24393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
24394         jm_AC_TYPE_UNSIGNED_LONG_LONG.
24395         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
24396
24397         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
24398
24399 1999-04-20  Jim Meyering  <meyering@ascend.com>
24400
24401         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
24402         AC_REPLACE xstroull if necessary.  From Paul Eggert.
24403         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
24404
24405 1999-04-18  Jim Meyering  <meyering@ascend.com>
24406
24407         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
24408         * m4/jm-macros.m4: Use it.
24409
24410 1999-04-06  Jim Meyering  <meyering@ascend.com>
24411
24412         * m4/strftime.m4: Remove test for %f.
24413
24414 1999-03-29  Jim Meyering  <meyering@ascend.com>
24415
24416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
24417         superset of the AC_TYPE_* checks in the textutils, fileutils,
24418         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
24419         AC_TYPE_PID_T.
24420
24421 1999-03-28  Jim Meyering  <meyering@ascend.com>
24422
24423         * m4/jm-macros.m4: Define GNU_PACKAGE here.
24424         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
24425         replaced e.g., in the *.sh files of the sh-utils.
24426
24427 1999-03-20  Jim Meyering  <meyering@ascend.com>
24428
24429         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
24430         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
24431         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
24432
24433 1999-03-19  Jim Meyering  <meyering@ascend.com>
24434
24435         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
24436
24437 1999-03-12  Jim Meyering  <meyering@ascend.com>
24438
24439         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
24440
24441 1999-03-07  Jim Meyering  <meyering@ascend.com>
24442
24443         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
24444         declared.
24445
24446 1999-02-17  Jim Meyering  <meyering@ascend.com>
24447
24448         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
24449         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
24450
24451 1999-02-07  Jim Meyering  <meyering@ascend.com>
24452
24453         * m4/group-member.m4: New file -- extracted from sh-utils'
24454         configure.in.
24455
24456         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
24457         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
24458
24459 1999-02-06  Jim Meyering  <meyering@ascend.com>
24460
24461         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
24462         * m4/fnmatch.m4: Likewise.
24463         * m4/getgroups.m4: Likewise.
24464         * m4/lstat.m4: Likewise.
24465         * m4/malloc.m4: Likewise.
24466         * m4/putenv.m4: Likewise.
24467         * m4/realloc.m4: Likewise.
24468         * m4/regex.m4: Likewise.
24469         * m4/stat.m4: Likewise.
24470         * m4/strftime.m4: Likewise.
24471         Suggestion from Alain Magloire.
24472
24473         * m4/chown.m4: Use `.$ac_objext', not `.o'.
24474         * m4/fnmatch.m4: Likewise.
24475         * m4/getgroups.m4: Likewise.
24476         * m4/getline.m4: Likewise.
24477         * m4/lstat.m4: Likewise.
24478         * m4/malloc.m4: Likewise.
24479         * m4/memcmp.m4: Likewise.
24480         * m4/putenv.m4: Likewise.
24481         * m4/realloc.m4: Likewise.
24482         * m4/regex.m4: Likewise.
24483         * m4/stat.m4: Likewise.
24484         * m4/strftime.m4: Likewise.
24485         Suggestion from Alain Magloire.
24486
24487         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
24488         an argument.
24489
24490         * m4/regex.m4: Add a run-time Test for proper operation of
24491         re_compile_pattern.
24492
24493 1999-01-31  Jim Meyering  <meyering@ascend.com>
24494
24495         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
24496
24497 1999-01-30  Jim Meyering  <meyering@ascend.com>
24498
24499         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
24500
24501         * m4/jm-mktime.m4: Make this a wrapper around the official
24502         AM_FUNC_MKTIME rather than my private copy, now that the official one
24503         is up to date.
24504         * m4/mktime.m4: Remove file.
24505
24506         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
24507         * m4/uptime.m4: Likewise.
24508         * m4/uintmax_t.m4: Likewise.
24509
24510 1999-01-28  Jim Meyering  <meyering@ascend.com>
24511
24512         * m4/jm-macros.m4: Use jm_AFS.
24513         * m4/afs.m4: New file (from fileutils' configure.in).
24514
24515         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
24516         * m4/chown.m4: Likewise.
24517         * m4/d-ino.m4: Likewise.
24518         * m4/d-type.m4: Likewise.
24519         * m4/fnmatch.m4: Likewise.
24520         * m4/getgroups.m4: Likewise.
24521         * m4/gettext.m4: Likewise.
24522         * m4/jm-mktime.m4: Likewise.
24523         * m4/jm-winsz2.m4: Likewise.
24524         * m4/lcmessage.m4: Likewise.
24525         * m4/ls-mntd-fs.m4: Likewise.
24526         * m4/malloc.m4: Likewise.
24527         * m4/memcmp.m4: Likewise.
24528         * m4/putenv.m4: Likewise.
24529         * m4/realloc.m4: Likewise.
24530         * m4/st_mtim.m4: Likewise.
24531         * m4/strftime.m4: Likewise.
24532
24533 1999-01-16  Jim Meyering  <meyering@ascend.com>
24534
24535         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
24536         (ARGMATCH_DIE_DECL): Define.
24537
24538 1999-01-12  Jim Meyering  <meyering@ascend.com>
24539
24540         * m4/Makefile.am.in: Rewrite to avoid using fmt.
24541         Reported by Lars Hecking.
24542
24543 1999-01-10  Jim Meyering  <meyering@ascend.com>
24544
24545         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
24546         gross kludge.
24547         * m4/inttypes_h.m4: Likewise.
24548         * m4/lstat.m4: Likewise.
24549         * m4/malloc.m4: Likewise.
24550         * m4/readdir.m4: Likewise.
24551         * m4/realloc.m4: Likewise.
24552         * m4/st_dm_mode.m4: Likewise.
24553         * m4/stat.m4: Likewise.
24554         * m4/utimbuf.m4: Likewise.
24555         * m4/utimes.m4: Likewise.
24556
24557         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
24558         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
24559         comments in config.h.in are meaningful.
24560
24561         * m4/jm-macros.m4: Require autoconf-2.13 here.
24562
24563         * m4/regex.m4: By default, don't use the included regex.c on systems
24564         with glibc 2.  Suggestion from Uli Drepper.
24565
24566 1999-01-02  Jim Meyering  <meyering@ascend.com>
24567
24568         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
24569
24570 1998-12-18  Jim Meyering  <meyering@ascend.com>
24571
24572         * m4/Makefile.am.in (Makefile.am): Simplify rule.
24573         Based on a suggestion from Lars Hecking.
24574
24575 1998-11-16  Paul Eggert  <eggert@twinsun.com>
24576
24577         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
24578
24579 1998-11-16  Jim Meyering  <meyering@ascend.com>
24580
24581         * m4/lfs.m4: Double-quote the `uname...` expression.
24582
24583 1998-11-14  Jim Meyering  <meyering@ascend.com>
24584
24585         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
24586         * m4/stat.m4: Likewise.
24587
24588 1998-11-03  Jim Meyering  <meyering@ascend.com>
24589
24590         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
24591         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
24592
24593 1998-10-18  Jim Meyering  <meyering@ascend.com>
24594
24595         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
24596
24597 1998-10-17  Jim Meyering  <meyering@ascend.com>
24598
24599         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
24600         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
24601         calls for those previously hard-coded headers.  Instead, take a new
24602         parameter.
24603         (jm_CHECK_DECLARATIONS): Reflect interface change.
24604         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
24605         (jm_CHECK_DECL_LOCALTIME_R): New macro.
24606
24607         * m4/mktime.m4: Test for spring-forward gap before long-running test.
24608
24609 1998-10-14  Jim Meyering  <meyering@ascend.com>
24610
24611         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
24612         instead of "TZ=America/Vancouver".  From Paul Eggert.
24613
24614 1998-10-11  Jim Meyering  <meyering@ascend.com>
24615
24616         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
24617         This adds a test for a recently added compatibility fix for mktime.c.
24618         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
24619
24620 1998-09-27  Jim Meyering  <meyering@ascend.com>
24621
24622         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
24623
24624         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
24625         ../configure.in, including a change from Gordon Matzigkeit to allow
24626         cross-compiling for the Hurd.
24627
24628         * m4/glibc.m4: New file/macro to test for the GNU C Library
24629         versions 1 and 2.  From Gordon Matzigkeit.
24630         Indent.
24631
24632 1998-09-21  Jim Meyering  <meyering@ascend.com>
24633
24634         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
24635
24636 1998-08-18  Paul Eggert  <eggert@twinsun.com>
24637
24638         Port nanosecond-resolution times to UnixWare 2.1.2 and
24639         pedantic Solaris 2.6.
24640
24641         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
24642         AC_STRUCT_ST_MTIM.
24643         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
24644         Generate name of ns member, instead of just 1 or undef.
24645         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
24646
24647 1998-08-15  Jim Meyering  <meyering@ascend.com>
24648
24649         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
24650         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
24651         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
24652         instead of jm_TYPE_SSIZE_T.
24653
24654 1998-08-12  Jim Meyering  <meyering@ascend.com>
24655
24656         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
24657
24658 1998-08-02  Jim Meyering  <meyering@ascend.com>
24659
24660         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
24661         in acconfig.h manually.
24662
24663 1998-07-31  Paul Eggert  <eggert@twinsun.com>
24664
24665         * m4/st_mtim.m4: New file.
24666
24667 1998-07-28  Jim Meyering  <meyering@ascend.com>
24668
24669         * m4/utimes.m4: Undef stat.
24670
24671 1998-07-25  Jim Meyering  <meyering@ascend.com>
24672
24673         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
24674         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
24675
24676 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
24677
24678         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
24679         uid and gid actually remain unchanged.
24680
24681 1998-07-07  Jim Meyering  <meyering@ascend.com>
24682
24683         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
24684
24685 1998-07-04  Jim Meyering  <meyering@ascend.com>
24686
24687         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
24688         to prove that this macro can be used in packages without regex.c.
24689
24690 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
24691
24692         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
24693         is to be used.
24694
24695 1998-07-03  Jim Meyering  <meyering@ascend.com>
24696
24697         * m4/gettext.m4: Add -lintl if it's found to be necessary.
24698
24699         * m4/gettext.m4: New file -- from gettext-0.10.35.
24700         * m4/lcmessage.m4: Likewise.
24701         * m4/progtest.m4: Likewise.
24702
24703         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
24704         * m4/jm-macros.m4: Require the new macro.
24705
24706 1998-06-29  Jim Meyering  <meyering@ascend.com>
24707
24708         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
24709         for the definition of NGROUPS (used in a system header included
24710         by sys/mount.h).
24711
24712 1998-06-28  Jim Meyering  <meyering@ascend.com>
24713
24714         * m4/ls-mntd-fs.m4: New file.
24715         * m4/fstypename.m4: New file.
24716
24717         * m4/jm-macros.m4: Require the new macro.
24718         * m4/jm-glibc-io.m4: New file.
24719
24720 1998-05-19  Jim Meyering  <meyering@ascend.com>
24721
24722         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
24723         * m4/lchown.m4: New file.
24724
24725         * m4/Makefile.am.in: New file.
24726         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
24727
24728 1998-05-14  Jim Meyering  <meyering@ascend.com>
24729
24730         * m4/Makefile.am (EXTRA_DIST): Add them.
24731         * m4/jm-macros.m4: New file.
24732         * m4/utimbuf.m4: New file.
24733
24734 1998-05-12  Jim Meyering  <meyering@ascend.com>
24735
24736         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
24737
24738 1998-05-11  Jim Meyering  <meyering@ascend.com>
24739
24740         * m4/isc-posix.m4: New file.
24741
24742 1998-05-10  Jim Meyering  <meyering@ascend.com>
24743
24744         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
24745
24746 1998-05-09  Jim Meyering  <meyering@ascend.com>
24747
24748         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
24749         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
24750         with automake.
24751
24752         * m4/ssize_t.m4: New file.
24753         * m4/mktime.m4: Remove file -- the new automake has this now.
24754
24755 1998-04-26  Jim Meyering  <meyering@ascend.com>
24756
24757         * m4/assert.m4: New file.
24758         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
24759
24760 1998-04-05  Jim Meyering  <meyering@ascend.com>
24761
24762         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
24763         (jm_PREREQ): Use it here.
24764
24765 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
24766
24767         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
24768         in acconfig.h.
24769
24770 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
24771
24772         * m4/prereq.m4: New file.
24773         * m4/error.m4: New file.
24774         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
24775
24776 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
24777
24778         * m4/getline.m4: Don't set am_cv_func_working_getline before the
24779         cache-check for the same variable -- that defeated the purpose of
24780         the test; the test program was never run.  This was a problem only
24781         on systems with losing getline functions -- HP-UX 10.20 is one.
24782         Reported by Bjorn Helgaas.
24783
24784 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
24785
24786         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
24787
24788 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
24789
24790         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
24791
24792         * m4/const.m4: New file.  Use an initializer in this declaration
24793         typedef int charset[2]; const charset x;
24794         Reported by Bob Glickstein.
24795
24796 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
24797
24798         * m4/chown.m4: Fix reversed types on -1 args to chown.
24799         From Kaveh Ghazi.
24800
24801 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
24802
24803         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
24804         Add lseek and memchr.
24805
24806         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
24807         T.E.Dickey <dickey@clark.net> said that some older preprocessors
24808         have a 20-character limit on names.
24809
24810 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
24811
24812         * m4/inttypes_h.m4: New file.
24813         * m4/uintmax_t.m4: New file.
24814         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
24815
24816 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
24817   Free Software Foundation, Inc.
24818 Copying and distribution of this file, with or without modification,
24819 are permitted provided the copyright notice and this notice are preserved.