Home | History | Annotate | Download | only in ExecutionEngine

Lines Matching refs:mFD

50     mFD = ::open(filename, open_flags[mode], 0644);
52 if (mFD < 0) {
65 if (flock(mFD, lock_flags[mode] | LOCK_NB) < 0) {
68 if (flock(mFD, lock_flags[mode]) < 0) {
71 ::close(mFD);
72 mFD = -1;
85 if (fstat(mFD, &sfd) == -1 || stat(filename, &sfname) == -1 ||
97 ALOGV("File opened. fd=%d\n", mFD);
98 return mFD;
107 if (mFD >= 0) {
108 flock(mFD, LOCK_UN);
109 ::close(mFD);
110 ALOGV("File closed. fd=%d\n", mFD);
111 mFD = -1;
117 if (mFD < 0) {
122 ssize_t nread = ::read(mFD, static_cast<void *>(buf), count);
141 if (mFD < 0) {
148 ssize_t nwrite = ::write(mFD, static_cast<void const *>(buf), count);
168 return (mFD < 0) ? -1 : lseek(mFD, offset, whence);
173 if (mFD >= 0) {
174 if (ftruncate(mFD, 0) != 0) {