Lines Matching full:lock
30 * Various test cases are used to lock a file opened without mandatory
87 /* #1 Parent making a write lock on entire file */
89 /* Child attempting a read lock on entire file */
92 /* #2 Parent making a write lock on entire file */
94 /* Child attempting a write lock on entire file */
97 /* #3 Parent making a read lock on entire file */
99 /* Child attempting a read lock on entire file */
102 /* #4 Parent making a read lock on entire file */
104 /* Child attempting a write lock on entire file */
108 /* #5 Parent making a write lock on entire file */
111 * Child attempting a read lock from beginning of
116 /* #6 Parent making a write lock on entire file */
119 * Child attempting a write lock from beginning of
124 /* #7 Parent making a read lock on entire file */
127 * Child attempting a read lock from beginning of
132 /* #8 Parent making a read lock on entire file */
135 * Child attempting a write lock from beginning of
141 /* #9 Parent making a write lock on entire file */
143 /* Child attempting a read lock from byte 7 to end of file */
146 /* #10 Parent making a write lock on entire file */
148 /* Child attempting a write lock from byte 7 to end of file */
151 /* #11 Parent making a read lock on entire file */
153 /* Child attempting a read lock from byte 7 to end of file */
156 /* #12 Parent making a read lock on entire file */
158 /* Child attempting a write lock from byte 7 to end of file */
163 * #13 Parent making a write lock from beginning of
168 * Child attempting a read lock from beginning of
174 * #14 Parent making a write lock from beginning of file
179 * Child attempting a write lock from beginning of
185 * #15 Parent making a read lock from beginning of
190 * Child attempting a read lock from beginning of
196 * #16 Parent making a read lock from beginning of
201 * Child attempting a write lock from beginning
208 * #17 Parent making a write lock from beginning
212 /* Child attempting a read lock from byte 2 to byte 4 */
216 * #18 Parent making a write lock from beginning of
220 /* Child attempting a write lock from byte 2 to byte 4 */
224 * #19 Parent making a read lock from beginning of
228 /* Child attempting a read lock from byte 2 to byte 4 */
232 * #20 Parent making a read lock from beginning of
236 /* Child attempting a write lock from byte 2 to byte 4 */
241 * #21 Parent making a write lock from beginning of
245 /* Child attempting a read lock from byte 3 to byte 7 */
249 * #22 Parent making a write lock from beginning
253 /* Child attempting a write lock from byte 3 to byte 7 */
257 * #23 Parent making a read lock from beginning of
261 /* Child attempting a read lock from byte 3 to byte 7 */
265 * #24 Parent making a read lock from beginning of
269 /* Child attempting a write lock from byte 3 to byte 7 */
275 * #25 Parent making a write lock from beginning of
279 /* Child attempting a read lock from byte 7 to end of file */
283 * #26 Parent making a write lock from beginning of
287 /* Child attempting a write lock from byte 7 to end of file */
291 * #27 Parent making a read lock from beginning of
295 /* Child attempting a read lock from byte 7 to end of file */
299 * #28 Parent making a read lock from beginning of
303 /* Child attempting a write lock from byte 7 to end of file */
308 /* #29 Parent making a write lock from byte 3 to byte 7 */
310 /* Child attempting a read lock from beginning of file to byte 2 */
313 /* #30 Parent making a write lock from byte 3 to byte 7 */
315 /* Child attempting a write lock from beginning of file to byte 2 */
318 /* #31 Parent making a write lock from byte 3 to byte 7 */
320 /* Child attempting a read lock from beginning of file to byte 2 */
323 /* #32 Parent making a write lock from byte 3 to byte 7 */
325 /* Child attempting a write lock from beginning of file to byte 2 */
329 /* #33 Parent making a write lock from byte 5 to end of file */
331 /* Child attempting a read lock from byte 3 to byte 7 */
334 /* #34 Parent making a write lock from byte 5 to end of file */
336 /* Child attempting a write lock from byte 3 to byte 7 */
339 /* #35 Parent making a read lock from byte 5 to end of file */
341 /* Child attempting a read lock from byte 3 to byte 7 */
344 /* #36 Parent making a read lock from byte 5 to end of file */
346 /* Child attempting a write lock from byte 3 to byte 7 */
351 * #37 Parent making write lock from byte 2 to byte 3
355 /* Child attempting write lock on byte 1 */
359 * #38 Parent making write lock from byte 2 to byte 3
363 /* Child attempting write lock on byte 4 */
367 * #39 Parent making write lock from byte 2 to byte 3
371 /* Child attempting write lock on byte 2 */
375 * #40 Parent making write lock from byte 2 to byte 3
379 /* Child attempting write lock on byte 3 */
383 * #41 Parent making write lock from byte 2 to byte 6
387 /* Child attempting write lock on byte 1 */
391 * #42 Parent making write lock from byte 2 to byte 6
395 /* Child attempting write lock on byte 7 */
399 * #43 Parent making write lock from byte 2 to byte 6
403 /* Child attempting write lock on byte 2 */
407 * #44 Parent making write lock from byte 2 to byte 6
411 /* Child attempting write lock on byte 5 */
415 * #45 Parent making write lock from byte 2 to byte 6
419 /* Child attempting write lock on byte 6 */
423 * #46 Parent making write lock from byte 2 to byte 3 with
427 /* Child attempting write lock on byte 1 */
431 * #47 Parent making write lock from byte 2 to byte 3 with
435 /* Child attempting write lock on byte 4 */
439 * #48 Parent making write lock from byte 2 to byte 3 with
443 /* Child attempting write lock on byte 2 */
447 * #49 Parent making write lock from byte 2 to byte 3 with
451 /* Child attempting write lock on byte 3 */
455 * #50 Parent making write lock from byte 6 to byte 7 with
459 /* Child attempting write lock on byte 5 */
463 * #51 Parent making write lock from byte 6 to byte 7 with
467 /* Child attempting write lock on byte 8 */
471 * #52 Parent making write lock from byte 6 to byte 7 with
475 /* Child attempting write lock on byte 6 */
479 * #53 Parent making write lock from byte 6 to byte 7 with
483 /* Child attempting write lock on byte 7 */
487 * #54 Parent making write lock from byte 3 to byte 7 with
491 /* Child attempting write lock on byte 2 */
495 * #55 Parent making write lock from byte 3 to byte 7 with
499 /* Child attempting write lock on byte 8 */
503 * #56 Parent making write lock from byte 3 to byte 7 with
507 /* Child attempting write lock on byte 3 */
511 * #57 Parent making write lock from byte 3 to byte 7 with
515 /* Child attempting write lock on byte 5 */
519 * #58 Parent making write lock from byte 3 to byte 7 with
523 /* Child attempting write lock on byte 7 */
527 /* #59 Parent making write lock on entire file */
529 /* Child attempting write lock on byte 15 to end of file */
622 * Check to see if child lock will succeed. If it will, FLOCK in dochild()
625 * lock that will block it in l_type. in dochild()
628 tst_resm(TFAIL, "Attempt to check lock status failed"); in dochild()
687 "should be parent's first lock type of %d", in dochild()
696 * now try to set the lock, nonblocking in dochild()
709 "lock failed"); in dochild()
724 /* accidentally got the lock */ in dochild()
729 * Lock should succeed after blocking and parent releases in dochild()
730 * lock, tell the parent to release the locks. in dochild()
731 * Do the lock in this process, send the signal in a child in dochild()
739 * signal and wait for the lock.) in dochild()
761 "lock failed"); in dochild()
797 /* set the initial parent lock on the file */ in run_test()
799 tst_resm(TFAIL, "First parent lock failed"); in run_test()
811 /* set the second parent lock */ in run_test()
813 tst_resm(TFAIL, "Second parent lock failed"); in run_test()
850 * blocking lock. Set a 60 second alarm to break the in run_test()
864 * setup lock structure for parent to delete in run_test()
865 * blocking lock then wait for child to exit in run_test()
873 "lock failed"); in run_test()
922 * Set flag to let parent know that child is ready to have lock in catch1()
1036 tst_resm(TFAIL, "Lock succeeded when it should have " in main()
1051 * Check that a lock on end of file is still valid when in main()
1053 * process attempts to lock new data in main()
1067 /* Set the initial parent lock on the file */ in main()
1069 tst_resm(TFAIL, "First parent lock failed"); in main()
1099 * Wait for a signal from the child then remove blocking lock. in main()
1116 * Set up lock structure for parent to delete in main()
1117 * blocking lock then wait for child to exit in main()
1124 tst_resm(TFAIL, "Attempt to release parent lock " in main()