[BusyBox-cvs] busybox/include libbb.h,1.114,1.115
Erik Andersen
andersen at busybox.net
Thu Oct 9 08:35:44 UTC 2003
Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv8450/include
Modified Files:
libbb.h
Log Message:
We did not have a safe_write, which is the analog to safe_read. Convert
full_write to use safe_write internally, which is needed to guarantee proper
behavior, i.e. when writing to a pipe.
Index: libbb.h
===================================================================
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- libbb.h 1 Oct 2003 03:06:16 -0000 1.114
+++ libbb.h 9 Oct 2003 08:35:41 -0000 1.115
@@ -109,6 +109,7 @@
extern int remove_file(const char *path, int flags);
extern int copy_file(const char *source, const char *dest, int flags);
extern ssize_t safe_read(int fd, void *buf, size_t count);
+extern ssize_t safe_write(int fd, void *buf, size_t count);
extern ssize_t bb_full_write(int fd, const void *buf, size_t len);
extern ssize_t bb_full_read(int fd, void *buf, size_t len);
extern int recursive_action(const char *fileName, int recurse,
More information about the busybox-cvs
mailing list