musl: drop renameat2() wrapper

musl provides renameat2() since v1.2.6:
https://git.musl-libc.org/cgit/musl/commit/?id=05ce67fea99ca09cd4b6625cff7aec9cc222dd5a
This commit is contained in:
Yu Watanabe
2026-05-21 05:06:35 +09:00
parent f405aa53c3
commit bc40f6cc32
2 changed files with 0 additions and 18 deletions
-9
View File
@@ -3,15 +3,6 @@
#include_next <stdio.h>
#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. */
-9
View File
@@ -4,15 +4,6 @@
#include <stdio.h>
#include <stdio_ext.h>
#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)) { \