Searched refs:perms (Results 1 - 25 of 49) sorted by last modified time

12

/haiku/src/tools/fs_shell/
H A Dvfs.cpp2959 create_vnode(struct vnode *directory, const char *name, int openMode, int perms, bool kernel) argument
2969 status = FS_CALL(directory, create, name, openMode, perms, &cookie, &newID);
3077 file_create_entry_ref(fssh_mount_id mountID, fssh_vnode_id directoryID, const char *name, int openMode, int perms, bool kernel) argument
3082 FUNCTION(("file_create_entry_ref: name = '%s', omode %x, perms %d, kernel %d\n", name, openMode, perms, kernel));
3089 status = create_vnode(directory, name, openMode, perms, kernel);
3097 file_create(int fd, char *path, int openMode, int perms, bool kernel) argument
3103 FUNCTION(("file_create: path '%s', omode %x, perms %d, kernel %d\n", path, openMode, perms, kernel));
3110 status = create_vnode(directory, name, openMode, perms, kerne
3263 dir_create_entry_ref(fssh_mount_id mountID, fssh_vnode_id parentID, const char *name, int perms, bool kernel) argument
3288 dir_create(int fd, char *path, int perms, bool kernel) argument
5148 _kern_open_entry_ref(fssh_dev_t device, fssh_ino_t inode, const char *name, int openMode, int perms) argument
5173 _kern_open(int fd, const char *path, int openMode, int perms) argument
5267 _kern_create_dir_entry_ref(fssh_dev_t device, fssh_ino_t inode, const char *name, int perms) argument
5289 _kern_create_dir(int fd, const char *path, int perms) argument
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs.cpp5379 int perms, bool kernel)
5456 status = FS_CALL(directory, create, name, openMode | O_EXCL, perms,
5554 int openMode, int perms, bool kernel)
5556 FUNCTION(("file_create_entry_ref: name = '%s', omode %x, perms %d, "
5557 "kernel %d\n", name, openMode, perms, kernel));
5565 status = create_vnode(directory, name, openMode, perms, kernel);
5573 file_create(int fd, char* path, int openMode, int perms, bool kernel) argument
5575 FUNCTION(("file_create: path '%s', omode %x, perms %d, kernel %d\n", path,
5576 openMode, perms, kernel));
5586 return create_vnode(directory.Get(), name, openMode, perms, kerne
5378 create_vnode(struct vnode* directory, const char* name, int openMode, int perms, bool kernel) argument
5553 file_create_entry_ref(dev_t mountID, ino_t directoryID, const char* name, int openMode, int perms, bool kernel) argument
5873 dir_create_entry_ref(dev_t mountID, ino_t parentID, const char* name, int perms, bool kernel) argument
5900 dir_create(int fd, char* path, int perms, bool kernel) argument
8266 _kern_open_entry_ref(dev_t device, ino_t inode, const char* name, int openMode, int perms) argument
8293 _kern_open(int fd, const char* path, int openMode, int perms) argument
8391 _kern_create_dir_entry_ref(dev_t device, ino_t inode, const char* name, int perms) argument
8413 _kern_create_dir(int fd, const char* path, int perms) argument
9040 _user_open_entry_ref(dev_t device, ino_t inode, const char* userName, int openMode, int perms) argument
9063 _user_open(int fd, const char* userPath, int openMode, int perms) argument
9276 _user_create_dir_entry_ref(dev_t device, ino_t inode, const char* userName, int perms) argument
9294 _user_create_dir(int fd, const char* userPath, int perms) argument
9481 _user_create_fifo(int fd, const char* userPath, mode_t perms) argument
[all...]
H A Drootfs.cpp591 int perms, void** _cookie, ino_t* _newID)
668 TRACE(("rootfs_create_dir: dir %p, name = '%s', perms = %d\n", dir, name,
590 rootfs_create(fs_volume* _volume, fs_vnode* _dir, const char* name, int omode, int perms, void** _cookie, ino_t* _newID) argument
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dfile.cpp514 int perms, void **_cookie, ino_t *vnid)
530 DPRINTF(0, ("dosfs_create called: %" B_PRIdINO "/%s perms=%o omode=%o\n",
531 dir->vnid, name, perms, omode));
645 dosfs_mkdir(fs_volume *_vol, fs_vnode *_dir, const char *name, int perms) argument
664 name, perms));
673 // S_IFDIR is never set in perms, so we patch it
674 perms &= ~S_IFMT; perms |= S_IFDIR;
690 if (!(perms & (S_IWUSR | S_IWGRP | S_IWOTH))) {
513 dosfs_create(fs_volume *_vol, fs_vnode *_dir, const char *name, int omode, int perms, void **_cookie, ino_t *vnid) argument
/haiku/headers/private/system/
H A Dsyscalls.h270 const char *name, int openMode, int perms);
272 int perms);
283 const char *name, int perms);
284 extern status_t _kern_create_dir(int fd, const char *path, int perms);
295 extern status_t _kern_create_fifo(int fd, const char *path, mode_t perms);
/haiku/src/system/kernel/device_manager/
H A Ddevfs.cpp1278 int perms)
1294 init_directory_vnode(vnode, perms);
1277 devfs_create_dir(fs_volume* _volume, fs_vnode* _dir, const char* name, int perms) argument
/haiku/src/kits/tracker/infowindow/
H A DFilePermissionsView.cpp228 mode_t perms = 0; local
246 if (node.GetPermissions(&perms) == B_OK) {
247 fReadUserCheckBox->SetValue((int32)(perms & S_IRUSR));
248 fReadGroupCheckBox->SetValue((int32)(perms & S_IRGRP));
249 fReadOtherCheckBox->SetValue((int32)(perms & S_IROTH));
250 fWriteUserCheckBox->SetValue((int32)(perms & S_IWUSR));
251 fWriteGroupCheckBox->SetValue((int32)(perms & S_IWGRP));
252 fWriteOtherCheckBox->SetValue((int32)(perms & S_IWOTH));
253 fExecuteUserCheckBox->SetValue((int32)(perms & S_IXUSR));
254 fExecuteGroupCheckBox->SetValue((int32)(perms
[all...]
/haiku/src/build/libroot/
H A Dfs.cpp481 _kern_create_dir(int fd, const char *path, int perms) argument
490 if (mkdir(realPath.c_str(), perms) < 0)
499 int perms)
508 if (mkdir(realPath.c_str(), perms) < 0)
662 open_file(const char *path, int openMode, int perms) argument
686 int newFD = open(path, openMode, perms);
702 _kern_open(int fd, const char *path, int openMode, int perms) argument
710 return open_file(realPath.c_str(), openMode, perms);
716 int openMode, int perms)
724 return open_file(realPath.c_str(), openMode, perms);
498 _kern_create_dir_entry_ref(dev_t device, ino_t node, const char *name, int perms) argument
715 _kern_open_entry_ref(dev_t device, ino_t node, const char *name, int openMode, int perms) argument
[all...]
/haiku/headers/build/private/kernel/
H A Dsyscalls.h57 const char *name, int openMode, int perms);
59 int perms);
68 const char *name, int perms);
69 extern status_t _kern_create_dir(int fd, const char *path, int perms);
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dwebsearchfs.c61 static int websearchfs_create_gen(fs_volume *_volume, fs_node *dir, const char *name, int omode, int perms, ino_t *vnid, fs_node **node, struct attr_entry *iattrs, bool mkdir, bool uniq);
673 * @param perms create with those permissions
679 static int websearchfs_create_gen(fs_volume *_volume, fs_node *dir, const char *name, int omode, int perms, ino_t *vnid, fs_node **node, struct attr_entry *iattrs, bool mkdir, bool uniq) argument
737 fill_default_stat(&n->st, ns->nsid, n->vnid, (perms & ~S_IFMT) | (mkdir?S_IFDIR:S_IFREG));
783 static status_t websearchfs_create(fs_volume *_volume, fs_vnode *_dir, const char *name, int omode, int perms, void **cookie, ino_t *vnid) argument
794 err = websearchfs_create_gen(_volume, dir, name, omode, perms, vnid, &n, NULL, false, false);
885 static status_t websearchfs_mkdir(fs_volume *_volume, fs_vnode *_dir, const char *name, int perms) argument
889 TRACE("mkdir(%" B_PRId32 ", %" B_PRId64 ", '%s', 0x%08x)\n", ns->nsid, dir->vnid, name, perms);
890 return websearchfs_create_gen(_volume, dir, name, O_EXCL, perms, NULL, NULL, folders_attrs, true, false);
/haiku/src/add-ons/kernel/file_systems/nfs/
H A Dnfs_add_on.c1721 int perms, void **_cookie, ino_t *vnid)
1794 XDROutPacketAddInt32(&call, perms | S_IFREG);
1991 fs_mkdir(fs_volume *_volume, fs_vnode *_dir, const char *name, int perms) argument
2032 XDROutPacketAddInt32(&call, perms | S_IFDIR);
1720 fs_create(fs_volume *_volume, fs_vnode *_dir, const char *name, int omode, int perms, void **_cookie, ino_t *vnid) argument
/haiku/headers/private/fs_shell/
H A Dfssh_fs_interface.h193 const char *name, int openMode, int perms,
210 const char *name, int perms);
/haiku/headers/os/drivers/
H A Dfs_interface.h176 int openMode, int perms, void** _cookie,
190 const char* name, int perms);
/haiku/src/build/libbe/storage/
H A DStatable.cpp149 \param perms a pointer to a mode_t variable to be set to the result
153 BStatable::GetPermissions(mode_t *perms) const
155 status_t error = (perms ? B_OK : B_BAD_VALUE);
160 *perms = (statData.st_mode & S_IUMSK);
165 \param perms the new permissions
169 BStatable::SetPermissions(mode_t perms) argument
174 statData.st_mode = perms;
/haiku/src/add-ons/kernel/file_systems/layers/write_overlay/
H A Dwrite_overlay.cpp157 status_t Create(const char *name, int openMode, int perms,
175 status_t CreateDir(const char *name, int perms);
200 status_t _CreateCommon(const char *name, int type, int perms,
556 OverlayInode::Create(const char *name, int openMode, int perms, void **cookie, argument
560 status_t result = _CreateCommon(name, attribute ? S_ATTR : S_IFREG, perms,
946 OverlayInode::CreateDir(const char *name, int perms) argument
948 return _CreateCommon(name, S_IFDIR, perms, NULL, NULL, false, 0);
1439 OverlayInode::_CreateCommon(const char *name, int type, int perms, argument
1469 entry->inode_number, this, entry->name, (perms & S_IUMSK) | type
1890 int openMode, int perms, voi
1889 overlay_create(fs_volume *volume, fs_vnode *vnode, const char *name, int openMode, int perms, void **cookie, ino_t *newVnodeID) argument
1943 overlay_create_dir(fs_volume *volume, fs_vnode *vnode, const char *name, int perms) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/layers/attribute_overlay/
H A Dattribute_overlay.cpp1342 int openMode, int perms, void **cookie, ino_t *newVnodeID)
1344 OVERLAY_CALL(create, name, openMode, perms, cookie, newVnodeID)
1387 int perms)
1389 OVERLAY_CALL(create_dir, name, perms)
1341 overlay_create(fs_volume *volume, fs_vnode *vnode, const char *name, int openMode, int perms, void **cookie, ino_t *newVnodeID) argument
1386 overlay_create_dir(fs_volume *volume, fs_vnode *vnode, const char *name, int perms) argument
/haiku/src/tests/system/kernel/file_corruption/fs/
H A Dchecksumfs.cpp1670 int perms)
1697 error = volume->CreateDirectory(perms, transaction, newDirectory);
1669 checksumfs_create_dir(fs_volume* fsVolume, fs_vnode* parent, const char* name, int perms) argument
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dxattrs.c70 le16 perms; member in struct:LE_POSIX_ACE
166 acl->ace[i].perms = le16_to_cpu(le_acl->ace[i].perms);
188 le_acl->ace[i].perms = cpu_to_le16(acl->ace[i].perms);
H A Dsecurity.c1370 int perms; local
1375 perms = pxdesc->mode;
1379 perms = (perms & 07707)
1380 | ((pace->perms & 7) << 3);
1388 perms |= pace->perms & 7;
1391 return (perms);
1953 mode_t perms; local
1958 perms
[all...]
H A Dacls.c976 int perms; local
1016 perms = pacl->ace[i].perms;
1020 if (perms & ~7) ok = FALSE;
1033 pchk->mode |= perms << 6;
1040 pchk->mode = (pchk->mode & 07707) | (perms << 3);
1047 pchk->mode |= perms;
1057 pchk->mode = (pchk->mode & 07707) | (perms << 3);
1105 mode |= (pace->perms & 7) << 6;
1109 mode = (mode & 07707) | ((pace->perms
1621 u16 perms; local
1782 u16 perms; local
1865 u16 perms; local
2120 u16 perms; local
3056 mode_t perms; local
3379 mode_t perms; local
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/netfs_server_prefs/
H A DNetFSServerPrefs.cpp476 uint32 perms = 0; local
478 if (!get_permissions(arg, &perms))
480 permissions |= perms;
/haiku/src/system/libroot/posix/
H A Dfcntl.cpp34 int perms = 0; local
38 perms = va_arg(args, int) & ~__gUmask;
43 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_open(-1, path, openMode, perms));
50 int perms = 0; local
54 perms = va_arg(args, int) & ~__gUmask;
59 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_open(fd, path, openMode, perms));
/haiku/headers/private/kernel/
H A Dvfs.h179 int openMode, int perms);
180 int _user_open(int fd, const char *path, int openMode, int perms);
195 const char *name, int perms);
196 status_t _user_create_dir(int fd, const char *path, int perms);
208 status_t _user_create_fifo(int fd, const char *path, mode_t perms);
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A Dkernel_interface.cpp763 int perms, void** _cookie, ino_t* _newVnodeID)
774 " perms = %d\n", volume, vti->ID(), name, openMode, perms);
784 status_t result = inode->Create(name, openMode, perms, cookie, &data,
762 nfs4_create(fs_volume* volume, fs_vnode* dir, const char* name, int openMode, int perms, void** _cookie, ino_t* _newVnodeID) argument
/haiku/src/add-ons/kernel/file_systems/bindfs/
H A Dkernel_interface.cpp605 int openMode, int perms, void** _cookie, ino_t* _newVnodeID)
611 "name: %s, openMode %#x, perms: %x\n",
612 volume, node, node->ID(), name, openMode, perms);
617 perms, _cookie, _newVnodeID);
726 int perms)
731 FUNCTION("volume: %p, node: %p (%" B_PRIdINO "), name: %s, perms: %x\n",
732 volume, node, node->ID(), name, perms);
736 return sourceNode->ops->create_dir(sourceVolume, sourceNode, name, perms);
604 bindfs_create(fs_volume* fsVolume, fs_vnode* fsNode, const char* name, int openMode, int perms, void** _cookie, ino_t* _newVnodeID) argument
725 bindfs_create_dir(fs_volume* fsVolume, fs_vnode* fsNode, const char* name, int perms) argument

Completed in 276 milliseconds

12