From: Yu Watanabe Date: Wed, 20 May 2026 16:08:24 +0000 (+0900) Subject: musl: drop renameat2() wrapper X-Git-Tag: v261-rc1~60^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc40f6cc328803cd512569dc2d9a1ceea7c84396;p=thirdparty%2Fsystemd.git musl: drop renameat2() wrapper musl provides renameat2() since v1.2.6: https://git.musl-libc.org/cgit/musl/commit/?id=05ce67fea99ca09cd4b6625cff7aec9cc222dd5a --- diff --git a/src/include/musl/stdio.h b/src/include/musl/stdio.h index 54ad9ed1104..d6a3b54027a 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 f4e8d9e4c18..cfe35b09f99 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)) { \