From a88a177f991527e545e75588013afd16c647e656 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 3 Jul 2008 13:11:47 +0000 Subject: Add older_than function to complement newer_than function. Also make the userland instance reversed to be compatable with current baselayout, which truely does suck. --- src/librc/rc.h.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/librc/rc.h.in') diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index 7c94c3eb..30fbfd0e 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -306,6 +306,11 @@ typedef void *RC_DEPTREE; * @return true if source is newer than target, otherwise false */ bool rc_newer_than(const char *, const char *); +/*! Check to see if source is newer 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 *); + /*! 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. -- cgit v1.2.3