/haiku/src/apps/aboutsystem/ |
H A D | AboutSystem.cpp | 1490 struct stat st; local 1493 if (fortunes.GetStat(&st) < B_OK) 1496 char* buff = (char*)malloc((size_t)st.st_size + 1); 1500 buff[(size_t)st.st_size] = '\0'; 1502 if (fortunes.Read(buff, (size_t)st.st_size) == (ssize_t)st.st_size) { 2094 struct stat st; local 2102 && lstat(path.Path(), &st) == 0) {
|
/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/drivers/audio/cmedia/ |
H A D | pcm.c | 1570 bigtime_t st = system_time(); local 1609 port->wr_time = st-(offs&(port->config.play_buf_size/2-1))*250000LL/(int64)port->config.sample_rate; 1630 the_time = st; 1665 bigtime_t st = system_time(); local 1698 port->next_rd_time = st-(offs&(port->config.rec_buf_size/2-1))*1000000LL/(int64)port->config.sample_rate;
|
/haiku/src/system/libroot/os/ |
H A D | find_directory.cpp | 212 struct stat st; local 222 if (stat(buffer, &st) < 0) { 284 struct stat st; local 504 if (createIt && stat(buffer, &st) < 0) {
|
/haiku/src/apps/showimage/ |
H A D | ShowImageWindow.cpp | 1487 status_t st; local 1488 if (msg->FindInt32("status", &st) != B_OK || st != B_OK)
|
/haiku/src/tools/fs_shell/ |
H A D | fssh.cpp | 285 struct fssh_stat st; local 286 fssh_status_t error = _kern_read_stat(-1, kMountPoint, false, &st, 287 sizeof(st)); 294 return st.fssh_st_dev; 344 struct fssh_stat st; local 345 fssh_status_t error = _kern_read_stat(-1, file, false, &st, sizeof(st)); 354 time_t fileTime = st.fssh_st_mtime; 359 fssh_mode_t mode = st.fssh_st_mode; 413 fileType, permissions.c_str(), (int)st 425 struct fssh_stat st; local 455 struct fssh_stat st; local 568 struct fssh_stat st; local 617 struct fssh_stat st; local 695 fssh_struct_stat st; local 745 struct fssh_stat st; local 876 struct fssh_stat st; local 952 struct fssh_stat st; local 1159 struct fssh_stat st; local [all...] |
H A D | command_cp.cpp | 128 const struct fssh_stat &st, File *&file) = 0; 130 const struct fssh_stat &st, Directory *&dir) = 0; 132 const struct fssh_stat &st, SymLink *&link) = 0; 159 const struct fssh_stat &st) 162 fStat = st; 244 const struct fssh_stat &st) 246 fssh_status_t error = HostNode::Init(path, fd, st); 326 const struct fssh_stat &st) 328 fssh_status_t error = HostNode::Init(path, fd, st); 363 struct fssh_stat st; local 158 Init(const char *path, int fd, const struct fssh_stat &st) argument 243 Init(const char *path, int fd, const struct fssh_stat &st) argument 325 Init(const char *path, int fd, const struct fssh_stat &st) argument 398 CreateFile(const char *path, const struct fssh_stat &st, File *&_file) argument 425 CreateDirectory(const char *path, const struct fssh_stat &st, Directory *&_dir) argument 456 CreateSymLink(const char *path, const char *linkTo, const struct fssh_stat &st, SymLink *&_link) argument 496 _ApplyStat(int fd, const struct fssh_stat &st) argument 524 Init(const char *path, int fd, const struct fssh_stat &st) argument 568 struct fssh_stat st; local 645 Init(const char *path, int fd, const struct fssh_stat &st) argument 727 struct fssh_stat st; local 763 CreateFile(const char *path, const struct fssh_stat &st, File *&_file) argument 791 CreateDirectory(const char *path, const struct fssh_stat &st, Directory *&_dir) argument 824 CreateSymLink(const char *path, const char *linkTo, const struct fssh_stat &st, SymLink *&_link) argument 863 _ApplyStat(int fd, const struct fssh_stat &st) argument [all...] |
/haiku/src/system/runtime_loader/ |
H A D | runtime_loader.cpp | 495 struct stat st; local 496 if (_kern_read_stat(fd, NULL, true, &st, sizeof(st)) != B_OK) 501 B_ANY_ADDRESS, st.st_size, B_READ_AREA, REGION_NO_PRIVATE_MAP, false, 527 if (elfHeader.e_shoff + (off_t)sectionHeadersSize > st.st_size) 545 > st.st_size) { 611 if (fileOffset + (off_t)sizeof(uint32) <= st.st_size) {
|
/haiku/src/servers/package/ |
H A D | CommitTransactionHandler.cpp | 1948 struct stat st; local 1949 status_t error = directory.GetStatFor(entry->d_name, &st); 1957 bool isDirectory = S_ISDIR(st.st_mode);
|
/haiku/src/apps/terminal/ |
H A D | TermViewStates.cpp | 1003 struct stat st; local 1004 return lstat(_actualPath, &st) == 0;
|
/haiku/src/kits/tracker/ |
H A D | PoseView.cpp | 5661 StatStruct st; 5663 if (stat("/", &st) >= 0 5664 && st.st_dev == dirNode.device 5665 && st.st_ino == dirNode.node) { 5668 if (stat(buffer.String(), &st) >= 0) { 5670 itemNode.node = st.st_ino; 5671 itemNode.device = st.st_dev;
|
H A D | QueryPoseView.h | 99 bool Filter(const entry_ref* ref, BNode* node, stat_beos* st,
|
H A D | QueryPoseView.cpp | 395 QueryRefFilter::Filter(const entry_ref* ref, BNode* node, stat_beos* st, argument
|
H A D | OpenWithWindow.h | 276 bool Filter(const entry_ref* ref, BNode* node, stat_beos* st,
|
H A D | OpenWithWindow.cpp | 994 OpenWithRefFilter::Filter(const entry_ref* ref, BNode* node, stat_beos* st, argument
|
H A D | Thumbnails.cpp | 284 struct stat st; local 285 status_t status = file->GetStat(&st); 298 if (st.st_size >= (128 * kKBSize)) {
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/ |
H A D | FUSEVolume.cpp | 766 struct stat st; local 770 fuseError = fuse_ll_getattr(fOps, FUSE_ROOT_ID, &st); 772 fuseError = fuse_fs_getattr(fFS, "/", &st); 778 st.st_ino = FUSE_ROOT_ID; 782 FUSENode* node = new(std::nothrow) FUSENode(st.st_ino, st.st_mode & S_IFMT); 897 struct statvfs st; local 901 fuseError = fuse_ll_statfs(fOps, FUSE_ROOT_ID, &st); 906 fuseError = fuse_fs_statfs(fFS, "/", &st); 914 info->block_size = st 1490 ReadStat(void* _node, struct stat* st) argument 1532 WriteStat(void* _node, const struct stat* st, uint32 mask) argument 1772 struct stat st; local 2593 ReadAttrStat(void* _node, void* _cookie, struct stat* st) argument 2738 struct stat st; local 3301 _AddReadDirEntryLowLevel(void* _buffer, char* buf, size_t bufsize, const char* name, const struct stat* st, off_t offset) argument 3313 _AddReadDirEntry(void* _buffer, const char* name, const struct stat* st, off_t offset) argument 3374 struct stat st; local 3506 struct stat st; local [all...] |
/haiku/src/system/kernel/fs/ |
H A D | socket.cpp | 255 socket_read_stat(struct file_descriptor *descriptor, struct stat *st) argument 257 st->st_dev = 0; 258 st->st_ino = (addr_t)descriptor->u.socket; 259 st->st_mode = S_IFSOCK | 0666; 260 st->st_nlink = 1; 261 st->st_uid = 0; 262 st->st_gid = 0; 263 st->st_size = 0; 264 st->st_rdev = 0; 265 st [all...] |
/haiku/src/add-ons/kernel/file_systems/fat/ |
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/tools/remote_disk_server/ |
H A D | remote_disk_server.cpp | 145 struct stat st; local 146 if (fstat(fImageFD, &st) < 0) { 151 fImageSize = st.st_size;
|
/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/network/protocols/unix/ |
H A D | UnixStreamEndpoint.cpp | 250 struct stat st; local 251 status_t error = vfs_read_stat(-1, address->sun_path, true, &st, 256 if (!S_ISSOCK(st.st_mode)) 259 unixAddress.SetTo(st.st_dev, st.st_ino, NULL);
|
H A D | UnixDatagramEndpoint.cpp | 533 struct stat st; local 534 status_t error = vfs_read_stat(-1, address->sun_path, true, &st, 539 if (!S_ISSOCK(st.st_mode)) 542 unixAddress.SetTo(st.st_dev, st.st_ino, NULL);
|
/haiku/src/system/kernel/ |
H A D | elf.cpp | 1841 struct stat st; local 1842 status = _kern_read_stat(fd, NULL, false, &st, sizeof(st)); 2092 imageInfo.basic_info.device = st.st_dev; 2093 imageInfo.basic_info.node = st.st_ino;
|
/haiku/src/add-ons/kernel/file_systems/packagefs/volume/ |
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...] |