summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include/common.h
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-24 17:06:48 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-24 17:18:47 +0000
commite9c5da1a25641e09244d3f52d7bb90983e0e5550 (patch)
tree2561158c2ff784bbde8e0373ef396e1eea3715c5 /util/libreboot-utils/include/common.h
parent56ab5a18fee5257c3c875f2b8597b8379c7b959c (diff)
util/nvmutil: use new fs_open functions for gbe
this unifies nvmutil's file handling with the handling used by mkhtemp. a special function has been written for this. this allows greater flexibility since we can more easily check the integrity of a file at inode/dev level; this complements nvmutil's existing content-based verification. (this also fixes nvmutil, so that gbe files can be changed again. mkhtemp broke it while i was writing it, but now everything works again) Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
-rw-r--r--util/libreboot-utils/include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index a632b993..e73f46e7 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -497,6 +497,8 @@ const char *getnvmprogname(void);
/* libc hardening
*/
+int new_tmpfile_at(int dirfd, struct stat *st_dir,
+ int *fd, char **name);
int new_tmpfile(int *fd, char **path);
int new_tmpdir(int *fd, char **path);
int new_tmp_common(int *fd, char **path, int type);