diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-17 18:21:25 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-17 18:21:25 +0100 |
commit | b9488ab5f5c72a1856ef21e7fd79f422799f6469 (patch) | |
tree | 4e1c29972bd515530aec4a9f5a16fdf38807c99a /tools/xenstore/xs_lib.c | |
parent | 5b8acb9ddfd8efc1d0f10760cc4510f50b0c466f (diff) | |
download | xen-b9488ab5f5c72a1856ef21e7fd79f422799f6469.tar.gz xen-b9488ab5f5c72a1856ef21e7fd79f422799f6469.tar.bz2 xen-b9488ab5f5c72a1856ef21e7fd79f422799f6469.zip |
[SOLARIS] Create kernel-interface implementations for libxc and xenstored.
Additionally, on Solaris, tell the kernel when xenstored is running.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/xenstore/xs_lib.c')
-rw-r--r-- | tools/xenstore/xs_lib.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/xenstore/xs_lib.c b/tools/xenstore/xs_lib.c index 750d1823cf..0afe87d325 100644 --- a/tools/xenstore/xs_lib.c +++ b/tools/xenstore/xs_lib.c @@ -76,7 +76,14 @@ const char *xs_daemon_socket_ro(void) const char *xs_domain_dev(void) { char *s = getenv("XENSTORED_PATH"); - return (s ? s : "/proc/xen/xenbus"); + if (s) + return s; + +#ifdef __linux__ + return "/proc/xen/xenbus"; +#else + return "/dev/xen/xenbus"; +#endif } /* Simple routines for writing to sockets, etc. */ |