14 #ifndef LLVM_SUPPORT_ERRNO_H
15 #define LLVM_SUPPORT_ERRNO_H
19 #include <type_traits>
33 template <
typename FailT,
typename Fun,
typename...
Args>
35 const Args &... As) -> decltype(
F(As...)) {
36 decltype(
F(As...)) Res;
39 while (Res ==
Fail && errno == EINTR);
46 #endif // LLVM_SYSTEM_ERRNO_H
std::string StrError()
Returns a string representation of the errno value, using whatever thread-safe variant of strerror() ...
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
auto RetryAfterSignal(const FailT &Fail, const Fun &F, const Args &...As) -> decltype(F(As...))