diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
commit | 2de68899197631eb7527fd6c519e6ea55ab64f1c (patch) | |
tree | c433564cd5c1f04d4bfa63da6087a73c32f1eb45 /tools | |
parent | 048f6a9497466b39eb6f34eb0a699e632c15929f (diff) | |
download | xen-2de68899197631eb7527fd6c519e6ea55ab64f1c.tar.gz xen-2de68899197631eb7527fd6c519e6ea55ab64f1c.tar.bz2 xen-2de68899197631eb7527fd6c519e6ea55ab64f1c.zip |
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@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxc/xc_linux.c | 4 | ||||
-rw-r--r-- | tools/libxc/xc_minios.c | 3 | ||||
-rw-r--r-- | tools/libxc/xc_netbsd.c | 3 | ||||
-rw-r--r-- | tools/libxc/xc_private.c | 1 | ||||
-rw-r--r-- | tools/libxc/xc_private.h | 1 | ||||
-rw-r--r-- | tools/libxc/xc_solaris.c | 2 |
6 files changed, 0 insertions, 14 deletions
diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index a1ed5f450c..eafa7e1d56 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -58,8 +58,6 @@ static xc_osdep_handle linux_privcmd_open(xc_interface *xch) goto error; } - xch->fd = fd; /* Remove after transition to full xc_osdep_ops. */ - return (xc_osdep_handle)fd; error: @@ -350,7 +348,6 @@ static xc_osdep_handle linux_evtchn_open(xc_evtchn *xce) 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(xc_gnttab *xcg) 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 --git a/tools/libxc/xc_minios.c b/tools/libxc/xc_minios.c index 990f7142ef..ee0468782a 100644 --- a/tools/libxc/xc_minios.c +++ b/tools/libxc/xc_minios.c @@ -56,7 +56,6 @@ static xc_osdep_handle minios_privcmd_open(xc_interface *xch) 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_open(xc_evtchn *xce) 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_open(xc_gnttab *xcg) 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 --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c index d3ec9c54e5..e84b88b6ee 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -51,8 +51,6 @@ static xc_osdep_handle netbsd_privcmd_open(xc_interface *xch) goto error; } - xch->fd = fd; /* Remove after transition to full xc_osdep_ops. */ - return (xc_osinteface_handle)fd; error: @@ -200,7 +198,6 @@ static xc_osdep_handle netbsd_evtchn_open(xc_evtchn *xce) 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 --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index 69b674dabf..a41fa32f4c 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -59,7 +59,6 @@ static struct xc_interface_core *xc_interface_open_common(xentoollog_logger *log xch->type = type; xch->flags = open_flags; - xch->fd = -1; xch->dombuild_logger_file = 0; xc_clear_last_error(xch); diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index ccd1605288..4d06b02d39 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -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 --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c index 71bbbe62a2..cb366d7254 100644 --- a/tools/libxc/xc_solaris.c +++ b/tools/libxc/xc_solaris.c @@ -52,7 +52,6 @@ static xc_osdep_handle solaris_privcmd_open(xc_interface *xch) 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_open(xc_evtchn *xce) return XC_OSDEP_OPEN_ERROR; } - xce->fd = fd; /* Remove after transition to full xc_osdep_ops. */ return (xc_osdep_handle)fd; } |