#include #include #include #include #include char *testcase_description = "Separate file access(2)"; void testcase(unsigned long long *iterations, unsigned long nr) { char tmpfile[] = "/tmp/willitscale.XXXXXX"; int fd = mkstemp(tmpfile); assert(fd >= 0); close(fd); while (1) { int error = access(tmpfile, R_OK); assert(error == 0); (*iterations)++; } unlink(tmpfile); }