示例#1
0
int stat64(const char *pathname, struct stat64 *buf) {
    static int (*real_stat64)(const char *pathname, struct stat64 *buf) = NULL;
    const char *p;
    int ret;

    GET_PATH(stat64);
    if (p) {
	ret = real_stat64(p, buf);
	PUT_PATH(-1);
    }
    return real_stat64(pathname, buf);
}
示例#2
0
int stat64(char *name, void *st64)
{
    if (smbw_path(name)) {
        double xx[32];
        int ret = stat(name, xx);
        stat64_convert(xx, st64);
        return ret;
    }
    return real_stat64(name, st64);
}