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;
40 }
while (Res ==
Fail && errno == EINTR);
47 #endif // LLVM_SYSTEM_ERRNO_H This class represents lattice values for constants.
std::string StrError()
Returns a string representation of the errno value, using whatever thread-safe variant of strerror() ...
auto RetryAfterSignal(const FailT &Fail, const Fun &F, const Args &... As) -> decltype(F(As...))
constexpr char Args[]
Key for Kernel::Metadata::mArgs.