mailing list of musl libc
 help / color / mirror / code / Atom feed
48ee8d537cbf4e7aabc81a63bd24bff4d5c6284c blob 350 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#define _GNU_SOURCE
#include <stdio.h>
#include "syscall.h"

int renameat2(int oldfd, const char *old, int newfd, const char *new, unsigned flags)
{
	int r = __syscall(SYS_renameat2, oldfd, old, newfd, new, flags);
#ifdef SYS_renameat
	if (r==-ENOSYS && !flags) r = __syscall(SYS_renameat, oldfd, old, newfd, new);
#endif
	return __syscall_ret(r);
}
debug log:

solving 48ee8d53 ...
found 48ee8d53 in https://inbox.vuxu.org/musl/20240423234355.2414567-1-Tony.Ambardar@gmail.com/

applying [1/1] https://inbox.vuxu.org/musl/20240423234355.2414567-1-Tony.Ambardar@gmail.com/
diff --git a/src/linux/renameat2.c b/src/linux/renameat2.c
new file mode 100644
index 00000000..48ee8d53

Checking patch src/linux/renameat2.c...
Applied patch src/linux/renameat2.c cleanly.

index at:
100644 48ee8d537cbf4e7aabc81a63bd24bff4d5c6284c	src/linux/renameat2.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).