[libc] Add implementation of pthread_atfork.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 7 Oct 2022 08:07:59 +0000 (08:07 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 10 Oct 2022 18:28:43 +0000 (18:28 +0000)
commit438e59182b0c2e44c263f5bacc1add0e514354f8
treec042e1d2d2cce75014ff7b65bc681269bfcdceb5
parentfaea104ef17b00d320017d2cd0d10a89277dc48a
[libc] Add implementation of pthread_atfork.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D135432
16 files changed:
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/__atfork_callback_t.h [new file with mode: 0644]
libc/spec/posix.td
libc/src/__support/CMakeLists.txt
libc/src/__support/fork_callbacks.cpp [new file with mode: 0644]
libc/src/__support/fork_callbacks.h [new file with mode: 0644]
libc/src/pthread/CMakeLists.txt
libc/src/pthread/pthread_atfork.cpp [new file with mode: 0644]
libc/src/pthread/pthread_atfork.h [new file with mode: 0644]
libc/src/unistd/linux/CMakeLists.txt
libc/src/unistd/linux/fork.cpp
libc/test/integration/src/unistd/CMakeLists.txt
libc/test/integration/src/unistd/fork_test.cpp