diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-11 20:19:40 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-11 21:04:13 +1100 |
commit | ae95d611b6e0754f130707f23fa6ae0997c40b66 (patch) | |
tree | dc15a920a3e0a97e3dd13f1e0e8c5c99926d90a8 /lib/util/util.h | |
parent | d6fb64c51244529388b1f79ba8220ff608e1e4de (diff) | |
download | samba-ae95d611b6e0754f130707f23fa6ae0997c40b66.tar.gz samba-ae95d611b6e0754f130707f23fa6ae0997c40b66.tar.xz samba-ae95d611b6e0754f130707f23fa6ae0997c40b66.zip |
util: added file_compare() utility function
file_compare() returns true if two files are the same. It is meant for
small files.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util/util.h')
-rw-r--r-- | lib/util/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h index 729190af633..da9776163ad 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -601,6 +601,11 @@ _PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) PRINTF_ATTRIBUTE( _PUBLIC_ int fdprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3); _PUBLIC_ bool large_file_support(const char *path); +/* + compare two files, return true if the two files have the same content + */ +bool file_compare(const char *path1, const char *path2); + /* The following definitions come from lib/util/util.c */ |