1
0

emulate access function, too. now even the device node /dev/windrvr6 is

no longer needed
This commit is contained in:
michael 2007-02-25 10:51:28 +00:00
parent 90831fba7f
commit 419f2c983b

View File

@ -719,4 +719,17 @@ int fclose(FILE *fp) {
return (*func)(fp);
}
int access(const char *pathname, int mode) {
static int (*func) (const char*, int);
if (!func)
func = (int (*) (const char*, int)) dlsym(REAL_LIBC, "access");
if (!strcmp(pathname, "/dev/windrvr6")) {
return 0;
} else {
return (*func)(pathname, mode);
}
}
#endif