81 references to Interop
System.Console (81)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (6)
123_error = Interop.Sys.ConvertErrorPlatformToPal(errno); 140get { return _rawErrno == -1 ? (_rawErrno = Interop.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; } 145return Interop.Sys.StrError(RawErrno); 219public static Interop.ErrorInfo Info(this Interop.Error error) 221return new Interop.ErrorInfo(error);
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
16throw Interop.GetExceptionForIoErrno(errorInfo, path, isDirError); 21if (error != Interop.Error.SUCCESS) 99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 179internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (5)
36const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 63Interop.Sys.Passwd passwd; 64int error = Interop.Sys.GetPwUidR(uid, out passwd, buf, bufLen); 82var errorInfo = new Interop.ErrorInfo(error); 86if (errorInfo.Error == Interop.Error.ERANGE)
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (6)
66const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 95Interop.Sys.Passwd passwd; 96int error = Interop.Sys.GetPwUidR(Interop.Sys.GetEUid(), out passwd, buf, bufLen); 115var errorInfo = new Interop.ErrorInfo(error); 119if (errorInfo.Error == Interop.Error.ERANGE)
System\ConsolePal.Unix.cs (46)
48return new UnixConsoleStream(Interop.CheckIo(Interop.Sys.Dup(Interop.Sys.FileDescriptors.STDIN_FILENO)), FileAccess.Read, 54return new UnixConsoleStream(Interop.CheckIo(Interop.Sys.Dup(Interop.Sys.FileDescriptors.STDOUT_FILENO)), FileAccess.Write); 59return new UnixConsoleStream(Interop.CheckIo(Interop.Sys.Dup(Interop.Sys.FileDescriptors.STDERR_FILENO)), FileAccess.Write); 143return Interop.Sys.GetSignalForBreak() == 0; 150if (Interop.Sys.SetSignalForBreak(Convert.ToInt32(!value)) == 0) 151throw Interop.GetExceptionForIoErrno(Interop.Sys.GetLastErrorInfo()); 360Interop.Sys.WinSize winsize; 362Interop.Sys.GetWindowSize(s_terminalHandle, out winsize) == 0) 472Interop.Sys.InitializeConsoleBeforeRead(minChars: (byte)(s_everReceivedCursorPositionResponse ? 1 : 0), decisecondsTimeout: (byte)(s_firstCursorPositionRequest ? 100 : 10)); 547Interop.Sys.InitializeConsoleBeforeRead(); 551Interop.Sys.UninitializeConsoleAfterRead(); 665return !Interop.Sys.IsATty(fd); 674return IsHandleRedirected(Interop.Sys.FileDescriptors.STDIN_FILENO); 682return IsHandleRedirected(Interop.Sys.FileDescriptors.STDOUT_FILENO); 690return IsHandleRedirected(Interop.Sys.FileDescriptors.STDERR_FILENO); 884if (!Interop.Sys.InitializeTerminalAndSignalHandling()) 889s_terminalHandle = !Console.IsOutputRedirected ? Interop.Sys.FileDescriptors.STDOUT_FILENO : 890!Console.IsInputRedirected ? Interop.Sys.FileDescriptors.STDIN_FILENO : 899Interop.Sys.SetKeypadXmit(s_terminalHandle, keypadXmit); 906Interop.Sys.SetTerminalInvalidationHandler(&InvalidateTerminalSettings); 910Interop.Sys.ControlCharacterNames* controlCharacterNames = stackalloc Interop.Sys.ControlCharacterNames[NumControlCharacterNames] 912Interop.Sys.ControlCharacterNames.VERASE, 913Interop.Sys.ControlCharacterNames.VEOL, 914Interop.Sys.ControlCharacterNames.VEOL2, 915Interop.Sys.ControlCharacterNames.VEOF 918Interop.Sys.GetControlCharacters(controlCharacterNames, controlCharacterValues, NumControlCharacterNames, out s_posixDisableValue); 939int result = Interop.CheckIo(Interop.Sys.Read(fd, bufPtr, buffer.Length)); 980int bytesWritten = Interop.Sys.Write(fd, bufPtr, count); 983Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 984if (errorInfo.Error == Interop.Error.EPIPE) 990else if (errorInfo.Error == Interop.Error.EAGAIN) // aka EWOULDBLOCK 998Interop.Sys.Poll(fd, Interop.PollEvents.POLLOUT, Timeout.Infinite, out Interop.PollEvents triggered); 1004throw Interop.GetExceptionForIoErrno(errorInfo); 1108=> WriteTerminalAnsiString(value, Interop.Sys.FileDescriptors.STDOUT_FILENO, mayChangeCursorPosition: false);
System\IO\StdInReader.cs (7)
90int result = Interop.CheckIo(Interop.Sys.ReadStdin(buffer, bufferSize)); 161Interop.Sys.InitializeConsoleBeforeRead(); 268Interop.Sys.UninitializeConsoleAfterRead(); 342Interop.Sys.InitializeConsoleBeforeRead(); 372Interop.Sys.UninitializeConsoleAfterRead(); 377internal static bool StdinReady => Interop.Sys.StdinReady();
System\TermInfo.cs (4)
366Interop.Sys.SNPrintF(null, 0, format, stringArg) : 367Interop.Sys.SNPrintF(null, 0, format, (int)arg); 382Interop.Sys.SNPrintF(ptr, bytes.Length, format, stringArg) : 383Interop.Sys.SNPrintF(ptr, bytes.Length, format, (int)arg);
System\TermInfo.DatabaseFactory.cs (3)
87fd = Interop.Sys.Open(filePath, Interop.Sys.OpenFlags.O_RDONLY | Interop.Sys.OpenFlags.O_CLOEXEC, 0);