Mercurial > hg > toybox
diff 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 diff
--- a/lib/lib.h Thu Oct 05 16:18:03 2006 -0400 +++ b/lib/lib.h Wed Oct 18 18:38:16 2006 -0400 @@ -1,13 +1,20 @@ /* 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;