[libc] Remove <functional> dependency in syscall_test.cpp
authorAlex Brachet <alexbrachetmialot@gmail.com>
Tue, 14 Apr 2020 07:27:10 +0000 (03:27 -0400)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Tue, 14 Apr 2020 07:27:10 +0000 (03:27 -0400)
commit54d13b5b2d927652429b0538e27dcd28b783a302
tree909ac7b2ae86d43ba3e0b2de73a6ecf2eb2b1221
parent37db04dda6734963eda1fc83d4cec04cdc4adc87
[libc] Remove <functional> dependency in syscall_test.cpp

Summary: Create self contained functional header which has a type similar to `std::function`

Reviewers: sivachandra, PaulkaToast

Reviewed By: sivachandra

Subscribers: mgorny, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D77948
libc/test/config/linux/x86_64/syscall_test.cpp
libc/utils/CPP/CMakeLists.txt
libc/utils/CPP/Functional.h [new file with mode: 0644]