Skip to content
BSD syscall#12

svc · unix #12

sys_chdir

Internal XNU symbol name for the chdir(2) syscall; the public wrapper is chdir(2).

Prototype

int sys_chdir(user_addr_t path);

Returns: int

Arguments

NameTypeDirDescription
pathuser_addr_t-

Version history

XNU tagmacOS#
xnu-11215.1.10macOS 15.0 Sequoia12
xnu-11417.101.15macOS 15.4 Sequoia12
xnu-12377.1.9macOS 26.0 Tahoe12
xnu-10063.101.15—12
xnu-10063.121.3—12
xnu-10063.141.1—12
xnu-11215.41.3—12
xnu-11215.61.5—12
xnu-11215.81.4—12
xnu-11417.121.6—12
xnu-11417.140.69—12
xnu-12377.101.15—12
xnu-12377.41.6—12
xnu-12377.61.12—12
xnu-12377.81.4—12

Notes

Identical behaviour to chdir — only the kernel symbol differs. See chdir.

Related APIs

chdirfchdir__pthread_chdiropenat