summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-31 23:43:37 +0000
committerRoy Marples <roy@marples.name>2008-07-31 23:43:37 +0000
commit37a596da190297812137b740303a33d14633cacc (patch)
treef82569cf2c053ec146cfdfe9d58b2a64812b792f /common.h
parent6b63804804c9a13e453e2c7de9bfd81bf68c3295 (diff)
downloaddhcpcd-37a596da190297812137b740303a33d14633cacc.tar.xz
clock_monotonic now is 0 or 1 depending on if the clock is monotonic. Also, systems that have headers for monotonic but do not claim support now warn about this. You can build dhcpcd to force a monotonic clock.
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 755ae6af..25226636 100644
--- a/common.h
+++ b/common.h
@@ -75,7 +75,8 @@ int close_fds(void);
int set_cloexec(int);
int set_nonblock(int);
ssize_t get_line(char **, size_t *, FILE *);
-int clock_monotonic(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);