summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-11 23:12:23 +0000
committerChris Lattner <sabre@nondot.org>2003-02-11 23:12:23 +0000
commit3c0ced5e700792ead4fff894c28650401df4f48c (patch)
treec26d6f7415f4a7a5fe6db071f8ca52ce433d55e8 /runtime
parent02896c97ffa5f25f9fb7823607b23935b4e4ed92 (diff)
downloadllvm-3c0ced5e700792ead4fff894c28650401df4f48c.tar.gz
llvm-3c0ced5e700792ead4fff894c28650401df4f48c.tar.bz2
llvm-3c0ced5e700792ead4fff894c28650401df4f48c.tar.xz
Implement more functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libdummy/dummylib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/libdummy/dummylib.c b/runtime/libdummy/dummylib.c
index ef2d86e67b..75c1805a14 100644
--- a/runtime/libdummy/dummylib.c
+++ b/runtime/libdummy/dummylib.c
@@ -4,6 +4,11 @@
#include <stdarg.h>
#include <sys/time.h>
+// Varargs function definitions
+int ioctl(int d, int request) {return 0; }
+int printf(const char *X) {return 0; }
+
+
int gettimeofday(struct timeval *tv, void *tz) { return 0; }
void *xmalloc(size_t X) { return malloc(X); }
@@ -37,7 +42,7 @@ int getc(FILE *S) { return 0; }
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream) { return 0; }
int fseek(FILE *stream, long offset, int whence) { return 0; }
int feof(FILE *stream) { return 0; }
-int fputs(const char *s, FILE *stream) { return 0; }
+int fputs(const char *s, char *stream) { return 0; }
int ferror(FILE *F) { return 0; }
FILE *fdopen(int fildes, const char *mode) { return 0;}
int ungetc(int c, FILE *stream) { return 0; }