X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/ad3c9f2af814c84582fdd1649e49ec4f68572c5a..aa54d2fad3d9038b43475aa93c76795c5141a993:/stdlib/FreeBSD/realpath.3 diff --git a/stdlib/FreeBSD/realpath.3 b/stdlib/FreeBSD/realpath.3 index 3ffdf9c..07e9dcc 100644 --- a/stdlib/FreeBSD/realpath.3 +++ b/stdlib/FreeBSD/realpath.3 @@ -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