1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-07 10:16:46 +02:00
Commit Graph

11371 Commits

Author SHA1 Message Date
Jim Meyering c8ef0d4bbe (libfetish_a_SOURCES): Add full-write.h. 2001-08-31 07:34:13 +00:00
Jim Meyering aee944ad9b Correct credits, as cccp.c no longer
exists and anyway it was so heavily changed from the old cccp
code as to be unrecognizable.  Include full-write.h.
(full_write) Return size_t, with short writes meaning failure.
All callers changed.  This fixes a bug with large buffers
on 64-bit hosts.
2001-08-31 07:29:05 +00:00
Jim Meyering 63f570d12b (full_write): Remove decl; not needed. 2001-08-31 07:22:06 +00:00
Jim Meyering 109d7b4386 (full_write): Remove decl; not needed. 2001-08-31 07:21:23 +00:00
Jim Meyering 34db7168de Include full-write.h.
(full_write): Remove decl; not needed.
(open_fd): Don't assume read and write size fits in int.
2001-08-31 07:19:24 +00:00
Jim Meyering b62d5afd3f Include full-write.h.
(full_write): Remove decl; not needed.
(copy_reg): Don't assume read and write size fits in int.
2001-08-31 07:15:14 +00:00
Jim Meyering ab0bba9958 *** empty log message *** 2001-08-31 07:05:14 +00:00
Jim Meyering e4676fbb20 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
(jm_PREREQ_EXCLUDE): New macro.
2001-08-31 07:05:08 +00:00
Jim Meyering fd90d8dbf8 * src/remove.c: Move true/false definitions and include from here...
* src/system.h: ...to here.
2001-08-31 06:50:44 +00:00
Jim Meyering edbe4553a8 copyright 2001-08-31 06:46:52 +00:00
Jim Meyering 0e18bbb519 (count_entry, main): Reflect changes to the exclude functions. 2001-08-31 06:46:39 +00:00
Jim Meyering 473f37a6c9 *** empty log message *** 2001-08-31 06:35:13 +00:00
Jim Meyering 90525ea340 (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): New macros.
(free_exclude): New decl.
(add_exclude, add_exclude_file): Now takes int options arg.
(excluded_filename): No longer requires options arg, as the options
are determined by add_exclude.  Now returns bool, not int.
2001-08-31 06:34:06 +00:00
Jim Meyering 083a5e420b Merge 'exclude' changes from tar 1.13.22.
This fixes one or two unlikely storage allocation overflow bugs,
but doesn't change user-visible behavior otherwise.

(bool): Declare, perhaps by including stdbool.h.
(<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
(<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
Include	if available.
(<xalloc.h>): Include
(SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
(verify): New macro.  Use it to verify that EXCLUDE macros do not
collide with FNM macros.
(struct patopts): New struct.
(struct exclude): Use it, as exclude patterns now come with options.
(new_exclude): Support above changes.
(new_exclude, add_exclude_file):
Initial size must now be a power of two to simplify overflow checking.
(free_exclude, fnmatch_no_wildcards): New function.
(excluded_filename): No longer requires options arg, as the options
are determined by add_exclude.  Now returns bool, not int.
(excluded_filename, add_exclude):
Add support for the fancy new exclusion options.
(add_exclude, add_exclude_file): Now takes int options arg.
Check for arithmetic overflow when computing sizes.
(add_exclude_file): xrealloc might modify errno, so don't
realloc until after errno might be used.
2001-08-31 06:33:42 +00:00
Jim Meyering 0f165cf273 *** empty log message *** 2001-08-30 19:19:10 +00:00
Jim Meyering 3b57acb098 (alloca): Arg is of type size_t, not unsigned. 2001-08-30 19:19:02 +00:00
Jim Meyering 8a1213f73f *** empty log message *** 2001-08-28 08:33:05 +00:00
Jim Meyering 9ac5676264 (main): Diagnose an invalid width option. 2001-08-28 08:32:51 +00:00
Jim Meyering da05e6a690 *** empty log message *** 2001-08-28 08:18:29 +00:00
Jim Meyering 5dcf4f2419 (main): Correct the diagnostic for invalid argument to -w. 2001-08-28 08:18:19 +00:00
Jim Meyering aa69564e94 #define STRTOUXMAX_UNSIGNED 2001-08-27 21:25:15 +00:00
Jim Meyering 73dc52f0b9 whoops. Don't define anything here. imax is the default 2001-08-27 21:24:59 +00:00
Jim Meyering ae6c9955fb *** empty log message *** 2001-08-27 08:56:01 +00:00
Jim Meyering dd494192a1 Undo last change. Instead, simply remove `N_('. 2001-08-27 08:55:54 +00:00
Jim Meyering fa9fc61ee6 . 2001-08-27 08:55:04 +00:00
Jim Meyering 7faf69c42d remove xstrtoxmax.c 2001-08-27 08:54:19 +00:00
Jim Meyering 61e5152b36 *** empty log message *** 2001-08-27 08:52:46 +00:00
Jim Meyering 301cc00d3b (libfetish_a_SOURCES): Add strtoxmax.c 2001-08-27 08:52:40 +00:00
Jim Meyering 1bd2ed97b2 Actually remove the definition of N_. 2001-08-27 08:50:19 +00:00
Jim Meyering 3a9d91bb57 (N_): Remove definition.
Revert most of last change.
Instead, simply don't mark the `Copyright...' string for translation.
Based on advice from Paul Eggert.
2001-08-27 08:50:04 +00:00
Jim Meyering a26e5e37b8 *** empty log message *** 2001-08-27 08:46:16 +00:00
Jim Meyering a2e87ae6d1 Tweak comment. 2001-08-27 08:46:08 +00:00
Jim Meyering 482dc4ee3c include strtoxmax.c 2001-08-27 08:44:27 +00:00
Jim Meyering e698bc0929 renamed to strtoxmax.c 2001-08-27 08:43:54 +00:00
Jim Meyering d64218ea47 renamed from strtouxmax.c 2001-08-27 08:31:30 +00:00
Jim Meyering afb733429b (copyright-check): Update to reflect fact that
the copyright year is now defined separately.
2001-08-26 18:27:00 +00:00
Jim Meyering 9e24c8b0b8 *** empty log message *** 2001-08-26 18:26:49 +00:00
Jim Meyering f86ac0a31d (version_etc_copyright_fmt): Replace literal year
of copyright with `%s' so translators don't get an untranslated message in 2002.
(COPYRIGHT_YEAR): Define.
(version_etc): Use fprintf rather than fputs.
2001-08-26 18:26:01 +00:00
Jim Meyering 989a7519d5 . 2001-08-26 10:54:59 +00:00
Jim Meyering f811e82ad5 . 2001-08-26 10:46:20 +00:00
Jim Meyering 52928277c2 . 2001-08-26 10:43:53 +00:00
Jim Meyering a4b249905e . 2001-08-26 10:43:00 +00:00
Jim Meyering de8c144109 Add xstrtoimax. 2001-08-26 10:42:50 +00:00
Jim Meyering 86c5732f05 *** empty log message *** 2001-08-26 10:41:57 +00:00
Jim Meyering 4a7159dc6c (libfetish_a_SOURCES): Add xstrtoimax.c. 2001-08-26 10:41:52 +00:00
Jim Meyering 7fe7b5d7e2 . 2001-08-26 07:33:20 +00:00
Jim Meyering 84f5f8528f *** empty log message *** 2001-08-26 07:28:44 +00:00
Jim Meyering a28d74d2d2 New file, from GNU libc. 2001-08-26 07:28:06 +00:00
Jim Meyering 2f25926b52 *** empty log message *** 2001-08-26 07:20:57 +00:00
Jim Meyering 4b0c5ec1e9 Require jm_AC_PREREQ_XSTRTOIMAX. 2001-08-26 07:20:50 +00:00