[libc] Add implementation of the POSIX getcwd function.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 13 Oct 2022 07:43:05 +0000 (07:43 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 14 Oct 2022 16:20:59 +0000 (16:20 +0000)
commit8b0e84a6f6be46b3b9002df161d398e403d184f6
tree4c1ef35d797d7a6badc7d559eda44985d45a4f7c
parent174e954e370e4f2ae82fea3f959e843bc05e3046
[libc] Add implementation of the POSIX getcwd function.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D135905
libc/config/linux/x86_64/entrypoints.txt
libc/spec/posix.td
libc/src/string/CMakeLists.txt
libc/src/string/strdup.cpp
libc/src/string/string_utils.h
libc/src/unistd/CMakeLists.txt
libc/src/unistd/getcwd.h [new file with mode: 0644]
libc/src/unistd/linux/CMakeLists.txt
libc/src/unistd/linux/getcwd.cpp [new file with mode: 0644]
libc/test/integration/src/unistd/CMakeLists.txt
libc/test/integration/src/unistd/getcwd_test.cpp [new file with mode: 0644]