summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-07 18:14:51 +0000
committerRoy Marples <roy@marples.name>2008-01-07 18:14:51 +0000
commitb5d0d901da7cd53ea7f2b3a21c4ef6cbb4ce69c0 (patch)
tree47d7768dae056651578ba693e4c8ddfafbaaac78 /common.h
parent52a76582a60d360f74124028ea1f42ea446c1535 (diff)
downloaddhcpcd-b5d0d901da7cd53ea7f2b3a21c4ef6cbb4ce69c0.tar.xz
Stop using static inflexable buffers when cleaning metas and reading files.
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 727eb178..a4a0a1ae 100644
--- a/common.h
+++ b/common.h
@@ -30,6 +30,7 @@
/* string.h pulls in features.h so the below define checks work */
#include <sys/time.h>
+#include <stdio.h>
#include <string.h>
/* Only GLIBC doesn't support strlcpy */
@@ -44,9 +45,11 @@ void srandomdev (void);
#endif
void close_fds (void);
+char *getline (FILE *fp);
int get_time (struct timeval *tp);
long uptime (void);
void writepid (int fd, pid_t pid);
+void *xrealloc (void *ptr, size_t size);
void *xmalloc (size_t size);
char *xstrdup (const char *str);