mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Add File::{stdin, stdout, stderr}()
This should make it easier to get a Core::File for standard streams.
This commit is contained in:
committed by
Andreas Kling
parent
6c2d0dea91
commit
f69b419c05
@@ -57,6 +57,10 @@ public:
|
||||
};
|
||||
bool open(int fd, IODevice::OpenMode, ShouldCloseFileDescription);
|
||||
|
||||
static NonnullRefPtr<File> stdin();
|
||||
static NonnullRefPtr<File> stdout();
|
||||
static NonnullRefPtr<File> stderr();
|
||||
|
||||
private:
|
||||
File(Object* parent = nullptr)
|
||||
: IODevice(parent)
|
||||
|
||||
Reference in New Issue
Block a user