reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

examples/Kaleidoscope/BuildingAJIT/Chapter5/RemoteJITUtils.h
   39         auto ErrNo = errno;
   44                    std::error_code(errno, std::generic_category()));
   57         auto ErrNo = errno;
   62                    std::error_code(errno, std::generic_category()));
gen/tools/lldb/scripts/LLDBWrapPython.cpp
 3682    if ((errno == EDOM) || (errno == ERANGE)) {
 3682    if ((errno == EDOM) || (errno == ERANGE)) {
 3683      errno = 0;
include/llvm/Support/Errno.h
   37     errno = 0;
   39   } while (Res == Fail && errno == EINTR);
lib/Analysis/ConstantFolding.cpp
 1579   errno = 0;
 1584   int errno_val = errno;
lib/Object/ArchiveWriter.cpp
  524     return errorCodeToError(std::error_code(errno, std::generic_category()));
lib/Support/Errno.cpp
   32   return StrError(errno);
lib/Support/LockFileManager.cpp
  116   if (StoredHostID == HostID && getsid(PID) == -1 && errno == ESRCH)
lib/Support/Path.cpp
  959     return std::error_code(errno, std::generic_category());
 1009     return std::error_code(errno, std::generic_category());
 1137     std::error_code EC = std::error_code(errno, std::generic_category());
 1196     std::error_code EC(errno, std::generic_category());
 1219     std::error_code EC(errno, std::generic_category());
lib/Support/RandomNumberGenerator.cpp
   74       Ret = std::error_code(errno, std::system_category());
   78       Ret = std::error_code(errno, std::system_category());
   82   return std::error_code(errno, std::system_category());
lib/Support/Unix/Memory.inc
  137     EC = std::error_code(errno, std::generic_category());
  169     return std::error_code(errno, std::generic_category());
  209     return std::error_code(errno, std::generic_category());
lib/Support/Unix/Path.inc
  276     return std::error_code(errno, std::generic_category());
  308       if (errno != ENOMEM)
  309         return std::error_code(errno, std::generic_category());
  325     return std::error_code(errno, std::generic_category());
  336     if (errno != EEXIST || !IgnoreExisting)
  337       return std::error_code(errno, std::generic_category());
  353     return std::error_code(errno, std::generic_category());
  366     return std::error_code(errno, std::generic_category());
  377     if (errno != ENOENT || !IgnoreNonExisting)
  378       return std::error_code(errno, std::generic_category());
  391     if (errno != ENOENT || !IgnoreNonExisting)
  392       return std::error_code(errno, std::generic_category());
  480     return std::error_code(errno, std::generic_category());
  489     return std::error_code(errno, std::generic_category());
  503     return std::error_code(errno, std::generic_category());
  525     return std::error_code(errno, std::generic_category());
  547     return std::error_code(errno, std::generic_category());
  654     std::error_code EC(errno, std::generic_category());
  710     return std::error_code(errno, std::generic_category());
  716     return std::error_code(errno, std::generic_category());
  727     return std::error_code(errno, std::generic_category());
  773     return std::error_code(errno, std::generic_category());
  816     return std::error_code(errno, std::generic_category());
  848   errno = 0;
  850   if (CurDir == nullptr && errno != 0) {
  851     return std::error_code(errno, std::generic_category());
  929     return std::error_code(errno, std::generic_category());
 1006     return errorCodeToError(std::error_code(errno, std::generic_category()));
 1022     return errorCodeToError(std::error_code(errno, std::generic_category()));
 1088     return std::error_code(errno, std::generic_category());
lib/Support/Unix/Process.inc
   80     return errorCodeToError(std::error_code(errno, std::generic_category()));
  199     errno = 0;
  201       assert(errno && "expected errno to be set if fstat failed!");
  203       if (errno != EBADF)
  204         return std::error_code(errno, std::generic_category());
  207     if (!errno)
  209     assert(errno == EBADF && "expected errno to have EBADF at this point!");
  216         return std::error_code(errno, std::generic_category());
  222       return std::error_code(errno, std::generic_category());
  231     return std::error_code(errno, std::generic_category());
  246     ErrnoFromClose = errno;
lib/Support/Unix/Program.inc
  319       _exit(errno == ENOENT ? 127 : 126);
  362   } while (WaitUntilTerminates && WaitResult.Pid == -1 && errno == EINTR);
  369       if (SecondsToWait && errno == EINTR) {
  385       } else if (errno != EINTR) {
lib/Support/Unix/Signals.inc
  387   SaveAndRestore<int> SaveErrnoDuringASignalHandler(errno);
lib/Support/Unix/Unix.h
   68     errnum = errno;
lib/Support/raw_ostream.cpp
  723       if (errno == EINTR || errno == EAGAIN
  723       if (errno == EINTR || errno == EAGAIN
  725           || errno == EWOULDBLOCK
  731       error_detected(std::error_code(errno, std::generic_category()));
  763     error_detected(std::error_code(errno, std::generic_category()));
lib/TableGen/TGLexer.cpp
  464       errno = 0;
  466       if (errno == EINVAL)
  468       if (errno == ERANGE) {
  469         errno = 0;
  471         if (errno == EINVAL)
  473         if (errno == ERANGE)
lib/Transforms/Utils/SimplifyLibCalls.cpp
  124   errno = 0;
  126   if (errno)
projects/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp
   65     Printf("libFuzzer: sigaction failed with %d\n", errno);
   84     Printf("libFuzzer: sigaction failed with %d\n", errno);
   94     Printf("libFuzzer: setitimer failed with %d\n", errno);
projects/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
   26     Printf("Failed to map guarded pool allocator memory, errno: %d\n", errno);
   36            errno);
   50            errno);
projects/compiler-rt/lib/hwasan/hwasan_linux.cpp
  155       errno == EINVAL) {
projects/compiler-rt/lib/profile/GCDAProfiling.c
  287     int errnum = errno;
  317     int errnum = errno;
  361         int errnum = errno;
projects/compiler-rt/lib/profile/InstrProfilingFile.c
  178              strerror(errno));
  186              strerror(errno));
  202              strerror(errno));
  262              strerror(errno));
  693     PROF_ERR("Failed to write file \"%s\": %s\n", Filename, strerror(errno));
  755     PROF_ERR("Failed to write file \"%s\": %s\n", Filename, strerror(errno));
projects/compiler-rt/lib/profile/InstrProfilingUtil.c
  136     if (errno != EINTR) {
  137       if (errno == ENOLCK) {
  161     if (errno != EINTR) {
  162       if (errno == ENOLCK) {
projects/compiler-rt/lib/safestack/safestack.cpp
  179         (-1 == TgKill(stack->pid, stack->tid, 0) && errno == ESRCH)) {
projects/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
   99     Report("ERROR: %s getrlimit() failed %d\n", SanitizerToolName, errno);
  104     Report("ERROR: %s setrlimit() failed %d\n", SanitizerToolName, errno);
projects/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cpp
  172              "external symbolizer (errno: %d)\n", errno);
projects/compiler-rt/lib/scudo/scudo_allocator.cpp
  693     errno = EINVAL;
  727     errno = ENOMEM;
  752     errno = EINVAL;
projects/compiler-rt/lib/scudo/standalone/linux.cpp
   61     if (!(Flags & MAP_ALLOWNOMEM) || errno != ENOMEM)
   62       dieOnMapUnmapError(errno == ENOMEM);
   81   while (madvise(Addr, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {
projects/compiler-rt/lib/scudo/standalone/wrappers_c.inc
   24       errno = ENOMEM;
   80         errno = EINVAL;
  109       errno = ENOMEM;
  173       errno = EINVAL;
projects/compiler-rt/lib/scudo/standalone/wrappers_c_checks.h
   25     errno = ENOMEM;
projects/compiler-rt/lib/xray/xray_basic_logging.cpp
  311       Report("clock_gettimg(2) return %d, errno=%d.", result, int(errno));
  331           Report("clock_gettimg(2) return %d, errno=%d.", result, int(errno));
projects/compiler-rt/lib/xray/xray_fdr_logging.cpp
  435       Report("clock_gettime(2) return %d, errno=%d", result, int(errno));
projects/compiler-rt/lib/xray/xray_interface.cpp
  291     Report("Failed mprotect: %d\n", errno);
  356     Report("Failed mprotect: %d\n", errno);
projects/compiler-rt/lib/xray/xray_utils.cpp
  141       if (errno == EINTR)
  143       Report("Failed to write; errno = %d\n", errno);
projects/compiler-rt/lib/xray/xray_x86_64.cpp
   39       if (errno == EINTR)
   41       Report("Read error; errno = %d\n", errno);
projects/openmp/runtime/src/kmp_affinity.cpp
 4381       int code = errno;
projects/openmp/runtime/src/kmp_affinity.h
  312       int error = errno;
  331       int error = errno;
projects/openmp/runtime/src/kmp_alloc.cpp
 1115     errno = EINVAL;
projects/openmp/runtime/src/kmp_i18n.cpp
  130       int error = errno; // Save errno immediately.
projects/openmp/runtime/src/kmp_runtime.cpp
 4504       int error = errno;
projects/openmp/runtime/src/z_Linux_util.cpp
  152       int error = errno;
  174       if (errno == ENOSYS) {
  180           int error = errno;
  191       if (errno == EFAULT) {
  214       if (errno == ENOSYS) {
  225           int error = errno;
  245       if (errno == ENOSYS) { // Linux* OS only
  256           int error = errno;
  268       if (errno == EFAULT) {
  320   int retval = (rc == 0) || (errno != ENOSYS);
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp
  220       errno = 0;
  223       if (*end == 0 && errno == 0) {
tools/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp
  334         std::string("inotify_init1() error: ") + strerror(errno),
  347         std::string("inotify_add_watch() error: ") + strerror(errno),
  354         std::string("SemaphorePipe::create() error: ") + strerror(errno),
tools/clang/tools/extra/clangd/JSONTransport.cpp
   86             std::error_code(errno, std::system_category()));
tools/lldb/source/Commands/CommandObjectRegister.cpp
  167               if (errno)
tools/lldb/source/Core/IOHandler.cpp
  407         if (ferror(in) && errno == EINTR)
tools/lldb/source/Host/common/FileSystem.cpp
  437         std::error_code(errno, std::system_category()));
tools/lldb/source/Host/common/Host.cpp
  208       if (errno == EINTR)
tools/lldb/source/Host/common/MainLoop.cpp
  212       errno != EINTR)
  213     return Status(errno, eErrorTypePOSIX);
tools/lldb/source/Host/common/Socket.cpp
   70   return errno == EINTR;
tools/lldb/source/Host/linux/Host.cpp
  176              Status(errno, eErrorTypePOSIX));
tools/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
  192         errno = 0;
  194         if (flags == -1 || errno == EBADF) {
tools/lldb/source/Host/posix/PipePosix.cpp
  191     errno = 0;
  194       const auto errno_copy = errno;
  279       } else if (errno == EINTR) {
  311       } else if (errno == EINTR) {
tools/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp
   51   int err = errno;
  159   if (errno == ETXTBSY) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
  455     errno = 0;
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
  348           if (errno == ESRCH) {
  353               std::error_code(errno, std::generic_category()));
 1455              size, addr, success ? "Success" : llvm::sys::StrError(errno));
 1767       Status error(errno, eErrorTypePOSIX);
 1798   errno = 0;
tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
  420   errno = 0;
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.cpp
  107   errno = 0;
  111     LLDB_LOG(log, "syscall error {0}", errno);
  118   errno = 0;
  123     LLDB_LOG(log, "mmap base error {0}", errno);
  135   errno = 0;
  140     LLDB_LOG(log, "second mmap done {0}", errno);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  470       errno = 0;
  472       if (errno != 0 || decompressed_bufsize == ULONG_MAX) {
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 3154             "error: %d sending the breakpoint request", errno);
 5246       errno = 0;
 5248       if (errno == 0 && user_specified_max != 0) {
tools/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
  312         errno = 0;
  314         if (errno != 0 || addr == 0)
tools/lldb/source/Utility/Status.cpp
  222   m_code = errno;
tools/lldb/source/Utility/StructuredData.cpp
  120     errno = 0;
  122     if (errno == 0) {
tools/lldb/tools/driver/Driver.cpp
  432                static_cast<uint64_t>(commands_size), errno)
  449                                  fds[READ], errno)
tools/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
  383       errno = 0;
  385       if (endptr == arg[1] || errno == ERANGE) {
  387         errno = 0;
  392       if (endptr == arg[1] || errno == ERANGE) {
  394         errno = 0;
tools/lldb/tools/lldb-vscode/IOStream.cpp
   81       if (errno == EINTR || errno == EAGAIN)
   81       if (errno == EINTR || errno == EAGAIN)
  117       reason = errno;
tools/lldb/tools/lldb-vscode/lldb-vscode.cpp
   81       *g_vsc.log << "error: opening socket (" << strerror(errno) << ")"
   91         *g_vsc.log << "error: binding socket (" << strerror(errno) << ")"
  101           *g_vsc.log << "error: accept (" << strerror(errno) << ")"
tools/lldb/unittests/Editline/EditlineTest.cpp
  155   EXPECT_NE(-1, input_bytes_written) << strerror(errno);
tools/lli/RemoteJITUtils.h
   37         auto ErrNo = errno;
   42                    std::error_code(errno, std::generic_category()));
   55         auto ErrNo = errno;
   60                    std::error_code(errno, std::generic_category()));
tools/lli/lli.cpp
  567   errno = 0;
tools/polly/lib/External/isl/isl_sort.c
  142         errno = ENOMEM;
unittests/Support/ErrnoTest.cpp
   18     errno = EAGAIN;
   21   EXPECT_EQ(EAGAIN, errno);
   25               errno = EINTR;
   36   errno = EINTR;
unittests/Support/MemoryBufferTest.cpp
  168   ASSERT_EQ(::pipe(pipes), 0) << strerror(errno);
  179       ASSERT_EQ(::write(pipes[1], "foo", 3), 3) << strerror(errno);
unittests/Support/Path.cpp
 1468     ASSERT_EQ(EBADF, errno);
 1478     ASSERT_EQ(EBADF, errno);
usr/include/c++/7.4.0/ext/string_conversions.h
   63 	_Save_errno() : _M_errno(errno) { errno = 0; }
   63 	_Save_errno() : _M_errno(errno) { errno = 0; }
   64 	~_Save_errno() { if (errno == 0) errno = _M_errno; }
   64 	~_Save_errno() { if (errno == 0) errno = _M_errno; }
   84       else if (errno == ERANGE
usr/include/c++/7.4.0/thread
  373 	while (::nanosleep(&__ts, &__ts) == -1 && errno == EINTR)
utils/benchmark/src/sleep.cc
   39   while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
utils/unittest/googlemock/include/gmock/gmock-actions.h
  788     errno = errno_;
utils/unittest/googletest/src/gtest-death-test.cc
  316     return errno == 0 ? "" : posix::StrError(errno);
  316     return errno == 0 ? "" : posix::StrError(errno);
  333   } while (num_read == -1 && errno == EINTR);
  338     const int last_error = errno;
  446   } while (bytes_read == -1 && errno == EINTR);
utils/unittest/googletest/src/gtest-internal-inl.h
  974   errno = 0;
  993   const bool parse_success = *end == '\0' && errno == 0;