Home | History | Annotate | Download | only in Support

Lines Matching full:pmode

42 inline static int oflag(FileHandle::OpenMode pMode) {
44 if (FileHandle::Unknown == pMode)
47 if (FileHandle::ReadWrite == (pMode & FileHandle::ReadWrite))
49 else if (FileHandle::ReadOnly == (pMode & FileHandle::ReadOnly))
51 else if (FileHandle::WriteOnly == (pMode & FileHandle::WriteOnly))
54 if (FileHandle::Append == (pMode & FileHandle::Append))
57 if (FileHandle::Create == (pMode & FileHandle::Create))
60 if (FileHandle::Truncate == (pMode & FileHandle::Truncate))
77 FileHandle::OpenMode pMode,
79 if (isOpened() || Unknown == pMode) {
84 m_OpenMode = pMode;
86 m_Handler = sys::fs::detail::open(pPath, oflag(pMode));
88 m_Handler = sys::fs::detail::open(pPath, oflag(pMode),
106 bool FileHandle::delegate(int pFD, FileHandle::OpenModeEnum pMode) {
113 m_OpenMode = OpenMode(pMode);