mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibCore: Move Stream-based file into the Core
namespace
This commit is contained in:
parent
a96339b72b
commit
606a3982f3
218 changed files with 748 additions and 643 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <AK/Types.h>
|
||||
#include <Kernel/API/SyscallString.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
@ -836,8 +837,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
parser.parse(arguments);
|
||||
|
||||
auto trace_file = output_filename.is_empty()
|
||||
? TRY(Core::Stream::File::standard_error())
|
||||
: TRY(Core::Stream::File::open(output_filename, Core::Stream::OpenMode::Write));
|
||||
? TRY(Core::File::standard_error())
|
||||
: TRY(Core::File::open(output_filename, Core::File::OpenMode::Write));
|
||||
|
||||
auto parse_syscalls = [](char const* option, auto& hash_table) {
|
||||
if (option != nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue