ia64/xen-unstable

changeset 12509:58f28e00001e

[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@xensource.com>
author kfraser@localhost.localdomain
date Fri Nov 17 14:00:45 2006 +0000 (2006-11-17)
parents 726960294d4b
children 645ef4726bce
files tools/libxc/xc_acm.c tools/libxc/xc_tbuf.c tools/libxc/xenctrl.h
line diff
     1.1 --- a/tools/libxc/xc_acm.c	Fri Nov 17 12:13:24 2006 +0000
     1.2 +++ b/tools/libxc/xc_acm.c	Fri Nov 17 14:00:45 2006 +0000
     1.3 @@ -14,8 +14,7 @@
     1.4  
     1.5  #include "xc_private.h"
     1.6  
     1.7 -
     1.8 -int xc_acm_op(int xc_handle, int cmd, void *arg, size_t arg_size)
     1.9 +int xc_acm_op(int xc_handle, int cmd, void *arg, unsigned long arg_size)
    1.10  {
    1.11      int ret = -1;
    1.12      DECLARE_HYPERCALL;
     2.1 --- a/tools/libxc/xc_tbuf.c	Fri Nov 17 12:13:24 2006 +0000
     2.2 +++ b/tools/libxc/xc_tbuf.c	Fri Nov 17 14:00:45 2006 +0000
     2.3 @@ -57,7 +57,7 @@ int xc_tbuf_get_size(int xc_handle, unsi
     2.4      return rc;
     2.5  }
     2.6  
     2.7 -int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn,
     2.8 +int xc_tbuf_enable(int xc_handle, unsigned long pages, unsigned long *mfn,
     2.9                     unsigned long *size)
    2.10  {
    2.11      DECLARE_SYSCTL;
    2.12 @@ -68,7 +68,7 @@ int xc_tbuf_enable(int xc_handle, size_t
    2.13       * set (since trace buffers cannot be reallocated). If we really have no
    2.14       * buffers at all then tbuf_enable() will fail, so this is safe.
    2.15       */
    2.16 -    (void)xc_tbuf_set_size(xc_handle, cnt);
    2.17 +    (void)xc_tbuf_set_size(xc_handle, pages);
    2.18  
    2.19      if ( tbuf_enable(xc_handle, 1) != 0 )
    2.20          return -1;
     3.1 --- a/tools/libxc/xenctrl.h	Fri Nov 17 12:13:24 2006 +0000
     3.2 +++ b/tools/libxc/xenctrl.h	Fri Nov 17 14:00:45 2006 +0000
     3.3 @@ -556,8 +556,8 @@ long xc_get_tot_pages(int xc_handle, uin
     3.4   * Gets the machine address of the trace pointer area and the size of the
     3.5   * per CPU buffers.
     3.6   */
     3.7 -int xc_tbuf_enable(int xc_handle, size_t cnt, unsigned long *mfn,
     3.8 -    unsigned long *size);
     3.9 +int xc_tbuf_enable(int xc_handle, unsigned long pages,
    3.10 +                   unsigned long *mfn, unsigned long *size);
    3.11  
    3.12  /*
    3.13   * Disable tracing buffers.
    3.14 @@ -610,7 +610,7 @@ int xc_add_mmu_update(int xc_handle, xc_
    3.15                     unsigned long long ptr, unsigned long long val);
    3.16  int xc_finish_mmu_updates(int xc_handle, xc_mmu_t *mmu);
    3.17  
    3.18 -int xc_acm_op(int xc_handle, int cmd, void *arg, size_t arg_size);
    3.19 +int xc_acm_op(int xc_handle, int cmd, void *arg, unsigned long arg_size);
    3.20  
    3.21  /*
    3.22   * Return a handle to the event channel driver, or -1 on failure, in which case