diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2013-05-14 11:59:20 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-05-14 09:02:11 -0700 |
commit | c59166c5a3306231864fe7d99e383259a9385233 (patch) | |
tree | 5c26c7ad26ed5be372eb0aceb190e90432fc9bad /libglusterfs/src/compat.h | |
parent | 3490689f29342116cf78cc57bc90ad1979d9e1bb (diff) |
glusterfs: add gf_mkostemp api and use it instead of mkostemp of libc
Change-Id: Ia3d2f37ae1f7a7d87a75c82bedb4963729d45b6c
BUG: 764890
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/5004
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/compat.h')
-rw-r--r-- | libglusterfs/src/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index af890485d..3d0cee1a9 100644 --- a/libglusterfs/src/compat.h +++ b/libglusterfs/src/compat.h @@ -344,6 +344,9 @@ char *dirname_r(char *path); #define dirname(path) dirname_r(path) #endif /* THREAD_UNSAFE_DIRNAME */ +int gf_mkostemp (char *tmpl, int suffixlen, int flags); +#define mkostemp(tmpl, flags) gf_mkostemp(tmpl, 0, flags); + #ifdef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC /* Linux, Solaris, Cygwin */ #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) |