diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:32:46 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-19 07:37:53 +0000 |
| commit | 846cb235853c553e7196c131dd0dd6a688116de3 (patch) | |
| tree | aebff297bc5e739130ffdae354e136f295fa557e /util/nvmutil/include/common.h | |
| parent | f1fda8b43eb03be951846c6df9d0be81be84808e (diff) | |
nvmutil: remove memcmp/memcpy/strrchr/rename
i had this idea in my head of later porting this
to k&r c for fun. but screw it.
compiling on everything since 1989 is enough
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/include/common.h')
| -rw-r--r-- | util/nvmutil/include/common.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/util/nvmutil/include/common.h b/util/nvmutil/include/common.h index 881d602f..961fbb1d 100644 --- a/util/nvmutil/include/common.h +++ b/util/nvmutil/include/common.h @@ -11,14 +11,6 @@ #include <sys/stat.h> #include <limits.h> -/* keep SYS_RENAME 1 to - * use libc rename() - * recommended - */ -#ifndef SYS_RENAME -#define SYS_RENAME 1 -#endif - #define items(x) (sizeof((x)) / sizeof((x)[0])) /* system prototypes @@ -434,14 +426,8 @@ const char *getnvmprogname(void); char *new_tmpfile(int *fd, int local, const char *path); int x_i_mkstemp(char *template); -char *x_c_strrchr(const char *s, int c); -int x_i_rename(const char *src, const char *dst); char *x_c_tmpdir(void); int x_i_close(int fd); -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_fsync(int fd); /* asserts */ |
