From 56d1f81949fde78615cd9fec048259d261f99c40 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 8 Oct 2012 11:02:55 +0530 Subject: glusterfs: add gf_mkostemp api and use it instead of mkostemp of libc Change-Id: Icc12b99e2233d22037e2c4bb2b6966e45668b7dd BUG: 764890 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/4091 Reviewed-by: Anand Avati Tested-by: Anand Avati --- libglusterfs/src/compat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/compat.h') diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index af890485..3d0cee1a 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) -- cgit