Home | History | Annotate | Download | only in flock

Lines Matching refs:fd

64 	int fd;
77 fd = open(FILE_NAME, O_RDWR);
79 if (fd == -1)
89 if (self_exec(argv[0], "ds", fd, FILE_NAME) < 0)
93 childfunc(fd);
97 TEST(flock(fd, LOCK_EX | LOCK_NB));
117 close(fd);
125 static void childfunc(int fd)
144 TEST(flock(fd, LOCK_UN));
166 close(fd);
174 int fd;
184 fd = open(FILE_NAME, O_CREAT | O_TRUNC | O_RDWR, 0666);
185 if (fd < 0) {
189 close(fd);