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

1234567

/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.h38 //! Tests if operations specified by openMode can be performed on file *name
39 status_t CheckAccess(const char* name, int openMode);
42 int openMode, attr_cookie** _cookie);
44 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/headers/private/file_systems/
H A Dfs_ops_support.h20 open_mode_to_access(int openMode) argument
22 openMode &= O_RWMASK;
23 if (openMode == O_RDONLY)
25 if (openMode == O_WRONLY)
27 if (openMode == O_RDWR)
/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/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/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,
H A DUnpackingAttributeCookie.cpp55 PackageNodeAttribute* attribute, int openMode)
60 fOpenMode(openMode)
76 int openMode, AttributeCookie*& _cookie)
86 name, openMode, _cookie);
91 UnpackingAttributeCookie(packageNode, attribute, openMode);
54 UnpackingAttributeCookie(PackageNode* packageNode, PackageNodeAttribute* attribute, int openMode) argument
75 Open(PackageNode* packageNode, const StringKey& name, int openMode, AttributeCookie*& _cookie) argument
/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 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.cpp214 open(const char* path, int openMode, ...) argument
219 if ((openMode & O_CREAT) != 0) {
221 va_start(args, openMode);
228 return _haiku_build_open(path, openMode, permissions);
233 openat(int fd, const char* path, int openMode, ...) argument
238 if ((openMode & O_CREAT) != 0) {
240 va_start(args, openMode);
247 return _haiku_build_openat(fd, path, openMode, permissions);
333 fs_fopen_attr(int fd, const char *attribute, uint32 type, int openMode) argument
337 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/add-ons/kernel/file_systems/ext2/
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/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/src/add-ons/kernel/file_systems/xfs/
H A DAttribute.h26 virtual status_t Open(const char* name, int openMode,
/haiku/headers/build/
H A DBeOSBuildCompatibility.h115 int _haiku_build_open(const char* path, int openMode, ...);
116 int _haiku_build_openat(int fd, const char* path, int openMode, ...);
119 int _haiku_build_open(const char* path, int openMode, mode_t permissions);
120 int _haiku_build_openat(int fd, const char* path, int openMode,
158 # define open(path, openMode...) _haiku_build_open(path, openMode)
159 # define openat(fd, path, openMode...) \
160 _haiku_build_openat(fd, path, openMode)

Completed in 134 milliseconds

1234567