util/nvmutil: use real fsync

that function i added was a load of crap. it
worked, but it was a bit dumb, and crap.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-18 04:39:50 +00:00
parent 1197d43923
commit 232b069492
2 changed files with 6 additions and 80 deletions
+5 -5
View File
@@ -9,6 +9,11 @@
check_cmd(cmd_helper_cat);
*/
/*
* system prototypes
*/
int fchmod(int fd, mode_t mode);
#ifndef NVMUTIL_H
#define NVMUTIL_H
@@ -465,11 +470,6 @@ void *x_v_memcpy(void *dst,
const void *src, unsigned long n);
int x_i_memcmp(const void *a,
const void *b, unsigned long n);
int x_i_fchmod(int fd, mode_t mode);
int x_try_fdpath(const char *prefix,
int fd, mode_t mode);
unsigned long x_conv_fd(char *buf,
unsigned long n);
int x_i_fsync(int fd);