summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:25:14 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:25:14 -0600
commitd7b5e291ffb166239c44682af2363080c72888aa (patch)
tree226ff4668e6e5fd9309d792181bb54e256032338 /util
parenta8c40fa2d667e585382080db36ac44e216b37a1c (diff)
downloadhqemu-d7b5e291ffb166239c44682af2363080c72888aa.zip
hqemu-d7b5e291ffb166239c44682af2363080c72888aa.tar.gz
Initial overlay of HQEMU 2.5.2 changes onto underlying 2.5.0 QEMU GIT tree2.5_overlay
Diffstat (limited to 'util')
-rw-r--r--util/memfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/memfd.c b/util/memfd.c
index 7c40691..587ef5a 100644
--- a/util/memfd.c
+++ b/util/memfd.c
@@ -40,7 +40,7 @@
#include <sys/syscall.h>
#include <asm/unistd.h>
-static int memfd_create(const char *name, unsigned int flags)
+static int qemu_memfd_create(const char *name, unsigned int flags)
{
#ifdef __NR_memfd_create
return syscall(__NR_memfd_create, name, flags);
@@ -74,12 +74,12 @@ void *qemu_memfd_alloc(const char *name, size_t size, unsigned int seals,
#ifdef CONFIG_LINUX
if (seals) {
- mfd = memfd_create(name, MFD_ALLOW_SEALING | MFD_CLOEXEC);
+ mfd = qemu_memfd_create(name, MFD_ALLOW_SEALING | MFD_CLOEXEC);
}
if (mfd == -1) {
/* some systems have memfd without sealing */
- mfd = memfd_create(name, MFD_CLOEXEC);
+ mfd = qemu_memfd_create(name, MFD_CLOEXEC);
seals = 0;
}
#endif
OpenPOWER on IntegriCloud