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