Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / tests / openme.c
1 #include <fcntl.h>
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <stdio.h>
5
6 int main(int argc, char **argv)
7 {
8         int fd; 
9
10         if (argc != 2) { 
11                 printf("Usage openme <filename>\n"); 
12                 exit(1);
13         }
14
15         fd = open(argv[1], O_RDONLY | O_CREAT, 0600);
16         if (fd == -1) { 
17                 printf("Error opening %s\n", argv[1]);
18                 exit(1);
19         }
20
21         sleep(10000000); 
22         return 0;
23 }