This avoids having to query pathconf for a max size for preallocating a buffer for the return value.
This is an extension to the POSIX getcwd() spec.
Differential D97460
[libcxx] Use the allocating form of getcwd() on Glibc and Apple platforms mstorsjo on Feb 25 2021, 4:19 AM. Authored by
Details
This avoids having to query pathconf for a max size for preallocating a buffer for the return value. This is an extension to the POSIX getcwd() spec.
Diff Detail |