Implement feof and xmalloc
authorChris Lattner <sabre@nondot.org>
Mon, 3 Feb 2003 19:12:38 +0000 (19:12 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Feb 2003 19:12:38 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5478 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libdummy/dummylib.c

index e5e255de3ef5f1f1da8ae899f245514af41a2415..ef2d86e67bf00facc7512dabf2fd2d13697dad9c 100644 (file)
@@ -5,6 +5,7 @@
 #include <sys/time.h>
 
 int gettimeofday(struct timeval *tv, void *tz) { return 0; }
+void *xmalloc(size_t X) { return malloc(X); }
   
 void srand(unsigned x) {}
 double exp(double x) { return 0; }
@@ -35,6 +36,7 @@ long ftell(FILE *F) { return 0; }
 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 ferror(FILE *F) { return 0; }
 FILE *fdopen(int fildes, const char *mode) { return 0;}