84 references to Sys
System.Diagnostics.Process (84)
LibraryImports.g.cs (18)
275
internal static partial nint MMap(nint addr, ulong len, global::Interop.
Sys
.MemoryMappedProtections prot, global::Interop.
Sys
.MemoryMappedFlags flags, global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, long offset)
304
static extern unsafe nint __PInvoke(nint __addr_native, ulong __len_native, global::Interop.
Sys
.MemoryMappedProtections __prot_native, global::Interop.
Sys
.MemoryMappedFlags __flags_native, nint __fd_native, long __offset_native);
313
internal static partial nint MMap(nint addr, ulong len, global::Interop.
Sys
.MemoryMappedProtections prot, global::Interop.
Sys
.MemoryMappedFlags flags, nint fd, long offset)
327
static extern unsafe nint __PInvoke(nint __addr_native, ulong __len_native, global::Interop.
Sys
.MemoryMappedProtections __prot_native, global::Interop.
Sys
.MemoryMappedFlags __flags_native, nint __fd_native, long __offset_native);
359
internal static partial int MSync(nint addr, ulong len, global::Interop.
Sys
.MemoryMappedSyncFlags flags)
373
static extern unsafe int __PInvoke(nint __addr_native, ulong __len_native, global::Interop.
Sys
.MemoryMappedSyncFlags __flags_native);
382
internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle Open(string filename, global::Interop.
Sys
.OpenFlags flags, int mode)
426
static extern unsafe nint __PInvoke(byte* __filename_native, global::Interop.
Sys
.OpenFlags __flags_native, int __mode_native);
435
internal static partial long SysConf(global::Interop.
Sys
.SysConfName name)
449
static extern unsafe long __PInvoke(global::Interop.
Sys
.SysConfName __name_native);
496
internal static partial int MAdvise(nint addr, ulong length, global::Interop.
Sys
.MemoryAdvice advice)
510
static extern unsafe int __PInvoke(nint __addr_native, ulong __length_native, global::Interop.
Sys
.MemoryAdvice __advice_native);
519
internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle ShmOpen(string name, global::Interop.
Sys
.OpenFlags flags, int mode)
563
static extern unsafe nint __PInvoke(byte* __name_native, global::Interop.
Sys
.OpenFlags __flags_native, int __mode_native);
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (3)
124
_error = Interop.
Sys
.ConvertErrorPlatformToPal(errno);
141
get { return _rawErrno == -1 ? (_rawErrno = Interop.
Sys
.ConvertErrorPalToPlatform(_error)) : _rawErrno; }
146
return Interop.
Sys
.StrError(RawErrno);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetGroupList.cs (1)
26
rv = Interop.
Sys
.GetGroupList(userName, primaryGroupId, pGroups, &ngroups);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (3)
37
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
64
Interop.
Sys
.Passwd passwd;
65
int error = Interop.
Sys
.GetPwUidR(uid, out passwd, buf, bufLen);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IsMemberOfGroup.cs (2)
30
rv = Interop.
Sys
.GetGroups(groups.Length, pGroups);
38
else if (rv == -1 && Interop.
Sys
.GetLastError() == Interop.Error.EINVAL)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
31
string? path =
Sys
.RealPath(name);
System\Diagnostics\Process.ConfigureTerminalForChildProcesses.Unix.cs (4)
24
Interop.
Sys
.ConfigureTerminalForChildProcess(childUsesTerminal: true);
33
Interop.
Sys
.ConfigureTerminalForChildProcess(childUsesTerminal: false);
40
Interop.
Sys
.SetDelayedSigChildConsoleConfigurationHandler(&DelayedSigChildConsoleConfiguration);
53
Interop.
Sys
.ConfigureTerminalForChildProcess(childUsesTerminal: false);
System\Diagnostics\Process.Linux.cs (4)
90
bootTimeTicks = Interop.
Sys
.GetBootTimeTicks();
191
if (Interop.
Sys
.SchedGetAffinity(_processId, out set) != 0)
202
if (Interop.
Sys
.SchedSetAffinity(_processId, ref value) != 0)
262
Interop.
Sys
.ReadLink(Interop.procfs.GetExeFilePathForProcess(procPid));
System\Diagnostics\Process.Unix.cs (30)
75
int killResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.SIGKILL);
78
Interop.Error error = Interop.
Sys
.GetLastError();
111
int stopResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.SIGSTOP);
114
Interop.Error error = Interop.
Sys
.GetLastError();
125
int killResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.SIGKILL);
128
Interop.Error error = Interop.
Sys
.GetLastError();
265
int errno = Interop.
Sys
.GetPriority(Interop.
Sys
.PriorityWhich.PRIO_PROCESS, _processId, out int pri);
297
int result = Interop.
Sys
.SetPriority(Interop.
Sys
.PriorityWhich.PRIO_PROCESS, _processId, pri);
390
bool usesTerminal = (stdinHandle is not null && Interop.
Sys
.IsATty(stdinHandle))
391
|| (stdoutHandle is not null && Interop.
Sys
.IsATty(stdoutHandle))
392
|| (stderrHandle is not null && Interop.
Sys
.IsATty(stderrHandle));
481
int errno = Interop.
Sys
.ForkAndExecProcess(
613
if (Interop.
Sys
.Access(resolvedFilename, Interop.
Sys
.AccessMode.X_OK) == 0)
682
ticksPerSecond = Interop.
Sys
.SysConf(Interop.
Sys
.SysConfName._SC_CLK_TCK);
706
private static bool SupportsAtomicNonInheritablePipeCreation => Interop.
Sys
.IsAtomicNonInheritablePipeCreationSupported;
839
uint[]? groups = Interop.
Sys
.GetGroupList(startInfo.UserName, groupId!.Value);
850
Interop.
Sys
.Passwd? passwd;
854
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
886
private static unsafe bool TryGetPasswd(string name, byte* buf, int bufLen, out Interop.
Sys
.Passwd? passwd)
889
Interop.
Sys
.Passwd tempPasswd;
890
int error = Interop.
Sys
.GetPwNamR(name, out tempPasswd, buf, bufLen);
942
if (!Interop.
Sys
.InitializeTerminalAndSignalHandling())
948
Interop.
Sys
.RegisterForSigChld(&OnSigChild);
System\Diagnostics\ProcessManager.Linux.cs (1)
274
if (Interop.
Sys
.ReadLink($"{Interop.procfs.RootPath}{Interop.procfs.Self}") is string target &&
System\Diagnostics\ProcessManager.Unix.cs (4)
30
int output = Interop.
Sys
.Kill(processId, Interop.
Sys
.Signals.None);
32
return 0 == output || (-1 == output && Interop.Error.EPERM == Interop.
Sys
.GetLastError());
69
machineName != Interop.
Sys
.GetHostName();
System\Diagnostics\ProcessThread.Linux.cs (1)
24
return Interop.
Sys
.GetThreadPriorityFromNiceValue((int)stat.nice);
System\Diagnostics\ProcessUtils.Unix.cs (6)
12
Interop.
Sys
.FileStatus fileinfo;
14
if (Interop.
Sys
.Stat(fullPath, out fileinfo) < 0)
20
if ((fileinfo.Mode & Interop.
Sys
.FileTypes.S_IFMT) == Interop.
Sys
.FileTypes.S_IFDIR)
39
uint euid = Interop.
Sys
.GetEUid();
61
if (Interop.
Sys
.IsMemberOfGroup(fileinfo.Gid))
System\Diagnostics\ProcessWaitState.Unix.cs (6)
354
int killResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.None); // None means don't send a signal
364
Interop.Error errno = Interop.
Sys
.GetLastError();
571
int waitResult = Interop.
Sys
.WaitPidExitedNoHang(_processId, out exitCode);
605
pid = Interop.
Sys
.WaitIdAnyExitedNoHangNoWait();
676
pid = Interop.
Sys
.WaitPidExitedNoHang(-1, out exitCode);