76 references to Sys
System.Console (76)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (26)
56internal static partial int FLock(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, global::Interop.Sys.LockOperations operation) 86static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __operation_native); 96internal static partial int FLock(nint fd, global::Interop.Sys.LockOperations operation) 111static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __operation_native); 121internal static unsafe partial void GetControlCharacters(global::Interop.Sys.ControlCharacterNames* controlCharacterNames, byte* controlCharacterValues, int controlCharacterLength, out byte posixDisableValue) 133static extern unsafe void __PInvoke(global::Interop.Sys.ControlCharacterNames* __controlCharacterNames_native, byte* __controlCharacterValues_native, int __controlCharacterLength_native, byte* __posixDisableValue_native); 206internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle Open(string filename, global::Interop.Sys.OpenFlags flags, int mode) 249static extern unsafe nint __PInvoke(byte* __filename_native, global::Interop.Sys.OpenFlags __flags_native, int __mode_native); 275internal static unsafe partial int GetPwUidR(uint uid, out global::Interop.Sys.Passwd pwd, byte* buf, int bufLen) 282fixed (global::Interop.Sys.Passwd* __pwd_native = &pwd) 289static extern unsafe int __PInvoke(uint __uid_native, global::Interop.Sys.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native); 299internal static unsafe partial int GetPwNamR(string name, out global::Interop.Sys.Passwd pwd, byte* buf, int bufLen) 313fixed (global::Interop.Sys.Passwd* __pwd_native = &pwd) 328static extern unsafe int __PInvoke(byte* __name_native, global::Interop.Sys.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native); 447internal static partial int FStat(global::System.Runtime.InteropServices.SafeHandle fd, out global::Interop.Sys.FileStatus output) 462fixed (global::Interop.Sys.FileStatus* __output_native = &output) 480static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.FileStatus* __output_native); 490internal static partial int Stat(string path, out global::Interop.Sys.FileStatus output) 505fixed (global::Interop.Sys.FileStatus* __output_native = &output) 523static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native); 533internal static partial int LStat(string path, out global::Interop.Sys.FileStatus output) 548fixed (global::Interop.Sys.FileStatus* __output_native = &output) 566static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native); 761internal static partial int GetWindowSize(global::Microsoft.Win32.SafeHandles.SafeFileHandle terminalHandle, out global::Interop.Sys.WinSize winSize) 776fixed (global::Interop.Sys.WinSize* __winSize_native = &winSize) 794static extern unsafe int __PInvoke(nint __terminalHandle_native, global::Interop.Sys.WinSize* __winSize_native);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (3)
124_error = Interop.Sys.ConvertErrorPlatformToPal(errno); 141get { return _rawErrno == -1 ? (_rawErrno = Interop.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; } 146return Interop.Sys.StrError(RawErrno);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (3)
42ThrowExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 53ThrowExceptionForIoErrno(Sys.GetLastErrorInfo(), path: null, isDirError: false); 99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (3)
37const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 64Interop.Sys.Passwd passwd; 65int error = Interop.Sys.GetPwUidR(uid, out passwd, buf, bufLen);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (4)
72const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 101Interop.Sys.Passwd passwd; 102int error = Interop.Sys.GetPwUidR(Interop.Sys.GetEUid(), out passwd, buf, bufLen);
System\ConsolePal.Unix.cs (24)
153return Interop.Sys.GetSignalForBreak() == 0; 160if (Interop.Sys.SetSignalForBreak(Convert.ToInt32(!value)) == 0) 161throw Interop.GetExceptionForIoErrno(Interop.Sys.GetLastErrorInfo()); 370Interop.Sys.WinSize winsize; 372Interop.Sys.GetWindowSize(s_terminalHandle, out winsize) == 0) 482Interop.Sys.InitializeConsoleBeforeRead(minChars: (byte)(s_everReceivedCursorPositionResponse ? 1 : 0), decisecondsTimeout: (byte)(s_firstCursorPositionRequest ? 100 : 10)); 557Interop.Sys.InitializeConsoleBeforeRead(); 561Interop.Sys.UninitializeConsoleAfterRead(); 675return !Interop.Sys.IsATty(fd); 894if (!Interop.Sys.InitializeTerminalAndSignalHandling()) 900AppDomain.CurrentDomain.UnhandledException += (_, _) => { Interop.Sys.UninitializeTerminal(); }; 912Interop.Sys.SetKeypadXmit(s_terminalHandle, keypadXmit); 919Interop.Sys.SetTerminalInvalidationHandler(&InvalidateTerminalSettings); 923Interop.Sys.ControlCharacterNames* controlCharacterNames = stackalloc Interop.Sys.ControlCharacterNames[NumControlCharacterNames] 925Interop.Sys.ControlCharacterNames.VERASE, 926Interop.Sys.ControlCharacterNames.VEOL, 927Interop.Sys.ControlCharacterNames.VEOL2, 928Interop.Sys.ControlCharacterNames.VEOF 931Interop.Sys.GetControlCharacters(controlCharacterNames, controlCharacterValues, NumControlCharacterNames, out s_posixDisableValue); 952int result = Interop.CheckIo(Interop.Sys.Read(fd, bufPtr, buffer.Length)); 993int bytesWritten = Interop.Sys.Write(fd, bufPtr, count); 996Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 1011Interop.Sys.Poll(fd, Interop.PollEvents.POLLOUT, Timeout.Infinite, out Interop.PollEvents triggered);
System\IO\StdInReader.cs (6)
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)
358Interop.Sys.SNPrintF(null, 0, format, stringArg) : 359Interop.Sys.SNPrintF(null, 0, format, (int)arg); 374Interop.Sys.SNPrintF(ptr, bytes.Length, format, stringArg) : 375Interop.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);