aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-04-29 19:55:21 -0400
committerRob Landley <rob@landley.net>2007-04-29 19:55:21 -0400
commit0c93f6c7ab7aab56b39793a2317a9bff16b8ae04 (patch)
tree275dcaf29f05b6f15cf87327746d6e3c3d07e5ac /lib/lib.h
parentc92fde0bc75ade9d06c0d843c4693b9e2e338938 (diff)
downloadtoybox-0c93f6c7ab7aab56b39793a2317a9bff16b8ae04.tar.gz
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
compiler so much.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index e2d055bc..c95a743e 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -40,7 +40,7 @@ void usage_exit(void);
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 *xrealloc(void *ptr, size_t size);
void *xstrndup(char *s, size_t n);
void *xstrdup(char *s);
char *xmsprintf(char *format, ...);
@@ -67,6 +67,7 @@ char *utoa(unsigned n);
char *itoa(int n);
long atolx(char *c);
off_t fdlength(int fd);
+char *xreadlink(char *name);
struct dirtree *read_dirtree_node(char *path);
struct dirtree *read_dirtree(char *path, struct dirtree *parent);