New file localcharset.h.
[gnulib.git] / lib / ChangeLog
1 2002-12-23  Bruno Haible  <bruno@clisp.org>
2
3         * localcharset.h: New file.
4         * localcharset.c: Include it.
5         * unicodeio.c: Likewise.
6
7 2002-12-22  Bruno Haible  <bruno@clisp.org>
8
9         * utime.c (utime_null): No need to call ftruncate if the file was
10         nonempty.
11
12 2002-12-23  Bruno Haible  <bruno@clisp.org>
13
14         * memcoll.c (STRCOLL): New macro.
15         (memcoll): Use it.
16
17 2002-12-22  Bruno Haible  <bruno@clisp.org>
18
19         * getstr.h (getstr): Define, to avoid clash with libcurses.
20         * linebuffer.h (readline): Define, to avoid clash with libreadline.
21
22 2002-12-22  Bruno Haible  <bruno@clisp.org>
23
24         * getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
25
26 2002-12-23  Bruno Haible  <bruno@clisp.org>
27
28         * getline.h: Include <stddef.h>, for size_t.
29
30         * unicodeio.h: Include <stddef.h>, for size_t.
31         * unicodeio.c: Don't include <stddef.h>.
32
33 2002-12-17  Bruno Haible  <bruno@clisp.org>
34
35         * canon-host.c (strdup): Remove unused declaration.
36
37         * fsusage.c: Include full_read.h.
38         (get_fs_usage): Use full_read instead of safe_read.
39
40         * utime.c (utime_null): Use SAFE_READ_ERROR.
41
42 2002-12-11  Bruno Haible  <bruno@clisp.org>
43
44         * setenv.h: Rewritten to cope with systems that have setenv() but not
45         unsetenv().
46         * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
47         modifications:
48
49         2002-12-11  Bruno Haible  <bruno@clisp.org>
50
51                 * setenv.c (alloca): Fall back to malloc.
52                 (freea): New macro.
53                 (setenv): Use freea() to free memory allocated with alloca().
54
55         2002-11-13  Bruno Haible  <bruno@clisp.org>
56
57                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58                 function declarations.
59                 * unsetenv.c (unsetenv): Likewise.
60
61         2002-03-04  Bruno Haible  <bruno@clisp.org>
62
63                 Portability to AIX 4.3.3.
64                 * unsetenv.c: New file, extracted from setenv.c.
65                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66
67         2001-12-20  Bruno Haible  <bruno@clisp.org>
68
69                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70                 use malloc instead. For SunOS4.
71
72         2001-12-11  Bruno Haible  <bruno@clisp.org>
73
74                 * setenv.c: Declare alloca.
75                 (compar_fn_t): New typedef.
76                 (KNOWN_VALUE, STORE_VALUE): Use it.
77
78         * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79         setenv.h.
80
81 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82
83         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84         * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85         Choose values that are less likely to collide with system fnmatch
86         options.
87         * exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
88         defined (e.g., a pure POSIX system).
89         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91
92 2002-12-06  Jim Meyering  <jim@meyering.net>
93
94         * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95
96         Merge in changes from libc's misc/error.c, in preparation
97         for the merge of gnulib's changes back into libc.
98
99         * error.c (_): Define only if not already defined.
100         Move definition to follow all #include directives.
101         Include unlocked-io.h only if !_LIBC.
102         [_LIBC]: Include <libio/libioP.h>.
103         [USE_IN_LIBIO]: Include <libio/iolibio.h>
104         (fflush): Tweak definition to use INTUSE.
105         (putc): Define.
106
107 2002-12-05  Paul Eggert  <eggert@twinsun.com>
108
109         * alloca.c [defined emacs]: Include "lisp.h".
110         (xalloc_die) [defined emacs]: New macro.
111         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
112         [! defined emacs]: Include <xalloc.h>.
113         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114         (pointer): Typedef to POINTER_TYPE *.
115         (malloc): Remove decl; we now always use xmalloc.
116         (alloca): Use old-style definition, since Emacs needs this.
117         Check for arithmetic overflow when computing combined size.
118
119 2002-12-04  Paul Eggert  <eggert@twinsun.com>
120
121         Do not generate unlocked-io.h automatically, since it's easier to
122         maintain it by hand.
123
124         * unlocked-io.h: New file, from GNU diffutils,
125         but with proper copyright notice and attribution.
126         * gen-uio: Remove.
127         * Makefile.am: Add copyright notice.
128         (libfetish_a_SOURCES): Add unlocked-io.h.
129         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130         (DISTCLEANFILES, io_functions): Remove macros.
131         (EXTRA_DIST): Remove gen_uio.
132         (unlocked-io.h): Remove rule.
133
134 2002-12-04  Jim Meyering  <jim@meyering.net>
135
136         Reflect the fact that stat.c and lstat.c are no longer generated.
137         * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
138         (DISTCLEANFILES): Likewise.
139         (EXTRA_DIST): Likewise.
140         (all_local): Don't depend on stat.c or lstat.c.
141         (stat.c, lstat.c): Remove rules.
142         (EXTRA_DIST): Remove xstat.in.
143
144         * xstat.in: Remove file.  Contents moved into stat.c.
145         * stat.c: New file.  Contents mostly from xstat.in.
146         * stat.c: Rework so that it may serve to define rpl_lstat, too.
147         * lstat.c: New file. Simply #define LSTAT and include stat.c.
148
149         * safe-read.c: Rework so that it may serve to define safe_write, too.
150         * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
151
152 2002-12-03  Jim Meyering  <jim@meyering.net>
153
154         * safe-read.c, safe-write.c: Change variable names and comments, but
155         not semantics, to minimize the differences between these two files.
156         (safe_read): Change comment to mention SAFE_READ_ERROR.
157
158         * safe-read.c (IS_EINTR): Define.
159         (safe_read): Use IS_EINTR in place of in-function cpp directives.
160
161 2002-12-02  Bruno Haible  <bruno@clisp.org>
162
163         * safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
164         Define, taken from safe-read.c.
165         (INT_MAX): Provide fallback.
166         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
167         * safe-write.h (SAFE_WRITE_ERROR): Define.
168
169         * safe-read.c (EINTR): Remove definition.
170         (safe_read): Don't use EINTR if it is absent.
171
172 2002-12-02  Jim Meyering  <jim@meyering.net>
173
174         * safe-read.c (EINTR): Define.
175         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
176         (INT_MAX): Provide fallback.
177         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
178
179         * safe-read.h (SAFE_READ_ERROR): Define.
180
181 2002-12-01  Jim Meyering  <jim@meyering.net>
182
183         * safe-read.c: (safe_read): Also exit the loop when read returns zero.
184         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
185
186 2002-11-27  Paul Eggert  <eggert@twinsun.com>
187
188         * hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
189         hash_rehash): Replace `if (limit <= value) abort ();' with
190         `if (! (value < limit)) abort ();', for readability.
191
192 2002-11-26    <karl@gnu.org>
193
194         * strdup.c: copy from libc again, with jim's ok.
195         * .cppi-disable: re-add strdup.c
196
197 2002-11-25    <karl@gnu.org>
198
199         * strtoll.c: copy from libc, meaning we now #include <strtol.c>
200         instead of "strtol.c".
201
202 2002-11-25  Jim Meyering  <jim@meyering.net>
203
204         * mktime.c: Sync from libc, now that it has the latest fix.
205
206 2002-11-24    <karl@gnu.org>
207
208         * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
209         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
210
211 2002-11-24  Jim Meyering  <jim@meyering.net>
212
213         Update from coreutils:
214
215         * mktime.c: Merge in changes from libc.
216
217         Avoid a link-time failure on some Linux systems.
218         * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise).
219         (__mon_yday): Declare with the STATIC attribute.
220         (__mktime_internal): Likewise.
221         Based on a report from Greg Schafer.
222
223 2002-11-23  Jim Meyering  <jim@meyering.net>
224
225         * sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
226         Use `unsigned', not `int', as type of index.
227
228         * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
229
230         * fsusage.c: Remove unneeded parentheses around operands of `defined'.
231
232 2002-11-22  Paul Eggert  <eggert@twinsun.com>
233
234         * hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
235         hint that one should use `if (! x) abort ();' rather than `assert
236         (x);', and anyway it's one less thing to worry about configuring.
237         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
238         hash_rehash, hash_insert): Use abort rather than assert.
239
240 2002-11-22  Paul Eggert  <eggert@twinsun.com>
241
242         * quotearg.h: Allow multiple inclusion by surrounding with
243         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
244         so that we can be included first.
245         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
246         * quotearg.c: Include quotearg.h immediately after config.h.
247         No need to include stddef.h or sys/types.h any more.
248         Surround local include files with "", not "<>".
249         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
250         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
251         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
252         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
253         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
254         (ISPRINT): Remove; no longer needed now that we assume C89.
255
256         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
257         Preserve errno.
258
259         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
260         quotearg_char): Use SIZE_MAX rather than
261         (size_t) -1 when we are talking about "infinity".
262
263         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
264
265 2002-11-22  Bruno Haible  <bruno@clisp.org>
266
267         * safe-read.h: Assume C89. Add comments.
268         (safe_read): Change return type to size_t.
269         * safe-read.c (safe_read): Change return type to size_t. Handle byte
270         counts > SSIZE_MAX correctly.
271         * safe-write.h: New file.
272         * safe-write.c: New file.
273         * full-read.h: New file.
274         * full-read.c: New file.
275         * full-write.h: Assume C89. Add comments.
276         * full-write.c: Include safe-write.h.
277         (full_write): Rewritten to use safe_write.
278         Suggested by Jim Meyering and Paul Eggert.
279
280 2002-11-21  Bruno Haible  <bruno@clisp.org>
281
282         Remove case insensitive option matching.
283         * argmatch.h (argcasematch): Remove declaration.
284         (ARGCASEMATCH): Remove macro.
285         (__xargmatch_internal): Remove case_sensitive argument.
286         (XARGMATCH): Update.
287         (XARGCASEMATCH): Remove macro.
288         * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
289         case_sensitive argument.
290         (argcasematch): Remove function.
291         (__xargmatch_internal): Remove case_sensitive argument.
292         (main): Use XARGMATCH instead of XARGCASEMATCH.
293
294         * xmalloc.c: Change compile-time error message. Add comment about
295         required autoconf version.
296
297 2002-11-21  Jim Meyering  <jim@meyering.net>
298
299         * strdup.c (strdup): Tweak comment and initial #if/#include.
300
301         Merge in changes from the coreutils.
302
303         2002-09-25  Paul Eggert  <eggert@twinsun.com>
304         * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.
305         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
306         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
307         int.  Work more efficiently if X is the same width as uintmax_t.
308         Do not compare X to -1, to avoid bogus compiler warning.
309         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
310         Don't assume that f_frsize and f_bsize are the same type.
311
312         * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning
313         on FreeBSD.
314
315         * makepath.c (make_path): Restore umask *before* creating the final
316         component.
317         (make_path): Minor reformatting.
318
319         * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC
320         and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC.
321
322         * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy
323         ones.  At least on GNU/Linux systems, `auto' means something else.
324         From Michael Stone.
325
326 2002-11-20  Paul Eggert  <eggert@twinsun.com>
327
328         Merge argmatch cleanups from Bison.  Assume C89.
329
330         * argmatch.c: Include config.h here, not in argmatch.h.
331         Include stdlib.h, for EXIT_FAILURE.
332         Always include <string.h>, since we assume C89.
333         (EXIT_FAILURE): Remove pre-C89 bug workaround.
334         * argmatch.h: Do not include <config.h> or <sys/types.h>.
335         Include <stddef.h> instead, since it's all we need for size_t.
336         (PARAMS): Remove.  All uses removed.
337         (ARRAY_CARDINALITY): Do not bother to #undef.
338         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
339         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
340         Remove unnecessary parentheses.
341         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
342         Insert necessary parentheses.
343         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
344         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
345
346 2002-11-19  Bruno Haible  <bruno@clisp.org>
347
348         * mbswidth.c: Include mbswidth.h right at the beginning.
349         * mbswidth.h: Include <stddef.h>, for size_t.
350
351         * mbswidth.h (PARAMS): Remove macro.
352         (mbswidth, mbsnwidth): Use ANSI C function declarations.
353         * mbswidth.c (mbswidth, mbsnwidth): Likewise.
354
355         * gcd.h (PARAMS): Remove macro.
356         (gcd): Use ANSI C function declarations.
357         * gcd.c (gcd): Likewise.
358
359 2002-11-15  Bruno Haible  <bruno@clisp.org>
360
361         * strcspn.c: Include <stddef.h>.
362         (strcspn): Use ANSI C function declaration. Change return type to
363         size_t. Use NULL.
364         * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
365         (strpbrk): Use NULL.
366         * strpbrk.h (PARAMS): Remove macro.
367         (strpbrk): Use ANSI C function declaration.
368         * strstr.c: Don't include <sys/types.h>.
369         * strstr.h (PARAMS): Remove macro.
370         (strstr): Use ANSI C function declarations.
371
372 2002-11-06  Bruno Haible  <bruno@clisp.org>
373
374         * gcd.h (gcd): Change argument type to 'unsigned long'.
375         * gcd.c (gcd): Likewise.
376
377 2002-11-05  Bruno Haible  <bruno@clisp.org>
378
379         * gcd.h: New file, from gettext-0.11.5.
380         * gcd.c: New file, from gettext-0.11.5.
381
382 2002-11-05  Bruno Haible  <bruno@clisp.org>
383
384         * error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
385         * getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
386         * obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
387         * regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
388
389         * argmatch.c: Include gettext.h instead of <locale.h> and <libintl.h>.
390         * makepath.c: Include gettext.h instead of <locale.h> and <libintl.h>.
391
392         * closeout.c: Include gettext.h instead of <libintl.h>.
393         * human.c: Include gettext.h instead of <libintl.h>.
394         * quotearg.c: Include gettext.h instead of <libintl.h>.
395         * rpmatch.c: Include gettext.h instead of <libintl.h>.
396         * unicodeio.c: Include gettext.h instead of <libintl.h>.
397         * userspec.c: Include gettext.h instead of <libintl.h>.
398         * version-etc.c: Include gettext.h instead of <libintl.h>.
399         * xmalloc.c: Include gettext.h instead of <libintl.h>.
400         (textdomain): Remove definition.
401         * xmemcoll.c: Include gettext.h instead of <libintl.h>.
402
403         * long-options.c: Remove include of <libintl.h> and definition of _.
404         * same.c: Remove include of <libintl.h> and definition of _.
405
406 2002-11-04  Bruno Haible  <bruno@clisp.org>
407
408         * stpcpy.h: New file, from GNU gettext-0.11.5.
409         * strcase.h: New file, from GNU gettext-0.11.5.
410         * strpbrk.h: New file, from GNU gettext-0.11.5.
411         * strstr.h: New file, from GNU gettext-0.11.5.
412         * xgetcwd.h: New file, from GNU gettext-0.11.5.
413
414 2002-05-09  Bruno Haible  <bruno@clisp.org>
415
416         * config.charset: Update for newest glibc. Add canonical names
417         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
418
419 2002-05-09  Bruno Haible  <bruno@clisp.org>
420
421         * localcharset.c (get_charset_aliases): Add more Windows specific
422         aliases.
423
424 2002-05-08  Owen Taylor  <otaylor@redhat.com>
425
426         * config.charset: A few additions for Solaris.
427
428 2001-12-05  Bruno Haible  <bruno@clisp.org>
429
430         * localcharset.c (locale_charset): Don't return an empty string.
431
432 2001-10-23  Bruno Haible  <haible@clisp.cons.org>
433
434         * config.charset: msdos in uk_UA uses CP1125.
435
436 2001-08-05  Bruno Haible  <haible@clisp.cons.org>
437
438         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
439         * localcharset.c (locale_charset): Declare as extern "C".
440
441 2002-02-15  Bruno Haible  <bruno@clisp.org>
442
443         * config.charset [msdosdjgpp]: For Russian, use CP866.
444
445 2002-02-11  Bruno Haible  <bruno@clisp.org>
446
447         * config.charset: Add support for NetBSD.
448
449 2002-09-25    <karl@gnu.org>
450
451         * strdup.c: copy from libc/string (via ../config/srclist*).
452         * getopt*: copy from libc/posix.
453         * gettext.h: copy from gettext.
454         * .cppi-disable: add strdup.c, gettext.h.
455
456 2002-07-01  Jim Meyering  <meyering@lucent.com>
457
458         * c-stack.c: Include sys/time.h.
459         From Volker Borchert.
460
461 2002-06-11  Paul Eggert  <eggert@twinsun.com>
462
463         * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
464         New macro.  Use it uniformly instead of
465         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
466         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
467         reported by Vin Shelton.
468
469 2002-06-22  Jim Meyering  <meyering@lucent.com>
470
471         * fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
472         redefinition due to Solaris5.6's definition in /usr/include/sys/euc.h.
473
474 2002-06-22  Paul Eggert  <eggert@twinsun.com>
475
476         * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
477         Do not assume SA_SIGINFO behavior.
478         Bug reported by Jim Meyering on NetBSD 1.5.2.
479
480 2002-06-22  Jim Meyering  <meyering@lucent.com>
481
482         * c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
483
484         * exitfail.c, exitfail.h: Likewise.
485         * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
486
487         * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
488         of fnmatch.h.
489         (EXTRA_DIST): Add fnmatch_loop.c.
490         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
491
492         * fnmatch_loop.c: New file, from diffutils-2.8.2.
493         * fnmatch.c: Update from diffutils-2.8.2.
494         * fnmatch_.h: New file.  From diffutils-2.8.2.
495         * fnmatch.h: Remove file.
496
497 2002-06-18  Paul Eggert  <eggert@twinsun.com>
498
499         * file-type.h: Report an error if neither S_ISREG nor
500         S_IFREG is defined, instead of using a test specific to glibc
501         2.2.  This should be safe, since POSIX requires S_ISREG and
502         Unix Version 7 had S_IFREG.  We don't need to check for
503         <sys/types.h> since we don't use any symbols that it defines.
504
505 2002-06-15  Jim Meyering  <meyering@lucent.com>
506
507         * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
508         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
509         have been included before this file.
510
511 2002-06-13  Richard Dawe  <richdawe@bigfoot.com>
512
513         * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,
514         so that each temporary file name is unique and valid in the first
515         8 characters, for operation under DOS.
516
517 2002-06-15  Jim Meyering  <meyering@lucent.com>
518
519         Work even with DJGPP 2.03, which lacks support for symlinks.
520         From Richard Dawe.
521         * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
522         is defined.
523         * lchown.c (S_ISLNK): Likewise.
524
525 2002-06-14  Jim Meyering  <meyering@lucent.com>
526
527         * file-type.h: Use the version from diffutils-2.8.2.
528         * file-type.c: Likewise.
529
530 2002-05-27  Jim Meyering  <meyering@lucent.com>
531
532         Fix a problem seen only on nonconforming systems whereby ls.c's
533         use of localtime, and then of gettimeofday would cause trouble:
534         the localtime call used to initialize rpl_gettimeofday's save
535         mechanism would clobber ls's current local time information so
536         that in any long listing the first file would always be listed
537         with date 1970-01-01.  Analysis by Volker Borchert.
538
539         * gettimeofday.c (localtime): Undefine.
540         (rpl_localtime): New function.
541
542 2002-05-22  Jim Meyering  <meyering@lucent.com>
543
544         * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h.
545         * file-type.h: New file.
546         * file-type.c (file_type): New file/function.  Extracted from diffutils.
547
548 2002-04-29  Paul Eggert  <eggert@twinsun.com>
549
550         * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
551
552 2002-04-28  Paul Eggert  <eggert@twinsun.com>
553
554         * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
555         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
556         of 127, since 64 is the largest conceivable number for ancient
557         nonstandard hosts.
558         * sig2str.c: Do not include <sys/wait.h>; no longer needed.
559
560 2002-04-28  Jim Meyering  <meyering@lucent.com>
561
562         * sig2str.c (WTERMSIG): Remove definition (unused).
563
564 2002-04-28  Paul Eggert  <eggert@twinsun.com>
565
566         * sig2str.h, sig2str.c: New files.
567         * Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
568
569 2002-04-24  Jim Meyering  <meyering@lucent.com>
570
571         * gettext.h: New file, from Gettext.
572         * Makefile.am (INCLUDES): Remove -I../intl.
573         (libfetish_a_SOURCES): Add gettext.h.
574
575 2002-04-16  Jim Meyering  <meyering@lucent.com>
576
577         * readutmp.h (UT_TYPE): Remove definition (now in who.c).
578         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
579         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
580
581 2002-04-12  Jim Meyering  <meyering@lucent.com>
582
583         * dirfd.h (dirfd): Elide prototype if dirfd is a macro.
584
585 2002-03-10  Jim Meyering  <meyering@lucent.com>
586
587         * makepath.c (make_path): Remove a comma from a diagnostic.
588         Suggestion from Santiago Vila.
589
590 2002-03-08  Jim Meyering  <meyering@lucent.com>
591
592         * rename.c: Mention that this wrapper is needed also on
593         mips-dec-ultrix4.4 systems.
594
595 2002-03-02  Jim Meyering  <meyering@lucent.com>
596
597         * gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
598         not HAVE_CLOCK_SETTIME.
599
600 2002-02-27  Paul Eggert  <eggert@twinsun.com>
601
602         * nanosleep.h: Rename to....
603         * timespec.h: New name for nanosleep.h.  All uses changed.
604
605         * gettime.c: New file.
606         * settime.c: New file.
607         * stime.c: Remove.
608
609         * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
610         timespec.h.  Remove nanosleep.h.
611
612 2002-02-25  Paul Eggert  <eggert@twinsun.com>
613
614         * acl.c, acl.h: New files.
615         * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
616
617 2002-02-24  Jim Meyering  <meyering@lucent.com>
618
619         * strnlen.c (strnlen): Define-away/undef so that an inconsistent
620         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
621         cause trouble.  Reported by Nelson Beebe.
622
623 2002-02-23  Paul Eggert  <eggert@twinsun.com>
624
625         * path-concat.c (xpath_concat): Reorder code to pacify
626         compilers that don't know that xalloc_die never returns.
627
628 2002-02-20  Jim Meyering  <meyering@lucent.com>
629
630         * getdate.c: Regenerate using bison-1.33.
631
632 2002-02-15  Paul Eggert  <eggert@twinsun.com>
633
634         * posixver.c, posixver.h: New files.
635         * Makefile.am (libfetish_a_SOURCES): Add them.
636
637 2002-02-02  Paul Eggert  <eggert@twinsun.com>
638             Bruno Haible  <bruno@clisp.org>
639
640         * unicodeio.h (print_unicode_char): Add exit_on_error argument.
641         (fwrite_success_callback): New declaration.
642         * unicodeio.c (unicode_to_mb): New function, extracted from
643         print_unicode_char. Call failure callback instead of error.
644         (fwrite_success_callback): New function.
645         (exit_failure_callback): New function.
646         (fallback_failure_callback): New function.
647         (print_unicode_char): Call unicode_to_mb.
648
649 2002-01-26  Jim Meyering  <meyering@lucent.com>
650
651         * Makefile.am (getdate$U.o): Depend on unlocked-io.h.
652
653 2002-01-22  Jim Meyering  <meyering@lucent.com>
654
655         * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
656         Otherwise, some versions of automake would omit the rule that makes
657         Makefile from Makefile.in.
658
659 2001-01-21  Paul Eggert  <eggert@twinsun.com>
660
661         * xmemcoll.h, xmemcoll.c: New files.
662         * Makefile.am (libfetish_a_SOURCES): Add them.
663         * memcoll.c: Include errno.h, and declare errno if not defined.
664         (memcoll): Set errno to zero if there is no error.
665
666         * quotearg.c (quotearg_buffer_restyled):
667         Fix bug with quoting buffers containing NUL when backslashing escapes.
668         This bug was exposed by the other changes in this patch.
669         (quotearg_n_options): New arg ARGSIZE.
670         All callers changed.
671         (quoting_options_from_style): New function.
672         (quotearg_n_style): Use it.
673         (quotearg_n_style_mem): New function.
674
675         * quotearg.h (quotearg_n_style_mem): New function.
676
677 2002-01-16  Jim Meyering  <meyering@lucent.com>
678
679         * getdate.y: Add three semicolons, each just before a closing brace.
680         Bison (as of version 1.31) no longer papers over that mistake.
681
682 2002-02-14  Paul Eggert  <eggert@twinsun.com>
683
684         * backupfile.c (ISDIGIT): Comment fix.
685         * getdate.y (ISDIGIT): Likewise.
686         * posixtm.c (ISDIGIT, year): Likewise.
687         * strverscmp.c (ISDIGIT): Likewise.
688         * userspec.c (ISDIGIT): Likewise.
689
690 2002-01-05  Jim Meyering  <meyering@lucent.com>
691
692         * version-etc.c (version_etc_copyright): Update copyright year.
693
694 2001-01-19  Paul Eggert  <eggert@twinsun.com>
695
696         * closeout.c (close_stdout_status): If ferror (stdout), do
697         not silently exit merely because the output buffer happens to
698         have nothing pending.
699
700 2001-12-18  Paul Eggert  <eggert@twinsun.com>
701
702         See the big note in ../ChangeLog.
703         * human.c (suffixes): Prefer K to k for 1024.
704         (generate_suffix_backwards): New function.
705         (human_readable_inexact): Use it.
706         * xstrtol.c (__xstrtol): If there is no number but there
707         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
708         Accept 'K' as well as 'k'.
709
710 2001-12-15  Jim Meyering  <meyering@lucent.com>
711
712         * regex.h (__restrict_arr): Update from libc.
713
714         * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
715         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
716         (STREQ): Define.
717
718 2001-12-10  Jim Meyering  <meyering@lucent.com>
719
720         * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc,
721         Instead, include "xalloc.h".
722         (initbuffer): Don't cast xmalloc return value to char*.
723         (readline): Reword comment.
724         Don't cast xrealloc return value to char*
725         Return NULL, not 0.
726
727 2001-12-09  Jim Meyering  <meyering@lucent.com>
728
729         * modechange.c (mode_compile): Add cast to avoid pedantic warning about
730         `signed and unsigned type in conditional expression'.
731         * posixtm.c (posix_time_parse): Likewise.
732
733         * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
734
735         * readtokens.c (readtoken): Declare an index to be of type unsigned
736         to avoid a pedantic warning.
737
738         * getstr.c: Don't include assert.h.
739         (getstr): Remove warning-evoking assertions.
740         Return -1 if offset parameter is out of bounds.
741         Change the type of a local from int to size_t.
742
743         * strftime.c (my_strftime_localtime_r): Include this function
744         definition in the `#if ! HAVE_TM_GMTOFF' block.
745
746         * xgethostname.c: Remove declarations of xmalloc and xrealloc.
747         Include xalloc.h instead.
748
749 2001-12-02  Jim Meyering  <meyering@lucent.com>
750
751         * tempname.c: Don't declare getenv, thus reverting the change of
752         2001-11-18.  It's no longer necessary, now that stdlib.h is always
753         included.
754
755         * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
756         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
757
758 2001-11-30  Akim Demaille  <akim@epita.fr>
759
760         * xstrdup.c: Include xalloc.h, so that xstrdup is declared
761         before being defined.
762
763 2001-11-27  Paul Eggert  <eggert@twinsun.com>
764
765         * quotearg.h (quotearg_n, quotearg_n_style):
766         First arg is int, not unsigned.
767         * quotearg.c (quotearg_n, quotearg_n_style): Likewise.
768         (SIZE_MAX, UINT_MAX): New macros.
769         (quotearg_n_options): Abort if N is negative.
770         Avoid overflow check on hosts where size_t is 64 bits and int
771         is 32 bits, as overflow is impossible there.
772         Fix off-by-one typo that caused unnecessary reallocation.
773
774 2001-11-27  Jim Meyering  <meyering@lucent.com>
775
776         * tempname.c: Merge with version from libc.
777         * regex.c: Likewise.
778
779         * tempname.c: Include stdlib.h unconditionally.  On some old systems
780         for which STDC_HEADERS is 0, it was not included, resulting in a
781         warning about an integer-to-pointer conversion problem with getenv.
782         Reported by Volker Borchert.
783
784 2001-11-26  Jim Meyering  <meyering@lucent.com>
785
786         * gtod.h: Remove file.
787         * Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
788         * gettimeofday.c: Don't include gtod.h.
789         (GTOD_init): Remove function.
790         (rpl_gettimeofday): Do its job here instead, rather than aborting.
791         Suggestion from Volker Borchert.
792
793 2001-11-23  Jim Meyering  <meyering@lucent.com>
794
795         * hash.h (struct hash_table): Don't define here.  Merely declare it.
796         * hash.c (struct hash_table): Define it here instead.
797
798 2001-11-22  Jim Meyering  <meyering@lucent.com>
799
800         * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
801
802 2001-11-18  Paul Eggert  <eggert@twinsun.com>
803
804         * tempname.c (TMP_MAX): Remove; no longer needed.
805         (TEMPORARIES): New macro.
806         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
807         removes an artificial limitation (e.g. HP-UX 10.20, where
808         TMP_MAX is 17576).
809
810 2001-11-18  Jim Meyering  <meyering@lucent.com>
811
812         * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
813         on SunOS4.
814
815         * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
816         files will be created before anything else.
817
818 2001-11-17  Jim Meyering  <meyering@lucent.com>
819
820         * modechange.c (mode_adjust): Fix error introduced on 1999-04-26
821         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
822         rather than group writable.  Patch by Juan F. Codagnone.
823
824         * readtokens.c: Remove explicit declarations of xmalloc and xrealloc,
825         Instead, include "xalloc.h".
826
827         * mountlist.c: Include unlocked-io.h after all system headers.
828         Remove explicit declarations of xmalloc, xrealloc,
829         and xstrdup.  Instead, include "xalloc.h".
830
831         * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h.
832         * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise.
833         * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
834
835         * regex.c, sha.c, version-etc.c, yesno.c: Likewise.
836         Reported by Padraig Brady.
837
838         * mkstemp.c: #undef mkstemp.
839         Include config.h.
840         (rpl_mkstemp): Rename from mkstemp.
841         Protoize.
842
843 2001-11-16  Jim Meyering  <meyering@lucent.com>
844
845         * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
846         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
847         determine the amount of total physical memory, use pstat_getstatic.
848         HPUX-11 doesn't define _SC_PHYS_PAGES.
849         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
850         If sysconf couldn't be used to determine the amount of available
851         physical memory, use both pstat_getstatic and pstat_getdynamic.
852         Based on a patch from Bob Proulx.
853
854 2001-11-05  Jim Meyering  <meyering@lucent.com>
855
856         * xstat.in (slash_aware_lstat): Correct a misleading comment.
857
858 2001-11-03  Jim Meyering  <meyering@lucent.com>
859
860         * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
861         in argmatch_to_argument call.
862
863         * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
864         argument.
865
866         * hash.c (hash_clear): Fix a bug that could lead to an infloop or
867         e.g., a fault due to an attempt to free a NULL pointer.
868
869 2001-11-01  Jim Meyering  <meyering@lucent.com>
870
871         * dirfd.c, dirfd.h: New files.
872         * Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
873
874         * hash.c (hash_print) [TESTING]: Clean up.
875
876 2001-10-22  Paul Eggert  <eggert@twinsun.com>
877
878         * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
879         to avoid a warning if -Wall.
880
881 2001-10-21  Paul Eggert  <eggert@twinsun.com>
882
883         * regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
884
885 2001-10-21  Jim Meyering  <meyering@lucent.com>
886
887         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
888         this code would end up calling gettext even in packages built
889         with --disable-nls.
890         * getopt.c (_): Likewise.
891         * regex.c (_): Likewise.
892
893 2001-10-20  Paul Eggert  <eggert@twinsun.com>
894
895         * error.c (strerror_r): Do not declare unless !_LIBC.
896         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
897         Use strerror_r that is only a macro, even if it is not a function.
898         (strerror): Check for HAVE_DECL_STRERROR before declaring.
899         (private_strerror): Use prototypes, not old-style function definition.
900         (print_errno_message): New function.
901         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
902         char*-flavored one.
903         (error_tail, error, error_at_line): Use it.
904
905 2001-10-11  Jim Meyering  <meyering@lucent.com>
906
907         * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
908         and quote_n (1, ... to avoid clobbering a buffer.
909
910 2001-10-05  Jim Meyering  <meyering@lucent.com>
911
912         * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
913         * hash-pjw.c: New file (factored out of fileutils' remove.c).
914         * hash-pjw.h: New file.
915
916 2001-09-30  Jim Meyering  <meyering@lucent.com>
917
918         * mountlist.c [MOUNTED_GETFSSTAT]:
919         Include <sys/ucred.h>, for Apple Darwin.
920         Include sys/mount.h and sys/fs_types.h only if available.
921         (FS_TYPE): Define.
922         (read_filesystem_list): Use FS_TYPE.
923
924 2001-09-29  Paul Eggert  <eggert@twinsun.com>
925
926         * exclude.c (excluded_filename): 0 -> false, since it's
927         a boolean context.
928
929 2001-09-28  Paul Eggert  <eggert@twinsun.com>
930
931         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
932         #defines strtoimax.  Also treat the other strto* functions
933         like strtoimax.
934
935         * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
936         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
937         (strtoimax, strtoumax): Do not declare if already defined as a macro.
938
939 2001-09-26  Jim Meyering  <meyering@lucent.com>
940
941         Most macros in unlocked-io.h had the wrong number of arguments.
942         * gen-uio: New script.
943         (USE_UNLOCKED_IO): Define to 1 if not already defined.
944         * unlocked-io.hin: Remove file.
945         * Makefile.am (unlocked-io.h): Rewrite to use a separate script,
946         rather than trying to embed it here.
947         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
948         Reported by Padraig Brady.
949
950 2001-09-25  Volker Borchert  <bt@teknon.de>
951
952         * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'.
953
954 2001-09-23  Jim Meyering  <meyering@lucent.com>
955
956         * mountlist.c: Remove useless parentheses in #if directives.
957         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
958         the deprecated MOUNTED symbol is no longer defined in mntent.h.
959
960 2001-09-22  Jim Meyering  <meyering@lucent.com>
961
962         * localcharset.c: Update from latest gettext.
963         * config.charset: Likewise.
964
965 2001-09-20  Jim Meyering  <meyering@lucent.com>
966
967         * xstrtol.c (strtoimax): Guard declaration with
968         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
969         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
970         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
971         (strtoumax): Likewise, for completeness (it wasn't necessary).
972
973 2001-09-06  Paul Eggert  <eggert@twinsun.com>
974
975         * strtoimax.c (HAVE_LONG_LONG):
976         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
977         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
978         to work around bug in IBM C compiler.
979
980 2001-09-16  Jim Meyering  <meyering@lucent.com>
981
982         * mkdir.c: New file.
983
984 2001-09-04  Paul Eggert  <eggert@twinsun.com>
985
986         * xgetcwd.c: Revert some of the previous change; intead,
987         fix the HAVE_GETCWD_NULL code to behave more like the
988         !HAVE_GETCWD_NULL code used to.
989
990         Include "xalloc.h".
991         (xgetcwd): Do not return NULL when memory is exhausted; instead,
992         invoke xalloc_die.
993
994 2001-09-04  Paul Eggert  <eggert@twinsun.com>
995
996         * xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
997         Use ssize_t, not int, to store result of readlink.
998         Check for ssize_t overflow as well as size_t overflow,
999         as POSIX says the result of readlink is implementation-defined
1000         when ssize_t overflows.
1001         Remove unnecessary cast to char*.
1002         Use free+malloc instead of realloc, as the storage doesn't need
1003         to be preserved and it's clearer and can be more efficient that way.
1004         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
1005         * xreadlink.h (xreadlink): Update prototype.
1006
1007 2001-09-03  Paul Eggert  <eggert@twinsun.com>
1008
1009         * exclude.c (fnmatch_no_wildcards): Fix confusion between
1010         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
1011         spotted by Jim Meyering.
1012
1013 2001-09-03  Jim Meyering  <meyering@lucent.com>
1014
1015         * xreadlink.c (xreadlink): Preserve errno around `free' during failure.
1016
1017 2001-09-03  Paul Eggert  <eggert@twinsun.com>
1018
1019         * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
1020         like the HAVE_GETCWD_NULL code.
1021         Include pathmax.h if not HAVE_GETCWD.
1022         Do not include xalloc.h.
1023         (INITIAL_BUFFER_SIZE): New symbol.
1024         Do not use xmalloc / xrealloc, since the caller is responsible for
1025         handling errors.  Preserve errno around `free' during failure.
1026         Do not overrun buffer when using getwd.
1027
1028 2001-09-03  Paul Eggert  <eggert@twinsun.com>
1029
1030         * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
1031         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0).
1032
1033 2001-09-02  Jim Meyering  <meyering@lucent.com>
1034
1035         * error.c: Update from GNU libc.
1036
1037 2001-09-01  Jim Meyering  <meyering@lucent.com>
1038
1039         * xreadlink.c: New file.
1040         * xreadlink.h: New file.
1041         * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
1042
1043         * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
1044         doesn't conflict with sparc-sun-solaris2.7's definition in
1045         /usr/include/sys/int_types.h.
1046
1047         * exclude.c: Use `""', not `<>' to #include non-system header files.
1048         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
1049         and strncasecmp as r-values.  Unixware didn't have declarations.
1050
1051 2001-08-31  Jim Meyering  <meyering@lucent.com>
1052
1053         * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
1054         Use an initial, malloc'd, buffer of length 128 rather than
1055         a statically allocated one of length 1024.
1056
1057 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1058
1059         * xgetcwd.c: Don't include pathmax.h.
1060         Include stdlib.h and unistd.h if available.
1061         Include xalloc.h.
1062         (xmalloc, xstrdup, free): Remove decls.
1063         (xgetcwd): Don't assume sizes fit in unsigned.
1064         Check for overflow when computing sizes.
1065         Simplify reallocation code.
1066
1067 2001-08-28  Paul Eggert  <eggert@twinsun.com>
1068
1069         * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
1070
1071         * strtoimax.c: Renamed from strtoxmax.c, removing the
1072         old strtoimax.c.
1073
1074         Also, make the following further changes to make this file's
1075         configuration more similar to that of strtol.c:
1076         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
1077         (strtoumax, uintmax_t, strtoull, strtol): Remove.
1078         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
1079         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
1080         changed to signed values.
1081
1082         And make the following changes as well:
1083         Fix copyright notice, as 1999 was missing.
1084         (verify): New macro.
1085         (strtoimax): Check sizes at compile-time, not run-time.
1086         Prefer strtol to strtoll if both work.
1087         (main): Remove; it was not that useful and was a pain to maintain.
1088
1089         * strtoumax.c: Include strtoimax.c, not strtouxmax.c.
1090
1091 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1092
1093         * savedir.c (savedir): Remove size parameter, as POSIX says that
1094         a directory's st_size can have an arbitrary value, so the old
1095         usage could waste an arbitrary amount of memory.  All uses
1096         changed.
1097         * savedir.h: Update prototype.
1098
1099 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1100
1101         * xstrtol.c (strtoimax): New decl.
1102
1103 2001-08-28  Paul Eggert  <eggert@twinsun.com>
1104
1105         * xstrtol.h: Add copyright notice.
1106         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
1107         LONGINT_INVALID_SUFFIX_CHAR.
1108
1109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1110
1111         * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1112         tm to be declared.
1113
1114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1115
1116         * hash.c: Remove '2001' from copyright notice.
1117
1118 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1119
1120         * full-write.h: New file.
1121         * Makefile.am (libfetish_a_SOURCES): Add full-write.h.
1122         * full-write.c: Correct credits, as cccp.c no longer
1123         exists and anyway it was so heavily changed from the old cccp
1124         code as to be unrecognizable.  Include full-write.h.
1125         (full_write) Return size_t, with short writes meaning failure.
1126         All callers changed.  This fixes a bug with large buffers
1127         on 64-bit hosts.
1128         * utime.c: Include full-write.h.
1129
1130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1131
1132         Merge 'exclude' changes from tar 1.13.22.
1133         This fixes one or two unlikely storage allocation overflow bugs,
1134         but doesn't change user-visible behavior otherwise.
1135
1136 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1137
1138         * exclude.c (bool): Declare, perhaps by including stdbool.h.
1139         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
1140         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
1141         Include if available.
1142         (<xalloc.h>): Include
1143         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
1144         (verify): New macro.  Use it to verify that EXCLUDE macros do not
1145         collide with FNM macros.
1146         (struct patopts): New struct.
1147         (struct exclude): Use it, as exclude patterns now come with options.
1148         (new_exclude): Support above changes.
1149         (new_exclude, add_exclude_file):
1150         Initial size must now be a power of two to simplify overflow checking.
1151         (free_exclude, fnmatch_no_wildcards): New function.
1152         (excluded_filename): No longer requires options arg, as the options
1153         are determined by add_exclude.  Now returns bool, not int.
1154         (excluded_filename, add_exclude):
1155         Add support for the fancy new exclusion options.
1156         (add_exclude, add_exclude_file): Now takes int options arg.
1157         Check for arithmetic overflow when computing sizes.
1158         (add_exclude_file): xrealloc might modify errno, so don't
1159         realloc until after errno might be used.
1160
1161         * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
1162         New macros.
1163         (free_exclude): New decl.
1164         (add_exclude, add_exclude_file): Now takes int options arg.
1165         (excluded_filename): No longer requires options arg, as the options
1166         are determined by add_exclude.  Now returns bool, not int.
1167
1168 2001-08-30  Paul Eggert  <eggert@twinsun.com>
1169
1170         * alloca.c (alloca): Arg is of type size_t, not unsigned.
1171
1172 2001-08-27  Jim Meyering  <meyering@lucent.com>
1173
1174         * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
1175
1176         * version-etc.c (N_): Remove definition.
1177         Revert most of last change.
1178         Instead, simply don't mark the `Copyright...' string for translation.
1179         Based on advice from Paul Eggert.
1180
1181         * strtoxmax.c: Tweak comment.
1182
1183 2001-08-26  Jim Meyering  <meyering@lucent.com>
1184
1185         * version-etc.c (version_etc_copyright_fmt): Replace literal year
1186         of copyright with `%s' so translators don't get an untranslated
1187         message in 2002.
1188         (COPYRIGHT_YEAR): Define.
1189         (version_etc): Use fprintf rather than fputs.
1190         Suggestion from Ulrich Drepper.
1191
1192         * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
1193
1194         * strtoll.c: New file, from GNU libc.
1195         * xstrtoimax.c: New file.
1196
1197         * xstrtol.h: Add xstrtoimax.
1198         * strtoumax.c: New file.  Simply include "strtoumax.c".
1199         * strtoimax.c: New file.  Likewise, but first define STRTOUXMAX_SIGNED.
1200
1201         * strtoumax.c: Factor to work both for unsigned and signed types, ...
1202         * strtoxmax.c: ... then renamed to this.
1203
1204 2001-08-13  Paul Eggert  <eggert@twinsun.com>
1205
1206         * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
1207         Port to Solaris 8, where 'sed' requires a space after the 'r'
1208         command, and where sh dislikes "$/".  Clean up the spacing a bit.
1209         Redirect output to $tmp just once.
1210
1211 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
1212
1213         * addext.c (<errno.h>): Include.
1214         (errno): Declare if not defined.
1215         (addext): Work correctly when pathconf returns -1 and leaves
1216         errno alone because there is no limit.  Also, work even if
1217         pathconf returns a value greater than SIZE_MAX.
1218
1219 2001-08-12  Jim Meyering  <meyering@lucent.com>
1220
1221         * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
1222         Simply `return getcwd (NULL, 0);'.
1223         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
1224         Use 1300 as initial value for length, not PATH_MAX.
1225
1226         * pathmax.h: Clean up cpp syntax.
1227
1228 2001-08-12  Jim Meyering  <meyering@lucent.com>
1229
1230         * gettimeofday.c: New file.
1231         * gtod.h: New file.
1232         * Makefile.am (libfetish_a_SOURCES): Add gtod.h.
1233
1234 2001-08-04  Jim Meyering  <meyering@lucent.com>
1235
1236         * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
1237         to get in sync with glibc.
1238
1239 2001-08-03  Paul Eggert  <eggert@twinsun.com>
1240
1241         The following changes are from gettext 0.10.39 as maintained by
1242         Bruno Haible.
1243
1244         * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
1245         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
1246         with inverted sense.  All uses changed.
1247
1248         * mbswidth.c: Don't include <limits.h>.
1249         Include <stdlib.h> and <string.h> unconditionally.
1250         (iswcntrl, mbsinit, ISCNTRL): New macros.
1251         (mbsnwidth): Use K&R style function declarations.
1252         Don't bother checking for MB_LEN_MAX == 1, since the compiler
1253         can optimize it when MB_CUR_MAX == 1.
1254         The width of control characters is zero, not 1.
1255
1256 2001-07-15  Jim Meyering  <meyering@lucent.com>
1257
1258         * Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
1259         (BUILT_SOURCES): Add unlocked-io.h.
1260         (io_functions): Define.
1261         (unlocked-io.h): New rule.
1262         (DISTCLEANFILES): Add unlocked-io.h.
1263         (all-local): Depend on unlocked-io.h, to ensure it is created.
1264
1265         * unlocked-io.hin: New file
1266
1267         * regex.c: Update from glibc.
1268
1269 2001-07-05  Jim Meyering  <meyering@lucent.com>
1270
1271         * Makefile.am (noinst_HEADERS): Remove definition, per new automake
1272         recommendation.
1273         (libfetish_a_SOURCES): Put all .h files here instead.
1274         Remove a thus-exposed (better checks in automake) duplicate and
1275         two unnecessary .h files.
1276
1277 2001-06-11  Jim Meyering  <meyering@lucent.com>
1278
1279         * regex.c: Update from GNU libc.
1280
1281 2001-05-27  Jim Meyering  <meyering@lucent.com>
1282
1283         * readutmp.h (UT_TYPE): Define.
1284
1285 2001-05-24  Jim Meyering  <meyering@lucent.com>
1286
1287         * argmatch.c: Include "quote.h".
1288         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
1289         quote function.  Reported by Göran Uddeborg.
1290
1291 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1292
1293         * dirname.c (dir_name): Compute append_dot using path, not newpath
1294         which is not yet declared.
1295
1296 2001-05-11  Paul Eggert  <eggert@twinsun.com>
1297
1298         * Makefile.am (libfetish_a_SOURCES):
1299         Add strftime.c, since we now compile it on all hosts.
1300
1301         * strftime.c (my_strftime):
1302         Define to nstrftime if emacs, but only if my_strftime is not defined.
1303         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
1304         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
1305         Add one more extra argument: a nanoseconds value.
1306         All uses changed.
1307         (ns): New macro.
1308         (my_strftime function): Add %N format.
1309         (emacs_strftimeu): Renamed from emacs_strftime,
1310         with extra ut argument.
1311
1312 2001-05-11  Paul Eggert  <eggert@twinsun.com>
1313
1314         dirname code cleanup.  base_name now behaves more compatibly
1315         with POSIX basename when given file names that have trailing
1316         slashes, and similarly for dir_name.  Add new primitives
1317         base_len and dir_len.  Put the directory-name-related decls
1318         into dirname.h.
1319
1320         * addext.c (ISSLASH, base_name): Remove; now in dirname.h.
1321         * backupfile.c (base_name): Likewise.
1322         * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
1323         * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
1324         * makepath.c (strip_trailing_slashes): Likewise.
1325         * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH):
1326         Likewise.
1327         * rename.c (strip_trailing_slashes): Likewise.
1328         * same.c (base_name): Likewise.
1329         * stripslash.c (ISSLASH): Likewise.
1330
1331         * addext.c: Include <dirname.h> after size_t is defined.
1332         * backupfile.c: Likewise.
1333
1334         * addext.c (addext): Use base_len to trim redundant
1335         trailing slashes instead of doing it ourselves.
1336         But do not trim the last slash if it is not redundant.
1337
1338         * backupfile.c (find_backup_file_name,
1339         max_backup_version): Use base_len instead of rolling it ourselves.
1340         Handle the case of "" and (on DOS) "C:" correctly.
1341
1342         * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed.
1343         Include <string.h>, <dirname.h>.
1344         (base_name): Allow file names ending in slashes, other than names
1345         that are all slashes.  In this case, return the basename followed
1346         by the slashes.  This is more general, and can be used in places
1347         where the original base_name purposely had an assertion failure.
1348         (base_len): New function.
1349
1350         * dirname.c: Include <string.h> instead of <stdlib.h>.
1351         Do not include <assert.h>; no longer needed.
1352         Include xalloc.h.
1353         (memrchr): Remove decl.
1354         (dir_name_r): Remove.
1355         (dir_len): Renamed from dirlen.  All callers changed.
1356         Rewrite in terms of base_name, for simplicity and consistency.
1357         (dir_name): Never return NULL.  All callers changed.
1358         Do not include <stdlib.h> in test program; no longer needed.
1359         return 0; is fine for test program.
1360
1361         * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
1362         New macros.
1363         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
1364
1365         * path-concat.c (path_concat): Use base_len to compute
1366         base length, not strlen; this means we cannot rely on memcpy
1367         to null-terminate.
1368
1369         * same.c (STREQ): Remove.
1370         (same_name): Handle the case where the basename ends in trailing '/'.
1371
1372         * stripslash.c (strip_trailing_slashes): Return nonzero if
1373         a slash was stripped.  Do not strip the last slash after a
1374         file system prefix.
1375
1376 2001-04-08  Jim Meyering  <meyering@lucent.com>
1377
1378         * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
1379         recomputed; that's necessary when the offset spans a DST transition.
1380         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
1381
1382 2001-04-02  Jim Meyering  <meyering@lucent.com>
1383
1384         * regex.h, regex.c: Update from GNU libc.
1385
1386 2001-03-19  Paul Eggert  <eggert@twinsun.com>
1387
1388         * version-etc.c (version_etc_copyright): Update to 2001.
1389
1390 2001-03-16  Paul Eggert  <eggert@twinsun.com>
1391
1392         * tempname.c (uint64_t): Define to uintmax_t if
1393         not defined, and if UINT64_MAX is not defined.
1394         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
1395         Reported by John David Anglin.
1396
1397 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
1398
1399         * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve
1400         alias if codeset is empty.
1401         * config.charset (BeOS): Use wildcard syntax.
1402
1403 2001-03-13  Jim Meyering  <meyering@lucent.com>
1404
1405         * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
1406         Don't insert a backslash when concatenating e.g., `C:' and `foo'.
1407         From Bruno Haible.
1408
1409 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
1410
1411         * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL).
1412         Don't return NULL.
1413         * unicodeio.c (print_unicode_char): Simplify accordingly.
1414
1415 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
1416
1417         * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
1418         support for DOS/DJGPP.
1419
1420 2001-02-28  Paul Eggert  <eggert@twinsun.com>
1421
1422         * Makefile.am (libfetish_a_SOURCES):
1423         Add dup-safer.c, fopen-safer.c.
1424         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
1425
1426         * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files.
1427
1428 2001-02-25  Paul Eggert  <eggert@twinsun.com>
1429
1430         The mkstemp replacement is taken from glibc 2.2.2, with some
1431         portability fixes for use outside glibc, as follows:
1432
1433         * tempname.c (struct_stat64): New macro.
1434         (direxists, __gen_tempname): Use it.
1435         This avoids a portability problem with Solaris 8.
1436
1437         * tempname.c (<config.h>): Include if HAVE_CONFIG_H.
1438         (<stddef.h>, <stdint.h>, <string.h>):
1439         Include only if STDC_HEADERS || _LIBC.
1440         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
1441         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
1442         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
1443         (__set_errno): Define this macro if <errno.h> doesn't.
1444         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
1445         Define these macros if <stdio.h> doesn't.
1446         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
1447         Define these macros if <sys/stat.h>
1448         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
1449         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
1450         __xstat64): Define if not _LIBC.
1451         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
1452         (__gen_tempname): Invoke gettimeofday only if
1453         HAVE_GETTIMEOFDAY || _LIBC;
1454         otherwise, fall back on plain "time".
1455         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
1456
1457         * mkstemp.c (__GT_FILE): Define to zero if not defined.
1458
1459         * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
1460
1461 2001-02-17  Jim Meyering  <meyering@lucent.com>
1462
1463         * strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
1464         around included file name.
1465
1466         * strnlen.c (__strnlen): Merge in a change from GNU libc.
1467
1468         * strftime.c: Update from GNU libc (the only changes were to comments).
1469
1470 2001-02-13  Bruno Haible  <haible@clisp.cons.org>
1471
1472         * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash.
1473
1474 2001-02-17  Paul Eggert  <eggert@twinsun.com>
1475
1476         * mbswidth.c, quotearg.c (mbrtowc, mbsinit):
1477         Remove workaround macros for hosts that have mbrtowc but not
1478         mbstate_t, as we now insist on proper declarations for both
1479         before using mbrtowc.
1480
1481 2001-02-17  Jim Meyering  <meyering@lucent.com>
1482
1483         * regex.c: Update from libc.
1484
1485 2001-02-16  Paul Eggert  <eggert@twinsun.com>
1486
1487         * alloca.c (malloc): Undef before defining, since stdlib.h
1488         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
1489         Reported by Mark Hounschell via Paul Eggert.
1490
1491 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
1492
1493         * config.charset: Update for FreeBSD 4.2.
1494
1495 2001-01-26  Jim Meyering  <meyering@lucent.com>
1496
1497         * quotearg.c: Include stddef.h.
1498         * quote.c: Include stddef.h.
1499         Reported by Axel Kittenberger.
1500
1501         * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
1502         line in double quotes so that it evokes a better diagnostic.
1503         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
1504         Reported by Axel Kittenberger.
1505
1506 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
1507
1508         * unicodeio.c (print_unicode_char): Cast the second iconv() arg,
1509         to avoid a warning.  Add back 'const' to inptr.
1510
1511 2001-01-16  Jim Meyering  <meyering@lucent.com>
1512
1513         * basename.c: Include <stdio.h>, needed by assert on SunOS4.
1514         From Bruno Haible.
1515
1516 2001-01-14  Jim Meyering  <meyering@lucent.com>
1517
1518         * rename.c: New file.  From Volker Borchert.
1519         Include stdlib.h, string.h or strings.h, and xalloc.h.
1520         Use strip_trailing_slashes rather than open-coding it.
1521
1522 2001-01-03  Paul Eggert  <eggert@twinsun.com>
1523
1524         * strftime.c: Sync with glibc time/strftime.c 1.81.
1525
1526 2001-01-03  Jim Meyering  <meyering@lucent.com>
1527
1528         * unicodeio.c (print_unicode_char): Remove `const' from declaration of
1529         local `inptr' to avoid warning with some system declarations of iconv.
1530
1531 2000-12-29  Paul Eggert  <eggert@twinsun.com>
1532
1533         * modechange.c: Do not assume that mode_t uses the
1534         traditional octal encoding.  E.g. "chmod 1 FOO" should set
1535         the other-execute bit of FOO even if S_IXOTH != 1.
1536
1537         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
1538         WOTH, XOTH, ALLM): New macros.
1539         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
1540          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
1541         Use them.
1542         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
1543         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
1544         (mode_compile):
1545         No need to use uintmax_t; unsigned long is long enough.
1546         Don't bother to get suffix since we don't use it.
1547
1548 2000-12-24  Jim Meyering  <meyering@lucent.com>
1549
1550         * hash.c (is_prime): Return explicit boolean values.
1551         (hash_get_first): Return NULL to appease Irix5.6's 89.
1552         Reported by Nelson Beebe.
1553
1554 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
1555
1556         * localcharset.c (locale_charset): Add support for Win32.
1557
1558 2000-12-18  Paul Eggert  <eggert@twinsun.com>
1559
1560         * physmem.h, physmem.c: New files.
1561
1562         * Makefile.am (libfetish_a_SOURCES): Add physmem.c.
1563         (noinst_HEADERS): Add physmem.h.
1564
1565         * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
1566         't' for compatibility with Solaris 8 sort.
1567
1568 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
1569
1570         * config.charset: Add support for BeOS.
1571
1572 2000-12-16  Jim Meyering  <meyering@lucent.com>
1573
1574         * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
1575         SHELLS_FILE to a file name that's useful on djgpp systems.
1576         Include stdlib.h.
1577         (ADDITIONAL_DEFAULT_SHELLS): Define.
1578         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
1579         Based mostly on a patch from Prashant TR.
1580
1581 2000-12-16  Jim Meyering  <meyering@lucent.com>
1582
1583         This bug had a serious impact on chown: `chown N:M FILE' (for integer
1584         N and M) would have treated it like `chown N:N FILE'.
1585
1586         * userspec.c (parse_user_spec): Fix typo: s/u/g/.
1587
1588 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
1589
1590         * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
1591         CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
1592         to the list of canonical encodings. Rename EUC-CN to GB2312.
1593
1594 2000-12-08  Andreas Schwab  <schwab@suse.de>
1595
1596         * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
1597         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
1598
1599 2000-12-07  Jim Meyering  <meyering@lucent.com>
1600
1601         * stripslash.c (ISSLASH): Define.
1602         (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
1603         From Prashant TR.
1604
1605         * dirname.c (FILESYSTEM_PREFIX_LEN): Define.
1606         (dir_name_r): Declare this function as static.
1607         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
1608         manifest itself on a name containing a mix of slashes and
1609         backslashes.
1610         Make this function work with names starting with a DOS-style
1611         drive letter and colon prefix.
1612         (dir_name): Append `.' if necessary.
1613         Based mostly on patches from Prashant TR and Eli Zaretskii.
1614
1615         * dirname.h (dir_name_r): Remove prototype.
1616
1617 2000-12-05  Jim Meyering  <meyering@lucent.com>
1618
1619         * dirname.c (dir_name_r): Add `const' in a few local declarations.
1620
1621 2000-12-04  Jim Meyering  <meyering@lucent.com>
1622
1623         * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
1624         Also include memory.h, stdlib.h, unistd.h if appropriate.
1625         Reported by Andreas Jaeger (conflicting declaration of malloc).
1626
1627 2000-12-02  Jim Meyering  <meyering@lucent.com>
1628
1629         * closeout.h: Make idempotent, to avoid some obscure warnings.
1630
1631 2000-12-01  Paul Eggert  <eggert@twinsun.com>
1632
1633         * memrchr.c: Include <config.h> before any system include file.
1634
1635 2000-11-29  Paul Eggert  <eggert@twinsun.com>
1636
1637         * dirname.c (dir_name_r): Fix typo: int -> size_t.
1638
1639 2000-11-26  Jim Meyering  <meyering@lucent.com>
1640
1641         * memcoll.c: Include sys/types.h.  From Werner Almesberger.
1642
1643 2000-11-22  Paul Eggert  <eggert@twinsun.com>
1644
1645         * strftime.c (my_strftime): Do not invoke mbrlen with a
1646         size of (size_t) -1; it's not portable.
1647
1648 2000-11-17  Akim Demaille  <akim@epita.fr>
1649
1650         * obstack.h: Formatting changes.
1651         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
1652         prevent type checking.
1653         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1654         cast the value to (void *): assigning a `foo *' to a `void *'
1655         variable is valid.
1656         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1657
1658 2000-11-17  Jim Meyering  <meyering@lucent.com>
1659
1660         * strstr.c: Update from GNU libc.
1661
1662 2000-11-16  Jim Meyering  <meyering@lucent.com>
1663
1664         * strverscmp.c: Incorporate weak-alias-related changes from glibc.
1665
1666 2000-11-11  Jim Meyering  <meyering@lucent.com>
1667
1668         * error.c: Add a couple #includes, merging from GNU libc version.
1669
1670 2000-11-10  Jim Meyering  <meyering@lucent.com>
1671
1672         * obstack.h: Update from GNU libc.
1673         * obstack.c: Likewise.
1674
1675 2000-11-06  Paul Eggert  <eggert@twinsun.com>
1676
1677         * getusershell.c (setusershell): Use rewind rather than
1678         fseek/fseeko, to avoid configuration hassles with fseeko.
1679         Don't bother opening SHELLS_FILE if shellstream is NULL;
1680         it's not necessary.
1681
1682 2000-11-05  Jim Meyering  <meyering@lucent.com>
1683
1684         * makepath.h (make_dir): Declare.
1685         * makepath.c (make_dir): Remove `static' attribute.
1686         Tweak a comment.
1687
1688 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
1689
1690         * hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
1691         last one in a bucket, advance to the next bucket.
1692
1693 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
1694
1695         * fnmatch.c: Do not comment out all the code if we are using
1696         the GNU C library, because in some cases we are replacing buggy
1697         code in the GNU C library itself.
1698
1699 2000-10-30  Paul Eggert  <eggert@twinsun.com>
1700
1701         * error.h, getline.h, modechange.h:
1702         Remove "2000" from Copyright line, as the file hasn't been
1703         changed this year other than in the copyright notice.
1704
1705         * xalloc.h: Add "2000" to Copyright line, as this file
1706         was changed this year.
1707
1708 2000-10-30  Paul Eggert  <eggert@twinsun.com>
1709
1710         * fnmatch.c (FOLD): Do not assume that characters are unsigned.
1711         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
1712         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
1713
1714 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
1715
1716         * regex.h (__restrict_arr): Move definition out of #ifndef block.
1717         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
1718         doesn't define __restrict_arr.
1719
1720 2000-10-29  Jim Meyering  <meyering@lucent.com>
1721
1722         * xstat.in: Fix grammar in comment.
1723
1724 2000-10-28  Jim Meyering  <meyering@lucent.com>
1725
1726         * memchr.c: Update from libc.
1727         Adjust for portability:
1728         [HAVE_STDLIB_H]: Include stdlib.h.
1729         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
1730         Undef __memchr, too.
1731         [!weak_alias]: Define __memchr to memchr.
1732
1733         * regex.c: Update from libc.
1734         * regex.h: Likewise.
1735         * getopt1.c: Likewise.
1736         * memcmp.c: Likewise.
1737
1738         * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
1739         Avoid using fseek, when possible -- it's broken by design.
1740         Patch by Ulrich Drepper.
1741
1742 2000-10-26  Jim Meyering  <meyering@lucent.com>
1743
1744         * strftime.c: Update from libc.
1745
1746 2000-10-25  Jim Meyering  <meyering@lucent.com>
1747
1748         * obstack.c: Update from libc.
1749
1750 2000-10-23  Jim Meyering  <meyering@lucent.com>
1751
1752         * hard-locale.c (hard_locale): Revert last change -- it was simply
1753         wrong.  That set_locale call must not have any side effects.
1754         From Paul Eggert.
1755
1756 2000-10-22  Jim Meyering  <meyering@lucent.com>
1757
1758         * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
1759         [CYCLIC]: Remove now-unused definition.
1760
1761         * save-cwd.c (O_DIRECTORY): Define, if needed.
1762         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
1763         Suggestion from Ulrich Drepper.
1764
1765 2000-10-21  Jim Meyering  <meyering@lucent.com>
1766
1767         * dirname.c (dir_name_r): New function, factored out of dir_name.
1768         (dir_name): Use dir_name_r.
1769         * dirname.h (dir_name_r): Declare it.
1770
1771 2000-10-21  Jim Meyering  <meyering@lucent.com>
1772
1773         * dirname.c (memrchr): Declare if necessary.
1774         (dir_name): Remove the restriction that there be no
1775         trailing slashes.  Now, this code skips past them, effectively
1776         ignoring them.
1777         [TEST_DIRNAME] (main): New unit tests.
1778
1779         * memrchr.c: New file from GNU libc.
1780         Undef __memrchr, too.
1781         [!weak_alias]: Define __memrchr to memrchr.
1782         Guard weak_alias use with `#ifdef weak_alias'.
1783
1784 2000-10-17  Jim Meyering  <meyering@lucent.com>
1785
1786         * quote.h (PARAMS): Define and use.
1787         Reported by Akim Demaille.
1788
1789         * getopt.c: Update from libc.
1790
1791 2000-10-16  Jim Meyering  <meyering@lucent.com>
1792
1793         * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale.
1794         From Jan Fedak.
1795
1796 2000-09-25  Jim Meyering  <meyering@lucent.com>
1797
1798         * md5.h (rol): Define (from GnuPG).
1799
1800         * sha.c: Give credit (GnuPG) where due.
1801         (M): Use rol rather than open-coding it.
1802         Add a FIXME comment.
1803
1804 2000-09-21  Jim Meyering  <meyering@lucent.com>
1805
1806         * userspec.c (parse_user_spec): Remove debugging printf I'd added.
1807         Reported by Michael Stone.
1808
1809 2000-09-20  Jim Meyering  <meyering@lucent.com>
1810
1811         * Makefile.am (libfetish_a_SOURCES): Add sha.c.
1812         (noinst_HEADERS): Add sha.h.
1813         Based on code from Scott G. Miller and from GnuPG.
1814
1815 2000-09-15  Jim Meyering  <meyering@lucent.com>
1816
1817         * regex.c: Update from libc.
1818
1819 2000-09-10  Jim Meyering  <meyering@lucent.com>
1820
1821         * getopt.c (_getopt_internal): Update from glibc.
1822
1823 2000-09-09  Jim Meyering  <meyering@lucent.com>
1824
1825         * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
1826         think it should be used as a general replacement for isascii.
1827         * fnmatch.c: Likewise.
1828         * mbswidth.c: Likewise
1829         * regex.c: Likewise.
1830
1831         Don't use atoi.
1832         * userspec.c: Include sys/param.h and limits.h.
1833         Include xstrtol.h.
1834         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
1835         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
1836         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
1837         UID, GID.  Check range.
1838
1839 2000-09-06  Jim Meyering  <meyering@lucent.com>
1840
1841         * getopt.c (_getopt_internal): Update from glibc.
1842
1843 2000-08-30  Jim Meyering  <meyering@lucent.com>
1844
1845         * strftime.c: Merge in changes from GNU libc.
1846
1847 2000-08-26  Jim Meyering  <meyering@lucent.com>
1848
1849         * closeout.c: Include "__fpending.h".
1850         (close_stdout_status): Return right away if there's nothing to flush.
1851
1852         * Makefile.am (noinst_HEADERS): Add __fpending.h.
1853         * __fpending.c: New file.
1854         * __fpending.h: New file.
1855
1856 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1857
1858         Standardize on "memory exhausted" instead of "Memory exhausted"
1859         or "virtual memory exhausted".
1860         * obstack.c (print_and_abort): Use "memory exhausted", not
1861         "virtual memory exhausted".
1862         * same.c (same_name): Invoke xalloc_die instead of printing
1863         our own message.
1864         * userspec.c (parse_user_spec): Likewise.
1865         * bumpalloc.h: comment fix
1866         * same.c, userspec.c: Include xalloc.h.
1867
1868         * xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
1869         not char *const and pointing to a constant array.
1870         * xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
1871         (xrealloc): Comment fix.
1872
1873         * userspec.c (parse_user_spec):
1874         Don't translate a message until just before returning,
1875         to avoid unnecessary translation.
1876
1877 2000-08-07  Jim Meyering  <meyering@lucent.com>
1878
1879         * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
1880         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
1881         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
1882         getgroups.c, gethostname.c, getopt.h, group-member.c,
1883         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
1884         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
1885         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
1886         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
1887         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
1888         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
1889         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
1890         yesno.c: Back out Copyright date changes for each file with no change
1891         this year.  This eases coordination with other programs using the same
1892         source code modules.  From Paul Eggert.
1893
1894 2000-08-03  Greg McGary  <greg@mcgary.org>
1895
1896         * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
1897         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
1898         (EXTEND_BUFFER): Use them.
1899
1900 2000-08-01  Jim Meyering  <meyering@lucent.com>
1901
1902         * dirname.c (ISSLASH): Define.
1903         (BACKSLASH_IS_PATH_SEPARATOR): Define.
1904         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
1905         both `\' and `/' may be use as path separators.
1906         Based on a patch from Prashant TR.
1907
1908 2000-07-31  Paul Eggert  <eggert@twinsun.com>
1909
1910         * quotearg.c (quotearg_n_options): Don't make the initial
1911         slot vector a constant, since it might get modified.
1912
1913 2000-07-31  Jim Meyering  <meyering@lucent.com>
1914
1915         * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'.
1916         * obstack.c (print_and_abort): Likewise.
1917
1918 2000-07-30  Paul Eggert  <eggert@twinsun.com>
1919
1920         * quotearg.c (quotearg_n_options): Preallocate a slot 0
1921         buffer, so that the caller can always quote one small
1922         component of a "memory exhausted" message in slot 0.
1923         From a suggestion by Jim Meyering.
1924
1925 2000-07-30  Jim Meyering  <meyering@lucent.com>
1926
1927         * makepath.c (make_path): Quote the other instance, too.
1928
1929         * quotearg.c (N_STATIC_SLOTVECS): Define.
1930         (STATIC_BUF_SIZE): Define.
1931         (quotearg_n_options): Use only statically allocated storage when
1932         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
1933         than STATIC_BUF_SIZE.
1934
1935 2000-07-29  Jim Meyering  <meyering@lucent.com>
1936
1937         * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
1938         * dirname.c (dir_name): Likewise.
1939
1940         * basename.c (base_name): Use ISSLASH rather than comparing against `/'.
1941
1942         * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
1943         (dir_name): Assert that there are no trailing slashes.
1944
1945 2000-07-18  Bruno Haible  <haible@clisp.cons.org>
1946
1947         * mbswidth.h (mbswidth): Add a flags argument.
1948         (mbswidth): New declaration.
1949         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
1950         * mbswidth.c (mbswidth): Add a flags argument.
1951         (mbsnwidth): New function.
1952
1953 2000-07-24  Jim Meyering  <meyering@lucent.com>
1954
1955         * mbswidth.c: Remove useless #else.  From Bruno Haible.
1956
1957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1958
1959         * mbswidth.c (_XOPEN_SOURCE):
1960         Don't define; this causes problems on Solaris 7.
1961         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
1962
1963 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1964
1965         * quotearg.c:
1966         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
1967         so that mbstate_t is always defined.
1968
1969         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
1970         be 1 in at least one GCC installation, and this configuration
1971         error is likely to be common.  Ignoring MB_LEN_MAX hurts
1972         performance on hosts that have mbrtowc but have only unibyte
1973         locales, but I assume these hosts are rare.
1974
1975 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1976
1977         * quotearg.c: Streamline by invoking multibyte code only if needed.
1978         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
1979         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
1980         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
1981         invoke multibyte primitives.
1982
1983 2000-07-23  Jim Meyering  <meyering@lucent.com>
1984
1985         * basename.c (base_name): Add an assertion.
1986
1987 2000-07-15  Bruno Haible  <clisp.cons.org>
1988
1989         * quotearg.c: When the system forces us to redefine mbstate_t,
1990         shadow its mbsinit function.
1991
1992 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
1993
1994         * mbswidth.h: New file.
1995         * mbswidth.c: New file.
1996         * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
1997         (noinst_HEADERS): Add mbswidth.h.
1998
1999 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
2000
2001         * config.charset: Add support for FreeBSD. Improve support for HP-UX
2002         and IRIX 6.
2003
2004 2000-07-15  Jim Meyering  <meyering@lucent.com>
2005
2006         * makepath.c: Include quote.h.
2007         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
2008         corresponding argument in a `quote (...)' call.
2009         Give better diagnostics.
2010
2011         * Makefile.am (libfetish_a_SOURCES): Add quote.c.
2012         (noinst_HEADERS): Add quote.h.
2013
2014         * quote.c (quote, quote_n): New file.  Two functions taken verbatim
2015         from tar's src/misc.c.
2016         * quote.h: New file.  Prototypes for same.
2017
2018 2000-07-10  Paul Eggert  <eggert@twinsun.com>
2019
2020         From a suggestion by Bruno Haible.
2021         * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
2022         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
2023         to decide whether to define the BeOS workaround macro;
2024         this adjusts to the change to AC_MBSTATE_T.
2025
2026 2000-07-13  Paul Eggert  <eggert@twinsun.com>
2027
2028         * quotearg.h (enum quoting style): New enum clocale_quoting_style.
2029
2030         * quotearg.c (quoting_style_args, quoting_style_vals,
2031         quotearg_buffer_restyled): Add support for
2032         clocale_quoting_style.  Undo previous change to
2033         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
2034         and "{RIGHT QUOTATION MARK}" msgids.
2035
2036 2000-07-05  Paul Eggert  <eggert@twinsun.com>
2037
2038         The old behavior of quoting `like this' doesn't look good with
2039         newer, ISO-style fonts.  See:
2040         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2041
2042         Instead, quote "like this" by default.  Let the translator
2043         tailor the locale-specific quoting behavior by providing
2044         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
2045
2046         * quotearg.c (N_): New macro.
2047         (gettext_default): New function.
2048         (quotearg_buffer_restyled): Use
2049         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
2050         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
2051
2052 2000-07-09  Jim Meyering  <meyering@lucent.com>
2053
2054         * Most files: Update copyright dates to include 2000.
2055
2056 2000-07-08  Jim Meyering  <meyering@lucent.com>
2057
2058         * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
2059         if not defined.
2060         (xgethostname): Remove now-unnecessary #ifdef.
2061         Move declaration of `err' into loop where it's used.
2062
2063 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
2064
2065         * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug
2066         by allocating a larger buffer. Test the gethostname return value for
2067         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
2068         returns an error and ENAMETOOLONG isn't defined.
2069
2070 2000-07-05  Paul Eggert  <eggert@twinsun.com>
2071         and Bruno Haible  <haible@clisp.cons.org>
2072
2073         * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
2074
2075 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
2076
2077         * quotearg.c (struct quoting_options): Simplify quote_these_too
2078         dimension.
2079
2080 2000-07-03  Jim Meyering  <meyering@lucent.com>
2081
2082         * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
2083         Reported by Bruno Haible.
2084
2085 2000-07-04  Jim Meyering  <meyering@lucent.com>
2086
2087         * quotearg.c: Make inclusion of <wchar.h> independent of whether
2088         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
2089         lacks mbrtowc.
2090
2091 2000-07-03  Paul Eggert  <eggert@twinsun.com>
2092         and Bruno Haible  <haible@clisp.cons.org>
2093
2094         * quotearg.c (mbrtowc):
2095         Assign to *pwc, and return 1 only if result is nonzero.
2096         (iswprint): Use ISPRINT when substituting our own mbrtowc.
2097
2098 2000-07-03  Jim Meyering  <meyering@lucent.com>
2099
2100         * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
2101         This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
2102         From Bob Proulx.
2103
2104 2000-07-02  Jim Meyering  <meyering@lucent.com>
2105
2106         * quotearg.c (mbstate_t): Don't define here.
2107
2108 2000-07-02  Jim Meyering  <meyering@lucent.com>
2109
2110         * nanosleep.c (SIGCONT): Define if not already defined.
2111
2112 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2113
2114         * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
2115         per change in ../m4/ls-mntd-fs.m4.
2116         (read_filesystem_list): Ignore symbolic links.
2117
2118 2000-06-29  Jim Meyering  <meyering@lucent.com>
2119
2120         * same.c: Include <string.h> or <strings.h>, as appropriate,
2121         for declaration of strcmp.
2122
2123         * long-options.c: Include <stdlib.h>, for declaration of exit.
2124
2125         * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
2126         Avoid warning by casting result to `char *' to remove `const'.
2127
2128 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2129
2130         * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
2131
2132 2000-06-26  Paul Eggert  <eggert@twinsun.com>
2133
2134         savedir now sets errno on failure and invokes xmalloc to get memory.
2135         Fix a couple of other minor bugs while we're at it.
2136
2137         * savedir.c (<unistd.h>): Do not include; there's no need.
2138         (NAMLEN): Remove macro.
2139         (malloc, realloc): Remove decls.
2140         (stpcpy): Likewise.
2141         ("xalloc.h"): Include.
2142         (NAME_SIZE_DEFAULT): New macro.
2143         (savedir): Use xmalloc / xrealloc to allocate memory.
2144         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
2145         Skip "" directory entries.
2146         Use strlen to calculate directory entry length, since the old method
2147         is rarely used these days and isn't worth supporting.
2148         Don't use a pointer after freeing it.
2149         Check for integer overflow when calculating allocation size.
2150         Use memcpy to copy entries, instead of stpcpy.
2151         Set errno properly when returning NULL.
2152         Check for readdir error.
2153
2154 2000-06-26  Jim Meyering  <meyering@lucent.com>
2155
2156         * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
2157
2158 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2159
2160         * getusershell.c (xmalloc, xrealloc): Remove functions.
2161         Include xalloc.h.
2162         Don't include <stdlib.h>.  Don't declare malloc, realloc.
2163
2164 2000-06-23  Bruno Haible  <haible@clisp.cons.org>
2165
2166         * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
2167
2168 2000-06-24  Jim Meyering  <meyering@lucent.com>
2169
2170         * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
2171
2172 2000-06-21  Jim Meyering  <meyering@lucent.com>
2173
2174         * getpass.c: New file, from Bruno Haible.  Required for BeOS.
2175
2176 2000-06-19  Paul Eggert  <eggert@twinsun.com>
2177
2178         * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
2179         (mbrtowc, mbstate_t): Define substitutes if
2180         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
2181         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
2182         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
2183
2184 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2185
2186         * xgetcwd.c (xgetcwd): If the required pathname length is smaller
2187         than 1024, return a memory chunk of least possible size, instead
2188         of size PATH_MAX + 2. In the loop, increment the size proportionally.
2189         Use free/xmalloc instead of xrealloc to avoid copying for very long
2190         paths.
2191
2192 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2193
2194         * canon-host.c (canon_host): Use malloc and memcpy to copy an
2195         address, not strdup.  Include <stdlib.h> and don't declare free().
2196
2197 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2198
2199         * path-concat.c (path_concat): Don't access dir[-1] if dir is
2200         the empty string.
2201
2202 2000-06-21  Jim Meyering  <meyering@lucent.com>
2203
2204         * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
2205         (noinst_HEADERS): Add getstr.h.
2206
2207         * getline.c (getstr): Move into a separate file.
2208         * getstr.c (getstr): New file, extracted from getline.c, with
2209         the following changes: new parameter, delim2; both delim[12]
2210         parameters have type `int', not `char'.  The latter would lose
2211         with 8-bit delimiters.
2212         * getstr.h: New file.
2213
2214 2000-06-19  Jim Meyering  <meyering@lucent.com>
2215
2216         * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
2217
2218 2000-06-18  Jim Meyering  <meyering@lucent.com>
2219
2220         * mkdir.c: Remove file, due mainly to copyright incompatibility.
2221         Besides, these days every porting target provides a mkdir function.
2222
2223         * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
2224         (this snippet comes from src/system.h).
2225
2226 2000-06-15  Paul Eggert  <eggert@twinsun.com>
2227
2228         * human.c (adjust_value): New function.
2229         (human_readable_inexact): Apply rounding style even when
2230         printing approximate values.
2231
2232 2000-06-14  Paul Eggert  <eggert@twinsun.com>
2233
2234         * human.c (human_readable_inexact): Allow an input block
2235         size that is not a multiple of the output block size, and vice versa.
2236         Reported by Piergiorgio Sartor.
2237
2238 2000-06-14  Paul Eggert  <eggert@twinsun.com>
2239
2240         * getdate.y (get_date): Apply relative times after time
2241         zone indicator, not before.  Reported by Todd A. Jacobs.
2242
2243 2000-06-13  Jim Meyering  <meyering@lucent.com>
2244
2245         * Makefile.am (all-local): Depend on lstat.c and stat.c.
2246
2247         * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
2248
2249 2000-06-12  Paul Eggert  <eggert@twinsun.com>
2250
2251         * xstat.in: Include <stdlib.h> in lstat, to declare "free".
2252
2253 2000-06-04  Paul Eggert  <eggert@twinsun.com>
2254
2255         * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
2256
2257 2000-06-04  Jim Meyering  <meyering@lucent.com>
2258
2259         * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
2260         SunOS4.1.4 for which gid_t is an unsigned type.
2261
2262 2000-06-03  Jim Meyering  <meyering@lucent.com>
2263
2264         * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
2265
2266 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
2267
2268         * Makefile.am (install-exec-local): On systems with glibc-2.1 or
2269         newer, don't install charset.alias.
2270         * config.charset: Change the Linux/glibc rules so they become empty
2271         on glibc-2.1 or newer.
2272
2273 2000-06-02  Jim Meyering  <meyering@lucent.com>
2274
2275         * mountlist.c: Back out last change.  Instead, do this...
2276         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
2277         member using the same `ignore'-testing code.
2278         * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
2279         fs_type strings.
2280         From Mark D. Roth.
2281
2282 2000-05-29  Jim Meyering  <meyering@lucent.com>
2283
2284         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
2285         with the `ignore' attribute.  Based on a patch from Mark D. Roth.
2286
2287 2000-05-22  Jim Meyering  <meyering@lucent.com>
2288
2289         * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
2290
2291 2000-05-18  Jim Meyering  <meyering@lucent.com>
2292
2293         * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
2294         back, too, since it may have been modified by allocate_entry.
2295         (hash_delete): Rewrite to use neither the assignment operator
2296         nor the comma operator in an if-expression.
2297
2298 2000-05-15  Paul Eggert  <eggert@twinsun.com>
2299
2300         * closeout.c:
2301         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
2302         Remove; no longer needed.
2303         "quotearg.h": Add include.
2304         (file_name): Do not bother to explicitly initialize to NULL; it's less
2305         efficient on some hosts.
2306         (close_stdout_status): Remove test as to whether stdout was already
2307         closed; it breaks for the case "echo x | sort >&-".
2308         Quote file name colons.
2309         Do not assume that _("write error") lacks format strings.
2310
2311 2000-05-15  Jim Meyering  <meyering@lucent.com>
2312
2313         * version-etc.c (version_etc_copyright): Update the copyright string
2314         used in all --version output.
2315
2316 2000-05-14  Jim Meyering  <meyering@lucent.com>
2317
2318         * closeout.c (close_stdout_set_file_name): New function.
2319         (close_stdout_status): Use new file-scoped global.
2320         Return right away if fstat says the stdout file descriptor is invalid.
2321         * closeout.h (close_stdout_set_file_name): Declare.
2322
2323 2000-05-10  Jim Meyering  <meyering@lucent.com>
2324
2325         * closeout.c [default_exit_status]: New file-scoped variable.
2326         (close_stdout_set_status): New function.
2327         * closeout.h (close_stdout_set_status): Declare.
2328
2329 2000-05-08  Jim Meyering  <meyering@lucent.com>
2330
2331         * long-options.c: Don't include closeout.h.
2332         (parse_long_options): Don't call close_stdout for --version.
2333
2334 2000-05-06  Jim Meyering  <meyering@lucent.com>
2335
2336         * strnlen.c: Undefine __strnlen and strnlen.
2337         [!weak_alias]: Define __strnlen to strnlen.
2338
2339         * atexit.c: New file, from libiberty.
2340
2341 2000-05-06  Jim Meyering  <meyering@lucent.com>
2342
2343         * closeout.c (close_stdout_status): Also check for errors on the
2344         stderr stream.
2345
2346 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
2347
2348         * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
2349         instead of xmalloc, xrealloc, path_concat.
2350         (locale_charset): Treat empty environment variables as absent.
2351         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
2352
2353 2000-05-04  Jim Meyering  <meyering@lucent.com>
2354
2355         * getopt.c: Update from glibc.
2356         * obstack.c: Likewise.
2357         * obstack.h: Likewise.
2358         * regex.c: Likewise.  NB: K&R compiler support is dropped for this file
2359
2360         * regex.h: Likewise.
2361         * strndup.c: Likewise.
2362         * strnlen.c: New file, from glibc.
2363
2364 2000-05-01  Jim Meyering  <meyering@lucent.com>
2365
2366         * full-write.c (full_write): Remove `FIXME' part of comment.
2367
2368 2000-04-29  Jim Meyering  <meyering@lucent.com>
2369
2370         * path-concat.c: Declare strdup only if it's not defined.
2371         * canon-host.c: Likewise.
2372
2373 2000-04-28  Jim Meyering  <meyering@lucent.com>
2374
2375         * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
2376         redefinition warning on some systems (HPUX).  Otherwise, regex.h is
2377         included first, then limits.h is included by locale.h by libintl.h.
2378         From John David Anglin.
2379
2380 2000-04-25  Jim Meyering  <meyering@lucent.com>
2381
2382         * makepath.c (S_IRWXUGO): Define.
2383         (make_path): Always perform explicit chmod if MODE specifies any
2384         of the `special' permission bits.  Prompted by a bug report against
2385         install from Mate Wierdl and Joost van Baal.
2386
2387 2000-04-18  Jim Meyering  <meyering@lucent.com>
2388
2389         * README: New file.
2390
2391         * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
2392         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
2393
2394 2000-04-17  Jim Meyering  <meyering@lucent.com>
2395
2396         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
2397         the definition of it to rpl_strftime also defined-away the system's
2398         declaration.
2399
2400 2000-04-15  Jim Meyering  <meyering@lucent.com>
2401
2402         Use `C' to denote so-called `contiguous' files, the same way
2403         that tar does.
2404         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
2405         (ftypelet): Use S_ISCTG.
2406         From Michael Deutschmann.
2407
2408 2000-04-14  Jim Meyering  <meyering@lucent.com>
2409
2410         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
2411
2412 2000-04-08  Jim Meyering  <meyering@lucent.com>
2413
2414         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
2415         names don't conflict.  Reported by Eli Zaretskii.
2416
2417 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
2418
2419         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
2420         bug.  Deal with the different error behavior of Irix iconv.
2421
2422 2000-04-07  Jim Meyering  <meyering@lucent.com>
2423
2424         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
2425         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
2426
2427 2000-04-05  Jim Meyering  <meyering@lucent.com>
2428
2429         Portability tweaks required for ultrix4.3.
2430         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
2431         * readutmp.c: Include sys/types.h before sys/stat.h.
2432         * canon-host.c: Declare strdup.
2433         * path-concat.c: Likewise.
2434         From John David Anglin.
2435
2436 2000-04-04  Jim Meyering  <meyering@lucent.com>
2437
2438         Be more DOS 8.3-friendly.
2439         * ref-add.sin: Renamed from ref-add.sed.in.
2440         * ref-del.sin: Renamed from ref-del.sed.in.
2441         * Makefile.am: Reflect renaming.
2442         Reported by Eli Zaretskii.
2443
2444         Use a temporary file name that won't clash with `charset.alias'
2445         in the DOS 8.3 name space.
2446         * Makefile.am (charset_tmp): Define.
2447         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
2448         (uninstall-local): Likewise.
2449         Reported by Eli Zaretskii.
2450
2451 2000-03-29  Paul Eggert  <eggert@twinsun.com>
2452
2453         * time/strftime.c (my_strftime): Make sure we call the system
2454         strftime, not ourselves, when invoking the underlying strftime.
2455
2456 2000-03-24  Jim Meyering  <meyering@lucent.com>
2457
2458         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
2459         (charset_alias): Define.
2460         (install-exec-local): Factor out common code.
2461         (uninstall-local): Split lines longer than 80.
2462         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
2463         (SUFFIXES): Define.
2464         (.sed.in.sed): New rule.  Don't redirect directly to $@.
2465         (CLEANFILES): Add ref-add.sed and ref-del.sed.
2466
2467 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
2468
2469         * config.charset: Output a line containing "Packages using this file".
2470         * ref-add.sed.in, ref-del.sed.in: New files.
2471         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
2472         ref-del.sed): New rules.
2473
2474 2000-03-17  Jim Meyering  <meyering@lucent.com>
2475
2476         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
2477         Otherwise, include <strings.h>
2478
2479 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
2480
2481         * unicodeio.c (utf8_wctomb): New function.
2482         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
2483         format instead of in UCS-4 with platform dependent endianness.
2484
2485 2000-03-07  Paul Eggert  <eggert@twinsun.com>
2486
2487         * savedir.c (savedir): Work even if directory size is
2488         negative; this can happen with some screwy NFS configurations.
2489
2490 2000-03-06  Jim Meyering  <meyering@lucent.com>
2491
2492         * localcharset.c (get_charset_aliases): Don't try to free file_name
2493         if it's NULL (because we ran out of memory).  From Bruno Haible.
2494
2495 2000-03-05  Jim Meyering  <meyering@lucent.com>
2496
2497         * localcharset.c ("path-concat.h"): Include.
2498         (get_charset_aliases): Use path_concat instead of ANSI string
2499         concatenation.
2500
2501         * unicodeio.h (PARAMS): Define.
2502         Use it to guard prototype.
2503
2504 2000-03-04  Jim Meyering  <meyering@lucent.com>
2505
2506         * Makefile.am (install-exec-local): Create $(libdir) before installing
2507         into it.
2508         (uninstall-local): Uncomment this rule so `make distcheck' works
2509         once again.
2510
2511         * unicodeio.c (<errno.h>): Include it.
2512         (errno): Declare if not defined.
2513
2514         * localcharset.c: Add Bruno's comment justifying use of volatile.
2515
2516         * config.charset: New version, incorporating remarks from a linux
2517         i18n mailing list.  From Bruno Haible.
2518
2519 2000-03-02  Jim Meyering  <meyering@lucent.com>
2520
2521         * Makefile.am (EXTRA_DIST): Add config.charset.
2522
2523 2000-03-01  Jim Meyering  <meyering@lucent.com>
2524
2525         * localcharset.c: Guard some #includes with `#if HAVE_...'.
2526         * unicodeio.c: Likewise.
2527
2528 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
2529
2530         * config.charset: New file.
2531         * localcharset.c: New file.
2532         * unicodeio.h, unicodeio.c: New files.
2533         * Makefile.am (DEFS): Add -DLIBDIR=...
2534         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
2535         (noinst_HEADERS): Add unicodeio.h.
2536         (all-local, install-exec-local, charset.alias): New targets.
2537
2538 2000-02-28  Paul Eggert  <eggert@twinsun.com>
2539
2540         * quotearg.c (ALERT_CHAR): New macro.
2541         (quotearg_buffer_restyled): Use it.
2542
2543 2000-02-27  Jim Meyering  <meyering@lucent.com>
2544
2545         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
2546         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
2547
2548         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
2549         not `#if STDC_HEADERS'.
2550         Declare malloc if needed.
2551
2552         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
2553         now that autoconf always defines the HAVE_DECL_ symbols.
2554         * human.c: Likewise.
2555         * same.c: Likewise.
2556         * strtoumax.c: Likewise.
2557
2558         * backupfile.c: Arrange for cpp to fail if the configure-time
2559         declaration check was not run.
2560         * hash.c: Likewise.
2561         * human.c: Likewise.
2562         * same.c: Likewise.
2563         * strtoumax.c: Likewise.
2564
2565         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
2566         then first look up the entire `.'-containing string as a login name.
2567
2568 2000-02-18  Paul Eggert  <eggert@twinsun.com>
2569
2570         * getdate.y: Handle two-digit years with leading zeros correctly.
2571         (textint): New typedef.
2572         (parser_control): Member year changed from int to textint.
2573         All uses changed.
2574         (YYSTYPE): Removed; replaced by %union with int and textint members.
2575         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
2576         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
2577         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
2578         (tSNUMBER, tUNUMBER): Now of type <textintval>.
2579         (date, number, to_year): Use width of number in digits, not its value,
2580         to determine whether it's a 2-digit year, or a 2-digit time.
2581         (yylex): Store number of digits of numeric tokens.
2582         Reported by John Kendall.
2583
2584         (parser_control): Changed from struct parser_control to typedef (for
2585         consistency).  All uses changed.
2586
2587         (tID): Removed; not used.
2588         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
2589
2590 2000-02-14  Paul Eggert  <eggert@twinsun.com>
2591
2592         * getpagesize.h (getpagesize): Port to VMS for Alpha;
2593         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
2594
2595 2000-02-12  Jim Meyering  <meyering@lucent.com>
2596
2597         * userspec.c (ISDIGIT): Define it.
2598         (isdigit): Remove definition.
2599         (is_number): Use ISDIGIT, not isdigit.
2600         <libintl.h>: Include.
2601         (_ and N_): Define.
2602         (parse_user_spec): Mark translatable strings.
2603
2604 2000-02-10  Jim Meyering  <meyering@lucent.com>
2605
2606         With these changes, nanosleep.[ch] are finally enough like the other
2607         lib/* replacement files to compile on a few more losing systems.
2608
2609         * nanosleep.h: Don't include config.h.
2610         Remove prototype from declaration of nanosleep.
2611         (PARAMS): Remove now-unneeded definition.
2612         * nanosleep.c: #undef nanosleep.
2613         (rpl_nanosleep): Rename from nanosleep.
2614
2615 2000-02-03  Jim Meyering  <meyering@lucent.com>
2616
2617         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
2618         rather than with `#if HAVE_UTMPNAME'.
2619
2620 2000-02-01  Jim Meyering  <meyering@lucent.com>
2621
2622         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
2623
2624 2000-01-31  Jim Meyering  <meyering@lucent.com>
2625
2626         * nanosleep.h (nanosleep): Guard declaration with
2627         `#if ! HAVE_DECL_NANOSLEEP'.
2628         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
2629         the declaration in that vendor's sys/timers.h.
2630         Reported by Christian Krackowizer.
2631
2632         * quotearg.c (ISASCII): Add #undef and move definition to follow
2633         inclusion of wctype.h to work around solaris2.6 namespace pollution.
2634         (ISPRINT): Likewise.
2635         Reported by Tom Tromey.
2636
2637 2000-01-30  Jim Meyering  <meyering@lucent.com>
2638
2639         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
2640         uses of ->ut_name.  The latter doesn't work with new Linux header files
2641         where only utmpx.ut_user is declared.
2642
2643         * readutmp.h (UT_USER): Define.
2644
2645 2000-01-23  Jim Meyering  <meyering@lucent.com>
2646
2647         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
2648         obstack.c.
2649
2650 2000-01-22  Jim Meyering  <meyering@lucent.com>
2651
2652         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
2653         [! HAVE_DECL_STRTOULL]: Declare strtoull.
2654         Required for some AIX systems.  Reported by Christian Krackowizer.
2655         [TESTING] (main): New function.
2656
2657         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
2658         * dirname.c (dir_name): Support for DOS-style file names with drive
2659         letters.
2660
2661         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
2662
2663         * strverscmp.c (ISDIGIT): Define.
2664         (strverscmp): Use ISDIGIT, not isdigit.
2665
2666 2000-01-17  Paul Eggert  <eggert@twinsun.com>
2667
2668         * nanosleep.c (nanosleep):
2669         Don't use SA_INTERRUPT to decide whether to call sigaction, as
2670         POSIX.1 doesn't require SA_INTERRUPT and some systems
2671         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
2672         it's been part of POSIX.1 since day 1 (in 1988).
2673
2674 2000-01-17  Jim Meyering  <meyering@lucent.com>
2675
2676         * interlock: Remove unused file.  Reported by François Pinard.
2677
2678 2000-01-16  Paul Eggert  <eggert@twinsun.com>
2679
2680         * quotearg.c (quotearg_buffer_restyled): Do not quote
2681         alert, backslash, formfeed, and vertical tab unnecessarily in
2682         shell quoting style.
2683
2684 Local Variables:
2685 version-control: never
2686 End: