diff --git a/src/include/musl/stdio.h b/src/include/musl/stdio.h index 54ad9ed110..d6a3b54027 100644 --- a/src/include/musl/stdio.h +++ b/src/include/musl/stdio.h @@ -3,15 +3,6 @@ #include_next -#ifndef RENAME_NOREPLACE -# define RENAME_NOREPLACE (1 << 0) -# define RENAME_EXCHANGE (1 << 1) -# define RENAME_WHITEOUT (1 << 2) -#endif - -int renameat2_shim(int __oldfd, const char *__old, int __newfd, const char *__new, unsigned __flags); -#define renameat2 renameat2_shim - /* When a stream is opened read-only under glibc, fputs() and friends fail with EBADF. However, they * succeed under musl. We rely on the glibc behavior in the code base. The following _check_writable() * functions first check if the passed stream is writable, and refuse to write with EBADF if not. */ diff --git a/src/libc/musl/stdio.c b/src/libc/musl/stdio.c index f4e8d9e4c1..cfe35b09f9 100644 --- a/src/libc/musl/stdio.c +++ b/src/libc/musl/stdio.c @@ -4,15 +4,6 @@ #include #include -#include "../libc-shim.h" - -DEFINE_SYSCALL_SHIM(renameat2, int, - int, __oldfd, - const char *, __old, - int, __newfd, - const char *, __new, - unsigned, __flags) - #define DEFINE_PUT(func) \ int func##_check_writable(int c, FILE *stream) { \ if (!__fwritable(stream)) { \