projects
/
usb-driver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90831fb
)
emulate access function, too. now even the device node /dev/windrvr6 is
author
michael
<michael>
Sun, 25 Feb 2007 10:51:28 +0000
(10:51 +0000)
committer
michael
<michael>
Sun, 25 Feb 2007 10:51:28 +0000
(10:51 +0000)
no longer needed
usb-driver.c
patch
|
blob
|
blame
|
history
diff --git
a/usb-driver.c
b/usb-driver.c
index 75a1bc5255a11ef64f1c2b1423f85edef351bc43..692208ecd2f4b166135086533da3bed09ad78d2f 100644
(file)
--- a/
usb-driver.c
+++ b/
usb-driver.c
@@
-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
Impressum
,
Datenschutz