Unify_isIUnlinkable(): changed return-type
[util-vserver.git] / util-vserver / lib_internal / unify.h
index 8732b30..346a058 100644 (file)
@@ -25,7 +25,7 @@ struct stat;
 
 bool
 Unify_unify(char const *src, struct stat const *src_stat,
-           char const *dst) NONNULL((1,2,3));
+           char const *dst, bool ignore_zero) NONNULL((1,2,3));
 
 bool
 Unify_copy(char const *src, struct stat const *src_stat,
@@ -38,6 +38,11 @@ bool
 Unify_setTime(char const *dst, struct stat const *stat) NONNULL((1,2));
 
 
+typedef enum { unifyUNSUPPORTED, unifyUINLINKABLE, unifyBUSY } UnifyStatus;
+
+UnifyStatus
+Unify_isIUnlinkable(char const *filename) NONNULL((1));
+
 #define        Unify_isUnified(LHS, RHS)               \
   ((bool)((LHS)->st_dev ==(RHS)->st_dev  &&    \
          (LHS)->st_ino ==(RHS)->st_ino))