summaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h
index 68ebc80..ff32df9 100644
--- a/src/includes/rc-misc.h
+++ b/src/includes/rc-misc.h
@@ -111,6 +111,12 @@ static inline bool exists (const char *pathname)
return (stat (pathname, &buf) == 0);
}
+static inline bool existss (const char *pathname)
+{
+ struct stat buf;
+
+ return (stat (pathname, &buf) == 0 && buf.st_size != 0);
+}
char *rc_conf_value (const char *var);
bool rc_conf_yesno (const char *var);
char **env_filter (void);