1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 21:45:07 +00:00

Make it possible to build the Kernel on a macOS host.

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.
This commit is contained in:
Andreas Kling 2018-12-02 23:34:50 +01:00
parent 44036f32bc
commit 85b886c2e0
31 changed files with 88 additions and 94 deletions

View file

@ -23,14 +23,14 @@ public:
int close();
Unix::off_t seek(Unix::off_t, int whence);
Unix::ssize_t read(byte*, Unix::size_t);
Unix::ssize_t write(const byte* data, Unix::size_t);
ssize_t read(byte*, size_t);
ssize_t write(const byte* data, size_t);
int stat(Unix::stat*);
bool hasDataAvailableForRead();
bool can_write();
ssize_t get_dir_entries(byte* buffer, Unix::size_t);
ssize_t get_dir_entries(byte* buffer, size_t);
ByteBuffer readEntireFile();