From 846cb235853c553e7196c131dd0dd6a688116de3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 19 Mar 2026 07:32:46 +0000 Subject: 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 --- util/nvmutil/include/common.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'util/nvmutil/include') 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 #include -/* 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 */ -- cgit v1.2.1