1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 00:25:06 +00:00

Add a "pwd" utility to userland.

It's implemented as a separate process. How cute is that.
Tasks now have a current working directory. Spawned tasks inherit their
parent task's working directory.
Currently everyone just uses "/" as there's no way to chdir().
This commit is contained in:
Andreas Kling 2018-10-24 14:28:22 +02:00
parent eb4074bb9d
commit ec1d16b307
17 changed files with 87 additions and 14 deletions

View file

@ -28,6 +28,11 @@ public:
return m_fileSystemID == other.m_fileSystemID && m_index == other.m_index;
}
bool operator!=(const InodeIdentifier& other) const
{
return m_fileSystemID != other.m_fileSystemID || m_index != other.m_index;
}
InodeMetadata metadata() const;
bool isRootInode() const;