* [PATCH] libxc: drop double un?lock_pages definition to fix static linking
@ 2008-05-22 11:54 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-05-22 11:54 UTC (permalink / raw)
To: Xen-devel
libxc: drop double un?lock_pages definition to fix static linking
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 9c41853c71a1 tools/libxc/xg_private.c
--- a/tools/libxc/xg_private.c Fri May 09 16:14:27 2008 +0100
+++ b/tools/libxc/xg_private.c Thu May 22 11:25:44 2008 +0100
@@ -11,22 +11,6 @@
#include <malloc.h>
#include "xg_private.h"
-
-int lock_pages(void *addr, size_t len)
-{
- int e = 0;
-#ifndef __sun__
- e = mlock(addr, len);
-#endif
- return (e);
-}
-
-void unlock_pages(void *addr, size_t len)
-{
-#ifndef __sun__
- safe_munlock(addr, len);
-#endif
-}
char *xc_read_image(const char *filename, unsigned long *size)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-22 11:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22 11:54 [PATCH] libxc: drop double un?lock_pages definition to fix static linking Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.