-#define fsgetpath(buf, bufsize, fsid, objid) \
- (ssize_t)syscall(SYS_fsgetpath, buf, (size_t)bufsize, fsid, (uint64_t)objid)
+ssize_t fsgetpath(char *, size_t, fsid_t *, uint64_t) __OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) __TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0);
+
+#ifdef PRIVATE
+#include <sys/_types/_fsobj_id_t.h>
+
+#ifndef FSOPT_NOFIRMLINKPATH /* also in attr.h */
+#define FSOPT_NOFIRMLINKPATH 0x00000080
+#endif
+
+#ifndef FSOPT_ISREALFSID /* also in attr.h */
+#ifdef FSOPT_RETURN_REALDEV
+#define FSOPT_ISREALFSID FSOPT_RETURN_REALDEV
+#else
+#define FSOPT_ISREALFSID 0x00000200
+#endif
+#endif /* FSOPT_ISREALFSID */
+
+#ifdef __APPLE_API_PRIVATE
+