Implement more functions
[oota-llvm.git] / runtime / libdummy / dummylib.c
index ef2d86e67bf00facc7512dabf2fd2d13697dad9c..75c1805a14cb9a7ec94b7bfbc339f5057c00a3b1 100644 (file)
@@ -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; }