aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_solaris.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-28 18:15:42 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-28 18:15:42 +0000
commit6065dcf33180741bec0292f603bfdde864eb347b (patch)
tree3a24ff1025208ad26c8965dfae4a6823155b4889 /tools/libxc/xc_solaris.c
parent4092caa643fa1103fbbdc96948f500c4a5c1f4cd (diff)
downloadxen-6065dcf33180741bec0292f603bfdde864eb347b.tar.gz
xen-6065dcf33180741bec0292f603bfdde864eb347b.tar.bz2
xen-6065dcf33180741bec0292f603bfdde864eb347b.zip
libxc: Quieten the discard_file_cache() function. Preserve errno
across it. No longer make calls to the function dependent on 'non-live save/restore': it's not a good test of whether the fd is a socket. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_solaris.c')
-rw-r--r--tools/libxc/xc_solaris.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c
index 4c537291e8..65008115ea 100644
--- a/tools/libxc/xc_solaris.c
+++ b/tools/libxc/xc_solaris.c
@@ -244,8 +244,7 @@ int xc_evtchn_unmask(int xce_handle, evtchn_port_t port)
}
/* Optionally flush file to disk and discard page cache */
-int discard_file_cache(int fd, int flush)
+void discard_file_cache(int fd, int flush)
{
// TODO: Implement for Solaris!
- return 0;
}