[all-commits] [llvm/llvm-project] 155191: [libc] Restrict access to the RPC Process internals

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed May 17 15:48:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 155191e9fdaee0d12f536a485909c460387d0db8
      https://github.com/llvm/llvm-project/commit/155191e9fdaee0d12f536a485909c460387d0db8
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M libc/src/__support/RPC/rpc.h

  Log Message:
  -----------
  [libc] Restrict access to the RPC Process internals

This patch changes the `Process` struct to only provide the functions
expected to be visible by the interface. So, now we only export the
open, reset, and size query functions. This prevents users of the
interface from messing with the internals of the process, so now the
only existing failure mode is mismatched send and recieve calls.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D150703




More information about the All-commits mailing list