From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATCH] stubdom: add stub functions to reduce qemu patches Date: Wed, 9 Jul 2008 15:27:10 +0100 Message-ID: <20080709142710.GA12730@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org stubdom: add stub functions to reduce qemu patches Signed-off-by: Samuel Thibault diff -r fda7bb635f7e extras/mini-os/include/posix/fcntl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extras/mini-os/include/posix/fcntl.h Wed Jul 09 15:05:08 2008 +0100 @@ -0,0 +1,11 @@ +#ifndef _POSIX_FCNTL_H +#define _POSIX_FCNTL_H + +#include_next + +#define F_ULOCK 0 +#define F_LOCK 1 +#define F_TLOCK 2 +#define F_TEST 3 + +#endif /* _POSIX_FCNTL_H */ diff -r fda7bb635f7e extras/mini-os/lib/sys.c --- a/extras/mini-os/lib/sys.c Wed Jul 09 13:30:00 2008 +0100 +++ b/extras/mini-os/lib/sys.c Wed Jul 09 15:05:08 2008 +0100 @@ -1186,6 +1186,7 @@ /* Not supported by FS yet. */ unsupported_function_crash(link); unsupported_function(int, readlink, -1); +unsupported_function_crash(umask); /* We could support that. */ unsupported_function_log(int, chdir, -1); @@ -1208,6 +1209,13 @@ unsupported_function(int, sigaltstack, -1); unsupported_function_crash(kill); +/* Unsupported */ +unsupported_function_crash(pipe); +unsupported_function_crash(fork); +unsupported_function_crash(execv); +unsupported_function_crash(waitpid); +unsupported_function_crash(lockf); +unsupported_function_crash(sysconf); unsupported_function(int, tcsetattr, -1); unsupported_function(int, tcgetattr, 0);