Home | History | Annotate | Download | only in fcntl

Lines Matching refs:flocks

129 struct flock flocks;
154 flocks.l_type = type ? F_RDLCK : F_WRLCK;
157 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname
159 TEST(fcntl(fd, F_SETLKW, &flocks));
164 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s Failed, errno=%d : %s",
169 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = %s returned %ld",
174 flocks.l_type = F_UNLCK;
176 * Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname
178 TEST(fcntl(fd, F_SETLKW, &flocks));
183 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = F_UNLCK Failed, errno=%d : %s",
189 "fcntl(%s, F_SETLKW, &flocks) flocks.l_type = F_UNLCK returned %ld",
226 /* set needed fields in the flocks structure */
227 flocks.l_whence = 1;
228 flocks.l_start = 0;
229 flocks.l_len = 0;
230 flocks.l_pid = getpid();