Lines Matching refs:mFD
48 : mFD(-1),
85 mFD = ::open(mName.c_str(), mOpenFlags, 0644);
86 if (mFD > 0) {
101 // Check the file integrity by examining whether the inode referring to the mFD
105 // Get the file status of file descriptor mFD.
107 if (::fstat(mFD, &fd_stat) == 0) {
142 if ((mFD < 0) || hasError()) {
166 if (::flock(mFD, lock_operation) == 0) {
168 // Here we got a lock but we need to check whether the mFD still
170 // check may failed when another process deleted the original file mFD
210 if (mFD < 0) {
215 if (::flock(mFD, LOCK_UN) == 0) {
227 if (mFD < 0 || hasError()) {
237 if (!map->create(NULL, mFD, pOffset, pLength, pIsReadOnly)) {
247 if (mFD < 0 || hasError()) {
253 if (::fstat(mFD, &file_stat) == 0) {
265 if ((mFD < 0) || hasError()) {
270 off_t result = ::lseek(mFD, pOffset, SEEK_SET);
281 if ((mFD < 0) || hasError()) {
286 off_t result = ::lseek(mFD, 0, SEEK_CUR);
301 if (mFD > 0) {
302 ::close(mFD);
303 mFD = -1;