summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/RandomDevice.cpp
AgeCommit message (Collapse)Author
2019-01-14Start refactoring the windowing system to use an event loop.Andreas Kling
Userspace programs can now open /dev/gui_events and read a stream of GUI_Event structs one at a time. I was stuck on a stupid problem where we'd reenter Scheduler::yield() due to having one of the has_data_available_for_reading() implementations using locks.
2018-12-04Import a simple text editor I started working on.Andreas Kling
2018-12-03More coding style changes.Andreas Kling
2018-12-02Make it possible to build the Kernel on a macOS host.Andreas Kling
It still requires an ELF compiler and linker, but at least it builds. I need to get rid of the "Unix" namespace. This does a lot of that.
2018-10-30Start working on virtual consoles/TTYs.Andreas Kling
This is a mess right now, but I'd rather commit as I go.
2018-10-25Implement a basic way for read() to block.Andreas Kling
FileHandle gets a hasDataAvailableForRead() getter. If this returns true in sys$read(), the task will block(BlockedRead) + yield. The fd blocked on is stored in Task::m_fdBlockedOnRead. The scheduler then looks at the state of that fd during the unblock phase. This makes "sh" restful. :^) There's still some problem with the kernel not surviving the colonel task getting scheduled. I need to figure that out and fix it.
2018-10-23Don't use doubles in RandomDevice.Andreas Kling
...since Computron doesn't have FPU support yet, I'm gonna avoid using it here in Serenity for now.
2018-10-16Add the basic character devices to kernel.Andreas Kling
2018-10-15Add a simple /dev/random.Andreas Kling