[libc] Add POSIX execv and execve functions.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 6 Oct 2022 05:24:18 +0000 (05:24 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 6 Oct 2022 19:50:23 +0000 (19:50 +0000)
commit3f965818b6a98f4dedba1a5c3517f661c018e62e
tree3938548b567d9e4547f28ff61d406f1e6fb6cada
parenteaa583c330a280698b227ecc80e3f5a7ebfa0244
[libc] Add POSIX execv and execve functions.

The POSIX global variable environ has also been added.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D135351
25 files changed:
libc/cmake/modules/LLVMLibCTestRules.cmake
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/__exec_argv_t.h [new file with mode: 0644]
libc/include/llvm-libc-types/__exec_envp_t.h [new file with mode: 0644]
libc/loader/linux/aarch64/start.cpp
libc/loader/linux/x86_64/CMakeLists.txt
libc/loader/linux/x86_64/start.cpp
libc/spec/posix.td
libc/src/unistd/CMakeLists.txt
libc/src/unistd/environ.cpp [new file with mode: 0644]
libc/src/unistd/environ.h [new file with mode: 0644]
libc/src/unistd/execv.h [new file with mode: 0644]
libc/src/unistd/execve.h [new file with mode: 0644]
libc/src/unistd/linux/CMakeLists.txt
libc/src/unistd/linux/execv.cpp [new file with mode: 0644]
libc/src/unistd/linux/execve.cpp [new file with mode: 0644]
libc/test/integration/src/unistd/CMakeLists.txt
libc/test/integration/src/unistd/execv_test.cpp [new file with mode: 0644]
libc/test/integration/src/unistd/execv_test_normal_exit.cpp [new file with mode: 0644]
libc/test/integration/src/unistd/execv_test_signal_exit.cpp [new file with mode: 0644]
libc/test/integration/src/unistd/execve_test.cpp [new file with mode: 0644]