[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [LIBXC] Replace API uses of size_t with ulong.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 58f28e00001e3015f09ad74fe6a23bb4bcae93af
# Parent  726960294d4bdc84a14a22164e368994ebe37bd2
[LIBXC] Replace API uses of size_t with ulong.

Avoids possibility of different FILE_OFFSET_BITS defn.
across the interface.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/libxc/xc_acm.c  |    3 +--
 tools/libxc/xc_tbuf.c |    4 ++--
 tools/libxc/xenctrl.h |    6 +++---
 3 files changed, 6 insertions(+), 7 deletions(-)

diff -r 726960294d4b -r 58f28e00001e tools/libxc/xc_acm.c
--- a/tools/libxc/xc_acm.c      Fri Nov 17 12:13:24 2006 +0000
+++ b/tools/libxc/xc_acm.c      Fri Nov 17 14:00:45 2006 +0000
@@ -14,8 +14,7 @@
 
 #include "xc_private.h"
 
-
-int xc_acm_op(int xc_handle, int cmd, void *arg, size_t arg_size)
+int xc_acm_op(int xc_handle, int cmd, void *arg, unsigned long arg_size)
 {
     int ret = -1;
     DECLARE_HYPERCALL;
diff -r 726960294d4b -r 58f28e00001e tools/libxc/xc_tbuf.c
--- a/tools/libxc/xc_tbuf.c     Fri Nov 17 12:13:24 2006 +0000
+++ b/tools/libxc/xc_tbuf.c     Fri Nov 17 14:00:45 2006 +0000
@@ -57,7 +57,7 @@ int xc_tbuf_get_size(int xc_handle, unsi
     return rc;
 }
 
-int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn,
+int xc_tbuf_enable(int xc_handle, unsigned long pages, unsigned long *mfn,
                    unsigned long *size)
 {
     DECLARE_SYSCTL;
@@ -68,7 +68,7 @@ int xc_tbuf_enable(int xc_handle, size_t
      * set (since trace buffers cannot be reallocated). If we really have no
      * buffers at all then tbuf_enable() will fail, so this is safe.
      */
-    (void)xc_tbuf_set_size(xc_handle, cnt);
+    (void)xc_tbuf_set_size(xc_handle, pages);
 
     if ( tbuf_enable(xc_handle, 1) != 0 )
         return -1;
diff -r 726960294d4b -r 58f28e00001e tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h     Fri Nov 17 12:13:24 2006 +0000
+++ b/tools/libxc/xenctrl.h     Fri Nov 17 14:00:45 2006 +0000
@@ -556,8 +556,8 @@ long xc_get_tot_pages(int xc_handle, uin
  * Gets the machine address of the trace pointer area and the size of the
  * per CPU buffers.
  */
-int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn,
-    unsigned long *size);
+int xc_tbuf_enable(int xc_handle, unsigned long pages,
+                   unsigned long *mfn, unsigned long *size);
 
 /*
  * Disable tracing buffers.
@@ -610,7 +610,7 @@ int xc_add_mmu_update(int xc_handle, xc_
                    unsigned long long ptr, unsigned long long val);
 int xc_finish_mmu_updates(int xc_handle, xc_mmu_t *mmu);
 
-int xc_acm_op(int xc_handle, int cmd, void *arg, size_t arg_size);
+int xc_acm_op(int xc_handle, int cmd, void *arg, unsigned long arg_size);
 
 /*
  * Return a handle to the event channel driver, or -1 on failure, in which case

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.