libxc: disable xc_ptrace on x86 Linux
authorIan Campbell <ian.campbell@citrix.com>
Fri, 13 Aug 2010 13:25:56 +0000 (14:25 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Aug 2010 13:25:56 +0000 (14:25 +0100)
It has been unused since 21732:eb34666befcc.

Removing the include of sys/ptrace.h and threaddb.h exposed a few
places which were using time(2) or gettimeofday(2) without including
time.h or sys/time.h respectively and were relying on an include.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/console/daemon/io.c
tools/libxc/Makefile
tools/libxc/xc_ptrace.h
tools/libxc/xenctrl.h
tools/libxl/libxl.c
tools/libxl/xl.c
tools/libxl/xl_cmdimpl.c
tools/python/xen/lowlevel/checkpoint/libcheckpoint.c
tools/xenpaging/xenpaging.c

index 2fd9b523d8cd80e1458f91834df1db273f193bd9..55e8027d43705d9c26a73d75ed17674a97d73cb0 100644 (file)
@@ -34,7 +34,7 @@
 #include <termios.h>
 #include <stdarg.h>
 #include <sys/mman.h>
-#include <sys/time.h>
+#include <time.h>
 #include <assert.h>
 #if defined(__NetBSD__) || defined(__OpenBSD__)
 #include <util.h>
index 98009fa8626d2b205030b0087ab37b5ba222909f..e99050e4cb44d8f642077f1b059f332ec502c79b 100644 (file)
@@ -32,7 +32,7 @@ CTRL_SRCS-y       += xtl_logger_stdio.c
 CTRL_SRCS-$(CONFIG_X86) += xc_pagetab.c
 CTRL_SRCS-$(CONFIG_Linux) += xc_linux.c
 CTRL_SRCS-$(CONFIG_SunOS) += xc_solaris.c
-CTRL_SRCS-$(CONFIG_X86_Linux) += xc_ptrace.c xc_ptrace_core.c
+#CTRL_SRCS-$(CONFIG_X86_Linux) += xc_ptrace.c xc_ptrace_core.c
 CTRL_SRCS-$(CONFIG_NetBSD) += xc_netbsd.c
 CTRL_SRCS-$(CONFIG_MiniOS) += xc_minios.c
 
index 7116ba0f82b6334ee223effa512f758693569b3b..2c6b728bd859dacb06844d4ba75c8b1aa9674b43 100644 (file)
@@ -1,3 +1,5 @@
+#error xc_ptrace is disabled.
+
 #ifndef XC_PTRACE_
 #define XC_PTRACE_
 
index 2a67905db8349d0f90cd5b8393bdba29c853cf38..c561eff5c74269c9034323bc4e17ebc9de19ec9a 100644 (file)
@@ -150,7 +150,7 @@ typedef struct xc_core_header {
 #define XC_CORE_MAGIC     0xF00FEBED
 #define XC_CORE_MAGIC_HVM 0xF00FEBEE
 
-#ifdef __linux__
+#if 0 /*def __linux__*/
 
 #include <sys/ptrace.h>
 #include <thread_db.h>
index a29cabd54d7fa4f118d737c82a511c4eaf89c076..db55d61d60292eddc757838740e8492593268b26 100644 (file)
@@ -25,6 +25,7 @@
 #include <sys/select.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
+#include <sys/time.h>
 #include <signal.h>
 #include <unistd.h> /* for write, unlink and close */
 #include <stdint.h>
index 237f6e6b12466c8fbb87e8dda8f2d4170ed2058b..a7f0d2d7486535e321262de24cd24980d5c145ed 100644 (file)
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/time.h> /* for time */
+#include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index bbc9bc6817069c5d922dc77748ef0ab8d3e0e2a3..a25b78e7a6b418b030759ada1650caabb81ddb07 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/time.h> /* for time */
+#include <time.h>
 #include <getopt.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 #include <fcntl.h>
 #include <signal.h>
 #include <sys/socket.h>
index 4c4cb4f49d5556ba50875cb3009aefcecf0db94b..9ec7c8736e34e6c35172be8c9f9deed0cd3e8399 100644 (file)
@@ -4,7 +4,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <time.h>
+#include <sys/time.h>
 #include <signal.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 31da5a49edac232c095ef02876e49e66b245cfc1..72d131161be747c7ee04902654a330deaaf5140f 100644 (file)
@@ -23,6 +23,7 @@
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <time.h>
 #include <xc_private.h>
 
 #include <xen/mem_event.h>