aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-08 02:49:39 -0500
committerRob Landley <rob@landley.net>2007-01-08 02:49:39 -0500
commitf3e452a35ab5fd1808be7a50652b54dc3222ba6e (patch)
tree6e5e62925a73f3c66285c2adf510d0b50be34294 /lib/lib.h
parent1322beb384ea43a15c17f8229e7db070949dd331 (diff)
downloadtoybox-f3e452a35ab5fd1808be7a50652b54dc3222ba6e.tar.gz
Add rewrite(), writeall(),and xwrite() to match the read versions.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
index cb140275..0fe2db6a 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -42,8 +42,11 @@ int xcreate(char *path, int flags, int mode);
int xopen(char *path, int flags);
FILE *xfopen(char *path, char *mode);
ssize_t reread(int fd, void *buf, size_t count);
+ssize_t rewrite(int fd, void *buf, size_t count);
ssize_t readall(int fd, void *buf, size_t count);
+ssize_t writeall(int fd, void *buf, size_t count);
void xread(int fd, char *buf, size_t count);
+void xwrite(int fd, char *buf, size_t count);
char *xgetcwd(void);
char *xabspath(char *path);
struct string_list *find_in_path(char *path, char *filename);