/haiku/src/add-ons/kernel/file_systems/bindfs/ |
H A D | Volume.cpp | 71 struct stat st; local 72 if ((stat(source, &st)) != 0) 79 fRootNode = new(std::nothrow) Node(st.st_ino, st.st_mode);
|
H A D | kernel_interface.cpp | 171 struct stat st; local 172 error = sourceNode->ops->read_stat(sourceVolume, sourceNode, &st); 174 Node* node = new(std::nothrow) Node(vnid, st.st_mode); 543 bindfs_read_stat(fs_volume* fsVolume, fs_vnode* fsNode, struct stat* st) argument 553 error = sourceNode->ops->read_stat(sourceVolume, sourceNode, st); 557 st->st_dev = volume->ID(); 575 struct stat st; local 576 memcpy(&st, _st, sizeof(st)); 577 st 1018 bindfs_read_attr_stat(fs_volume* fsVolume, fs_vnode* fsNode, void* cookie, struct stat* st) argument 1052 struct stat st; local [all...] |
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | dosfs.cpp | 500 struct stat st; local 501 if (fstat(fd, &st) >= 0 && S_ISREG(st.st_mode)) { 505 geo.cylinder_count = st.st_size / 0x200; 507 geo.read_only = !(st.st_mode & S_IWUSR);
|
H A D | file.cpp | 184 dosfs_rstat(fs_volume *_vol, fs_vnode *_node, struct stat *st) argument 193 st->st_dev = vol->id; 194 st->st_ino = node->vnid; 195 st->st_mode = make_mode(vol, node); 197 st->st_nlink = 1; 198 st->st_uid = 0; 199 st->st_gid = 0; 200 st->st_size = node->st_size; 201 st->st_blocks = (node->st_size + 511) / 512; 202 st 214 dosfs_wstat(fs_volume *_vol, fs_vnode *_node, const struct stat *st, uint32 mask) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/iso9660/ |
H A D | iso9660.cpp | 53 struct stat st; local 54 if (fstat(fd, &st) < 0 || S_ISDIR(st.st_mode))
|
H A D | kernel_interface.cpp | 480 fs_read_stat(fs_volume* _volume, fs_vnode* _node, struct stat* st) argument 489 st->st_dev = volume->id; 490 st->st_ino = node->id; 491 st->st_nlink = node->attr.stat[FS_DATA_FORMAT].st_nlink; 492 st->st_uid = node->attr.stat[FS_DATA_FORMAT].st_uid; 493 st->st_gid = node->attr.stat[FS_DATA_FORMAT].st_gid; 494 st->st_blksize = 65536; 495 st->st_mode = node->attr.stat[FS_DATA_FORMAT].st_mode; 498 st->st_size = node->dataLen[FS_DATA_FORMAT]; 499 st [all...] |
/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | netfs.cpp | 36 static int netfs_read_stat(void *ns, void *node, struct stat *st); 37 static int netfs_write_stat(void *ns, void *node, struct stat *st, 386 netfs_read_stat(void *ns, void *_node, struct stat *st) argument 389 PRINT("netfs_read_stat(%p, %p, %p)\n", ns, node, st); 390 status_t error = node->GetVolume()->ReadStat(node, st); 398 netfs_write_stat(void *ns, void *_node, struct stat *st, long mask) argument 401 PRINT("netfs_write_stat(%p, %p, %p, %ld)\n", ns, node, st, mask); 402 status_t error = node->GetVolume()->WriteStat(node, st, mask);
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | ClientConnection.cpp | 713 if (truncate(path.GetPath(), request->nodeInfo.st.st_size) < 0) 718 if (chmod(path.GetPath(), request->nodeInfo.st.st_mode) < 0) 725 ? request->nodeInfo.st.st_atime 728 ? request->nodeInfo.st.st_mtime 1799 reply.entryInfo.nodeInfo.st.st_dev, 1800 reply.entryInfo.nodeInfo.st.st_ino, reply.linkPath.GetString()); 2487 reply.entryInfo.nodeInfo.st.st_dev, 2488 reply.entryInfo.nodeInfo.st.st_ino, 2669 info->st = node->GetStat();
|
H A D | NodeHandle.cpp | 38 NodeHandle::GetStat(struct stat* st) argument 44 if (fstat(fd, st) < 0)
|
H A D | VolumeManager.cpp | 522 VolumeManager::LoadNode(const struct stat& st, Node** _node) argument 524 Node* node = GetNode(st.st_dev, st.st_ino); 529 Volume* volume = GetVolume(st.st_dev, true); 534 if (S_ISDIR(st.st_mode)) 535 node = new(std::nothrow) Directory(volume, st); 537 node = new(std::nothrow) Node(volume, st); 599 struct stat st; local 603 error = bEntry.GetStat(&st); 608 error = LoadNode(st, 747 struct stat st; local 1707 struct stat st; local [all...] |
/haiku/src/add-ons/kernel/file_systems/nfs/ |
H A D | nfs_add_on.c | 505 nfs_fhandle *fhandle, struct stat *st) 551 if (st) 552 get_nfs_attr(&reply, st); 561 nfs_getattr(fs_nspace *ns, const nfs_fhandle *fhandle, struct stat *st) argument 596 get_nfs_attr(&reply, st); 605 nfs_truncate_file(fs_nspace *ns, const nfs_fhandle *fhandle, struct stat *st) argument 649 if (st) 650 get_nfs_attr(&reply,st); 659 get_nfs_attr(struct XDRInPacket *reply, struct stat *st) argument 663 st 504 nfs_lookup(fs_nspace *ns, const nfs_fhandle *dir, const char *filename, nfs_fhandle *fhandle, struct stat *st) argument 878 struct stat st; local 907 struct stat st; local 1024 struct stat st; local 1098 fs_rstat(fs_volume *_volume, fs_vnode *_node, struct stat *st) argument 1224 struct stat st; local 1445 struct stat st; local 1521 struct stat st; local 1602 struct stat st; local 1655 fs_wstat(fs_volume *_volume, fs_vnode *_node, const struct stat *st, uint32 mask) argument 1724 struct stat st; local 1888 struct stat st; local 1997 struct stat st; local 2096 struct stat st; local 2187 struct stat st; local 2334 struct stat st; local [all...] |
H A D | nfs_add_on.h | 75 struct stat st; member in struct:fs_file_cookie 94 extern void get_nfs_attr(struct XDRInPacket *reply, struct stat *st); 95 extern status_t nfs_lookup(fs_nspace *ns, const nfs_fhandle *dir, const char *filename, nfs_fhandle *fhandle, struct stat *st); 96 extern status_t nfs_truncate_file(fs_nspace *ns, const nfs_fhandle *fhandle, struct stat *st); 100 extern status_t nfs_getattr(fs_nspace *ns, const nfs_fhandle *fhandle, struct stat *st);
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | InodeDir.cpp | 100 struct stat st; local 101 Stat(&st); 102 st.st_mode |= S_IXUSR | S_IXGRP | S_IXOTH; 103 result = NFS4Inode::CreateObject(attrDir, NULL, st.st_mode, NF4DIR,
|
H A D | NFS4Server.cpp | 390 struct stat st; local 391 delegation->GetInode()->Stat(&st); 397 reply->GetAttr(B_OK, mask, st.st_size, change);
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | win32_io.c | 750 NTSTATUS st; local 762 st = NtDeviceIoControlFile(handle, (HANDLE)NULL, 766 if (st == STATUS_SUCCESS) { 775 st = NtDeviceIoControlFile(handle, (HANDLE)NULL, 780 if (st == STATUS_SUCCESS) { 881 NTSTATUS st; local 918 st = NtOpenFile(&handle, access, 922 if (st != STATUS_SUCCESS) { 923 errno = ntfs_ntstatus_to_errno(st); 931 st [all...] |
/haiku/src/add-ons/kernel/file_systems/ntfs/ |
H A D | lowntfs.c | 977 struct stat st; local 986 res = CALL_REPARSE_PLUGIN(ni, getattr, &st); 989 isdir = S_ISDIR(st.st_mode);
|
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/ |
H A D | utils.c | 212 struct stat st; local 223 if (stat(name, &st) == -1) {
|
/haiku/src/add-ons/kernel/file_systems/packagefs/indices/ |
H A D | Query.cpp | 192 struct stat st; local 193 error = cookie->ReadAttributeStat(&st); 195 *_type = st.st_type;
|
/haiku/src/add-ons/kernel/file_systems/packagefs/ |
H A D | kernel_interface.cpp | 305 packagefs_read_stat(fs_volume* fsVolume, fs_vnode* fsNode, struct stat* st) argument 316 st->st_mode = node->Mode(); 317 st->st_nlink = 1; 318 st->st_uid = node->UserID(); 319 st->st_gid = node->GroupID(); 320 st->st_size = node->FileSize(); 321 st->st_blksize = kOptimalIOSize; 322 st->st_mtim = node->ModifiedTime(); 323 st->st_atim = st 819 packagefs_read_attr_stat(fs_volume* fsVolume, fs_vnode* fsNode, void* _cookie, struct stat* st) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/packagefs/package/ |
H A D | Package.cpp | 661 struct stat st; local 662 if (fstat(fFD, &st) < 0) { 670 if (st.st_dev != fDeviceID || st.st_ino != fNodeID) {
|
/haiku/src/add-ons/kernel/file_systems/packagefs/volume/ |
H A D | PackageFSRoot.cpp | 120 struct stat st; local 121 error = vfs_stat_vnode(vnode, &st); 130 error = PackageFSRoot::_GetOrCreateRoot(st.st_dev, st.st_ino, root);
|
H A D | Volume.cpp | 367 struct stat st; local 369 fMountPoint.nodeID, st); 402 = new(std::nothrow) ::RootDirectory(kRootDirectoryID, st.st_mtim); 826 struct stat st; local 827 if (fstat(fd.Get(), &st) != 0) { 833 if (st.st_size > (off_t)kMaxActivationFileSize) { 838 char* fileContent = (char*)malloc(st.st_size + 1); 843 ssize_t bytesRead = read(fd.Get(), fileContent, st.st_size); 849 if (bytesRead != st.st_size) { 855 fileContent[st 1478 struct stat st; local 1796 struct stat st; local [all...] |
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | kernel_interface.cpp | 679 ramfs_read_stat(fs_volume* _volume, fs_vnode* _node, struct stat *st) argument 688 st->st_dev = volume->GetID(); 689 st->st_ino = node->GetID(); 690 st->st_mode = node->GetMode(); 691 st->st_nlink = node->GetRefCount(); 692 st->st_uid = node->GetUID(); 693 st->st_gid = node->GetGID(); 694 st->st_size = node->GetSize(); 695 st->st_blksize = kOptimalIOSize; 696 st 709 ramfs_write_stat(fs_volume* _volume, fs_vnode* _node, const struct stat *st, uint32 mask) argument 1753 ramfs_read_attr_stat(fs_volume* _volume, fs_vnode* _node, void* _cookie, struct stat *st) argument 1999 ramfs_read_index_stat(fs_volume* _volume, const char *name, struct stat *st) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | kernel_interface.cpp | 326 reiserfs_read_stat(fs_volume *fs, fs_vnode *_node, struct stat *st) argument 335 st->st_dev = volume->GetID(); 336 st->st_ino = node->GetID(); 337 st->st_mode = statData->GetMode(); 338 st->st_nlink = statData->GetNLink(); 339 st->st_uid = statData->GetUID(); 340 st->st_gid = statData->GetGID(); 341 st->st_size = statData->GetSize(); 342 st->st_blksize = kOptimalIOSize; 343 st [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/ |
H A D | Volume.cpp | 1929 Volume::ReadStat(void* node, struct stat* st) argument 1933 status_t error = _ReadStat(node, st); 1939 st->st_dev = GetID(); 1940 st->st_ino = fRootID; 1941 st->st_mode = ACCESSPERMS; 1942 st->st_nlink = 1; 1943 st->st_uid = 0; 1944 st->st_gid = 0; 1945 st->st_size = 512; 1946 st 1959 WriteStat(void* _node, const struct stat* st, uint32 mask) argument 2945 ReadAttrStat(void* _node, void* cookie, struct stat *st) argument 2987 WriteAttrStat(void* _node, void* cookie, const struct stat *st, int statMask) argument 3382 ReadIndexStat(const char* name, struct stat *st) argument 3870 _ReadStat(void* _node, struct stat* st) argument [all...] |