summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-09 21:58:05 +0000
committerRoy Marples <roy@marples.name>2008-02-09 21:58:05 +0000
commitca1e79c0f854186ce84eb0526e9a29bbb0d0c084 (patch)
treef997ba7bd44c5c4d140669804086a102b38383b8 /common.h
parent2136d44495f4bd145ab6df48bc951abb70bfe564 (diff)
downloaddhcpcd-ca1e79c0f854186ce84eb0526e9a29bbb0d0c084.tar.xz
We should only have one bit of code to mark sockets close_on_exec.
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.h b/common.h
index 4b26318b..0a59a75a 100644
--- a/common.h
+++ b/common.h
@@ -52,7 +52,8 @@ size_t strlcpy (char *dst, const char *src, size_t size);
void srandomdev (void);
#endif
-void close_fds (void);
+int close_fds (void);
+int close_on_exec (int fd);
char *get_line (FILE *fp);
int get_time (struct timeval *tp);
time_t uptime (void);