diff options
author | Rob Landley <rob@landley.net> | 2007-01-14 20:20:06 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-01-14 20:20:06 -0500 |
commit | 055cfcbe5b0534c700b30216f54336b7581f7be4 (patch) | |
tree | 8c62c700db81dc09b8d9f7c79c504651dff3acd2 /lib/lib.h | |
parent | 3388f4c4de628702ba77e2fec941c809877ad576 (diff) | |
download | toybox-055cfcbe5b0534c700b30216f54336b7581f7be4.tar.gz |
Add start of mke2fs/gene2fs, and some other stuff I've been working on.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,6 +30,7 @@ void error_msg(char *msg, ...); void perror_msg(char *msg, ...); void error_exit(char *msg, ...); void perror_exit(char *msg, ...); +void usage_exit(void); void strlcpy(char *dest, char *src, size_t size); void *xmalloc(size_t size); void *xzalloc(size_t size); @@ -46,7 +47,8 @@ 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, void *buf, size_t count); +size_t xread(int fd, void *buf, size_t count); +void xreadall(int fd, void *buf, size_t count); void xwrite(int fd, void *buf, size_t count); char *xgetcwd(void); char *xabspath(char *path); |