From ed1e0a0e8a2ef07e495f08cf50cc784360389587 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 31 Aug 2001 07:34:41 +0000 Subject: [PATCH] *** empty log message *** --- lib/ChangeLog | 18 +++++++++++++++++- lib/full-write.h | 9 +++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 lib/full-write.h diff --git a/lib/ChangeLog b/lib/ChangeLog index 91c67769f..13930b85f 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,9 +1,23 @@ 2001-08-30 Paul Eggert + * full-write.h: New file. + * Makefile.am (libfetish_a_SOURCES): Add full-write.h. + * full-write.c: 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. + * utime.c: Include full-write.h. + +2001-08-30 Paul Eggert + 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. +2001-08-30 Paul Eggert + * exclude.c (bool): Declare, perhaps by including stdbool.h. (): Include only if HAVE_SYS_TYPES_H. (, , , , ): @@ -34,7 +48,9 @@ (excluded_filename): No longer requires options arg, as the options are determined by add_exclude. Now returns bool, not int. - * lib/alloca.c (alloca): Arg is of type size_t, not unsigned. +2001-08-30 Paul Eggert + + * alloca.c (alloca): Arg is of type size_t, not unsigned. 2001-08-27 Jim Meyering diff --git a/lib/full-write.h b/lib/full-write.h new file mode 100644 index 000000000..f23bccb5a --- /dev/null +++ b/lib/full-write.h @@ -0,0 +1,9 @@ +#ifndef PARAMS +# if defined PROTOTYPES || (defined __STDC__ && __STDC__) +# define PARAMS(Args) Args +# else +# define PARAMS(Args) () +# endif +#endif + +size_t full_write PARAMS ((int, const char *, size_t)); -- 2.11.0