Lines Matching +full:- +full:l

17  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
61 /* NOBLOCK - immediate success */
64 /* WILLBLOCK - blocks, then succeeds (parent must unlock records) */
88 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
90 F_RDLCK, 0, 0L, 0L, WILLBLOCK},
93 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
95 F_WRLCK, 0, 0L, 0L, WILLBLOCK},
98 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
100 F_RDLCK, 0, 0L, 0L, NOBLOCK},
103 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
105 F_WRLCK, 0, 0L, 0L, WILLBLOCK},
109 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
114 F_RDLCK, 0, 0L, 5L, WILLBLOCK},
117 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
122 F_WRLCK, 0, 0L, 5L, WILLBLOCK},
125 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
130 F_RDLCK, 0, 0L, 5L, NOBLOCK},
133 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
138 F_WRLCK, 0, 0L, 5L, WILLBLOCK},
142 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
144 F_RDLCK, 0, 7L, 0L, WILLBLOCK},
147 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
149 F_WRLCK, 0, 7L, 0L, WILLBLOCK},
152 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
154 F_RDLCK, 0, 7L, 0L, NOBLOCK},
157 {F_RDLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
159 F_WRLCK, 0, 7L, 0L, WILLBLOCK},
166 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
171 F_RDLCK, 0, 0L, 5L, WILLBLOCK},
177 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
182 F_WRLCK, 0, 0L, 5L, WILLBLOCK},
188 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
193 F_RDLCK, 0, 0L, 5L, NOBLOCK},
199 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
204 F_WRLCK, 0, 0L, 5L, WILLBLOCK},
211 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
213 F_RDLCK, 0, 1L, 3L, WILLBLOCK},
219 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
221 F_WRLCK, 0, 1L, 3L, WILLBLOCK},
227 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
229 F_RDLCK, 0, 1L, 3L, NOBLOCK},
235 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
237 F_WRLCK, 0, 1L, 3L, WILLBLOCK},
244 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
246 F_RDLCK, 0, 2L, 5L, WILLBLOCK},
252 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
254 F_WRLCK, 0, 2L, 5L, WILLBLOCK},
260 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
262 F_RDLCK, 0, 2L, 5L, NOBLOCK},
268 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
270 F_WRLCK, 0, 2L, 5L, WILLBLOCK},
278 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
280 F_RDLCK, 0, 6L, 0L, NOBLOCK},
286 {F_WRLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
288 F_WRLCK, 0, 6L, 0L, NOBLOCK},
294 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
296 F_RDLCK, 0, 6L, 0L, NOBLOCK},
302 {F_RDLCK, 0, 0L, 5L, SKIP, 0, 0L, 0L,
304 F_WRLCK, 0, 6L, 0L, NOBLOCK},
309 {F_WRLCK, 0, 2L, 5L, SKIP, 0, 0L, 0L,
311 F_RDLCK, 0, 0L, 2L, NOBLOCK},
314 {F_WRLCK, 0, 2L, 5L, SKIP, 0, 0L, 0L,
316 F_WRLCK, 0, 0L, 2L, NOBLOCK},
319 {F_RDLCK, 0, 2L, 5L, SKIP, 0, 0L, 0L,
321 F_RDLCK, 0, 0L, 2L, NOBLOCK},
324 {F_RDLCK, 0, 2L, 5L, SKIP, 0, 0L, 0L,
326 F_WRLCK, 0, 0L, 2L, NOBLOCK},
330 {F_WRLCK, 0, 4L, 0L, SKIP, 0, 0L, 0L,
332 F_RDLCK, 0, 2L, 5L, WILLBLOCK},
335 {F_WRLCK, 0, 4L, 0L, SKIP, 0, 0L, 0L,
337 F_WRLCK, 0, 2L, 5L, WILLBLOCK},
340 {F_RDLCK, 0, 4L, 0L, SKIP, 0, 0L, 0L,
342 F_RDLCK, 0, 2L, 5L, NOBLOCK},
345 {F_RDLCK, 0, 4L, 0L, SKIP, 0, 0L, 0L,
347 F_WRLCK, 0, 2L, 5L, WILLBLOCK},
352 * with L_start = -3
354 {F_WRLCK, 1, -3L, 2L, SKIP, 0, 0L, 0L,
356 F_WRLCK, 0, 1L, 1L, NOBLOCK},
360 * with L_start = -3
362 {F_WRLCK, 1, -3L, 2L, SKIP, 0, 0L, 0L,
364 F_WRLCK, 0, 4L, 1L, NOBLOCK},
368 * with L_start = -3
370 {F_WRLCK, 1, -3L, 2L, SKIP, 0, 0L, 0L,
372 F_WRLCK, 0, 2L, 1L, WILLBLOCK},
376 * with L_start = -3
378 {F_WRLCK, 1, -3L, 2L, SKIP, 0, 0L, 0L,
380 F_WRLCK, 0, 3L, 1L, WILLBLOCK},
384 * with L_start = -3
386 {F_WRLCK, 1, -3L, 5L, SKIP, 0, 0L, 0L,
388 F_WRLCK, 0, 1L, 1L, NOBLOCK},
392 * with L_start = -3
394 {F_WRLCK, 1, -3L, 5L, SKIP, 0, 0L, 0L,
396 F_WRLCK, 0, 1L, 1L, NOBLOCK},
400 * with L_start = -3
402 {F_WRLCK, 1, -3L, 5L, SKIP, 0, 0L, 0L,
404 F_WRLCK, 0, 2L, 1L, WILLBLOCK},
408 * with L_start = -3
410 {F_WRLCK, 1, -3L, 5L, SKIP, 0, 0L, 0L,
412 F_WRLCK, 0, 5L, 1L, WILLBLOCK},
416 * with L_start = -3
418 {F_WRLCK, 1, -3L, 5L, SKIP, 0, 0L, 0L,
420 F_WRLCK, 0, 6L, 1L, WILLBLOCK},
424 * L_start = -2 and L_len = -2
426 {F_WRLCK, 1, 2L, -2L, SKIP, 0, 0L, 0L,
428 F_WRLCK, 0, 1L, 1L, NOBLOCK},
432 * L_start = -2 and L_len = -2
434 {F_WRLCK, 1, -2L, -2L, SKIP, 0, 0L, 0L,
436 F_WRLCK, 0, 4L, 1L, NOBLOCK},
440 * L_start = -2 and L_len = -2
442 {F_WRLCK, 1, -2L, -2L, SKIP, 0, 0L, 0L,
444 F_WRLCK, 0, 2L, 1L, WILLBLOCK},
448 * L_start = -2 and L_len = -2
450 {F_WRLCK, 1, -2L, -2L, SKIP, 0, 0L, 0L,
452 F_WRLCK, 0, 3L, 1L, WILLBLOCK},
456 * L_start = 2 and L_len = -2
458 {F_WRLCK, 1, 2L, -2L, SKIP, 0, 0L, 0L,
460 F_WRLCK, 0, 5L, 1L, NOBLOCK},
464 * L_start = 2 and L_len = -2
466 {F_WRLCK, 1, 2L, -2L, SKIP, 0, 0L, 0L,
468 F_WRLCK, 0, 8L, 1L, NOBLOCK},
472 * L_start = 2 and L_len = -2
474 {F_WRLCK, 1, 2L, -2L, SKIP, 0, 0L, 0L,
476 F_WRLCK, 0, 6L, 1L, WILLBLOCK},
480 * L_start = 2 and L_len = -2
482 {F_WRLCK, 1, 2L, -2L, SKIP, 0, 0L, 0L,
484 F_WRLCK, 0, 7L, 1L, WILLBLOCK},
488 * L_start = 2 and L_len = -5
490 {F_WRLCK, 1, 2L, -5L, SKIP, 0, 0L, 0L,
492 F_WRLCK, 0, 2L, 1L, NOBLOCK},
496 * L_start = 2 and L_len = -5
498 {F_WRLCK, 1, 2L, -5L, SKIP, 0, 0L, 0L,
500 F_WRLCK, 0, 8L, 1L, NOBLOCK},
504 * L_start = 2 and L_len = -5
506 {F_WRLCK, 1, 2L, -5L, SKIP, 0, 0L, 0L,
508 F_WRLCK, 0, 3L, 1L, WILLBLOCK},
512 * L_start = 2 and L_len = -5
514 {F_WRLCK, 1, 2L, -5L, SKIP, 0, 0L, 0L,
516 F_WRLCK, 0, 5L, 1L, WILLBLOCK},
520 * L_start = 2 and L_len = -5
522 {F_WRLCK, 1, 2L, -5L, SKIP, 0, 0L, 0L,
524 F_WRLCK, 0, 7L, 1L, WILLBLOCK},
528 {F_WRLCK, 0, 0L, 0L, SKIP, 0, 0L, 0L,
530 F_WRLCK, 0, 15L, 0L, WILLBLOCK},
614 flock.l_type = thiscase->c_type; in dochild()
615 flock.l_whence = thiscase->c_whence; in dochild()
616 flock.l_start = thiscase->c_start; in dochild()
617 flock.l_len = thiscase->c_len; in dochild()
633 if ((thiscase->c_flag) == NOBLOCK) { in dochild()
642 if (flock.l_whence != thiscase->c_whence) { in dochild()
646 flock.l_whence, thiscase->c_whence); in dochild()
650 if (flock.l_start != thiscase->c_start) { in dochild()
655 (int64_t) thiscase->c_start); in dochild()
659 if (flock.l_len != thiscase->c_len) { in dochild()
664 (int64_t) thiscase->c_len); in dochild()
684 if (flock.l_type != thiscase->a_type) { in dochild()
689 thiscase->a_type); in dochild()
700 flock.l_type = thiscase->c_type; in dochild()
701 flock.l_whence = thiscase->c_whence; in dochild()
702 flock.l_start = thiscase->c_start; in dochild()
703 flock.l_len = thiscase->c_len; in dochild()
707 if ((thiscase->c_flag) == NOBLOCK) { in dochild()
716 if ((thiscase->c_flag) == WILLBLOCK) { in dochild()
717 if (rc != -1 || (errno != EACCES && errno != EAGAIN)) { in dochild()
719 "SETLK: rc = %d, errno = %d, -1/EAGAIN or EACCES " in dochild()
743 case -1: in dochild()
792 flock.l_type = thiscase->a_type; in run_test()
793 flock.l_whence = thiscase->a_whence; in run_test()
794 flock.l_start = thiscase->a_start; in run_test()
795 flock.l_len = thiscase->a_len; in run_test()
805 if ((thiscase->b_type) != SKIP) { in run_test()
806 flock.l_type = thiscase->b_type; in run_test()
807 flock.l_whence = thiscase->b_whence; in run_test()
808 flock.l_start = thiscase->b_start; in run_test()
809 flock.l_len = thiscase->b_len; in run_test()
819 if ((thiscase->c_type) == SKIP) { in run_test()
833 if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type, in run_test()
834 thiscase->c_whence, thiscase->c_start, in run_test()
835 thiscase->c_len, thiscase->c_flag, in run_test()
836 thiscase->a_type, fd, test, parent) < 0) { in run_test()
847 if ((thiscase->c_flag) == WILLBLOCK) { in run_test()
869 flock.l_start = 0L; in run_test()
870 flock.l_len = 0L; in run_test()
952 maybe_run_child(&dochild, "nddddddddd", 2, &thiscase->c_type, in main()
953 &thiscase->c_whence, &thiscase->c_start, in main()
954 &thiscase->c_len, &thiscase->c_flag, &thiscase->a_type, in main()
1025 flock.l_whence = -1; in main()
1026 flock.l_start = 0L; in main()
1027 flock.l_len = 0L; in main()
1062 flock.l_type = thiscase->a_type; in main()
1063 flock.l_whence = thiscase->a_whence; in main()
1064 flock.l_start = thiscase->a_start; in main()
1065 flock.l_len = thiscase->a_len; in main()
1084 if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type, in main()
1085 thiscase->c_whence, thiscase->c_start, in main()
1086 thiscase->c_len, thiscase->c_flag, in main()
1087 thiscase->a_type, fd, test, parent) < 0) { in main()
1121 flock.l_start = 0L; in main()
1122 flock.l_len = 0L; in main()