[llvm-commits] CVS: llvm/test/DSGraphs/dummylib.c
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 10 00:55:13 PST 2002
Changes in directory llvm/test/DSGraphs:
dummylib.c updated: 1.2 -> 1.3
---
Log message:
Add a bunch of functions for gap
---
Diffs of the changes:
Index: llvm/test/DSGraphs/dummylib.c
diff -u llvm/test/DSGraphs/dummylib.c:1.2 llvm/test/DSGraphs/dummylib.c:1.3
--- llvm/test/DSGraphs/dummylib.c:1.2 Fri Nov 8 14:47:52 2002
+++ llvm/test/DSGraphs/dummylib.c Sun Nov 10 00:54:20 2002
@@ -27,7 +27,10 @@
int fseek(FILE *stream, long offset, int whence) { return 0; }
int fputs(const char *s, FILE *stream) { return 0; }
void rewind(FILE*F) { }
-
+int fileno(FILE *stream) { return 1; }
+char *ttyname(int desc) { return 0; }
+long sysconf(int name) { return 0; }
+char *tmpnam(char *s) { return s; }
void *calloc(size_t A, size_t B) { return malloc(A*B); }
void *realloc(void *ptr, size_t N) { return ptr; }
@@ -39,6 +42,27 @@
ssize_t read(int fildes, void *buf, size_t nbyte) { return nbyte; }
int close(int FD) { return 0; }
int rename(const char *oldpath, const char *newpath) { return 0; }
+ssize_t write(int fd, const void *buf, size_t count) { return 0; }
+pid_t getpid(void) { return 0; }
+pid_t getppid(void) { return 0; }
+void setbuf(FILE *stream, char *buf) {}
+int isatty(int desc) { return 0; }
+
+
+#include <sys/times.h>
+clock_t times(struct tms *buf) { return 0; }
+
+
+#include <setjmp.h>
+int setjmp(jmp_buf env) { return 0; }
+void longjmp(jmp_buf env, int val) {}
+int kill(pid_t pid, int sig) { return 0; }
+int system(const char *string) { return 0; }
+char *getenv(const char *name) { return 0; }
+typedef void (*sighandler_t)(int);
+
+sighandler_t signal(int signum, sighandler_t handler) { return handler; }
+
@@ -47,6 +71,8 @@
int strncmp(const char *s1, const char *s2, size_t n) { return 0; }
char *strncpy(char *s1, const char *s2, size_t n) { return s1; }
char *strpbrk(const char *s, const char *accept) { return (char*)s; }
+char *strncat(char *dest, const char *src, size_t n) { return dest; }
+
long clock() { return 0; }
char *ctime(const time_t *timep) { return 0; }
More information about the llvm-commits
mailing list