diff options
author | Eric Andersen | 2003-10-09 08:35:42 +0000 |
---|---|---|
committer | Eric Andersen | 2003-10-09 08:35:42 +0000 |
commit | dae099b2f96ba46bfdd6b598b06dc88713b2d0e8 (patch) | |
tree | 0490983c989cc1fac5a5e5f34eb076d17c594e75 /include | |
parent | 638da75f4b82e3156d30705412b545d172870fc0 (diff) | |
download | busybox-dae099b2f96ba46bfdd6b598b06dc88713b2d0e8.zip busybox-dae099b2f96ba46bfdd6b598b06dc88713b2d0e8.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index eb6841d..7587a40 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -109,6 +109,7 @@ extern int is_directory(const char *name, int followLinks, struct stat *statBuf) 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, |