ladybird/Userland/Libraries/LibCore
Sam Atkins b90dc408bd LibCore: Create ConfigFiles with an already-open File
This moves the fallible action of opening the file, from the
constructor, into the factory methods which can propagate any errors.

The wrinkle here is that failure to open a ConfigFile in read-only mode
is allowed (and expected, since the file may not exist), and treated as
if an empty file was successfully opened.
2022-02-16 19:49:41 -05:00
..
Account.cpp LibCore: Mark 'Read options' parameter [[maybe_unused]] in Account.cpp 2022-01-02 22:02:16 +01:00
Account.h LibCore+id: Make more use of Core::System wrappers in Core::Account 2022-01-02 18:08:02 +01:00
AnonymousBuffer.cpp LibCore: Convert AnonymousBuffer to use System::anon_create 2022-02-10 21:35:17 +01:00
AnonymousBuffer.h LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
ArgsParser.cpp LibCore: Add ArgsParser::add_option for Optional double 2022-01-21 01:52:22 +01:00
ArgsParser.h LibCore: Add ArgsParser::add_option for Optional double 2022-01-21 01:52:22 +01:00
CMakeLists.txt LibCore: Remove Core::Socket :^) 2022-02-14 11:44:09 +01:00
Command.cpp LibCore: Make Core::command return CommandResult struct 2022-01-12 14:55:19 +01:00
Command.h LibCore: Make Core::command return CommandResult struct 2022-01-12 14:55:19 +01:00
ConfigFile.cpp LibCore: Create ConfigFiles with an already-open File 2022-02-16 19:49:41 -05:00
ConfigFile.h LibCore: Create ConfigFiles with an already-open File 2022-02-16 19:49:41 -05:00
DateTime.cpp LibCore: Change DateTime format strings to be StringViews 2022-01-28 20:19:05 +00:00
DateTime.h LibCore: Change DateTime format strings to be StringViews 2022-01-28 20:19:05 +00:00
DeferredInvocationContext.h LibCore+Userland: Implement Core::deferred_invoke 2021-09-02 03:47:47 +04:30
DirIterator.cpp Userland: Fail Core::find_executable_in_path on empty inputs 2022-01-04 07:38:42 +00:00
DirIterator.h LibCore: Allow moving, but not copying, DirIterator 2021-11-23 22:58:05 +01:00
ElapsedTimer.cpp LibCore: Add ElapsedTimer::reset() 2021-10-28 11:21:18 +02:00
ElapsedTimer.h LibCore: Add ElapsedTimer::reset() 2021-10-28 11:21:18 +02:00
Event.cpp AK+Kernel: Rename try_make_weak_ptr to make_weak_ptr_if_nonnull 2022-02-13 23:02:57 +01:00
Event.h LibCore+Userland: Implement Core::deferred_invoke 2021-09-02 03:47:47 +04:30
EventLoop.cpp LibCore: Exit get_next_timer_expiration() sooner if possible 2022-02-15 23:24:41 +01:00
EventLoop.h LibCore: Allow event loops on other threads to wake up 2022-02-13 23:06:53 +01:00
File.cpp Everywhere: Move shared library checks into a common function 2021-11-10 14:42:49 +01:00
File.h Everywhere: Move shared library checks into a common function 2021-11-10 14:42:49 +01:00
FilePermissionsMask.cpp LibCore: Improve handling of parsing errors in FilePermissionsMask 2022-01-24 07:50:32 +00:00
FilePermissionsMask.h LibCore: Add FilePermissionsMask 2022-01-01 17:33:43 +00:00
FileStream.h LibCore: Use ErrorOr<T> for Core::File::open() 2021-11-08 00:35:27 +01:00
FileWatcher.cpp LibCore: Replace Result<T, E> use with ErrorOr<T> in Core::FileWatcher 2021-11-08 00:35:27 +01:00
FileWatcher.h AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
Forward.h LibCore: Add a pure virtual parent to Core::Stream::BufferedSocket<T> 2022-02-06 13:10:10 +01:00
GetPassword.cpp LibCore: Use LibCore syscall wrappers in get_password() 2021-11-30 23:34:40 +01:00
GetPassword.h LibCore: Use ErrorOr<T> for Core::get_password() 2021-11-08 00:35:27 +01:00
Group.cpp LibCore: Do not leak FILE pointer in Group::add_group() 2022-01-21 18:34:24 +01:00
Group.h LibCore: Use generic AK_OS_BSD_GENERIC to hide Group::add_group() 2022-01-21 18:34:24 +01:00
InputBitStream.h Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
IODevice.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
IODevice.h LibCore: Add support for range-based for loops on LineIterators 2021-12-12 14:06:38 +03:30
LocalServer.cpp LibCore: Remove Core::LocalSocket :^) 2022-02-06 10:28:19 +01:00
LocalServer.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LockFile.cpp Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
LockFile.h Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
MappedFile.cpp LibCore: Use open() wrapper in Core::MappedFile :^) 2021-11-23 12:23:54 +01:00
MappedFile.h LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
MemoryStream.h LibCore+Tests: Add SeekableStream::truncate() 2022-02-16 19:49:41 -05:00
MimeData.cpp LibCore: Add support for the image/x-qoi mime type 2021-12-21 13:27:27 +01:00
MimeData.h LibCore: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
NetworkJob.cpp Userland: Convert TLS::TLSv12 to a Core::Stream::Socket 2022-02-06 13:10:10 +01:00
NetworkJob.h Userland: Convert TLS::TLSv12 to a Core::Stream::Socket 2022-02-06 13:10:10 +01:00
NetworkResponse.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NetworkResponse.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Notifier.cpp LibCore: Remove unused header includes 2021-08-01 08:10:16 +02:00
Notifier.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Object.cpp Userland: Fix unnecessary heap allocation of singleton objects 2022-01-28 23:31:00 +01:00
Object.h LibGUI: Move GML parsing and formatting to new AST 2022-02-07 18:39:50 +01:00
Process.cpp LibCore: Explicitly declare environ in Process.cpp to unbreak macOS 2021-08-06 01:29:09 +02:00
Process.h LibCore: Add Core::Process::spawn() 2021-08-06 01:04:11 +02:00
ProcessStatisticsReader.cpp AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional) 2021-11-17 00:21:10 +01:00
ProcessStatisticsReader.h Everywhere: Make tracking cpu usage independent from system ticks 2021-07-18 22:08:26 +02:00
Promise.h Libraries: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
Property.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Property.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SecretString.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
SecretString.h LibCore: Add SecretString, a buffer that is zero'd on destruction 2021-09-12 16:36:52 +02:00
SocketAddress.h AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
StandardPaths.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StandardPaths.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Stream.cpp LibCore+Tests: Add SeekableStream::truncate() 2022-02-16 19:49:41 -05:00
Stream.h LibCore+Tests: Add SeekableStream::truncate() 2022-02-16 19:49:41 -05:00
System.cpp LibCore: Implement System::fchown 2022-02-14 11:44:09 +01:00
System.h LibCore: Implement System::fchown 2022-02-14 11:44:09 +01:00
SystemServerTakeover.cpp LibCore+LibIPC: Move SystemServerTakeover.{h,cpp} to LibCore 2022-02-06 10:28:19 +01:00
SystemServerTakeover.h LibCore+LibIPC: Move SystemServerTakeover.{h,cpp} to LibCore 2022-02-06 10:28:19 +01:00
TCPServer.cpp LibCore+Userland: Remove Core::TCPSocket :^) 2022-02-06 17:28:17 +00:00
TCPServer.h LibCore+Userland+Tests: Convert Stream APIs to construct on heap 2022-01-13 15:16:12 +03:30
TempFile.cpp Userland: Remove a bunch of unnecessary Vector imports 2022-01-28 23:40:25 +01:00
TempFile.h LibCore: Add utility class for temporary files and directories 2022-01-12 14:55:19 +01:00
Timer.cpp LibCore: Add Core::Timer::set_active(bool) 2021-12-25 14:20:13 +01:00
Timer.h LibCore: Add Core::Timer::set_active(bool) 2021-12-25 14:20:13 +01:00
UDPServer.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
UDPServer.h LibCore+LookupServer: Implement and use UDPServer::send 2021-12-16 22:21:35 +03:30
UmaskScope.h LibCore: Add Core::UmaskScope to set and unset a temporary umask 2022-01-02 18:08:02 +01:00
Version.cpp LibCore+Everywhere: Return ErrorOr from ConfigFile factory methods 2022-02-16 19:49:41 -05:00
Version.h LibCore: Refactor a version-reading utility 2021-09-02 16:17:18 +01:00