diff options
author | Simo Sorce <idra@samba.org> | 2011-04-21 09:45:27 -0400 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-08-10 18:14:02 +0200 |
commit | 05455b459a93f620143d90fd34a28e4485fd606a (patch) | |
tree | 5176d1a248ccc76fdff12cd5e8e0968b426b30ee /lib/util/util.h | |
parent | 185cd4c79492a7de5988f9407d764cdb3a0e2e10 (diff) | |
download | samba-05455b459a93f620143d90fd34a28e4485fd606a.tar.gz samba-05455b459a93f620143d90fd34a28e4485fd606a.tar.bz2 samba-05455b459a93f620143d90fd34a28e4485fd606a.zip |
lib-util: Make useful function a common utility.
Signed-off-by: Andreas Schneider <asn@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 b9734b07c8..7f0de26781 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -623,6 +623,11 @@ bool file_compare(const char *path1, const char *path2); _PUBLIC_ const char *tmpdir(void); /** + * Creates and immediately unlinks a file. Returns open file descriptor. + **/ +_PUBLIC_ int create_unlink_tmp(const char *dir); + +/** Check if a file exists - call vfs_file_exist for samba files. **/ _PUBLIC_ bool file_exist(const char *fname); |