Skip to content
BSD syscall#466

svc · unix #466

faccessat

Tests access permissions on a path relative to a directory descriptor.

Prototype

int faccessat(int fd, user_addr_t path, int amode, int flag);

Returns: int

Arguments

NameTypeDirDescription
fdint-
pathuser_addr_t-
amodeint-
flagint-

Version history

XNU tagmacOS#
xnu-2782.40.9macOS 10.10 Yosemite466
xnu-3247.1.106macOS 10.11 El Capitan466
xnu-3789.1.32macOS 10.12 Sierra466
xnu-4570.1.46macOS 10.13 High Sierra466
xnu-4903.221.2macOS 10.14 Mojave466
xnu-6153.11.26macOS 10.15 Catalina466
xnu-7195.50.7.100.1macOS 11.0 Big Sur466
xnu-8019.41.5macOS 12.0 Monterey466
xnu-8792.41.9macOS 13.0 Ventura466
xnu-10002.1.13macOS 14.0 Sonoma466
xnu-11215.1.10macOS 15.0 Sequoia466
xnu-11417.101.15macOS 15.4 Sequoia466
xnu-12377.1.9macOS 26.0 Tahoe466
xnu-10002.41.9—466
xnu-10002.61.3—466
xnu-10002.81.5—466
xnu-10063.101.15—466
xnu-10063.121.3—466
xnu-10063.141.1—466
xnu-11215.41.3—466
xnu-11215.61.5—466
xnu-11215.81.4—466
xnu-11417.121.6—466
xnu-11417.140.69—466
xnu-12377.101.15—466
xnu-12377.41.6—466
xnu-12377.61.12—466
xnu-12377.81.4—466
xnu-2782.1.97—466
xnu-2782.10.72—466
xnu-2782.20.48—466
xnu-2782.30.5—466
xnu-3247.10.11—466
xnu-3248.20.55—466
xnu-3248.30.4—466
xnu-3248.40.184—466
xnu-3248.50.21—466
xnu-3248.60.10—466
xnu-3789.21.4—466
xnu-3789.31.2—466
xnu-3789.41.3—466
xnu-3789.51.2—466
xnu-3789.60.24—466
xnu-3789.70.16—466
xnu-4570.20.62—466
xnu-4570.31.3—466
xnu-4570.41.2—466
xnu-4570.51.1—466
xnu-4570.61.1—466
xnu-4570.71.2—466
xnu-4903.231.4—466
xnu-4903.241.1—466
xnu-4903.270.47—466
xnu-6153.101.6—466
xnu-6153.121.1—466
xnu-6153.141.1—466
xnu-6153.41.3—466
xnu-6153.61.1—466
xnu-6153.81.5—466
xnu-7195.101.1—466
xnu-7195.121.3—466
xnu-7195.141.2—466
xnu-7195.60.75—466
xnu-7195.81.3—466
xnu-8019.61.5—466
xnu-8019.80.24—466
xnu-8020.101.4—466
xnu-8020.121.3—466
xnu-8020.140.41—466
xnu-8792.61.2—466
xnu-8792.81.2—466
xnu-8796.101.5—466
xnu-8796.121.2—466
xnu-8796.141.3—466

Notes

Supports the same R_OK/W_OK/X_OK/F_OK modes as access(2). With AT_EACCESS the check uses the effective uid/gid instead of the real ones, which matters for set-uid programs. AT_SYMLINK_NOFOLLOW makes the test apply to the link itself.

Detection

syscall::faccessat:entry in DTrace. ES does not have a dedicated access event; only the eventual open emits NOTIFY_OPEN.

Related APIs

accessopenatfstatatstatfchmodat