diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-24 14:28:22 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-24 14:28:22 +0200 |
commit | ec1d16b307e1467391d5d314bf700cb151ca96f4 (patch) | |
tree | 0d30ef8436f114ff0fb78e71cc6aa9e4711f6266 /VirtualFileSystem/InodeIdentifier.h | |
parent | eb4074bb9dd9c38d6bc7f67f382bac288c630686 (diff) | |
download | serenity-ec1d16b307e1467391d5d314bf700cb151ca96f4.zip |
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().
Diffstat (limited to 'VirtualFileSystem/InodeIdentifier.h')
-rw-r--r-- | VirtualFileSystem/InodeIdentifier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/VirtualFileSystem/InodeIdentifier.h b/VirtualFileSystem/InodeIdentifier.h index 865b07f838..d985266ec6 100644 --- a/VirtualFileSystem/InodeIdentifier.h +++ b/VirtualFileSystem/InodeIdentifier.h @@ -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; |