aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-14 20:20:06 -0500
committerRob Landley <rob@landley.net>2007-01-14 20:20:06 -0500
commit055cfcbe5b0534c700b30216f54336b7581f7be4 (patch)
tree8c62c700db81dc09b8d9f7c79c504651dff3acd2 /lib/lib.h
parent3388f4c4de628702ba77e2fec941c809877ad576 (diff)
downloadtoybox-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index cdfc02e4..24d6f82a 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -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);