#include "lldb/Host/posix/LockFilePosix.h"
#include "llvm/Support/Errno.h"
#include <fcntl.h>
#include <unistd.h>
usingnamespacelldb;
usingnamespacelldb_private;
static Status fileLock(int fd, int cmd, int lock_type, const uint64_t start,
const uint64_t len) { … }
LockFilePosix::LockFilePosix(int fd) : … { … }
LockFilePosix::~LockFilePosix() { … }
Status LockFilePosix::DoWriteLock(const uint64_t start, const uint64_t len) { … }
Status LockFilePosix::DoTryWriteLock(const uint64_t start, const uint64_t len) { … }
Status LockFilePosix::DoReadLock(const uint64_t start, const uint64_t len) { … }
Status LockFilePosix::DoTryReadLock(const uint64_t start, const uint64_t len) { … }
Status LockFilePosix::DoUnlock() { … }