98 references to Sys
System.Diagnostics.Process (98)
_generated\0\LibraryImports.g.cs (29)
412
internal static partial long SysConf(global::Interop.
Sys
.SysConfName name)
428
static extern unsafe long __PInvoke(global::Interop.
Sys
.SysConfName __name_native);
528
internal static unsafe partial int GetPwUidR(uint uid, out global::Interop.
Sys
.Passwd pwd, byte* buf, int bufLen)
535
fixed (global::Interop.
Sys
.Passwd* __pwd_native = &pwd)
543
static extern unsafe int __PInvoke(uint __uid_native, global::Interop.
Sys
.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native);
553
internal static unsafe partial int GetPwNamR(string name, out global::Interop.
Sys
.Passwd pwd, byte* buf, int bufLen)
567
fixed (global::Interop.
Sys
.Passwd* __pwd_native = &pwd)
583
static extern unsafe int __PInvoke(byte* __name_native, global::Interop.
Sys
.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native);
593
private static partial int GetPriority(global::Interop.
Sys
.PriorityWhich which, int who)
609
static extern unsafe int __PInvoke(global::Interop.
Sys
.PriorityWhich __which_native, int __who_native);
619
internal static partial int SetPriority(global::Interop.
Sys
.PriorityWhich which, int who, int nice)
635
static extern unsafe int __PInvoke(global::Interop.
Sys
.PriorityWhich __which_native, int __who_native, int __nice_native);
884
internal static partial int GetRLimit(global::Interop.
Sys
.RlimitResources resourceType, out global::Interop.
Sys
.RLimit limits)
892
fixed (global::Interop.
Sys
.RLimit* __limits_native = &limits)
903
static extern unsafe int __PInvoke(global::Interop.
Sys
.RlimitResources __resourceType_native, global::Interop.
Sys
.RLimit* __limits_native);
913
internal static partial int SetRLimit(global::Interop.
Sys
.RlimitResources resourceType, ref global::Interop.
Sys
.RLimit limits)
920
fixed (global::Interop.
Sys
.RLimit* __limits_native = &limits)
931
static extern unsafe int __PInvoke(global::Interop.
Sys
.RlimitResources __resourceType_native, global::Interop.
Sys
.RLimit* __limits_native);
941
private static partial int PathConf(string path, global::Interop.
Sys
.PathConfName name)
972
static extern unsafe int __PInvoke(byte* __path_native, global::Interop.
Sys
.PathConfName __name_native);
1039
internal static partial int Access(string path, global::Interop.
Sys
.AccessMode mode)
1070
static extern unsafe int __PInvoke(byte* __path_native, global::Interop.
Sys
.AccessMode __mode_native);
1194
internal static partial int GetSpaceInfoForMountPoint(string name, out global::Interop.
Sys
.MountPointInformation mpi)
1209
fixed (global::Interop.
Sys
.MountPointInformation* __mpi_native = &mpi)
1228
static extern unsafe int __PInvoke(byte* __name_native, global::Interop.
Sys
.MountPointInformation* __mpi_native);
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (8)
79
int result = Interop.
Sys
.Kill(processId, 0);
83
Interop.ErrorInfo errorInfo = Interop.
Sys
.GetLastErrorInfo();
114
int signalNumber = Interop.
Sys
.GetPlatformSignalNumber(signal);
120
int killResult = Interop.
Sys
.Kill(ProcessId, signalNumber);
123
Interop.ErrorInfo errorInfo = Interop.
Sys
.GetLastErrorInfo();
263
Interop.
Sys
.AllocArgvArray(argv, ref argvPtr);
264
Interop.
Sys
.AllocEnvpArray(startInfo.Environment, ref envpPtr);
460
errno = Interop.
Sys
.ForkAndExecProcess(
src\runtime\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\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetGroupList.cs (1)
26
rv = Interop.
Sys
.GetGroupList(userName, primaryGroupId, pGroups, &ngroups);
src\runtime\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\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
31
string? path =
Sys
.RealPath(name);
System\Diagnostics\Process.Linux.cs (4)
52
bootTimeTicks = Interop.
Sys
.GetBootTimeTicks();
138
if (Interop.
Sys
.SchedGetAffinity(_processId, out set) != 0)
149
if (Interop.
Sys
.SchedSetAffinity(_processId, ref value) != 0)
209
Interop.
Sys
.ReadLink(Interop.procfs.GetExeFilePathForProcess(procPid));
System\Diagnostics\Process.Multiplexing.Unix.cs (8)
45
if (Interop.
Sys
.Fcntl.DangerousSetIsNonBlocking(outputFd, 1) != 0
46
|| Interop.
Sys
.Fcntl.DangerousSetIsNonBlocking(errorFd, 1) != 0)
187
pollError = Interop.
Sys
.Poll(pPollFds, (uint)numFds, pollTimeout, &triggered);
198
throw new Win32Exception(Interop.
Sys
.ConvertErrorPalToPlatform(pollError));
276
if (Interop.
Sys
.Fcntl.DangerousSetIsNonBlocking(outputFd, 1) != 0 || Interop.
Sys
.Fcntl.DangerousSetIsNonBlocking(errorFd, 1) != 0)
333
int bytesRead = Interop.
Sys
.Read(handle, pBuffer + offset, buffer.Length - offset);
336
Interop.ErrorInfo errorInfo = Interop.
Sys
.GetLastErrorInfo();
System\Diagnostics\Process.Unix.cs (15)
78
int signalNumber = Interop.
Sys
.GetPlatformSignalNumber(signal);
84
int killResult = Interop.
Sys
.Kill(_processId, signalNumber);
87
Interop.Error error = Interop.
Sys
.GetLastError();
131
int killResult = Interop.
Sys
.Kill(process._processId, Interop.
Sys
.GetPlatformSignalNumber(PosixSignal.SIGKILL));
134
Interop.ErrorInfo errorInfo = Interop.
Sys
.GetLastErrorInfo();
170
int stopResult = Interop.
Sys
.Kill(_processId, Interop.
Sys
.GetPlatformSIGSTOP());
173
Interop.ErrorInfo errorInfo = Interop.
Sys
.GetLastErrorInfo();
329
int errno = Interop.
Sys
.GetPriority(Interop.
Sys
.PriorityWhich.PRIO_PROCESS, _processId, out int pri);
361
int result = Interop.
Sys
.SetPriority(Interop.
Sys
.PriorityWhich.PRIO_PROCESS, _processId, pri);
467
ticksPerSecond = Interop.
Sys
.SysConf(Interop.
Sys
.SysConfName._SC_CLK_TCK);
System\Diagnostics\ProcessManager.Linux.cs (1)
291
if (Interop.
Sys
.ReadLink($"{Interop.procfs.RootPath}{Interop.procfs.Self}") is string target &&
System\Diagnostics\ProcessManager.Unix.cs (3)
30
int output = Interop.
Sys
.Kill(processId, 0);
32
return 0 == output || (-1 == output && Interop.Error.EPERM == Interop.
Sys
.GetLastError());
49
machineName != Interop.
Sys
.GetHostName();
System\Diagnostics\ProcessThread.Linux.cs (1)
24
return Interop.
Sys
.GetThreadPriorityFromNiceValue((int)stat.nice);
System\Diagnostics\ProcessUtils.ConfigureTerminalForChildProcesses.Unix.cs (5)
25
Interop.
Sys
.ConfigureTerminalForChildProcess(childUsesTerminal: true);
34
Interop.
Sys
.ConfigureTerminalForChildProcess(childUsesTerminal: false);
41
Interop.
Sys
.SetDelayedSigChildConsoleConfigurationHandler(&DelayedSigChildConsoleConfiguration);
54
Interop.
Sys
.ConfigureTerminalForChildProcess(childUsesTerminal: false);
65
internal static bool IsTerminal(SafeFileHandle? standardHandle) => standardHandle is not null && Interop.
Sys
.IsATty(standardHandle);
System\Diagnostics\ProcessUtils.Unix.cs (11)
22
internal static bool SupportsAtomicNonInheritablePipeCreation => Interop.
Sys
.IsAtomicNonInheritablePipeCreationSupported;
25
=> Interop.
Sys
.Access(fullPath, Interop.
Sys
.AccessMode.X_OK) == 0 && !Directory.Exists(fullPath);
38
if (!Interop.
Sys
.InitializeTerminalAndSignalHandling())
44
Interop.
Sys
.RegisterForSigChld(&OnSigChild);
64
uint[]? groups = Interop.
Sys
.GetGroupList(startInfo.UserName, groupId!.Value);
75
Interop.
Sys
.Passwd? passwd;
79
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
111
private static unsafe bool TryGetPasswd(string name, byte* buf, int bufLen, out Interop.
Sys
.Passwd? passwd)
114
Interop.
Sys
.Passwd tempPasswd;
115
int error = Interop.
Sys
.GetPwNamR(name, out tempPasswd, buf, bufLen);
System\Diagnostics\ProcessWaitState.Unix.cs (5)
369
int killResult = Interop.
Sys
.Kill(_processId, 0); // 0 means don't send a signal, used to check if process is still alive
379
Interop.Error errno = Interop.
Sys
.GetLastError();
588
int waitResult = Interop.
Sys
.WaitPidExitedNoHang(_processId, out exitCode, out terminatingSignal);
622
pid = Interop.
Sys
.WaitIdAnyExitedNoHangNoWait();
694
pid = Interop.
Sys
.WaitPidExitedNoHang(-1, out exitCode, out terminatingSignal);