about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 6bede2e43..cd7685e6e 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3829,3 +3829,20 @@ mailstat(char *path, struct stat *st)
        return 0;
 }
 #endif
+
+/**/
+mod_export int
+zwcstat(char *filename, struct stat *buf, FuncDump dumps)
+{
+    FuncDump f;
+    
+    if (stat(filename, buf)) {
+#ifdef HAVE_FSTAT
+	for (f = dumps; f; f = f->next) {
+	    if (!fstat(f->fd, buf)) return 0;
+	}
+#endif
+	return 1;
+    } else return 0;
+    
+}