Mercurial > hg > toybox
diff lib/lib.h @ 2:67b517913e56
Infrastructure, first drop of toy shell, and a bit of work on df.
author | landley@driftwood |
---|---|
date | Thu, 05 Oct 2006 16:18:03 -0400 |
parents | |
children | 266a462ed18c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/lib.h Thu Oct 05 16:18:03 2006 -0400 @@ -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); +