Paul Eggert [Fri, 21 Sep 2001 22:26:45 +0000 (22:26 +0000)]
(EILSEQ, ENOTSUP): New macros, if not defined by errno.h.
(<error.h>): Do not include.
(unicode_to_mb): Return int, not void. New arg for failure callback.
Invoke the failure callback instead of invoking 'error'.
(print_unicode_success): Renamed from fprintf_callback. Now extern.
Return -1 on failure, 0 on success.
(print_unicode_failure): New function.
(print_unicode_char): Return int. Adjust to changes to unicode_to_mb.
Do not report error: instead, print an approximation.
Paul Eggert [Fri, 21 Sep 2001 22:19:09 +0000 (22:19 +0000)]
Rewrite from scratch, as print-copyr.h.
Paul Eggert [Fri, 21 Sep 2001 22:19:09 +0000 (22:19 +0000)]
Rewrite from scratch, as print-copyr.c.
Paul Eggert [Fri, 21 Sep 2001 22:19:09 +0000 (22:19 +0000)]
(extracting files): Mention --to-stdout.
(Option Summary, Dealing with Old Files): New option --overwrite-dir.
(Overwrite Old Files): Likewise.
Paul Eggert [Fri, 21 Sep 2001 21:25:50 +0000 (21:25 +0000)]
Add copyright notice.
Paul Eggert [Fri, 21 Sep 2001 21:22:15 +0000 (21:22 +0000)]
Add copyright notice, autoconf 2.52 patch.
Paul Eggert [Thu, 20 Sep 2001 18:01:32 +0000 (18:01 +0000)]
From Jim Meyering
(jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of strtoumax
Paul Eggert [Thu, 20 Sep 2001 18:01:32 +0000 (18:01 +0000)]
From Jim Meyering
(jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of strtoimax.
Paul Eggert [Thu, 20 Sep 2001 18:01:31 +0000 (18:01 +0000)]
From Jim Meyering.
(strtoimax): Guard declaration with
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
have their own, conflicting declaration of strtoimax in sys/inttypes.h.
(strtoumax): Likewise, for completeness (it wasn't necessary).
Paul Eggert [Thu, 20 Sep 2001 17:08:35 +0000 (17:08 +0000)]
Initial revision
Paul Eggert [Mon, 17 Sep 2001 21:44:53 +0000 (21:44 +0000)]
Initial revision
Paul Eggert [Sat, 15 Sep 2001 06:11:37 +0000 (06:11 +0000)]
Include stddef.h, for size_t.
Include langinfo.h if needed.
Use locale_charset only if USE_INCLUDED_LIBINTL;
if not, use nl_langinfo (CODESET) if available.
Paul Eggert [Sat, 15 Sep 2001 06:10:14 +0000 (06:10 +0000)]
Describe automake patch
Paul Eggert [Fri, 14 Sep 2001 02:05:00 +0000 (02:05 +0000)]
Fix bug: statement before decl.
Paul Eggert [Fri, 14 Sep 2001 01:51:21 +0000 (01:51 +0000)]
1.13.23
Paul Eggert [Fri, 14 Sep 2001 00:27:39 +0000 (00:27 +0000)]
Initial revision
Paul Eggert [Fri, 14 Sep 2001 00:27:39 +0000 (00:27 +0000)]
Include copysym.h.
(main): Use copyright_symbol to translate copyright notice,
instead of gettext.
Paul Eggert [Fri, 14 Sep 2001 00:27:39 +0000 (00:27 +0000)]
Include copysym.h.
(decode_options): Use copyright_symbol to translate copyright notice,
instead of gettext.
Paul Eggert [Fri, 14 Sep 2001 00:27:39 +0000 (00:27 +0000)]
(EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
Paul Eggert [Wed, 12 Sep 2001 06:46:23 +0000 (06:46 +0000)]
(struct delayed_set_stat): New member 'after_symlinks'.
(delay_set_stat): Initialize it to 0.
(set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
taking an extra stat ourselves. All callers changed.
(set_stat): Likewise.
(apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
If false, stop when encountering a struct whose 'after_symlinks' member is
true. Otherwise, go through all structures but check them more carefully.
All callers changed.
(extract_archive): When extracting a deferred symlink, if its parent
directory's status needs fixing, then mark the directory as needing
to be fixed after symlinks.
(extract_finish): Fix status of ordinary directories, then apply delayed
symlinks, then fix the status of directories that are ancestors
of delayed symlinks.
Paul Eggert [Wed, 12 Sep 2001 06:37:02 +0000 (06:37 +0000)]
Remove rexec declaration; it ran afoul of prototypes on Crays.
Paul Eggert [Thu, 6 Sep 2001 19:47:45 +0000 (19:47 +0000)]
(HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
to work around bug in IBM C compiler.
Paul Eggert [Mon, 3 Sep 2001 07:27:00 +0000 (07:27 +0000)]
Fix typo in quoted strings.
Paul Eggert [Mon, 3 Sep 2001 07:22:27 +0000 (07:22 +0000)]
Initial revision
Paul Eggert [Mon, 3 Sep 2001 04:17:04 +0000 (04:17 +0000)]
serial 21
Paul Eggert [Mon, 3 Sep 2001 04:17:04 +0000 (04:17 +0000)]
Fix typo in local var; from Jim Meyering.
Paul Eggert [Fri, 31 Aug 2001 11:36:54 +0000 (11:36 +0000)]
(xgetcwd): Reorganize to avoid some duplication.
Use an initial, malloc'd, buffer of length 128 rather than
a statically allocated one of length 1024.
Paul Eggert [Fri, 31 Aug 2001 01:36:06 +0000 (01:36 +0000)]
(strtoimax): New decl.
Paul Eggert [Wed, 29 Aug 2001 21:43:51 +0000 (21:43 +0000)]
version 1.13.22.
Paul Eggert [Wed, 29 Aug 2001 21:37:27 +0000 (21:37 +0000)]
(name_gather, addname): Use offsetof when computing sizes for
struct hack; this avoids wasted space in some cases.
(name_gather): Use strcpy, not memcpy.
for consistency with other code that does similar things.
(read_name_from_file, name_next, name_gather, add_hierarchy_to_namelist):
Avoid quadratic behavior when reallocating buffers.
Check for buffer size overflow.
(addname): Avoid unnecessary clearing of memory.
Paul Eggert [Wed, 29 Aug 2001 21:37:27 +0000 (21:37 +0000)]
(dump_file): Relativize link names before dumping.
This fixes a bug reported by Jose Pedro Oliveira.
(dump_file): Use offsetof when computing sizes for
struct hack; this avoids wasted space in some cases.
Paul Eggert [Wed, 29 Aug 2001 21:37:27 +0000 (21:37 +0000)]
(delay_set_stat): Fix off-by-one error in file
name size allocation that caused core dumps.
From Jan.Djarv@mbox200.swipnet.se.
(extract_archive): Use strcpy, not memcpy,
for consistency with other code that does similar things.
Paul Eggert [Wed, 29 Aug 2001 06:55:23 +0000 (06:55 +0000)]
(main): Use "Copyright %d" to simplify the translator's job in the future.
Advise translator about circle-C.
Paul Eggert [Wed, 29 Aug 2001 06:55:23 +0000 (06:55 +0000)]
(decode_options):
Use "Copyright %d" to simplify the translator's job in the future.
Advise translator about circle-C.
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
Initial revision
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
Fix copyright notice.
(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
(verify): New macro.
(INT): Renamed from uintmax_t.
(strtoumax, strtoull, strtoul): Remove.
(strtoimax, strtol, strtoll): New macros.
(strtoimax): Renamed from strtoumax. Interchange signed with unsigned.
Verify sizes at compile-time, not at run-time.
Prefer strtol to strtoll if both work.
(main): Remove.
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
(jm_AC_PREREQ_XSTRTOUMAX): Quote first arg of AC_DEFUN.
Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
is needed to parse the include file.
Simplify logic behind the args to AC_REPLACE.
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
(jm_AC_PREREQ_XSTRTOIMAX):
Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG since they
are needed to parse the include file.
Do not require jm_AC_HEADER_INTTYPES_H; it's obsolete.
Check for inttypes.h.
Simplify logic behind the args to AC_REPLACE.
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
(jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
(jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
Use AC_CHECK_TYPE instead of merely looking for the header.
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
(EXTRA_DIST): Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
longlong.m4, xstrtoimax.m4.
Paul Eggert [Wed, 29 Aug 2001 06:36:20 +0000 (06:36 +0000)]
("pathmax.h"): Do not include; no longer needed.
(<stdlib.h>, <unistd.h>): Include if available.
("xalloc.h"): Include.
(xmalloc, xstrdup, free): Remove decls; no longer needed.
(xgetcwd): Don't assume sizes fit in 'unsigned'.
Check for overflow when path size gets too large.
Simplify failure code.
Paul Eggert [Wed, 29 Aug 2001 06:31:47 +0000 (06:31 +0000)]
1.13.21
Paul Eggert [Wed, 29 Aug 2001 06:31:47 +0000 (06:31 +0000)]
(Free Software Needs Free Documentation): New appendix.
`fileds' -> `fields'
Paul Eggert [Wed, 29 Aug 2001 01:20:18 +0000 (01:20 +0000)]
Initial revision
Paul Eggert [Wed, 29 Aug 2001 00:43:14 +0000 (00:43 +0000)]
Fix typo in copying permissions.
Paul Eggert [Tue, 28 Aug 2001 22:42:11 +0000 (22:42 +0000)]
Quote first arg.
Use shorter comment.
Paul Eggert [Tue, 28 Aug 2001 22:28:02 +0000 (22:28 +0000)]
(xstrtoimax): New decl.
Paul Eggert [Tue, 28 Aug 2001 20:29:12 +0000 (20:29 +0000)]
Comment fix.
Paul Eggert [Tue, 28 Aug 2001 20:04:21 +0000 (20:04 +0000)]
Update comment.
Paul Eggert [Mon, 27 Aug 2001 18:17:25 +0000 (18:17 +0000)]
Describe changes a bit more carefully. Put copyright notice at end.
Paul Eggert [Mon, 27 Aug 2001 17:32:44 +0000 (17:32 +0000)]
(out): Remove directory/subdirectory/file1, as the new semantics for
--exclude exclude it.
Paul Eggert [Mon, 27 Aug 2001 14:41:56 +0000 (14:41 +0000)]
(ANCHORED_OPTION, IGNORE_CASE_OPTION, NO_ANCHORED_OPTION,
NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION, NO_WILDCARDS_MATCH_SLASH_OPTION,
WILDCARDS_OPTION, WILDCARDS_MATCH_SLASH_OPTION): New enum values.
(long_options, usage, decode_options): Add support for --anchored,
--ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
--no-wildcards-match-slash, --recursion, --wildcards,
--wildcards-match-slash.
(decode_options): Implement the new way of interpreting exclude patterns.
(usage): --newer-mtime takes a DATE operand. DATE may be a file name.
(OPTION_STRING, decode_options): Add -I, -y. Currently these options
just print error messages suggesting alternatives.
(add_filtered_exclude): Remove.
Paul Eggert [Mon, 27 Aug 2001 14:35:06 +0000 (14:35 +0000)]
(base_name): Remove decl, as system.h now declares it.
Paul Eggert [Mon, 27 Aug 2001 14:34:24 +0000 (14:34 +0000)]
(collect_and_sort_names): If ignore_failed_read_option, only warn about
stat errors.
(excluded_name): Now returns bool. Simplify, as the fancy features are
now all in excluded_filename.
Paul Eggert [Mon, 27 Aug 2001 14:32:51 +0000 (14:32 +0000)]
(from_header): Do not issue a diagnostic if TYPE is zero.
However, check for error even for '-' or '+' case.
(print_header): Try parsing uids and gids as unsigned integers first,
and as a uid_t or gid_t only if that fails. This adds support for
listing positive uids and gids that are greater than UID_MAX and
GID_MAX.
Paul Eggert [Mon, 27 Aug 2001 14:27:54 +0000 (14:27 +0000)]
(struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
Support hard links to symbolic links.
(struct delayed_symlink): Remove 'names' member, replacing it with
'sources' and 'target' member. All uses changed.
(struct string_list): New type.
(delayed_set_stat, extract_archive): Use offsetof when computing sizes
for struct hack; this avoids wasted space in some cases.
(extract_archive): Fix test for absolute pathnames and/or "..".
Use link_error to report errors for links.
Remove redundant trailing '/' at "really_dir", for all uses, not
just before invoking mkdir.
If overwriting old files, do not worry so much about existing directories.
Fix mode computation in the case where the directory exists.
(apply_delayed_symlinks): If we can't make a hard link to a symbolic
link, make a copy of the symbolic link.
Paul Eggert [Mon, 27 Aug 2001 14:14:17 +0000 (14:14 +0000)]
(new_volume): Stop if the script exits with an error.
Paul Eggert [Mon, 27 Aug 2001 14:13:22 +0000 (14:13 +0000)]
(jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as it
is now subsumed by autoconf. Add inttypes.h.
Paul Eggert [Mon, 27 Aug 2001 14:09:08 +0000 (14:09 +0000)]
Upgrade to autoconf 2.5x.
Paul Eggert [Mon, 27 Aug 2001 14:06:01 +0000 (14:06 +0000)]
(EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
Remove inttypes_h.m4, largefile.m4, mktime.m4.
Paul Eggert [Mon, 27 Aug 2001 14:05:15 +0000 (14:05 +0000)]
Add copyright notice.
(_DECLARE_XSTRTOL): Improve quality of diagnostic for
LONGINT_INVALID_SUFFIX_CHAR.
Paul Eggert [Mon, 27 Aug 2001 00:41:28 +0000 (00:41 +0000)]
Include <string.h>; required for C99 since we use strlen.
Paul Eggert [Mon, 27 Aug 2001 00:02:27 +0000 (00:02 +0000)]
Put leading '*' in direntry.
Accommodate new gfdl sectioning.
New option --recursion (the default) that is the inverse of --no-recursion.
New options --anchored, --ignore-case, --wildcards,
--wildcards-match-slash, and their negations (e.g., --no-anchored).
Along with --recursion and --no-recursion, these control how exclude
patterns are interpreted. The default interpretation of exclude
patterns is now --no-anchored --no-ignore-case --recursion
--wildcards --wildcards-match-slash.
Paul Eggert [Sun, 26 Aug 2001 23:56:07 +0000 (23:56 +0000)]
More security problems fixes; new options for --exclude.
Paul Eggert [Sun, 26 Aug 2001 23:54:59 +0000 (23:54 +0000)]
Add copyright notice. ignfail.sh fails on some NFS hosts.
Paul Eggert [Sun, 26 Aug 2001 07:20:05 +0000 (07:20 +0000)]
Initial revision
Paul Eggert [Sun, 26 Aug 2001 06:58:10 +0000 (06:58 +0000)]
Initial revision
Paul Eggert [Thu, 23 Aug 2001 17:25:23 +0000 (17:25 +0000)]
serial 20
Paul Eggert [Thu, 23 Aug 2001 17:25:22 +0000 (17:25 +0000)]
Latest textutils version
Paul Eggert [Thu, 23 Aug 2001 17:25:15 +0000 (17:25 +0000)]
serial 3
Paul Eggert [Thu, 23 Aug 2001 17:25:13 +0000 (17:25 +0000)]
Quote the first argument in each use of AC_DEFUN.
Paul Eggert [Thu, 23 Aug 2001 17:25:11 +0000 (17:25 +0000)]
Initial revision
Paul Eggert [Tue, 21 Aug 2001 02:56:57 +0000 (02:56 +0000)]
glibc version.
Paul Eggert [Sat, 18 Aug 2001 15:59:02 +0000 (15:59 +0000)]
Initial revision
Paul Eggert [Sun, 29 Jul 2001 03:52:57 +0000 (03:52 +0000)]
Start a new file, with Eric Roesinger's suggestion
Paul Eggert [Tue, 24 Jul 2001 12:59:36 +0000 (12:59 +0000)]
gettext 0.10.39
Paul Eggert [Sun, 8 Jul 2001 19:08:50 +0000 (19:08 +0000)]
(alloca): Arg is of type size_t, not unsigned.
Paul Eggert [Fri, 18 May 2001 15:06:54 +0000 (15:06 +0000)]
Initial revision
Paul Eggert [Sun, 8 Apr 2001 19:58:59 +0000 (19:58 +0000)]
(get_date): Initialize tm_isdst to -1 before invoking mktime the last time.
Paul Eggert [Tue, 3 Apr 2001 15:18:12 +0000 (15:18 +0000)]
Initial revision
Paul Eggert [Sat, 17 Feb 2001 00:59:27 +0000 (00:59 +0000)]
Fix wording one more time.
Paul Eggert [Sat, 17 Feb 2001 00:35:11 +0000 (00:35 +0000)]
Check for mbstate_t, too.
Paul Eggert [Sat, 17 Feb 2001 00:19:57 +0000 (00:19 +0000)]
Use shorter message.
Paul Eggert [Sat, 17 Feb 2001 00:19:02 +0000 (00:19 +0000)]
Initial revision
Paul Eggert [Fri, 16 Feb 2001 18:57:56 +0000 (18:57 +0000)]
(malloc): Undef before defining.
Paul Eggert [Fri, 26 Jan 2001 11:13:28 +0000 (11:13 +0000)]
Quote error message.
Paul Eggert [Sat, 13 Jan 2001 07:34:26 +0000 (07:34 +0000)]
-I has been withdrawn.
-N can now take file names.
Paul Eggert [Sat, 13 Jan 2001 06:11:36 +0000 (06:11 +0000)]
(savedir): Remove size arg.
Paul Eggert [Sat, 13 Jan 2001 06:04:48 +0000 (06:04 +0000)]
Add @setchapternewpage odd.
Remove -I as an alias for -T, for now.
Add @dircategory.
Update copyright. Remove "Published by".
Dates beginning with / or . are taken to be file names.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
system.h now does time.h stuff.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
Mention that only English is supported.
Show how to use "date" so that the output is acceptable to getdate.
Mention Z as an abbreviation for UTC.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
Initial revision
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
Include full-write.h.
(main): Update copyright.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
Include full-write.h.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
Include full-write.h, not safe-read.h.
full_write returns size_t, with short writes meaning failure.
All callers changed.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
(time): Do not declare.
(usage): Remove -I as an alias for -T>
(OPTION_STRING): Remove -I.
(decode_options): Dates that look like an absolute path name,
or that start with '.', are presumed to be file names whose
dates are taken.
Remove 'I' as an aliase for 'T'.
Update copyright.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
(savedir): Remove size arg; it wasn't portable. All callers changed.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
(relativize): New function.
> (relativize): New function, with much of old start_header's guts.
Handle filesystem prefixes.
(start_header): Use this new function.
(init_sparsearray): Don't bother to zero out the new array; it's not needed.
(deal_with_sparse): Fix array allocation bug.
(create_archive): Don't assume '/' is the only separator.
(dump_file): Likewise.
Don't worry about leading / in symlink targets.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
(name_next): Don't assume '/' is the only directory separator.
(namelist_match): Likewise.
(add_hierarchy_to_namelist): Remove dirsize arg.
Do not assume '/' is the only directory separator.
(new_name): Likewise.
Paul Eggert [Sat, 13 Jan 2001 05:59:29 +0000 (05:59 +0000)]
(_remdev): Look for / anywhere in Path.