| 1930 | } |
| 1931 | |
| 1932 | U32 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 | |
| 1943 | U32 KProcess::lstat64(BString path, U32 buffer) { |
| 1944 | std::shared_ptr<FsNode> node = Fs::getNodeFromLocalPath(this->currentDirectory, path, false); |
no test coverage detected