ia64/xen-unstable

changeset 19621:49f2f2aa5f83

minios: Define extra stub functions to allow build of ocaml xenstored stubdom

These are referenced by the libs that ocamlopt links xenstored to, but
ought not actually get called.

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 19 14:14:41 2009 +0100 (2009-05-19)
parents 2eb9f1db70a4
children b4de3a393f21
files extras/mini-os/lib/sys.c
line diff
     1.1 --- a/extras/mini-os/lib/sys.c	Tue May 19 14:13:20 2009 +0100
     1.2 +++ b/extras/mini-os/lib/sys.c	Tue May 19 14:14:41 2009 +0100
     1.3 @@ -1301,7 +1301,10 @@ unsupported_function_log(char *, if_inde
     1.4  unsupported_function_log(struct  if_nameindex *, if_nameindex, (struct  if_nameindex *) NULL);
     1.5  unsupported_function_crash(if_freenameindex);
     1.6  
     1.7 -/* Linuxish abi for the Caml runtime, don't support */
     1.8 +/* Linuxish abi for the Caml runtime, don't support 
     1.9 +   Log, and return an error code if possible.  If it is not possible
    1.10 +   to inform the application of an error, then crash instead!
    1.11 +*/
    1.12  unsupported_function_log(struct dirent *, readdir64, NULL);
    1.13  unsupported_function_log(int, getrusage, -1);
    1.14  unsupported_function_log(int, getrlimit, -1);
    1.15 @@ -1309,4 +1312,58 @@ unsupported_function_log(int, getrlimit6
    1.16  unsupported_function_log(int, __xstat64, -1);
    1.17  unsupported_function_log(long, __strtol_internal, LONG_MIN);
    1.18  unsupported_function_log(double, __strtod_internal, HUGE_VAL);
    1.19 +unsupported_function_log(int, utime, -1);
    1.20 +unsupported_function_log(int, truncate64, -1);
    1.21 +unsupported_function_log(int, tcflow, -1);
    1.22 +unsupported_function_log(int, tcflush, -1);
    1.23 +unsupported_function_log(int, tcdrain, -1);
    1.24 +unsupported_function_log(int, tcsendbreak, -1);
    1.25 +unsupported_function_log(int, cfsetospeed, -1);
    1.26 +unsupported_function_log(int, cfsetispeed, -1);
    1.27 +unsupported_function_crash(cfgetospeed);
    1.28 +unsupported_function_crash(cfgetispeed);
    1.29 +unsupported_function_log(int, symlink, -1);
    1.30 +unsupported_function_log(const char*, inet_ntop, NULL);
    1.31 +unsupported_function_crash(__fxstat64);
    1.32 +unsupported_function_crash(__lxstat64);
    1.33 +unsupported_function_log(int, socketpair, -1);
    1.34 +unsupported_function_crash(sigsuspend);
    1.35 +unsupported_function_log(int, sigpending, -1);
    1.36 +unsupported_function_log(int, shutdown, -1);
    1.37 +unsupported_function_log(int, setuid, -1);
    1.38 +unsupported_function_log(int, setgid, -1);
    1.39 +unsupported_function_crash(rewinddir);
    1.40 +unsupported_function_log(int, getpriority, -1);
    1.41 +unsupported_function_log(int, setpriority, -1);
    1.42 +unsupported_function_log(int, mkfifo, -1);
    1.43 +unsupported_function_log(int, getitimer, -1);
    1.44 +unsupported_function_log(int, setitimer, -1);
    1.45 +unsupported_function_log(void *, getservbyport, NULL);
    1.46 +unsupported_function_log(void *, getservbyname, NULL);
    1.47 +unsupported_function_log(void *, getpwuid, NULL);
    1.48 +unsupported_function_log(void *, getpwnam, NULL);
    1.49 +unsupported_function_log(void *, getprotobynumber, NULL);
    1.50 +unsupported_function_log(void *, getprotobyname, NULL);
    1.51 +unsupported_function_log(int, getpeername, -1);
    1.52 +unsupported_function_log(int, getnameinfo, -1);
    1.53 +unsupported_function_log(char *, getlogin, NULL);
    1.54 +unsupported_function_crash(__h_errno_location);
    1.55 +unsupported_function_log(int, gethostbyname_r, -1);
    1.56 +unsupported_function_log(int, gethostbyaddr_r, -1);
    1.57 +unsupported_function_log(int, getgroups, -1);
    1.58 +unsupported_function_log(void *, getgrgid, NULL);
    1.59 +unsupported_function_log(void *, getgrnam, NULL);
    1.60 +unsupported_function_log(int, getaddrinfo, -1);
    1.61 +unsupported_function_log(int, freeaddrinfo, -1);
    1.62 +unsupported_function_log(int, ftruncate64, -1);
    1.63 +unsupported_function_log(int, fchown, -1);
    1.64 +unsupported_function_log(int, fchmod, -1);
    1.65 +unsupported_function_crash(execvp);
    1.66 +unsupported_function_log(int, dup, -1)
    1.67 +unsupported_function_log(int, chroot, -1)
    1.68 +unsupported_function_log(int, chown, -1);
    1.69 +unsupported_function_log(int, chmod, -1);
    1.70 +unsupported_function_crash(alarm);
    1.71 +unsupported_function_log(int, inet_pton, -1);
    1.72 +unsupported_function_log(int, access, -1);
    1.73  #endif