#include <sys/fsgetpath.h>
sys/fsgetpath.h
functionfsgetpath
__OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) __TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0) ssize_t fsgetpath(char *, size_t, fsid_t *, uint64_t)
Obtain the full pathname of a file system object by id.
man page · July 27, 2017
fsgetpath(2) — get the path associated with filesystem node identifier (inode number/link id/object id)