[libc] Implement getopt
authorAlex Brachet <abrachet@google.com>
Mon, 31 Oct 2022 16:55:53 +0000 (16:55 +0000)
committerAlex Brachet <abrachet@google.com>
Mon, 31 Oct 2022 16:55:53 +0000 (16:55 +0000)
commit5fd03c81767f27ef190ca08ca940cf32a62417dd
tree88e63607f196bce4f25ed60f55da3b5d22add08f
parent99f9bd4807d6132b603a1910902e4586e20638e0
[libc] Implement getopt

Differential Revision: https://reviews.llvm.org/D133487
12 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/llvm-libc-types/CMakeLists.txt
libc/include/llvm-libc-types/__getoptargv_t.h [new file with mode: 0644]
libc/spec/posix.td
libc/src/unistd/CMakeLists.txt
libc/src/unistd/getopt.cpp [new file with mode: 0644]
libc/src/unistd/getopt.h [new file with mode: 0644]
libc/test/src/unistd/CMakeLists.txt
libc/test/src/unistd/getopt_test.cpp [new file with mode: 0644]