summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-31 07:34:41 +0000
committerJim Meyering <jim@meyering.net>2001-08-31 07:34:41 +0000
commited1e0a0e8a2ef07e495f08cf50cc784360389587 (patch)
treec8f4424ea001d64e41fab5adc8004393516d574c
parent594030c462b3d8e17750b8a3da6469baedafb8bc (diff)
downloadgnulib-ed1e0a0e8a2ef07e495f08cf50cc784360389587.tar.gz
*** empty log message ***
-rw-r--r--lib/ChangeLog18
-rw-r--r--lib/full-write.h9
2 files changed, 26 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 91c67769f7..13930b85fc 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,9 +1,23 @@
2001-08-30 Paul Eggert <eggert@twinsun.com>
+ * 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 <eggert@twinsun.com>
+
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 <eggert@twinsun.com>
+
* exclude.c (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>):
@@ -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 <eggert@twinsun.com>
+
+ * alloca.c (alloca): Arg is of type size_t, not unsigned.
2001-08-27 Jim Meyering <meyering@lucent.com>
diff --git a/lib/full-write.h b/lib/full-write.h
new file mode 100644
index 0000000000..f23bccb5a5
--- /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));