|
|
1.1 ! root 1: /* ! 2: * misc. POSIX emulation for COHERENT ! 3: */ ! 4: ! 5: #include <stdio.h> ! 6: #include <string.h> ! 7: #include <errno.h> ! 8: #include <sys/types.h> ! 9: #include <unistd.h> ! 10: ! 11: #if 0 ! 12: #if COHERENT ! 13: char * ! 14: getcwd(buf, len) ! 15: char *buf; ! 16: size_t len; ! 17: { ! 18: extern char *getwd(); ! 19: char *cwd; ! 20: ! 21: if ((cwd = getwd()) == NULL) ! 22: return NULL; ! 23: if (strlen(cwd)+1 >= len) { ! 24: errno = ERANGE; ! 25: return NULL; ! 26: } ! 27: return strcpy(buf, cwd); ! 28: } ! 29: ! 30: long ! 31: ulimit(cmd, limit) ! 32: int cmd; ! 33: long limit; ! 34: { ! 35: return 0; ! 36: } ! 37: #endif ! 38: ! 39: #endif /* 0 */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.