]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/FreeBSD/realpath.3
Libc-1439.100.3.tar.gz
[apple/libc.git] / stdlib / FreeBSD / realpath.3
index 3ffdf9c676bb1186dc47f438e4c887177ff581bd..07e9dcc95546bf3ba50674eeb3f7e554421f77af 100644 (file)
@@ -98,7 +98,17 @@ returns
 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