From 3c0ced5e700792ead4fff894c28650401df4f48c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 11 Feb 2003 23:12:23 +0000 Subject: Implement more functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5538 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/libdummy/dummylib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'runtime') 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 #include +// 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; } -- cgit v1.2.3