Lines Matching refs:aflock
470 struct flock aflock; in LockRange() local
471 aflock.l_start = nByteOffset; in LockRange()
472 aflock.l_whence = SEEK_SET; in LockRange()
473 aflock.l_len = nBytes; in LockRange()
533 aflock.l_type = nLockMode; in LockRange()
534 if (fcntl(pInstanceData->nHandle, F_GETLK, &aflock) == -1) in LockRange()
554 if (aflock.l_type != F_UNLCK) in LockRange()
560 aflock.l_type = nLockMode; in LockRange()
561 if (fcntl(pInstanceData->nHandle, F_SETLK, &aflock) == -1) in LockRange()
582 struct flock aflock; in UnlockRange() local
583 aflock.l_type = F_UNLCK; in UnlockRange()
584 aflock.l_start = nByteOffset; in UnlockRange()
585 aflock.l_whence = SEEK_SET; in UnlockRange()
586 aflock.l_len = nBytes; in UnlockRange()
601 if (fcntl(pInstanceData->nHandle, F_SETLK, &aflock) != -1) in UnlockRange()