Lines Matching refs:bf

79 	struct flock64 bf;  in fcntl()  local
308 bf.l_type = obf.l_type; in fcntl()
309 bf.l_whence = obf.l_whence; in fcntl()
310 bf.l_start = (off64_t)obf.l_start; in fcntl()
311 bf.l_len = (off64_t)obf.l_len; in fcntl()
312 bf.l_sysid = (int)obf.l_sysid; in fcntl()
313 bf.l_pid = obf.l_pid; in fcntl()
326 bf.l_type = sbf.l_type; in fcntl()
327 bf.l_whence = sbf.l_whence; in fcntl()
328 bf.l_start = (off64_t)sbf.l_start; in fcntl()
329 bf.l_len = (off64_t)sbf.l_len; in fcntl()
330 bf.l_sysid = sbf.l_sysid; in fcntl()
331 bf.l_pid = sbf.l_pid; in fcntl()
340 bf.l_type = sbf32.l_type; in fcntl()
341 bf.l_whence = sbf32.l_whence; in fcntl()
342 bf.l_start = (off64_t)sbf32.l_start; in fcntl()
343 bf.l_len = (off64_t)sbf32.l_len; in fcntl()
344 bf.l_sysid = sbf32.l_sysid; in fcntl()
345 bf.l_pid = sbf32.l_pid; in fcntl()
352 if ((error = flock_check(vp, &bf, offset, maxoffset)) != 0) in fcntl()
357 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
358 bf.l_len != 0) { in fcntl()
362 if (bf.l_type < F_RDLCK || bf.l_type > F_UNLCK) { in fcntl()
374 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
375 bf.l_len != 0) { in fcntl()
394 &bf, flag, offset, NULL, fp->f_cred, NULL)) != 0) in fcntl()
405 if ((error = ofdlock(fp, cmd, &bf, flag, offset)) != 0) in fcntl()
414 cmd == F_OFD_GETLK) && bf.l_type == F_UNLCK) { in fcntl()
416 if (copyout(&bf.l_type, &((struct flock *)arg)->l_type, in fcntl()
417 sizeof (bf.l_type))) in fcntl()
426 obf.l_type = (int16_t)bf.l_type; in fcntl()
427 obf.l_whence = (int16_t)bf.l_whence; in fcntl()
428 obf.l_start = (int32_t)bf.l_start; in fcntl()
429 obf.l_len = (int32_t)bf.l_len; in fcntl()
430 if (bf.l_sysid > SHRT_MAX || bf.l_pid > SHRT_MAX) { in fcntl()
439 obf.l_sysid = (int16_t)bf.l_sysid; in fcntl()
440 obf.l_pid = (int16_t)bf.l_pid; in fcntl()
449 if (bf.l_start > maxoffset || bf.l_len > maxoffset) { in fcntl()
465 sbf.l_type = bf.l_type; in fcntl()
466 sbf.l_whence = bf.l_whence; in fcntl()
467 sbf.l_start = (off_t)bf.l_start; in fcntl()
468 sbf.l_len = (off_t)bf.l_len; in fcntl()
469 sbf.l_sysid = bf.l_sysid; in fcntl()
470 sbf.l_pid = bf.l_pid; in fcntl()
477 if (bf.l_start > MAXOFF32_T || in fcntl()
478 bf.l_len > MAXOFF32_T) { in fcntl()
484 sbf32.l_type = (int16_t)bf.l_type; in fcntl()
485 sbf32.l_whence = (int16_t)bf.l_whence; in fcntl()
486 sbf32.l_start = (off32_t)bf.l_start; in fcntl()
487 sbf32.l_len = (off32_t)bf.l_len; in fcntl()
488 sbf32.l_sysid = (int32_t)bf.l_sysid; in fcntl()
489 sbf32.l_pid = (pid32_t)bf.l_pid; in fcntl()
545 bf.l_type = sbf32.l_type; in fcntl()
546 bf.l_whence = sbf32.l_whence; in fcntl()
547 bf.l_start = (off64_t)sbf32.l_start; in fcntl()
548 bf.l_len = (off64_t)sbf32.l_len; in fcntl()
549 bf.l_sysid = sbf32.l_sysid; in fcntl()
550 bf.l_pid = sbf32.l_pid; in fcntl()
558 if (copyin((void *)arg, &bf, sizeof (bf))) { in fcntl()
582 bf.l_type = (short)bf64_32.l_type; in fcntl()
583 bf.l_whence = (short)bf64_32.l_whence; in fcntl()
584 bf.l_start = bf64_32.l_start; in fcntl()
585 bf.l_len = bf64_32.l_len; in fcntl()
586 bf.l_sysid = (int)bf64_32.l_sysid; in fcntl()
587 bf.l_pid = (pid_t)bf64_32.l_pid; in fcntl()
593 error = flock_check(vp, &bf, offset, maxoffset); in fcntl()
595 error = flock_check(vp, &bf, offset, MAXOFFSET_T); in fcntl()
599 if (vp->v_type == VREG && bf.l_len == 0 && in fcntl()
600 bf.l_start > OFFSET_MAX(fp)) { in fcntl()
610 if ((error = flock_get_start(vp, &bf, offset, &start)) != 0) in fcntl()
638 error = VOP_SPACE(vp, cmd, &bf, flag, offset, fp->f_cred, NULL); in fcntl()
697 bf.l_type = (short)bf64_32.l_type; in fcntl()
698 bf.l_whence = (short)bf64_32.l_whence; in fcntl()
699 bf.l_start = bf64_32.l_start; in fcntl()
700 bf.l_len = bf64_32.l_len; in fcntl()
701 bf.l_sysid = (int)bf64_32.l_sysid; in fcntl()
702 bf.l_pid = (pid_t)bf64_32.l_pid; in fcntl()
704 if ((error = flock_check(vp, &bf, offset, MAXOFFSET_T)) != 0) in fcntl()
709 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
710 bf.l_len != 0) { in fcntl()
714 if (bf.l_type < F_RDLCK || bf.l_type > F_UNLCK) { in fcntl()
726 if (bf.l_whence != 0 || bf.l_start != 0 || in fcntl()
727 bf.l_len != 0) { in fcntl()
742 if ((error = VOP_FRLOCK(vp, cmd, &bf, flag, offset, in fcntl()
754 if ((error = ofdlock(fp, cmd, &bf, flag, offset)) != 0) in fcntl()
759 bf.l_type == F_UNLCK) { in fcntl()
760 if (copyout(&bf.l_type, &((struct flock *)arg)->l_type, in fcntl()
761 sizeof (bf.l_type))) in fcntl()
778 bf64_32.l_type = (int16_t)bf.l_type; in fcntl()
779 bf64_32.l_whence = (int16_t)bf.l_whence; in fcntl()
780 bf64_32.l_start = bf.l_start; in fcntl()
781 bf64_32.l_len = bf.l_len; in fcntl()
782 bf64_32.l_sysid = (int32_t)bf.l_sysid; in fcntl()
783 bf64_32.l_pid = (pid32_t)bf.l_pid; in fcntl()