Lines Matching refs:bf
80 struct flock64 bf; in fcntl() local
341 bf.l_type = obf.l_type; in fcntl()
342 bf.l_whence = obf.l_whence; in fcntl()
343 bf.l_start = (off64_t)obf.l_start; in fcntl()
344 bf.l_len = (off64_t)obf.l_len; in fcntl()
345 bf.l_sysid = (int)obf.l_sysid; in fcntl()
346 bf.l_pid = obf.l_pid; in fcntl()
359 bf.l_type = sbf.l_type; in fcntl()
360 bf.l_whence = sbf.l_whence; in fcntl()
361 bf.l_start = (off64_t)sbf.l_start; in fcntl()
362 bf.l_len = (off64_t)sbf.l_len; in fcntl()
363 bf.l_sysid = sbf.l_sysid; in fcntl()
364 bf.l_pid = sbf.l_pid; in fcntl()
373 bf.l_type = sbf32.l_type; in fcntl()
374 bf.l_whence = sbf32.l_whence; in fcntl()
375 bf.l_start = (off64_t)sbf32.l_start; in fcntl()
376 bf.l_len = (off64_t)sbf32.l_len; in fcntl()
377 bf.l_sysid = sbf32.l_sysid; in fcntl()
378 bf.l_pid = sbf32.l_pid; in fcntl()
385 if ((error = flock_check(vp, &bf, offset, maxoffset)) != 0) in fcntl()
390 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
391 bf.l_len != 0) { in fcntl()
395 if (bf.l_type < F_RDLCK || bf.l_type > F_UNLCK) { in fcntl()
407 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
408 bf.l_len != 0) { in fcntl()
427 &bf, flag, offset, NULL, fp->f_cred, NULL)) != 0) in fcntl()
438 if ((error = ofdlock(fp, cmd, &bf, flag, offset)) != 0) in fcntl()
447 cmd == F_OFD_GETLK) && bf.l_type == F_UNLCK) { in fcntl()
449 if (copyout(&bf.l_type, &((struct flock *)arg)->l_type, in fcntl()
450 sizeof (bf.l_type))) in fcntl()
459 obf.l_type = (int16_t)bf.l_type; in fcntl()
460 obf.l_whence = (int16_t)bf.l_whence; in fcntl()
461 obf.l_start = (int32_t)bf.l_start; in fcntl()
462 obf.l_len = (int32_t)bf.l_len; in fcntl()
463 if (bf.l_sysid > SHRT_MAX || bf.l_pid > SHRT_MAX) { in fcntl()
472 obf.l_sysid = (int16_t)bf.l_sysid; in fcntl()
473 obf.l_pid = (int16_t)bf.l_pid; in fcntl()
482 if (bf.l_start > maxoffset || bf.l_len > maxoffset) { in fcntl()
498 sbf.l_type = bf.l_type; in fcntl()
499 sbf.l_whence = bf.l_whence; in fcntl()
500 sbf.l_start = (off_t)bf.l_start; in fcntl()
501 sbf.l_len = (off_t)bf.l_len; in fcntl()
502 sbf.l_sysid = bf.l_sysid; in fcntl()
503 sbf.l_pid = bf.l_pid; in fcntl()
510 if (bf.l_start > MAXOFF32_T || in fcntl()
511 bf.l_len > MAXOFF32_T) { in fcntl()
517 sbf32.l_type = (int16_t)bf.l_type; in fcntl()
518 sbf32.l_whence = (int16_t)bf.l_whence; in fcntl()
519 sbf32.l_start = (off32_t)bf.l_start; in fcntl()
520 sbf32.l_len = (off32_t)bf.l_len; in fcntl()
521 sbf32.l_sysid = (int32_t)bf.l_sysid; in fcntl()
522 sbf32.l_pid = (pid32_t)bf.l_pid; in fcntl()
578 bf.l_type = sbf32.l_type; in fcntl()
579 bf.l_whence = sbf32.l_whence; in fcntl()
580 bf.l_start = (off64_t)sbf32.l_start; in fcntl()
581 bf.l_len = (off64_t)sbf32.l_len; in fcntl()
582 bf.l_sysid = sbf32.l_sysid; in fcntl()
583 bf.l_pid = sbf32.l_pid; in fcntl()
591 if (copyin((void *)arg, &bf, sizeof (bf))) { in fcntl()
615 bf.l_type = (short)bf64_32.l_type; in fcntl()
616 bf.l_whence = (short)bf64_32.l_whence; in fcntl()
617 bf.l_start = bf64_32.l_start; in fcntl()
618 bf.l_len = bf64_32.l_len; in fcntl()
619 bf.l_sysid = (int)bf64_32.l_sysid; in fcntl()
620 bf.l_pid = (pid_t)bf64_32.l_pid; in fcntl()
626 error = flock_check(vp, &bf, offset, maxoffset); in fcntl()
628 error = flock_check(vp, &bf, offset, MAXOFFSET_T); in fcntl()
632 if (vp->v_type == VREG && bf.l_len == 0 && in fcntl()
633 bf.l_start > OFFSET_MAX(fp)) { in fcntl()
643 if ((error = flock_get_start(vp, &bf, offset, &start)) != 0) in fcntl()
671 error = VOP_SPACE(vp, cmd, &bf, flag, offset, fp->f_cred, NULL); in fcntl()
730 bf.l_type = (short)bf64_32.l_type; in fcntl()
731 bf.l_whence = (short)bf64_32.l_whence; in fcntl()
732 bf.l_start = bf64_32.l_start; in fcntl()
733 bf.l_len = bf64_32.l_len; in fcntl()
734 bf.l_sysid = (int)bf64_32.l_sysid; in fcntl()
735 bf.l_pid = (pid_t)bf64_32.l_pid; in fcntl()
737 if ((error = flock_check(vp, &bf, offset, MAXOFFSET_T)) != 0) in fcntl()
742 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
743 bf.l_len != 0) { in fcntl()
747 if (bf.l_type < F_RDLCK || bf.l_type > F_UNLCK) { in fcntl()
759 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
760 bf.l_len != 0) { in fcntl()
775 if ((error = VOP_FRLOCK(vp, cmd, &bf, flag, offset, in fcntl()
787 if ((error = ofdlock(fp, cmd, &bf, flag, offset)) != 0) in fcntl()
792 bf.l_type == F_UNLCK) { in fcntl()
793 if (copyout(&bf.l_type, &((struct flock *)arg)->l_type, in fcntl()
794 sizeof (bf.l_type))) in fcntl()
811 bf64_32.l_type = (int16_t)bf.l_type; in fcntl()
812 bf64_32.l_whence = (int16_t)bf.l_whence; in fcntl()
813 bf64_32.l_start = bf.l_start; in fcntl()
814 bf64_32.l_len = bf.l_len; in fcntl()
815 bf64_32.l_sysid = (int32_t)bf.l_sysid; in fcntl()
816 bf64_32.l_pid = (pid32_t)bf.l_pid; in fcntl()