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.1512
xnu-10063.121.312
xnu-10063.141.112
xnu-11215.41.312
xnu-11215.61.512
xnu-11215.81.412
xnu-11417.121.612
xnu-11417.140.6912
xnu-12377.101.1512
xnu-12377.41.612
xnu-12377.61.1212
xnu-12377.81.412

Notes

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

Related APIs

chdirfchdir__pthread_chdiropenat