diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-03 19:12:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-03 19:12:38 +0000 |
commit | 47c8d718a6b08b23a808abdf7560ebe0cb24d1f5 (patch) | |
tree | 1e87c98fef59caa5f706b589d7409992cab65b11 /llvm/runtime | |
parent | 8bb9513bd813113b1bba8c6a365953e7a0d5fde6 (diff) | |
download | bcm5719-llvm-47c8d718a6b08b23a808abdf7560ebe0cb24d1f5.tar.gz bcm5719-llvm-47c8d718a6b08b23a808abdf7560ebe0cb24d1f5.zip |
Implement feof and xmalloc
llvm-svn: 5478
Diffstat (limited to 'llvm/runtime')
-rw-r--r-- | llvm/runtime/libdummy/dummylib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/runtime/libdummy/dummylib.c b/llvm/runtime/libdummy/dummylib.c index e5e255de3ef..ef2d86e67bf 100644 --- a/llvm/runtime/libdummy/dummylib.c +++ b/llvm/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;} |