X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib_internal%2Funify.h;h=60691eb0cd596d0d2b054f1a04be26f06abc6ada;hb=5b39edfee423f5f3cbe8fa223dcfdc9e8d66e286;hp=8732b30ada64706e923100f1d69e1460a46df59d;hpb=4585bfa86226befff42e1f4c2b810d1bcfff4f99;p=util-vserver.git diff --git a/util-vserver/lib_internal/unify.h b/util-vserver/lib_internal/unify.h index 8732b30..60691eb 100644 --- a/util-vserver/lib_internal/unify.h +++ b/util-vserver/lib_internal/unify.h @@ -19,13 +19,12 @@ #ifndef H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H #define H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H +#include #include -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 +37,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))