Skip to content
BSD syscall#252

svc · unix #252

msgsys

Multiplexed entry point dispatching the System V message-queue family.

Prototype

int msgsys(u_int which, int a2, int a3, int a4, int a5);

Returns: int

Arguments

NameTypeDirDescription
whichu_int-
a2int-
a3int-
a4int-
a5int-

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard252
xnu-1699.24.8macOS 10.7 Lion252
xnu-2050.18.24macOS 10.8 Mountain Lion252
xnu-1486.2.11252
xnu-1504.15.3252
xnu-1504.3.12252
xnu-1504.7.4252
xnu-1504.9.17252
xnu-1504.9.26252
xnu-1504.9.37252
xnu-1699.22.73252
xnu-1699.22.81252
xnu-1699.24.23252
xnu-1699.26.8252
xnu-1699.32.7252
xnu-2050.22.13252
xnu-2050.24.15252
xnu-2050.48.11252
xnu-2050.7.9252
xnu-2050.9.2252

Notes

msgsys(2) is the historical 4.3BSD-style demultiplexer that takes a subcall number and forwards to msgctl / msgget / msgrcv / msgsnd. macOS keeps it for source compatibility but libSystem always calls the specific syscalls directly; the kernel routes both forms through the same handlers.

Related APIs

msgctlmsggetmsgrcvmsgsnd