aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorlandley <landley@driftwood>2006-10-05 16:18:03 -0400
committerlandley <landley@driftwood>2006-10-05 16:18:03 -0400
commit4f344e356d2c36c4b1df46917eaef25f82ca79a9 (patch)
treecae824af861d5665b1acf1e4b07de86c256c2d0b /lib/lib.h
parentc56215062c961402515daeef8330ed75cd94af29 (diff)
downloadtoybox-4f344e356d2c36c4b1df46917eaef25f82ca79a9.tar.gz
Infrastructure, first drop of toy shell, and a bit of work on df.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
new file mode 100644
index 00000000..fa24c8d5
--- /dev/null
+++ b/lib/lib.h
@@ -0,0 +1,19 @@
+/* vi: set ts=4 :*/
+
+void error_exit(char *msg, ...);
+void strlcpy(char *dest, char *src, size_t size);
+void *xmalloc(size_t size);
+void *xstrndup(char *s, size_t n);
+void *xexec(char **argv);
+int xopen(char *path, int flags, int mode);
+FILE *xfopen(char *path, char *mode);
+
+struct mtab_list {
+ struct mtab_list *next;
+ char *dir;
+ char *device;
+ char type[0];
+};
+
+struct mtab_list *getmountlist(int die);
+