[llvm-commits] CVS: llvm/test/Libraries/libdummy/dummylib.c
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 3 13:13:02 PST 2003
Changes in directory llvm/test/Libraries/libdummy:
dummylib.c updated: 1.2 -> 1.3
---
Log message:
Implement feof and xmalloc
---
Diffs of the changes:
Index: llvm/test/Libraries/libdummy/dummylib.c
diff -u llvm/test/Libraries/libdummy/dummylib.c:1.2 llvm/test/Libraries/libdummy/dummylib.c:1.3
--- llvm/test/Libraries/libdummy/dummylib.c:1.2 Fri Jan 31 22:51:12 2003
+++ llvm/test/Libraries/libdummy/dummylib.c Mon Feb 3 13:12:38 2003
@@ -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 @@
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;}
More information about the llvm-commits
mailing list