Skip to content
BSD syscall#216

svc · unix #216

mkcomplex

Legacy Carbon-era helper for creating complex HFS+ resource/data-fork pairs.

Prototype

int mkcomplex(const char *path, mode_t mode, u_long type);

Returns: int

Arguments

NameTypeDirDescription
pathconst char-
modemode_t-
typeu_long-

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard216
xnu-1699.24.8macOS 10.7 Lion216
xnu-1486.2.11—216
xnu-1504.15.3—216
xnu-1504.3.12—216
xnu-1504.7.4—216
xnu-1504.9.17—216
xnu-1504.9.26—216
xnu-1504.9.37—216
xnu-1699.22.73—216
xnu-1699.22.81—216
xnu-1699.24.23—216
xnu-1699.26.8—216
xnu-1699.32.7—216

Notes

Effectively unused on modern macOS; APFS exposes a flat namespace without separate resource forks. Most callers should use open(O_CREAT) or fclonefileat instead.

Related APIs

openopenatfclonefileatgetattrlist