1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:30:59 +00:00
serenity/Userland/Libraries
sin-ack 2e1bbcb0fa LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer
This change unfortunately cannot be atomically made without a single
commit changing everything.

Most of the important changes are in LibIPC/Connection.cpp,
LibIPC/ServerConnection.cpp and LibCore/LocalServer.cpp.

The notable changes are:
- IPCCompiler now generates the decode and decode_message functions such
  that they take a Core::Stream::LocalSocket instead of the socket fd.
- IPC::Decoder now uses the receive_fd method of LocalSocket instead of
  doing system calls directly on the fd.
- IPC::ConnectionBase and related classes now use the Stream API
  functions.
- IPC::ServerConnection no longer constructs the socket itself; instead,
  a convenience macro, IPC_CLIENT_CONNECTION, is used in place of
  C_OBJECT and will generate a static try_create factory function for
  the ServerConnection subclass. The subclass is now responsible for
  passing the socket constructed in this function to its
  ServerConnection base; the socket is passed as the first argument to
  the constructor (as a NonnullOwnPtr<Core::Stream::LocalServer>) before
  any other arguments.
- The functionality regarding taking over sockets from SystemServer has
  been moved to LibIPC/SystemServerTakeover.cpp. The Core::LocalSocket
  implementation of this functionality hasn't been deleted due to my
  intention of removing this class in the near future and to reduce
  noise on this (already quite noisy) PR.
2022-01-15 13:29:48 +03:30
..
LibArchive LibArchive: Limit all Tar header fields to their buffer length 2021-11-24 19:09:00 +02:00
LibAudio LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibC LibC: Remove TODO() macros to not break mc port 2022-01-13 18:46:22 +01:00
LibCards AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
LibChess Everywhere: Fix -Winconsistent-missing-override warnings from Clang 2021-12-11 13:14:15 -08:00
LibCompress Everywhere: Fix many spelling errors 2022-01-07 10:56:59 +01:00
LibConfig LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibCore LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibCoredump LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibCpp LibCpp: Cast unused smart-pointer return values to void 2021-12-05 15:31:03 +01:00
LibCrypt LibCrypt: Link the SHA2 hash implementation into LibCrypt privately 2022-01-08 18:56:29 +01:00
LibCrypto LibCrypto: Link against LibCore 2022-01-09 20:40:22 +01:00
LibDebug Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
LibDesktop LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibDeviceTree Libraries: Add LibDeviceTree for manipulating OpenFirmware Device Trees 2021-10-21 19:20:03 -07:00
LibDiff LibDiff: Fix error when parsing a 'new' hunk location 2021-12-31 14:12:54 +01:00
LibDl LibC+LibDl: Declare functions taking no arguments as taking void 2022-01-08 19:22:00 +01:00
LibDSP Everywhere: Use my new serenityos.org e-mail :^) 2022-01-14 11:54:09 +01:00
LibELF LibELF: Accept Span instead of Pointer+Size in validate_program_headers 2022-01-13 22:40:25 +01:00
LibFileSystemAccessClient LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibGemini LibGemini: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
LibGfx LibGfx: Change return type of Adler32 checksums in PNGWriter 2022-01-13 17:59:58 +01:00
LibGL LibGL+LibSoftGPU: Implement glDrawPixels depth buffer support 2022-01-14 21:38:09 +01:00
LibGUI LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibHTTP LibHTTP: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
LibImageDecoderClient LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibIMAP LibIMAP+Userland: Convert LibIMAP::Client to the Serenity Stream APIs 2022-01-13 15:16:12 +03:30
LibIPC LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibJS LibJS: Clip parsed IS0 8601 strings to +/- 8.64e15 2022-01-14 22:39:06 +01:00
LibKeyboard LibKeyboard: Change some Optional<T> returns to ErrorOr<T> 2022-01-06 17:54:03 +01:00
LibLine LibLine: Replace call to vfork() with fork() 2022-01-07 11:02:30 +01:00
LibM LibM: Count fractions when exponent < -1 with mantissa == 0 2022-01-02 12:44:31 +03:30
LibMain LibMain: Make "Runtime error" warnln red 2021-12-23 12:41:13 -08:00
LibMarkdown Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
LibPCIDB LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibPDF LibPDF: Convert PDF::Parser::m_document from RefPtr to WeakPtr 2022-01-08 18:57:55 +01:00
LibProtocol LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibPthread AK+LibC+LibPthread: Introduce NoAllocationGuard 2022-01-11 00:08:58 +01:00
LibRegex AK+Everywhere: Make Variant::visit() respect the Variant's constness 2022-01-14 11:35:40 +03:30
LibSanitizer LibSanitizer: Log UBSAN errors in red text to the debug console 2021-12-15 10:30:32 -08:00
LibSoftGPU LibGL+LibSoftGPU: Implement glDrawPixels depth buffer support 2022-01-14 21:38:09 +01:00
LibSQL LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibSymbolication LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibSyntax LibWeb: Implement first draft of CSS syntax highlighting :^) 2021-10-23 19:07:44 +02:00
LibSystem LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore 2021-11-23 11:33:36 +01:00
LibTest LibJS: Convert Interpreter::run() to ThrowCompletionOr<Value> 2022-01-08 23:43:03 +01:00
LibTextCodec LibTextCodec: Add alternate Cyrillic (aka Koi8-r) encoding 2021-12-16 22:44:45 +01:00
LibThreading Everywhere: Use my new serenityos.org e-mail :^) 2022-01-14 11:54:09 +01:00
LibTimeZone LibTimeZone: Add an API to retrieve the system's current time zone 2022-01-12 15:43:12 +01:00
LibTLS LibTLS: Mark the socket as idle after a TLS-level disconnection 2022-01-08 13:41:31 +03:30
LibUnicode LibUnicode: Do not limit language display names to known locales 2022-01-13 23:05:31 +01:00
LibUSBDB LibCore+AK: Move MappedFile from AK to LibCore 2021-11-23 11:33:36 +01:00
LibVideo LibVideo/VP9: Do not null guard calls to free 2022-01-01 17:30:25 +00:00
LibVT Kernel+LibVT: Use MUST + try_prepend / try_append 2022-01-05 14:04:18 +01:00
LibWasm Everywhere: Fix many spelling errors 2022-01-07 10:56:59 +01:00
LibWeb LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LibWebSocket Userland: Resolve tautological-constant-out-of-range-compare warnings 2022-01-04 07:51:31 +00:00
LibX86 Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
CMakeLists.txt LibTimeZone+Meta: Add plumbing for an IANA Time Zone Database generator 2022-01-08 12:45:34 +01:00