mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
Add primitive FIFO and hook it up to sys$pipe().
It's now possible to do this in bash: cat kernel.map | fgrep List This is very cool! :^)
This commit is contained in:
parent
18e3ddf605
commit
f1404aa948
13 changed files with 305 additions and 22 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
BlockedSleep,
|
||||
BlockedWait,
|
||||
BlockedRead,
|
||||
BlockedWrite,
|
||||
BlockedSignal,
|
||||
};
|
||||
|
||||
|
@ -226,6 +227,8 @@ private:
|
|||
int do_exec(const String& path, Vector<String>&& arguments, Vector<String>&& environment);
|
||||
void push_value_on_stack(dword);
|
||||
|
||||
int alloc_fd();
|
||||
|
||||
PageDirectory* m_page_directory { nullptr };
|
||||
|
||||
Process* m_prev { nullptr };
|
||||
|
@ -257,6 +260,7 @@ private:
|
|||
pid_t m_waitee { -1 };
|
||||
int m_waitee_status { 0 };
|
||||
int m_fdBlockedOnRead { -1 };
|
||||
int m_blocked_fd { -1 };
|
||||
size_t m_max_open_file_descriptors { 16 };
|
||||
SignalActionData m_signal_action_data[32];
|
||||
dword m_pending_signals { 0 };
|
||||
|
@ -337,6 +341,7 @@ static inline const char* toString(Process::State state)
|
|||
case Process::BlockedSleep: return "Sleep";
|
||||
case Process::BlockedWait: return "Wait";
|
||||
case Process::BlockedRead: return "Read";
|
||||
case Process::BlockedWrite: return "Write";
|
||||
case Process::BlockedSignal: return "Signal";
|
||||
case Process::BeingInspected: return "Inspect";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue