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.11—253
xnu-1504.15.3—253
xnu-1504.3.12—253
xnu-1504.7.4—253
xnu-1504.9.17—253
xnu-1504.9.26—253
xnu-1504.9.37—253
xnu-1699.22.73—253
xnu-1699.22.81—253
xnu-1699.24.23—253
xnu-1699.26.8—253
xnu-1699.32.7—253
xnu-2050.22.13—253
xnu-2050.24.15—253
xnu-2050.48.11—253
xnu-2050.7.9—253
xnu-2050.9.2—253

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