63 references to Sys
System.Diagnostics.Process (63)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (2)
215
int result = Interop.
Sys
.GetFormatInfoForMountPoint(SysFsCgroupFileSystemPath, formatBuffer, MountPointFormatBufferSizeInBytes, &numericFormat);
218
if (numericFormat == (int)Interop.
Sys
.UnixFileSystemTypes.cgroup2fs)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (3)
123
_error = Interop.
Sys
.ConvertErrorPlatformToPal(errno);
140
get { return _rawErrno == -1 ? (_rawErrno = Interop.
Sys
.ConvertErrorPalToPlatform(_error)) : _rawErrno; }
145
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)
36
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
63
Interop.
Sys
.Passwd passwd;
64
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)
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)
261
Interop.
Sys
.ReadLink(Interop.procfs.GetExeFilePathForProcess(procPid));
System\Diagnostics\Process.Unix.cs (32)
76
int killResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.SIGKILL);
79
Interop.Error error = Interop.
Sys
.GetLastError();
112
int stopResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.SIGSTOP);
115
Interop.Error error = Interop.
Sys
.GetLastError();
126
int killResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.Signals.SIGKILL);
129
Interop.Error error = Interop.
Sys
.GetLastError();
266
int errno = Interop.
Sys
.GetPriority(Interop.
Sys
.PriorityWhich.PRIO_PROCESS, _processId, out int pri);
298
int result = Interop.
Sys
.SetPriority(Interop.
Sys
.PriorityWhich.PRIO_PROCESS, _processId, pri);
519
int errno = Interop.
Sys
.ForkAndExecProcess(
675
if (Interop.
Sys
.Access(resolvedFilename, Interop.
Sys
.AccessMode.X_OK) == 0)
759
Interop.
Sys
.FileStatus fileinfo;
761
if (Interop.
Sys
.Stat(fullPath, out fileinfo) < 0)
767
if ((fileinfo.Mode & Interop.
Sys
.FileTypes.S_IFMT) == Interop.
Sys
.FileTypes.S_IFDIR)
786
uint euid = Interop.
Sys
.GetEUid();
808
if (Interop.
Sys
.IsMemberOfGroup(fileinfo.Gid))
830
ticksPerSecond = Interop.
Sys
.SysConf(Interop.
Sys
.SysConfName._SC_CLK_TCK);
979
uint[]? groups = Interop.
Sys
.GetGroupList(startInfo.UserName, groupId!.Value);
990
Interop.
Sys
.Passwd? passwd;
994
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
1026
private static unsafe bool TryGetPasswd(string name, byte* buf, int bufLen, out Interop.
Sys
.Passwd? passwd)
1029
Interop.
Sys
.Passwd tempPasswd;
1030
int error = Interop.
Sys
.GetPwNamR(name, out tempPasswd, buf, bufLen);
1082
if (!Interop.
Sys
.InitializeTerminalAndSignalHandling())
1088
Interop.
Sys
.RegisterForSigChld(&OnSigChild);
System\Diagnostics\ProcessManager.Linux.cs (1)
278
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\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);