Lines Matching refs:m_fd
151 : m_fd(fd_invalid), m_safeWrite(false)
156 : m_fd(fd_invalid)
163 : m_fd(fd_invalid)
183 return m_fd;
189 return m_fd != fd_invalid;
273 m_fd = _wopen(m_filePath.GetRaw().c_str(), flags, accessMode);
277 m_fd = open(tmpFileName, flags, accessMode);
279 syscall_check(m_fd != fd_invalid, m_filePath, wxT("opening file"));
297 bool closed = (close(m_fd) != -1);
300 m_fd = fd_invalid;
318 bool flushed = (FLUSH_FD(m_fd) != -1);
332 int current = ::read(m_fd, (char*)buffer + totalRead, count - totalRead);
356 sint64 result = ::write(m_fd, buffer, nCount);
371 sint64 result = SEEK_FD(m_fd, offset, SEEK_SET);
387 sint64 pos = TELL_FD(m_fd);
401 if (STAT_FD(m_fd, &buf) == -1) {
431 bool result = _chsize_s(m_fd, new_len) == 0;
434 bool result = chsize(m_fd, new_len) == 0;
437 bool result = ftruncate(m_fd, new_len) != -1;