summaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-12 23:53:13 +0000
committerRoy Marples <roy@marples.name>2009-01-12 23:53:13 +0000
commit3d37005a3d0c9a90578fcb249b823f08a6c58f49 (patch)
tree005e0d07af432e9fa6723bfbcc315654929e6758 /src/librc/rc.h.in
parent2243c013900f1d3d850acf066dde2e83f41b3ed9 (diff)
downloadopenrc-3d37005a3d0c9a90578fcb249b823f08a6c58f49.tar.gz
openrc-3d37005a3d0c9a90578fcb249b823f08a6c58f49.tar.bz2
openrc-3d37005a3d0c9a90578fcb249b823f08a6c58f49.tar.xz
We now warn about clock skews
rc-update -u will force a regen of the dep tree rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r--src/librc/rc.h.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 6f7c64e..1012274 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2008 Roy Marples <roy@marples.name>
+ * Copyright 2007-2009 Roy Marples <roy@marples.name>
* All rights reserved
* Redistribution and use in source and binary forms, with or without
@@ -304,25 +304,31 @@ typedef void *RC_DEPTREE;
/*! Check to see if source is newer than target.
* If target is a directory then we traverse it and it's children.
+ * time_t returns the time of the newest file found if newer.
* @return true if source is newer than target, otherwise false */
-bool rc_newer_than(const char *, const char *);
+bool rc_newer_than(const char *, const char *, char *, time_t *);
-/*! Check to see if source is newer than target.
+/*! Check to see if source is older than target.
* If target is a directory then we traverse it and it's children.
-* @return true if source is newer than target, otherwise false */
-bool rc_older_than(const char *, const char *);
+ * time_t returns the time of the oldest file found if older.
+* @return true if source is older than target, otherwise false */
+bool rc_older_than(const char *, const char *, char *, time_t *);
/*! Update the cached dependency tree if it's older than any init script,
* its configuration file or an external configuration file the init script
* has specified.
+ * time_t returns the time of the newest file that the dependency tree
+ * will be checked against.
* @return true if successful, otherwise false */
bool rc_deptree_update(void);
/*! Check if the cached dependency tree is older than any init script,
* its configuration file or an external configuration file the init script
* has specified.
+ * @param buffer of PATH_MAX to store newest file
+ * @param mtime of newest file
* @return true if it needs updating, otherwise false */
-bool rc_deptree_update_needed(void);
+bool rc_deptree_update_needed(char *, time_t *);
/*! Load the cached dependency tree and return a pointer to it.
* This pointer should be freed with rc_deptree_free when done.