summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-03 19:12:38 +0000
committerChris Lattner <sabre@nondot.org>2003-02-03 19:12:38 +0000
commit3a35254960dfe86c9900a36806de2e47c932414c (patch)
tree55b9e224ae22d1e451a4b45be0b89de546ac4807 /runtime
parent0ac7d5c534be02eee276f0e05eb312d5de096747 (diff)
downloadllvm-3a35254960dfe86c9900a36806de2e47c932414c.tar.gz
llvm-3a35254960dfe86c9900a36806de2e47c932414c.tar.bz2
llvm-3a35254960dfe86c9900a36806de2e47c932414c.tar.xz
Implement feof and xmalloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libdummy/dummylib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/libdummy/dummylib.c b/runtime/libdummy/dummylib.c
index e5e255de3e..ef2d86e67b 100644
--- a/runtime/libdummy/dummylib.c
+++ b/runtime/libdummy/dummylib.c
@@ -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;}