Rename libxc to libxenctrl
PATCH 1/2 Rename libxc to libxenctrl
This patch renames libxc to libxenctrl and updates everything else accordingly.
Regards,
Anthony Liguori
# HG changeset patch
# User Anthony Liguori <[email protected]> # Node ID 54370eeeb3311db2bcacfc797766a5993a079b4c # Parent b74c15e4dd4f77b11ecb3eb112b94e0dbbc14607 Rename libxc => libxenctrl and xc.h => xen/xenctrl.h
tools/blktap/blktaplib.h +1 -1
@@ -7,7 +7,7 @@#ifndef __BLKTAPLIB_H__#define __BLKTAPLIB_H__ -#include <xc.h> +#include <xenctrl.h> #include <sys/user.h> #include <xen/xen.h> #include <xen/io/blkif.h>
tools/blktap/parallax/block-async.h +1 -1
@@ -7,7 +7,7 @@#define _BLOCKASYNC_H_#include <assert.h> -#include <xc.h> +#include <xenctrl.h> #include "vdi.h" struct io_ret
tools/blktap/parallax/blockstore.h +1 -1
@@ -10,7 +10,7 @@#define __BLOCKSTORE_H__#include <netinet/in.h> -#include <xc.h> +#include <xenctrl.h> #define BLOCK_SIZE 4096#define BLOCK_SHIFT 12
tools/console/Makefile +2 -2
@@ -26,11 +26,11 @@ xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c)) $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \ - -lxc -lxenstore + -lxenctrl -lxenstore xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c)) $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \ - -lxc -lxenstore + -lxenctrl -lxenstore install: $(BIN) $(INSTALL_DIR) -p $(DESTDIR)/$(DAEMON_INSTALL_DIR)
tools/console/client/main.c +1 -1
@@ -36,7 +36,7 @@#include <errno.h> #include <pty.h> -#include "xc.h" +#include "xenctrl.h" #include "xs.h" #define ESCAPE_CHARACTER 0x1d
tools/console/daemon/io.c +1 -1
@@ -23,7 +23,7 @@#include "utils.h" #include "io.h" -#include "xc.h" +#include "xenctrl.h" #include "xs.h" #include "xen/io/domain_controller.h" #include "xcs_proto.h"
tools/console/daemon/main.c +1 -1
@@ -25,7 +25,7 @@#include <unistd.h> #include <sys/types.h> -#include "xc.h" +#include "xenctrl.h" #include "xen/io/domain_controller.h" #include "xcs_proto.h"
tools/console/daemon/utils.c +1 -1
@@ -33,7 +33,7 @@#include <sys/un.h> #include <string.h> -#include "xc.h" +#include "xenctrl.h" #include "xen/io/domain_controller.h" #include "xcs_proto.h"
tools/debugger/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/linux-xen-low.c +1 -1
@@ -35,7 +35,7 @@#include <stdlib.h> #include <unistd.h> #include <errno.h> -#include <xc.h> +#include <xenctrl.h> #define TRACE_ENTER /* printf("enter %s\n", __FUNCTION__) */ long (*myptrace)(enum __ptrace_request ,pid_t ,long ,long );int (*myxcwait)(int domain,int *status,int options) ;
tools/debugger/libxendebug/Makefile +1 -1
@@ -20,7 +20,7 @@ CFLAGS += -Wp,-MD,.$(@F).d DEPS = .*.d -LDFLAGS += -L$(XEN_ROOT)/tools/libxc -lxc +LDFLAGS += -L$(XEN_ROOT)/tools/libxc -lxenctrl LIB_OBJS := $(patsubst %.c,%.o,$(SRCS)) PIC_OBJS := $(patsubst %.c,%.opic,$(SRCS))
tools/debugger/libxendebug/xendebug.c +1 -1
@@ -12,7 +12,7 @@#include <string.h> #include <errno.h> #include <sys/mman.h> -#include <xc.h> +#include <xenctrl.h> #include "list.h" #if defined(__i386__)
tools/debugger/libxendebug/xendebug.h +1 -1
@@ -9,7 +9,7 @@#ifndef _XENDEBUG_H_DEFINED#define _XENDEBUG_H_DEFINED -#include <xc.h> +#include <xenctrl.h> int xendebug_attach(int xc_handle, u32 domid,
tools/debugger/pdb/pdb_caml_domain.c +1 -1
@@ -6,7 +6,7 @@* PDB's OCaml interface library for debugging domains */ -#include <xc.h> +#include <xenctrl.h> #include <xendebug.h> #include <errno.h> #include <stdio.h>
tools/debugger/pdb/pdb_caml_evtchn.c +1 -1
@@ -6,7 +6,7 @@* PDB's OCaml interface library for event channels */ -#include <xc.h> +#include <xenctrl.h> #include <stdio.h> #include <stdlib.h> #include <string.h>
tools/debugger/pdb/pdb_caml_process.c +1 -1
@@ -15,7 +15,7 @@#include <caml/memory.h> #include <caml/mlvalues.h> -#include <xc.h> +#include <xenctrl.h> #include <xen/xen.h> #include <xen/io/domain_controller.h> #include <xen/linux/privcmd.h>
tools/debugger/pdb/pdb_caml_xc.c +1 -1
@@ -6,7 +6,7 @@* PDB's OCaml interface library for debugging domains */ -#include <xc.h> +#include <xenctrl.h> #include <xendebug.h> #include <errno.h> #include <stdio.h>
tools/debugger/pdb/pdb_caml_xcs.c +1 -1
@@ -17,7 +17,7 @@#include <sys/types.h> #include <sys/socket.h> #include <errno.h> -#include <xc.h> +#include <xenctrl.h> #include <xen/xen.h> #include <xen/io/domain_controller.h>
tools/debugger/pdb/pdb_xen.c +1 -1
@@ -7,7 +7,7 @@* PDB interface library for accessing Xen */ -#include <xc.h> +#include <xenctrl.h> #include <stdio.h> #include <stdlib.h> #include <errno.h>
tools/firmware/acpi/acpi2_0.h +1 -1
@@ -18,7 +18,7 @@#ifndef _ACPI_2_0_H_#define _ACPI_2_0_H_ -#include "xc.h" // for u8, u16, u32, u64 definition +#include "xenctrl.h" // for u8, u16, u32, u64 definition #pragma pack (1)
tools/ioemu/hw/i8254.c +1 -1
@@ -22,7 +22,7 @@* THE SOFTWARE. */ #include "vl.h" -#include "xc.h" +#include "xenctrl.h" #include <io/ioreq.h> //#define DEBUG_PIT
tools/ioemu/hw/i8259.c +1 -1
@@ -22,7 +22,7 @@* THE SOFTWARE. */ #include "vl.h" -#include "xc.h" +#include "xenctrl.h" #include <io/ioreq.h> /* debug PIC */
tools/ioemu/hw/ioapic.h +1 -1
@@ -26,7 +26,7 @@#ifndef __IOAPIC_H#define __IOAPIC_H -#include "xc.h" +#include "xenctrl.h" #include <io/ioreq.h> #include <io/vmx_vlapic.h>
tools/ioemu/target-i386-dm/Makefile +1 -1
@@ -188,7 +188,7 @@ ######################################################### DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DAPIC_SUPPORT -LIBS+=-lm -L../../libxc -lxc +LIBS+=-lm -L../../libxc -lxenctrl ifndef CONFIG_USER_ONLY LIBS+=-lz endif
tools/ioemu/target-i386-dm/helper2.c +1 -1
@@ -47,7 +47,7 @@#include <fcntl.h> #include <sys/ioctl.h> -#include "xc.h" +#include "xenctrl.h" #include <io/ioreq.h> #include "cpu.h"
tools/ioemu/vl.c +1 -1
@@ -72,7 +72,7 @@#endif #endif /* CONFIG_SDL */ -#include "xc.h" +#include "xenctrl.h" #include "exec-all.h" //#define DO_TB_FLUSH
tools/libxc/Makefile +13 -13
@@ -48,8 +48,8 @@ LIB_OBJS := $(patsubst %.c,%.o,$(SRCS)) PIC_OBJS := $(patsubst %.c,%.opic,$(SRCS)) -LIB := libxc.a libxc-pic.a -LIB += libxc.so libxc.so.$(MAJOR) libxc.so.$(MAJOR).$(MINOR) +LIB := libxenctrl.a libxenctrl-pic.a +LIB += libxenctrl.so libxenctrl.so.$(MAJOR) libxenctrl.so.$(MAJOR).$(MINOR) all: build build: check-for-zlib mk-symlinks
@@ -77,11 +77,11 @@ install: build [ -d $(DESTDIR)/usr/$(LIBDIR) ] || $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR) [ -d $(DESTDIR)/usr/include ] || $(INSTALL_DIR) $(DESTDIR)/usr/include - $(INSTALL_PROG) libxc.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR) - $(INSTALL_DATA) libxc.a $(DESTDIR)/usr/$(LIBDIR) - ln -sf libxc.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libxc.so.$(MAJOR) - ln -sf libxc.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libxc.so - $(INSTALL_DATA) xc.h $(DESTDIR)/usr/include + $(INSTALL_PROG) libxenctrl.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR) + $(INSTALL_DATA) libxenctrl.a $(DESTDIR)/usr/$(LIBDIR) + ln -sf libxenctrl.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libxenctrl.so.$(MAJOR) + ln -sf libxenctrl.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libxenctrl.so + $(INSTALL_DATA) xenctrl.h $(DESTDIR)/usr/include/xen .PHONY: TAGS clean rpm install all
@@ -100,18 +100,18 @@ mv staging/i386/*.rpm . rm -rf staging -libxc.a: $(LIB_OBJS) +libxenctrl.a: $(LIB_OBJS) $(AR) rc $@ $^ -libxc-pic.a: $(PIC_OBJS) +libxenctrl-pic.a: $(PIC_OBJS) $(AR) rc $@ $^ -libxc.so: libxc.so.$(MAJOR) +libxenctrl.so: libxenctrl.so.$(MAJOR) ln -sf $< $@ -libxc.so.$(MAJOR): libxc.so.$(MAJOR).$(MINOR) +libxenctrl.so.$(MAJOR): libxenctrl.so.$(MAJOR).$(MINOR) ln -sf $< $@ -libxc.so.$(MAJOR).$(MINOR): $(PIC_OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxc.so.$(MAJOR) -shared -o $@ $^ -lz +libxenctrl.so.$(MAJOR).$(MINOR): $(PIC_OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname -Wl,libxenctrl.so.$(MAJOR) -shared -o $@ $^ -lz -include $(DEPS)
tools/libxc/xc_private.h +1 -1
@@ -14,7 +14,7 @@#include <errno.h> #include <string.h> -#include "xc.h" +#include "xenctrl.h" #include <xen/linux/privcmd.h>
tools/misc/Makefile +1 -1
@@ -50,4 +50,4 @@ $(CC) -c $(CFLAGS) -o $@ $< $(TARGETS): %: %.o Makefile - $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
tools/misc/cpuperf/Makefile +1 -1
@@ -37,7 +37,7 @@ $(CC) $(CFLAGS) -o $@ $< cpuperf-xen: cpuperf.c $(HDRS) Makefile - $(CC) $(CFLAGS) -I $(XEN_LIBXC) -L$(XEN_LIBXC) -lxc -DXENO -o $@ $< + $(CC) $(CFLAGS) -I $(XEN_LIBXC) -L$(XEN_LIBXC) -lxenctrl -DXENO -o $@ $< cpuperf-perfcntr: cpuperf.c $(HDRS) Makefile $(CC) $(CFLAGS) -DPERFCNTR -o $@ $<
tools/misc/cpuperf/cpuperf_xeno.h +1 -1
@@ -9,7 +9,7 @@* */ -#include <xc.h> +#include <xenctrl.h> static int xc_handle;
tools/misc/xc_shadow.c +1 -1
@@ -11,7 +11,7 @@*/ -#include <xc.h> +#include <xenctrl.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h>
tools/misc/xenperf.c +1 -1
@@ -11,7 +11,7 @@*/ -#include <xc.h> +#include <xenctrl.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h>
tools/python/setup.py +2 -2
@@ -17,7 +17,7 @@ XEN_ROOT + "/tools/xenstore", ] -libraries = [ "xc", "xenstore" ] +libraries = [ "xenctrl", "xenstore" ] xc = Extension("xc", extra_compile_args = extra_compile_args,
@@ -41,7 +41,7 @@ sources = [ "xen/lowlevel/xs/xs.c" ]) setup(name = 'xen', - version = '2.0', + version = '3.0', description = 'Xen', packages = ['xen', 'xen.lowlevel',
tools/python/xen/lowlevel/xc/xc.c +1 -1
@@ -5,7 +5,7 @@*/ #include <Python.h> -#include <xc.h> +#include <xenctrl.h> #include <zlib.h> #include <fcntl.h> #include <netinet/in.h>
tools/python/xen/lowlevel/xu/xu.c +1 -1
@@ -21,7 +21,7 @@#include <unistd.h> #include <errno.h> #include <signal.h> -#include <xc.h> +#include <xenctrl.h> #include <xen/xen.h> #include <xen/io/domain_controller.h>
tools/xcs/Makefile +2 -2
@@ -34,10 +34,10 @@ xcsdump: xcsdump.c dump.c $(CC) $(CFLAGS) -o xcsdump xcsdump.c -L$(XEN_LIBXC) \ - ctrl_interface.c evtchn.c dump.c -lxc + ctrl_interface.c evtchn.c dump.c -lxenctrl $(BIN): $(OBJS) - $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -lxc + $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -lxenctrl $(OBJS): $(HDRS)
tools/xcs/dump.h +1 -1
@@ -20,7 +20,7 @@#define XENCTLD_ERROR_H #include <stdint.h> -#include <xc.h> +#include <xenctrl.h> #include <xen/io/domain_controller.h> void dump_msg (const control_msg_t *msg,uint64_t flags);
tools/xcs/xcs.h +1 -1
@@ -11,7 +11,7 @@#define __XCS_H__#include <pthread.h> -#include <xc.h> +#include <xenctrl.h> #include <xen/xen.h> #include <xen/io/domain_controller.h> #include <xen/linux/privcmd.h>
tools/xcs/xcsdump.c +1 -1
@@ -16,7 +16,7 @@#include <sys/socket.h> #include <sys/un.h> #include <ctype.h> -#include <xc.h> +#include <xenctrl.h> #include <xen/xen.h> #include <xen/io/domain_controller.h> #include <getopt.h>
tools/xcutils/Makefile +1 -1
@@ -30,7 +30,7 @@ PROGRAMS = xc_restore xc_save -LDLIBS = -L$(XEN_LIBXC) -lxc +LDLIBS = -L$(XEN_LIBXC) -lxenctrl .PHONY: all all: build
tools/xcutils/xc_restore.c +1 -1
@@ -11,7 +11,7 @@#include <stdio.h> #include <err.h> -#include <xc.h> +#include <xenctrl.h> int main (int argc,char **argv)
tools/xcutils/xc_save.c +1 -1
@@ -11,7 +11,7 @@#include <stdio.h> #include <err.h> -#include <xc.h> +#include <xenctrl.h> int main (int argc,char **argv)
tools/xenstore/Makefile +2 -2
@@ -32,7 +32,7 @@ ln -sf $(XEN_ROOT)/xen/include/public $@ xenstored: xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored_transaction.o xs_lib.o talloc.o utils.o - $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -lxc -o $@ + $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -lxenctrl -o $@ xenstored_test: xenstored_core_test.o xenstored_watch_test.o xenstored_domain_test.o xenstored_transaction_test.o xs_lib.o talloc_test.o fake_libxc.o utils.o $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
@@ -103,7 +103,7 @@ export $(TESTENV); PID=`./xenstored_test --output-pid --trace-file=/tmp/trace`; ./xs_stress 5000; ret=$$?; kill $$PID; exit $$ret xs_dom0_test: xs_dom0_test.o utils.o - $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -lxc -o $@ + $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -lxenctrl -o $@ TAGS: etags `find . -name '*.[ch]'`
tools/xenstore/xs_dom0_test.c +1 -1
@@ -3,7 +3,7 @@#include <sys/ioctl.h> #include "xs.h" #include "utils.h" -#include <xc.h> +#include <xenctrl.h> #include <xen/linux/privcmd.h> #include <stdio.h> #include <unistd.h>
tools/xenstore/xs_lib.h +1 -1
@@ -22,7 +22,7 @@#include <stdbool.h> #include <limits.h> -#include <xc.h> +#include <xenctrl.h> /* Bitmask of permissions. */ enum xs_perm_type {
tools/xentrace/Makefile +1 -1
@@ -36,4 +36,4 @@ $(RM) *.a *.so *.o *.rpm $(BIN) %: %.c $(HDRS) Makefile - $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
tools/xentrace/xenctx.c +1 -1
@@ -21,7 +21,7 @@#include <argp.h> #include <signal.h> -#include "xc.h" +#include "xenctrl.h" #ifdef __i386__void print_ctx (vcpu_guest_context_t *ctx1)
tools/libxc/xenctrl.h new file +558 -0
558 lines not on this page · raw message
tools/libxc/xc.h deleted +0 -558
558 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi Keir,
When this patch eventually gets applied, you'll want to update xen/includes/public/COPYING accordingly (since xc.h is now xen/xenctrl.h, the current contents of COPYING may cause confusion about the license of libxenctrl).
Regards,
Anthony Liguori
Quoted 5 lines · Anthony Liguori
This patch renames libxc to libxenctrl and updates everything else accordingly.
Regards,
Anthony Liguori
Thanks!
Quoted 6 lines · Anthony Liguori
This patch renames libxc to libxenctrl and updates everything else accordingly.
Regards,
Anthony Liguori