rename.c\stdio\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/stdio/rename.c
blob: 04c90c01343a4b84beb5cf56b348e5d5041905ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <fcntl.h>
#include "syscall.h"
int rename(const char *old, const char *new)
{
#ifdef SYS_rename
	return syscall(SYS_rename, old, new);
#else
	return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 11:30:57 +0000

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