MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / stat64

Method stat64

source/kernel/kprocess.cpp:1932–1941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932U32 KProcess::stat64(BString path, U32 buffer) {
1933 bool isLink = false;
1934 std::shared_ptr<FsNode> node = Fs::getNodeFromLocalPath(this->currentDirectory, path, true, &isLink);
1935 if (!node) {
1936 return -K_ENOENT;
1937 }
1938 U64 len = node->length();
1939 KSystem::writeStat(this, node->path, buffer, true, 1, node->id, node->getMode(), node->rdev, len, 4096, (len + 4095) / 4096, node->lastModified(), node->getHardLinkCount());
1940 return 0;
1941}
1942
1943U32 KProcess::lstat64(BString path, U32 buffer) {
1944 std::shared_ptr<FsNode> node = Fs::getNodeFromLocalPath(this->currentDirectory, path, false);

Callers 1

syscall_stat64Function · 0.80

Calls 4

getHardLinkCountMethod · 0.80
lengthMethod · 0.45
getModeMethod · 0.45
lastModifiedMethod · 0.45

Tested by

no test coverage detected