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

[Xen-changelog] [xen-unstable] libxc: drop fd from xc_interface



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1291369007 0
# Node ID a04cd975b1f4b96b533b9c38485da1d51fd3b108
# Parent  79c2b469a9f8ed5f4cddca88aa58b8879a8ff210
libxc: drop fd from xc_interface

Transition to xc_osdep_handle is now complete and nothing uses
(or should be using) it.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
---
 tools/libxc/xc_linux.c   |    4 ----
 tools/libxc/xc_minios.c  |    3 ---
 tools/libxc/xc_netbsd.c  |    3 ---
 tools/libxc/xc_private.c |    1 -
 tools/libxc/xc_private.h |    1 -
 tools/libxc/xc_solaris.c |    2 --
 6 files changed, 14 deletions(-)

diff -r 79c2b469a9f8 -r a04cd975b1f4 tools/libxc/xc_linux.c
--- a/tools/libxc/xc_linux.c    Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_linux.c    Fri Dec 03 09:36:47 2010 +0000
@@ -57,8 +57,6 @@ static xc_osdep_handle linux_privcmd_ope
         PERROR("Could not set file handle flags");
         goto error;
     }
-
-    xch->fd = fd; /* Remove after transition to full xc_osdep_ops. */
 
     return (xc_osdep_handle)fd;
 
@@ -350,7 +348,6 @@ static xc_osdep_handle linux_evtchn_open
     if ( fd == -1 )
         return XC_OSDEP_OPEN_ERROR;
 
-    xce->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 
@@ -498,7 +495,6 @@ static xc_osdep_handle linux_gnttab_open
     if ( fd == -1 )
         return XC_OSDEP_OPEN_ERROR;
 
-    xcg->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 
diff -r 79c2b469a9f8 -r a04cd975b1f4 tools/libxc/xc_minios.c
--- a/tools/libxc/xc_minios.c   Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_minios.c   Fri Dec 03 09:36:47 2010 +0000
@@ -56,7 +56,6 @@ static xc_osdep_handle minios_privcmd_op
     if ( fd == -1)
         return XC_OSDEP_OPEN_ERROR;
 
-    xch->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 
@@ -207,7 +206,6 @@ static xc_osdep_handle minios_evtchn_ope
         files[fd].evtchn.ports[i].bound = 0;
     }
     printf("evtchn_open() -> %d\n", fd);
-    xce->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 
@@ -431,7 +429,6 @@ static xc_osdep_handle minios_gnttab_ope
     if ( fd == -1 )
         return XC_OSDEP_OPEN_ERROR;
     gntmap_init(&files[fd].gntmap);
-    xcg->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 
diff -r 79c2b469a9f8 -r a04cd975b1f4 tools/libxc/xc_netbsd.c
--- a/tools/libxc/xc_netbsd.c   Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_netbsd.c   Fri Dec 03 09:36:47 2010 +0000
@@ -50,8 +50,6 @@ static xc_osdep_handle netbsd_privcmd_op
         PERROR("Could not set file handle flags");
         goto error;
     }
-
-    xch->fd = fd; /* Remove after transition to full xc_osdep_ops. */
 
     return (xc_osinteface_handle)fd;
 
@@ -200,7 +198,6 @@ static xc_osdep_handle netbsd_evtchn_ope
     if ( fd == -1 )
         return XC_OSDEP_OPEN_ERROR;
 
-    xce->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 
diff -r 79c2b469a9f8 -r a04cd975b1f4 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_private.c  Fri Dec 03 09:36:47 2010 +0000
@@ -59,7 +59,6 @@ static struct xc_interface_core *xc_inte
 
     xch->type = type;
     xch->flags = open_flags;
-    xch->fd = -1;
     xch->dombuild_logger_file = 0;
     xc_clear_last_error(xch);
 
diff -r 79c2b469a9f8 -r a04cd975b1f4 tools/libxc/xc_private.h
--- a/tools/libxc/xc_private.h  Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_private.h  Fri Dec 03 09:36:47 2010 +0000
@@ -68,7 +68,6 @@
 
 struct xc_interface_core {
     enum xc_osdep_type type;
-    int fd;
     int flags;
     xentoollog_logger *error_handler,   *error_handler_tofree;
     xentoollog_logger *dombuild_logger, *dombuild_logger_tofree;
diff -r 79c2b469a9f8 -r a04cd975b1f4 tools/libxc/xc_solaris.c
--- a/tools/libxc/xc_solaris.c  Fri Dec 03 09:36:47 2010 +0000
+++ b/tools/libxc/xc_solaris.c  Fri Dec 03 09:36:47 2010 +0000
@@ -52,7 +52,6 @@ static xc_osdep_handle solaris_privcmd_o
         goto error;
     }
 
-    xch->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 
  error:
@@ -192,7 +191,6 @@ static xc_osdep_handle solaris_evtchn_op
         return XC_OSDEP_OPEN_ERROR;
     }
 
-    xce->fd = fd; /* Remove after transition to full xc_osdep_ops. */
     return (xc_osdep_handle)fd;
 }
 

_______________________________________________
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®.