diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-22 21:08:18 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-22 21:54:04 +0000 |
| commit | ca92e7831abe1ef26b7680c66f8ba06ddc68f076 (patch) | |
| tree | b9db46d3e9451c0d337a066c8e61da9350551341 /util/nvmutil/include | |
| parent | cc7b0a438199a08276f1381d14d5caf0530084c2 (diff) | |
cleanup WIP
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/include')
| -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, |
