Home | History | Annotate | Download | only in Support

Lines Matching full:mfd

33   : mFD(-1),
65 mFD = ::open(mName.c_str(), mOpenFlags, 0644);
66 if (mFD > 0) {
81 // Check the file integrity by examining whether the inode referring to the mFD
85 // Get the file status of file descriptor mFD.
87 if (::fstat(mFD, &fd_stat) == 0) {
122 if ((mFD < 0) || hasError()) {
146 if (::flock(mFD, lock_operation) == 0) {
148 // Here we got a lock but we need to check whether the mFD still
150 // check may failed when another process deleted the original file mFD
190 if (mFD < 0) {
195 if (::flock(mFD, LOCK_UN) == 0) {
207 if (mFD < 0 || hasError()) {
217 if (!map->create(NULL, mFD, pOffset, pLength, pIsReadOnly)) {
227 if (mFD < 0 || hasError()) {
233 if (::fstat(mFD, &file_stat) == 0) {
245 if ((mFD < 0) || hasError()) {
250 off_t result = ::lseek(mFD, pOffset, SEEK_SET);
261 if ((mFD < 0) || hasError()) {
266 off_t result = ::lseek(mFD, 0, SEEK_CUR);
281 if (mFD > 0) {
282 ::close(mFD);
283 mFD = -1;