]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: let stat.h take care of stat64
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 30 Jan 2012 15:45:55 +0000 (13:45 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 30 Jan 2012 15:51:58 +0000 (13:51 -0200)
This fixes testsuite build in 32 bits machines.

testsuite/path.c

index d70f31e18e63a586cbb13a9f9d6ab4adbe1cd49a..75dbf7c05d53382ecb27dc1191c9e58a03401adb 100644 (file)
@@ -157,24 +157,6 @@ TS_EXPORT int stat(const char *path, struct stat *st)
        return _stat(p, st);
 }
 
-TS_EXPORT int stat64(const char *path, struct stat64 *st)
-{
-       const char *p;
-       char buf[PATH_MAX * 2];
-       static int (*_stat64)(const char *path, struct stat64 *buf);
-
-       if (!get_rootpath(__func__))
-               return -1;
-
-       _stat64 = get_libc_func("stat64");
-
-       p = trap_path(path, buf);
-       if (p == NULL)
-               return -1;
-
-       return _stat64(p, st);
-}
-
 TS_EXPORT int __xstat(int ver, const char *path, struct stat *st)
 {
        const char *p;