Table of Contents

Class Subprocess

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class Subprocess
Inheritance
Subprocess
Inherited Members

Methods

CommunicateAsync(IntPtr, BytesHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_subprocess_communicate_async.

public static extern void CommunicateAsync(IntPtr subprocess, BytesHandle stdinBuf, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

stdinBuf BytesHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CommunicateUtf8(IntPtr, NullableUtf8StringHandle, IntPtr, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_subprocess_communicate_utf8.

public static extern bool CommunicateUtf8(IntPtr subprocess, NullableUtf8StringHandle stdinBuf, IntPtr cancellable, out NullableUtf8StringOwnedHandle stdoutBuf, out NullableUtf8StringOwnedHandle stderrBuf, out ErrorOwnedHandle error)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

stdinBuf NullableUtf8StringHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

stdoutBuf NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

stderrBuf NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CommunicateUtf8Async(IntPtr, NullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_subprocess_communicate_utf8_async.

public static extern void CommunicateUtf8Async(IntPtr subprocess, NullableUtf8StringHandle stdinBuf, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

stdinBuf NullableUtf8StringHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CommunicateUtf8Finish(IntPtr, IntPtr, out NullableUtf8StringOwnedHandle, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_subprocess_communicate_utf8_finish.

public static extern bool CommunicateUtf8Finish(IntPtr subprocess, IntPtr result, out NullableUtf8StringOwnedHandle stdoutBuf, out NullableUtf8StringOwnedHandle stderrBuf, out ErrorOwnedHandle error)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

stdoutBuf NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

stderrBuf NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ForceExit(IntPtr)

Calls native method g_subprocess_force_exit. Version: 2.40

[Version("2.40")]
public static extern void ForceExit(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

GetExitStatus(IntPtr)

Calls native method g_subprocess_get_exit_status. Version: 2.40

[Version("2.40")]
public static extern int GetExitStatus(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_subprocess_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIdentifier(IntPtr)

Calls native method g_subprocess_get_identifier. Version: 2.40

[Version("2.40")]
public static extern NullableUtf8StringUnownedHandle GetIdentifier(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetIfExited(IntPtr)

Calls native method g_subprocess_get_if_exited. Version: 2.40

[Version("2.40")]
public static extern bool GetIfExited(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetIfSignaled(IntPtr)

Calls native method g_subprocess_get_if_signaled. Version: 2.40

[Version("2.40")]
public static extern bool GetIfSignaled(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetStatus(IntPtr)

Calls native method g_subprocess_get_status. Version: 2.40

[Version("2.40")]
public static extern int GetStatus(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetStderrPipe(IntPtr)

Calls native method g_subprocess_get_stderr_pipe. Version: 2.40

[Version("2.40")]
public static extern IntPtr GetStderrPipe(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetStdinPipe(IntPtr)

Calls native method g_subprocess_get_stdin_pipe. Version: 2.40

[Version("2.40")]
public static extern IntPtr GetStdinPipe(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetStdoutPipe(IntPtr)

Calls native method g_subprocess_get_stdout_pipe. Version: 2.40

[Version("2.40")]
public static extern IntPtr GetStdoutPipe(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSuccessful(IntPtr)

Calls native method g_subprocess_get_successful. Version: 2.40

[Version("2.40")]
public static extern bool GetSuccessful(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetTermSig(IntPtr)

Calls native method g_subprocess_get_term_sig. Version: 2.40

[Version("2.40")]
public static extern int GetTermSig(IntPtr subprocess)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

New(PlatformStringArrayNullTerminatedHandle, SubprocessFlags, out ErrorOwnedHandle)

Calls native constructor g_subprocess_newv. Version: 2.40

[Version("2.40")]
public static extern IntPtr New(PlatformStringArrayNullTerminatedHandle argv, SubprocessFlags flags, out ErrorOwnedHandle error)

Parameters

argv PlatformStringArrayNullTerminatedHandle

Transfer ownership: None Nullable: False

flags SubprocessFlags

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SendSignal(IntPtr, int)

Calls native method g_subprocess_send_signal. Version: 2.40

[Version("2.40")]
public static extern void SendSignal(IntPtr subprocess, int signalNum)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

signalNum int

Transfer ownership: None Nullable: False

Wait(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_subprocess_wait. Version: 2.40

[Version("2.40")]
public static extern bool Wait(IntPtr subprocess, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

WaitAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_subprocess_wait_async. Version: 2.40

[Version("2.40")]
public static extern void WaitAsync(IntPtr subprocess, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

WaitCheck(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_subprocess_wait_check. Version: 2.40

[Version("2.40")]
public static extern bool WaitCheck(IntPtr subprocess, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

WaitCheckAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_subprocess_wait_check_async. Version: 2.40

[Version("2.40")]
public static extern void WaitCheckAsync(IntPtr subprocess, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

WaitCheckFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_subprocess_wait_check_finish. Version: 2.40

[Version("2.40")]
public static extern bool WaitCheckFinish(IntPtr subprocess, IntPtr result, out ErrorOwnedHandle error)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

WaitFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_subprocess_wait_finish. Version: 2.40

[Version("2.40")]
public static extern bool WaitFinish(IntPtr subprocess, IntPtr result, out ErrorOwnedHandle error)

Parameters

subprocess IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False