[libc] Restrict access to the RPC Process internals
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 16 May 2023 18:39:28 +0000 (13:39 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 17 May 2023 22:48:12 +0000 (17:48 -0500)
commit155191e9fdaee0d12f536a485909c460387d0db8
treefd4069d941257be4d2927c9bbbe2bc2365fcfa79
parent66da9ec073ff8dde54b70adcf3b62914769324bf
[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
libc/src/__support/RPC/rpc.h