summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2014-03-06 09:12:57 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-11 04:34:06 +0100
commit9d9951a460a90ef0e1e0384742cefdcf85193f8c (patch)
tree4f9287f3923fa0f0ddf02f0bf8a69bafb831ea13 /src/shared/util.h
parent756461fd560b4603703661913cfde6685cc96c38 (diff)
util: add files_same() helper function
files_same() returns 1, if the files are the same 0, if the files have different inode/dev numbers errno, for any stat error
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index c2bc9771b9..11d28665b6 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -451,6 +451,8 @@ static inline const char *ansi_highlight_off(void) {
return on_tty() ? ANSI_HIGHLIGHT_OFF : "";
}
+int files_same(const char *filea, const char *fileb);
+
int running_in_chroot(void);
char *ellipsize(const char *s, size_t length, unsigned percent);