I managed to remove almost all Linux-ism in my previous work to make all paths configurable.
The last bits missing are the two device node paths. Unfortunately there is an easy way to determine system name in the standard library so I wrote a wrapper for uname syscall. I think this is a good candidate for inclusion in 4.9. I wouldn't be too disappointed if they don't end up there though. I will let Julien decide. Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: d...@recoil.org Cc: christian.lin...@citrix.com Cc: jonathan.lud...@citrix.com Cc: Roger Pau Monné <roger....@citrix.com> Cc: Julien Grall <julien.gr...@arm.com> Wei Liu (2): oxenstored: add an Unix syscall C extension oxenstored: make it work on FreeBSD tools/ocaml/xenstored/Makefile | 9 ++++-- tools/ocaml/xenstored/define.ml | 16 ++++++++-- tools/ocaml/xenstored/unix_syscalls.ml | 29 ++++++++++++++++++ tools/ocaml/xenstored/unix_syscalls.mli | 29 ++++++++++++++++++ tools/ocaml/xenstored/unix_syscalls_stubs.c | 46 +++++++++++++++++++++++++++++ 5 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 tools/ocaml/xenstored/unix_syscalls.ml create mode 100644 tools/ocaml/xenstored/unix_syscalls.mli create mode 100644 tools/ocaml/xenstored/unix_syscalls_stubs.c -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel