Lines Matching refs:Process
1 //===- Unix/Process.cpp - Unix Process Implementation --------- -*- C++ -*-===//
9 // This file provides the generic Unix implementation of the Process class.
72 Process::Pid Process::getProcessId() {
74 "Process::Pid should be big enough to store pid_t");
80 Expected<unsigned> Process::getPageSize() {
94 size_t Process::GetMallocUsage() {
129 void Process::GetTimeUsage(TimePoint<> &elapsed,
143 void Process::PreventCoreFiles() {
200 std::optional<std::string> Process::GetEnv(StringRef Name) {
227 std::error_code Process::FixupStandardFileDescriptors() {
271 std::error_code Process::SafelyCloseFileDescriptor(int FD) {
280 std::error_code Process::SafelyCloseFileDescriptor(int FD) {
316 bool Process::StandardInIsUserInput() {
320 bool Process::StandardOutIsDisplayed() {
324 bool Process::StandardErrIsDisplayed() {
328 bool Process::FileDescriptorIsDisplayed(int fd) {
350 unsigned Process::StandardOutColumns() {
357 unsigned Process::StandardErrColumns() {
383 bool Process::FileDescriptorHasColors(int fd) {
389 bool Process::StandardOutHasColors() {
393 bool Process::StandardErrHasColors() {
397 void Process::UseANSIEscapeCodes(bool /*enable*/) {
401 bool Process::ColorNeedsFlush() {
406 const char *Process::OutputColor(char code, bool bold, bool bg) {
410 const char *Process::OutputBold(bool bg) { return "\033[1m"; }
412 const char *Process::OutputReverse() { return "\033[7m"; }
414 const char *Process::ResetColor() { return "\033[0m"; }
441 unsigned llvm::sys::Process::GetRandomNumber() {
451 [[noreturn]] void Process::ExitNoCleanup(int RetCode) { _Exit(RetCode); }