ProcFileSystem.cpp 505 B

1234567891011121314151617181920212223242526272829
  1. #include "ProcFileSystem.h"
  2. #include <AK/StdLib.h>
  3. RetainPtr<ProcFileSystem> ProcFileSystem::create()
  4. {
  5. return adopt(*new ProcFileSystem);
  6. }
  7. ProcFileSystem::ProcFileSystem()
  8. {
  9. }
  10. ProcFileSystem::~ProcFileSystem()
  11. {
  12. }
  13. bool ProcFileSystem::initialize()
  14. {
  15. SyntheticFileSystem::initialize();
  16. addFile(createGeneratedFile("summary", [] {
  17. return String("Process summary!").toByteBuffer();
  18. }));
  19. return true;
  20. }
  21. const char* ProcFileSystem::className() const
  22. {
  23. return "procfs";
  24. }