Lines Matching refs:openMode
44 BFile::BFile(const entry_ref* ref, uint32 openMode)
48 SetTo(ref, openMode);
54 BFile::BFile(const BEntry* entry, uint32 openMode)
58 SetTo(entry, openMode);
64 BFile::BFile(const char* path, uint32 openMode)
68 SetTo(path, openMode);
75 BFile::BFile(const BDirectory *dir, const char* path, uint32 openMode)
79 SetTo(dir, path, openMode);
98 BFile::SetTo(const entry_ref* ref, uint32 openMode)
107 return SetTo(ref->name, openMode);
109 openMode |= O_CLOEXEC;
112 openMode, DEFFILEMODE & ~__gUmask);
115 fMode = openMode;
127 BFile::SetTo(const BEntry* entry, uint32 openMode)
136 openMode |= O_CLOEXEC;
138 int fd = _kern_open(entry->fDirFd, entry->fName, openMode | O_CLOEXEC,
142 fMode = openMode;
154 BFile::SetTo(const char* path, uint32 openMode)
161 openMode |= O_CLOEXEC;
163 int fd = _kern_open(-1, path, openMode, DEFFILEMODE & ~__gUmask);
166 fMode = openMode;
179 BFile::SetTo(const BDirectory* dir, const char* path, uint32 openMode)
186 openMode |= O_CLOEXEC;
188 int fd = _kern_open(dir->fDirFd, path, openMode, DEFFILEMODE & ~__gUmask);
191 fMode = openMode;