Skip to content
BSD syscall#253

svc · unix #253

shmsys

Multiplexed entry point dispatching the System V shared-memory family.

Prototype

int shmsys(u_int which, int a2, int a3, int a4);

Returns: int

Arguments

NameTypeDirDescription
whichu_int-
a2int-
a3int-
a4int-

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard253
xnu-1699.24.8macOS 10.7 Lion253
xnu-2050.18.24macOS 10.8 Mountain Lion253
xnu-1486.2.11253
xnu-1504.15.3253
xnu-1504.3.12253
xnu-1504.7.4253
xnu-1504.9.17253
xnu-1504.9.26253
xnu-1504.9.37253
xnu-1699.22.73253
xnu-1699.22.81253
xnu-1699.24.23253
xnu-1699.26.8253
xnu-1699.32.7253
xnu-2050.22.13253
xnu-2050.24.15253
xnu-2050.48.11253
xnu-2050.7.9253
xnu-2050.9.2253

Notes

4.3BSD-era demultiplexer for shmat / shmctl / shmdt / shmget. Kept for source compatibility on macOS; the per-call syscalls are the canonical interface and what libSystem actually emits.

Related APIs

shmatshmctlshmdtshmget