summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitca959ff6fd6df88e96a6b2967a23dfbc2006acc6 (patch)
tree4c49aa8285ac79f5f88ae22a9bbf4581fa5edbc2 /llvm/runtime
parent3595c3387a0c6eb3ad1243b34ed781dbddd6e731 (diff)
downloadbcm5719-llvm-ca959ff6fd6df88e96a6b2967a23dfbc2006acc6.tar.gz
bcm5719-llvm-ca959ff6fd6df88e96a6b2967a23dfbc2006acc6.zip
Implement more functions
llvm-svn: 5538
Diffstat (limited to 'llvm/runtime')
-rw-r--r--llvm/runtime/libdummy/dummylib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/runtime/libdummy/dummylib.c b/llvm/runtime/libdummy/dummylib.c
index ef2d86e67bf..75c1805a14c 100644
--- a/llvm/runtime/libdummy/dummylib.c
+++ b/llvm/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; }
OpenPOWER on IntegriCloud