mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:27:34 +00:00
Implement sys$chdir() and teach sh+ls to cd around and browse different dirs.
This commit is contained in:
parent
ac738b03d6
commit
2749e7f1c2
16 changed files with 147 additions and 33 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "TSS.h"
|
||||
#include <AK/Vector.h>
|
||||
#include "i386.h"
|
||||
#include <VirtualFileSystem/VirtualFileSystem.h>
|
||||
|
||||
//#define TASK_SANITY_CHECKS
|
||||
|
||||
|
@ -98,6 +99,7 @@ public:
|
|||
int sys$munmap(void*, size_t size);
|
||||
int sys$get_dir_entries(int fd, void*, size_t);
|
||||
int sys$getcwd(char*, size_t);
|
||||
int sys$chdir(const char*);
|
||||
int sys$sleep(unsigned seconds);
|
||||
int sys$gettimeofday(timeval*);
|
||||
int sys$gethostname(char* name, size_t length);
|
||||
|
@ -150,7 +152,7 @@ private:
|
|||
pid_t m_waitee { -1 };
|
||||
int m_fdBlockedOnRead { -1 };
|
||||
|
||||
String m_cwd;
|
||||
RetainPtr<VirtualFileSystem::Node> m_cwd;
|
||||
|
||||
struct Region {
|
||||
Region(LinearAddress, size_t, RetainPtr<Zone>&&, String&&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue