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

Add implementation of msgctl(2) syscall for System V message queue control
operations. Handles command translation and structure conversions for
IPC_STAT/IPC_SET/IPC_RMID operations.

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

diff --git a/bsd-user/bsd-misc.h b/bsd-user/bsd-misc.h
index 81fdfd8351..27f4497d76 100644
--- a/bsd-user/bsd-misc.h
+++ b/bsd-user/bsd-misc.h
@@ -28,6 +28,12 @@
#include "qemu-bsd.h" +#ifdef MSGMAX
+static int bsd_msgmax = MSGMAX;
+#else
+static int bsd_msgmax;
+#endif

(1) This isn't used in this patch, and probably generates a Werror.
(2) Does any supported FreeBSD version actually define MSGMAX anymore?
    Grepping current source suggests one always has to probe at runtime.

Anyway, if you move this item to the next patch,
Reviewed-by: Richard Henderson <[email protected]>

for the rest of this one.

r~

Reply via email to