diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:04:11 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:04:11 -0800 |
commit | 4c5a5fb53bccceff331bae70f748bf9b4609fe0a (patch) | |
tree | d6ae69d0d3f4a4d760a3254ec326bca4a8afacfe /common.h | |
parent | e95877ecfa1170d77b1ec1f66752725cdda01b64 (diff) | |
download | android_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.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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); |