1 #define _FILE_OFFSET_BITS 64
11 int fd = open("conftest.dat", O_CREAT|O_RDWR, 0600);
12 lock.l_type = F_WRLCK;
13 lock.l_whence = SEEK_SET;
18 fcntl(fd,F_SETLK,&lock);
21 exit(fcntl(fd,F_SETLK,&lock) != 0);
24 unlink("conftest.dat");
25 if (WEXITSTATUS(status)) {
31 exit(WEXITSTATUS(status));