equal
deleted
inserted
replaced
14 |
14 |
15 static struct dirent* (*orig)(DIR *); |
15 static struct dirent* (*orig)(DIR *); |
16 struct dirent *dent; |
16 struct dirent *dent; |
17 |
17 |
18 if (!orig) |
18 if (!orig) |
|
19 #ifdef _LARGEFILE_SOURCE |
19 orig = lib_function("readdir64", NULL); |
20 orig = lib_function("readdir64", NULL); |
|
21 #else |
|
22 orig = lib_function("readdir", NULL); |
|
23 #endif |
20 |
24 |
21 dent = (*orig)(dirp); |
25 dent = (*orig)(dirp); |
22 |
26 |
23 /* skip selected entries */ |
27 /* skip selected entries */ |
24 while (dent && strchr(dent->d_name, '.')) { |
28 while (dent && strchr(dent->d_name, '.')) { |