renameat2.c\linux\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/linux/renameat2.c
blob: b806038890d2613fe5736d84291c31f4d12fcd04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#define _GNU_SOURCE
#include <stdio.h>
#include "syscall.h"
int renameat2(int oldfd, const char *old, int newfd, const char *new, unsigned flags)
{
#ifdef SYS_renameat
	if (!flags) return syscall(SYS_renameat, oldfd, old, newfd, new);
#endif
	return syscall(SYS_renameat2, oldfd, old, newfd, new, flags);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月11日 16:08:22 +0000

AltStyle によって変換されたページ (->オリジナル) /