diff options
Diffstat (limited to 'util/nvmutil/include/common.h')
| -rw-r--r-- | util/nvmutil/include/common.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/util/nvmutil/include/common.h b/util/nvmutil/include/common.h index b47e5f4b..e856664f 100644 --- a/util/nvmutil/include/common.h +++ b/util/nvmutil/include/common.h @@ -478,8 +478,7 @@ const char *getnvmprogname(void); /* libc hardening */ -char *new_tmpfile(int *fd); -char *new_tmplate(int *fd); +int new_tmpfile(int *fd, char **path); static int mkhtemp_try_create(int dirfd, struct stat *st_dir_initial, char *fname_copy, @@ -497,9 +496,13 @@ int same_dir(const char *a, const char *b); int tmpdir_policy(const char *path, int *allow_noworld_unsticky); char *env_tmpdir(int always_sticky); -int secure_file(int *fd, struct stat *st, - int bad_flags, int check_seek, - int do_lock, mode_t mode); +int secure_file(int *fd, + struct stat *st, + struct stat *expected, + int bad_flags, + int check_seek, + int do_lock, + mode_t mode); int close_on_eintr(int fd); int fsync_on_eintr(int fd); int fs_rename_at(int olddirfd, const char *old, |
