aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/lib
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-19 14:15:43 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-19 14:15:43 +0100
commit0e57a92cc388c377de3940d12ac6131c698f5581 (patch)
tree3a2c0d95728f9d200492ddadc1bd824c43d43f71 /extras/mini-os/lib
parentc1861bc6f8de70e3d86961354642870dfbcbd494 (diff)
downloadxen-0e57a92cc388c377de3940d12ac6131c698f5581.tar.gz
xen-0e57a92cc388c377de3940d12ac6131c698f5581.tar.bz2
xen-0e57a92cc388c377de3940d12ac6131c698f5581.zip
minios: Implement some extra lib functions for ocaml xenstored stubdom
We could stub them out as unsupported, but we may as well implement them as they are very simple. Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/lib')
-rw-r--r--extras/mini-os/lib/sys.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/extras/mini-os/lib/sys.c b/extras/mini-os/lib/sys.c
index 876443cf19..d0bc76a659 100644
--- a/extras/mini-os/lib/sys.c
+++ b/extras/mini-os/lib/sys.c
@@ -1185,6 +1185,32 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp)
return 0;
}
+uid_t getuid(void)
+{
+ return 0;
+}
+
+uid_t geteuid(void)
+{
+ return 0;
+}
+
+gid_t getgid(void)
+{
+ return 0;
+}
+
+gid_t getegid(void)
+{
+ return 0;
+}
+
+int gethostname(char *name, size_t namelen)
+{
+ strncpy(name, "mini-os", namelen);
+ return 0;
+}
+
size_t getpagesize(void)
{
return PAGE_SIZE;
@@ -1255,6 +1281,12 @@ void sparse(unsigned long data, size_t size)
do_map_zero(data, n);
}
+int nice(int inc)
+{
+ printk("nice() stub called with inc=%d\n", inc);
+ return 0;
+}
+
/* Not supported by FS yet. */
unsupported_function_crash(link);