mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +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:
parent
6c2d0dea91
commit
f69b419c05
Notes:
sideshowbarker
2024-07-19 03:22:30 +09:00
Author: https://github.com/petelliott
Commit: f69b419c05
Pull-request: https://github.com/SerenityOS/serenity/pull/3214
Issue: https://github.com/SerenityOS/serenity/issues/3171
Issue: https://github.com/SerenityOS/serenity/issues/3187
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
2 changed files with 34 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue