#include #include #include #include #include #include int main(int argc, char *argv[]) { sleep(atoi(argv[1])); for (int i = 0; i < atoi(argv[2]); i++) { int fd = open(argv[3], O_RDONLY); if (fd == -1) { printf("open failed: %s\n", strerror(errno)); return 1; } close(fd); } return 0; }