21 #include "PosixSyscallManager.h" 23 #include "UnixFilesystem.h" 24 #include "modules/Module.h" 26 #include "modules/system/vfs/VFS.h" 27 #include "net-syscalls.h" 28 #include "pedigree/kernel/Log.h" 29 #include "pedigree/kernel/process/Process.h" 30 #include "pedigree/kernel/process/Scheduler.h" 31 #include "pedigree/kernel/processor/Processor.h" 32 #include "signal-syscalls.h" 33 #include "system-syscalls.h" 38 static RamFs *g_pRunFilesystem = 0;
41 static ProcFs *g_pProcFs = 0;
45 g_PosixSyscallManager.initialise();
47 g_pDevFs =
new DevFs();
55 g_pRunFilesystem =
new RamFs;
78 {
"root»/var/run", g_pRunFilesystem->
getRoot()},
79 {
"root»/proc", g_pProcFs->
getRoot()},
80 {
"root»/tmp", scratchfs ? scratchfs->
getRoot() : 0},
83 for (
auto &p : reparses)
101 static void destroy()
110 MODULE_INFO(
"posix", &init, &destroy,
"console",
"mountroot");
113 "posix", &init, &destroy,
"console",
"network-stack",
"mountroot",
"lwip");
virtual String getVolumeLabel() const
File * find(const String &path, File *pStartNode=0)
virtual bool initialise(Disk *pDisk)
virtual bool initialise(Disk *pDisk)
virtual String getVolumeLabel() const
void addAlias(Filesystem *pFs, const String &alias)
static Directory * fromFile(File *pF)
void removeAllAliases(Filesystem *pFs, bool canDelete=true)
void setReparsePoint(Directory *pTarget)
Filesystem * lookupFilesystem(const String &alias)
virtual bool initialise(Disk *pDisk)
virtual File * getRoot() const
virtual String getVolumeLabel() const
virtual bool isDirectory()
virtual File * getRoot() const
virtual File * getRoot() const =0