#include #include #include // required by binutils! long sysconf(int name) { printf("SYSCONF CALLED WITH : %s",name); return 0; } // set file mode creation mask mode_t umask(mode_t mask) { return mask; } // chmod int chmod(const char * path, mode_t mode) { return -1; } // manipulating file descriptor int fcntl(int fd, int cmd, ...) { return -1; } // working directory char *getwd(char *buf) { static char wd[]="/"; buf=wd; return buf; } // check if access allowed int access(const char *pathname, int mode) { //TODO: at leas check if this file exists! return 0; } // update time int utime(const char *filename, const int *x) { return -1; } // rmdir int rmdir (const char *pathname) { return -1; } // chonw int chown(const char *path, uid_t owner, gid_t group) { return -1; }