diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-09 03:02:46 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:50:07 +0000 |
commit | 606a3982f34d777f121fcc4aa964141199676c20 (patch) | |
tree | 836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Userland/Utilities/dmesg.cpp | |
parent | a96339b72b3b417ffaa4fbb4e7575149f749acaa (diff) | |
download | serenity-606a3982f34d777f121fcc4aa964141199676c20.zip |
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Userland/Utilities/dmesg.cpp')
-rw-r--r-- | Userland/Utilities/dmesg.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/dmesg.cpp b/Userland/Utilities/dmesg.cpp index cb5e94baf4..459b06e425 100644 --- a/Userland/Utilities/dmesg.cpp +++ b/Userland/Utilities/dmesg.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <LibCore/File.h> #include <LibCore/Stream.h> #include <LibCore/System.h> #include <LibMain/Main.h> @@ -14,7 +15,7 @@ ErrorOr<int> serenity_main(Main::Arguments) TRY(Core::System::unveil("/sys/kernel/dmesg", "r")); TRY(Core::System::unveil(nullptr, nullptr)); - auto file = TRY(Core::Stream::File::open("/sys/kernel/dmesg"sv, Core::Stream::OpenMode::Read)); + auto file = TRY(Core::File::open("/sys/kernel/dmesg"sv, Core::File::OpenMode::Read)); auto buffer = TRY(file->read_until_eof()); out("{}", StringView { buffer }); return 0; |