From cc7b0a438199a08276f1381d14d5caf0530084c2 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 22 Mar 2026 20:24:54 +0000 Subject: WIP cleanup: split mkhtemp Signed-off-by: Leah Rowe --- util/nvmutil/include/common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util/nvmutil/include/common.h') diff --git a/util/nvmutil/include/common.h b/util/nvmutil/include/common.h index 930150df..b47e5f4b 100644 --- a/util/nvmutil/include/common.h +++ b/util/nvmutil/include/common.h @@ -480,6 +480,13 @@ const char *getnvmprogname(void); char *new_tmpfile(int *fd); char *new_tmplate(int *fd); +static int mkhtemp_try_create(int dirfd, + struct stat *st_dir_initial, + char *fname_copy, + char *p, + size_t xc, + int *fd, + struct stat *st); int mkhtemp(int *fd, struct stat *st, char *template, int dirfd, const char *fname, struct stat *st_dir_initial); -- cgit v1.2.1