Loading...
stdlib/FreeBSD/realpath.3 Libc-825.26 Libc-1669.40.2
--- Libc/Libc-825.26/stdlib/FreeBSD/realpath.3
+++ Libc/Libc-1669.40.2/stdlib/FreeBSD/realpath.3
@@ -98,7 +98,17 @@
 If
 .Fa resolved_name
 was non-NULL, it will
-contains the pathname which caused the problem.
+contain the pathname which caused the problem.
+.Sh VARIANTS
+Defining 
+.Dv _DARWIN_C_SOURCE
+or
+.Dv _DARWIN_BETTER_REALPATH
+before including stdlib.h will cause the provided implementation of
+.Fn realpath
+to use F_GETPATH from
+.Xr fcntl 2
+to discover the path.
 .Sh ERRORS
 The function
 .Fn realpath