Lines Matching +refs:llvm +refs:mode

40 using llvm::Expected;
70 return llvm::createStringError( in GetStreamOpenModeFromOptions()
71 llvm::inconvertibleErrorCode(), in GetStreamOpenModeFromOptions()
75 Expected<File::OpenOptions> File::GetOptionsFromMode(llvm::StringRef mode) { in GetOptionsFromMode() argument
77 llvm::StringSwitch<OpenOptions>(mode) in GetOptionsFromMode()
92 return llvm::createStringError( in GetOptionsFromMode()
93 llvm::inconvertibleErrorCode(), in GetOptionsFromMode()
179 if (llvm::sys::Process::FileDescriptorHasColors(fd)) in CalculateInteractiveAndTerminal()
229 return llvm::createStringError( in GetOptions()
230 llvm::inconvertibleErrorCode(), in GetOptions()
276 auto mode = GetStreamOpenModeFromOptions(m_options); in GetStream() local
277 if (!mode) in GetStream()
278 llvm::consumeError(mode.takeError()); in GetStream()
291 m_stream = llvm::sys::RetryAfterSignal(nullptr, ::fdopen, m_descriptor, in GetStream()
292 mode.get()); in GetStream()
449 if (llvm::sys::RetryAfterSignal(EOF, ::fflush, m_stream) == EOF) in Flush()
465 if (llvm::sys::RetryAfterSignal(-1, ::fsync, m_descriptor) == -1) in Sync()
515 bytes_read = llvm::sys::RetryAfterSignal(-1, ::read, m_descriptor, buf, num_bytes); in Read()
575 llvm::sys::RetryAfterSignal(-1, ::write, m_descriptor, buf, num_bytes); in Write()
638 llvm::sys::RetryAfterSignal(-1, ::pread, fd, buf, num_bytes, offset); in Read()
698 llvm::sys::RetryAfterSignal(-1, ::pwrite, m_descriptor, buf, num_bytes, offset); in Write()
734 mode_t mode = 0; in ConvertOpenOptionsForPOSIXOpen() local
736 mode |= O_RDWR; in ConvertOpenOptionsForPOSIXOpen()
738 mode |= O_WRONLY; in ConvertOpenOptionsForPOSIXOpen()
741 mode |= O_APPEND; in ConvertOpenOptionsForPOSIXOpen()
744 mode |= O_TRUNC; in ConvertOpenOptionsForPOSIXOpen()
747 mode |= O_NONBLOCK; in ConvertOpenOptionsForPOSIXOpen()
750 mode |= O_CREAT | O_EXCL; in ConvertOpenOptionsForPOSIXOpen()
752 mode |= O_CREAT; in ConvertOpenOptionsForPOSIXOpen()
754 return mode; in ConvertOpenOptionsForPOSIXOpen()