Mercurial > hg > toybox
view lib/lib.h @ 3:266a462ed18c
Next drop of toysh, plus more infratructure.
author | landley@driftwood |
---|---|
date | Wed, 18 Oct 2006 18:38:16 -0400 |
parents | 67b517913e56 |
children | 732b055e17f7 |
line wrap: on
line source
/* vi: set ts=4 :*/ // functions.c void error_exit(char *msg, ...); void strlcpy(char *dest, char *src, size_t size); void *xmalloc(size_t size); void *xzalloc(size_t size); void xrealloc(void **ptr, 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); // llist.c void llist_free(void *list, void (*freeit)(void *data)); // getmountlist.c struct mtab_list { struct mtab_list *next; char *dir; char *device; char type[0]; }; struct mtab_list *getmountlist(int die);