On 2/6/26 03:26, Warner Losh wrote:
From: Stacey Son<[email protected]>

Add implementations for:
- msgsnd(2): Send message to queue with size validation
- msgget(2): Get message queue identifier
- msgrcv(2): Receive message from queue with size validation

Includes bsd_validate_msgsz() helper that caches kern.ipc.msgmax to
validates message sizes.

Signed-off-by: Stacey Son<[email protected]>
Signed-off-by: Warner Losh<[email protected]>
---
  bsd-user/bsd-misc.h | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++
  1 file changed, 95 insertions(+)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to