view 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 source

/* 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);