Lines Matching refs:fd
33 test1(int fd)
43 res = fcntl(fd, F_SETLK, &fl);
50 res = fcntl(fd, F_SETLK, &fl);
65 test2(int fd)
72 if (lseek(fd, len, SEEK_SET) == -1)
79 res = fcntl(fd, F_SETLK, &fl);
86 if (lseek(fd, 0, SEEK_SET) == -1)
92 res = fcntl(fd, F_GETLK, &fl);
114 int c, error, fd, i;
135 fd = make_file(1024);
140 error |= tests[i].testfn(fd);