aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:04:11 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:04:11 -0800
commit4c5a5fb53bccceff331bae70f748bf9b4609fe0a (patch)
treed6ae69d0d3f4a4d760a3254ec326bca4a8afacfe /common.h
parente95877ecfa1170d77b1ec1f66752725cdda01b64 (diff)
downloadandroid_external_dhcpcd-4c5a5fb53bccceff331bae70f748bf9b4609fe0a.tar.gz
android_external_dhcpcd-4c5a5fb53bccceff331bae70f748bf9b4609fe0a.tar.bz2
android_external_dhcpcd-4c5a5fb53bccceff331bae70f748bf9b4609fe0a.zip
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'common.h')
-rw-r--r--common.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/common.h b/common.h
index 94a1cc0..2522663 100644
--- a/common.h
+++ b/common.h
@@ -63,19 +63,20 @@ size_t strlcpy(char *, const char *, size_t);
#endif
#ifndef HAVE_CLOSEFROM
-#define HAVE_CLOSEFROM 1
+# if defined(__NetBSD__) || defined(__OpenBSD__)
+# define HAVE_CLOSEFROM 1
+# endif
#endif
-#if defined(__linux__) || defined(__FreeBSD__)
-# undef HAVE_CLOSEFROM
+#ifndef HAVE_CLOSEFROM
int closefrom(int);
#endif
int close_fds(void);
int set_cloexec(int);
int set_nonblock(int);
-int fd_hasdata(int);
ssize_t get_line(char **, size_t *, FILE *);
-int get_time(struct timeval *);
+extern int clock_monotonic;
+int get_monotonic(struct timeval *);
time_t uptime(void);
int writepid(int, pid_t);
void *xrealloc(void *, size_t);