diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-18 20:42:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-18 20:42:07 +0000 |
commit | 6d3a877743ece2d68ba9d1745d802d6ff54e505f (patch) | |
tree | da982ea4c5e7e8266d5f7a281165090574e6fa56 /runtime/libdummy/dummylib.c | |
parent | ad3448c91733f14866821c1e5d24ef2ce389a358 (diff) | |
download | external_llvm-6d3a877743ece2d68ba9d1745d802d6ff54e505f.zip external_llvm-6d3a877743ece2d68ba9d1745d802d6ff54e505f.tar.gz external_llvm-6d3a877743ece2d68ba9d1745d802d6ff54e505f.tar.bz2 |
Add lots of functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libdummy/dummylib.c')
-rw-r--r-- | runtime/libdummy/dummylib.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/libdummy/dummylib.c b/runtime/libdummy/dummylib.c index 75c1805..195138a 100644 --- a/runtime/libdummy/dummylib.c +++ b/runtime/libdummy/dummylib.c @@ -3,10 +3,19 @@ #include <time.h> #include <stdarg.h> #include <sys/time.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> + +int stat(const char *file_name, struct stat *buf) { return 0; } +int fstat(int filedes, struct stat *buf) { return 0; } +int lstat(const char *file_name, struct stat *buf) { return 0; } // Varargs function definitions -int ioctl(int d, int request) {return 0; } +int ioctl(int d, int request, ...) {return 0; } int printf(const char *X) {return 0; } +int sscanf(const char *X, const char *Y, ...) { return 0; } +int fprintf(FILE *stream, const char *format, ...) { return 0; } int gettimeofday(struct timeval *tv, void *tz) { return 0; } @@ -21,6 +30,7 @@ int puts(const char *x) { return 0; } void __main() {} int atoi(const char*x) { return 1; } char *fgets(char*Ptr, int x, FILE*F) { return Ptr; } +char *gets(char *C) { return C; } int fclose(FILE*F) { return 0; } FILE *fopen(const char *n, const char*x) { return malloc(sizeof(FILE)); } FILE *freopen(const char *path, const char *mode, FILE *stream) { return 0; } @@ -45,6 +55,9 @@ int feof(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;} +FILE *popen(const char *command, const char *type) { return 0; } +int pclose(FILE *stream) { return 0; } + int ungetc(int c, FILE *stream) { return 0; } int setvbuf(FILE *stream, char *buf, int mode , size_t size) { return 0; } void rewind(FILE*F) { } |