renameat.c\unistd\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/unistd/renameat.c
blob: c3b40a258b2822214ce05a0cf1788d9af6298067 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include "syscall.h"
int renameat(int oldfd, const char *old, int newfd, const char *new)
{
#ifdef SYS_renameat
	return syscall(SYS_renameat, oldfd, old, newfd, new);
#else
	return syscall(SYS_renameat2, oldfd, old, newfd, new, 0);
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 15:43:47 +0000

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