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 Authored by mstorsjo on Feb 25 2021, 4:19 AM.
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
|