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