1. 25 2月, 2008 1 次提交
  2. 22 2月, 2008 1 次提交
    • J
      Move safewrite and saferead to a separate file. · a178a4e7
      Jim Meyering 提交于
      We currently use safewrite from inside libvirt and don't want to publish
      any such function name.  However, we do want to use it in applications
      like virsh, libvirtd and libvirt_proxy that link with libvirt.  To that
      end, this change moves that function definition (along with the nearly
      identical saferead) into a new file, util-lib.c.  To avoid maintaining
      separate copies of even such small functions, we simply include that new
      file from util.c.  Then, the separate applications that need to use
      safewrite simply compile and link with util-lib.c.
      
      Of course, this does mean that each of those applications will
      containing two copies of these functions.  However, the functions
      are so small that it's not worth worrying about that.
      
      * src/util.c (saferead, safewrite): Move function definitions to
      util-lib.c and include that .c file.
      * src/util-lib.c (saferead, safewrite): New file.  Functions from src/util.c
      with slight change (s/int r =/ssize_t r =/) to reflect read/write return type.
      * src/util-lib.h: Declare the two moved functions.
      * src/util.h: Remove declarations.  Include src/util-lib.h.
      * proxy/Makefile.am (libvirt_proxy_SOURCES): Add src/util-lib.c.
      * qemud/Makefile.am (libvirtd_SOURCES): Likewise.
      * src/Makefile.am (virsh_SOURCES): Add util-lib.c.  Remove some SP-before-TAB.
      a178a4e7
  3. 20 2月, 2008 6 次提交
  4. 06 1月, 2008 1 次提交
    • R
      Miscellaneous fixes for building on Windows (MinGW). · 029aef1d
      Richard W.M. Jones 提交于
      	* configure.in: xdr functions may require -lxdr.
      	* configure.in, src/Makefile.am: Extra linking flags for
      	  building libvirt DLL.
      	* src/socketcompat.h: Hide Windows Winsock incompatibilities
      	  in a separate header file.
      	* src/remote_internal.c: Switch to using socketcompat.h /
      	  socket_errno().
      	* src/test.c: Switch to using socketcompat.h.
      	* gnulib/lib/arpa/.cvsignore: Ignore another generated file.
      	* src/qparams.c: Include <config.h>.
      029aef1d
  5. 17 12月, 2007 1 次提交
  6. 06 12月, 2007 3 次提交
    • D
      * configure.in src/Makefile.am src/virsh.c: fix compilation problems · 7633453c
      Daniel Veillard 提交于
        when readline headers were found but not the library
      Daniel
      7633453c
    • J
      Use gnulib, starting with its physmem and getaddrinfo modules. · 261e7581
      Jim Meyering 提交于
      New files go into these directories:
        gnulib/lib
        gnulib/m4
        gnulib/tests
      
      * bootstrap: A wrapper around gnulib-tool.
      * configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY
      before any macro that uses AC_COMPILE_IFELSE.
      (AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile.  Remove m4/Makefile.
      * Makefile.am (SUBDIRS): Add gnulib/lib and remove m4.  Add gnulib/tests
      early enough that those tests run before any libvirt unit tests.
      * m4/Makefile.am: Remove file.  Not needed.
      * src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la.
      * src/nodeinfo.c: Include "physmem.h".
      * qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h".
      (MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions.
      (virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate.
      * tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS): Add ../gnulib/lib/libgnu.la.
      * qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la.
      * tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total
      memory from a file.
      Update expected output not to include "Memory: NNNN"
      * tests/nodeinfodata/linux-nodeinfo-1.txt:
      * tests/nodeinfodata/linux-nodeinfo-2.txt:
      * tests/nodeinfodata/linux-nodeinfo-3.txt:
      * tests/nodeinfodata/linux-nodeinfo-4.txt:
      * tests/nodeinfodata/linux-nodeinfo-5.txt:
      * tests/nodeinfodata/linux-nodeinfo-6.txt:
      * src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that
      would conflict with the one now in "config.h".
      * autogen.sh: Add -I gnulib/m4.
      * src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE.
      Instead, include "config.h".
      * qemud/qemud.c: Remove definition of _GNU_SOURCE.
      * src/openvz_driver.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      
      * configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch
      of gettextize-generated files go into build-aux/, rather than in
      the top-level directory.
      * .cvsignore: Adjust.
      * build-aux/.cvsignore: New file.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      261e7581
    • R
      Wed Dec 5 18:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · ffdbb903
      Richard W.M. Jones 提交于
              * src/Makefile.am, tests/Makefile.am: Remove LIBOBJS/LTLIBOBJS
                which were incorrectly committed earlier.
      ffdbb903
  7. 05 12月, 2007 1 次提交
  8. 30 11月, 2007 1 次提交
  9. 17 11月, 2007 1 次提交
  10. 15 11月, 2007 1 次提交
  11. 14 11月, 2007 1 次提交
  12. 19 10月, 2007 1 次提交
  13. 13 10月, 2007 1 次提交
  14. 20 9月, 2007 1 次提交
  15. 21 8月, 2007 1 次提交
    • R
      Tue Aug 21 10:21:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 81005437
      Richard W.M. Jones 提交于
      	* src/libvirt.c (virDomainMigrate): Added virDomainMigrate
      	  API call.
      	* src/xend_internal.c, src/xen_unified.c: Support for migration
      	  of Xen domains.
      	* src/xen_internal.c: Xen capabilities indicates level of
      	  support for migration.
      	* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
      	  Support for migration between remote hypervisors.
      	* src/virsh.c: Added 'virsh migrate' command.
      	* docs/libvir.html, docs/hvsupport.html: Updated hvsupport
      	  documentation.
      81005437
  16. 07 8月, 2007 1 次提交
  17. 26 7月, 2007 1 次提交
  18. 20 7月, 2007 1 次提交
  19. 17 7月, 2007 1 次提交
  20. 27 6月, 2007 4 次提交
  21. 15 6月, 2007 1 次提交
  22. 11 6月, 2007 1 次提交
  23. 29 5月, 2007 1 次提交
    • R
      +Tue May 29 15:41:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 0832c58c
      Richard W.M. Jones 提交于
      +
      +       * TODO: Added a note about requiring C++ compiler because of a
      +         possible problem with libtool autoconf macros.
      +       * docs/examples/Makefile.am, proxy/Makefile.am, qemud/Makefile.am,
      +         src/Makefile.am, tests/Makefile.am: Pass $(WARN_CFLAGS) when
      +         linking, so if -fstack-protector is there, gcc will link to
      +         the stack protector library.
      +       * tests/xencapstest.c: Allow this test to compile when Xen
      +         libraries are not enabled.
      +
      0832c58c
  24. 04 4月, 2007 1 次提交
  25. 15 3月, 2007 1 次提交
    • D
      * configure.in proxy/Makefile.am proxy/libvirt_proxy.c · 181ce1fd
      Daniel Veillard 提交于
        src/Makefile.am src/libvirt.c src/qemu_internal.c src/test.c
        src/xen_internal.c src/xen_internal.h src/xend_internal.c
        src/xm_internal.c src/xml.c src/xs_internal.c
        tests/Makefile.am tests/sexpr2xmltest.c tests/xmconfigtest.c:
        allow selective compilation of Xen,QEmu/KVM and test support
        in or out at configure time. Also allows to compile on a system
        without Xen development installed. All drivers are selected by
        default.
      Daniel
      181ce1fd
  26. 02 3月, 2007 1 次提交
    • M
      Thu Mar 01 16:17:48 EST 2007 Mark McLoughlin <markmc@redhat.com> · 51d56098
      Mark McLoughlin 提交于
              * acinclude.m4: add LIBVIRT_COMPILE_WARNINGS, copied from
              GNOME but with a few more flags we'd been using.
      
              * configure.in: use that instead of setting CFLAGS
              directly.
      
              * proxy/Makefile.am, python/Makefile.am, qemud/Makefile.am,
                src/Makefile.am, tests/Makefile.am: use $(WARN_CFLAGS)
      51d56098
  27. 23 2月, 2007 1 次提交
  28. 14 2月, 2007 2 次提交
  29. 26 1月, 2007 1 次提交