13 #ifndef LLVM_SUPPORT_ERRNO_H 14 #define LLVM_SUPPORT_ERRNO_H 18 #include <type_traits> 32 template <
typename FailT,
typename Fun,
typename...
Args>
34 const Args &... As) -> decltype(
F(As...)) {
35 decltype(
F(As...)) Res;
39 }
while (Res ==
Fail && errno == EINTR);
46 #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.