Lines Matching refs:bf
78 struct flock64 bf; in fcntl() local
301 bf.l_type = obf.l_type; in fcntl()
302 bf.l_whence = obf.l_whence; in fcntl()
303 bf.l_start = (off64_t)obf.l_start; in fcntl()
304 bf.l_len = (off64_t)obf.l_len; in fcntl()
305 bf.l_sysid = (int)obf.l_sysid; in fcntl()
306 bf.l_pid = obf.l_pid; in fcntl()
319 bf.l_type = sbf.l_type; in fcntl()
320 bf.l_whence = sbf.l_whence; in fcntl()
321 bf.l_start = (off64_t)sbf.l_start; in fcntl()
322 bf.l_len = (off64_t)sbf.l_len; in fcntl()
323 bf.l_sysid = sbf.l_sysid; in fcntl()
324 bf.l_pid = sbf.l_pid; in fcntl()
333 bf.l_type = sbf32.l_type; in fcntl()
334 bf.l_whence = sbf32.l_whence; in fcntl()
335 bf.l_start = (off64_t)sbf32.l_start; in fcntl()
336 bf.l_len = (off64_t)sbf32.l_len; in fcntl()
337 bf.l_sysid = sbf32.l_sysid; in fcntl()
338 bf.l_pid = sbf32.l_pid; in fcntl()
345 if ((error = flock_check(vp, &bf, offset, maxoffset)) != 0) in fcntl()
353 &bf, flag, offset, NULL, fp->f_cred, NULL)) != 0) in fcntl()
361 bf.l_type == F_UNLCK) { in fcntl()
363 if (copyout(&bf.l_type, &((struct flock *)arg)->l_type, in fcntl()
364 sizeof (bf.l_type))) in fcntl()
373 obf.l_type = (int16_t)bf.l_type; in fcntl()
374 obf.l_whence = (int16_t)bf.l_whence; in fcntl()
375 obf.l_start = (int32_t)bf.l_start; in fcntl()
376 obf.l_len = (int32_t)bf.l_len; in fcntl()
377 if (bf.l_sysid > SHRT_MAX || bf.l_pid > SHRT_MAX) { in fcntl()
386 obf.l_sysid = (int16_t)bf.l_sysid; in fcntl()
387 obf.l_pid = (int16_t)bf.l_pid; in fcntl()
396 if (bf.l_start > maxoffset || bf.l_len > maxoffset) { in fcntl()
412 sbf.l_type = bf.l_type; in fcntl()
413 sbf.l_whence = bf.l_whence; in fcntl()
414 sbf.l_start = (off_t)bf.l_start; in fcntl()
415 sbf.l_len = (off_t)bf.l_len; in fcntl()
416 sbf.l_sysid = bf.l_sysid; in fcntl()
417 sbf.l_pid = bf.l_pid; in fcntl()
424 if (bf.l_start > MAXOFF32_T || in fcntl()
425 bf.l_len > MAXOFF32_T) { in fcntl()
431 sbf32.l_type = (int16_t)bf.l_type; in fcntl()
432 sbf32.l_whence = (int16_t)bf.l_whence; in fcntl()
433 sbf32.l_start = (off32_t)bf.l_start; in fcntl()
434 sbf32.l_len = (off32_t)bf.l_len; in fcntl()
435 sbf32.l_sysid = (int32_t)bf.l_sysid; in fcntl()
436 sbf32.l_pid = (pid32_t)bf.l_pid; in fcntl()
492 bf.l_type = sbf32.l_type; in fcntl()
493 bf.l_whence = sbf32.l_whence; in fcntl()
494 bf.l_start = (off64_t)sbf32.l_start; in fcntl()
495 bf.l_len = (off64_t)sbf32.l_len; in fcntl()
496 bf.l_sysid = sbf32.l_sysid; in fcntl()
497 bf.l_pid = sbf32.l_pid; in fcntl()
505 if (copyin((void *)arg, &bf, sizeof (bf))) { in fcntl()
529 bf.l_type = (short)bf64_32.l_type; in fcntl()
530 bf.l_whence = (short)bf64_32.l_whence; in fcntl()
531 bf.l_start = bf64_32.l_start; in fcntl()
532 bf.l_len = bf64_32.l_len; in fcntl()
533 bf.l_sysid = (int)bf64_32.l_sysid; in fcntl()
534 bf.l_pid = (pid_t)bf64_32.l_pid; in fcntl()
540 error = flock_check(vp, &bf, offset, maxoffset); in fcntl()
542 error = flock_check(vp, &bf, offset, MAXOFFSET_T); in fcntl()
546 if (vp->v_type == VREG && bf.l_len == 0 && in fcntl()
547 bf.l_start > OFFSET_MAX(fp)) { in fcntl()
557 if ((error = flock_get_start(vp, &bf, offset, &start)) != 0) in fcntl()
585 error = VOP_SPACE(vp, cmd, &bf, flag, offset, fp->f_cred, NULL); in fcntl()
629 bf.l_type = (short)bf64_32.l_type; in fcntl()
630 bf.l_whence = (short)bf64_32.l_whence; in fcntl()
631 bf.l_start = bf64_32.l_start; in fcntl()
632 bf.l_len = bf64_32.l_len; in fcntl()
633 bf.l_sysid = (int)bf64_32.l_sysid; in fcntl()
634 bf.l_pid = (pid_t)bf64_32.l_pid; in fcntl()
636 if ((error = flock_check(vp, &bf, offset, MAXOFFSET_T)) != 0) in fcntl()
639 if ((error = VOP_FRLOCK(vp, cmd, &bf, flag, offset, in fcntl()
643 if ((cmd == F_GETLK) && bf.l_type == F_UNLCK) { in fcntl()
644 if (copyout(&bf.l_type, &((struct flock *)arg)->l_type, in fcntl()
645 sizeof (bf.l_type))) in fcntl()
662 bf64_32.l_type = (int16_t)bf.l_type; in fcntl()
663 bf64_32.l_whence = (int16_t)bf.l_whence; in fcntl()
664 bf64_32.l_start = bf.l_start; in fcntl()
665 bf64_32.l_len = bf.l_len; in fcntl()
666 bf64_32.l_sysid = (int32_t)bf.l_sysid; in fcntl()
667 bf64_32.l_pid = (pid32_t)bf.l_pid; in fcntl()