diff options
author | landley <landley@driftwood> | 2006-10-18 18:38:16 -0400 |
---|---|---|
committer | landley <landley@driftwood> | 2006-10-18 18:38:16 -0400 |
commit | cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4 (patch) | |
tree | a4e4932ecc15140ed48761ca8d32d5a0edc53bf7 /lib/lib.h | |
parent | 4f344e356d2c36c4b1df46917eaef25f82ca79a9 (diff) | |
download | toybox-cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4.tar.gz |
Next drop of toysh, plus more infratructure.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |