Searched refs:openMode (Results 1 - 25 of 166) sorted by relevance

1234567

/haiku/src/add-ons/kernel/file_systems/ext2/
H A DUtility.h28 open_mode_to_access(int openMode) argument
30 openMode &= O_RWMASK;
31 if (openMode == O_RDONLY)
33 if (openMode == O_WRONLY)
H A DAttribute.h29 status_t CheckAccess(const char* name, int openMode);
37 int openMode, attr_cookie** _cookie);
38 status_t Open(const char* name, int openMode,
H A DAttribute.cpp65 Attribute::CheckAccess(const char* name, int openMode) argument
67 return fInode->CheckPermissions(open_mode_to_access(openMode)
68 | (openMode & O_TRUNC ? W_OK : 0));
115 Attribute::Create(const char* name, type_code type, int openMode, argument
118 status_t status = CheckAccess(name, openMode);
131 cookie->open_mode = openMode;
136 if ((openMode & O_TRUNC) != 0)
145 Attribute::Open(const char* name, int openMode, attr_cookie** _cookie) argument
148 status_t status = CheckAccess(name, openMode);
162 cookie->open_mode = openMode;
[all...]
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DUtility.h36 open_mode_to_access(int openMode) argument
38 openMode &= O_RWMASK;
39 if (openMode == O_RDONLY)
41 if (openMode == O_WRONLY)
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DUtility.h57 open_mode_to_access(int openMode) argument
59 openMode &= O_RWMASK;
60 if (openMode == O_RDONLY)
62 if (openMode == O_WRONLY)
H A DAttribute.h29 status_t CheckAccess(const char* name, int openMode);
32 int openMode, attr_cookie** _cookie);
33 status_t Open(const char* name, int openMode,
H A DAttribute.cpp50 Attribute::CheckAccess(const char* name, int openMode) argument
52 return fInode->CheckPermissions(open_mode_to_access(openMode)
53 | (openMode & O_TRUNC ? W_OK : 0));
58 Attribute::Open(const char* name, int openMode, attr_cookie** _cookie) argument
61 status_t status = CheckAccess(name, openMode);
77 cookie->open_mode = openMode;
/haiku/src/system/libroot/posix/
H A Dfcntl.cpp32 open(const char *path, int openMode, ...) argument
35 if (openMode & O_CREAT) {
37 va_start(args, openMode);
43 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_open(-1, path, openMode, perms));
48 openat(int fd, const char *path, int openMode, ...) argument
51 if (openMode & O_CREAT) {
53 va_start(args, openMode);
59 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_open(fd, path, openMode, perms));
/haiku/src/kits/storage/
H A DFile.cpp44 BFile::BFile(const entry_ref* ref, uint32 openMode) argument
48 SetTo(ref, openMode);
54 BFile::BFile(const BEntry* entry, uint32 openMode) argument
58 SetTo(entry, openMode);
64 BFile::BFile(const char* path, uint32 openMode) argument
68 SetTo(path, openMode);
75 BFile::BFile(const BDirectory *dir, const char* path, uint32 openMode) argument
79 SetTo(dir, path, openMode);
98 BFile::SetTo(const entry_ref* ref, uint32 openMode) argument
107 return SetTo(ref->name, openMode);
127 SetTo(const BEntry* entry, uint32 openMode) argument
154 SetTo(const char* path, uint32 openMode) argument
179 SetTo(const BDirectory* dir, const char* path, uint32 openMode) argument
[all...]
/haiku/headers/os/storage/
H A DFile.h21 BFile(const entry_ref *ref, uint32 openMode);
22 BFile(const BEntry *entry, uint32 openMode);
23 BFile(const char *path, uint32 openMode);
24 BFile(const BDirectory *dir, const char *path, uint32 openMode);
27 status_t SetTo(const entry_ref *ref, uint32 openMode);
28 status_t SetTo(const BEntry *entry, uint32 openMode);
29 status_t SetTo(const char *path, uint32 openMode);
30 status_t SetTo(const BDirectory *dir, const char *path, uint32 openMode);
/haiku/headers/build/os/storage/
H A DFile.h35 BFile(const entry_ref *ref, uint32 openMode);
36 BFile(const BEntry *entry, uint32 openMode);
37 BFile(const char *path, uint32 openMode);
38 BFile(const BDirectory *dir, const char *path, uint32 openMode);
41 status_t SetTo(const entry_ref *ref, uint32 openMode);
42 status_t SetTo(const BEntry *entry, uint32 openMode);
43 status_t SetTo(const char *path, uint32 openMode);
44 status_t SetTo(const BDirectory *dir, const char *path, uint32 openMode);
/haiku/src/build/libbe/storage/
H A DFile.cpp55 \param openMode the mode in which the file should be opened
56 \see SetTo() for values for \a openMode
58 BFile::BFile(const entry_ref *ref, uint32 openMode) argument
63 SetTo(ref, openMode);
70 \param openMode the mode in which the file should be opened
71 \see SetTo() for values for \a openMode
73 BFile::BFile(const BEntry *entry, uint32 openMode) argument
78 SetTo(entry, openMode);
85 \param openMode the mode in which the file should be opened
86 \see SetTo() for values for \a openMode
88 BFile(const char *path, uint32 openMode) argument
106 BFile(const BDirectory *dir, const char *path, uint32 openMode) argument
157 SetTo(const entry_ref *ref, uint32 openMode) argument
199 SetTo(const BEntry *entry, uint32 openMode) argument
240 SetTo(const char *path, uint32 openMode) argument
282 SetTo(const BDirectory *dir, const char *path, uint32 openMode) argument
[all...]
/haiku/headers/os/kernel/
H A Dfs_attr.h32 uint32 type, int openMode);
34 int openMode);
/haiku/src/add-ons/kernel/file_systems/packagefs/nodes/
H A DUnpackingAttributeCookie.h24 int openMode);
28 const StringKey& name, int openMode,
H A DAutoPackageAttributes.h37 const StringKey& name, int openMode,
/haiku/headers/build/os/kernel/
H A Dfs_attr.h33 uint32 type, int openMode);
35 int openMode);
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DUtility.h139 open_mode_to_access(int openMode) argument
141 openMode &= O_RWMASK;
142 if (openMode == O_RDONLY)
144 if (openMode == O_WRONLY)
H A DAttribute.h27 status_t CheckAccess(const char* name, int openMode);
33 int openMode, attr_cookie** _cookie);
34 status_t Open(const char* name, int openMode,
H A DAttribute.cpp58 Attribute::CheckAccess(const char* name, int openMode) argument
72 return fInode->CheckPermissions(open_mode_to_access(openMode)
73 | (openMode & O_TRUNC ? W_OK : 0));
120 Attribute::Create(const char* name, type_code type, int openMode, argument
123 status_t status = CheckAccess(name, openMode);
128 if (exists && (openMode & O_EXCL) != 0)
140 cookie->open_mode = openMode;
143 if (exists && (openMode & O_TRUNC) != 0)
152 Attribute::Open(const char* name, int openMode, attr_cookie** _cookie) argument
154 status_t status = CheckAccess(name, openMode);
[all...]
/haiku/src/build/libroot/
H A Dfunction_remapper.cpp221 open(const char* path, int openMode, ...) argument
226 if ((openMode & O_CREAT) != 0) {
228 va_start(args, openMode);
235 return _haiku_build_open(path, openMode, permissions);
240 openat(int fd, const char* path, int openMode, ...) argument
245 if ((openMode & O_CREAT) != 0) {
247 va_start(args, openMode);
254 return _haiku_build_openat(fd, path, openMode, permissions);
340 fs_fopen_attr(int fd, const char *attribute, uint32 type, int openMode) argument
344 return _haiku_build_fs_fopen_attr(fd, attribute, type, openMode);
[all...]
H A Dremapped_functions.h42 int _haiku_build_open(const char* path, int openMode, mode_t permissions);
43 int _haiku_build_openat(int fd, const char* path, int openMode,
60 uint32 type, int openMode);
62 int openMode);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DFDManager.cpp131 FDManager::SetFile(BFile* file, const char* path, uint32 openMode) argument
133 status_t error = file->SetTo(path, openMode);
137 error = file->SetTo(path, openMode);
159 FDManager::Open(const char* path, uint32 openMode, mode_t mode, int& fd) argument
162 fd = open(path, openMode, mode);
170 fd = open(path, openMode, mode);
H A DFDManager.h32 uint32 openMode);
35 static status_t Open(const char* path, uint32 openMode,
/haiku/src/system/libroot/os/
H A Dfs_attr.cpp103 fs_open_attr(const char *path, const char *attribute, uint32 type, int openMode) argument
105 status_t status = _kern_open_attr(-1, path, attribute, type, openMode);
111 fs_fopen_attr(int fd, const char* attribute, uint32 type, int openMode) argument
113 status_t status = _kern_open_attr(fd, NULL, attribute, type, openMode);
/haiku/headers/build/
H A DBeOSBuildCompatibility.h140 int _haiku_build_open(const char* path, int openMode, ...);
141 int _haiku_build_openat(int fd, const char* path, int openMode, ...);
144 int _haiku_build_open(const char* path, int openMode, mode_t permissions);
145 int _haiku_build_openat(int fd, const char* path, int openMode,
183 # define open(path, openMode...) _haiku_build_open(path, openMode)
184 # define openat(fd, path, openMode...) \
185 _haiku_build_openat(fd, path, openMode)

Completed in 131 milliseconds

1234567