comparison 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
comparison
equal deleted inserted replaced
1:59d58fab67c6 2:67b517913e56
1 /* vi: set ts=4 :*/
2
3 void error_exit(char *msg, ...);
4 void strlcpy(char *dest, char *src, size_t size);
5 void *xmalloc(size_t size);
6 void *xstrndup(char *s, size_t n);
7 void *xexec(char **argv);
8 int xopen(char *path, int flags, int mode);
9 FILE *xfopen(char *path, char *mode);
10
11 struct mtab_list {
12 struct mtab_list *next;
13 char *dir;
14 char *device;
15 char type[0];
16 };
17
18 struct mtab_list *getmountlist(int die);
19