+++ /dev/null
-From 79aae4f28f12ea23590fabc26e1e60514a7303c7 Mon Sep 17 00:00:00 2001
-From: Drew DeVault <sir@cmpwn.com>
-Date: Thu, 21 Mar 2019 11:30:28 -0400
-Subject: [PATCH 01/15] unistd/renameat: use renameat2 when appropriate
-
----
- src/unistd/renameat.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/unistd/renameat.c b/src/unistd/renameat.c
-index 1257482..c3b40a2 100644
---- a/src/unistd/renameat.c
-+++ b/src/unistd/renameat.c
-@@ -3,5 +3,9 @@
-
- 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
- }
---
-2.1.4
-
+++ /dev/null
-From 4a8a79f6f3a52f10abe5cbe6204bc9b4180522a7 Mon Sep 17 00:00:00 2001
-From: Drew DeVault <sir@cmpwn.com>
-Date: Thu, 21 Mar 2019 11:30:11 -0400
-Subject: [PATCH 02/15] stdio/rename: use renameat2 when appropriate
-
----
- src/stdio/rename.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/src/stdio/rename.c b/src/stdio/rename.c
-index 04c90c0..f540adb 100644
---- a/src/stdio/rename.c
-+++ b/src/stdio/rename.c
-@@ -4,9 +4,11 @@
-
- int rename(const char *old, const char *new)
- {
--#ifdef SYS_rename
-+#if defined(SYS_rename)
- return syscall(SYS_rename, old, new);
--#else
-+#elif defined(SYS_renameat)
- return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
-+#else
-+ return syscall(SYS_renameat2, AT_FDCWD, old, AT_FDCWD, new, 0);
- #endif
- }
---
-2.1.4
-
+++ /dev/null
-From 5ffd928d81315911773b770fd5083b1cdf0e3184 Mon Sep 17 00:00:00 2001
-From: Drew DeVault <sir@cmpwn.com>
-Date: Thu, 21 Mar 2019 11:29:59 -0400
-Subject: [PATCH 03/15] mman/mlock: use mlock2 when appropriate
-
----
- src/mman/mlock.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/mman/mlock.c b/src/mman/mlock.c
-index e683a44..71af582 100644
---- a/src/mman/mlock.c
-+++ b/src/mman/mlock.c
-@@ -3,5 +3,9 @@
-
- int mlock(const void *addr, size_t len)
- {
-+#ifdef SYS_mlock
- return syscall(SYS_mlock, addr, len);
-+#else
-+ return syscall(SYS_mlock2, addr, len, 0);
-+#endif
- }
---
-2.1.4
-