diff options
author | Rob Landley <rob@landley.net> | 2007-01-08 02:49:39 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-01-08 02:49:39 -0500 |
commit | f3e452a35ab5fd1808be7a50652b54dc3222ba6e (patch) | |
tree | 6e5e62925a73f3c66285c2adf510d0b50be34294 /lib/lib.h | |
parent | 1322beb384ea43a15c17f8229e7db070949dd331 (diff) | |
download | toybox-f3e452a35ab5fd1808be7a50652b54dc3222ba6e.tar.gz |
Add rewrite(), writeall(),and xwrite() to match the read versions.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |