6 * tests shared lock using varsym_get()
14 main(int ac, char **av)
28 printf("timing standard fstat() syscall\n");
30 fd = open("/tmp/lockmgr3.test", O_RDWR|O_CREAT, 0666);
33 while (stop_timing(0, NULL) == 0) {
44 n = strtol(av[1], NULL, 0);
49 for (i = 0; i < n; ++i) {
51 asprintf(&path, "/tmp/lockmgr.test");
52 fd = open(path, O_RDWR|O_CREAT, 0666);
54 for (count = 0; count < max; ++count) {
63 while (wait3(&status, 0, NULL) >= 0 || errno == EINTR)
65 stop_timing(max * n * 4, "lockmgr3");