Home
last modified time | relevance | path

Searched refs:accessMode (Results 1 – 25 of 38) sorted by relevance

12

/haiku/src/system/libroot/posix/unistd/
H A Daccess.c16 access(const char* path, int accessMode) in access() argument
18 return faccessat(AT_FDCWD, path, accessMode, 0); in access()
23 faccessat(int fd, const char* path, int accessMode, int flag) in faccessat() argument
25 RETURN_AND_SET_ERRNO(_kern_access(fd, path, accessMode, in faccessat()
/haiku/src/build/libroot/
H A Dfs_darwin.cpp21 static int eaccess(const char* path, int accessMode);
56 eaccess(const char* path, int accessMode) in eaccess() argument
100 if ((accessMode & ~fileMode) != 0) { in eaccess()
110 faccessat(int fd, const char* path, int accessMode, int flag) in faccessat() argument
120 return (flag & AT_EACCESS) != 0 ? eaccess(path, accessMode) in faccessat()
121 : access(path, accessMode); in faccessat()
134 return (flag & AT_EACCESS) != 0 ? eaccess(fullPath, accessMode) in faccessat()
135 : access(fullPath, accessMode); in faccessat()
H A Dfunction_remapper.cpp88 faccessat(int fd, const char* path, int accessMode, int flag) in faccessat() argument
92 return _haiku_build_faccessat(fd, path, accessMode, flag); in faccessat()
H A Dremapped_functions.h23 int _haiku_build_faccessat(int fd, const char* path, int accessMode,
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DInode.cpp154 Inode::CheckPermissions(int accessMode) const in CheckPermissions()
157 if ((accessMode & W_OK) != 0 && fVolume->IsReadOnly()) in CheckPermissions()
160 return check_access_permissions(accessMode, Mode(), (gid_t)GroupID(), in CheckPermissions()
H A DInode.h60 status_t CheckPermissions(int accessMode) const;
H A Dkernel_interface.cpp532 exfat_access(fs_volume* _volume, fs_vnode* _node, int accessMode) in exfat_access() argument
535 return inode->CheckPermissions(accessMode); in exfat_access()
/haiku/headers/build/host/darwin/
H A Dunistd.h10 int faccessat(int fd, const char* path, int accessMode, int flag);
/haiku/src/add-ons/kernel/file_systems/ufs2/
H A DInode.cpp238 Inode::CheckPermissions(int accessMode) const in CheckPermissions()
241 if ((accessMode & W_OK) != 0/* && fVolume->IsReadOnly()*/) in CheckPermissions()
244 return check_access_permissions(accessMode, Mode(), (gid_t)GroupID(), in CheckPermissions()
H A DInode.h115 status_t CheckPermissions(int accessMode) const;
H A Dkernel_interface.cpp321 ufs2_access(fs_volume *_volume, fs_vnode *_node, int accessMode) in ufs2_access() argument
324 return inode->CheckPermissions(accessMode); in ufs2_access()
/haiku/headers/build/
H A DBeOSBuildCompatibility.h95 int _haiku_build_faccessat(int fd, const char* path, int accessMode,
138 # define faccessat(fd, path, accessMode, flag) \ argument
139 _haiku_build_faccessat(fd, path, accessMode, flag)
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A Dkernel_interface.cpp899 int accessMode = open_mode_to_access(openMode); in ramfs_open() local
902 accessMode |= ACCESS_W; in ramfs_open()
905 error = node->CheckPermissions(accessMode); in ramfs_open()
1531 int accessMode = open_mode_to_access(openMode); in ramfs_create_attr() local
1533 accessMode |= ACCESS_W; in ramfs_create_attr()
1536 status_t error = node->CheckPermissions(accessMode); in ramfs_create_attr()
1602 int accessMode = open_mode_to_access(openMode); in ramfs_open_attr() local
1604 accessMode |= ACCESS_W; in ramfs_open_attr()
1608 error = node->CheckPermissions(accessMode); in ramfs_open_attr()
1693 int accessMode = open_mode_to_access(cookie->GetOpenMode()); in ramfs_read_attr() local
[all …]
/haiku/headers/private/fs_shell/
H A Dfssh_unistd.h40 extern int fssh_access(const char *path, int accessMode);
/haiku/src/add-ons/kernel/file_systems/xfs/
H A Dkernel_interface.cpp339 xfs_access(fs_volume *_volume, fs_vnode *_node, int accessMode) in xfs_access() argument
342 return inode->CheckPermissions(accessMode); in xfs_access()
559 int accessMode = open_mode_to_access(openMode) | (openMode & O_TRUNC ? W_OK : 0); in xfs_open_attr() local
560 status = inode->CheckPermissions(accessMode); in xfs_open_attr()
H A DInode.cpp340 Inode::CheckPermissions(int accessMode) const in CheckPermissions()
343 if ((accessMode & W_OK) != 0 && fVolume->IsReadOnly()) in CheckPermissions()
346 return check_access_permissions(accessMode, Mode(), (uint32)GroupId(), (uint32)UserId()); in CheckPermissions()
H A DInode.h305 status_t CheckPermissions(int accessMode) const;
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DInode.cpp161 Inode::CheckPermissions(int accessMode) const in CheckPermissions()
164 if ((accessMode & W_OK) != 0 && fVolume->IsReadOnly()) in CheckPermissions()
167 return check_access_permissions(accessMode, Mode(), (gid_t)fNode.GroupID(), in CheckPermissions()
H A DInode.h47 status_t CheckPermissions(int accessMode) const;
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dsupport.h234 status_t check_access_permissions_internal(int accessMode, mode_t mode, gid_t nodeGroupID,
/haiku/headers/posix/
H A Dunistd.h336 extern int access(const char *path, int accessMode);
337 extern int faccessat(int fd, const char *path, int accessMode, int flag);
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DInode.h49 status_t CheckPermissions(int accessMode) const;
H A DInode.cpp215 Inode::CheckPermissions(int accessMode) const in CheckPermissions()
218 if ((accessMode & W_OK) != 0 && fVolume->IsReadOnly()) in CheckPermissions()
221 return check_access_permissions(accessMode, Mode(), (gid_t)fNode.GroupID(), in CheckPermissions()
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/
H A DBeOSKernelVolume.cpp839 int accessMode = open_mode_to_access(openMode) | (create ? W_OK : 0); in _OpenAttr() local
840 status_t error = Access(node, accessMode); in _OpenAttr()
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dkernel_interface.cpp49 static status_t fs_access(fs_volume* _volume, fs_vnode* _node, int accessMode);
1073 fs_access(fs_volume* _volume, fs_vnode* _node, int accessMode) in fs_access() argument
1079 if ((accessMode & W_OK) != 0 && (volume->fs_info_flags & B_FS_IS_READONLY) != 0) in fs_access()
1082 return check_access_permissions(accessMode, node->mode, node->gid, node->uid); in fs_access()

12