mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Kernel: Rename FileDescriptor to FileDescription.
After reading a bunch of POSIX specs, I've learned that a file descriptor is the number that refers to a file description, not the description itself. So this patch renames FileDescriptor to FileDescription, and Process now has FileDescription* file_description(int fd).
This commit is contained in:
parent
69a6ce90df
commit
08cd75ac4b
70 changed files with 373 additions and 373 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <Kernel/i386.h>
|
||||
|
||||
class Alarm;
|
||||
class FileDescriptor;
|
||||
class FileDescription;
|
||||
class Process;
|
||||
class Region;
|
||||
class Thread;
|
||||
|
@ -97,13 +97,13 @@ public:
|
|||
|
||||
void sleep(dword ticks);
|
||||
void block(Thread::State);
|
||||
void block(Thread::State, FileDescriptor&);
|
||||
void block(Thread::State, FileDescription&);
|
||||
void unblock();
|
||||
|
||||
void set_wakeup_time(qword t) { m_wakeup_time = t; }
|
||||
qword wakeup_time() const { return m_wakeup_time; }
|
||||
void snooze_until(Alarm&);
|
||||
KResult wait_for_connect(FileDescriptor&);
|
||||
KResult wait_for_connect(FileDescription&);
|
||||
|
||||
const FarPtr& far_ptr() const { return m_far_ptr; }
|
||||
|
||||
|
@ -181,7 +181,7 @@ private:
|
|||
RetainPtr<Region> m_kernel_stack_region;
|
||||
RetainPtr<Region> m_kernel_stack_for_signal_handler_region;
|
||||
pid_t m_waitee_pid { -1 };
|
||||
RetainPtr<FileDescriptor> m_blocked_descriptor;
|
||||
RetainPtr<FileDescription> m_blocked_descriptor;
|
||||
timeval m_select_timeout;
|
||||
SignalActionData m_signal_action_data[32];
|
||||
Region* m_signal_stack_user_region { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue