54 references to Sys
System.Console (54)
LibraryImports.g.cs (4)
134internal static unsafe extern partial int GetNameInfo(byte* address, uint addressLength, byte isIpv6, byte* host, uint hostLength, byte* service, uint serviceLength, global::Interop.Sys.GetNameInfoFlags flags); 142internal static unsafe partial int GetHostEntryForName(string address, global::System.Net.Sockets.AddressFamily family, global::Interop.Sys.HostEntry* entry) 167static extern unsafe int __PInvoke(byte* __address_native, global::System.Net.Sockets.AddressFamily __family_native, global::Interop.Sys.HostEntry* __entry_native); 176internal static unsafe extern partial void FreeHostEntry(global::Interop.Sys.HostEntry* entry);
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\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\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\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)
151return Interop.Sys.GetSignalForBreak() == 0; 158if (Interop.Sys.SetSignalForBreak(Convert.ToInt32(!value)) == 0) 159throw Interop.GetExceptionForIoErrno(Interop.Sys.GetLastErrorInfo()); 368Interop.Sys.WinSize winsize; 370Interop.Sys.GetWindowSize(s_terminalHandle, out winsize) == 0) 480Interop.Sys.InitializeConsoleBeforeRead(minChars: (byte)(s_everReceivedCursorPositionResponse ? 1 : 0), decisecondsTimeout: (byte)(s_firstCursorPositionRequest ? 100 : 10)); 555Interop.Sys.InitializeConsoleBeforeRead(); 559Interop.Sys.UninitializeConsoleAfterRead(); 673return !Interop.Sys.IsATty(fd); 892if (!Interop.Sys.InitializeTerminalAndSignalHandling()) 898AppDomain.CurrentDomain.UnhandledException += (_, _) => { Interop.Sys.UninitializeTerminal(); }; 910Interop.Sys.SetKeypadXmit(s_terminalHandle, keypadXmit); 917Interop.Sys.SetTerminalInvalidationHandler(&InvalidateTerminalSettings); 921Interop.Sys.ControlCharacterNames* controlCharacterNames = stackalloc Interop.Sys.ControlCharacterNames[NumControlCharacterNames] 923Interop.Sys.ControlCharacterNames.VERASE, 924Interop.Sys.ControlCharacterNames.VEOL, 925Interop.Sys.ControlCharacterNames.VEOL2, 926Interop.Sys.ControlCharacterNames.VEOF 929Interop.Sys.GetControlCharacters(controlCharacterNames, controlCharacterValues, NumControlCharacterNames, out s_posixDisableValue); 950int result = Interop.CheckIo(Interop.Sys.Read(fd, bufPtr, buffer.Length)); 991int bytesWritten = Interop.Sys.Write(fd, bufPtr, count); 994Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 1009Interop.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);