aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
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);
+